/* ============================================================
   Quadrum Cyber — Design System (Option 1 Recreated)
   Palette, typography, and layout matching the approved mockup.
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Brand color palette */
  --qc-bg:            #020406;  /* Deep rich velvet black background */
  --qc-bg-alt:        #060a0f;  /* Alternating sections background */
  --qc-hero:          #030508;  /* Hero background */
  --qc-surface:       #0a0e14;  /* Deep slate card surfaces */
  --qc-surface-2:     #0e141d;  /* Raised panel surfaces */
  --qc-surface-3:     #141d2a;  /* Hover state / Input fields */
  --qc-border:        #182330;  /* Main border color */
  --qc-border-soft:   #0d141d;  /* Muted borders */

  --qc-accent:        #00d2ff;  /* Brand neon cyan (CYBER) */
  --qc-accent-blue:   #1d82d4;  /* Accent blue glow */
  --qc-accent-bright: #66e3ff;  /* Hover state bright accent */
  --qc-accent-deep:   #06222f;  /* Tinted background accent surface */

  --qc-text:          #ffffff;  /* Primary headings / bold elements */
  --qc-text-2:        #c5d1dd;  /* Secondary text / description */
  --qc-muted:         #76828f;  /* Muted text / captions (AA on all surfaces) */
  --qc-on-accent:     #010e14;  /* Text on solid cyan fills */

  --qc-silver:        #b8c6d4;  /* Metallic/silver accents */
  --qc-danger:        #eb4d4b;

  /* Typography */
  --qc-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --qc-font-display: var(--qc-font-sans);

  /* Fluid typography scale (1.25 ratio) */
  --fs-xs:   0.8rem;
  --fs-sm:   0.9rem;
  --fs-base: 1.05rem;
  --fs-md:   1.15rem;
  --fs-lg:   clamp(1.3rem, 1.15rem + 0.8vw, 1.65rem);
  --fs-xl:   clamp(1.7rem, 1.4rem + 1.5vw, 2.3rem);
  --fs-2xl:  clamp(2.1rem, 1.6rem + 2.5vw, 3.2rem);
  --fs-3xl:  clamp(2.8rem, 2.0rem + 4.0vw, 4.8rem);

  --lh-tight: 1.15;
  --lh-snug:  1.35;
  --lh-body:  1.7;

  --ls-wide:  0.15em;
  --ls-wider: 0.3em;

  /* Spacing system (8px base) */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;    --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 20px 50px rgba(0,0,0,0.6);
  --shadow-sm: 0 10px 30px rgba(0,0,0,0.4);
  --ring: 0 0 0 3px rgba(0, 210, 255, 0.4);

  --maxw: 1200px;
  --header-h: 76px;
}

