/* ===========================================
   FUTUREYOU — styles.css
   Apple-inspired design system for FutureYou
   EDITABLE: Update :root variables to retheme
   =========================================== */

/* ==========================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================== */
:root {
  --ocean-blue:    #0056D2;
  --emerald-green: #00897B;
  --golden-yellow: #C4900A;
  --bg-light:      #F9F9F9;
  --bg-dark:       #1D2C4D;
  --text-primary:  #1D1D1F;
  --text-secondary:#6E6E73;
  --surface-white: #FFFFFF;
  --border:        #D3D3D3;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #1D1D1F;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 52px; /* offset fixed navbar */
}

@media (max-width: 640px) {
  body {
    padding-bottom: 64px; /* space for mobile bottom bar */
  }
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
.headline-hero {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.headline-section {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.headline-sub {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* EDITABLE: Section label style — appears above every headline */
.section-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0056D2;
  margin-bottom: 12px;
  display: block;
}

.section-label-gold {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #D97706;
  margin-bottom: 12px;
  display: block;
}

/* Responsive typography */
@media (max-width: 768px) {
  .headline-hero    { font-size: 40px; text-align: center; }
  .headline-section { font-size: 32px; text-align: center; }
  .headline-sub     { font-size: 22px; text-align: center; }
  .section-label    { text-align: center; }
  .section-label-gold { text-align: center; }
}

/* ==========================================
   BUTTONS
   ========================================== */

/* Primary: Coursera blue */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0056D2;
  color: white;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 150ms ease;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-primary:hover { background: #004BB3; color: white; }

/* Secondary: outlined */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #0056D2;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #0056D2;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-secondary:hover { background: rgba(0,86,210,0.06); }

/* Ghost white: used on dark backgrounds */
.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #0056D2;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.9); }

/* Hero white outline: used over hero image */
.btn-hero-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: white;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-hero-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
}

/* Small size modifier */
.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

/* ==========================================
   CARDS
   ========================================== */
.card {
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad   { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }

@media (max-width: 640px) {
  .section-pad   { padding: 64px 0; }
  .section-pad-sm { padding: 48px 0; }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-3 { grid-template-columns: 1fr; } }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; gap: 40px; } }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr 1fr; } }

/* ==========================================
   NAVBAR
   ========================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 52px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid #D2D2D7;
  display: flex;
  align-items: center;
  transition: transform 300ms ease;
}
#navbar.hidden { transform: translateY(-100%); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  color: #1D1D1F;
  text-decoration: none;
  transition: color 200ms ease;
}
.nav-link:hover, .nav-link.active { color: #0056D2; }

#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
#hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1D1D1F;
  border-radius: 2px;
  transition: all 300ms ease;
}

#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #1D1D1F;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
#mobile-menu a.mob-link {
  font-size: 28px;
  color: white;
  text-decoration: none;
  transition: color 200ms ease;
}
#mobile-menu a.mob-link:hover { color: #0056D2; }

@media (max-width: 768px) {
  #nav-links { display: none; }
  #nav-cta-desktop { display: none !important; }
  #hamburger { display: flex; }
}

/* ==========================================
   MOBILE BOTTOM BAR
   ========================================== */
#mobile-bottom-bar {
  display: none;
}
@media (max-width: 768px) {
  #mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    height: 64px;
    background: white;
    border-top: 1px solid #D2D2D7;
    padding: 8px 16px;
    gap: 8px;
  }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Floating label inputs */
.fl-group {
  position: relative;
  margin-bottom: 16px;
}
.fl-group input,
.fl-group textarea {
  width: 100%;
  padding: 20px 16px 8px;
  border: 1px solid #D2D2D7;
  border-radius: 10px;
  font-size: 17px;
  font-family: inherit;
  outline: none;
  transition: border-color 200ms ease;
  background: white;
  resize: none;
}
.fl-group input:focus,
.fl-group textarea:focus { border-color: #0056D2; }
.fl-group label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 17px;
  color: #6E6E73;
  pointer-events: none;
  transition: all 200ms ease;
}
.fl-group textarea ~ label { top: 20px; transform: none; }
.fl-group input:focus ~ label,
.fl-group input:not(:placeholder-shown) ~ label,
.fl-group textarea:focus ~ label,
.fl-group textarea:not(:placeholder-shown) ~ label {
  top: 8px;
  font-size: 12px;
  transform: none;
  color: #0056D2;
}

/* ==========================================
   FLOATING WHATSAPP BUTTON
   ========================================== */
#whatsapp-fab {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 56px;
  height: 56px;
  background: #0056D2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  animation: waPulse 2.5s ease-in-out infinite;
}
@keyframes waPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
#toast-container {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.toast {
  background: #1D1D1F;
  color: white;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 300ms ease;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ==========================================
   SCROLL REVEAL
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ==========================================
   HERO ANIMATIONS
   ========================================== */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-anim {
  opacity: 0;
  animation: heroFadeUp 600ms ease-out forwards;
}
.hero-anim-d1 { animation-delay: 80ms; }
.hero-anim-d2 { animation-delay: 200ms; }
.hero-anim-d3 { animation-delay: 320ms; }
.hero-anim-d4 { animation-delay: 440ms; }

/* Scroll arrow bounce */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}
.scroll-arrow { animation: scrollBounce 1.5s ease-in-out infinite; }

