/* =========================================================
   BOOK SERVICES SITE â€” CORE STYLESHEET
   Design system: deep forest green + warm paper background,
   editorial serif headings, restrained gold accent.
   ========================================================= */

/* -------------------- 1. DESIGN TOKENS -------------------- */
:root {
  /* Color */
  --color-bg:             #FFFFFF;
  --color-bg-alt:         #EFF3F2;
  --color-bg-deep:        #E1E8E6;
  --color-primary:        #124749;
  --color-primary-dark:   #0A2E30;
  --color-primary-tint:   #E1EEEE;
  --color-accent:         #3B8A7D;
  --color-accent-dark:    #3B8A7D;
  --color-text:           #1A1F1F;
  --color-text-secondary: #545C5B;
  --color-text-muted:     #8B9291;
  --color-border:         #DDE5E3;
  --color-on-primary:     #FFFFFF;
  --color-on-transparent:   rgba(255, 255, 255, 0);

  /* Typography */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body:    "Public Sans", "Segoe UI", -apple-system, sans-serif;

  --fs-h1: clamp(2.25rem, 1.8rem + 2vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.5rem + 1.2vw, 2.75rem);
  --fs-h3: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8rem;

  /* Layout */
  --content-max: 1200px;
  --radius-sm: 999px;
  --radius-md: 12px;
  --radius-xmd: 8px;
  --radius-lg: 20px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --shadow-sm: 0 1px 3px rgba(30, 68, 56, 0.08);
  --shadow-md: 0 8px 24px rgba(30, 68, 56, 0.10);
  --shadow-lg: 0 20px 48px rgba(20, 46, 38, 0.14);

  --header-height: 84px;
}

/* -------------------- 2. RESET -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden;}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: var(--color-primary-dark);
}
h1 { font-size: var(--fs-h1); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); font-weight: 500; }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--space-2); color: var(--color-text-secondary); }
.lead { font-size: var(--fs-lead); color: var(--color-text-secondary); }

/* Visible keyboard focus (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* -------------------- 3. LAYOUT UTILITIES -------------------- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.section { padding: var(--space-6) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-tight { padding: var(--space-5) 0; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-1);
}
.section-head { max-width: 680px; margin: 0 0 var(--space-4); }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* -------------------- 4. BUTTONS -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem 0.6rem 1.1rem;
  border-radius: var(--radius-xmd);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--color-on-primary);
  color: var(--color-on-primary);
}
.btn-outline:hover { background: transparent; }
.btn-ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-primary); }
.btn-sm {padding: 0.6rem 0.45rem 0.6rem 1.1rem;font-size: 0.92rem;}

/* -------------------- 5. SITE HEADER -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  flex-shrink: 0;
}
.brand img { height: 50px; width: auto; }

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: var(--space-3); }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
}
/* signature underline-stroke hover, evokes a pen mark */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  transition: right 0.25s ease;
}
.nav-link:hover::after,
.nav-item.is-open > .nav-link::after { right: 0; }
.nav-link[aria-current="page"] { color: var(--color-primary); }
.nav-link[aria-current="page"]::after { right: 0; background: var(--color-primary); }

.nav-caret { width: 9px; height: 9px; transition: transform 0.2s ease; }
.nav-item.is-open .nav-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(0%) !important;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 260px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-item.is-open .dropdown,
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--color-text);
}
.dropdown a:hover { background: var(--color-primary-tint); color: var(--color-primary-dark); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.header-phone {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.45rem 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--color-primary);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-on-primary);
  transition: background 0.2s ease, transform 0.15s ease;
  border: 1px solid transparent;
}
.header-phone:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.header-phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-on-primary);
  flex-shrink: 0;
}
.header-phone-icon i { font-size: 12px; color: var(--color-primary); }
.btn-pill {border-radius: 999px;color: var(--color-primary);border-color: var(--color-primary);}
.btn-pill i {font-size: 12px;background: var(--color-primary);padding: 10px;display: inline-flex;align-items: center;justify-content: center;width: 26px;height: 26px;border-radius: 50%;flex-shrink: 0;color: #fff;}

.mobile-only-cta { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------- 6. SITE FOOTER -------------------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.82);
  position: relative;
  padding: 0 15px;
}
/* signature: a folded "page corner" seam at the top of the footer,
   a quiet nod to bookmaking without leaning on stock iconography */
.site-footer::before {
  content: "";
  display: block;
  height: 10px;
  background: linear-gradient(135deg, transparent 50%, var(--color-bg) 50%) top left / 22px 10px repeat-x;
}
.footer-top {
  padding: var(--space-5) 0 var(--space-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: var(--space-4);
}
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin-bottom: var(--space-1); }
.footer-about { color: rgba(255,255,255,0.65); font-size: var(--fs-small); max-width: 320px; font-size: 12px; margin-top: 30px;}
.footer-social { display: flex; gap: 0.6rem; margin-top: var(--space-2); }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { background: var(--color-accent); border-color: var(--color-accent); }
.footer-social svg { width: 25px; height: 25px; }

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: var(--space-3) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* css for whatsapp button */
.whatsapp-btn {
    background: #25D366;
    display: inline;
    position: relative;
}
.whatsapp-btn a {
    background: #25D366;
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 35px;
    border-radius: 100%;
    height: 68px;
    width: 68px;
    color: #fff;
}
.whatsapp-btn a:hover {
    background: #25D366;
    color: #fff;
}

/* -------------------- 7. HOME PAGE COMPONENTS -------------------- */