/* ---------- 2. Base styles ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--qc-font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--qc-text-2);
  background: var(--qc-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--qc-font-display);
  color: var(--qc-text);
  line-height: var(--lh-snug);
  font-weight: 700;
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.015em;
}

h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 var(--sp-4); }
a { color: var(--qc-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--qc-accent-bright); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
strong { color: var(--qc-text); font-weight: 600; }

em, i, .italic-accent {
  font-family: var(--qc-font-display);
  font-style: normal;
  font-weight: 700;
  color: var(--qc-accent);
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--qc-accent); color: var(--qc-on-accent);
  padding: var(--sp-3) var(--sp-5); border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-5); }
.section { padding: var(--sp-9) 0; }
.section--tight { padding: var(--sp-8) 0; }
.section--alt { background: var(--qc-bg-alt); }
.section--surface { background: linear-gradient(180deg, var(--qc-bg-alt), var(--qc-bg)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--ls-wide);
  text-transform: uppercase; color: var(--qc-accent); margin-bottom: var(--sp-4);
  font-family: var(--qc-font-sans);
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--qc-accent); opacity: .7;
}

.section-head { max-width: 800px; margin-bottom: var(--sp-8); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { font-size: var(--fs-md); color: var(--qc-text-2); margin-top: var(--sp-4); }

.lead { font-size: var(--fs-md); color: var(--qc-text-2); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--qc-font-sans); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: var(--ls-wide); text-transform: uppercase; line-height: 1; cursor: pointer;
  padding: 1.1rem 1.8rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; transition: all .25s cubic-bezier(0.4, 0, 0.2, 1); text-align: center;
}
.btn--primary { background: var(--qc-accent); color: var(--qc-on-accent); border-color: var(--qc-accent); }
.btn--primary:hover { background: var(--qc-accent-bright); border-color: var(--qc-accent-bright); color: var(--qc-on-accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 210, 255, 0.25); }
.btn--secondary { background: transparent; color: var(--qc-text); border-color: var(--qc-border); }
.btn--secondary:hover { border-color: var(--qc-accent); color: var(--qc-accent-bright); background: rgba(0, 210, 255, 0.05); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--qc-accent); padding-left: 0; padding-right: 0; }
.btn--ghost:hover { color: var(--qc-accent-bright); gap: var(--sp-3); }
.btn--block { width: 100%; }
.btn--sm { padding: 0.75rem 1.3rem; font-size: var(--fs-xs); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.arrow { transition: transform .2s ease; }
.btn--ghost:hover .arrow { transform: translateX(5px); }

/* ---------- 5. Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(2, 4, 6, 0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--qc-border-soft);
  transition: all 0.3s ease;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--sp-5); }
.brand { display: flex; align-items: center; }
.brand img { height: 49px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--sp-6); }
.nav-links a {
  color: var(--qc-text-2); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--ls-wide); text-transform: uppercase; padding: var(--sp-2) 0; position: relative;
  font-family: var(--qc-font-sans);
}
.nav-links a:hover { color: var(--qc-accent); }
.nav-links a.nav-home { display: inline-flex; align-items: center; padding: var(--sp-2) 0; }
.nav-links a.nav-home svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.nav-links a[aria-current="page"] { color: var(--qc-text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--qc-accent);
}
.nav-cta { display: flex; align-items: center; gap: var(--sp-4); }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--qc-border);
  border-radius: var(--radius-sm); padding: 10px; cursor: pointer;
}
.nav-toggle span { display:block; width:20px; height:2px; background: var(--qc-text); margin: 4px 0; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Hero Section ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--qc-hero);
  border-bottom: 1px solid var(--qc-border-soft);
  padding: var(--sp-8) 0 var(--sp-9);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2,4,6,0.94) 0%, rgba(2,4,6,0.72) 32%, rgba(2,4,6,0.34) 56%, rgba(2,4,6,0) 80%),
    radial-gradient(90% 90% at 72% 45%, rgba(0, 210, 255, 0.08), transparent 60%);
  z-index: 1;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: var(--sp-7);
}
.hero-copy { max-width: 620px; }
.hero-copy .accent { color: var(--qc-accent); }
.hero-copy h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.35rem); margin-bottom: var(--sp-5); font-weight: 800; }
.hero-copy .lead { margin-bottom: var(--sp-6); font-size: var(--fs-md); line-height: var(--lh-body); color: var(--qc-text-2); }
.hero-underline { width: 60px; height: 2px; background: var(--qc-accent); margin-bottom: var(--sp-6); }

/* Right Column: "OUR ADVISORY AREAS" List Panel */
.advisory-box {
  background: rgba(6, 10, 15, 0.10);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg); padding: var(--sp-6) var(--sp-6);
  box-shadow: none;
  position: relative; z-index: 5;
}



