/* ============================================================
   Shattered Sun Ltd — Design 4: "Corporate Trust" + light/dark
   Shared stylesheet for index / portfolio / contact
   LIGHT is the default brand identity; DARK is the alternate.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (raw) */
  --navy-900: #0f2a4a;
  --navy-700: #13355f;
  --slate:    #5b6b7f;
  --slate-300:#8b99aa;
  --bg:       #f4f6f9;
  --bg-soft:  #eef2f7;
  --white:    #ffffff;
  --accent:   #2f6fed;
  --accent-600:#2257c9;
  --border:   #e2e8f1;
  --ink:      #1c2b3a;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --maxw: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* ----- Semantic theme tokens: LIGHT (default) ----- */
  color-scheme: light;

  --page-bg:        var(--bg);
  --page-bg-soft:   var(--bg-soft);
  --surface:        var(--white);
  --surface-card:   var(--white);

  --text-primary:   var(--navy-900);
  --text-body:      var(--ink);
  --text-secondary: var(--slate);
  --text-muted:     var(--slate-300);

  --border-color:   var(--border);
  --border-hover:   #cfdcf0;

  --accent-soft:    #eaf0fb;
  --header-bg:      rgba(255, 255, 255, 0.92);
  --hero-grad-top:  #eaf0fb;

  /* navy proof / CTA / info / footer bands */
  --band-1:         var(--navy-900);
  --band-2:         var(--navy-700);

  /* form inputs */
  --input-bg:       #fcfdff;
  --input-bg-focus: #ffffff;

  /* logo chips */
  --logo-chip-bg:         var(--white);
  --logo-chip-border:     var(--border);
  --logo-chip-text:       var(--slate);
  --logo-chip-text-hover: var(--navy-900);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 42, 74, 0.06), 0 1px 3px rgba(15, 42, 74, 0.08);
  --shadow-md: 0 6px 18px rgba(15, 42, 74, 0.08), 0 2px 6px rgba(15, 42, 74, 0.06);
  --shadow-lg: 0 18px 40px rgba(15, 42, 74, 0.12);
}

/* ----- Semantic theme tokens: DARK (designed corporate palette) ----- */
:root[data-theme="dark"] {
  color-scheme: dark;

  --page-bg:        #0f1626;
  --page-bg-soft:   #131c30;
  --surface:        #16203a;
  --surface-card:   #19233f;

  --text-primary:   #e9edf5;
  --text-body:      #d6dde9;
  --text-secondary: #abb7ca;
  --text-muted:     #93a1b7;

  --border-color:   #283449;
  --border-hover:   #3a4a6b;

  /* brighter accent for contrast on dark */
  --accent:         #5e90f6;
  --accent-600:     #80a6f8;
  --accent-soft:    rgba(94, 144, 246, 0.15);

  --header-bg:      rgba(15, 22, 38, 0.90);
  --hero-grad-top:  #1a2540;

  /* bands lifted above the dark page so they read distinctly */
  --band-1:         #1c2845;
  --band-2:         #142038;

  --input-bg:       #121b31;
  --input-bg-focus: #18223d;

  /* logo chips: light tile so favicons read consistently */
  --logo-chip-bg:         #e9eef6;
  --logo-chip-border:     #c9d3e2;
  --logo-chip-text:       #46566f;
  --logo-chip-text-hover: #0f2a4a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.40), 0 1px 3px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.55);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text-body);
  background: var(--page-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
}

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 var(--s-4);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.18rem; }