/* --- Hero --- */
.hero {padding: var(--space-6) 0 var(--space-5);overflow: hidden;background: #377B72;background: linear-gradient(0deg, rgba(55, 123, 114, 1) 0%, rgba(18, 71, 73, 1) 100%);}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: center;
}
.hero .hero-grid .eyebrow {
    color: var(--color-on-primary);
}
.hero-copy h1 {margin-bottom: var(--space-2);color: var(--color-on-primary);}
.hero-copy .lead {max-width: 540px;margin-bottom: var(--space-3);color: var(--color-on-primary);}
.hero-cta-row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.hero-cta-row a {border-radius: var(--radius-sm);border-color: var(--color-on-primary);}
.hero-phone-link { font-weight: 600; color: var(--color-primary-dark); font-size: 0.95rem; }
.hero-phone-link:hover { color: var(--color-accent-dark); }
.hero-cta-row .btn-primary i { background: #fff; padding: 5px; border-radius: inherit; color: #124749; }
.hero-cta-row .btn-outline i {color: #fff;padding: 0px;border-radius: inherit;font-size: 25px;}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  background: linear-gradient(155deg, var(--color-primary-tint) 0%, var(--color-bg-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-placeholder {
  font-family: var(--font-display);
  color: var(--color-primary);
  opacity: 0.55;
  font-size: 0.95rem;
  text-align: center;
  padding: var(--space-3);
}
.hero-badge {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--color-primary-dark); }
.hero-badge span { font-size: 0.78rem; color: var(--color-text-muted); }

/* --- Stats strip --- */
.stats-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
  margin-top: 50px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  text-align: center;
}
.stat-item .stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.5rem);
  color: var(--color-primary);
  font-weight: 500;
}
.stat-item .stat-label {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
}

/* --- Services grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--color-primary-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.service-card p { font-size: 0.92rem; margin-bottom: 0.9rem; }
.service-link { font-size: 0.88rem; font-weight: 600; color: var(--color-primary); display: inline-flex; align-items: center; gap: 0.3rem; }
.service-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.service-card:hover .service-link svg { transform: translateX(3px); }

/* --- Process steps --- */
.process-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: var(--space-3) var(--space-2) var(--space-2);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.process-step .step-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-accent-dark);
  display: block;
  margin-bottom: 0.6rem;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.9rem; margin-bottom: 0; }

