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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

.hero,
section[id] {
  scroll-margin-top: 4.5rem;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #1a1a1a;
  background-color: #f9f8f6;
}

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

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

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: #f2f0ec;
  border-top: 1px solid #e4e0d8;
  border-bottom: 1px solid #e4e0d8;
}

.section-compact {
  padding: 3.5rem 0;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111;
  margin-bottom: 2.5rem;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 248, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e4e0d8;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #111;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #444;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: #111;
}

.nav-cta {
  padding: 0.45rem 1rem;
  border: 1px solid #ccc8be;
  border-radius: 4px;
  color: #111 !important;
  transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover {
  background: #fff;
  border-color: #aaa;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #111;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  padding: 6rem 0 5.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(200, 190, 170, 0.15), transparent),
    #f9f8f6;
  border-bottom: 1px solid #e4e0d8;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111;
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.0625rem;
  color: #444;
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.credibility-strip {
  font-size: 0.875rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 2.25rem;
  padding-left: 0.75rem;
  border-left: 2px solid #b8b0a0;
}

.hero-actions {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.hero-actions > .btn {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.hero-actions .hero-raise-break {
  display: none;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background: #1a1a1a;
  color: #f9f8f6;
  border-color: #1a1a1a;
}

.btn-primary:hover {
  background: #333;
  border-color: #333;
}

.btn-secondary {
  background: transparent;
  color: #1a1a1a;
  border-color: #ccc8be;
}

.btn-secondary:hover {
  background: #fff;
  border-color: #aaa;
}

/* ── Why Selvara ── */
.section-dark {
  background: #1a1a1a;
  border-top: 1px solid #2e2e2e;
  border-bottom: 1px solid #2e2e2e;
}

.section-dark .eyebrow {
  color: #888;
}

.section-dark .section-title {
  color: #f9f8f6;
}

.credibility-card {
  background: #222;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.credibility-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f9f8f6;
  margin-bottom: 1.25rem;
}

.credibility-card-body p {
  font-size: 0.9375rem;
  color: #bbb;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.credibility-card-body p:last-child {
  margin-bottom: 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.metric-card {
  background: #222;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1.75rem;
}

.metric-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #f9f8f6;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.metric-desc {
  font-size: 0.875rem;
  color: #999;
  line-height: 1.55;
}

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: #fff;
  border: 1px solid #e4e0d8;
  border-radius: 6px;
  padding: 1.75rem;
  transition: border-color 0.2s;
}

.service-card:hover {
  border-color: #ccc8be;
}

.service-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.625rem;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.6;
}

/* ── Pain points ── */
.pain-points {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.pain-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pain-number {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}

.pain-point p {
  font-size: 0.9375rem;
  color: #333;
  line-height: 1.6;
}

/* ── Case study ── */
.case-study {
  background: #fff;
  border: 1px solid #e4e0d8;
  border-radius: 6px;
  overflow: hidden;
}

.case-study-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid #e4e0d8;
}

.case-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.75rem;
}

.case-study-header h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
}

.case-study-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
}

.case-detail {
  padding: 1.75rem 2rem;
  border-right: 1px solid #e4e0d8;
  border-bottom: 1px solid #e4e0d8;
}

.case-detail:last-child {
  border-right: none;
}

.case-detail h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.5rem;
}

.case-detail p {
  font-size: 0.9375rem;
  color: #444;
  line-height: 1.6;
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #666;
  border: 1px solid #ccc8be;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.6;
}

/* ── FAQ ── */
.faq-list {
  border-top: 1px solid #e4e0d8;
}

.faq-item {
  border-bottom: 1px solid #e4e0d8;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #111;
  gap: 1rem;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #444;
}

.faq-icon {
  flex-shrink: 0;
  position: relative;
  width: 1rem;
  height: 1rem;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: #666;
  transition: transform 0.25s, opacity 0.25s;
}

.faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-icon::after {
  top: 0;
  left: 50%;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item.is-open .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.65;
  max-width: 68ch;
}

/* ── Careers ── */
.careers-copy {
  font-size: 0.9375rem;
  color: #555;
  max-width: 52ch;
  margin-bottom: 1.5rem;
}

