/* ============================================
   APPALANE — SHARED STYLES
   ============================================ */

:root {
  --forest: #2C3E2D;
  --forest-deep: #1F2D20;
  --forest-soft: #4A5D4B;
  --sand: #E8DCC4;
  --sand-deep: #D4C5A3;
  --ivory: #FAF7F2;
  --ivory-warm: #F4EFE5;
  --ink: #1A1A1A;
  --slate: #555550;
  --line: rgba(26, 26, 26, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 32px;
  transition: all 0.4s ease;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

nav.at-top { background: transparent; border-bottom: 1px solid transparent; padding: 24px 32px; }
nav.scrolled { padding: 16px 32px; }

nav .nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--forest);
  text-decoration: none;
}

.logo .dot { color: var(--sand-deep); }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.25s ease;
  position: relative;
  padding: 4px 0;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-links a:not(.nav-cta).active {
  color: var(--forest);
  font-weight: 500;
}

.nav-links a:hover { color: var(--forest); }

.nav-links a.nav-cta {
  background: var(--forest);
  color: var(--ivory) !important;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  transition: all 0.3s;
}

.nav-links a.nav-cta:hover {
  background: var(--forest-deep);
  transform: translateY(-1px);
}

/* ============ HAMBURGER + MOBILE MENU ============ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
  position: relative;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--forest);
  transition: all 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--ivory);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--ivory);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport for mobile browsers with collapsing toolbars */
  background: var(--forest);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 48px 80px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu ul {
  list-style: none;
  width: 100%;
  max-width: 600px;
}

.mobile-menu li {
  border-bottom: 1px solid rgba(232, 220, 196, 0.15);
  overflow: hidden;
}

.mobile-menu li:first-child { border-top: 1px solid rgba(232, 220, 196, 0.15); }

.mobile-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 400;
  color: var(--ivory);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 0.3s, padding-left 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease, padding-left 0.4s cubic-bezier(0.65, 0, 0.35, 1), color 0.3s;
}

.mobile-menu.open a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.open li:nth-child(1) a { transition-delay: 0.15s; }
.mobile-menu.open li:nth-child(2) a { transition-delay: 0.22s; }
.mobile-menu.open li:nth-child(3) a { transition-delay: 0.29s; }
.mobile-menu.open li:nth-child(4) a { transition-delay: 0.36s; }

.mobile-menu a:hover {
  color: var(--sand);
  padding-left: 16px;
}

.mobile-menu a .arrow {
  font-size: 24px;
  font-style: normal;
  color: var(--sand);
  font-family: 'DM Sans', sans-serif;
}

.mobile-menu .menu-footer {
  position: absolute;
  bottom: 32px;
  left: 48px;
  right: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(250, 247, 242, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.mobile-menu .menu-footer a {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--sand);
  padding: 0;
  letter-spacing: 0.18em;
  transform: none;
  opacity: 1;
  transition: color 0.3s;
}

.mobile-menu .menu-footer a:hover { padding-left: 0; color: var(--ivory); }

/* Mobile menu close button */
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid rgba(232, 220, 196, 0.35);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  transition: all 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 10;
  padding: 0;
  opacity: 0;
  transform: scale(0.8);
}

.mobile-menu.open .mobile-menu-close {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.2s;
}

.mobile-menu-close:hover {
  background: var(--sand);
  color: var(--forest);
  border-color: var(--sand);
  transform: rotate(90deg);
}

.mobile-menu-close svg {
  display: block;
}

/* Lock body when menu open */
body.menu-open { overflow: hidden; }

/* ============ COMMON TYPOGRAPHY ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--forest-soft);
  margin-bottom: 32px;
  font-weight: 500;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--forest-soft);
}

h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--forest);
  margin-bottom: 32px;
}

h1 .italic, h2 .italic {
  font-style: italic;
  font-weight: 300;
  color: var(--forest-soft);
}

h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--forest);
  margin-bottom: 24px;
}

.section-head { margin-bottom: 80px; max-width: 720px; }

.section-desc { font-size: 18px; color: var(--slate); line-height: 1.55; }

/* ============ BUTTONS ============ */
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  padding: 16px 28px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
}