/* --- Why choose us / feature grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.feature-card { display: flex; gap: var(--space-2); align-items: flex-start; }
.feature-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.feature-card p { font-size: 0.9rem; margin-bottom: 0; }

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial-quote-mark { font-family: var(--font-display); font-size: 2.5rem; color: var(--color-accent); line-height: 1; margin-bottom: 0.4rem; }
.testimonial-text { font-size: 0.94rem; font-style: italic; color: var(--color-text); margin-bottom: var(--space-2); flex-grow: 1; }
.testimonial-person { display: flex; align-items: center; gap: 0.7rem; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-primary-tint);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; color: var(--color-primary);
  font-size: 0.85rem;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--color-primary-dark); }
.testimonial-role { font-size: 0.78rem; color: var(--color-text-muted); }

/* --- CTA band --- */
.cta-band {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  color: #fff;
}
.cta-band h2 { color: #fff; font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.cta-band p { color: rgba(255,255,255,0.78); margin-bottom: 0; max-width: 480px; }
.cta-band .btn-primary { background: #fff; color: var(--color-primary-dark); }
.cta-band .btn-primary:hover { background: var(--color-bg-alt); }
.cta-band-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* -------------------- 9. INNER-PAGE HERO (About / Portfolio / Testimonials / FAQ) -------------------- */
.page-hero {
  padding: var(--space-5) 0 var(--space-4);
  text-align: center;
}
.page-hero a {
    border-radius: var(--radius-sm);
}
.page-hero .eyebrow { display: block; }
.page-hero h1 { max-width: 760px; margin-left: auto; margin-right: auto; }
.page-hero .lead { max-width: 640px; margin: 0 auto; }
.page-hero .header-actions {
    justify-content: center;
    margin-top: 20px;
}
.page-hero .header-actions a {
    width: 150px;
    justify-content: center;
}

/* -------------------- 10. ABOUT PAGE -------------------- */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.about-story-grid a {
  padding: 10px 30px;
  margin-top: 10px;
}
.about-story-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.2;
  background: linear-gradient(155deg, var(--color-primary-tint) 0%, var(--color-bg-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.about-story-media img { width:100%; height:100%; object-fit:cover; }
.about-story-media .placeholder-label {
  font-family: var(--font-display); color: var(--color-primary); opacity: 0.55; font-size: 0.9rem; text-align:center; padding: var(--space-3);
}

.value-list { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); }
.value-item { display: flex; gap: 0.8rem; align-items: flex-start; }
.value-item .value-check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-primary-tint); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.value-item .value-check svg { width: 14px; height: 14px; }
.value-item p { margin-bottom: 0; font-size: 0.95rem; }
.call-btn a {border-radius: 999px;}
.call-btn i {
    background: #fff;
    color: var(--color-primary);
    padding: 5px 6px;
    font-weight: 600;
    border-radius: 100%;
    font-size: 18px;
}
.value-item strong { color: var(--color-primary-dark); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  width: 55%;
  margin: auto;
}
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  background: var(--color-primary-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo span { font-family: var(--font-display); font-size: 1.6rem; color: var(--color-primary); }
.team-card h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.team-role { font-size: 0.82rem; color: var(--color-text-muted); }

/* -------------------- 11. PORTFOLIO PAGE -------------------- */
.portfolio-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.filter-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-btn.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.portfolio-item { transition: opacity 0.2s ease, transform 0.2s ease; }
.portfolio-item[hidden] { display: none; }

/* Placeholder "book cover" card â€” a designed stand-in until real, licensed
   cover art is supplied. Deliberately styled (not a gray box) so the page
   still reads as a finished portfolio, not an obvious placeholder screen. */
.book-cover-placeholder {
  aspect-ratio: 2/3;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-2);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.book-cover-placeholder::after {
  content: "";
  position: absolute; inset: 0;
  /* background: linear-gradient(180deg, rgb(0 0 0 / 73%) 40%, rgba(0, 0, 0, 0.35) 100%); */
  background: #ffffff;
  background: radial-gradient(circle, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
}
.book-cover-placeholder .cover-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.book-cover-placeholder .cover-genre {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  position: relative; z-index: 1;
}
.book-cover-placeholder .cover-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
  position: relative; z-index: 1;
}
.portfolio-caption { margin-top: 0.6rem; text-align: center; }
.portfolio-caption h3 { font-size: 0.92rem; margin-bottom: 0.1rem; }
.portfolio-caption span { font-size: 0.78rem; color: var(--color-text-muted); }

/* A handful of deep, book-jacket-appropriate gradient palettes to cycle
   through for placeholder covers â€” swap out via inline style once real
   cover art exists. */
.cover-palette-1 { background: linear-gradient(155deg, #1E4438, #0F2A22); }
.cover-palette-2 { background: linear-gradient(155deg, #7A4E3C, #4A2E22); }
.cover-palette-3 { background: linear-gradient(155deg, #3C4A6B, #21283E); }
.cover-palette-4 { background: linear-gradient(155deg, #6B3C57, #3E2130); }
.cover-palette-5 { background: linear-gradient(155deg, #4E5C3C, #2B3320); }
.cover-palette-6 { background: linear-gradient(155deg, #B5883C, #8F6C2E); }

/* -------------------- 12. FAQ PAGE -------------------- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.3rem var(--space-3);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary-dark);
  position: relative;
  display: flex;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-accent-dark);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  padding-bottom: 1.1rem;
  margin-bottom: 0;
  font-size: 0.94rem;
  max-width: 680px;
}

.faq-contact-note {
  text-align: center;
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.faq-contact-note p { margin-bottom: var(--space-2); }

/* -------------------- 13. RESPONSIVE (about / portfolio / faq) -------------------- */
@media (max-width: 1024px) {
  .about-story-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-item summary { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .brand img {
    height: 33px;
  }
  .site-header {padding-top: 20px;}
  .footer-brand img {
    height: 40px;
  }
  .svc-arrow {
    top: 20% !Important;
  }
}
@media (max-width: 1199px) {
  .header-inner {flex-wrap: wrap;height: auto;padding-top: 20px;}
  .site-header {height: 100%;padding-bottom: 20px;}
}

/* -------------------- 14. LEGAL PAGES -------------------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-updated {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.legal-note {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}
.legal-note strong { color: var(--color-primary-dark); }
.legal-content h2 {
  font-size: 1.3rem;
  margin-top: var(--space-4);
  margin-bottom: 0.75rem;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
  list-style: disc;
}
.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
  font-size: 0.97rem;
}
.legal-content a { color: var(--color-primary); text-decoration: underline; }

/* -------------------- 15. QUOTE FORM FIELDS (shared partial) -------------------- */
.qf-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.qf-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xmd);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--color-text);
}
.qf-error { color: #B33A3A; }

/* Dark-section variant: used when the quote form sits on a deep-green
   background (homepage lead section) instead of a white card. */
.qf-on-dark .qf-label { color: rgba(255,255,255,0.92); }
.qf-on-dark .qf-input { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #fff; }
.qf-on-dark .qf-input::placeholder { color: rgba(255,255,255,0.5); }
.qf-on-dark .qf-input option { color: #1F1F1F; }
.qf-on-dark p { color: rgba(255,255,255,0.65); }
.qf-on-dark p a { color: rgba(255,255,255,0.9); }

/* -------------------- 16. PROCESS FLOW (zigzag, curved SVG connector, scroll-reveal) -------------------- */
.process-flow-section { overflow: hidden; }
.process-flow {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.process-flow-connector {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.process-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  gap: var(--space-3);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.process-step.is-visible { opacity: 1; transform: translateY(0); }

.process-step-content {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.process-step-number {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.3rem;
}
.process-step-content h3 { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--color-text); }
.process-step-content p { font-size: 0.92rem; color: var(--color-text-secondary); margin-bottom: 0; }

.process-step-icon {
  grid-column: 2;
  justify-self: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px var(--color-bg-alt), var(--shadow-md);
  transition: transform 0.3s ease;
}
.process-step-icon.is-accent { background: var(--color-accent); }
.process-step-icon:hover { transform: scale(1.1); }
.process-step-icon svg { width: 32px; height: 32px; }

.process-step-left .process-step-content { grid-column: 1; text-align: right; }
.process-step-left .process-step-icon { grid-column: 2; }

.process-step-right .process-step-icon { grid-column: 2; }
.process-step-right .process-step-content { grid-column: 3; text-align: left; }

/* -------------------- 17. SERVICES CAROUSEL (curved, replaces plain services grid) -------------------- */
.svc-carousel-section {
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-4) var(--space-5);
  position: relative;
  overflow: hidden;
}
.svc-carousel-section::before {
  content: "";
  position: absolute;
  top: -20%; left: -8%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(181,136,60,0.16) 0%, transparent 70%);
  pointer-events: none;
}

.svc-features {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  padding-bottom: var(--space-3);
}
.svc-feature {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0.6rem;
  border-right: 1px solid rgba(255,255,255,0.16);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.svc-feature.show { opacity: 1; transform: translateY(0); }
.svc-feature:last-child { border-right: none; }
.svc-feature-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.6rem;
  color: var(--color-accent);
}
.svc-feature-icon svg { width: 20px; height: 20px; }
.svc-feature h6 { font-size: 0.78rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.2rem; }
.svc-feature p { font-size: 0.72rem; color: rgba(255,255,255,0.6); margin-bottom: 0; }

.svc-divider {
  position: relative; z-index: 2;
  width: 82%; max-width: 1000px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  margin: 0 auto var(--space-4);
}

.svc-main {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.svc-left { width: 300px; min-width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 1rem; padding-bottom: 0.5rem; }
.svc-left .eyebrow { color: var(--color-secondary); }
.svc-paragraph { color: rgba(255,255,255,0.82); font-size: 0.92rem; line-height: 1.7; margin-bottom: 0; }
.svc-chips { display: flex; flex-direction: column; gap: 0.6rem; }
.svc-chip { display: flex; align-items: center; gap: 0.6rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-sm); padding: 0.55rem 0.75rem; }
.svc-chip-icon { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-accent); }
.svc-chip-icon svg { width: 14px; height: 14px; }
.svc-chip-text { font-size: 0.8rem; color: #fff; }

.svc-center { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.svc-stage { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }
.svc-arrow {
  position: absolute; top: 44%; transform: translateY(-50%); z-index: 10;
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  background: transparent; color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.25s ease;
}
.svc-arrow:hover { background: #fff; color: var(--color-primary-dark); border-color: #fff; }
.svc-arrow-left { left: -6px; }
.svc-arrow-right { right: -6px; }

.svc-curve-wrap { position: relative; width: 100%; height: 280px; overflow: visible; }
.svc-curve-track { position: absolute; inset: 0; }
/* .svc-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform-origin: bottom center;
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  will-change: transform, opacity;
} */
/* NEW: */
.svc-item {
  position: absolute;
  left: 0;
  top: -50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform-origin: bottom center;
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
/* .svc-item-circle {
  border-radius: 50%;
  background: linear-gradient(155deg, #ffffff, #e6e6e6);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1), height 0.6s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease, filter 0.3s ease;
  color: var(--color-primary);
} */
.svc-item-circle {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: linear-gradient(155deg, #ffffff, #e6e6e6);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transform-origin: center center;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.4s ease,
              filter 0.5s ease;
  will-change: transform, filter;
  color: var(--color-primary);
}
@media (max-width: 768px) {
  .svc-item-circle { width: 92px; height: 92px; }
}
.svc-item.is-active .svc-item-circle { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 5px var(--color-accent); color: var(--color-primary-dark); }
.svc-item:not(.is-active) .svc-item-circle { filter: grayscale(0.35) brightness(0.8); }
.svc-item-circle svg { width: 42%; height: 42%; }

.svc-center-content { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 0.9rem; }
.svc-heading { font-size: clamp(16px, 2vw, 22px); font-weight: 800; letter-spacing: 0.08em; color: #fff; text-transform: uppercase; margin-bottom: 0; transition: opacity 0.3s ease; }
.svc-heading span { display: block; color: rgba(255,255,255,0.6); font-size: 0.55em; letter-spacing: 0.15em; font-weight: 500; margin-top: 0.4rem; text-transform: none; }
.svc-cta {
  display: inline-block; margin-top: 0.9rem;
  padding: 0.7rem 1.7rem;
  background: transparent; border: 2px solid #fff; color: #fff;
  border-radius: 50px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.3s ease;
}
.svc-cta:hover { background: #fff; color: var(--color-primary-dark); }

.svc-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
.svc-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.5); padding: 0; cursor: pointer; transition: all 0.25s ease; }
.svc-dot.is-active { background: var(--color-accent); border-color: var(--color-accent); transform: scale(1.2); }

.svc-content-fade { transition: opacity 0.3s ease; }
.svc-content-fade.fading { opacity: 0; }

/* -------------------- 18. HOMEPAGE LEAD-FORM SECTION (dark, form left / image right) -------------------- */
.lead-form-section {
  background: var(--color-primary-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  position: relative;
  overflow: hidden;
}
.lead-form-section::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(181,136,60,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.lead-form-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: var(--space-5);
  align-items: center;
  position: relative;
  z-index: 1;
}
.lead-form-copy .eyebrow { color: var(--color-accent); }
.lead-form-copy h2 { color: #fff; margin-bottom: 0.75rem; overflow-wrap: break-word; }
.lead-form-copy p.lead { color: rgba(255,255,255,0.75); margin-bottom: 0; overflow-wrap: break-word; }
.lead-form-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  scroll-margin-top: calc(var(--header-height) + 16px);
  min-width: 0;
}
/* Grid items default to min-width:auto, so nested grids/selects with long
   option text refuse to shrink below their content and blow out the card
   width on narrow screens. Force the whole chain down to the container width. */
.lead-form-grid,
.lead-form-grid > * {
  min-width: 0;
}
.lead-form-card form,
.lead-form-card form > div,
.lead-form-card form > div > div {
  min-width: 0;
}
.qf-input { min-width: 0; }

.lead-form-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.book-cover-showcase {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 2/3.05;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--color-accent) 0%, var(--color-accent-dark) 55%, #3d2f14 100%);
  box-shadow: 0 30px 60px rgba(0,0,0,0.45), 0 10px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  color: #fff;
  position: relative;
  transform: rotate(-2deg);
}
.book-cover-showcase::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  margin: 10px;
  pointer-events: none;
}
.book-cover-showcase .cover-eyebrow { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.book-cover-showcase .cover-title-lg { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; overflow-wrap: break-word; }
.book-cover-showcase .cover-author { font-size: 0.8rem; opacity: 0.8; }

/* -------------------- 19. TESTIMONIALS CAROUSEL (3-of-6 visible, page-based sliding) -------------------- */
.testi-carousel-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.testi-arrow {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary-dark);
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.testi-arrow:hover:not(:disabled) { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.testi-arrow:disabled { opacity: 0.3; cursor: not-allowed; }

.testi-viewport {flex: 1;overflow: hidden;padding: 10px 0;}
.testi-track { display: flex; transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1); }
.testi-card-outer { flex: 0 0 33.3333%; padding: 0 0.6rem; box-sizing: border-box; }

.testi-card {
  position: relative;
  height: 100%;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  border-top: 4px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testi-card.accent-gold { border-top-color: var(--color-accent); }
.testi-card.accent-dark { border-top-color: var(--color-primary-dark); }

.testi-card::before {
  content: "\201C";
  position: absolute;
  top: -6px; right: 12px;
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--color-bg-alt);
  z-index: 0;
  line-height: 1;
  pointer-events: none;
}
.testi-stars { position: relative; z-index: 1; display: flex; gap: 0.15rem; margin-bottom: 0.7rem; }
.testi-stars svg { width: 14px; height: 14px; color: var(--color-accent); }
.testi-text { position: relative; z-index: 1; font-size: 0.9rem; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: 1.1rem; }
.testi-person { position: relative; z-index: 1; display: flex; align-items: center; gap: 0.7rem; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  color: #fff;
  background: var(--color-primary);
  flex-shrink: 0;
}
.testi-card.accent-gold .testi-avatar { background: var(--color-accent-dark); }
.testi-card.accent-dark .testi-avatar { background: var(--color-primary-dark); }
.testi-name { font-weight: 700; font-size: 0.88rem; color: var(--color-primary-dark); }
.testi-role { font-size: 0.76rem; color: var(--color-text-muted); }

.testi-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: var(--space-3); }
.testi-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-border); border: none; padding: 0; transition: all 0.2s ease; }
.testi-dots .dot.is-active { background: var(--color-primary); transform: scale(1.3); }
.testi-note { text-align: center; font-size: 0.78rem; color: var(--color-text-muted); margin-top: var(--space-2); }

/* -------------------- 20. RESPONSIVE (process / services carousel / lead-form / testimonials) -------------------- */
@media (max-width: 1024px) {
  .svc-main { flex-direction: column; align-items: center; }
  .svc-left { order: 2; width: 100%; max-width: 480px; align-items: center; text-align: center; }
  .svc-center { order: 1; width: 100%; }
  .lead-form-grid { grid-template-columns: 1fr; }
  .lead-form-media { order: -1; margin-bottom: var(--space-3); }
  .book-cover-showcase { max-width: 200px; }
  .testi-card-outer { flex-basis: 50%; }
}
@media (max-width: 768px) {
  .process-flow-connector { display: none; }
  .process-step,
  .process-step-right {
    grid-template-columns: 64px 1fr;
    gap: var(--space-2);
  }
  .process-step-icon,
  .process-step-left .process-step-icon,
  .process-step-right .process-step-icon {
    grid-column: 1;
    grid-row: 1;
    width: 60px;
    height: 60px;
  }
  .process-step-icon svg { width: 24px; height: 24px; }
  .process-step-content,
  .process-step-left .process-step-content,
  .process-step-right .process-step-content {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }

  .svc-features { flex-wrap: wrap; }
  .svc-feature { flex: 0 0 33.3333%; }
  .svc-curve-wrap { height: 220px; }
  .svc-arrow-left { left: 4px; }
  .svc-arrow-right { right: 4px; }

  .qf-input, .lead-form-section [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  .testi-card-outer { flex-basis: 100%; }
}
@media (max-width: 480px) {
  .lead-form-section { padding: var(--space-4) var(--space-3); }
  .svc-feature { flex-basis: 50%; }
  .svc-feature p { display: none; }
  .testi-arrow { width: 38px; height: 38px; font-size: 1.1rem; }

  /* Google's reCAPTCHA widget is a fixed 304px wide, wider than the
     lead-form-card's inner width on very small phones — scale it down
     so it doesn't push the card past the viewport edge. */
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: left top;
  }
}

/* -------------------- 8. RESPONSIVE (home components) -------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* -------------------- 7. RESPONSIVE -------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 72px; }
  .nav-toggle { display: inline-flex; }
  /* .header-phone span { display: none; } */

  .main-nav {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    bottom: 0;
    width: 100%;
    background: var(--color-bg);
    padding: var(--space-3);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }
  .main-nav.is-open { transform: translateX(0); height: 100vh;}
  .nav-list { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--color-border); }
  .nav-link { padding: 0.9rem 0.2rem; justify-content: space-between; width: 100%; }
  .nav-link::after { display: none; }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1; visibility: visible;
    box-shadow: none;
    border: none;
    display: none;
    padding-left: var(--space-2);
  }
  .nav-item.is-open .dropdown { display: block; }
  .header-actions .btn-outline { display: none; }
  .mobile-only-cta { display: block; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .section { padding: var(--space-5) 0; }
  .btn { width: 100%; }
  .header-actions .btn { width: auto; }
}

/* -------------------- 9. FAQ -------------------- */
.faq-section {
  background: var(--color-primary-dark);
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-6);
  align-items: start;
  max-height: 450px;
  overflow: scroll;
  overflow-x: hidden;
}

.faq-grid::-webkit-scrollbar {
  width: 6px;
  background-color: #3b8a7d;
  border-radius: 10px
}
.faq-grid::-webkit-scrollbar-track {
  background-color: #3b8a7d;
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3)
}
.faq-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(213deg, #124749 -39.81%, #124749 85.21%);
  border-radius: 10px
}

.faq-intro { position: sticky; top: 0; }
.faq-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.faq-label-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}
.faq-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.5rem + 2vw, 3rem);
  line-height: 1.12;
  color: var(--color-on-primary);
  margin-bottom: var(--space-2);
}
.faq-tagline {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-on-primary);
  margin-bottom: var(--space-2);
}
.faq-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 42ch;
  margin-bottom: 0;
}

.faq-list-wrap { position: relative; display: flex; gap: var(--space-3); }
.faq-scroll-track {
  position: relative;
  flex-shrink: 0;
  width: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
}
.faq-scroll-thumb {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  border-radius: 2px;
  background: var(--color-accent);
  transition: transform 0.15s ease, height 0.15s ease;
}

.faq-list { flex: 1; display: flex; flex-direction: column; gap: var(--space-2); }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.faq-item.is-open { border-color: var(--color-accent); background: rgba(255,255,255,0.04); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-on-primary);
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--color-accent);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 10px; }
.faq-item.is-open .faq-icon { background: var(--color-accent); border-color: var(--color-accent); }
.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after { background: var(--color-primary-dark); }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }

.faq-answer-wrap {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}
.faq-answer {
  padding: 0 1.3rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 1024px) {
  .faq-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .faq-intro { position: static; }
}
@media (max-width: 480px) {
  .faq-heading { font-size: clamp(1.6rem, 1.3rem + 3vw, 2.2rem); }
  .faq-question { padding: 0.95rem 1rem; font-size: 0.95rem; }
  .faq-answer { padding: 0 1rem 1rem; }
}

/* -------------------- 10. PORTFOLIO -------------------- */
.portfolio-section {
    background: var(--color-primary-dark);
    padding: 80px 48px;
    color: var(--color-on-primary);
  }

  /* ---------- Header row ---------- */
  .portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
  }

  .portfolio-heading-block {
    max-width: 480px;
  }

  .portfolio-heading-block h2 {
    color: var(--color-on-primary);
  }

  .portfolio-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
  }

  .portfolio-eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    display: inline-block;
  }

  .portfolio-heading-block h2 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.01em;
  }

  .portfolio-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    max-width: 320px;
  }

  .portfolio-stat-row {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .portfolio-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-on-primary);
  }

  .portfolio-stat .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
  }

  .portfolio-cta {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-on-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  .portfolio-cta:hover {
    color: var(--color-accent);
  }

  .portfolio-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
    text-align: right;
  }

  /* ---------- Gallery row ---------- */
  .gallery {
    display: flex;
    height: 460px;
    gap: 6px;
    width: 100%;
  }

  .gallery-item {
    position: relative;
    flex: 1 1 0;
    min-width: 60px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: flex-grow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .gallery-item.active {
    flex-grow: 5;
  }

  .gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
  }

  .gallery-item.active img {
    transform: scale(1.03);
  }

  .gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0) 65%);
  }

  .gallery-item-info {
    position: absolute;
    left: 20px;
    bottom: 20px;
    right: 16px;
    z-index: 2;
  }

  .gallery-item-number {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    opacity: 0.9;
  }

  .gallery-item-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-on-primary);
    white-space: nowrap;
    letter-spacing: -0.01em;
    text-transform: uppercase;
  }

  .gallery-item-sub {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 4px;
    white-space: nowrap;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.35s ease 0.1s, max-height 0.35s ease;
  }

  .gallery-item.active .gallery-item-sub {
    opacity: 1;
    max-height: 20px;
  }

  .gallery-item.active .gallery-item-title {
    font-size: 20px;
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 900px) {
    .portfolio-section { padding: 56px 24px; }
    .portfolio-header { flex-direction: column; align-items: flex-start; }
    .portfolio-meta { align-items: flex-start; max-width: 100%; }
    .portfolio-desc { text-align: left; }

    .gallery {
      flex-direction: column;
      height: auto;
    }
    .gallery-item {
      height: 220px;
      flex: none;
    }
    .gallery-item.active {
      height: 220px;
      flex-grow: 0;
    }
    .gallery-item.active img { transform: none; }
    .gallery-item.active .gallery-item-title { font-size: 15px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .gallery-item, .gallery-item img, .gallery-item-sub {
      transition: none !important;
    }
  }

  /* css for process section start */
  
  /* css for process section end */


  /* css for associates slider */

  .associates-logo {
    padding: 0;
    text-align: center;
    margin-top: 50px;
  }

  .associates-logo .associate-slider {
    background: #fff;
    border: 3px solid var(--color-primary);
    border-radius: 50em;
    max-height: 88px;
    padding: 10px 35px;
    position: relative;
    overflow: hidden;
  }

  .associates-logo .associate-slider::before,
  .associates-logo .associate-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
  }
  .associates-logo .associate-slider::before {
    left: 0;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0));
  }
  .associates-logo .associate-slider::after {
    right: 0;
    background: linear-gradient(270deg, #fff, rgba(255,255,255,0));
  }

  .associates-logo .associate-track-wrap {
    display: flex;
    width: max-content;
    animation: associates-marquee 25s linear infinite;
  }

  .associates-logo .associate-slider:hover .associate-track-wrap {
    animation-play-state: paused;
  }

  .associates-logo .associate-track {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 30px;
  }

  .associates-logo .associate-track img {
    height: 50px;
    width: 200px;
    object-fit: contain;
    flex-shrink: 0;
  }

  @keyframes associates-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  @media (max-width: 575.98px) {
    .associates-logo .associate-track img {
      height: 28px;
      width: 80px;
    }
    .associates-logo .associate-slider {
      padding: 15px 0;
      border-radius: 50px;
    }
    .svc-arrow {
      top: 32%;
    }
  }

  /* css process */
  /* Rhythm */
  --card-radius: 22px;
  --shadow-soft: 0 10px 30px rgba(18, 71, 73, 0.07);
  --shadow-lift: 0 26px 50px rgba(18, 71, 73, 0.14);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  /* Derived glow tint from the accent color — used for soft box-shadow halos */
  --color-glow: rgba(59, 138, 125, 0.28);
 
  /* Journey coordinate space — must match the SVG viewBox in index.html */
  --journey-viewbox-w: 1000;
  --journey-viewbox-h: 2150;
}
 
