:root {
  --bg: #0b1220;
  /* slate-950 */
  --ink: #0f172a;
  /* slate-900 */
  --ink-2: #334155;
  /* slate-600 */
  --ink-3: #64748b;
  /* slate-500 */
  --muted: #f1f5f9;
  /* slate-100 */
  --card: #ffffff;
  --brand: #ff6f00;
  /* Rouge principal */
  --brand-2: #ff8800;
  /* Rouge foncé (hover) */
  --accent: #ff5e00;
  /* Accent clair (CTA secondaire, badges) */
  --accent-2: #f15c00;
  /* Accent hover */
  --radius: 16px;
  --shadow: 0 10px 25px rgba(2, 8, 23, .12);
  --w: clamp(280px, 94vw, 1200px);
  --hero-overlay: rgba(221, 173, 60, 0.015);
  /* Opacité du voile du hero */
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-serif: "Source Serif 4", Georgia, Cambria, "Times New Roman", Times, serif;
}

/* Local variable fonts */
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-italic-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "segoeprintregular";
  src: url("fonts/segoeprintregular.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--ink);
  background: #f8fafc;
  line-height: 1.6
}

a {
  color: var(--brand);
  text-decoration: none
}

a:hover {
  text-decoration: none;
  color: var(--brand-2)
}

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

/* Utility: center a specific image horizontally */
.centered-img {
  margin-left: auto;
  margin-right: auto;
}

/* Center specific photos with caption "Mise hors d’eau après sinistre." */
img[src$="bachage-360.webp"],
img[src$="intervention-360.webp"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 90%;
}

/* Center captions under the specific disaster-relief photos */
img[src$="bachage-360.webp"] + figcaption,
img[src$="intervention-360.webp"] + figcaption {
  text-align: center;
}

/* Defer rendering of below-the-fold sections for faster initial paint */
#services,
#realisations,
#faq,
#contact {
  content-visibility: auto;
  contain-intrinsic-size: 1000px 600px;
}

.container {
  width: var(--w);
  margin-inline: auto;
  padding: 0 1rem
}

/* Mobile: reduce page gutters to enlarge media */
@media (max-width: 640px) {
  .container {
    padding: 0 .5rem;
  }
}

/* Very small screens: extra-narrow gutters */
@media (max-width: 360px) {
  .container {
    padding: 0 .25rem;
  }
}

/* Brand section separator */
.section-sep {
  border: 0;
  height: 3px;
  width: 20vw;
  background: var(--brand);
  border-radius: 9999px;
  margin: 2rem auto;
}


/* Topbar & Header */
.topbar {
  background: var(--ink);
  color: #e2e8f0;
  font-size: .9rem;
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 30px;
}

/* Navbar: semi-transparent dark gradient for readability over hero */
header {
  /* Make header overlay the hero so the gradient is visible */
  position: sticky;
  top: var(--topbar, 0px);
  z-index: 55;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.75), /* slate-900 ~ #0f172a */
    rgba(15, 23, 42, 0.45),
    rgba(15, 23, 42, 0.00)
  );
}

/* Reduce navbar vertical footprint */
header { min-height: 0; }

.topbar a {
  background-color: #f3f3f3;
  text-decoration: none;
}
.topbar a:hover {
  text-decoration: none;
}

.topbar .container {
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
  padding: .25rem 0.75rem
}

.topbar .badges {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .30rem .60rem;
  background: #0b1220;
  border: 1px solid #1e293b;
  border-radius: 999px
}

/* Prevent phone badge from wrapping and give it priority space on mobile */
@media (max-width: 640px) {
  .topbar .container {
    padding: .25rem .5rem;
    gap: .5rem;
  }
  .topbar .badges:first-child { flex: 1 1 auto; }
  .topbar .badges:last-child { flex: 0 0 auto; }
  .topbar .badge { white-space: nowrap; }
}

.badge svg {
  width: 16px;
  height: 16px
}

/* Language flag in topbar, same height as badges, without pill */
.topbar .lang-switch img {
  width: 16px;
  height: 16px;
  display: block;
}

/* Ensure flag link has no pill styles */
.topbar .lang-switch {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
}