.btn:active::before { width: 320px; height: 320px; transition: width 0s, height 0s; }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary { background: var(--forest); color: var(--ivory); }
.btn-primary:hover {
  background: var(--forest-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(44, 62, 45, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
}
.btn-secondary:hover {
  background: var(--forest);
  color: var(--ivory);
  transform: translateY(-2px);
}
.btn-secondary::before { background: rgba(232, 220, 196, 0.4); }

.btn-arrow { font-size: 18px; transition: transform 0.3s; position: relative; z-index: 1; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============ SECTIONS ============ */
section { padding: 120px 0; position: relative; z-index: 2; }

/* Page header (top of internal pages) */
.page-header {
  padding: 180px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: clamp(44px, 6vw, 80px);
  margin-bottom: 24px;
}

.page-header .section-desc {
  max-width: 640px;
}

/* ============ HERO (home only) ============ */
.hero { min-height: 100vh; padding: 140px 0 80px; position: relative; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-sub {
  font-size: 19px;
  color: var(--slate);
  max-width: 480px;
  margin-bottom: 44px;
  line-height: 1.5;
}

.hero-visual { position: relative; height: 620px; }

.hero-img-main {
  position: absolute; top: 0; right: 0;
  width: 85%; height: 100%;
  background-image: url('https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=900&q=85');
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  filter: saturate(0.9);
}

.hero-img-accent {
  position: absolute; bottom: -30px; left: 0;
  width: 240px; height: 280px;
  background: var(--sand);
  border-radius: 4px;
  z-index: -1;
}

.hero-badge {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: var(--ivory);
  padding: 20px 24px;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  max-width: 240px;
}

.hero-badge .stars { color: var(--sand-deep); font-size: 14px; margin-bottom: 8px; letter-spacing: 2px; }
.hero-badge p { font-size: 13px; color: var(--slate); line-height: 1.5; margin-bottom: 8px; }
.hero-badge .author { font-size: 12px; color: var(--forest); font-weight: 500; }

/* ============ TRUST ============ */
.trust { padding: 60px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--slate); }
.trust-stats { display: flex; gap: 60px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--forest);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label { font-size: 12px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.1em; }

/* ============ SERVICES GRID ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--ivory-warm);
  padding: 40px 32px;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.service-card:hover { background: var(--forest); color: var(--ivory); }
.service-card:hover .service-num,
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-arrow { color: var(--ivory); }

.service-num {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  color: var(--forest-soft);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  transition: color 0.4s;
}

.service-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--forest);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  transition: color 0.4s;
}

.service-card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
  flex-grow: 1;
  transition: color 0.4s;
}

.service-arrow {
  margin-top: 24px;
  font-size: 20px;
  color: var(--forest);
  transition: all 0.4s;
}

.service-card:hover .service-arrow { transform: translateX(6px); }

/* ============ HOW IT WORKS ============ */
.how { background: var(--forest); color: var(--ivory); }
.how h2 { color: var(--ivory); }
.how h2 .italic { color: var(--sand); }
.how .section-desc { color: rgba(250, 247, 242, 0.75); }

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.step { border-top: 1px solid rgba(232, 220, 196, 0.2); padding-top: 32px; }

.step-num {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  color: var(--sand);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.step h3 {
  font-family: 'Fraunces', serif;
  font-size: 23px;
  font-weight: 400;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.step p { font-size: 14px; color: rgba(250, 247, 242, 0.7); line-height: 1.6; }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-images { position: relative; height: 580px; }

.about-img-1 {
  position: absolute; top: 0; left: 0;
  width: 70%; height: 65%;
  background-image: url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?w=800&q=85');
  background-size: cover;
  background-position: center;
  border-radius: 4px;
}

.about-img-2 {
  position: absolute; bottom: 0; right: 0;
  width: 60%; height: 55%;
  background-image: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?w=700&q=85');
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  box-shadow: -30px -30px 0 var(--sand);
}

.about-content p {
  font-size: 17px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-content p strong { color: var(--forest); font-weight: 500; }

.about-values {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.value-item {
  padding: 24px;
  background: var(--ivory-warm);
  border-radius: 4px;
  border-left: 2px solid var(--forest);
}

.value-item h4 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 8px;
}

.value-item p { font-size: 14px; color: var(--slate); line-height: 1.5; margin: 0; }

/* ============ BOOK / CONSULTATION ============ */
.book { background: var(--ivory); position: relative; }

.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.book-perks { margin-top: 40px; list-style: none; }

.book-perks li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 16px;
  color: var(--ink);
}

.check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--forest);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  font-size: 12px;
  margin-top: 1px;
}

.book-form {
  background: var(--ivory-warm);
  padding: 48px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.form-tag {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--forest-soft);
  margin-bottom: 8px;
}

.form-title {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ivory);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--forest);
  background: var(--ivory);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  padding: 18px;
  background: var(--forest);
  color: var(--ivory);
  border: none;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 12px;
}

.form-submit:hover {
  background: var(--forest-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(44, 62, 45, 0.25);
}

.form-note { font-size: 12px; color: var(--slate); text-align: center; margin-top: 16px; }

/* ============ HOMEPAGE PREVIEW BLOCKS ============ */
.preview-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid var(--forest);
  padding-bottom: 4px;
  transition: gap 0.3s ease;
}

.preview-cta:hover { gap: 14px; }

/* Big banner CTA at end of homepage */
.banner-cta {
  background: var(--forest);
  color: var(--ivory);
  padding: 100px 0;
  text-align: center;
}

.banner-cta h2 { color: var(--ivory); margin-bottom: 24px; }
.banner-cta h2 .italic { color: var(--sand); }
.banner-cta p {
  color: rgba(250, 247, 242, 0.8);
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto 40px;
}

.banner-cta .btn-primary {
  background: var(--sand);
  color: var(--forest);
}

.banner-cta .btn-primary:hover {
  background: var(--ivory);
  color: var(--forest);
}

/* ============ PRICING (services page) ============ */
.pricing {
  background: var(--ivory-warm);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.price-card {
  background: var(--ivory);
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(44, 62, 45, 0.08);
}

.price-card.featured {
  background: var(--forest);
  color: var(--ivory);
  border-color: var(--forest);
}

.price-card.featured h3,
.price-card.featured .price,
.price-card.featured .price-desc { color: var(--ivory); }
.price-card.featured .price-features li { color: rgba(250, 247, 242, 0.85); border-color: rgba(232, 220, 196, 0.2); }

.price-name {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--forest-soft);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.price-card.featured .price-name { color: var(--sand); }

.price-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.price {
  font-family: 'Fraunces', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 4px;
  line-height: 1;
}

.price small {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--slate);
  font-weight: 400;
}

.price-card.featured .price small { color: rgba(250, 247, 242, 0.6); }

.price-desc { font-size: 13px; color: var(--slate); margin-bottom: 24px; }

.price-features {
  list-style: none;
  margin: 24px 0;
  flex-grow: 1;
}

.price-features li {
  font-size: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.price-features li:last-child { border-bottom: none; }

.price-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

/* ============ FAQ (how-it-works page) ============ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--forest);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.faq-toggle {
  width: 32px; height: 32px;
  border: 1px solid var(--forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--forest);
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 24px;
}

.faq-item.open .faq-toggle {
  background: var(--forest);
  color: var(--ivory);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--slate);
  font-size: 16px;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-top: 16px;
}

/* ============ TIMELINE (book page) ============ */
.next-steps {
  background: var(--ivory-warm);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 60px;
}

.timeline-item {
  position: relative;
  padding-left: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--forest);
}

.timeline-item h4 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--forest);
  margin-bottom: 12px;
  font-weight: 400;
}