/* =============================================================
   Reset (scoped, minimal — this is a section, not a whole page)
============================================================= */
.process, .process *, .process *::before, .process *::after {
  box-sizing: border-box;
}
 
.process {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  padding: 120px 24px 160px;
  color: var(--color-text);
  isolation: isolate;
}
 
/* =============================================================
   Ambient background
============================================================= */
.process__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
 
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--color-primary) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.035;
}
 
.bg-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--color-accent), transparent 70%);
  opacity: 0.08;
  filter: blur(2px);
  animation: orb-float 18s ease-in-out infinite;
}
 
.bg-orb--1 { width: 420px; height: 420px; top: -120px; left: -140px; animation-duration: 22s; }
.bg-orb--2 { width: 300px; height: 300px; top: 45%; right: -120px; animation-duration: 26s; animation-delay: -6s; }
.bg-orb--3 { width: 260px; height: 260px; bottom: -60px; left: 12%; animation-duration: 20s; animation-delay: -12s; }
 
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -30px) scale(1.06); }
}
 
/* =============================================================
   Header
============================================================= */
.process__header {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto 96px;
  text-align: center;
}
 
.process__eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 18px;
}
 
.process__heading {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  margin: 0 0 20px;
}
 
.process__subtitle {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0 auto;
  max-width: 560px;
}
 
