/* ============================================================
   ACHARYA TUTORING — styles.css
   Design system: deep navy + warm gold + soft cream
   Typefaces: DM Serif Display (headlines) + Inter (body)
   ============================================================ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --navy:        #1a2744;
  --navy-light:  #253460;
  --gold:        #c9923a;
  --gold-light:  #e8b56a;
  --cream:       #f8f5f0;
  --cream-dark:  #eee9e0;
  --white:       #ffffff;
  --text:        #1f2937;
  --text-muted:  #6b7280;
  --border:      #e0dbd2;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.14);

  --max-w:       1160px;
  --section-py:  5rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── 3. UTILITIES ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--section-py) 0; }

.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.center { text-align: center; }
.center.section-sub { margin-left: auto; margin-right: auto; }

/* ── 4. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #b5812f;
  border-color: #b5812f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,146,58,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── 5. NAVIGATION ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 0 1.5rem;
}

.nav.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  transition: color 0.3s ease;
}
.nav.scrolled .nav-logo { color: var(--navy); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  transition: color 0.2s ease;
}
.nav.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
}
.nav-cta:hover { background: #b5812f; color: var(--white) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background 0.3s ease;
}
.nav.scrolled .nav-hamburger span { background: var(--navy); }

/* ── 6. HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 9rem 2rem 5rem;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(201,146,58,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  flex: 0 1 580px;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-headline em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 480px;
  margin-bottom: 2.25rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-photo {
  flex: 0 0 400px;
  position: relative;
  z-index: 1;
}

.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.photo-frame img {
  width: 100%;
  max-width: 400px;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.photo-badge {
  position: absolute;
  bottom: -1.25rem;
  left: -1.25rem;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.badge-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
}

.badge-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  margin-top: 2px;
}

/* ── 7. TRUST BAR ────────────────────────────────────────── */
.trust-bar {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.trust-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}

.trust-inner .divider {
  color: var(--border);
  font-weight: 300;
}

/* ── 8. ABOUT ─────────────────────────────────────────────── */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5/6;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text-col p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.about-text-col p strong { color: var(--text); }

.about-text-col .section-title { margin-bottom: 1.5rem; }

/* ── 9. SERVICES ──────────────────────────────────────────── */
.services { background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-card--cta {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card--cta .service-cta-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.service-card--cta p { color: rgba(255,255,255,0.75); }

/* ── 10. WHY ─────────────────────────────────────────────── */
.why { background: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.why-item {
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.why-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.why-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--cream-dark);
  line-height: 1;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.why-item:hover .why-num { color: var(--gold-light); }

.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.why-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── 11. TESTIMONIALS ────────────────────────────────────── */
.testimonials { background: var(--cream); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
}

.testimonial-author span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.testimonials-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── 12. SIGN UP ─────────────────────────────────────────── */
.signup { background: var(--white); }

.signup-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
  margin-top: 1rem;
}

.signup-form-area iframe {
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* Placeholder shown before Google Form is added */
.form-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}

.form-placeholder-inner {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.placeholder-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }

.form-placeholder-inner p { font-size: 0.95rem; margin-top: 0.4rem; }
.form-placeholder-inner strong { color: var(--navy); }

.signup-side h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.signup-side p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.signup-reassurance {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.reassurance-item {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

/* ── 13. FAQ ─────────────────────────────────────────────── */
.faq { background: var(--cream); }

.faq-container .section-title { margin-bottom: 2.5rem; }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question:hover { color: var(--gold); }

.faq-chevron {
  font-size: 1.1rem;
  color: var(--gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(-180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}

.faq-answer.open {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── 14. CONTACT ─────────────────────────────────────────── */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-card {
  text-align: center;
  padding: 2.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.contact-icon { font-size: 2rem; margin-bottom: 0.75rem; }

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  display: block;
  margin-bottom: 0.3rem;
  word-break: break-all;
}

.contact-link:hover { text-decoration: underline; }

.contact-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── 15. FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-inner { max-width: var(--max-w); margin: 0 auto; }

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--gold-light); }

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ── 16. SCROLL REVEAL ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 17. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* Nav */
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text) !important; font-size: 1.05rem; }

  /* Hero */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 7rem 1.5rem 4rem;
    gap: 3rem;
  }
  .hero-content { flex: unset; }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-photo { flex: unset; width: 100%; max-width: 380px; }
  .photo-frame img { height: 400px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-img-wrap { max-width: 440px; margin: 0 auto; }

  /* Sign up */
  .signup-layout { grid-template-columns: 1fr; }
  .signup-side { max-width: 440px; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --section-py: 3.5rem; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid      { grid-template-columns: 1fr; }

  .hero-headline { font-size: 2.2rem; }
  .photo-frame img { height: 320px; }
  .photo-badge { bottom: -1rem; left: -0.75rem; padding: 0.75rem 1rem; }
  .badge-number { font-size: 1.4rem; }

  .btn { padding: 0.75rem 1.4rem; font-size: 0.9rem; }
}

/* ── 18. REDUCED MOTION ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .btn, .service-card, .why-item, .contact-card { transition: none; }
}