.timeline-item p { font-size: 14px; color: var(--slate); line-height: 1.6; }

.timeline-time {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--forest-soft);
  margin-bottom: 8px;
  font-weight: 500;
}

/* ============ FOOTER ============ */
footer { background: var(--forest-deep); color: var(--ivory); padding: 80px 0 32px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  color: var(--ivory);
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(250, 247, 242, 0.6);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sand);
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14px;
  color: rgba(250, 247, 242, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--ivory); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(232, 220, 196, 0.15);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(250, 247, 242, 0.5);
}

/* ============ ANIMATIONS ============ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

.page-header > .container > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s ease forwards;
}
.page-header > .container > *:nth-child(1) { animation-delay: 0.05s; }
.page-header > .container > *:nth-child(2) { animation-delay: 0.15s; }
.page-header > .container > *:nth-child(3) { animation-delay: 0.25s; }

.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.9s ease forwards;
}

.hero-content .eyebrow { animation-delay: 0.1s; }
.hero-content h1 { animation-delay: 0.2s; }
.hero-content .hero-sub { animation-delay: 0.4s; }
.hero-content .cta-row { animation-delay: 0.55s; }

.hero-visual { opacity: 0; animation: heroFadeIn 1.2s 0.3s ease forwards; }

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */

/* ----- LARGE TABLET / SMALL DESKTOP (1024px and down) ----- */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  nav { padding: 20px 28px; }
  nav.scrolled { padding: 14px 28px; }
  .nav-links { gap: 28px; }
  section { padding: 100px 0; }
  .hero { padding: 130px 0 70px; }
  .hero-grid { gap: 48px; }
  .about-grid, .book-grid { gap: 56px; }
  .pricing-grid { gap: 16px; }
  .price-card { padding: 32px 24px; }
}