/* =============================================================
   Journey rail — desktop/tablet (curved SVG + absolutely
   positioned nodes/cards, all sharing one % coordinate space)
============================================================= */
.journey {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  min-height: 2000px;
}
 
.journey__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
 
.journey__track {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 2.5;
  stroke-linecap: round;
}
 
/* The animated "ink" overlay drawn on top of the static faint track */
.journey__track--draw {
  stroke: var(--color-accent);
  filter: drop-shadow(0 0 6px var(--color-glow));
  /* stroke-dasharray / offset are set inline by script.js once the
     real path length is known, then animated on scroll */
}
 
.pen-marker { transition: opacity 0.4s var(--ease-premium); }
.pen-marker__halo { fill: var(--color-glow); }
.pen-marker__dot { fill: var(--color-accent); }
 
.journey__line-mobile { display: none; }
 
.journey__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
 
/* Each milestone anchors a node + card at a shared % position,
   derived from the same viewBox units the SVG path was drawn in. */
.milestone {
  position: absolute;
  left: calc(var(--nx));
  top: calc(var(--ny) / var(--journey-viewbox-h) * 100%);
  transform: translate(-50%, -50%);
}
 
.milestone__node {
  position: relative;
  z-index: 3;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: border-color 0.35s var(--ease-premium), box-shadow 0.35s var(--ease-premium), transform 0.35s var(--ease-premium);
}
 
