:root {
  --navy: #0a1f44;
  --navy-deep: #06152e;
  --steel: #6b6e72;
  --steel-light: #a8abb0;
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --text: #161b24;
  --text-muted: #54585a;
  --border: #e2e4e8;
  --shadow: 0 18px 50px rgba(10, 31, 68, 0.12);
  --radius: 4px;
  --header-h: 84px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

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

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

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

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--steel);
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(10, 31, 68, 0.28);
}

.btn-small {
  min-height: 40px;
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px rgba(10, 31, 68, 0.06);
}

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

.brand img {
  width: 160px;
  height: auto;
}

.site-header .brand img {
  margin-bottom: 10px;
}

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

.site-nav a:not(.btn) {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn).is-active {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--navy);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

/* Parallax layers (Wix-style: bg moves slower than content) */
.parallax-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.parallax-media {
  position: absolute;
  left: 0;
  right: 0;
  top: -18%;
  height: 136%;
  will-change: transform;
  pointer-events: none;
  z-index: 0;
  backface-visibility: hidden;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--navy-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 21, 46, 0.92) 18%, rgba(10, 31, 68, 0.72) 55%, rgba(10, 31, 68, 0.45) 100%),
    url("https://images.unsplash.com/photo-1540575467063-178a50c2df87?auto=format&fit=crop&w=1920&q=80") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 7rem) 0;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 34ch;
  margin-bottom: 2rem;
}

.hero .btn {
  background: #fff;
  color: var(--navy);
}

.hero .btn:hover {
  background: var(--steel-light);
  color: var(--navy-deep);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
}

.about h3 {
  font-size: 1.15rem;
  color: var(--steel);
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-copy p:last-child {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-visual-frame {
  min-height: 360px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-panel {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(10, 31, 68, 0.55), rgba(6, 21, 46, 0.25)),
    url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1200&q=80") center / cover no-repeat;
}

/* Why */
.why-layout {
  max-width: 820px;
}

.why-copy h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.why-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.15rem;
}

.why-copy p:last-child {
  margin-bottom: 0;
}

/* Commitment */
.commitment {
  background: var(--navy-deep);
  color: #fff;
}

.commitment-bg {
  background:
    linear-gradient(180deg, rgba(10, 31, 68, 0.88) 0%, rgba(6, 21, 46, 0.94) 100%),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80") center / cover no-repeat;
}

.commitment-inner {
  position: relative;
  z-index: 1;
}

.commitment-copy {
  max-width: 760px;
  margin-bottom: 3rem;
}

.commitment h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.commitment-copy p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
}

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

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid rgba(168, 171, 176, 0.35);
}

.stat strong {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.stat span {
  color: var(--steel-light);
  font-weight: 500;
}

.stats-note {
  margin-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
}

.contact-aside {
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.contact-form {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-panel {
  min-width: 0;
}

.contact-thanks {
  background: var(--bg);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-thanks h3 {
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.contact-thanks p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
}

.contact-form label span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 31, 68, 0.12);
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: #c0392b;
}

.contact-form input.is-invalid:focus,
.contact-form textarea.is-invalid:focus {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.25rem;
}

.form-error {
  margin: 1rem 0 0;
  font-weight: 600;
  text-align: center;
  color: #9b312d;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(6, 21, 46, 0.55);
  backdrop-filter: blur(2px);
}

.loading-overlay[hidden] {
  display: none !important;
}

.loading-dialog {
  background: #fff;
  border-radius: 10px;
  padding: 1.75rem 2rem;
  min-width: min(280px, calc(100vw - 2rem));
  text-align: center;
  box-shadow: 0 20px 50px rgba(6, 21, 46, 0.28);
}

.loading-dialog p {
  margin: 1rem 0 0;
  color: var(--navy);
  font-weight: 600;
}

.spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-footer img {
  width: 120px;
}

.site-footer p {
  margin: 0;
  color: var(--steel);
  font-size: 0.92rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* Responsive */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .about-visual-frame {
    min-height: 260px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(10, 31, 68, 0.08);
    display: none;
  }

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

  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }

  .site-nav .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .parallax-media {
    top: 0;
    height: 100%;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .parallax-media,
  .reveal,
  .btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .parallax-media {
    top: 0;
    height: 100%;
  }

  .reveal {
    opacity: 1;
  }
}