/* ----- TABLET (968px and down) ----- */
@media (max-width: 968px) {
  /* Show hamburger, hide desktop nav links */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* Layouts collapse */
  .hero-grid, .about-grid, .book-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero-visual, .about-images { height: 460px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-card[style*="span 2"] { grid-column: span 2 !important; }
  /* At 2-col layout the last (Custom) card would leave a gap — span it full-width too.
     Targets both :last-child and the explicit data-service="custom" for safety. */
  .services-grid .service-card:last-child,
  .services-grid .service-card[data-service="custom"] {
    grid-column: 1 / -1 !important;
  }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .trust-stats { gap: 32px; }

  /* About values grid */
  .about-values { grid-template-columns: repeat(2, 1fr) !important; }

  /* "First 30 days" 4-col grid → 2-col */
  .how .about-values { grid-template-columns: repeat(2, 1fr) !important; }

  /* Tighten typography */
  .hero-sub { font-size: 17px; }
  .section-head { margin-bottom: 56px; }
  .section-desc { font-size: 16px; }

  /* Page header */
  .page-header { padding: 150px 0 60px; }
}

/* ----- SMALL TABLET / LARGE PHONE (768px and down) ----- */
@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero-visual { height: 420px; }
  .hero-img-main { width: 88%; }
  .hero-img-accent { width: 180px; height: 220px; }
  .hero-badge { left: 24px; bottom: 24px; padding: 16px 20px; max-width: 220px; }

  .about-images { height: 440px; }
  .about-img-2 { box-shadow: -20px -20px 0 var(--sand); }

  /* Trust strip stacks */
  .trust-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .trust-stats { gap: 40px; }

  /* Banner CTA */
  .banner-cta { padding: 80px 0; }

  /* Pricing */
  .pricing-grid { gap: 16px; }
}

