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

:root {
  --color-bg: #f7f6f3;
  --color-surface: #ffffff;
  --color-surface-alt: #eef2f0;
  --color-text: #1a2332;
  --color-text-muted: #5c6678;
  --color-accent: #0d7a5f;
  --color-accent-light: #e6f5f0;
  --color-accent-dark: #095c47;
  --color-navy: #0f1c2e;
  --color-navy-soft: #1a2d45;
  --color-border: #dde3ea;
  --color-star: #e8a317;

  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(15, 28, 46, 0.06);
  --shadow-md: 0 4px 20px rgba(15, 28, 46, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 28, 46, 0.12);

  --header-h: 72px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-dark); }
ul { list-style: none; }

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1.2rem;
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ===== Typography ===== */
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-navy);
}

h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

em { font-style: italic; color: var(--color-accent); }

.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-header { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: 3rem; }
.section-desc { color: var(--color-text-muted); margin-top: 0.75rem; font-size: 1.0625rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
  background: var(--color-surface);
}

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 246, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--color-navy); }

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
}

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

.site-nav ul {
  display: flex;
  gap: 1.75rem;
}

.site-nav ul a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}
.site-nav ul a:hover { color: var(--color-navy); }

.site-nav .btn-primary {
  color: #fff;
}
.site-nav .btn-primary:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.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); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(13, 122, 95, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(15, 28, 46, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  min-width: 200px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ===== Trust bar ===== */
.trust-bar {
  padding-block: 1.5rem;
  border-block: 1px solid var(--color-border);
  background: var(--color-surface);
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.trust-item svg { color: var(--color-accent); flex-shrink: 0; }

/* ===== Process pills ===== */
.process-pills { padding-block: 2.5rem; }

.pill-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.pill-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.pill-text {
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.9375rem;
}

.pill-arrow {
  color: var(--color-border);
  font-size: 1.25rem;
  user-select: none;
}

/* ===== Story ===== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-card {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
  border-radius: var(--radius-xl);
  padding: 2px;
  box-shadow: var(--shadow-lg);
}

.story-card-inner {
  background: var(--color-navy);
  border-radius: calc(var(--radius-xl) - 2px);
  padding: 2.5rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.story-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.story-card blockquote {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.story-content h2 { margin-bottom: 1.25rem; }
.story-content p { color: var(--color-text-muted); margin-bottom: 1.5rem; font-size: 1.0625rem; }

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--color-text);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ===== Service cards ===== */
.services { background: var(--color-surface-alt); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-border);
  letter-spacing: 0.05em;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { color: var(--color-text-muted); font-size: 0.9375rem; }

/* ===== Why us ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition);
}
.why-card:hover { border-color: var(--color-accent); }

.why-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.why-card h3 { margin-bottom: 0.6rem; }
.why-card p { color: var(--color-text-muted); font-size: 0.9375rem; }

/* ===== Process list ===== */
.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: none;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-navy);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 50%;
}

.step-body h3 { margin-bottom: 0.5rem; }
.step-body p { color: var(--color-text-muted); font-size: 0.9375rem; }

/* ===== Testimonials ===== */
.testimonials { background: var(--color-surface-alt); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 0;
  transition: box-shadow var(--transition);
}
.testimonial:hover { box-shadow: var(--shadow-md); }

.stars {
  color: var(--color-star);
  font-size: 0.875rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial p {
  color: var(--color-text);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.testimonial footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-navy);
}

/* ===== CTA ===== */
.cta-box {
  text-align: center;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 4.5rem) 2rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

.cta-box .btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.cta-box .btn-primary:hover {
  background: #10a07c;
  border-color: #10a07c;
}

/* ===== Policies ===== */
.policies-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.policy-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.policy-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.6rem;
}

.policy-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 3rem 2rem;
}

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

.logo-footer { color: #fff; }
.logo-footer .logo-mark { background: rgba(255,255,255,0.1); color: #fff; }
.logo-footer:hover { color: #fff; }

.footer-tagline {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: flex-end;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}
.footer-nav a:hover { color: #fff; }

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-navy);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}
.back-to-top[hidden] { display: none; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat-card { flex: 1; min-width: 140px; }

  .story-grid,
  .card-grid,
  .why-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .story-grid { gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--color-bg);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

  .site-nav.open { transform: translateX(0); }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul li {
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav ul a {
    display: block;
    padding: 1rem 0;
    font-size: 1.0625rem;
    color: var(--color-navy);
  }

  .nav-cta { text-align: center; }

  .testimonial-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .pill-arrow { display: none; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-nav ul { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; }
  .stat-card { min-width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .trust-bar-inner { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
