/* Carbon Confido — shared site styles + homepage sections (v5). Loaded on every page.
   Breakpoints: desktop ≥1100 · tablet / iPad 768–1099 · mobile <768 */

:root {
  --green: #8dc63f;
  --green-dark: #5b8c1f;
  --green-pale: #e2f0d2;
  --green-num: #d3e8b5;
  --blue: #00aeef;
  --ink: #111;
  --muted: #8a8a8a;
  --gray-bg: #f2f2f2;
  --white: #fff;
  --radius: 18px;
  --wrap: 1060px;
  --wrap-wide: 1124px;
  --gutter: 40px;
  --sy: 72px;            /* section spacing: same top and bottom */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body); line-height: var(--lh-body); overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
svg { width: 1em; height: 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap      { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-wide { width: min(var(--wrap-wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; }

.h-section { color: var(--green); font-size: var(--fs-title); font-weight: 600; letter-spacing: -.01em; line-height: var(--lh-heading); }
.h-green   { color: var(--green); font-weight: 600; }
.eyebrow   { font-size: var(--fs-sm); letter-spacing: .02em; margin-bottom: 8px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 18px;
  height: 60px; padding: 0 9px 0 38px; border-radius: 999px;
  font-weight: 600; font-size: var(--fs-ui); white-space: nowrap;
  --btn-accent: var(--blue);           /* arrow colour once the icon turns white on hover */
  --btn-ring: rgba(0,174,239,.22);     /* soft glow ring colour on hover */
  transition: box-shadow .4s ease, background-color .4s ease, transform .15s ease;
}
.btn-ico {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px;
  transition: background-color .4s ease, color .4s ease, transform .45s cubic-bezier(.65,0,.35,1);
}
.btn-ico svg { transition: transform .45s cubic-bezier(.65,0,.35,1); }

/* Hover animation — "text roll + arrow tilt":
   the label rolls up and an identical copy rolls in from below, the arrow
   circle turns solid white and the arrow tilts up to ↗, and a soft ring
   glows around the pill. Press = slight squeeze. */
.btn-label { position: relative; display: inline-block; overflow: hidden; line-height: 1.3; }
.btn-label > span { display: block; transition: transform .45s cubic-bezier(.65,0,.35,1); }
.btn-label > span::after {
  content: attr(data-text); content: attr(data-text) / ""; /* decorative copy: not read aloud */
  position: absolute; left: 0; top: 100%; white-space: nowrap;
}
.btn:hover .btn-label > span, .btn:focus-visible .btn-label > span { transform: translateY(-100%); }
.btn:hover .btn-ico, .btn:focus-visible .btn-ico { background: #fff; color: var(--btn-accent); transform: translateX(3px); }
.btn:hover .btn-ico svg, .btn:focus-visible .btn-ico svg { transform: rotate(-45deg); }
.btn:hover, .btn:focus-visible { box-shadow: 0 0 0 5px var(--btn-ring), 0 8px 20px rgba(0,0,0,.12); }
.btn:active { transform: scale(.97); }

.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.btn-blue .btn-ico { background: rgba(255,255,255,.3); }
.btn-blue:hover, .btn-blue:focus-visible { background: #0aa3df; }

.btn-glass { background: rgba(255,255,255,.72); color: var(--green-dark); padding-left: 36px; backdrop-filter: blur(6px);
  --btn-accent: var(--green-dark); --btn-ring: rgba(255,255,255,.35); }
.btn-glass .btn-ico { background: rgba(141,198,63,.45); color: #fff; }
.btn-glass:hover, .btn-glass:focus-visible { background: #fff; }
.btn-glass:hover .btn-ico, .btn-glass:focus-visible .btn-ico { background: var(--green); color: #fff; }

.btn-dark { background: rgba(10,25,20,.55); color: var(--green); border: 1px solid var(--green);
  --btn-accent: var(--green-dark); --btn-ring: rgba(141,198,63,.3); }
.btn-dark .btn-ico { background: rgba(141,198,63,.35); color: #fff; }
.btn-dark:hover, .btn-dark:focus-visible { background: rgba(10,25,20,.7); }

/* Scroll-triggered animation — "expand from the arrow":
   JS adds .reveal to buttons, then .in when the button scrolls into view.
   1. the arrow circle pops in on its own and spins into place,
   2. the pill unrolls leftwards out of the circle,
   3. the label fades/slides in last.
   "backwards" fill means nothing lingers after the entrance, so hover works normally. */
.btn.reveal { opacity: 0; }
.btn.reveal.in {
  opacity: 1;
  animation: btn-unroll 1s cubic-bezier(.65,0,.25,1) backwards;
  animation-delay: var(--reveal-delay, 0s);
}
.btn.reveal.in .btn-ico {
  animation: btn-ico-pop .5s cubic-bezier(.34,1.56,.64,1) backwards;
  animation-delay: var(--reveal-delay, 0s);
}
.btn.reveal.in .btn-label {
  animation: btn-label-in .5s ease-out backwards;
  animation-delay: calc(var(--reveal-delay, 0s) + .6s);
}
@keyframes btn-unroll {
  0%   { opacity: 0; clip-path: inset(0 0 0 calc(100% - 60px) round 999px); }
  15%  { opacity: 1; clip-path: inset(0 0 0 calc(100% - 60px) round 999px); }
  100% { opacity: 1; clip-path: inset(-30px -30px -30px -30px round 999px); }
}
@keyframes btn-ico-pop {
  from { transform: scale(0) rotate(-180deg); }
  to   { transform: none; }
}
@keyframes btn-label-in {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  /* Fills exactly one screen; the text block is vertically centred.
     Equal top/bottom padding (= header height) keeps the centre true
     and stops the text sliding under the fixed header. */
  position: relative; color: #fff;
  height: 100vh; height: 100svh; min-height: 560px;
  padding: 122px 0;
  background:
    /* dark blue gradient: deepest behind the text (left) and under the header (top), clear on the right so the photo stays bright */
    linear-gradient(90deg, rgba(6,34,74,.62) 0%, rgba(6,34,74,.32) 40%, rgba(6,34,74,0) 72%),
    linear-gradient(180deg, rgba(6,34,74,.5) 0%, rgba(6,34,74,0) 28%, rgba(6,34,74,0) 70%, rgba(6,34,74,.35) 100%),
    url("assets/home/hero.jpg") left center / cover no-repeat;
  display: flex; flex-direction: column; justify-content: center;
}
/* Sticky header: transparent over the hero. As the page scrolls, a solid white
   background fades in gradually (--p goes 0 → 1 with scroll distance, set in JS). */
.site-header {
  --p: 0;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 30px 0 18px; color: #fff;
  transition: padding .3s ease, color .3s ease;
}
/* Solid white behind the header, then a short soft fade below it instead of a hard edge */
.site-header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: -28px;
  z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,
    #fff 0%,
    #fff 76%,
    rgba(255,255,255,.85) 84%,
    rgba(255,255,255,.4) 93%,
    rgba(255,255,255,0) 100%);
  opacity: var(--p);
}
.site-header.scrolled { padding: 20px 0; color: var(--ink); }
.nav { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 20; }
.nav-logo { display: block; position: relative; }
.nav-logo img { width: 130px; height: auto; transition: width .3s ease, opacity .3s ease; }
.nav-logo .logo-on-light { position: absolute; top: 0; left: 0; opacity: 0; }
.site-header.scrolled .nav-logo .logo-on-dark { opacity: 0; }
.site-header.scrolled .nav-logo .logo-on-light { opacity: 1; }
.site-header.scrolled .nav-logo img { width: 110px; }
@media (min-width: 1100px) {
  .site-header.scrolled .btn-glass { background: var(--green-pale); backdrop-filter: none; }
  .site-header.scrolled .btn-glass .btn-ico { background: var(--green); }
  .site-header.scrolled .btn-glass { --btn-ring: rgba(141,198,63,.3); }
  .site-header.scrolled .btn-glass:hover, .site-header.scrolled .btn-glass:focus-visible { background: #d4e8bb; }
  .site-header.scrolled .btn-glass:hover .btn-ico, .site-header.scrolled .btn-glass:focus-visible .btn-ico { background: #fff; color: var(--green-dark); }
}
.nav-menu { display: flex; align-items: center; gap: 56px; }
.nav-menu > a:not(.btn) { font-size: var(--fs-ui); font-weight: 500; position: relative; }
.nav-menu > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--green); transform: scaleX(0); transition: transform .25s;
}
.nav-menu > a:not(.btn):hover::after,
.nav-menu > a[aria-current="page"]::after { transform: scaleX(1); }   /* current page stays underlined */
.nav-menu .btn { margin-left: 25px; }
.nav-toggle { display: none; }

.hero-copy { margin: 0 auto; padding: 0; text-shadow: 0 2px 16px rgba(0,0,0,.35); }   /* keeps white text readable on the brighter photo */
.hero h1 { font-size: var(--fs-hero); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.hero-copy > p { font-size: var(--fs-body); margin: 10px 0 34px; }

/* ---------- Intro ---------- */
.intro { background: var(--gray-bg); padding: 100px 0; }
.intro-grid { display: grid; grid-template-columns: 675fr 385fr; position: relative; }
.intro-photo { grid-column: 1; grid-row: 1; width: 100%; aspect-ratio: 675 / 486; object-fit: cover; border-radius: var(--radius); }
.intro-card {
  grid-column: 1 / -1; grid-row: 1; justify-self: end; width: 59%;
  margin-top: 158px; background: #fff; border-radius: var(--radius);
  padding: 54px 47px 52px; box-shadow: 10px 12px 26px rgba(0,0,0,.08);
}
.intro-card h2 { font-size: var(--fs-title); line-height: var(--lh-heading); margin-bottom: 24px; }
.intro-card p { margin-bottom: 18px; }
.intro-card p:last-of-type { margin-bottom: 16px; }

/* ---------- Commitment ---------- */
.commitment { padding: var(--sy) 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 52px; }
.commit-card { background: var(--gray-bg); border-radius: var(--radius); overflow: hidden; }
.commit-card img { width: 100%; aspect-ratio: 324 / 216; object-fit: cover; }
.commit-card h3 { font-size: var(--fs-lg); font-weight: 600; text-align: center; padding: 24px 20px 32px; line-height: var(--lh-heading); }

/* ---------- Band ---------- */
.band {
  position: relative; color: #fff; text-align: center;
  background:
    linear-gradient(90deg, rgba(141,198,63,.88) 0%, rgba(101,180,110,.82) 50%, rgba(10,140,200,.88) 100%),
    url("assets/home/industrial-park.jpg") center / cover no-repeat;
  padding: var(--sy) 0;
}
.band-inner { width: min(560px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.band h2 { font-size: var(--fs-title); font-weight: 600; line-height: var(--lh-heading); margin-bottom: 24px; }
.band p { margin-bottom: 24px; }
.band p:first-of-type { margin-bottom: 18px; }
.band .btn { margin-top: 14px; }

/* ---------- Services ---------- */
.services { padding: var(--sy) 0; }
.svc-card img { width: 100%; aspect-ratio: 324 / 216; object-fit: cover; border-radius: var(--radius); }
.svc-body { padding-top: 22px; }
.svc-card h3 { color: var(--green-dark); font-size: var(--fs-h4); font-weight: 600; line-height: var(--lh-heading); margin-bottom: 8px; }
.svc-card p { font-size: var(--fs-body-sm); margin-bottom: 16px; }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: var(--fs-sm); font-weight: 600; }
.more { text-decoration: underline; text-underline-offset: 3px; }
.more svg { font-size: 16px; transition: transform .2s; }
.more:hover svg { transform: translateX(4px); }
.footnote { font-size: var(--fs-sm); text-align: center; margin-top: 56px; }

/* ---------- Why ---------- */
.why { padding: var(--sy) 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 44px; row-gap: 90px; }
.why-box {   /* designed panel: soft green-to-blue wash, accent bar under the title */
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,.75), rgba(255,255,255,0) 55%),
    linear-gradient(140deg, #e4f1d3 0%, #e9f5ee 50%, #dff2fb 100%);
  border: 1px solid rgba(141,198,63,.28); border-radius: var(--radius);
  aspect-ratio: 1; display: flex; align-items: center; padding: 30px;
}
.why-box h2::after {   /* short green-to-blue accent bar */
  content: ""; display: block; width: 56px; height: 4px; margin-top: 20px; border-radius: 4px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}
.why-box h2 { color: var(--green); font-size: var(--fs-title); font-weight: 600; line-height: var(--lh-heading); margin-top: -40px; }
.why-box h2 span { display: block; font-size: 45px; font-weight: 700; line-height: 1.1; }
.why-item { padding-top: 40px; }
.why-item:nth-child(n+5) { padding-top: 0; }
.why-grid > .why-item:nth-child(4) { padding-top: 0; }
.why-item img { width: 74px; height: 74px; margin-bottom: 26px; }
.why-item h3 { color: var(--green-dark); font-size: var(--fs-h4); font-weight: 600; line-height: var(--lh-heading); margin-bottom: 8px; max-width: 13em; }
.why-item p { font-size: var(--fs-body-sm); max-width: 22.5em; }

/* ---------- Who we serve ---------- */
.serve { background: var(--gray-bg); padding: var(--sy) 0; }
.serve-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 47px; }
.serve-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 44px) / 3);
  column-gap: 44px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y;   /* finger swipe left/right, page still scrolls up/down */
}
.serve-track::-webkit-scrollbar { display: none; }
/* Mouse drag-to-scroll (added by JS when the cards don't all fit, i.e. iPad / phone widths) */
.serve-track.is-draggable { cursor: grab; }
.serve-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.serve-track img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.serve-card { position: relative; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; aspect-ratio: 1; }
.serve-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.serve-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(141,198,63,0) 35%, rgba(141,198,63,.55) 70%, rgba(141,198,63,1) 100%);
}
.serve-card h3 { position: absolute; z-index: 2; left: 27px; right: 27px; bottom: 40px; color: #fff; font-size: var(--fs-h4); font-weight: 600; line-height: var(--lh-heading);
  transition: transform .6s cubic-bezier(.2,.8,.2,1); }

/* Hover animation: the photo slowly zooms in, a deeper green wash rises from
   the bottom, the title lifts up and a short white line draws in under it. */
.serve-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(74,122,26,0) 10%, rgba(74,122,26,.35) 50%, rgba(74,122,26,.92) 100%);
  opacity: 0; transform: translateY(30%);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.serve-card h3::after {
  content: ""; position: absolute; left: 0; top: calc(100% + 12px); width: 0; height: 3px; border-radius: 3px; background: #fff;
  transition: width .5s cubic-bezier(.2,.8,.2,1) .1s;
}
@media (hover: hover) {   /* mouse/trackpad only, so taps on phones don't leave a card stuck in its hover look */
  .serve-card:hover img { transform: scale(1.08); }
  .serve-card:hover::before { opacity: 1; transform: none; }
  .serve-card:hover h3 { transform: translateY(-10px); }
  .serve-card:hover h3::after { width: 56px; }
}
.serve-foot { display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; margin-top: 50px; align-items: start; }
.serve-foot p { font-size: var(--fs-body-sm); }
.serve-arrows { display: none; gap: 25px; justify-self: end; } /* hidden on desktop: all 3 cards fit */
.round {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: #d4e8bb; color: var(--green); display: grid; place-items: center; font-size: 30px;
  transition: background-color .2s, opacity .2s;
}
.round:hover:not(:disabled) { background: #c3e09d; }
.round:disabled { opacity: .45; cursor: default; }

/* ---------- Approach ---------- */
.approach { padding: var(--sy) 0; }
.steps { list-style: none; margin: 60px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 44px; row-gap: 90px; }
.num { display: block; width: 150px; height: auto; opacity: .4; margin-bottom: 8px; }
.steps h3 { color: var(--green-dark); font-size: var(--fs-h4); font-weight: 600; line-height: var(--lh-heading); margin-bottom: 8px; }
.steps p { font-size: var(--fs-body-sm); max-width: 19em; }

/* ---------- CTA ---------- */
.cta {
  color: #fff; padding: var(--sy) 0;
  background:
    linear-gradient(90deg, rgba(80,140,30,.9) 0%, rgba(141,198,63,.75) 35%, rgba(100,180,150,.7) 65%, rgba(40,150,210,.75) 100%),
    url("assets/home/cta-bg.jpg") center / cover no-repeat;
}
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 90px; }
.cta h2 { font-size: var(--fs-h3); font-weight: 500; line-height: var(--lh-heading); max-width: 11em; margin-bottom: 48px; }   /* desktop gap to the paragraph (was 130px) */
.cta-grid > div:first-child p { font-size: var(--fs-body-sm); font-weight: 400; max-width: 34em; opacity: .95; }
.cta-big { font-size: var(--fs-h3); font-weight: 600; line-height: var(--lh-heading); margin-bottom: 36px !important; }

/* ---------- Footer ---------- */
.footer { padding: calc(var(--sy) * .64) 0; font-size: var(--fs-body-sm); }   /* footer text a step smaller than body */
.footer-grid { display: grid; grid-template-columns: 1.6fr .9fr 1.1fr; gap: 40px; }
.footer-brand img { width: 160px; height: auto; margin-bottom: 12px; }
.footer-brand p { font-size: 16px; font-weight: 500; line-height: 1.3; }
.footer-links { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.footer-links a, .footer-contact a { width: fit-content; }
.footer-links a:hover, .footer-contact a:hover { color: var(--green-dark); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.footer-contact p { margin-bottom: 2px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; margin-top: 110px; }
.footer-bottom p { font-size: 12px; }   /* tagline and policy links: 12px on every version */
.footer-bottom nav { display: flex; gap: 38px; flex-wrap: wrap; }
.footer-bottom nav a { color: var(--muted); font-size: 12px; }
.footer-bottom nav a:hover { color: var(--ink); }

.br-lg { display: inline; }
.br-sm { display: none; }   /* line break used on mobile only */

/* =========================================================
   Tablet / iPad (768 – 1099)
   ========================================================= */
@media (max-width: 1099px) {
  :root { --gutter: 40px; --sy: 72px; }   /* iPad section spacing (top + bottom) */

  /* Collapsible nav */
  .nav-toggle {
    display: grid; gap: 6px; width: 50px; height: 50px; padding: 14px 12px;
    background: rgba(255,255,255,.75); border: 0; border-radius: 50%; cursor: pointer; align-content: center;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--green-dark); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .site-header.scrolled .nav-toggle { background: var(--gray-bg); }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-menu {
    position: absolute; top: calc(100% + 12px); right: 0; width: min(340px, 100%);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; color: var(--ink); border-radius: var(--radius); padding: 12px;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-menu > a:not(.btn) { padding: 14px 16px; border-radius: 10px; }
  .nav-menu > a:not(.btn):hover { background: var(--gray-bg); }
  .nav-menu > a:not(.btn)::after { display: none; }
  .nav-menu .btn { margin: 10px 0 4px; justify-content: space-between; background: var(--blue); color: #fff; }
  .nav-menu .btn .btn-ico { background: rgba(255,255,255,.3); }
  .nav-menu .btn { --btn-accent: var(--blue); --btn-ring: rgba(0,174,239,.22); }
  .nav-menu .btn:hover, .nav-menu .btn:focus-visible { background: #0aa3df; }
  .nav-menu .btn:hover .btn-ico, .nav-menu .btn:focus-visible .btn-ico { background: #fff; color: var(--blue); }

  .hero { background-position: 55% center;
    background-image:
      linear-gradient(180deg, rgba(6,34,74,.55) 0%, rgba(6,34,74,.25) 30%, rgba(6,34,74,.4) 55%, rgba(6,34,74,.6) 100%),   /* dark blue gradient */
      url("assets/home/hero.jpg");
    background-size: cover; }
  .hero-copy { text-shadow: 0 2px 14px rgba(0,0,0,.45); }

  /* Intro: image then overlapping card */
  .intro { padding: var(--sy) 0; }
  .intro-grid { display: block; }
  .intro-photo { width: 80%; }
  .intro-card { width: 78%; margin: -120px 0 0 auto; padding: 44px 40px; position: relative; }
  .intro-card h2 { margin-bottom: 24px; }

  .grid-3 { gap: 24px; margin-top: 40px; }
  .commit-card h3 { padding: 20px 14px 26px; }


  /* Services: horizontal rows */
  .svc-grid { grid-template-columns: 1fr; gap: 36px; }
  .svc-card { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; }
  .svc-body { padding-top: 0; }
  .footnote { margin-top: 44px; text-align: left; }

  .why-grid { grid-template-columns: 1fr 1fr; column-gap: 36px; row-gap: 56px; }
  .why-item, .why-item:nth-child(n+5) { padding-top: 0; }
    .why-box { aspect-ratio: auto; min-height: 260px; padding: 36px; }
  .why-box h2 { margin-top: 0; }
  .why-box h2 span { font-size: var(--fs-h2); }   /* iPad 32px, mobile 28px */

  .serve-track { grid-auto-columns: calc((100% - 24px) / 2.15); column-gap: 24px; }
  .serve-foot { grid-template-columns: 1fr 1fr; row-gap: 28px; column-gap: 36px; margin-top: 36px; }
  .serve-arrows { grid-column: 1 / -1; justify-self: end; display: flex; }

  .steps { grid-template-columns: 1fr 1fr; column-gap: 36px; row-gap: 56px; margin-top: 48px; }
  .num { width: 132px; }

  .cta-grid { grid-template-columns: 1fr; row-gap: 44px; }
  .cta h2 { max-width: 16em; margin-bottom: 20px; }
  .cta-big { max-width: 16em; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 64px; }
}

/* =========================================================
   Mobile (< 768)
   ========================================================= */
@media (max-width: 767px) {
  :root { --gutter: 20px; --radius: 16px; --sy: 56px; }   /* mobile section spacing (top + bottom) */

  .btn { height: 54px; padding-left: 28px; gap: 14px; }
  .btn-ico { width: 38px; height: 38px; }

  .site-header { padding: 18px 0 14px; }
  .site-header.scrolled { padding: 16px 0; }
  .hero { padding: 96px 0; min-height: 520px; }
  .site-header.scrolled .nav-logo img { width: 92px; }
  .nav-logo img { width: 108px; }
  .nav-menu { width: 100%; }

  .hero { background-position: 42% center;
    background-image:
      linear-gradient(180deg, rgba(6,34,74,.55) 0%, rgba(6,34,74,.25) 30%, rgba(6,34,74,.4) 55%, rgba(6,34,74,.6) 100%),   /* dark blue gradient */
      url("assets/home/hero.jpg");
    background-size: cover; }
  .br-lg { display: none; }
  .br-sm { display: none; }   /* set to inline (and shrink .cta-big to ~17px) for the exact 3-line split */
  .hero-copy > p { margin: 12px 0 28px; }

  .intro-photo { width: 100%; }
  .intro-card { width: calc(100% - 20px); margin-top: -56px; padding: 30px 24px; }
  .intro-card h2 { margin-bottom: 24px; }
  .intro-card p { margin-bottom: 18px; }

  .grid-3 { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
  .commit-card { display: grid; grid-template-columns: 42% 1fr; align-items: center; }
  .commit-card img { height: 100%; aspect-ratio: 4 / 3; }
  .commit-card h3 { text-align: left; padding: 16px 18px; }


  .svc-grid { gap: 40px; }
  .svc-card { display: block; }
  .svc-body { padding-top: 18px; }
  .footnote { margin-top: 36px; }

  .why-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .why-box { padding: 28px 26px; min-height: 0; }
  .why-item { display: grid; grid-template-columns: 60px 1fr; column-gap: 18px; }
  .why-item img { width: 60px; height: 60px; margin: 0; grid-row: span 2; }
  .why-item h3 { margin-bottom: 8px; }

  .serve-head { margin-bottom: 28px; }
  .serve-head .btn { display: none; }
  .serve-track { grid-auto-columns: 84%; column-gap: 16px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .serve-card h3 { left: 22px; right: 22px; bottom: 26px; }
  .serve-foot { grid-template-columns: 1fr; row-gap: 18px; margin-top: 32px; }
  .serve-arrows { grid-row: 1; justify-self: start; margin-bottom: 6px; gap: 16px; }
  .round { width: 50px; height: 50px; font-size: 26px; }

  .steps { grid-template-columns: 1fr; row-gap: 48px; margin-top: 40px; }
  .num { width: 112px; margin-bottom: 6px; }
  .steps p { max-width: none; }

  /* Intro + CTA buttons keep the desktop layout (not full width) on mobile, at the mobile button size */

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand img { width: 130px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
  .footer-bottom { margin-top: 44px; flex-direction: column; align-items: flex-start; }
  .footer-bottom nav { gap: 10px 22px; }
}

/* =========================================================
   Complaints and Appeals Policy pop-up
   Opens over whatever page the visitor is on (site.js). The same card is also
   used on the stand-alone complaints-and-appeals-policy.html page.
   ========================================================= */
.policy-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; justify-content: center; align-items: center;
  padding: 48px var(--gutter);
  background: rgba(30,34,40,.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transition: opacity .3s ease;
}
.policy-overlay.is-open { opacity: 1; }
.policy-overlay .policy-modal {
  max-height: calc(100vh - 96px); max-height: calc(100svh - 96px);
  transform: translateY(24px) scale(.97); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.policy-overlay.is-open .policy-modal { transform: none; }
html.modal-lock, html.modal-lock body { overflow: hidden; }   /* page behind stays where it was */

.policy-modal {
  position: relative; width: 100%; max-width: 1040px;
  background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  display: flex; flex-direction: column;
}
/* Gradient title bar */
.policy-modal-head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 54px 28px 68px; min-height: 124px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--green) 0%, #5fbf9a 55%, #3eaee6 100%);
  color: #fff;
}
.policy-modal-head h1, .policy-modal-head h2.policy-modal-title { font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; margin: 0; }
.modal-close {
  flex: none; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 26px;
  background: rgba(255,255,255,.35); color: #fff;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.modal-close svg { width: 1em; height: 1em; }
.modal-close:hover, .modal-close:focus-visible { background: #fff; color: var(--blue); transform: rotate(90deg); }
.modal-close:focus-visible { outline-color: #fff; }
/* Scrollable policy text */
.policy-modal-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 44px 54px 64px 68px;
  font-size: var(--fs-body); line-height: 1.5;
  scrollbar-width: thin; scrollbar-color: #bdbdbd transparent;
}
.policy-modal-body:focus-visible { outline-offset: -4px; }
.policy-modal-body h2 { font-size: calc(var(--fs-h3) * .875); font-weight: 500; line-height: 1.25; margin: 40px 0 22px; }
.policy-modal-body h2:first-child { margin-top: 0; }
.policy-modal-body p + p, .policy-modal-body ul + p { margin-top: 22px; }
.policy-modal-body ul { margin: 22px 0 0; padding-left: 24px; }
.policy-modal-body h3 { font-size: var(--fs-md); line-height: 1.5; margin: 22px 0 0; }
.policy-modal-body h3.term { font-weight: 600; }
.policy-modal-body h3.principle { font-weight: 400; }
.policy-modal-body p.tight { margin-top: 0; }
.policy-modal-body ul + h2, .policy-modal-body dl + p { margin-top: 22px; }
.policy-channels { margin: 22px 0 0; display: grid; gap: 12px; }
.policy-channels dt { font-weight: 600; }
.policy-channels dd { margin: 0; }
.policy-channels a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.policy-approval { margin-top: 44px; padding-top: 24px; border-top: 1px solid #e3e3e3; }
.policy-approval p + p { margin-top: 12px; }
.policy-ref { color: var(--muted); font-size: var(--fs-sm); }
/* "Submit a Complaint" sits on the bottom edge of the card, bottom-right */
.modal-submit { position: absolute; right: 48px; bottom: -30px; z-index: 2; }

@media (max-width: 1099px) {
  .policy-modal-head { padding: 24px 32px 24px 40px; min-height: 100px; }
  .policy-modal-body { padding: 36px 40px 64px; }
  .modal-submit { right: 32px; }
}
@media (max-width: 767px) {
  /* Phone: the card keeps its natural height and the pop-up layer scrolls */
  .policy-overlay { align-items: flex-start; padding: 16px 12px 56px; }
  .policy-overlay .policy-modal { max-height: none; }
  .policy-modal-head { padding: 20px 16px 20px 22px; min-height: 0; align-items: flex-start; }
  .modal-close { width: 46px; height: 46px; font-size: 22px; }
  .policy-modal-body { overflow: visible; padding: 28px 22px 56px; }
  .policy-modal-body h2 { margin: 32px 0 16px; }
  .policy-modal-body ul { padding-left: 20px; }
  .modal-submit { right: 50%; transform: translateX(50%); }
  .modal-submit:active { transform: translateX(50%) scale(.97); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .btn.reveal { opacity: 1; }
}