/* ----- PHONE (640px and down) ----- */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  nav { padding: 16px 20px; }
  nav.scrolled { padding: 14px 20px; }
  section { padding: 72px 0; }
  .page-header { padding: 120px 0 48px; }

  /* Single-column everything */
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card[style*="span 2"] { grid-column: span 1 !important; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr !important; }
  .how .about-values { grid-template-columns: 1fr !important; }

  /* Spacing adjustments */
  .section-head { margin-bottom: 44px; }
  .hero-grid, .about-grid, .book-grid { gap: 44px; }

  /* Hero on phone */
  .hero { padding: 110px 0 48px; }
  .hero-visual { height: 380px; }
  .hero-img-main { width: 90%; }
  .hero-img-accent { width: 140px; height: 160px; bottom: -20px; }
  .hero-badge {
    bottom: 20px;
    left: 20px;
    padding: 14px 16px;
    max-width: 200px;
  }
  .hero-badge p { font-size: 12px; }

  /* About images */
  .about-images { height: 380px; }
  .about-img-2 { box-shadow: -16px -16px 0 var(--sand); }

  /* Service cards */
  .service-card { padding: 32px 24px; min-height: 260px; }
  .service-card h3 { font-size: 24px; }

  /* Steps */
  .step { padding-top: 24px; }
  .step h3 { font-size: 22px; }

  /* Form */
  .book-form { padding: 28px 20px; }
  .form-title { font-size: 24px; }

  /* Pricing */
  .price-card { padding: 32px 24px; }

  /* FAQ */
  .faq-question { font-size: 18px; }
  .faq-item { padding: 22px 0; }

  /* Banner CTA */
  .banner-cta { padding: 64px 0; }
  .banner-cta p { font-size: 16px; }

  /* Mobile menu padding */
  .mobile-menu { padding: 0 32px; }
  .mobile-menu .menu-footer { left: 32px; right: 32px; bottom: 24px; }
  .mobile-menu .menu-footer span:first-child { display: none; }

  /* Tighten value items */
  .value-item { padding: 20px; }

  /* Timeline */
  .timeline-item { padding-left: 28px; }
}

/* ----- SMALL PHONE (380px and down) ----- */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  nav { padding: 14px 16px; }
  nav.scrolled { padding: 12px 16px; }
  .logo { font-size: 22px; }
  .hero-badge { display: none; } /* Save space on tiny screens */
  .btn { padding: 14px 22px; font-size: 14px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; }
  .trust-stats { gap: 24px; flex-wrap: wrap; }
  .stat-num { font-size: 30px; }
}

/* ----- LANDSCAPE PHONE (short height) ----- */
@media (max-height: 500px) and (orientation: landscape) {
  .mobile-menu a { padding: 16px 0; font-size: 28px; }
  .mobile-menu .menu-footer { position: relative; bottom: auto; left: auto; right: auto; margin-top: 24px; }
}
/* ============================================================
   FOLDABLE PHONE & DUAL-SCREEN SUPPORT
   ------------------------------------------------------------
   Append this block to the END of styles.css.

   Covers:
   - Galaxy Z Fold cover screens (folded mode, 280–376px)
   - Galaxy Z Fold main display (unfolded, ~673–884px)
   - Galaxy Z Flip (412px when open, normal phone CSS applies)
   - Surface Duo / dual-screen spanning across a hinge
   - Very tall narrow viewports (Z Fold cover in portrait)

   Note: also update the <meta name="viewport"> tag in every HTML file to:
   <meta name="viewport"
         content="width=device-width, initial-scale=1.0, viewport-fit=cover">
   The viewport-fit=cover part lets content render edge-to-edge on devices
   with rounded corners, notches, or hinges.
   ============================================================ */


/* ---- Z Fold COVER screen (280–340px) ------------------------------
   Narrowest real-world browser viewport you'll encounter. Hero text needs
   to shrink hard, padding tightens, CTAs go full-width and stack. */