header {
  position: sticky;
  top: var(--topbar, 0px);
  z-index: 50;
  /* background: transparent; */
    background: rgba(255, 255, 255, .6);
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  box-shadow: none;
  transition: background .2s ease, border-color .2s ease, backdrop-filter .2s ease, box-shadow .2s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, .9);
  border-bottom-color: #e2e8f0;
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 6px 16px rgba(2, 8, 23, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* reduce vertical padding to minimize header height */
  padding: .1rem .75rem
}

.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700
}

.logo {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  /* background: radial-gradient(120px 60px at 20% 20%, var(--brand) 0 40%, transparent 41%), radial-gradient(120px 60px at 80% 80%, var(--accent) 0 40%, transparent 41%), linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: var(--shadow) */
  text-wrap: nowrap;
}

/* Reduce brand image size to lower header height */
header .brand img {
  width: 24px;
  height: 24px;
}

/* Ensure language switch flag has consistent size even outside .brand */
header .lang-switch img {
  width: 24px;
  height: 24px;
}

/* Allow brand text to size naturally */
.brand-name {
  text-wrap: nowrap;
}

nav ul {
  display: flex;
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap
}

nav a {
  display: inline-block;
  /* tighter vertical padding to slim the nav */
  padding: .15rem .55rem;
  border-radius: 10px;
  text-decoration: none;
}

nav a:hover {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--brand);
  color: #fff;
  padding: .25rem .75rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-weight: 600
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.cta:hover {
  background: var(--brand-2);
  color: #fff
}

.burger {
  display: none;
  background: none;
  border: none;
  padding: .25rem
}

.burger svg {
  width: 28px;
  height: 28px
}

@media (max-width: 900px) {
  nav ul { display: none }
  /* Absolute dropdown anchored to the full header row */
  .nav { position: relative; }
  header nav { position: static; flex: 0 0 auto; margin-left: auto; }
  nav ul.open {
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    width: max-content;
    max-width: 90vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .25rem;
    margin: .5rem 0 0;
    padding: .75rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(2, 8, 23, 0.18);
    z-index: 5;
  }
  nav ul.open li { width: auto; }
  nav ul.open a {
    display: inline-block;
    text-align: right;
    line-height: 1.2;
    padding: .5rem .75rem;
    font-size: 1.15rem;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  nav ul.open .cta { display: inline-flex; justify-content: flex-end; width: auto; }

  .burger { display: block }
  .burger svg { width: 32px; height: 32px; }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  /* Overlay header: hero fills viewport and slides under masthead */
  min-height: calc(100vh + var(--masthead, 0px));
  min-height: calc(100svh + var(--masthead, 0px));
  min-height: calc(100dvh + var(--masthead, 0px));
  margin-top: calc(var(--masthead, 0px) * -1);
  padding: calc(min(12vh, 7rem) + var(--masthead, 0px)) 0 clamp(1.5rem, 12vh, 6rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Background image via CSS for simpler layout and good CWV (kept with preload) */
  background: radial-gradient(1200px 600px at 80% -20%, rgba(210, 210, 210, 0.35), transparent 90%),
              radial-gradient(1200px 600px at 20% 120%, rgba(0, 0, 0, 0.35), transparent 90%),
              linear-gradient(180deg, var(--hero-overlay), var(--hero-overlay)),
              url('img/aude-toiture.webp');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat
}

/* Mobile: use lighter hero background */
  @media (max-width: 640px) {
    .hero {
    background: radial-gradient(1200px 600px at 80% -20%, rgba(210, 210, 210, 0.157), transparent 90%),
                radial-gradient(1200px 600px at 20% 120%, rgba(0, 0, 0, 0.154), transparent 90%),
                linear-gradient(180deg, var(--hero-overlay), var(--hero-overlay)),
                url('img/aude-toiture-mobile.webp');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
      /* Ensure hero still couvre intégralement quand le header est superposé */
      min-height: calc(100vh + var(--masthead, 0px));
      min-height: calc(100svh + var(--masthead, 0px));
      min-height: calc(100dvh + var(--masthead, 0px));
      height: calc(100vh + var(--masthead, 0px));
      height: calc(100svh + var(--masthead, 0px));
      height: calc(100dvh + var(--masthead, 0px));
      /* Slightly reduce top padding so content fits without crop */
      padding-top: calc(min(10vh, 6rem) + var(--masthead, 0px));
      padding-bottom: clamp(1rem, 8vh, 3.5rem);
    }
  }

.hero:after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  /* Overlay gradients above the photo */
  background: linear-gradient(180deg, var(--hero-overlay), var(--hero-overlay)),
              radial-gradient(600px 220px at 30% 20%, rgba(236, 236, 236, 0.12), transparent 90%),
              radial-gradient(600px 220px at 70% 90%, rgba(255, 255, 255, 0.379), transparent 90%);
  opacity: .9;
}

/* Hero background image container for measurable LCP */
.hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw + .8rem, 3.2rem);
  line-height: 1.1;
  margin: 0 0 .75rem;
  color: var(--brand);
}

