:root{
  --navy:#0B2A5D;
  --navy-light: #0083B1;
  --blue:#0083B1;
  --main-blue: #1A73E8;
  --slate:#575457;
  --paper:#F7F6F2;
  --ink:#14161A;
  --thread:#B8935A;
  --lightgrey:#ECEAE5;

  --header-h: 76px;
  --footer-h: 32px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
::selection{ background:var(--thread); color:var(--paper); }

/* =========================================================
    HEADER (fixed)
========================================================= */
.site-header{
  position:fixed; top:0; left:0; right:0;
  height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 clamp(16px,4vw,40px);
  background:transparent;
  transition:background-color .3s ease;
  z-index:1000;
}
body.chrome-tinted .site-header{ background:var(--navy); }
.site-header .logo{ display:flex; align-items:center; gap:10px; }
.site-header .logo img { 
  height: clamp(24px,3.4vw,32px); 
  width: auto; 
  filter: brightness(0) invert(1);
}

.hamburger{
  position:relative; width:40px; height:40px; border:none; background:transparent;
  display:flex; align-items:center; justify-content:center; z-index:1201;
}
.hamburger span{
  position:absolute; 
  left:9px; 
  width:22px; 
  height:2px; 
  background: white;
  border-radius:2px; 
  transition:transform .35s var(--ease), opacity .25s ease, top .35s var(--ease);
}
.hamburger span:nth-child(1){ top:14px; }
.hamburger span:nth-child(2){ top:20px; }
.hamburger span:nth-child(3){ top:26px; }
.hamburger.open span:nth-child(1){ top:20px; transform:rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ top:20px; transform:rotate(-45deg); }

/* =========================================================
    MOBILE / SLIDE NAV
========================================================= */
.nav-overlay{
  position:fixed; inset:0; background:rgba(11,42,93,0.35);
  opacity:0; pointer-events:none; transition:opacity .35s ease; z-index:1150;
}
.nav-overlay.open{ opacity:1; pointer-events:auto; }

.side-nav{
  position:fixed; 
  top:0; 
  right:0; 
  height:100%; 
  width:min(340px,84vw);
  background:var(--navy); 
  z-index:1200;
  transform:translateX(100%); 
  transition:transform .45s var(--ease);
  display:flex; 
  flex-direction:column; 
  justify-content: space-between;
  padding:40px clamp(28px,6vw,48px) 20px;
}
.side-nav.open{ transform:translateX(0); }
.side-nav .side-nav-top{ position:absolute; top:0; left:0; right:0; height:var(--header-h); display:flex; align-items:center; }
.side-nav .eyebrow{ color:var(--thread); letter-spacing:.14em; font-size:12px; text-transform:uppercase; margin:0 0 18px; }
.side-nav ul{ list-style:none; margin:0; padding:0; }
.side-nav li{ border-top:1px solid rgba(247,246,242,0.14); }
.side-nav li:last-child{ border-bottom:1px solid rgba(247,246,242,0.14); }
.side-nav a{
  display:flex; align-items:baseline; gap:14px; padding:18px 2px;
  color:var(--paper); font-size:clamp(22px,4vw,30px); font-weight:600;
  transition:color .25s ease, padding-left .25s ease;
}
.side-nav a .num{ font-size:13px; font-weight:400; color:var(--blue); }
.side-nav a:hover, .side-nav a.is-current{ color:var(--thread); padding-left:10px; }
.side-nav .side-nav-foot{ 
  margin-top:34px; 
  color:rgba(247,246,242,0.6); 
  font-size:12px; 
  text-align: center;
}
.side-nav .side-nav-foot a{ color:var(--blue); }

/* =========================================================
    FOOTER (fixed)
========================================================= */
.site-footer{
  height:var(--footer-h);
  background: var(--ink);
  color:var(--paper);
  display:flex; 
  align-items:center; 
  justify-content:space-between;
  padding:0 clamp(16px,4vw,40px); z-index:1000;
  font-size:13px;
}
.site-footer .copy{ 
  font-size: 10.5px;
  font-weight: 400;
  color:rgba(247,246,242,0.7); 
  white-space:nowrap;
}

/* =========================================================
    SECTIONS — normal document flow, native page scroll.
    The header/footer are fixed overlays (above), so every section
    reserves clearance for them via .section-inner's padding, and
    scroll-margin-top keeps a clicked anchor link from landing with
    its top hidden under the fixed header.
========================================================= */
.section{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  scroll-margin-top: var(--header-h);
}
.section[data-theme="dark"]{ background:var(--navy); color:var(--paper); }
.section[data-theme="light"]{ background:var(--paper); color:var(--ink); }
.section[data-theme="alt"]{ background:var(--lightgrey); color:var(--ink); }

.section-inner{
  width: 100%;
  padding-left: clamp(20px, 6vw, 72px);
  padding-right: clamp(20px, 6vw, 72px);
  padding-top: calc(var(--header-h) + clamp(28px, 5vw, 56px));
  padding-bottom: calc(var(--footer-h) + clamp(28px, 5vw, 56px));
  margin: 0 auto;
}

.eyebrow{
  text-transform:uppercase; letter-spacing:.16em; font-size:12px; font-weight:700;
  color:var(--thread); margin:0 0 14px;
}
h1,h2,h3{ margin:0 0 16px; line-height:1.12; font-weight:700; }
h2{ font-size:clamp(30px,4.2vw,44px); }
p{ line-height:1.65; color:inherit; }
.lede{ font-size:clamp(16px,1.6vw,19px); max-width:640px; color:var(--slate); }
.section[data-theme="dark"] .lede{ color:rgba(247,246,242,0.78); }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 26px; border-radius:999px; font-weight:600; font-size:15px;
  border:1.5px solid transparent; transition:transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--blue); color:var(--paper); }
