/* Solace — Ellement-inspired landing page with sage/teal palette */

:root {
  --bg: oklch(0.99 0.005 90);
  --text: oklch(0.22 0.02 180);
  --text-muted: oklch(0.42 0.02 180);
  --accent: oklch(0.32 0.06 185);
  --accent-hover: oklch(0.26 0.06 185);
  --banner: oklch(0.92 0.03 175);
  --testimonial-bg: oklch(0.91 0.025 75);
  --conditions-bg: oklch(0.93 0.025 175);
  --border: oklch(0.85 0.02 180);
  --white: oklch(1 0 0);

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

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  --radius-pill: 999px;
  --radius-soft: 14px;
  --radius-blob: 60% 40% 55% 45% / 45% 55% 45% 55%;

  --header-h: 72px;
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  z-index: 9999;
  font-size: 0.875rem;
}
.skip-link:focus { top: 1rem; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: oklch(1 0 0 / 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
}
.logo-mark { width: 28px; height: 28px; color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  padding-bottom: 2px;
}
.nav-link.active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--text);
}
.nav-cta {
  display: none;
}
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-soft);
  padding: 0.5rem 0;
  min-width: 180px;
  box-shadow: 0 8px 24px oklch(0 0 0 / 0.08);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.nav-dropdown-menu a:hover { background: var(--banner); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark {
  background: oklch(0.15 0.02 180);
  color: var(--white);
}
.btn-dark:hover { background: oklch(0.1 0.02 180); }

/* ── Hero ── */
.hero { padding-top: var(--header-h); }

.hero-image-wrap {
  position: relative;
  width: 100%;
  height: clamp(320px, 55vw, 560px);
  overflow: hidden;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: scaleX(1.15);
}

.hero-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text);
}
.hero-content p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero-content em { font-style: italic; }

/* ── Featured By ── */
.featured-by {
  background: var(--banner);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}
.featured-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}
.featured-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.featured-logo {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--accent);
  opacity: 0.85;
}

/* ── Intro Split ── */
.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-md);
  align-items: center;
}
.blob-mask {
  border-radius: var(--radius-blob);
  overflow: hidden;
  aspect-ratio: 4/5;
  max-width: 440px;
  margin: 0 auto;
}
.blob-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.intro-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}
.intro-text-col h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: var(--space-lg);
}
.underline-accent {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ── Marquee ── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  animation: marquee 40s linear infinite;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.marquee-track .dot { opacity: 0.4; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Testimonials ── */
.testimonials {
  padding: var(--space-xxl) var(--space-md);
  text-align: center;
}
.practitioner-testimonials { background: var(--testimonial-bg); }
.customer-reviews { background: var(--testimonial-bg); }

.section-eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.carousel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.carousel-viewport { overflow: hidden; }
.carousel-track { position: relative; min-height: 380px; }
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.testimonial-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-md);
}
.testimonials h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.testimonial-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  max-width: 480px;
}
.testimonials blockquote {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 600px;
  font-style: normal;
}
.customer-reviews blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: var(--space-md);
}
.customer-reviews cite {
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.customer-reviews .btn-dark { margin-top: var(--space-lg); }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 12px oklch(0 0 0 / 0.1);
  transition: box-shadow 0.2s;
  z-index: 2;
}
.carousel-btn:hover { box-shadow: 0 4px 16px oklch(0 0 0 / 0.15); }
.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }

/* ── Quality Accordion ── */
.quality {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-md);
  align-items: start;
}
.quality-image {
  border-radius: var(--radius-soft);
  overflow: hidden;
}
.quality-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.quality-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 500;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.accordion { margin-bottom: var(--space-md); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding: 1rem 2rem 1rem 0;
  cursor: pointer;
  position: relative;
}
.accordion-trigger::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 300;
  transition: transform 0.2s;
}
.accordion-item.open .accordion-trigger::after {
  content: "−";
}
.accordion-panel {
  padding-bottom: 1rem;
}
.accordion-panel p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.accordion-panel[hidden] { display: none; }

.quality-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

/* ── Conditions ── */
.conditions {
  background: var(--conditions-bg);
  padding: var(--space-xxl) var(--space-md);
}
.conditions-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}
.conditions h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.25;
}
.conditions-lists {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.conditions h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}
.link-list { list-style: disc; padding-left: 1.25rem; }
.link-list li { margin-bottom: 0.35rem; }
.link-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.95rem;
}
.link-list a:hover { color: var(--accent); }

/* ── Final CTA ── */
.final-cta {
  position: relative;
  padding: var(--space-xxl) var(--space-md);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.final-cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}
.final-cta-images {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-img {
  position: absolute;
  border-radius: var(--radius-soft);
  object-fit: cover;
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.08);
}
.cta-img-1 {
  width: 160px;
  height: 160px;
  top: 12%;
  left: 8%;
}
.cta-img-2 {
  width: 280px;
  height: 180px;
  bottom: 10%;
  left: 12%;
}
.cta-img-3 {
  width: 200px;
  height: 240px;
  bottom: 15%;
  right: 10%;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) var(--space-md);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.footer-logo { font-size: 1.1rem; }
.footer-nav {
  display: flex;
  gap: var(--space-md);
  font-size: 0.875rem;
}
.footer-nav a:hover { text-decoration: underline; }
.footer-social {
  display: flex;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-email {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-email:hover { color: var(--accent); }

/* ── Mobile ── */
@media (max-width: 900px) {
  .intro-split,
  .quality,
  .conditions-grid {
    grid-template-columns: 1fr;
  }
  .intro-split { gap: var(--space-lg); }
  .intro-text-col { order: -1; }
  .blob-mask { max-width: 100%; aspect-ratio: 16/11; border-radius: var(--radius-soft); }

  .carousel-prev { left: 0; }
  .carousel-next { right: 0; }

  .cta-img-1 { width: 100px; height: 100px; top: 5%; left: 3%; }
  .cta-img-2 { width: 180px; height: 120px; bottom: 5%; left: 3%; }
  .cta-img-3 { width: 130px; height: 160px; bottom: 8%; right: 3%; }
}

@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    gap: 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav .nav-link,
  .site-nav .nav-cta {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-cta {
    display: block;
    text-align: center;
    background: var(--accent);
    color: var(--white) !important;
    border-radius: var(--radius-pill);
    margin-top: var(--space-sm);
    border: none !important;
  }
  .nav-cta::after { display: none !important; }
  .menu-toggle { display: flex; }
  .menu-toggle.open span:first-child { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.open span:last-child { transform: rotate(-45deg) translate(5px, -5px); }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }

  .footer-inner { flex-direction: column; text-align: center; }
  .final-cta-images { opacity: 0.35; }
}
