/* ============================================================
   Aspiring IT — stylesheet
   Built from the Brand Style Guide (Jan 2024):
   · Fonts: Sora Bold (headings/callouts), Inter (everything else)
   · Colours: #0DABE3 cyan, #0A8BC7 blue (sparing), #002E41 navy,
     cool grays #4D5254 / #A0A4A7 / #E7EAEB
   · Elements: angled squares (no rounded edges), diamond grid
     texture as an angled square, the 'A' device as a feature
   ============================================================ */

:root {
  --cyan:       #0DABE3;
  --blue:       #0A8BC7;   /* secondary — used sparingly */
  --navy:       #002E41;
  --gray-dark:  #4D5254;   /* body text (cool gray, per guide) */
  --gray-mid:   #A0A4A7;
  --gray-light: #E7EAEB;
  --white:      #FFFFFF;
  --good:       #1F8A57;

  --line:      rgba(0, 46, 65, 0.14);
  --line-soft: rgba(255, 255, 255, 0.16);

  --font-display: 'Sora', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;

  --max: 1160px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.16;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.05rem, 1.7vw, 1.3rem); }

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip-link {
  position: absolute;
  left: -999px; top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75em 1.2em;
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ============================================================
   Signature brand devices
   ============================================================ */

/* Tilted cyan square label — mirrors the brand guide's own
   section headers ("Logo", "Fonts", "Colours"). */
.tag-chip {
  display: inline-block;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.45em 1.1em;
  transform: rotate(-2.5deg);
  margin-bottom: 1.5rem;
}
.tag-chip.on-navy { background: var(--cyan); color: var(--navy); }

/* Tilted navy square — mirrors the guide's page-number squares. */
.num-chip {
  width: 2.4em;
  height: 2.4em;
  background: var(--navy);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  transform: rotate(-6deg);
  flex-shrink: 0;
}

/* Diamond crosshatch texture, applied inside rotated squares. */
.lattice {
  position: absolute;
  background-image:
    repeating-linear-gradient(45deg, rgba(0,46,65,0.08) 0, rgba(0,46,65,0.08) 1px, transparent 1px, transparent 9px),
    repeating-linear-gradient(-45deg, rgba(0,46,65,0.08) 0, rgba(0,46,65,0.08) 1px, transparent 1px, transparent 9px);
  transform: rotate(-9deg);
  pointer-events: none;
}
.lattice.light {
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.09) 0, rgba(255,255,255,0.09) 1px, transparent 1px, transparent 9px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.09) 0, rgba(255,255,255,0.09) 1px, transparent 1px, transparent 9px);
}

/* ============================================================
   Buttons — sharp corners, per "angled squares, no rounded edges"
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9em 1.6em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-cyan:hover { background: #0c9bce; }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #01405a; }

.btn-outline { background: transparent; border-color: var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); }

.btn-outline-light { background: transparent; border-color: var(--line-soft); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); }

.btn-arrow { transition: transform 0.15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============================================================
   Header
   ============================================================ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}
.brand-logo { display: block; height: 30px; flex-shrink: 0; }
.brand-logo img { height: 100%; width: auto; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.1rem;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-dark);
  position: relative;
  padding: 0.35em 0;
}
nav.main-nav a:hover { color: var(--navy); }
nav.main-nav a.current { color: var(--navy); font-weight: 600; }
nav.main-nav a.current::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: var(--cyan);
}

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 1rem);
  left: -1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0,46,65,0.14);
  min-width: 260px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  flex-direction: column;
  padding: 0.65em 0.85em;
  font-weight: 500;
  color: var(--navy);
}
.dropdown a:hover { background: var(--gray-light); }
.dropdown .desc {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--gray-mid);
  margin-top: 0.1em;
}

.header-cta { display: flex; align-items: center; gap: 1.3rem; flex-shrink: 0; }
.header-phone {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--gray-mid);
  line-height: 1.35;
}
.header-phone strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 0.55em 0.65em;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 600;
  padding: 1.5rem var(--pad);
  overflow-y: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-nav.open { display: block; }
.mobile-nav.open.in { transform: translateX(0); opacity: 1; }
.mobile-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.mobile-nav-head .brand-logo { height: 26px; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line); }
.mobile-nav a {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 500;
}
.mobile-nav .sub-list { padding-left: 1rem; }
.mobile-nav .sub-list a { font-size: 0.95rem; color: var(--gray-dark); padding: 0.7rem 0; }
.mobile-nav-cta { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.8rem; }

/* ============================================================
   Sections
   ============================================================ */