p { margin: 0 0 var(--s-4); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); text-decoration: underline; }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(47, 111, 237, 0.45);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
:root[data-theme="dark"] a:focus-visible,
:root[data-theme="dark"] button:focus-visible,
:root[data-theme="dark"] input:focus-visible,
:root[data-theme="dark"] select:focus-visible,
:root[data-theme="dark"] textarea:focus-visible,
:root[data-theme="dark"] .btn:focus-visible {
  outline-color: rgba(94, 144, 246, 0.65);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: var(--s-3) var(--s-5);
  z-index: 200;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color:#fff; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 111, 237, 0.28);
}
.btn-primary:hover {
  background: var(--accent-600);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(47, 111, 237, 0.34);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-onnavy {
  background: #fff;
  color: var(--navy-900);
}
.btn-onnavy:hover { background: #eaf0fb; color: var(--navy-700); transform: translateY(-1px); }

.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border-color);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; color: var(--text-primary); }
.brand .logo-mark { flex: 0 0 auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 6px 2px;
  position: relative;
}
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: var(--s-4); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--r-sm);
  width: 44px; height: 44px;
  cursor: pointer;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.theme-toggle:hover {
  background: var(--surface);
  border-color: var(--border-hover);
  color: var(--accent);
  transform: translateY(-1px);
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Sections ---------- */
section { padding: var(--s-9) 0; }
.section-tight { padding: var(--s-8) 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.section-head { max-width: 720px; margin: 0 auto var(--s-7); text-align: center; }
.section-head p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 0; }
.lead { color: var(--text-secondary); font-size: 1.15rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 50% -180px, rgba(47,111,237,0.10), transparent 70%),
    linear-gradient(180deg, var(--hero-grad-top) 0%, var(--page-bg) 60%, var(--page-bg) 100%);
  text-align: center;
  padding: var(--s-9) 0 var(--s-8);
  border-bottom: 1px solid var(--border-color);
}
.hero .pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--s-5);
}
.hero .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; }
.hero h1 { max-width: 14ch; margin-left: auto; margin-right: auto; }
.hero p.subhead {
  max-width: 62ch;
  margin: 0 auto var(--s-6);
  color: var(--text-secondary);
  font-size: 1.2rem;
}
.hero-actions {
  display: flex;
  gap: var(--s-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(180deg, var(--hero-grad-top) 0%, var(--page-bg) 100%);
  text-align: center;
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--border-color);
}
.page-hero p { max-width: 64ch; margin: 0 auto; color: var(--text-secondary); font-size: 1.15rem; }

/* ---------- Value strip ---------- */
.value-strip { background: var(--surface); border-bottom: 1px solid var(--border-color); }
.value-strip .container { max-width: 880px; text-align: center; }
.value-strip p { font-size: 1.25rem; color: var(--text-body); margin: 0; line-height: 1.6; }

/* ---------- Service cards ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
/* 5-card services grid — 3 on top, 2 below on wide screens; wraps gracefully */
.grid-services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-5);
}
.grid-services .card { grid-column: span 2; }
/* Centre the last two cards on the second row (3 + 2 layout) */
.grid-services .card:nth-child(4) { grid-column: 2 / span 2; }
.grid-services .card:nth-child(5) { grid-column: 4 / span 2; }
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}
.icon-badge {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-5);
}
.icon-badge svg { width: 26px; height: 26px; }
.card h3 { color: var(--text-primary); margin-bottom: var(--s-2); }
.card p { color: var(--text-secondary); font-size: 0.98rem; margin: 0; }

/* ---------- Proof band ---------- */
.proof {
  background: linear-gradient(135deg, var(--band-1) 0%, var(--band-2) 100%);
  color: #fff;
}
.proof .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  text-align: center;
}
.stat .num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat .label {
  display: block;
  margin-top: var(--s-3);
  color: #b9c8dc;
  font-size: 0.98rem;
}
.proof .stat + .stat { position: relative; }

/* ---------- Logo chips ---------- */
.logo-row { background: var(--surface); border-bottom: 1px solid var(--border-color); }
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-4) var(--s-3);
  align-items: stretch;
}
.logo-chip {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 0;
  background: var(--logo-chip-bg);
  border: 1px solid var(--logo-chip-border);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.logo-chip img {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
}
.logo-chip .logo-name {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--logo-chip-text);
  line-height: 1.25;
  min-width: 0;
}
.logo-chip:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}
.logo-chip:hover .logo-name { color: var(--logo-chip-text-hover); }
.logo-caption { text-align: center; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s-6); }

/* ---------- Testimonial ---------- */
.testimonial { background: var(--page-bg); }
.quote-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: var(--s-8) var(--s-7);
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
}
.quote-mark {
  font-size: 4rem;
  line-height: 0.8;
  color: var(--accent);
  font-weight: 700;
  height: 36px;
  margin-bottom: var(--s-3);
}
.quote-card blockquote {
  margin: 0 0 var(--s-5);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}
