/* =============================================================
   Active Squad — stylesheet
   Palette: navy #0F2A3D, teal #1F5C6B, amber #E8963C,
            paper #F6F4EF, ink #16202B
   Type: Outfit (display) + Inter (body)
============================================================= */

:root{
  --navy: #0F2A3D;
  --navy-2: #153A52;
  --teal: #1F5C6B;
  --amber: #E8963C;
  --amber-dark: #C97A22;
  --paper: #F6F4EF;
  --paper-dim: #EFEDE5;
  --line: #DEDACD;
  --ink: #16202B;
  --ink-soft: #4A5560;
  --white: #FFFFFF;

  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1160px;
  --radius: 10px;
  --shadow: 0 18px 40px -22px rgba(15,42,61,0.35);

  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

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

html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg{ max-width: 100%; display: block; }

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

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1{ font-size: clamp(2.1rem, 4.2vw, 3.25rem); font-weight: 700; letter-spacing: -0.01em; }
h2{ font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
h3{ font-size: 1.15rem; }

p{ margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

ul{ margin: 0; padding: 0; list-style: none; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; top: 0; }

:focus-visible{
  outline: 2.5px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn-primary{
  background: var(--amber);
  color: var(--navy);
}
.btn-primary:hover{ background: var(--amber-dark); transform: translateY(-1px); }
.btn-ghost{
  background: transparent;
  border-color: rgba(15,42,61,0.25);
  color: var(--navy);
}
.btn-ghost:hover{ border-color: var(--navy); background: rgba(15,42,61,0.05); }
.btn-small{ padding: 10px 18px; font-size: 0.9rem; }
.btn-full{ width: 100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,244,239,0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}
.main-nav ul{
  display: flex;
  gap: 34px;
}
.main-nav a{
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--amber);
  transition: right 0.25s var(--ease);
}
.main-nav a:hover::after{ right: 0; }

.header-actions{ display: flex; align-items: center; gap: 16px; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  padding: 76px 0 60px;
  background: linear-gradient(180deg, #F9F7F2 0%, var(--paper) 100%);
}
.hero-route{
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
}
.hero-route svg{ width: 100%; height: 100%; }
.route-line{
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.5;
  stroke-dasharray: 10 10;
  opacity: 0.4;
}
.route-dot{ fill: var(--amber); }
.route-dot-alt{ fill: var(--navy); opacity: 0.5; }

.hero-inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-kicker{
  font-family: var(--font-display);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.hero-lede{ font-size: 1.08rem; max-width: 52ch; }
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 40px; }

.hero-stats{
  display: flex;
  gap: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-stats dt{
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
}
.hero-stats dd{
  margin: 2px 0 0;
  font-size: 0.87rem;
  color: var(--ink-soft);
  max-width: 14ch;
}

.hero-visual{ display: flex; justify-content: center; }
.hero-illustration{ width: 100%; max-width: 380px; }

/* ---------- Sections shared ---------- */
.section{ padding: 88px 0; }
.section-head{ max-width: 640px; margin-bottom: 48px; }

/* ---------- About ---------- */
.about-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}
.about-points{ margin-top: 22px; }
.about-points li{
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.about-points li::before{
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--amber);
}
.about-figure{ max-width: 320px; margin: 0 auto; }

/* ---------- Services ---------- */
.services{ background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card{
  background: var(--white);
  padding: 34px 30px;
  border-left: 3px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.service-card:hover{
  border-left-color: var(--amber);
  background: var(--paper);
}
.service-icon{
  display: inline-flex;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}
.service-card h3{ margin-bottom: 8px; }
.service-card p{ font-size: 0.94rem; margin: 0; }

/* ---------- Why us ---------- */
.why-us{ background: var(--paper); }
.why-grid{
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 56px;
}
.why-head p{ margin-top: 14px; }
.why-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 40px;
}
.why-list h3{
  font-size: 1.05rem;
  margin-bottom: 6px;
  padding-left: 16px;
  border-left: 2.5px solid var(--amber);
}
.why-list p{ padding-left: 16px; font-size: 0.94rem; margin: 0; }

/* ---------- Contact ---------- */
.contact{ background: var(--navy); color: var(--paper); }
.contact h2{ color: var(--white); }
.contact p{ color: rgba(246,244,239,0.72); }
.contact-grid{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}
.contact-details{ margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.contact-details li{
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.96rem;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(246,244,239,0.14);
}
.contact-details li:last-child{ border-bottom: none; padding-bottom: 0; }
.contact-label{
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--amber);
  font-weight: 600;
}
.contact-details a{ color: var(--paper); text-decoration: underline; text-decoration-color: rgba(246,244,239,0.35); }
.contact-details a:hover{ text-decoration-color: var(--amber); }

.contact-form{
  background: var(--paper);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field{ margin-bottom: 18px; display: flex; flex-direction: column; }
.form-field label{
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea{
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.18s var(--ease);
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  border-color: var(--teal);
  outline: none;
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea{
  border-color: #C0432E;
}
.field-error{
  min-height: 1.1em;
  font-size: 0.8rem;
  color: #C0432E;
  margin-top: 4px;
}
.form-status{
  margin: 14px 0 0;
  font-size: 0.92rem;
  min-height: 1.2em;
  color: var(--teal);
  font-weight: 500;
}
.form-status.is-error{ color: #C0432E; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: rgba(246,244,239,0.7); padding-top: 56px; }
.footer-grid{
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246,244,239,0.12);
}
.footer-brand{ display: flex; gap: 12px; align-items: flex-start; }
.footer-company{ color: var(--white); font-weight: 600; margin: 0; font-family: var(--font-display); }
.footer-address{ font-size: 0.88rem; margin: 4px 0 0; }
.footer-nav{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-nav h4{
  color: var(--white);
  font-size: 0.85rem;
  margin: 0 0 14px;
  font-family: var(--font-display);
}
.footer-nav ul{ display: flex; flex-direction: column; gap: 10px; }
.footer-nav a{ font-size: 0.9rem; color: rgba(246,244,239,0.7); }
.footer-nav a:hover{ color: var(--amber); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px 0;
  font-size: 0.82rem;
}
.footer-bottom p{ margin: 0; color: inherit; }

/* =============================================================
   Responsive
============================================================= */
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; max-width: 260px; margin: 0 auto 12px; }
  .about-grid{ grid-template-columns: 1fr; }
  .about-figure{ order: -1; max-width: 220px; }
  .why-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .service-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-nav{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px){
  .main-nav{
    position: fixed;
    inset: 74px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }
  .main-nav.is-open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav ul{
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .main-nav a{ display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle{ display: flex; }
  .header-actions .btn-small{ display: none; }

  .service-grid{ grid-template-columns: 1fr; }
  .why-list{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .footer-nav{ grid-template-columns: 1fr 1fr; }
  .hero-stats{ gap: 24px; }
  .section{ padding: 64px 0; }
}

@media (max-width: 420px){
  .footer-nav{ grid-template-columns: 1fr; }
}