.milestone__node-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  display: flex;
  transition: transform 0.35s var(--ease-premium), color 0.35s var(--ease-premium);
}
 
.milestone__node-icon svg { width: 100%; height: 100%; }
 
/* Hover: gentle scale, glow, border shift, icon tilt */
.milestone__node:hover {
  transform: scale(1.07);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 8px var(--color-glow), var(--shadow-soft);
}
 
.milestone__node:hover .milestone__node-icon {
  color: var(--color-accent);
  transform: rotate(5deg);
}
 
/* Active (scrolled into view): node settles into its "arrived" state
   and the icon gets a single confirming pulse — like ink landing. */
.milestone.is-active .milestone__node {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 10px var(--color-glow), var(--shadow-soft);
}
 
.milestone.is-active .milestone__node-icon {
  animation: icon-pulse 0.6s var(--ease-premium);
}
 
@keyframes icon-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.22); }
  100% { transform: scale(1); }
}
 
/* =============================================================
   Cards
============================================================= */
.card {
  position: absolute;
  top: 50%;
  width: min(360px, 40vw);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg-alt) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  padding: 32px 32px 30px;
  transform: translateY(-50%);
  opacity: 0;
  transition: transform 0.6s var(--ease-premium), box-shadow 0.35s var(--ease-premium), opacity 0.6s var(--ease-premium);
}
 