.advisory-box h4 {
  font-family: var(--qc-font-sans);
  font-size: 1.08rem; font-weight: 700; letter-spacing: var(--ls-wide);
  text-transform: uppercase; color: var(--qc-accent); margin-bottom: var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-2);
}
.advisory-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.advisory-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-4); border-radius: var(--radius-sm);
  color: var(--qc-text-2); border: 1px solid transparent; transition: all 0.25s ease;
  cursor: pointer;
}
.advisory-item:hover {
  background: rgba(0, 210, 255, 0.04);
  color: var(--qc-text); border-color: rgba(0, 210, 255, 0.15);
}
.advisory-item-left { display: flex; align-items: center; gap: var(--sp-4); }
.advisory-item-icon {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--qc-border); display: grid; place-items: center;
  color: var(--qc-accent); flex: none; transition: all 0.25s ease;
  background: var(--qc-bg);
}
.advisory-item:hover .advisory-item-icon {
  border-color: var(--qc-accent); background: var(--qc-accent-deep);
}
.advisory-item-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.advisory-item-title { font-family: var(--qc-font-sans); font-size: var(--fs-base); font-weight: 600; }
.advisory-item-chevron { color: var(--qc-muted); transition: transform 0.25s ease; font-size: var(--fs-sm); }
.advisory-item:hover .advisory-item-chevron { color: var(--qc-accent); transform: translateX(3px); }

/* Background Hero Shield Placement */
.hero-bg-shield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* full-bleed scenery that fills the hero, like the cityscape band */
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
  filter: brightness(1.12);
}


/* ---------- 7. Value / Philosophy Section ---------- */
.card {
  background: var(--qc-surface); border: 1px solid var(--qc-border);
  border-radius: var(--radius); padding: var(--sp-6);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}
.card:hover { border-color: rgba(0, 210, 255, 0.35); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.card h3 { font-size: var(--fs-md); margin-bottom: var(--sp-3); font-weight: 500; }
.card p { color: var(--qc-text-2); margin: 0; font-size: var(--fs-sm); }

.icon-badge {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center; margin-bottom: var(--sp-4);
  background: var(--qc-accent-deep); border: 1px solid rgba(0, 210, 255, 0.25);
}
.icon-badge svg { width: 20px; height: 20px; stroke: var(--qc-accent); fill: none; stroke-width: 1.8; }

.value-card .num {
  font-size: var(--fs-2xl); font-weight: 800; color: var(--qc-accent);
  line-height: 1; display: block; margin-bottom: var(--sp-3); font-family: var(--qc-font-sans);
}
.value-card .stat-source { font-size: var(--fs-xs); color: var(--qc-muted); margin-top: var(--sp-4); }
.value-card .stat-source a { color: var(--qc-muted); text-decoration: underline; text-underline-offset: 2px; }
.value-card .stat-source a:hover { color: var(--qc-accent); }

/* Five Column Mockup Services Grid */
.philosophy-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-4); margin-top: var(--sp-6); }
.philosophy-card {
  background: var(--qc-surface); border: 1px solid var(--qc-border);
  border-radius: var(--radius); padding: var(--sp-5); display: flex; flex-direction: column;
  height: 100%; transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.philosophy-card:hover { border-color: rgba(0, 210, 255, 0.35); transform: translateY(-4px); background: var(--qc-bg-alt); }
.philosophy-card-icon { color: var(--qc-accent); margin-bottom: var(--sp-4); }
.philosophy-card-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.philosophy-card h3 { font-family: var(--qc-font-sans); font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--sp-3); line-height: var(--lh-snug); }
.philosophy-card p { font-size: var(--fs-xs); color: var(--qc-text-2); margin-bottom: var(--sp-4); line-height: 1.6; }
.philosophy-card-link { font-family: var(--qc-font-sans); font-size: var(--fs-xs); font-weight: 700; color: var(--qc-accent); margin-top: auto; display: flex; align-items: center; gap: var(--sp-1); letter-spacing: var(--ls-wide); text-transform: uppercase; }
.philosophy-card-link:hover { color: var(--qc-accent-bright); }