.btn-primary:hover{ background:var(--thread); }
.btn-ghost{ border-color:rgba(247,246,242,0.5); color:var(--paper); }
.btn-ghost:hover{ border-color:var(--thread); color:var(--thread); }
.btn-outline-navy{ border-color:var(--navy); color:var(--navy); }
.btn-outline-navy:hover{ background:var(--navy); color:var(--paper); }

/* =========================================================
    HERO
========================================================= */

.hero-slides{ position:absolute; inset:0; }
.hero-slide{
  position:absolute; inset:0;
  opacity:0; 
  visibility:hidden;
  transition:opacity .8s ease, visibility 0s linear .8s;
}
.hero-slide.active{
  opacity:1; visibility:visible; z-index:1;
  transition:opacity .8s ease;
}

.slide-bg{ position:absolute; inset:0; overflow:hidden; background:var(--navy); }
.slide-bg video{
  position:absolute; top:50%; left:50%; width:100%; height:100%;
  object-fit:cover; transform:translate(-50%,-50%);
}
.slide-bg::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(11,42,93,.50) 0%, rgba(11,42,93,.72) 60%, rgba(11,42,93,.86) 100%);
}

.slide-content{ position:relative; z-index:1; height:100%; display:flex; align-items:center; }
/* The hero copy stays anchored toward the bottom of the slide (above the
    dots/arrows), unlike every other section whose content is simply
    vertically centered by .section{align-items:center}. */
.hero .section-inner{
  max-width:1180px;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.hero-slide .tag{ font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--blue); font-weight:700; margin-bottom:16px; }
.hero-slide h1{ font-size:clamp(34px,6vw,64px); color:var(--paper); max-width:760px; }
.hero-slide h1 em{ font-style:normal; color:var(--thread); }
.hero-slide p{ color:rgba(247,246,242,0.8); font-size:clamp(16px,1.8vw,19px); max-width:560px; margin-bottom:30px; }

.hero-chrome{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  display:flex; align-items:center; justify-content:space-between;
  padding-left: clamp(20px,6vw,72px);
  padding-right: clamp(20px,6vw,72px);
  padding-bottom: clamp(16px,3vw,24px);
  pointer-events:none;
}
.hero-chrome > *{ pointer-events:auto; }

.hero-dots{ display:flex; gap:10px; }
.hero-dots button{
  width:34px; height:4px; border-radius:4px; border:none; background:rgba(247,246,242,0.28);
  transition:background .3s ease, width .3s ease;
}
.hero-dots button.active{ background:var(--thread); width:50px; }

.hero-arrows{ display:flex; gap:10px; }
.hero-arrows button{
  width:42px; height:42px; border-radius:50%; border:1px solid rgba(247,246,242,0.4);
  background:transparent; color:var(--paper); font-size:16px;
}
.hero-arrows button:hover{ border-color:var(--thread); color:var(--thread); }

/* =========================================================
    ABOUT
========================================================= */
.about .section-inner{ max-width:1180px; }
.about-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:clamp(32px,5vw,72px); align-items:center; }

.about-mark{
  aspect-ratio:1/1; border-radius:28px;
  background:linear-gradient(155deg, var(--navy), var(--blue));
  position:relative; overflow:hidden; max-width:420px;
}
.about-mark img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(1) hue-rotate(190deg) saturate(2.8) brightness(0.9) contrast(1.1);
  border-radius: 30px;
}

.partner-row{ margin-top:40px; }
.partner-label{
  text-transform:uppercase; letter-spacing:.16em; font-size:12px; font-weight:700;
  color:var(--thread); margin:0 0 16px;
}
.partner-list{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}

