/* ===========================================
   REMOCARE — Custom CSS
   Editorial / Clinical aesthetic
   =========================================== */

:root {
  --cream: #FAF8F4;
  --ink: #0A3D3A;
  --ink-soft: #1A524C;
  --sage: #7BA098;
  --sage-deep: #5A8278;
  --sand: #E8E2D5;
  --sand-warm: #D4C9B5;
  --rust: #B85C3D;
  /* Brand logo color — the deep teal from the logo mark (legible on cream).
     The mark's bright tone is ~#04D1A6; this deeper teal reads cleanly as text. */
  --logo-color: #0E7E69;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-feature-settings: "ss01", "cv01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Display font tuning */
.font-display {
  font-feature-settings: "ss01", "ss02";
  letter-spacing: -0.02em;
}

/* ============ HEADER / NAV ============ */
/* Top utility bar */
.top-bar {
  overflow: hidden;
  max-height: 40px;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
#site-header.header-scrolled .top-bar {
  max-height: 0;
  opacity: 0;
}
.top-bar-promo {
  color: rgba(250, 248, 244, 0.92);
  transition: color 0.2s;
  overflow: hidden;
}
.top-bar-promo:hover { color: #FAF8F4; }

/* Main nav */
#nav {
  background: transparent;
  backdrop-filter: blur(0);
}
#nav.is-scrolled {
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(10, 61, 58, 0.06);
}

/* Visible shrink on scroll — nav row + logo + wordmark all compact */
#nav > div {
  transition: height 0.3s ease;
}
#nav.is-scrolled > div {
  height: 58px;
}
.brand-logo {
  transition: height 0.3s ease;
}
#nav.is-scrolled .brand-logo {
  height: 28px;
}
.brand-wordmark {
  transition: font-size 0.3s ease;
}
#nav.is-scrolled .brand-wordmark {
  font-size: 1.05rem;
}

/* Nav links + dropdown triggers — always-on outline pills */
.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(10, 61, 58, 0.72);
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(10, 61, 58, 0.35);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.nav-link:hover,
.nav-trigger:hover,
.nav-group:hover .nav-trigger,
.nav-group:focus-within .nav-trigger {
  color: var(--ink);
  border-color: rgba(10, 61, 58, 0.6);
}
.nav-trigger svg { transition: transform 0.25s ease; }
.nav-group:hover .nav-trigger svg,
.nav-group:focus-within .nav-trigger svg { transform: rotate(180deg); }

/* Dropdowns */
.nav-group { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.6rem; /* hover bridge so the menu doesn't vanish in the gap */
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 60;
}
.nav-dropdown--right { left: auto; right: 0; }
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-inner {
  background: var(--cream);
  border: 1px solid rgba(10, 61, 58, 0.08);
  border-radius: 1rem;
  box-shadow: 0 20px 50px -12px rgba(10, 61, 58, 0.18);
  padding: 0.6rem;
}
.nav-mega {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  width: 540px;
}
.nav-dropdown-simple { min-width: 230px; }

.nav-mega-item,
.nav-drop-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  transition: background 0.18s;
}
.nav-mega-item:hover,
.nav-drop-item:hover { background: rgba(123, 160, 152, 0.12); }
.nav-mega-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 0.6rem;
  background: rgba(123, 160, 152, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-deep);
}
.nav-mega-title,
.nav-drop-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.nav-mega-desc {
  display: block;
  font-size: 0.78rem;
  color: rgba(10, 61, 58, 0.55);
  margin-top: 0.1rem;
}

/* Icon buttons (search, hamburger) */
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nav-icon-btn:hover {
  background: rgba(10, 61, 58, 0.06);
  color: var(--sage-deep);
}

/* Mobile menu group labels */
.mobile-group-label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sage-deep);
  padding: 0.4rem 0 0.15rem;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.search-overlay[hidden] { display: none; }