/* ---------- 8. Leadership Section ---------- */
.leader-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-8); align-items: start; }
.leader-split-copy { max-width: 480px; }
.leader-split-copy h2 { font-weight: 700; margin-bottom: var(--sp-5); }
.leader-split-copy p { margin-bottom: var(--sp-6); color: var(--qc-text-2); }
.leader-split-copy .btn--ghost { font-family: var(--qc-font-sans); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-wide); }

.leader-grid-premium { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.leader-card-premium {
  background: var(--qc-surface); border: 1px solid var(--qc-border);
  border-radius: var(--radius-lg); overflow: hidden; height: 100%;
  display: flex; flex-direction: column; transition: all 0.3s ease;
}
.leader-card-premium:hover { border-color: rgba(0, 210, 255, 0.35); transform: translateY(-4px); }
.leader-photo-premium { aspect-ratio: 1.15 / 1; overflow: hidden; background: var(--qc-bg); border-bottom: 1px solid var(--qc-border); }
.leader-photo-premium img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.5s ease; }
.leader-card-premium:hover .leader-photo-premium img { transform: scale(1.03); }
.leader-body-premium { padding: var(--sp-5) var(--sp-5); display: flex; flex-direction: column; flex-grow: 1; }
.leader-body-premium h3 { font-family: var(--qc-font-sans); font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--sp-2); text-transform: uppercase; letter-spacing: 0.05em; color: var(--qc-text); }
.leader-title-premium { font-family: var(--qc-font-sans); font-size: var(--fs-xs); font-weight: 600; color: var(--qc-accent); margin-bottom: var(--sp-4); letter-spacing: 0.02em; }
.leader-details-premium { font-size: var(--fs-xs); color: var(--qc-text-2); line-height: 1.6; margin-bottom: var(--sp-4); }
.leader-linkedin-premium { margin-top: auto; display: inline-flex; align-items: center; color: var(--qc-muted); transition: color .2s; }
.leader-linkedin-premium:hover { color: var(--qc-accent); }
.leader-linkedin-premium svg { width: 18px; height: 18px; fill: currentColor; }

/* Founder cards (About page) */
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.founder {
  background: var(--qc-surface); border: 1px solid var(--qc-border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s ease;
}
.founder:hover { border-color: rgba(0, 210, 255, 0.35); transform: translateY(-4px); }
.founder-photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--qc-bg); border-bottom: 1px solid var(--qc-border); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.founder-body { padding: var(--sp-6); }
.founder-body h3 { margin-bottom: var(--sp-1); }
.founder-role { font-size: var(--fs-xs); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--qc-accent); margin-bottom: var(--sp-4); font-weight: 600; }
.founder-body > p { font-size: var(--fs-sm); color: var(--qc-text-2); }
.founder-body ul { margin: var(--sp-4) 0; }
.founder-body li { position: relative; padding-left: var(--sp-5); margin-bottom: var(--sp-3); color: var(--qc-text-2); font-size: var(--fs-sm); }
.founder-body li::before { content:""; position:absolute; left:0; top:0.6em; width:7px; height:7px; border-radius:2px; background: var(--qc-accent); }
.linkedin-link { display:inline-flex; align-items:center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight:600; margin-top: var(--sp-2); }
.linkedin-link svg { width: 18px; height: 18px; fill: currentColor; }

/* domain cards (landing) */
.domain-card { position: relative; display: flex; flex-direction: column; }
.domain-card .domain-no { font-size: var(--fs-xs); letter-spacing: var(--ls-wide); color: var(--qc-muted); font-weight: 600; margin-bottom: var(--sp-3); font-family: var(--qc-font-sans); }
.domain-card .domain-icon { display: block; color: var(--qc-accent); margin-bottom: var(--sp-4); }
.domain-card .domain-icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.domain-card h3 { font-size: clamp(1.5rem, 1.32rem + 0.9vw, 1.9rem); } /* ~15% larger than --fs-lg */
.domain-card .count { font-size: var(--fs-xs); color: var(--qc-accent); margin-top: auto; padding-top: var(--sp-4); font-family: var(--qc-font-sans); font-weight: 700; }