#careers .btn {
  font-weight: 400;
}

/* ── Bottom CTA ── */
.cta-section {
  text-align: center;
  padding: 5.5rem 0;
  background: #1a1a1a;
  color: #f2f0ec;
}

.cta-section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 24ch;
  margin: 0 auto 1rem;
  color: #f9f8f6;
}

.cta-sub {
  font-size: 1rem;
  color: #aaa;
  max-width: 44ch;
  margin: 0 auto 2rem;
}

.cta-section .btn-primary {
  background: #f9f8f6;
  color: #1a1a1a;
  border-color: #f9f8f6;
}

.cta-section .btn-primary:hover {
  background: #e8e6e2;
  border-color: #e8e6e2;
}

/* ── Footer ── */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid #e4e0d8;
  background: #f9f8f6;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 1rem 2rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.25rem;
}

.footer-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #666;
  line-height: 1;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #111;
}

.footer-nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #666;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}

.footer-nav-link:hover {
  color: #111;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.privacy-modal[hidden] {
  display: none;
}

.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
}

.privacy-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: 85vh;
  overflow-y: auto;
  background: #f9f8f6;
  border: 1px solid #e4e0d8;
  border-radius: 6px;
  padding: 1.75rem;
}

.privacy-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.privacy-modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
}

.privacy-modal-close {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  background: none;
  border: 1px solid #ccc8be;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: #444;
  font-family: inherit;
}

.privacy-modal-close:hover {
  border-color: #aaa;
  color: #111;
}

.privacy-modal-body p {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.privacy-modal-body p:last-child {
  margin-bottom: 0;
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: #999;
  padding-top: 0.5rem;
  border-top: 1px solid #e4e0d8;
}

/* ── Section dots ── */
.section-dots {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.section-dots-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
}

.section-dot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.section-dot-marker {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4d0c8;
  border: 1px solid #b8b0a0;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.section-dot.is-active .section-dot-marker,
.section-dot:hover .section-dot-marker,
.section-dot:focus .section-dot-marker {
  background: #1a1a1a;
  border-color: #1a1a1a;
  transform: scale(1.2);
}

.section-dot-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #444;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.section-dot:hover .section-dot-label,
.section-dot:focus .section-dot-label {
  opacity: 1;
}

.section-dots-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid #ccc8be;
  border-radius: 50%;
  cursor: pointer;
  color: #444;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.section-dots-top:hover,
.section-dots-top:focus {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #f9f8f6;
}

.section-dots-top-icon {
  font-size: 0.875rem;
  line-height: 1;
}

.section-dots-top[hidden] {
  display: none;
}

.section-dots.is-on-dark .section-dot-label {
  color: #e8e6e2;
}

.section-dots.is-on-dark .section-dot-marker {
  background: #555;
  border-color: #777;
}

.section-dots.is-on-dark .section-dot.is-active .section-dot-marker,
.section-dots.is-on-dark .section-dot:hover .section-dot-marker,
.section-dots.is-on-dark .section-dot:focus .section-dot-marker {
  background: #f9f8f6;
  border-color: #f9f8f6;
}

.section-dots.is-on-dark .section-dots-top {
  border-color: #666;
  color: #e8e6e2;
}

.section-dots.is-on-dark .section-dots-top:hover,
.section-dots.is-on-dark .section-dots-top:focus {
  background: #f9f8f6;
  border-color: #f9f8f6;
  color: #1a1a1a;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(249, 248, 246, 0.98);
    border-bottom: 1px solid #e4e0d8;
    padding: 0.5rem 1.5rem 1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eceae6;
  }

  .site-nav a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .hero-raise-break {
    display: inline;
  }

  .hero-actions .hero-raise-desktop-space {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .case-study-body {
    grid-template-columns: 1fr;
  }

  .case-detail {
    border-right: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-nav {
    gap: 1rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-dots {
    right: 0.625rem;
    gap: 0.5rem;
  }

  .section-dots-list {
    gap: 0.5rem;
  }

  .section-dot-marker {
    width: 6px;
    height: 6px;
  }

  .section-dot-label {
    display: none;
  }

  .section-dots-top {
    width: 1.5rem;
    height: 1.5rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .pain-points {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
}
