/* Global Styles */

/* Declaração @font-face para Miller Display */
@font-face {
  font-family: "Miller Display";
  src: url("https://yourdomain.com/fonts/MillerDisplay.woff2") format("woff2"),
    url("https://yourdomain.com/fonts/MillerDisplay.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-color: #0f2648;
  --secondary-color: #0f1418;
  --accent-color: #3a5a8c;
  --light-accent-color: #4c6fa8; /* Cor mais clara derivada do accent-color */
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --gray: #cccccc;
  --dark-gray: #666666;
  --gradient: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;

  /* Fontes */
  --font-heading: "Miller Display", serif;
  --font-subheading: "Noto Serif", serif;
  --font-body: "Noto Sans", sans-serif;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-color);
}

.btn {
  font-family: var(--font-subheading);
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--box-shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-join {
  display: block;
  width: fit-content;
  margin: 2rem auto;
  padding: 1rem 2.5rem;
  background: var(--gradient);
  color: var(--white);
  font-family: var(--font-subheading);
  font-weight: 600;
  text-align: center;
  border-radius: 30px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.btn-join:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Media Queries */
@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 26px;
  }

  .btn {
    padding: 0.7rem 1.5rem;
  }
}

/* Adicionar classes para o comportamento do header fixo */
.scroll-padding {
  scroll-padding-top: 110px;
  /* Ajustado para a altura do header */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  /* Ajustado para o header fixo */
}

/* Media Query para Telas Grandes */
@media (min-width: 1281px) {
  .container {
    max-width: 1400px;
  }

  section {
    padding: 6rem 0;
  }

  .section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
  }

  .section-title::after {
    width: 80px;
    height: 4px;
    bottom: -1.2rem;
  }

  .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
  }

  .btn-join {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
  }
}

/* Media Query específica para exatamente 1280x800 */
@media (min-width: 1200px) and (max-width: 1280px) and (height: 800px) {
  .container {
    margin: 0 auto 0 10px;
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--accent-color);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-family: var(--font-body);
  text-align: center;
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.benefit-highlight {
  display: inline;
  font-weight: 600;
  color: var(--primary-color, #3a5a7d);
  background: none;
  position: relative;
}

/* Estilo para links */
a {
  color: var(--dark-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ed9134;
  text-decoration: underline;
}

/* Resumo da Jornada Mensal */
.monthly-journey {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.table-responsive {
  overflow-x: auto;
  margin-top: 30px;
}

.journey-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.journey-table th,
.journey-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.journey-table th {
  background-color: #333;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.journey-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.journey-table tr:hover {
  background-color: #f1f1f1;
}

/* Calendário das Aulas */
.classes-calendar {
  padding: 60px 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.calendar-module {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendar-module:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.calendar-module h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

.calendar-module p {
  color: #555;
  margin-bottom: 5px;
  font-size: 14px;
}

.calendar-module p:last-child {
  margin-bottom: 0;
}

/* Media Queries para Responsividade */
@media screen and (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .journey-table th,
  .journey-table td {
    padding: 10px;
    font-size: 14px;
  }

  .table-responsive {
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
  }
}

/* Dispositivos móveis pequenos */
@media screen and (max-width: 480px) {
  .journey-table th,
  .journey-table td {
    padding: 8px;
    font-size: 13px;
  }

  .journey-table th {
    letter-spacing: 0.5px;
  }

  .monthly-journey .section-title {
    margin-bottom: 1rem;
  }

  .table-responsive {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
  }
}

/* Dispositivos muito pequenos */
@media screen and (max-width: 360px) {
  /* Transformar tabela em layout de cards para telas muito pequenas */
  .journey-table {
    border: none;
    box-shadow: none;
    background-color: transparent;
  }

  .journey-table thead {
    display: none; /* Ocultar cabeçalho da tabela */
  }

  .journey-table,
  .journey-table tbody,
  .journey-table tr,
  .journey-table td {
    display: block;
    width: 100%;
  }

  .journey-table tr {
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
  }

  .journey-table td {
    text-align: right;
    padding: 8px 10px;
    position: relative;
    border-bottom: 1px solid #f1f1f1;
  }

  .journey-table td:last-child {
    border-bottom: none;
  }

  .journey-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 40%;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    font-size: 11px;
    color: #555;
  }
}
