:root {
  --navy: #0c3a5b;
  --navy-dark: #082a43;
  --blue: #3f87c4;
  --green: #4caf50;
  --green-dark: #3d9142;
  --ink: #1d2a36;
  --muted: #5b6b79;
  --light: #f2f6fa;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 58, 91, .12);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border-color: rgba(255,255,255,.85); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: #9fd3a1;
  margin: 0 0 .75em;
}
.eyebrow--dark { color: var(--green-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 56px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--navy); }
.site-nav a:not(.btn):hover { color: var(--green-dark); }
.nav-phone { white-space: nowrap; }
.nav-toggle { display: none; }

/* Hero carousel */
.hero {
  position: relative;
  height: min(78vh, 680px);
  min-height: 460px;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.slides, .slide { position: absolute; inset: 0; }
.slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.slide-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.is-active .slide-img { transform: scale(1); }
.slide-img--real { object-position: center 60%; }
.slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,42,67,.88) 0%, rgba(8,42,67,.6) 45%, rgba(8,42,67,.15) 100%);
}
.slide-content {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 72px 40px;
}
.slide-content > * { max-width: 600px; }
.slide h1, .slide h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
.lead { font-size: clamp(1rem, 1.6vw, 1.2rem); opacity: .92; margin: 0 0 1.8em; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.slide.is-active .slide-content > * { animation: rise .8s ease both; }
.slide.is-active .slide-content > *:nth-child(2) { animation-delay: .1s; }
.slide.is-active .slide-content > *:nth-child(3) { animation-delay: .2s; }
.slide.is-active .slide-content > *:nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-arrow {
  position: absolute; top: 50%; z-index: 2;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.18);
  color: var(--white);
  font-size: 2rem; line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.hero-arrow:hover { background: rgba(255,255,255,.35); }
.hero-arrow--prev { left: 16px; }
.hero-arrow--next { right: 16px; }
.hero-dots {
  position: absolute; bottom: 24px; left: 50%; z-index: 2;
  transform: translateX(-50%);
  display: flex; gap: 10px;
}
.hero-dots button {
  width: 12px; height: 12px; padding: 0;
  border-radius: 999px; border: 0;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: width .3s, background .3s;
}
.hero-dots button[aria-selected="true"] { width: 32px; background: var(--green); }
.hero :focus-visible, .btn:focus-visible { outline: 3px solid #9fd3a1; outline-offset: 3px; }

/* Trust strip */
.trust { background: var(--navy-dark); color: var(--white); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-inner > div { padding: 22px 16px; text-align: center; border-left: 1px solid rgba(255,255,255,.1); }
.trust-inner > div:first-child { border-left: 0; }
.trust strong { display: block; font-size: 1.05rem; }
.trust span { font-size: .85rem; opacity: .75; }

/* Sections */
.section { padding: 88px 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--light { background: var(--light); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--navy); }
.section--navy .section-title { color: var(--white); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 20px 22px 26px; }
.card h3 { color: var(--navy); font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-text p { opacity: .9; margin-bottom: 1.8em; }
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why li { background: rgba(255,255,255,.07); border-radius: var(--radius); padding: 22px; display: flex; gap: 14px; }
.why-icon {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); font-size: 1.1rem;
}
.why h3 { font-size: 1rem; margin-bottom: .25em; }
.why p { margin: 0; font-size: .88rem; opacity: .8; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(transparent, rgba(8,42,67,.85));
  color: var(--white); font-weight: 500; font-size: .92rem;
}

/* Quote */
.quote { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.quote-intro a { color: var(--green-dark); font-weight: 600; }
.quote-form {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.quote-form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--navy); }
.quote-form .full { grid-column: 1 / -1; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: .75em .9em;
  border: 1px solid #cfd9e2; border-radius: 10px;
  background: var(--white);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.85); padding: 56px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-logo { height: 56px; width: auto; background: var(--white); border-radius: 10px; padding: 6px 10px; margin-bottom: 12px; }
.site-footer h3 { color: var(--white); font-size: 1rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #9fd3a1; }
.copyright { text-align: center; font-size: .82rem; opacity: .6; margin: 40px 0 0; }


/* Scroll reveal (classes are added by script.js, so content stays visible without JS) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--delay, 0s);
}
.reveal--left { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--zoom { transform: scale(.92); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Header gains a shadow once the page scrolls */
.site-header { transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(12, 58, 91, .12); }


/* Services submenu */
.nav-item { position: relative; }
.submenu {
  position: absolute; top: 100%; left: -18px; z-index: 10;
  min-width: 230px; padding: 10px;
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility 0s linear .2s;
}
.has-sub > a::after { content: " \25BE"; font-size: .8em; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu {
  opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s;
}
.has-sub { padding: 18px 0; }
.site-nav .submenu a { padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
.site-nav .submenu a:hover, .site-nav .submenu a[aria-current="page"] { background: var(--light); color: var(--green-dark); }

/* Clickable service cards */
.card { position: relative; }
.card-link { text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .9rem; color: var(--green-dark); transition: transform .2s; }
.card:hover .card-more { transform: translateX(4px); }
.card:focus-within { outline: 3px solid #9fd3a1; outline-offset: 3px; }

/* Service pages */
.page-hero {
  position: relative; overflow: hidden;
  min-height: 460px; display: flex; align-items: center;
  background: var(--navy); color: var(--white);
}
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 8s ease-out both; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,42,67,.9) 0%, rgba(8,42,67,.65) 50%, rgba(8,42,67,.25) 100%);
}
.page-hero-content { position: relative; z-index: 1; padding: 64px 0; }
.page-hero-content > * { max-width: 620px; animation: rise .8s ease both; }
.page-hero-content > *:nth-child(2) { animation-delay: .1s; }
.page-hero-content > *:nth-child(3) { animation-delay: .2s; }
.page-hero-content > *:nth-child(4) { animation-delay: .3s; }
.page-hero-content > *:nth-child(5) { animation-delay: .4s; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: .2em; }
.tagline { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; color: #9fd3a1; margin: 0 0 .8em; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; margin-bottom: 20px; opacity: .85; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.service-main { display: grid; gap: 40px; }
.service-main h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); }
.service-main h3 { color: var(--navy); font-size: 1.2rem; }
.service-main p { color: var(--muted); }
.service-main a { color: var(--green-dark); font-weight: 600; }
.service-figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.service-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: #e5f4e6; color: var(--green-dark); font-size: .75rem; font-weight: 700;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: .5em 1.1em; border-radius: 999px; background: var(--light); color: var(--navy); font-weight: 500; font-size: .9rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 18px 20px 18px 72px; background: var(--light); border-radius: var(--radius); }
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--white); font-weight: 700;
}
.steps strong { display: block; color: var(--navy); }
.steps span { color: var(--muted); font-size: .93rem; }

.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-cards article { background: var(--light); border-radius: var(--radius); padding: 28px; border-top: 4px solid var(--green); }
.split-cards p { margin: 0; }

.phase-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.phase-tabs button {
  font: inherit; font-weight: 600; font-size: .92rem;
  padding: .7em 1.3em; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--navy); background: var(--white); color: var(--navy);
  transition: background .2s, color .2s;
}
.phase-tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.phase:not([hidden]) { animation: rise .5s ease both; }