.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 61, 58, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: searchFade 0.2s ease;
}
.search-panel {
  position: relative;
  margin-top: 12vh;
  width: min(620px, 92vw);
  background: var(--cream);
  border-radius: 1.1rem;
  border: 1px solid rgba(10, 61, 58, 0.08);
  box-shadow: 0 30px 70px -15px rgba(10, 61, 58, 0.3);
  overflow: hidden;
  animation: searchIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes searchFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes searchIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.search-input-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(10, 61, 58, 0.08);
}
.search-input-row svg { color: var(--sage-deep); flex-shrink: 0; }
#search-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 1.05rem;
  color: var(--ink);
  font-family: inherit;
  min-width: 0;
}
#search-input:focus { outline: none; }
.search-close {
  font-family: 'Geist Mono', monospace;
  font-size: 0.68rem;
  color: rgba(10, 61, 58, 0.5);
  border: 1px solid rgba(10, 61, 58, 0.15);
  border-radius: 0.4rem;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
  background: none;
  flex-shrink: 0;
}
.search-close:hover { color: var(--ink); border-color: rgba(10, 61, 58, 0.3); }
.search-results {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  max-height: 50vh;
  overflow-y: auto;
}
.search-results li a {
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.85rem;
  border-radius: 0.6rem;
  transition: background 0.15s;
}
.search-results li a:hover,
.search-results li a.is-active { background: rgba(123, 160, 152, 0.14); }
.search-result-title { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.search-result-desc { font-size: 0.78rem; color: rgba(10, 61, 58, 0.55); margin-top: 0.1rem; }
.search-empty { padding: 1.5rem; text-align: center; color: rgba(10, 61, 58, 0.5); font-size: 0.9rem; }

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .timeline-step {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .timeline-track::after {
    transform: scaleX(1);
    transition: none;
  }
}

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 4rem;
  align-items: center;
  width: max-content;
  animation: scroll-marquee 50s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-logo {
  height: 46px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  opacity: 0.45;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s;
  flex-shrink: 0;
}

.marquee-logo:hover {
  opacity: 0.85;
  filter: grayscale(0);
}

@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ SERVICES (alternating rows) ============ */
.service-row {
  position: relative;
}

.service-row + .service-row {
  position: relative;
}

.service-row + .service-row::before {
  content: "";
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: rgba(10, 61, 58, 0.15);
}

@media (min-width: 1024px) {
  .service-row + .service-row::before {
    top: -4rem;
  }
}

.service-illustration {
  position: relative;
  background: var(--sand);
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid rgba(10, 61, 58, 0.05);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s;
}

.service-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

.service-row:hover .service-illustration {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -28px rgba(10, 61, 58, 0.18);
}

@media (min-width: 1024px) {
  .service-illustration {
    padding: 2.25rem;
  }
}

/* ============ BENEFITS TABS ============ */
.benefit-tab {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(10, 61, 58, 0.6);
  background: transparent;
  border: 1px solid rgba(10, 61, 58, 0.12);
  transition: all 0.3s;
  cursor: pointer;
}

.benefit-tab:hover {
  color: var(--ink);
  border-color: rgba(10, 61, 58, 0.3);
}

.benefit-tab.is-active {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
}

.benefit-panel {
  display: none;
  animation: fade-in 0.5s ease-out;
}

.benefit-panel.is-active {
  display: block;
}

.benefit-illustration {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
}

.benefit-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ TESTIMONIALS ============ */
.testimonial-track-wrapper {
  margin: 0 -1rem;
  padding: 0 1rem;
}

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
  position: relative;
  flex: 0 0 calc(100% - 2rem);
  padding: 2.5rem;
  background: rgba(250, 248, 244, 0.04);
  border: 1px solid rgba(250, 248, 244, 0.1);
  border-radius: 1.5rem;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.5s,
              border-color 0.5s,
              box-shadow 0.5s;
  cursor: default;
}

/* Decorative quote mark */
.testimonial-quote-mark {
  position: absolute;
  top: -28px;
  right: 18px;
  font-family: 'Fraunces', serif;
  font-size: 12rem;
  font-weight: 600;
  line-height: 1;
  color: var(--sage);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  user-select: none;
}

/* Subtle radial spotlight on hover */
.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(123, 160, 152, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  background: rgba(250, 248, 244, 0.08);
  border-color: rgba(123, 160, 152, 0.4);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}

.testimonial-card:hover::before {
  opacity: 1;
}

.testimonial-card:hover .testimonial-quote-mark {
  opacity: 0.22;
  transform: translateY(0);
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.06);
  border-color: rgba(123, 160, 152, 0.7);
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    flex: 0 0 calc(33.333% - 1rem);
  }
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(250, 248, 244, 0.15);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s;
}