.quote-card .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: var(--s-4); }
.quote-card cite { font-style: normal; color: var(--text-secondary); font-weight: 500; }
.quote-card cite strong { color: var(--text-primary); display: block; }

/* ---------- Trust badges ---------- */
.trust-row { background: var(--surface); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.trust-row .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-6);
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.98rem;
}
.trust-badge svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; }

/* ---------- Closing CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 400px at 80% -100px, rgba(47,111,237,0.25), transparent 60%),
    linear-gradient(135deg, var(--band-1) 0%, var(--band-2) 100%);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c4d2e6; max-width: 56ch; margin: 0 auto var(--s-6); font-size: 1.15rem; }

/* In dark mode, lift the navy bands off the dark page with subtle hairlines */
:root[data-theme="dark"] .proof,
:root[data-theme="dark"] .cta-band {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 -1px 0 rgba(255, 255, 255, 0.07);
}

/* ---------- Portfolio entries ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.entry {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.entry:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-hover); }
.entry .entry-mark {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--s-3);
}
.entry .descriptor {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--s-3);
}
.entry .outcome { color: var(--text-secondary); font-size: 0.98rem; margin: 0; padding-top: var(--s-4); border-top: 1px solid var(--border-color); }

/* ---------- Contact layout ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--s-6);
  align-items: start;
}
.form-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: var(--s-5); }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: var(--s-2);
}
.field .opt { color: var(--text-muted); font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-body);
  background: var(--input-bg);
  border: 1.5px solid var(--border-color);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--input-bg-focus);
  box-shadow: 0 0 0 3px rgba(47,111,237,0.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }

/* Honeypot — visually hidden but present in DOM */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.trust-line {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  background: var(--page-bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4);
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--s-5);
}

/* Contact info panel */
.info-card {
  background: linear-gradient(160deg, var(--band-1) 0%, var(--band-2) 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-7);
  box-shadow: var(--shadow-md);
}
.info-card h2 { color: #fff; font-size: 1.4rem; }
.info-list { list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.info-list li { display: flex; gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid rgba(255,255,255,0.12); }
.info-list li:first-of-type { border-top: none; }
.info-list .ico {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  color: #cfe0ff;
}
.info-list .ico svg { width: 18px; height: 18px; }
.info-list .k { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #9fb3cf; margin-bottom: 2px; }
.info-list .v { color: #fff; font-weight: 500; }
.info-list a.v { color: #fff; }
.info-list a.v:hover { color: #cfe0ff; }
.info-note { margin-top: var(--s-5); color: #b9c8dc; font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--band-1);
  color: #b9c8dc;
  padding: var(--s-8) 0 var(--s-6);
}
:root[data-theme="dark"] .site-footer {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-brand .brand { color: #fff; margin-bottom: var(--s-4); }
.footer-brand .brand:hover { color: #fff; }
.footer-brand p { color: #9fb3cf; font-size: 0.95rem; max-width: 38ch; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--s-3); }
.footer-col a { color: #9fb3cf; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  padding-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { margin: 0; font-size: 0.88rem; color: #8ba0bd; }

/* ---------- Mobile nav panel ---------- */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border-color);
  background: var(--surface);
}
.mobile-nav ul { list-style: none; margin: 0; padding: var(--s-4) var(--s-5) var(--s-5); }
.mobile-nav li { margin: 0; }
.mobile-nav a {
  display: block;
  padding: var(--s-4) 0;
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}
.mobile-nav a:hover { text-decoration: none; color: var(--accent); }
.mobile-nav .btn { margin-top: var(--s-4); }
.mobile-nav.open { display: block; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  /* Services drop to a 2-up grid; clear the 3+2 centring overrides */
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .grid-services .card,
  .grid-services .card:nth-child(4),
  .grid-services .card:nth-child(5) { grid-column: auto; }
}

@media (max-width: 860px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .proof .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-7) var(--s-5); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: var(--s-8) 0; }
  .grid-4, .grid-3, .grid-services { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .form-card, .info-card { padding: var(--s-6); }
  .quote-card { padding: var(--s-6) var(--s-5); }
  .quote-card blockquote { font-size: 1.2rem; }
  .footer-top { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