.service-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.aside-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.aside-card h3 { color: var(--navy); font-size: 1.1rem; }
.aside-card--cta { background: var(--navy); color: var(--white); }
.aside-card--cta h3 { color: var(--white); }
.aside-card--cta p { opacity: .85; font-size: .93rem; }
.aside-card--cta .btn { width: 100%; text-align: center; }
.aside-phone { margin: 14px 0 0; text-align: center; }
.aside-phone a { color: #9fd3a1; font-weight: 600; white-space: nowrap; }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links a { display: block; padding: 10px 0; border-bottom: 1px solid #eef2f5; text-decoration: none; color: var(--navy); font-weight: 500; }
.aside-links li:last-child a { border-bottom: 0; }
.aside-links a:hover { color: var(--green-dark); }
.aside-links a::after { content: " \2192"; }

.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); color: var(--white); text-align: center; padding: 72px 0; }
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cta-band p { opacity: .9; margin: 0 0 1.6em; }

/* Original-content layout tweaks */
.about-plain { max-width: 820px; text-align: center; }
.about-plain p { font-size: 1.08rem; color: var(--muted); margin: 0; }
.why-title { text-align: center; margin-bottom: 40px; }
.why-section .why { grid-template-columns: repeat(4, 1fr); }
.why-section .why li { flex-direction: column; align-items: center; text-align: center; padding: 28px 20px; }
.why-section .why-icon { width: 56px; height: 56px; font-size: 1.4rem; }
.why-section .why h3 { font-size: 1rem; font-weight: 500; margin: 0; }
.service-main h4 { color: var(--navy); font-size: 1rem; margin: 1.4em 0 .8em; }
.service-main p { font-size: 1.05rem; }
.cta-band h2 { margin-bottom: .9em; }

/* Responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .why-section .why { grid-template-columns: 1fr 1fr; }
  .about, .quote, .service-layout { grid-template-columns: 1fr; gap: 40px; }
  .service-aside { position: static; }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .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); }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 16px 20px;
    box-shadow: 0 12px 20px rgba(0,0,0,.08);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid #eef2f5; }
  .site-nav .btn { margin-top: 16px; text-align: center; }
  .has-sub { padding: 0; }
  .has-sub > a { display: block; }
  .has-sub > a::after { content: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
  .site-nav .submenu a { padding: 12px 0; border-radius: 0; font-size: .95rem; }
  .site-nav .submenu a:hover { background: none; }
  .site-header { position: sticky; }
  .site-nav.is-open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-inner > div:nth-child(3) { border-left: 0; }
  .trust-inner > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
}

@media (max-width: 640px) {
  .hero { height: 82vh; min-height: 520px; }
  .slide::after { background: linear-gradient(180deg, rgba(8,42,67,.35) 0%, rgba(8,42,67,.9) 70%); }
  .slide-content { justify-content: flex-end; padding: 0 0 72px; }
  .hero-arrow { display: none; }
  .section { padding: 64px 0; }
  .cards, .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cards { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; padding: 22px; }
  .why { grid-template-columns: 1fr; }
  .checklist, .split-cards { grid-template-columns: 1fr; }
  .page-hero { min-height: 520px; align-items: flex-end; }
  .page-hero::after { background: linear-gradient(180deg, rgba(8,42,67,.4) 0%, rgba(8,42,67,.92) 65%); }
  .footer-inner { grid-template-columns: 1fr; }
}

/* Reduced motion: keep gentle fades, drop movement and zoom */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide-img, .slide.is-active .slide-img { transform: none; transition: none; }
  .page-hero-img, .page-hero-content > *, .phase:not([hidden]) { animation: none; }
  .slide.is-active .slide-content > * { animation: none; }
  .reveal { transform: none; }
  .btn:hover, .card:hover, .gallery figure:hover img { transform: none; }
}