/* ============ PROCESS TIMELINE (horizontal) ============ */
.process-timeline {
  position: relative;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Horizontal connecting line (static track) */
.timeline-track::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 200px; /* sits aligned with the dots */
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(10, 61, 58, 0.16) 6%,
    rgba(10, 61, 58, 0.16) 94%,
    transparent 100%);
  z-index: 0;
}

/* Animated progress line that fills left-to-right when in view */
.timeline-track::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 199px;
  height: 2px;
  background: linear-gradient(to right, var(--sage-deep), var(--sage));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 2.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
  z-index: 0;
}
.process-timeline.is-visible .timeline-track::after {
  transform: scaleX(1);
}

/* Container is just the scroll trigger — it doesn't fade as a block,
   the individual steps animate in sequence instead */
.process-timeline.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.timeline-step {
  position: relative;
  padding: 0 0.5rem;
  z-index: 1;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.process-timeline.is-visible .timeline-step {
  opacity: 1;
  transform: translateY(0);
}
/* Sequential stagger: step 01 first, then 02, 03, 04 (slower, more noticeable) */
.process-timeline.is-visible .timeline-step:nth-child(1) { transition-delay: 0.10s; }
.process-timeline.is-visible .timeline-step:nth-child(2) { transition-delay: 0.65s; }
.process-timeline.is-visible .timeline-step:nth-child(3) { transition-delay: 1.20s; }
.process-timeline.is-visible .timeline-step:nth-child(4) { transition-delay: 1.75s; }

/* Dot fills with sage as each step lands */
.process-timeline.is-visible .timeline-step .ts-dot {
  background: var(--sage-deep);
  box-shadow: 0 0 0 1px rgba(90, 130, 120, 0.4), 0 0 0 6px rgba(123, 160, 152, 0.12);
}

.ts-graphic {
  height: 180px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0 3%;
}

.ts-graphic svg {
  max-height: 160px;
  width: auto;
}

.ts-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--ink);
  margin: 0 auto 1.25rem;
  position: relative;
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 1px rgba(10, 61, 58, 0.25);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
.process-timeline.is-visible .timeline-step:nth-child(1) .ts-dot { transition-delay: 0.45s; }
.process-timeline.is-visible .timeline-step:nth-child(2) .ts-dot { transition-delay: 1.00s; }
.process-timeline.is-visible .timeline-step:nth-child(3) .ts-dot { transition-delay: 1.55s; }
.process-timeline.is-visible .timeline-step:nth-child(4) .ts-dot { transition-delay: 2.10s; }

.ts-num {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sage-deep);
  margin-bottom: 0.75rem;
  text-align: center;
}

.timeline-step h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
  text-align: center;
  color: var(--ink);
}

.timeline-step p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(10, 61, 58, 0.7);
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
}

.timeline-step p strong {
  color: var(--ink);
  font-weight: 500;
}

/* Desktop: break the timeline out of the page container so it spans wider
   than the surrounding content. Centered in the viewport regardless of
   parent padding/max-width. */
