/* ===========================
   STRIVE LEARNING CENTER
   Global Styles
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --navy: #2C4160;
  --navy-dark: #1A2C45;
  --navy-deeper: #0F1C2A;
  --gold: #C2AD77;
  --gold-light: #EDE7D2;
  --gold-pale: #F9F6EF;
  --gold-border: #E5DFC8;
  --white: #ffffff;
  --gray: #777777;
  --gray-light: #aaaaaa;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; object-fit: cover; }

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
@keyframes fadeUp   { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }
@keyframes fadeLeft  { from { opacity:0; transform:translateX(-24px); } to { opacity:1; transform:none; } }
@keyframes fadeRight { from { opacity:0; transform:translateX(24px);  } to { opacity:1; transform:none; } }
@keyframes fadeScale { from { opacity:0; transform:scale(0.96);        } to { opacity:1; transform:none; } }

.reveal        { animation: fadeUp    0.55s ease both; }
.reveal-left   { animation: fadeLeft  0.55s ease both; }
.reveal-right  { animation: fadeRight 0.55s ease both; }
.reveal-scale  { animation: fadeScale 0.55s ease both; }

.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.12s; }
.d3 { animation-delay: 0.19s; }
.d4 { animation-delay: 0.26s; }
.d5 { animation-delay: 0.33s; }

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }

/* ===========================
   SLIDE BUTTONS
   =========================== */
.btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.3px;
  transition: color var(--transition);
  z-index: 0;
  border: none;
  text-decoration: none;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-102%);
  transition: transform var(--transition);
  z-index: -1;
  border-radius: 24px;
}
.btn:hover::before { transform: translateX(0); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy::before { background: var(--gold); }
.btn-navy:hover { color: var(--navy); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold::before { background: var(--navy); }
.btn-gold:hover { color: var(--gold); }

.btn-outline-navy { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline-navy::before { background: var(--navy); }
.btn-outline-navy:hover { color: var(--white); }

.btn-outline-gold { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-outline-gold::before { background: var(--gold); }
.btn-outline-gold:hover { color: var(--navy); }

.btn-outline-light { background: transparent; color: rgba(255,255,255,0.75); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline-light::before { background: rgba(255,255,255,0.12); }
.btn-outline-light:hover { color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold::before { background: var(--navy); }
.btn-gold:hover { color: var(--gold); }

.btn-sm { padding: 9px 20px; font-size: 12px; white-space: nowrap; }
.btn-full { width: 100%; }

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  background: var(--gold-pale);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid var(--gold-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 20px rgba(44,65,96,0.06);
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-icon {
  width: 34px; height: 34px;
  background: var(--navy);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon span { color: var(--gold); font-size: 14px; font-weight: 500; }
.nav-logo-text .logo-main { color: var(--navy); font-size: 15px; font-weight: 500; line-height: 1.1; letter-spacing: 1px; }
.nav-logo-text .logo-sub { color: var(--gold); font-size: 9px; letter-spacing: 2.5px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  color: var(--navy);
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0;
}
.nav-link:hover { color: var(--gold); }
.nav-link.active { color: var(--gold); border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; }

/* ===========================
   SECTION LABEL
   =========================== */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.section-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
}
.section-label span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 500;
}

/* ===========================
   IMAGE ZOOM HOVER
   =========================== */
.img-wrap { overflow: hidden; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.7s ease; }
.img-wrap:hover img { transform: scale(1.05); }

/* ===========================
   SUBJECT ROW HOVER
   =========================== */
.subject-row {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--gold-border);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.2s, transform 0.2s;
}
.subject-row:hover {
  background: var(--gold-light) !important;
  transform: translateX(5px);
}

/* ===========================
   PRICE CARD HOVER
   =========================== */
.price-card { transition: transform 0.25s; }
.price-card:hover { transform: translateY(-6px); }

/* ===========================
   STAT COUNTER
   =========================== */
.stat-num { display: inline-block; transition: transform 0.3s; }
.stat-wrap:hover .stat-num { transform: scale(1.1); }

/* ===========================
   FAQ ACCORDION
   =========================== */
.faq-item { border-bottom: 0.5px solid var(--gold-border); overflow: hidden; }
.faq-item:first-child { border-top: 0.5px solid var(--gold-border); }
.faq-q {
  padding: 17px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}
.faq-q:hover .faq-label { color: var(--gold); }
.faq-label { font-size: 15px; font-weight: 500; color: var(--navy); transition: color 0.2s; }
.faq-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s;
}
.faq-icon span { color: var(--gold); font-size: 15px; line-height: 1; transition: transform 0.3s; display: inline-block; }
.faq-body {
  max-height: 0; overflow: hidden; transition: max-height 0.45s ease; }
.faq-body.open { max-height: 300px; }
.faq-body p { font-size: 15px; color: var(--gray); line-height: 1.8; padding-bottom: 16px; }
.faq-item.open .faq-icon { background: var(--gold); }
.faq-item.open .faq-icon span { color: var(--white); transform: rotate(45deg); }

/* ===========================
   FOOTER
   =========================== */
footer {
  background: #0F1C2A;
  display: block;
  width: 100%;
}

/* ===========================
   CONTACT FORM
   =========================== */
.field-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}
.field-input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 9px;
  border: 1px solid var(--gold-border);
  background: var(--white);
  font-size: 15px;
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194,173,119,0.12); }
.field-input::placeholder { color: #ccc; }
.field-input:hover:not(:focus) { border-color: var(--gold); }

/* ===========================
   UTILITY
   =========================== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.split-left { padding: 56px 48px; }
.split-right { padding: 56px 48px; }
.text-gold { color: var(--gold); }
.bg-navy { background: var(--navy); }
.bg-pale { background: var(--gold-pale); }
.bg-white { background: var(--white); }

/* ===========================
   HAMBURGER MENU
   =========================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--gold-pale);
  border-top: 0.5px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  padding: 16px 24px;
  flex-direction: column;
  gap: 0;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(44,65,96,0.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
  padding: 14px 0;
  border-bottom: 0.5px solid var(--gold-border);
  font-size: 14px;
  color: var(--navy);
}
.mobile-menu .nav-link:last-of-type { border-bottom: none; }
.mobile-menu .btn {
  margin-top: 14px;
  text-align: center;
  border-radius: 24px;
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .navbar { padding: 14px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .split-left, .split-right { padding: 36px 24px; }
  section[style*="display:flex"] { flex-direction: column !important; }
  section[style*="gap:40px"] { gap: 24px !important; }
  .stats-bar { flex-wrap: wrap; gap: 16px; padding: 20px 24px; }
  footer { display: block; padding: 0; }
  h1 { font-size: 30px !important; }
  h2 { font-size: 24px !important; }
  [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(2"] { grid-template-columns: 1fr !important; }
}

/* ── EXPANDED MOBILE FIXES ─────────────────────────────────────── */
@media (max-width: 768px) {

  /* Tutoring hero: fixed column grid → single column */
  [style*="grid-template-columns:1fr 560px"],
  [style*="grid-template-columns:1fr 480px"],
  [style*="grid-template-columns:1fr 420px"] {
    grid-template-columns: 1fr !important;
  }

  /* 4-column grids → 2 columns on mobile */
  [style*="grid-template-columns:1fr 1fr 1fr 1fr"],
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Reduce large section padding */
  [style*="padding:56px 48px"] { padding: 32px 20px !important; }
  [style*="padding:56px 40px"] { padding: 32px 20px !important; }
  [style*="padding:48px 40px"] { padding: 28px 20px !important; }
  [style*="padding:44px 40px"] { padding: 28px 20px !important; }
  [style*="padding:44px 52px"] { padding: 28px 20px !important; }
  [style*="padding:44px 48px"] { padding: 28px 20px !important; }

  /* Hero image columns — stack and shrink */
  [style*="grid-template-columns:1fr 560px"] > div:last-child,
  [style*="grid-template-columns:1fr 480px"] > div:last-child {
    height: 240px !important;
    padding: 16px !important;
  }

  /* Image heights on mobile */
  .img-wrap[style*="height:440px"] { height: 260px !important; }
  .img-wrap[style*="height:420px"] { height: 240px !important; }
  .img-wrap[style*="height:380px"] { height: 240px !important; }
  .img-wrap[style*="height:340px"] { height: 220px !important; }
  [style*="height:440px"][style*="border-radius"] { height: 260px !important; }
  [style*="height:420px"][style*="border-radius"] { height: 240px !important; }
  [style*="height:380px"][style*="border-radius"] { height: 220px !important; }
  [style*="height:340px"][style*="border-radius"] { height: 200px !important; }

  /* Summer tutoring cards — 2 col on mobile */
  [style*="grid-template-columns:1fr 1fr"]:not(.pgrid):not(.grid-2) {
    grid-template-columns: 1fr !important;
  }

  /* Stats bar on tutoring page */
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Pricing tabs — wrap */
  .pgrid { grid-template-columns: 1fr !important; }

  /* Reduce font sizes for hero headings */
  [style*="font-size:44px"] { font-size: 30px !important; }
  [style*="font-size:42px"] { font-size: 28px !important; }
  [style*="font-size:32px"] { font-size: 24px !important; }

  /* Summer tutoring/class form steps — shrink */
  [style*="grid-template-columns:1fr 1fr"][class*="sc"] {
    grid-template-columns: 1fr !important;
  }

  /* Announcement bar text wrap */
  #announcement-bar { flex-wrap: wrap; gap: 6px; padding: 8px 16px; }
  #announcement-bar span { font-size: 12px !important; }

  /* Footer grid */
  [style*="grid-template-columns:2fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }
  /* footer-mobile-stack */
  footer [style*="display:flex;flex-direction:row;align-items:flex-start;padding:48px 48px"] {
    flex-direction: column !important;
    padding: 32px 20px !important;
    gap: 32px !important;
  }
  footer [style*="flex:0 0 240px"] {
    flex: 1 1 auto !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
  footer [style*="flex:1.4"] {
    flex: 1 1 auto !important;
    width: 100% !important;
  }
  footer [style*="display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:20px 48px"] {
    flex-direction: column !important;
    padding: 16px 20px !important;
    gap: 12px !important;
    text-align: center !important;
  }

  /* Book page step cards */
  [style*="grid-template-columns:1fr 1fr"][id^="grp"] {
    grid-template-columns: 1fr !important;
  }

  /* Enrollment form full width */
  .enroll-wrap { padding: 16px !important; }

  /* Pricing tab buttons — scroll horizontal */
  .tab-pills { overflow-x: auto; flex-wrap: nowrap !important; }

  /* CTA sections with flex row → column */
  [style*="display:flex;align-items:center;justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }

  /* Contact us page grid */
  [style*="grid-template-columns:1fr 360px"] {
    grid-template-columns: 1fr !important;
  }

}

@media (max-width: 480px) {
  /* Extra small phones */
  .btn { padding: 10px 18px !important; font-size: 13px !important; }
  h1 { font-size: 26px !important; }
  h2 { font-size: 22px !important; }
  .navbar { padding: 12px 16px; }
  [style*="padding:32px 20px"] { padding: 24px 16px !important; }
  
  /* 2-col grids → 1 col on tiny screens */
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(2,1fr)"] { grid-template-columns: 1fr !important; }
  
  /* Pricing cards full width */
  .price-card { padding: 20px 16px !important; }
  
  /* Summer cards */
  .tutor-card { padding: 18px 14px !important; }
}

/* Tutoring hero grid specifically */
@media (max-width: 768px) {
  .tutor-hero-grid {
    grid-template-columns: 1fr !important;
  }
  .tutor-hero-grid > div:last-child {
    height: 240px !important;
  }
}
