/* ============================================
   HORIZON — Shared Stylesheet
   ============================================ */

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

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --stone:    #F5F1EB;
  --linen:    #EDE7DC;
  --parchment:#E4DBD0;
  --forest:   #2C4A3E;
  --forestlt: #3D6356;
  --forestdim:#E8F0EE;
  --terra:    #B5634A;
  --terrasft: #F2E8E4;
  --slate:    #3A3A3A;
  --mid:      #6B6660;
  --muted:    #9A948E;
  --white:    #FDFCFA;
  --border:   rgba(44,74,62,0.12);
  --shadow:   rgba(44,74,62,0.08);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --max-w: 1120px;
  --section-py: 96px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--stone);
  color: var(--slate);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

/* Paper texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

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

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest);
  line-height: 1.15;
  font-weight: 400;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
h4 { font-size: 1.15rem; }

p { color: var(--mid); font-weight: 300; }
p + p { margin-top: 1em; }

.lead {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--mid);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--terra);
  flex-shrink: 0;
}

.section-rule {
  width: 40px;
  height: 2px;
  background: var(--terra);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

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

.section-alt { background: var(--linen); }
.section-forest { background: var(--forest); }
.section-white { background: var(--white); }

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245,241,235,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 24px var(--shadow); }

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--forest);
  font-weight: 500;
}
.nav-logo-mark {
  width: 30px; height: 30px;
  background: var(--forest);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 14px; height: 14px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--mid);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--forest);
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}
.nav-links a:hover { color: var(--forest); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--forest); font-weight: 500; }

.nav-cta {
  background: var(--forest);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  transition: background 0.2s, transform 0.2s !important;
  white-space: nowrap;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--forestlt) !important; transform: translateY(-1px); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--forest);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  background: var(--stone);
  border-top: 1px solid var(--border);
  padding: 20px 32px 24px;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--forest); }
.nav-mobile .nav-cta {
  display: block;
  text-align: center;
  margin-top: 16px;
  padding: 12px;
}

/* Page offset for fixed nav */
.page-body { padding-top: 68px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(44,74,62,0.25);
}
.btn-primary:hover {
  background: var(--forestlt);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(44,74,62,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn-outline:hover {
  background: var(--forest);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.btn-terra {
  background: var(--terra);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(181,99,74,0.25);
}
.btn-terra:hover {
  background: #a3573f;
  transform: translateY(-2px);
}
.btn svg { flex-shrink: 0; }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px var(--shadow);
}

.card-icon {
  width: 48px; height: 48px;
  background: var(--forestdim);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; color: var(--forest); }

/* ---- Trust bar ---- */
.trust-bar {
  background: var(--linen);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--mid);
  padding: 0 28px;
  position: relative;
}
.trust-item + .trust-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: var(--parchment);
}
.trust-item svg { width: 16px; height: 16px; color: var(--terra); flex-shrink: 0; }

/* ---- Steps ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 14px);
  right: calc(12.5% + 14px);
  height: 1px;
  background: linear-gradient(to right, var(--parchment), var(--parchment));
  z-index: 0;
}
.step-item {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}
.step-num-dark {
  background: var(--forest);
  color: var(--white);
}
.step-num-light {
  background: var(--terra);
  color: var(--white);
}
.step-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step-item p { font-size: 0.875rem; }

/* ---- Checklist ---- */
.check-list { list-style: none; }
.check-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '';
  width: 20px; height: 20px;
  min-width: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%232C4A3E'/%3E%3Cpath d='M6 10.5l3 3 5-5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-top: 1px;
}

/* ---- Testimonial ---- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.8;
  color: var(--terra);
  opacity: 0.4;
  margin-bottom: 8px;
  user-select: none;
}
.testimonial p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--forestdim);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--forest);
  font-weight: 500;
}
.testimonial-author strong { font-size: 0.85rem; color: var(--slate); font-weight: 500; }
.testimonial-author span { font-size: 0.78rem; color: var(--muted); display: block; }

/* ---- CTA Section ---- */
.cta-section {
  background: var(--forest);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 60% 50%, rgba(181,99,74,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section .lead { color: rgba(255,255,255,0.7); margin-bottom: 36px; }
.cta-section .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Hero ---- */
.hero {
  background: var(--forest);
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 75% 40%, rgba(181,99,74,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.hero-arc {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero h1 { color: var(--white); margin-bottom: 20px; font-weight: 300; }
.hero h1 em { font-style: italic; color: rgba(255,255,255,0.7); }
.hero .lead { color: rgba(255,255,255,0.72); margin-bottom: 36px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ---- Badge / pill ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.07);
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terra);
}

/* ---- Grid helpers ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- Two-col layout ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: var(--forest);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(181,99,74,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-arc { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 1; }
.page-hero-content { position: relative; z-index: 2; max-width: 640px; }
.page-hero h1 { color: var(--white); font-weight: 300; margin-bottom: 16px; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.page-hero .lead { color: rgba(255,255,255,0.68); }

/* ---- Contact Form ---- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 7px;
  letter-spacing: 0.03em;
}
.form-control {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--slate);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(44,74,62,0.08);
}
.form-control::placeholder { color: var(--muted); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { appearance: none; cursor: pointer; }

/* ---- Footer ---- */
.footer {
  background: var(--slate);
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-logo-mark {
  width: 28px; height: 28px;
  background: var(--terra);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer p { color: rgba(255,255,255,0.45); font-size: 0.85rem; }
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; }
.footer-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}
.footer-tag span { width: 6px; height: 6px; border-radius: 50%; background: var(--terra); }

/* ---- Accent block ---- */
.accent-block {
  background: var(--terrasft);
  border-left: 3px solid var(--terra);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
}
.accent-block p { color: var(--slate); font-size: 0.9rem; }

/* ---- Stat / callout ---- */
.stat-block {
  text-align: center;
  padding: 32px 24px;
}
.stat-block .stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-block p { font-size: 0.85rem; }

/* ---- Tutor card ---- */
.tutor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.tutor-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px var(--shadow); }
.tutor-card-top {
  background: var(--forestdim);
  padding: 32px 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.tutor-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  flex-shrink: 0;
}
.tutor-card-top h3 { font-size: 1.2rem; margin-bottom: 4px; }
.tutor-card-top p { font-size: 0.8rem; color: var(--mid); margin: 0; }
.tutor-card-body { padding: 24px 28px; }
.tutor-card-body p { font-size: 0.875rem; margin-bottom: 16px; }
.tutor-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tutor-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--forestdim);
  color: var(--forest);
}

/* ---- Scroll animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  :root { --section-py: 64px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse { direction: ltr; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --section-py: 52px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .trust-bar-inner { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding: 0 20px; }
  .trust-item + .trust-item::before { display: none; }
  .trust-item { padding: 0 16px; flex-shrink: 0; }
  .cta-section .btn-row { flex-direction: column; align-items: center; }
  .hero-btns { flex-direction: column; }
}