@media (max-width: 340px) {

  /* Container + nav padding tighten further */
  .container { padding: 0 14px; }
  nav,
  nav.scrolled { padding: 12px 14px; }
  .logo { font-size: 20px; }

  /* Hero — bring the huge clamp() headline under control */
  .hero { padding: 90px 0 40px; }
  .hero h1 { font-size: 38px; line-height: 1.02; margin-bottom: 24px; }
  .hero-sub { font-size: 15px; margin-bottom: 32px; }
  .hero-visual { height: 320px; }

  /* The "★★★★★ Sarah K." testimonial badge already hides at 380px,
     stays hidden here */

  /* CTAs stack and go full-width on the cover screen */
  .cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn { padding: 13px 18px; font-size: 13px; width: 100%; justify-content: center; }

  /* Trust strip */
  .trust { padding: 36px 0; }
  .trust-stats { gap: 18px; flex-wrap: wrap; }
  .stat-num { font-size: 26px; }

  /* Sections, cards, forms — tighten vertical rhythm */
  section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  h2 { font-size: 30px; line-height: 1.08; }
  .service-card { padding: 24px 18px; min-height: 220px; }
  .service-card h3 { font-size: 20px; }
  .step h3 { font-size: 19px; }

  /* Mobile menu — tighten the giant serif menu items */
  .mobile-menu { padding: 0 22px; }
  .mobile-menu a { font-size: 30px; padding: 22px 0; }
  .mobile-menu .menu-footer { left: 22px; right: 22px; bottom: 18px; }

  /* Form */
  .book-form { padding: 24px 18px; }
  .form-title { font-size: 22px; }

  /* Footer */
  footer { padding: 56px 0 24px; }
}


/* ---- Z Fold MAIN display when unfolded (~673–884px wide) ----------
   This range falls between 'phone' (640px) and 'tablet' (968px) breakpoints,
   so existing tablet rules apply — but with one tweak: when the device is
   posture-aware and reports horizontal segments, treat it as tablet-grade.
   No new layout needed; the 768px breakpoint already handles this well. */


/* ---- DUAL-SCREEN / SPANNING DEVICES (Surface Duo, etc.) -----------
   When the viewport is split across a physical hinge, use the modern
   Viewport Segments CSS to lay out hero content across both halves.
   Browsers that don't support this simply ignore the block. */
@media (horizontal-viewport-segments: 2) {
  .hero-grid {
    /* Text fills left segment, image fills right segment */
    grid-template-columns:
      env(viewport-segment-width 0 0)
      env(viewport-segment-width 1 0);
    gap: env(viewport-segment-left 1 0);
  }
  /* About section + book form likewise span the hinge cleanly */
  .about-grid,
  .book-grid {
    grid-template-columns:
      env(viewport-segment-width 0 0)
      env(viewport-segment-width 1 0);
    gap: env(viewport-segment-left 1 0);
  }
}


/* ---- TALL NARROW SCREENS (cover screens in portrait) --------------
   When the screen is unusually tall relative to its width — which is
   exactly the Z Fold cover-screen profile — pull the hero up so the
   CTA stays visible without scrolling. */
@media (max-width: 380px) and (min-aspect-ratio: 1/2) {
  .hero { min-height: auto; padding-top: 90px; padding-bottom: 32px; }
}


/* ============================================================
   HERO IMAGE — FOLDABLE / TABLET FIX (v2 — aggressive)
   ------------------------------------------------------------
   The hero-visual has competing height rules at 968/768/640px
   that crop the portrait photo awkwardly on foldables and tablets.
   This block uses !important + aspect-ratio so the container stays
   portrait-shaped (matches the photo) at every sub-desktop width.
   ============================================================ */
@media (max-width: 968px) {
  .hero-visual {
    max-width: 500px !important;
    aspect-ratio: 4 / 5 !important;
    height: auto !important;
    margin: 0 auto !important;
  }
  .hero-img-main {
    background-size: cover !important;
    background-position: center center !important;
    width: 100% !important;
  }
  .hero-img-accent {
    max-width: 500px !important;
    margin: 0 auto !important;
  }
  .hero-badge {
    max-width: 280px !important;
  }
}