.hero h2 {
  color: #e0e0e0;
  margin: 0 0 1rem
}
.hero p {
  color: #ebebeb;
  margin: 0 0 1rem
}

.hero ul {
  margin: .5rem 0 0;
  padding: 0;
  list-style: none;
  color: #e2e8f0
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}


@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-card.animate-in {
  animation: heroFade 0.9s ease-out .05s both;
  will-change: opacity;
}

/* New hero split layout */
.hero-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
  justify-content: flex-start;
  justify-items: start;
}

.hero-content {
  max-width: min(600px, 100%);
}

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

.hero .hero-card {
  position: static;
  transform: none;
  background: rgba(6, 8, 11, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
}

.hero .hero-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.hero .hero-card li {
  padding: .3rem 0;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.hero-tags span {
  padding: .3rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  color: #f8fafc;
  font-size: .9rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.hero-highlights .stat {
  background: rgba(15, 23, 42, .65);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  border: 1px solid rgba(255,255,255,.08);
}

.hero-highlights .stat span {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.hero-highlights .stat p {
  margin: .35rem 0 0;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
}

@media (max-width: 900px) {
  .hero-card.animate-in {
    animation: fadeInUp 1.1s ease-out .05s both;
    will-change: opacity, transform;
  }
}

@media (min-width: 901px) {
  .hero-card.animate-in {
    animation: heroFade 0.9s ease-out .05s both;
    will-change: opacity;
  }
}

/* Sections & Cards */
section {
  padding: 4rem 0;
  margin-top: 2rem
}

.section-title {
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2.2rem);
  margin: 0 0 .75rem;
  text-align: center;
  color: var(--brand)
}

/* Fade-in-up on section titles */
.section-title.animate-in {
  animation: fadeInUp 1.1s ease-out var(--stagger, .05s) both;
  will-change: opacity, transform;
}

/* Headings in elegant serif */
h1, h2, h3 {
  font-family: var(--font-serif);
}

/* Precise weights for headings */
h1 { font-weight: 700; line-height: 1.1; }
h2, .section-title { font-weight: 600; line-height: 1.2; }
h3 { font-weight: 600; line-height: 1.25; }

/* Heavier headings on desktop */
@media (min-width: 900px) {
  h1 { font-weight: 800; }
  h2, .section-title { font-weight: 700; }
}


hr {
  width: 20vw;
  color: var(--brand);
}

/* Extra spacing above services section title */
#services .section-title {
  margin-top: 1rem;
}

/* Extra space below services cards section */
#services {
  margin-bottom: 1.5rem;
}

/* Extra spacing above specific section titles */
section.container[aria-label*="Zones"] .section-title,
#realisations .section-title,
#faq .section-title {
  margin-top: 1rem;
}

/* Extra space below FAQ section */
#faq {
  margin-bottom: 1rem;
}

.muted {
  color: var(--ink-3)
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-2)
}
.lead-segoe {
  font-family: "segoeprintregular", Georgia, serif;
}

.grid {
  display: grid;
  row-gap: 1rem;
  column-gap: .5rem;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr)
}

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

.grid.cols-4 {
  grid-template-columns: repeat(4, 1fr)
}

@media (max-width: 900px) {

  .grid.cols-4,
  .grid.cols-3 {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width: 640px) {

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr
  }
}

.card {
  background: var(--card);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1rem .5rem;
  /* box-shadow: var(--shadow); */
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer
}

.card:hover {
  transform: translateY(-2px) scale(1.02);
  /* box-shadow: 0 12px 28px rgba(2, 8, 23, .16) */
}


.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1
}


#services .card .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  /* box-shadow: var(--shadow); */
  display: block;
  margin-bottom: .5rem;
  background: #f8fafc;
}

.card h3 {
  margin: .25rem 0 .5rem
}