/* ==========================================
   LIVE TUTOR STRIP
   ========================================== */
#live-strip {
  height: 48px;
  background: #0056D2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#strip-message {
  color: white;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 400ms ease;
}
#strip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #059669;
  margin-right: 10px;
  flex-shrink: 0;
  animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

/* ==========================================
   TIMELINE (Session Structure)
   ========================================== */
.timeline-connector {
  position: absolute;
  top: 40px;
  left: 19px;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.15);
}
.timeline-number {
  width: 40px;
  height: 40px;
  background: #0056D2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* ==========================================
   GUARANTEE BADGE
   ========================================== */
.guarantee-badge {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 6px solid #0056D2;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
}

/* ==========================================
   SUBJECT / CHIP TOGGLES
   ========================================== */
.chip {
  padding: 8px 16px;
  border-radius: 980px;
  border: 1px solid #D2D2D7;
  background: white;
  color: #1D1D1F;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: all 200ms ease;
  user-select: none;
}
.chip:hover  { border-color: #0056D2; color: #0056D2; }
.chip.active { background: #0056D2; color: white; border-color: #0056D2; }

/* ==========================================
   BOOKING FORM
   ========================================== */
.progress-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: all 300ms ease;
}
.progress-step.active    { background: #0056D2; color: white; }
.progress-step.completed { background: #059669; color: white; }
.progress-step.pending   { background: #D2D2D7; color: #6E6E73; }
.progress-line           { flex: 1; height: 2px; background: #D2D2D7; margin: 0 8px; }
.progress-line.done      { background: #059669; }

.time-slot {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  transition: all 200ms ease;
  border: 1px solid transparent;
}
.time-slot.available {
  background: #D1FAE5;
  color: #059669;
  border-color: #059669;
}
.time-slot.available:hover, .time-slot.selected {
  background: #0056D2;
  color: white;
  border-color: #0056D2;
}
.time-slot.booked {
  background: #F5F5F7;
  color: #D2D2D7;
  text-decoration: line-through;
  cursor: not-allowed;
  border-color: #D2D2D7;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #D2D2D7;
  border-radius: 12px;
  cursor: pointer;
  transition: all 200ms ease;
  margin-bottom: 12px;
}
.payment-option.selected {
  border-color: #0056D2;
  background: rgba(0,119,182,0.04);
}

/* ==========================================
   MODAL OVERLAY
   ========================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-content {
  background: white;
  border-radius: 18px;
  padding: 40px;
  max-width: 540px;
  width: 90%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

/* ==========================================
   CAROUSEL
   ========================================== */
.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: start; flex-shrink: 0; }

/* ==========================================
   VIDEO CARDS
   ========================================== */
.video-thumb {
  position: relative;
  padding-top: 56.25%;
  background: #D2D2D7;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}
.video-play-btn:hover {
  background: white;
  transform: translate(-50%, -50%) scale(1.1);
}

/* ==========================================
   LIVE RESULTS TICKER
   ========================================== */
.result-card-in {
  animation: slideInRight 400ms ease-out forwards;
}
.result-card-out {
  animation: slideOutLeft 400ms ease-in forwards;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-40px); }
}

/* ==========================================
   DATA TABLES
   ========================================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  background: #0056D2;
  color: white;
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}
.data-table td {
  padding: 14px 20px;
  font-size: 15px;
  border-bottom: 1px solid #D2D2D7;
}
.data-table tr:nth-child(even) td { background: #F5F5F7; }

/* ==========================================
   PAST QUESTIONS ACCORDION
   ========================================== */
.level-card {
  border-left: 4px solid #0056D2;
  background: white;
  border-radius: 0 18px 18px 0;
  border-top: 1px solid #D2D2D7;
  border-right: 1px solid #D2D2D7;
  border-bottom: 1px solid #D2D2D7;
  cursor: pointer;
  transition: all 250ms ease;
  overflow: hidden;
}
.level-card:hover { transform: translateY(-2px); }
.level-card-header { padding: 28px; }
.level-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 450ms ease;
}
.level-card-body.open { max-height: 1200px; }

.year-btn {
  padding: 8px 16px;
  border: 1px solid #D2D2D7;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  color: #1D1D1F;
  display: inline-block;
  transition: all 200ms ease;
}
.year-btn:hover {
  background: #0056D2;
  color: white;
  border-color: #0056D2;
}

/* ==========================================
   BOOKING CONFIRMATION
   ========================================== */
.checkmark-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #D1FAE5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.check-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCheck 600ms ease-out forwards;
  animation-delay: 200ms;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* ==========================================
   COLOUR UTILITIES
   ========================================== */
.text-ocean   { color: #0056D2; }
.text-emerald { color: #059669; }
.text-golden  { color: #D97706; }
.text-muted   { color: #6E6E73; }
.bg-light     { background: #F5F5F7; }
.bg-dark      { background: #1D1D1F; }
.bg-ocean     { background: #0056D2; }

/* ==========================================
   HERO BANNER (inner pages — 320px)
   ========================================== */
.page-hero {
  height: 320px;
  background: #1D1D1F;
  display: flex;
  align-items: center;
}

/* ==========================================
   STAT COUNTER
   ========================================== */
.stat-number {
  font-size: 56px;
  font-weight: 700;
  color: #0056D2;
  letter-spacing: -0.03em;
  line-height: 1;
}