.partner-list .partner{
  flex: 0 1 168px;
  display:flex;
  align-items:center;
  justify-content:center;
  height:76px;
  padding:14px 26px;
  background:#fff;
  border:1.5px solid var(--lightgrey);
  border-radius:16px;
  transition:border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.partner-list .partner:hover{
  border-color:var(--thread);
  transform:translateY(-3px);
  box-shadow:0 12px 24px rgba(11,42,93,0.08);
}

.partner-list .partner img{
  width:100%;
  height:100%;
  object-fit:contain;
  opacity:.65;
  filter:grayscale(1);
  transition:opacity .25s ease, filter .25s ease;
}
.partner-list .partner:hover img{
  filter:none;
  opacity:1;
}

/* =========================================================
    SERVICES
========================================================= */
.services .section-inner{ max-width:1180px; }
.services-head{ max-width:640px; }
.services-head h2{ color:var(--paper); }
.service-grid { 
  display:grid; 
  grid-template-columns:repeat(4,1fr); 
  gap:20px; 
  margin-top:36px;
}

.service-card{
  background:rgba(247,246,242,0.06); border:1px solid rgba(247,246,242,0.14);
  border-radius:18px; padding:26px 22px; transition:border-color .3s ease, transform .3s ease, background .3s ease;
}
.service-card:hover{ border-color:var(--thread); transform:translateY(-4px); background:rgba(247,246,242,0.1); }
.service-card .icon{
  width:42px; height:42px; border-radius:12px; background:var(--blue);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.service-card .icon svg{ width:22px; height:22px; stroke:var(--paper); fill:none; stroke-width:1.8; }
.service-card h3{ font-size:18px; color:var(--paper); margin-bottom:8px; }
.service-card p{ font-size:14.5px; color:rgba(247,246,242,0.72); margin:0; }

/* =========================================================
    CONTACTS
========================================================= */
.contacts .section-inner{ max-width:1180px; }
.contact-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:clamp(32px,5vw,72px); }

.contact-list{ list-style:none; margin:26px 0 0; padding:0; display:flex; flex-direction:column; gap:18px; }
.contact-list li{ display:flex; gap:14px; align-items:flex-start; }
.contact-list .icon{
  width:38px; height:38px; flex:none; border-radius:10px; background:var(--lightgrey);
  display:flex; align-items:center; justify-content:center;
}
.contact-list .icon svg{ width:18px; height:18px; stroke:var(--navy); fill:none; stroke-width:1.8; }
.contact-list b{ display:block; font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--slate); margin-bottom:2px; }
.contact-list a, .contact-list span{ font-size:15.5px; color:var(--ink); }

.social-row{ display:flex; gap:12px; margin-top:28px; }
.social-row a{
  width:38px; height:38px; border-radius:50%; border:1.5px solid var(--lightgrey);
  display:flex; align-items:center; justify-content:center; transition:border-color .25s ease, background .25s ease;
}
.social-row a svg{ width:16px; height:16px; stroke:var(--navy); fill:none; stroke-width:1.8; }
.social-row a:hover{ border-color:var(--thread); background:var(--thread); }
.social-row a:hover svg{ stroke:var(--paper); }

.contact-form{ background:var(--paper); border:1px solid var(--lightgrey); border-radius:20px; padding:clamp(22px,3vw,34px); }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--slate); margin-bottom:6px; }
.field input, .field textarea{
  width:100%; border:1.5px solid var(--lightgrey); border-radius:10px; padding:12px 14px;
  font-family:inherit; font-size:15px; color:var(--ink); background:#fff; resize:vertical;
  transition:border-color .25s ease;
}
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--blue); }
.contact-form .btn{ width:100%; justify-content:center; }
.form-note{ font-size:12.5px; color:var(--slate); margin-top:12px; text-align:center; }

.hp-field{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}
.btn:disabled:hover{ transform: none; }

.field-consent{ margin-top: 4px; }

.field .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

/* Real checkbox stays in the DOM (focusable, screen-reader friendly,
   drives :checked/:focus-visible below) — just visually hidden rather
   than display:none, which would break keyboard/AT access. */
.checkbox input{
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.checkbox-box{
  flex: none;
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-top: 1px;
  border: 1.5px solid var(--lightgrey);
  border-radius: 6px;
  background: #fff;
  position: relative;
  transition: border-color .2s ease, background .2s ease;
}
.checkbox-box::after{
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity .15s ease;
}
.checkbox input:checked + .checkbox-box{
  background: var(--blue);
  border-color: var(--blue);
}
.checkbox input:checked + .checkbox-box::after{
  opacity: 1;
}
.checkbox input:focus-visible + .checkbox-box{
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.checkbox-text{
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.5;
  text-transform: none;
}
.checkbox-text a{
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.checkbox-text a:hover{
  color: var(--thread);
}

.cf-turnstile {
    display: flex;
    justify-content: flex-end;
}