.card .price {
  margin: 0 0 .5rem;
  text-align: center;
}

.price-badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: .4rem 1rem;
  border-radius: 9999px;
  line-height: 1;
  font-weight: 800;
  font-size: clamp(1.05rem, 1.2vw + .85rem, 1.6rem);
  letter-spacing: .2px;
  box-shadow: 0 6px 16px rgba(209, 8, 8, .18);
}

.card .icon {
  width: 40px;
  height: 40px
}

/* Light band background to highlight pricing block */
.pricing-band {
  background: var(--muted);
  padding: 1.25rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Note under pricing cards */
.pricing-band .pricing-note {
  text-align: center;
  font-style: italic;
  color: #6b7280;
  margin-top: .25rem;
}

.chips {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .5rem
}

.chip {
  background: #eeeded;
  color: #717171;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .85rem
}

.service-section {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0
}

.service-section .wrap {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: center
}

/* About / Reassurance */
.reassurance .logo-badge {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto .75rem;
  font-weight: 700;
  color: var(--brand);
  box-shadow: var(--shadow);
}

.reassurance .logo-badge img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* Centered badge in Contact section */
.contact .logo-badge {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto .75rem;
  font-weight: 700;
  color: var(--brand);
  box-shadow: var(--shadow);
}

.contact .logo-badge img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* Apropos: two columns on desktop, stack on mobile */
@media (min-width: 901px) {
  .reassurance {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .reassurance .team {
    grid-column: 2;
    align-self: center; /* vertically center the photo block */
  }
}

@media (max-width: 900px) {
  .reassurance { display: block; }
}

.reassurance .team img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
  background: #f8fafc;
}

.reassurance .checks {
  margin: .5rem 0 0;
}

@media (max-width: 900px) {
  .reassurance .wrap {
    grid-template-columns: 1fr;
  }
}

/* Extra spacing below About section */
#apropos {
  margin-bottom: 2rem;
}



.service-section .illus {
  background: linear-gradient(135deg, #ffffff, #ecebeb);
  border-radius: var(--radius);
  border: 1px solid #f4f4f4;
  padding: 1rem;
  box-shadow: var(--shadow)
}

.service-section figure {
  margin: 0
}

.service-section figcaption {
  font-size: .9rem;
  color: var(--ink-3);
  margin-top: .5rem
}

/* Reserve aspect ratio to reduce CLS on service illustrations */
.service-section .illus img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 900px) {
  .service-section .wrap {
    grid-template-columns: 1fr
  }
}

@media (max-width: 640px) {
  /* Reduce expensive filters on mobile for better INP */
  .hero-card { backdrop-filter: none; -webkit-backdrop-filter: none; }

  /* Enlarge service illustrations to full container width */
  .service-section .illus {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .service-section .illus img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
  }
}

/* Gallery & FAQ */
.gallery figure {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow)
}

.gallery figcaption {
  padding: .5rem .75rem;
  font-size: .95rem;
  color: var(--ink-2)
}





/* Zones d'intervention: narrow content to 60% on desktop */
@media (min-width: 901px) {
  section.container[aria-label*="Zones"] {
    width: min(60%, var(--w));
  }
}

/* Mobile: Zones d'intervention at 80% width */
@media (max-width: 640px) {
  section.container[aria-label*="Zones"] {
    width: 90%;
  }
}

/* Gallery: narrow container on mobile to 90% */
@media (max-width: 640px) {
  #realisations.container {
    width: 90%;
  }
}

/* Zones d'intervention: make illustration full container width */
section.container[aria-label*="Zones"] .illus {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: none;
}
section.container[aria-label*="Zones"] .illus img {
  width: 80%;
  max-width: 520px;
  margin: 0 auto;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
section.container[aria-label*="Zones"] .illus figcaption {
  text-align: center;
}





.faq details {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  box-shadow: var(--shadow)
}

.faq details+details {
  margin-top: .75rem
}

.faq summary {
  cursor: pointer;
  font-weight: 600
}

/* Contact & Footer */
.contact .wrap {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 
}

/* Center content in Contact section */
#contact .wrap {
  justify-content: center;
  justify-items: center;
  text-align: center;
}

/* Center the primary button in Contact */
#contact .cta {
  display: block;
  width: max-content;
  margin: 0 auto;
}