section { padding: 5.5rem 0; }
section.tight { padding: 3.2rem 0; }
.section-head { max-width: 660px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--gray-dark); }
.bg-navy { background: var(--navy); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.68); }
.bg-gray { background: #F1F3F4; }

/* ============================================================
   Hero (home)
   ============================================================ */
.hero { padding: 4.5rem 0 5.5rem; position: relative; overflow: hidden; }
.hero-lattice { width: 420px; height: 420px; top: -160px; left: -180px; opacity: 0.7; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero .lede {
  font-size: 1.13rem;
  max-width: 46ch;
  margin-bottom: 2.2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero-microcopy {
  font-size: 0.85rem;
  color: var(--gray-dark);
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.hero-microcopy .pulse {
  width: 8px; height: 8px;
  background: var(--good);
  transform: rotate(45deg);
  position: relative;
  flex-shrink: 0;
}
.hero-microcopy .pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid var(--good);
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2); opacity: 0; }
}

/* Hero visual: ticket cards over a tilted cyan square */
.hero-visual { position: relative; padding: 2.5rem 0; }
.hero-square {
  position: absolute;
  top: 0;
  right: -8%;
  width: 76%;
  aspect-ratio: 1 / 1;
  background: var(--cyan);
  transform: rotate(9deg);
  z-index: 0;
}
.ticket-stack { position: relative; z-index: 1; max-width: 420px; }
.ticket {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  padding: 1.05rem 1.3rem;
  box-shadow: 0 18px 40px rgba(0,46,65,0.13);
  margin-bottom: 0.9rem;
}
.ticket:nth-child(2) { margin-left: 1.6rem; }
.ticket:nth-child(3) { margin-left: 0.5rem; margin-bottom: 0; }
.ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}
.ticket-id {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--gray-mid);
  letter-spacing: 0.04em;
}
.ticket-status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}
.ticket-status::before { content: ''; width: 6px; height: 6px; transform: rotate(45deg); }
.ticket-status.resolved { background: rgba(31,138,87,0.1); color: var(--good); }
.ticket-status.resolved::before { background: var(--good); }
.ticket-status.monitoring { background: rgba(10,139,199,0.1); color: var(--blue); }
.ticket-status.monitoring::before { background: var(--blue); }
.ticket-title { font-weight: 600; font-size: 0.94rem; color: var(--navy); margin-bottom: 0.1rem; }
.ticket-meta { font-size: 0.8rem; color: var(--gray-mid); }

/* ============================================================
   Stats band (navy)
   ============================================================ */
.stats-band { background: var(--navy); padding: 3.2rem 0; position: relative; overflow: hidden; }
.stats-band .lattice { width: 340px; height: 340px; right: -120px; top: -120px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--white);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat .num em { font-style: normal; color: var(--cyan); }
.stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.62); }

/* ============================================================
   Services grid
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.1rem 1.8rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0,46,65,0.1);
}
.service-card .icon {
  width: 44px; height: 44px;
  background: rgba(13,171,227,0.12);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
  transform: rotate(-4deg);
}
.service-card .icon svg { transform: rotate(4deg); }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { font-size: 0.92rem; margin-bottom: 1.4rem; flex-grow: 1; }
.service-card .go {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.service-card.featured {
  grid-column: span 2;
  background: var(--navy);
  border-color: var(--navy);
  position: relative;
  overflow: hidden;
}
.service-card.featured h3 { color: var(--white); font-size: clamp(1.2rem, 2vw, 1.5rem); }
.service-card.featured p { color: rgba(255,255,255,0.68); max-width: 52ch; }
.service-card.featured .go { color: var(--cyan); }
.service-card.featured .icon { background: rgba(13,171,227,0.18); color: var(--cyan); }
.service-card.featured .lattice { width: 260px; height: 260px; right: -90px; bottom: -110px; }

/* ============================================================
   Why / proof grid
   ============================================================ */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.proof-item { background: var(--white); padding: 2.2rem; display: flex; gap: 1.2rem; align-items: flex-start; transition: transform 0.2s ease, box-shadow 0.2s ease; position: relative; z-index: 0; }
.proof-item:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0,46,65,0.1); z-index: 1; }
.proof-item h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.proof-item p { font-size: 0.93rem; margin: 0; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0,46,65,0.1); }
.testimonial-card::before {
  content: '';
  position: absolute;
  top: -7px; left: 1.8rem;
  width: 14px; height: 14px;
  background: var(--cyan);
  transform: rotate(45deg);
}
.t-logo { height: 28px; margin-bottom: 1.3rem; }
.t-logo img { height: 100%; width: auto; max-width: 100%; display: block; }
.stars { color: var(--cyan); letter-spacing: 0.15em; margin-bottom: 1rem; font-size: 0.9rem; }
.testimonial-card .quote { font-size: 0.96rem; flex-grow: 1; margin-bottom: 1.4rem; }
.t-name { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.t-role { font-size: 0.8rem; color: var(--gray-mid); }

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  background: var(--navy);
  padding: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.4rem; }
.cta-banner p { color: rgba(255,255,255,0.68); margin: 0; }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner .cta-square {
  position: absolute;
  top: -55%;
  right: 4%;
  width: 300px;
  height: 300px;
  background: var(--cyan);
  opacity: 0.12;
  transform: rotate(14deg);
  z-index: 0;
}
.cta-banner-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   Interior page hero
   ============================================================ */