.card--right { left: calc(100% + 46px); }
.card--left  { right: calc(100% + 46px); }
 
/* Reveal state, driven by IntersectionObserver in script.js */
.card {
  transform: translateY(-38%);
}
.milestone.is-visible .card {
  opacity: 1;
  transform: translateY(-50%);
}
 
/* Accent bar that appears on hover, plus the signature lift */
.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 3px;
  border-radius: 3px;
  background: var(--color-accent);
  opacity: 0;
  transform: scaleY(0.6);
  transition: opacity 0.3s var(--ease-premium), transform 0.3s var(--ease-premium);
}
 
.card:hover {
  transform: translateY(-58%);
  box-shadow: var(--shadow-lift);
}
 
.card:hover::before {
  opacity: 1;
  transform: scaleY(1);
}
 
.card__ghost-number {
  position: absolute;
  top: 6px;
  right: 22px;
  font-size: 72px;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.06;
  line-height: 1;
  user-select: none;
}
 
.card__title {
  position: relative;
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
 
.card__text {
  position: relative;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0;
}
 
/* Finishing flourish at the end of the ink trail */
.journey__finish {
  position: absolute;
  left: calc(var(--nx));
  top: calc(var(--ny) / var(--journey-viewbox-h) * 100%);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
 
.journey__finish-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 10px var(--color-glow);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.5s var(--ease-premium), transform 0.5s var(--ease-premium);
}
 
.journey__finish-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0;
  transition: opacity 0.5s var(--ease-premium) 0.1s;
}
 