/* .contact form {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.contact form .cta {
  margin-top: 1rem;
  align-self: flex-end;
  border: none;
  outline: none;
} */

/* label {
  display: block;
  font-weight: 600;
  margin: .5rem 0 .25rem
}

input,
textarea,
select {
  width: 100%;
  padding: .75rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font: inherit
}

textarea {
  min-height: 120px
}

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

@media (max-width: 640px) {
  .contact .wrap {
    grid-template-columns: 1fr
  }

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

.footer {
  background: #0b1220;
  color: #e2e8f0;
  padding: 2rem 0;
  border-top: 1px solid #1f2937
}

.footer a {
  color: var(--brand)
}

/* Footer nav list without bullets */
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Helpers */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid #ff2828;
  color: #1e293b;
  background: #fee2e2;
  font-weight: 600
}

.note {
  font-size: .92rem;
  color: var(--ink-3)
}

/* Light grey info box (encart) */
.encart {
  background: var(--muted);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  color: var(--ink-2);
  margin: 1rem 0;
}

/* Prevent extra spacing if nested text blocks */
.encart p { margin: 0; }

.encart a {
  text-decoration: underline;
}

.intro-band {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.highlight-card {
  background: #f8fafc;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
}

.about-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.about-media img {
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
}

.services-modern .service-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .services-modern .service-grid-modern {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .services-modern .service-grid-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-card-modern {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.service-card-modern img {
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
}

.link-arrow {
  font-weight: 600;
  color: var(--brand);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.link-arrow::after {
  content: "→";
  font-size: 1rem;
  transition: transform .2s ease;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.process-section {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.timeline li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.timeline span {
  display: inline-block;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: .35rem;
}

.zones-band {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.zones-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.gallery-modern .gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-modern figure {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-modern figcaption {
  padding: .5rem .75rem;
  color: var(--ink-2);
}

.faq-modern details {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.faq-modern details + details {
  margin-top: .75rem;
}

.contact-modern {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.contact-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.contact-card ul {
  margin: .75rem 0 0;
  padding-left: 1.25rem;
  color: var(--ink-2);
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}



/* Active link state (scroll spy) */
nav a.active {
  background: #cfcfcf70;
  border: 1px solid #a7a6a61b
}

/* Utilities: margins, alignment, visibility */
.mt-0 { margin-top: 0 !important; }
.mt-05 { margin-top: .5rem !important; }
.mt-1 { margin-top: 1rem !important; }
.text-center { text-align: center !important; }
.hidden { display: none !important; }

/* CTA variants */
.cta.cta-accent { background: var(--accent); }
.cta.cta-accent:hover { background: var(--accent-2); }
.cta-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: none;
}
.cta-ghost:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.sub-hero {
  position: relative;
  color: #fff;
  padding: 5rem 0;
  background: var(--ink);
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  text-align: center;
  min-height: calc(30vh - var(--masthead, 0px));
  display: flex;
  align-items: center;
}

.sub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, .85), rgba(15, 23, 42, .75));
}

.sub-hero>.container {
  position: relative;
  z-index: 1;
}

.sub-hero .breadcrumb {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
  color: rgba(255, 255, 255, .7);
}

.sub-hero .breadcrumb a {
  color: #fff;
  text-decoration: underline;
}

.sub-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0 0 1rem;
}

.sub-hero p {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, .85);
}

.service-detail {
  padding: 3rem 0;
}

.service-detail .lead {
  max-width: 780px;
  color: var(--ink-2);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-card figure {
  margin: 0;
}

.service-card img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

.service-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.service-card p {
  margin: 0;
  color: var(--ink-2);
}

.service-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.service-cta {
  padding: 3rem 0 4rem;
}

.service-cta .service-cta-inner {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.service-cta p {
  color: rgba(255, 255, 255, .85);
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.service-cta .cta-group {
  justify-content: center;
}

.service-nav {
  position: relative;
  top: 0;
  background: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .08);
  z-index: 9;
}

.service-nav .container {
  display: flex;
  justify-content: center;
}

.service-nav ul {
  list-style: none;
  margin: 0;
  padding: .75rem 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-weight: 600;
}

.service-nav a {
  color: var(--ink);
}

.service-nav a:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .sub-hero {
    padding: 3.5rem 0;
  }

  .service-card {
    padding: 1rem;
  }

  .service-nav {
    position: static;
  }

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

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