:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #ffffff;
  --text: #152018;
  --muted: #5f665f;
  --line: rgba(21, 32, 24, 0.12);
  --blue: #2f328d;
  --green: #00803c;
  --purple: #2f328d;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --max-width: 1180px;
  --nav-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

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

main {
  overflow: clip;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.nav-wrap {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

.nav-links a {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(47, 50, 141, 0.08);
  color: var(--blue);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 14px;
  width: 48px;
  height: 48px;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.menu-button::before,
.menu-button::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform 0.3s ease, top 0.3s ease;
}

.menu-button::before {
  top: calc(50% - 3px);
}

.menu-button::after {
  top: calc(50% + 3px);
}

.menu-button.open::before {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-button.open::after {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Shared typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 800;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.96);
  white-space: nowrap;
}

.eyebrow-light::before {
  background: rgba(255, 255, 255, 0.88);
}

.hero-content h1,
.overview-highlight h2,
.section-card h2,
.services-intro h2,
.contact-intro h2,
.legal-title {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

/* Hero */
.hero {
  padding: 1.25rem 0 2rem;
}

.hero-shell {
  position: relative;
  height: 480px;
  border-radius: 28px;
  overflow: hidden;
  background: #eef1ee;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(9, 17, 12, 0.58) 0%, rgba(9, 17, 12, 0.34) 42%, rgba(9, 17, 12, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 4;
  color: #ffffff;
  max-width: 520px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
}

.hero-content h1 {
  margin: 0.7rem 0 0.9rem;
  font-size: clamp(1.95rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 11ch;
}

.hero-content p {
  margin: 0 0 1.2rem;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.96rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--green);
  color: #ffffff;
}

.button-primary:hover {
  color: #ffffff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.button-secondary:hover {
  color: #ffffff;
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.overview-grid,
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-grid {
  gap: 2rem;
}

.overview-grid {
  overflow: hidden;
}

.overview-highlight,
.overview-copy,
.section-card,
.services-shell,
.contact-shell {
  padding: clamp(1.8rem, 3vw, 3rem);
}

.overview-highlight {
  background: #f2faf5;
  color: var(--text);
  border-right: 1px solid var(--line);
}

.overview-highlight h2 {
  margin: 0.9rem 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
  max-width: 13ch;
}

.overview-copy {
  display: grid;
  gap: 1rem;
}

.overview-copy p,
.section-card p,
.services-intro p,
.services-copy p,
.contact-intro p,
.contact-card p,
.service-card p,
.legal-section p {
  margin: 0;
  color: var(--muted);
}

.section-card {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.section-card h2,
.contact-intro h2 {
  margin: 0.9rem 0 1rem;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-card h2 {
  max-width: none;
}

.contact-intro h2 {
  max-width: none;
}

.services-intro h2 {
  margin: 0.9rem 0 1rem;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-photo {
  position: relative;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 36px;
  overflow: hidden;
  background: #eef1ee;
}

.services-shell {
  display: grid;
  gap: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-card,
.contact-card,
.legal-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.service-card,
.contact-card {
  padding: 1.4rem;
}

.service-card strong,
.contact-card strong {
  display: block;
  margin-bottom: 0.65rem;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
}

.services-copy {
  display: grid;
  gap: 1rem;
}

.contact-intro {
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card > a,
.legal-card a:not(.legal-back) {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(47, 50, 141, 0.35);
}

.contact-card > a:hover,
.legal-card a:not(.legal-back):hover,
.contact-card p a:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}

.contact-text {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.contact-card p a {
  display: inline;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(47, 50, 141, 0.35);
}

.address-card {
  grid-column: 1 / -1;
}

/* Footer */
.site-footer {
  padding: 2rem 0 3rem;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-meta p,
.footer-meta a {
  margin: 0;
  color: var(--muted);
}

.footer-meta a:hover {
  color: var(--blue);
}

/* Images */
.image-stage {
  isolation: isolate;
}

.stage-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 1.6s ease, transform 2.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  pointer-events: none;
}

.stage-image.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.stage-image.is-entering {
  opacity: 1;
  transform: scale(1);
  z-index: 3;
}

.stage-image.is-exiting {
  opacity: 0;
  transform: scale(1.03);
  z-index: 2;
}

.hero-media .stage-image,
.section-photo .stage-image {
  object-position: center center;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legal pages */
.legal-page {
  padding: 4rem 0 3rem;
}

.legal-shell {
  max-width: 920px;
  margin: 0 auto;
}

.legal-card {
  padding: clamp(1.5rem, 3vw, 3rem);
  box-shadow: none;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  color: var(--blue);
  font-weight: 700;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
}

.legal-back:hover {
  color: var(--text);
}

.legal-title {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.legal-section {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.legal-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-section h2 {
  margin: 0 0 0.8rem;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* Responsive */
@media (max-width: 1024px) {
  .overview-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .overview-highlight {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-photo {
    aspect-ratio: 16 / 10;
    min-height: 420px;
  }

  .services-intro h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  }
}

@media (max-width: 820px) {
  :root {
    --nav-height: 76px;
  }

  .brand-logo {
    height: 50px;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.35rem;
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
  }

  .hero-shell,
  .hero-content {
    min-height: 420px;
  }

  .services-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .address-card {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .panel,
  .section-photo,
  .hero-shell,
  .legal-card {
    border-radius: 24px;
  }

  .hero-shell,
  .hero-content {
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
    max-width: 10ch;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    justify-content: flex-start;
  }

  .legal-page {
    padding-top: 2.5rem;
  }

  .section-photo {
    aspect-ratio: 4 / 3;
    min-height: 300px;
  }
}