@media (min-width: 1024px) {
  .process-timeline {
    position: relative;
    width: min(calc(100vw - 3rem), 1480px);
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Mobile timeline becomes vertical */
@media (max-width: 1023px) {
  .timeline-track {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .timeline-track::before,
  .timeline-track::after {
    display: none;
  }
  .ts-graphic {
    height: 140px;
    padding: 0;
  }
  .ts-graphic svg {
    max-height: 130px;
  }
  .timeline-step {
    padding: 0;
    border-top: 1px solid rgba(10, 61, 58, 0.1);
    padding-top: 2rem;
  }
  .timeline-step:first-child {
    border-top: none;
    padding-top: 0;
  }
}

/* ============ EHR LOGOS ============ */
.ehr-logo {
  max-height: 66px;
  width: auto;
  margin: 0 auto;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s;
  object-fit: contain;
}
.ehr-logo:hover {
  opacity: 0.9;
  filter: grayscale(0);
}

/* EHR marquee — slower than partner marquee, wider gap, reset logo margins for flex flow */
.marquee-track--ehr {
  gap: 5rem;
  animation-duration: 60s;
}
.marquee-track--ehr .ehr-logo {
  margin: 0;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .marquee-track--ehr {
    gap: 3rem;
    animation-duration: 45s;
  }
  .marquee-track--ehr .ehr-logo {
    max-height: 48px;
  }
}

/* ============ BRAND LOGO ============ */
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-wordmark {
  color: var(--logo-color);
}
/* Footer sits on dark ink — render the logo mark in cream so it stays visible */
.brand-logo--invert {
  filter: brightness(0) invert(1);
}

/* ============ PRICING DIVIDER ============ */
.pricing-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto 4rem;
  max-width: 760px;
}
.pricing-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(10, 61, 58, 0.18));
}
.pricing-divider-line:last-child {
  background: linear-gradient(to left, transparent, rgba(10, 61, 58, 0.18));
}
.pricing-divider-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(10, 61, 58, 0.1);
  border-radius: 999px;
  background: var(--cream);
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sage-deep);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(10, 61, 58, 0.04);
}
.pricing-divider-badge svg {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .pricing-divider {
    gap: 0.9rem;
    margin-bottom: 3rem;
  }
  .pricing-divider-badge {
    font-size: 0.62rem;
    padding: 0.5rem 0.85rem;
    letter-spacing: 0.1em;
  }
}

/* ============ FORM ============ */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(250, 248, 244, 0.6);
  border: 1px solid rgba(10, 61, 58, 0.12);
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--sage-deep);
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(123, 160, 152, 0.15);
}

/* ============ PRICING CARDS ============ */
.pricing-card {
  position: relative;
  padding: 2.5rem;
  background: rgba(123, 160, 152, 0.14);
  border: 1px solid rgba(10, 61, 58, 0.10);
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.4s, box-shadow 0.4s, background 0.3s;
}

.pricing-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.pricing-card .pricing-features {
  flex: 1 1 auto; /* push CTA to the bottom */
  margin-bottom: 2.5rem;
}

.pricing-card-cta {
  margin-top: auto;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(10, 61, 58, 0.15);
}

.pricing-card--featured {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  transform: scale(1.02);
}

.pricing-card--featured:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(10, 61, 58, 0.4);
}

@media (min-width: 1024px) {
  .pricing-card--featured {
    transform: scale(1.04);
  }
  .pricing-card--featured:hover {
    transform: scale(1.04) translateY(-4px);
  }
}

.pricing-card--featured h3 {
  color: var(--cream);
}

@media (min-width: 768px) {
  .pricing-card {
    padding: 3rem;
  }
}

/* ============ FAQ ============ */
.faq-item {
  border-bottom: 1px solid rgba(10, 61, 58, 0.1);
  padding: 1.5rem 0;
}

.faq-question {
  list-style: none;
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-right: 1rem;
  position: relative;
  color: var(--ink);
  transition: color 0.2s;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2540' stroke-width='2'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
  margin-top: 0.25rem;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

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

.faq-answer {
  margin-top: 1rem;
  color: rgba(10, 61, 58, 0.7);
  line-height: 1.7;
  font-size: 1rem;
  animation: faq-slide-down 0.4s ease-out;
}

.faq-answer p + p {
  margin-top: 0.75rem;
}

@keyframes faq-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  .faq-question {
    font-size: 1.5rem;
  }
}

/* ============ BLOG CARDS ============ */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid rgba(10, 61, 58, 0.08);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(10, 61, 58, 0.15);
  border-color: rgba(90, 130, 120, 0.25);
}

.blog-card-image {
  aspect-ratio: 16 / 10;
  background: var(--sand-warm);
  background-size: cover;
  background-position: center;
}

.blog-card-content {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.blog-card-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(10, 61, 58, 0.5);
}

.blog-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: rgba(10, 61, 58, 0.6);
  line-height: 1.55;
  flex: 1;
}

.blog-card-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sage-deep);
}

/* ============ MOBILE TWEAKS ============ */
@media (max-width: 640px) {
  .marquee-track {
    gap: 2.5rem;
    animation-duration: 35s;
  }
  .marquee-logo {
    height: 34px;
    max-width: 130px;
  }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: rgba(10, 61, 58, 0.15); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(10, 61, 58, 0.3); }

/* ============ SELECTION ============ */
::selection {
  background: var(--sage);
  color: var(--ink);
}