/* ---------- 9. Threat strip & timelines ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.stat-block { text-align: center; padding: var(--sp-5) var(--sp-3); border: 1px solid var(--qc-border); border-radius: var(--radius); background: var(--qc-surface); }
.stat-block .big { font-size: var(--fs-xl); font-weight: 800; color: var(--qc-text); display:block; font-family: var(--qc-font-sans); }
.stat-block .lbl { font-size: var(--fs-xs); color: var(--qc-muted); letter-spacing: 0.04em; }

.timeline { position: relative; padding-left: var(--sp-6); }
.timeline::before { content:""; position:absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--qc-border); }
.timeline li { position: relative; margin-bottom: var(--sp-6); }
.timeline li::before { content:""; position:absolute; left: -23px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--qc-bg); border: 2px solid var(--qc-accent); }
.timeline h4 { margin-bottom: var(--sp-2); font-size: var(--fs-md); font-weight: 500; }
.timeline p { margin: 0; font-size: var(--fs-sm); }

/* ---------- 10. Services Page ---------- */
.domain-section { padding: var(--sp-8) 0; border-top: 1px solid var(--qc-border-soft); }
.domain-section:first-of-type { border-top: none; }
.domain-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.domain-header .domain-index { font-size: var(--fs-sm); color: var(--qc-accent); font-weight: 700; letter-spacing: var(--ls-wide); font-family: var(--qc-font-sans); }
.domain-title-row { display: flex; align-items: center; gap: var(--sp-3); }
.domain-title-row h2 { margin: 0; color: var(--qc-accent); }
.domain-sec-icon { color: var(--qc-accent); display: inline-flex; flex: none; }
.domain-sec-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* Service-card title with leading icon */
.service-head { display: flex; align-items: flex-start; gap: var(--sp-2); margin-bottom: var(--sp-1); }
.service-head h4 { margin: 0; }
.service-icon { color: var(--qc-accent); flex: none; display: inline-flex; margin-top: 2px; }
.service-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.service-card {
  background: var(--qc-surface); border: 1px solid var(--qc-border);
  border-radius: var(--radius); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-2); transition: .2s; height: 100%;
}
.service-card:hover { border-color: rgba(0, 210, 255, 0.4); background: var(--qc-surface-2); }
.service-card h4 { font-family: var(--qc-font-sans); font-size: var(--fs-base); color: var(--qc-text); margin: 0; line-height: var(--lh-snug); font-weight: 600; }
.service-card p { font-size: var(--fs-sm); color: var(--qc-text-2); margin: 0; }

/* ---------- 11. Form controls ---------- */
.form-card { background: var(--qc-surface); border: 1px solid var(--qc-border); border-radius: var(--radius-lg); padding: var(--sp-7); }
.field { margin-bottom: var(--sp-5); }
.field label { display:block; font-size: var(--fs-sm); font-weight:600; color: var(--qc-text); margin-bottom: var(--sp-2); }
.field .req { color: var(--qc-accent); }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: var(--fs-base); color: var(--qc-text);
  background: var(--qc-bg); border: 1px solid var(--qc-border); border-radius: var(--radius-sm);
  padding: 0.8rem 1rem; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--qc-muted); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--qc-accent); box-shadow: var(--ring); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.privacy-note { font-size: var(--fs-xs); color: var(--qc-muted); margin-top: var(--sp-4); line-height: 1.5; }
.form-status { margin-top: var(--sp-4); font-size: var(--fs-sm); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--qc-accent-deep); color: var(--qc-accent-bright); border: 1px solid rgba(0, 210, 255, 0.3); }