.page-hero {
  padding: 3.6rem 0 3.2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero .a-mark {
  position: absolute;
  right: -70px;
  top: -50px;
  width: 300px;
  opacity: 0.06;
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .lede { font-size: 1.05rem; max-width: 58ch; }
.breadcrumb { font-size: 0.82rem; color: var(--gray-mid); margin-bottom: 1.3rem; }
.breadcrumb a { color: var(--gray-mid); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }

.checklist {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem 1.6rem;
}
.checklist li { display: flex; align-items: flex-start; gap: 0.65em; font-size: 0.94rem; }
.checklist .check {
  width: 18px; height: 18px;
  background: rgba(13,171,227,0.16);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15em;
  transform: rotate(-4deg);
}
.checklist .check svg { transform: rotate(4deg); }

/* ============================================================
   Feature rows (service pages)
   ============================================================ */
.feature-row {
  display: grid;
  grid-template-columns: 0.52fr 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.feature-row:last-child { border-bottom: none; }
.feature-row .tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.feature-row h3 { margin-top: 0.5rem; margin-bottom: 0; }
.feature-row .body p { margin: 0; }

.inaction-box {
  background: #F1F3F4;
  border-left: 4px solid var(--cyan);
  padding: 2.2rem 2.4rem;
}
.inaction-box h3 { margin-bottom: 0.9rem; }
.inaction-box p { color: var(--gray-dark); font-size: 0.95rem; }
.inaction-box p:last-of-type { margin-bottom: 0; }

/* ============================================================
   About — company profile
   ============================================================ */
.profile-body { max-width: 760px; }
.profile-body p:first-of-type {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--navy);
}

/* ============================================================
   Forms & contact
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: start; }
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5em;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 0;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10,139,199,0.13);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-note { font-size: 0.82rem; color: var(--gray-mid); margin-top: 1rem; }
.form-note a { color: var(--gray-dark); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }
.cf-turnstile { margin-bottom: 1.3rem; }

#form-status { display: none; padding: 1em 1.2em; font-size: 0.92rem; margin-bottom: 1.4rem; }
#form-status.show { display: block; }
#form-status.ok { background: rgba(31,138,87,0.1); color: var(--good); border: 1px solid rgba(31,138,87,0.3); }
#form-status.err { background: rgba(10,139,199,0.08); color: var(--blue); border: 1px solid rgba(10,139,199,0.3); }

.contact-card {
  background: var(--navy);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.contact-card .lattice { width: 240px; height: 240px; right: -90px; bottom: -100px; }
.contact-card h3 { color: var(--white); margin-bottom: 0.4rem; }
.contact-card > p { color: rgba(255,255,255,0.62); font-size: 0.92rem; margin-bottom: 1.9rem; }
.contact-card > *:not(.lattice) { position: relative; z-index: 1; }
.contact-line {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: var(--white);
}
.contact-line:last-child { margin-bottom: 0; }
.contact-line .ico {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.09);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: rotate(-4deg);
}
.contact-line .ico svg { transform: rotate(4deg); }
.contact-line .label { font-size: 0.76rem; color: rgba(255,255,255,0.5); }
.contact-line .value { font-weight: 600; font-size: 0.96rem; }

/* ============================================================
   Legal pages
   ============================================================ */
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.28rem; margin-top: 2.5rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 0.96rem; }
.legal-body ul { padding-left: 1.3em; }
.legal-updated { font-size: 0.85rem; color: var(--gray-mid); margin-bottom: 2.5rem; }

/* ============================================================
   Footer
   ============================================================ */
footer.site-footer {
  background: var(--navy);
  color: var(--white);
  margin-top: 6rem;
  position: relative;
  overflow: hidden;
}
footer.site-footer .lattice { width: 460px; height: 460px; right: -160px; top: -180px; }
.footer-top {
  padding: 4.5rem var(--pad) 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}
.footer-brand .brand-logo { height: 26px; }
.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  max-width: 32ch;
  margin-top: 1.2rem;
}
.footer-social { display: flex; gap: 0.9rem; margin-top: 1.5rem; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.footer-social a:hover { border-color: var(--cyan); background: rgba(13,171,227,0.14); }
.footer-social svg { width: 15px; height: 15px; }

.footer-col h5 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.7em; }
.footer-col a, .footer-col span.plain {
  text-decoration: none;
  color: rgba(255,255,255,0.82);
  font-size: 0.93rem;
}
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 1.6rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}
.footer-bottom a {
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  margin-left: 1.4rem;
}
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .header-phone { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-square { right: 0; width: 62%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card.featured { grid-column: span 2; }
  .proof-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 0.8rem; padding: 2rem 0; }
  .checklist { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: span 1; }
  .cta-banner { padding: 2.4rem; flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero .a-mark { width: 200px; right: -50px; }
}