.journey__finish.is-visible .journey__finish-dot {
  opacity: 1;
  transform: scale(1);
}
.journey__finish.is-visible .journey__finish-label {
  opacity: 1;
}
 
/* =============================================================
   Tablet — same coordinate system, the curve simply narrows
   naturally with the container; cards shrink with it.
============================================================= */
@media (max-width: 1024px) {
  .journey { min-height: 2200px; }
  .card { width: min(300px, 46vw); padding: 26px 26px 24px; }
  .card__ghost-number { font-size: 56px; }
  .card__title { font-size: 21px; }
}
 
/* =============================================================
   Mobile — drop the curve entirely; simple vertical stack with
   a straight connecting line. No horizontal scrolling, ever.
============================================================= */
@media (max-width: 767px) {
  .process { padding: 88px 20px 120px; }
  .process__heading { font-size: 36px; }
  .process__subtitle { font-size: 16px; }
  .process__header { margin-bottom: 64px; }
 
  .journey { min-height: 0; }
  .journey__svg { display: none; }
 
  .journey__line-mobile {
    display: block;
    position: absolute;
    left: 27px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
  }
 
  .journey__line-mobile::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    background: var(--color-accent);
    box-shadow: 0 0 8px var(--color-glow);
    transform-origin: top;
    transform: scaleY(var(--mobile-progress, 0));
    transition: transform 0.1s linear;
  }
 
  .journey__list {
    display: flex;
    flex-direction: column;
    gap: 44px;
    padding-left: 56px;
  }
 
  .milestone {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
  }
 
  .milestone__node {
    position: absolute;
    left: -56px;
    top: 0;
    width: 44px;
    height: 44px;
    margin: 0;
  }
 
  .milestone__node-icon { width: 20px; height: 20px; }
 
  .card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    transform: translateY(16px);
    padding: 26px 24px 24px;
  }
 
  .milestone.is-visible .card { transform: translateY(0); }
  .card:hover { transform: translateY(-6px); }
 
  .card__ghost-number { font-size: 48px; top: 4px; right: 16px; }
 
  .journey__finish {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    align-items: flex-start;
    margin: 8px 0 0 56px;
  }
  .svc-feature:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.16);
  }
  .view-moibile {
    grid-template-columns: 1fr !important;
  }
  /* Grid items default to min-width:auto, so the form's <select> fields
     (long option text) refuse to shrink below their content and blow out
     #quote-form / the side-info boxes past the viewport on narrow phones. */
  .view-moibile,
  .view-moibile > * {
    min-width: 0;
  }
  #quote-form form,
  #quote-form form > div,
  #quote-form form > div > div {
    min-width: 0;
  }
}
 
/* =============================================================
   Motion preferences
============================================================= */
@media (prefers-reduced-motion: reduce) {
  .bg-orb { animation: none; }
  .card, .milestone__node, .milestone__node-icon, .journey__finish-dot, .journey__finish-label {
    transition: opacity 0.2s linear !important;
    animation: none !important;
  }
  .card { opacity: 1 !important; transform: none !important; }
  .journey__finish-dot, .journey__finish-label { opacity: 1 !important; transform: none !important; }
}
/* =============================================================
   Mobile responsive
============================================================= */

@media (max-width: 565px){
.header-inner {
    flex-wrap: nowrap;
    width: 100%;
    padding: 15px 15px;
}  
.header-phone span {
    font-size: 10px;
}
.header-phone-icon {
    display: none;
}
.header-phone {
    padding: 7px;
}
.brand span {
    font-size: 12px;
}
.header-actions {
    gap: 0;
}
header.site-header {
    padding: 0;
}
}
@media (max-width: 340px) {
  .header-inner {
    flex-wrap: wrap;
  }
}