/* ---------- 12. Cityscape CTA Band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 0; }
.cta-band .bg { position:absolute; inset:0; }
.cta-band .bg img { width:100%; height:100%; object-fit: cover; }
.cta-band .bg::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(2, 4, 6, 0.98) 25%, rgba(2, 4, 6, 0.55) 100%); }
.cta-band .inner { position: relative; z-index: 2; padding: var(--sp-9) 0; max-width: 720px; }
.cta-band h2 { font-weight: 800; }

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--qc-bg-alt); border-top: 1px solid var(--qc-border); padding-top: var(--sp-8); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-6); padding-bottom: var(--sp-7); }
.footer-brand img { height: 38px; margin-bottom: var(--sp-4); }
.footer-brand p { font-size: var(--fs-sm); color: var(--qc-muted); max-width: 320px; }
.footer-col h5 { font-family: var(--qc-font-sans); font-size: var(--fs-xs); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--qc-text); margin: 0 0 var(--sp-4); font-weight: 700; }
.footer-col a { display:block; color: var(--qc-text-2); font-size: var(--fs-sm); padding: var(--sp-2) 0; }
.footer-col a:hover { color: var(--qc-accent); }
.social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.social a {
  width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center;
  border: 1px solid var(--qc-border); color: var(--qc-text-2); transition: .2s;
}
.social a:hover { border-color: var(--qc-accent); color: var(--qc-accent); background: rgba(0, 210, 255, 0.05); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid var(--qc-border-soft); padding: var(--sp-5) 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: var(--fs-xs); color: var(--qc-muted); }
.footer-bottom .legal-links { display:flex; gap: var(--sp-5); }
.footer-bottom .legal-links a { font-size: var(--fs-xs); color: var(--qc-muted); }
.footer-bottom .legal-links a:hover { color: var(--qc-accent); }

/* ---------- 14. Inner Page Heros ---------- */
.page-hero { padding: var(--sp-8) 0 var(--sp-7); border-bottom: 1px solid var(--qc-border-soft); background: var(--qc-hero); position: relative; overflow: hidden; }
/* image-backed page heroes (About, Contact) share a height and center their content */
.page-hero.has-bg { display: flex; align-items: center; min-height: 420px; }
@media (max-width: 640px) { .page-hero.has-bg { min-height: 320px; } }
.page-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(90% 120% at 85% 10%, rgba(0, 210, 255, 0.05), transparent 55%); pointer-events:none; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: var(--fs-2xl); font-weight: 800; }
.page-hero p { max-width: 720px; font-size: var(--fs-md); margin: 0; color: var(--qc-text-2); }
.prose p { max-width: 70ch; }
.prose h3 { margin-top: var(--sp-6); font-weight: 500; }

.divider { height:1px; background: var(--qc-border-soft); border:0; margin: var(--sp-7) 0; }
.note { font-size: var(--fs-sm); color: var(--qc-muted); }

/* ---------- 15. Responsive ---------- */
@media (max-width: 1024px) {
  .philosophy-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  :root { --header-h: 66px; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: var(--sp-6); }
  .advisory-box { max-width: 580px; margin: 0 auto; width: 100%; }
  .hero-bg-shield { display: none; }
  .leader-split { grid-template-columns: 1fr; gap: var(--sp-6); }
  .leader-split-copy { max-width: 100%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: block; }
  .nav-links, .nav-cta .btn--secondary { display: none; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--qc-bg-alt); border-bottom: 1px solid var(--qc-border);
    padding: var(--sp-4) var(--sp-5);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: var(--sp-4) 0; border-bottom: 1px solid var(--qc-border-soft); }
}

@media (max-width: 768px) {
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .philosophy-grid, .leader-grid-premium, .service-grid,
  .field-row, .footer-grid, .stat-strip { grid-template-columns: 1fr; }
  .section { padding: var(--sp-8) 0; }
  .form-card { padding: var(--sp-5); }
  .btn-row .btn { width: 100%; }
}

/* ---------- 16. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
