/*
Theme Name: SultanTech
Theme URI: https://sultantech.ca/
Author: SultanTech
Description: A modern, responsive WordPress theme for SultanTech, an Alberta IT consulting company serving small and medium-sized businesses. Apple-inspired interface: fluid motion, translucent materials, and a single unified type scale.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: sultantech
*/

/* ==========================================================================
   1. DESIGN TOKENS
   One scale for everything. No ad-hoc font sizes anywhere in this theme —
   every piece of text resolves to one of the --fs-* steps below, each with
   its own size-specific tracking and leading (Apple: tracking is never one
   value for all sizes; leading tracks size inversely).
   ========================================================================== */

:root {
  /* --- Type family: platform system font first (already optically tuned) --- */
  --font-sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, system-ui,
    "Helvetica Neue", Arial, sans-serif;

  /* --- THE TYPE SCALE (8 steps, nothing else) --- */
  --fs-micro:   0.75rem;    /* 12px — legal, meta                */
  --fs-caption: 0.8125rem;  /* 13px — eyebrows, badges, notes    */
  --fs-label:   0.9375rem;  /* 15px — form labels, nav, small UI */
  --fs-body:    1.0625rem;  /* 17px — the body size              */
  --fs-lead:    1.1875rem;  /* 19px — intros, hero paragraph     */
  --fs-title:   1.3125rem;  /* 21px — card titles (h3/h4)        */
  --fs-section: clamp(1.875rem, 1.25rem + 2.2vw, 2.75rem);  /* h2 */
  --fs-display: clamp(2.5rem, 1.35rem + 4.6vw, 4.25rem);    /* h1 */

  /* --- Tracking, paired to the step above it --- */
  --tr-display: -0.035em;
  --tr-section: -0.024em;
  --tr-title:   -0.014em;
  --tr-lead:    -0.011em;
  --tr-body:    -0.004em;
  --tr-label:    0.002em;
  --tr-caption:  0.085em;  /* uppercase eyebrows need air */

  /* --- Leading, inverse to size --- */
  --lh-display: 1.04;
  --lh-section: 1.1;
  --lh-title:   1.28;
  --lh-lead:    1.5;
  --lh-body:    1.62;
  --lh-tight:   1.35;

  /* --- Weight --- */
  --fw-regular: 400;
  --fw-medium:  510;
  --fw-semi:    600;
  --fw-bold:    680;

  /* --- Colour: light surfaces --- */
  --canvas:     #fbfbfd;
  --surface:    #ffffff;
  --surface-2:  #f4f6f9;
  --ink:        #15181d;
  --ink-2:      #5c6670;
  --ink-3:      #8a949e;
  --line:       rgba(18, 28, 40, 0.10);
  --line-soft:  rgba(18, 28, 40, 0.06);

  /* --- Colour: dark surfaces (hero, footer, CTA) --- */
  --night:      #071523;
  --night-2:    #0b2135;
  --on-night:   #f2f7fb;
  --on-night-2: rgba(226, 239, 248, 0.72);
  --night-line: rgba(255, 255, 255, 0.14);

  /* --- Brand --- */
  --blue:       #0078d4;
  --blue-deep:  #005ba6;
  --blue-lit:   #4cc3ff;
  --navy:       #082b49;

  /* --- Radii: larger surfaces read as thicker --- */
  --r-xs:  10px;
  --r-sm:  14px;
  --r-md:  20px;
  --r-lg:  28px;
  --r-xl:  36px;
  --r-pill: 999px;

  /* --- Elevation: bigger surface, deeper shadow --- */
  --sh-1: 0 1px 2px rgba(10, 25, 40, 0.05), 0 2px 8px rgba(10, 25, 40, 0.04);
  --sh-2: 0 2px 4px rgba(10, 25, 40, 0.05), 0 10px 28px rgba(10, 25, 40, 0.07);
  --sh-3: 0 4px 10px rgba(10, 25, 40, 0.06), 0 24px 56px rgba(10, 25, 40, 0.11);

  /* --- Spacing: rem so layout scales with the user's text size --- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 2.75rem;
  --s-8: 4rem;
  --s-9: 5.5rem;
  --s-10: 7.5rem;

  /* --- Motion: custom curves. The built-in CSS easings are too weak. --- */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --t-press: 130ms;
  --t-fast:  180ms;
  --t-base:  260ms;
  --t-slow:  420ms;

  /* --- Layout --- */
  --max:    1200px;
  --narrow: 720px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 72px;
}

/* ==========================================================================
   2. RESET + BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tr-body);
  font-weight: var(--fw-regular);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--t-fast) ease;
}
a:hover { color: var(--blue-deep); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: rgba(0, 120, 212, 0.18); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: var(--s-3) var(--s-5);
  border-radius: 0 0 var(--r-sm) 0;
  background: var(--blue);
  color: #fff;
  font-size: var(--fs-label);
  font-weight: var(--fw-semi);
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   3. TYPOGRAPHY — every heading maps to a scale step
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--s-4);
  color: var(--ink);
  font-weight: var(--fw-bold);
  text-wrap: balance;
}

h1, .t-display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
}

h2, .t-section {
  font-size: var(--fs-section);
  line-height: var(--lh-section);
  letter-spacing: var(--tr-section);
}

h3, h4, h5, h6, .t-title {
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  letter-spacing: var(--tr-title);
  font-weight: var(--fw-semi);
}

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

.t-lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--tr-lead);
  color: var(--ink-2);
  text-wrap: pretty;
}

.t-body { font-size: var(--fs-body); color: var(--ink-2); }

.t-caption {
  font-size: var(--fs-caption);
  line-height: 1.45;
  letter-spacing: var(--tr-label);
  color: var(--ink-3);
}

/* Eyebrow — the only uppercase text in the theme */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-4);
  color: var(--blue);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semi);
  letter-spacing: var(--tr-caption);
  text-transform: uppercase;
  line-height: 1;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
}
.on-dark .eyebrow { color: var(--blue-lit); }

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.narrow {
  width: min(100% - (var(--gutter) * 2), var(--narrow));
  margin-inline: auto;
}

.section { padding-block: clamp(3.5rem, 8vw, var(--s-10)); }
.section--tight { padding-block: clamp(3rem, 6vw, var(--s-9)); }
.section--alt { background: var(--surface-2); }

.section-head {
  max-width: 44rem;
  margin: 0 auto var(--s-8);
  text-align: center;
}
.section-head .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: var(--s-4); }

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

.stack > * + * { margin-top: var(--s-4); }

/* ==========================================================================
   5. HEADER — a translucent floating layer, content scrolls underneath
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  transition:
    background-color var(--t-base) ease,
    box-shadow var(--t-base) ease;
}

/* Scroll edge effect instead of a hard 1px divider */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 20px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(251, 251, 253, 0.55), rgba(251, 251, 253, 0));
  opacity: 0;
  transition: opacity var(--t-base) ease;
}

.site-header.is-scrolled {
  background: rgba(251, 251, 253, 0.86);
  box-shadow: 0 1px 0 var(--line-soft);
}
.site-header.is-scrolled::after { opacity: 1; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--header-h);
  padding-block: var(--s-3);
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink);
  font-size: var(--fs-title);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-title);
  transition: opacity var(--t-press) var(--ease-out);
}
.brand-link:active { opacity: 0.7; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--navy), var(--blue));
  color: #fff;
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: 0;
  box-shadow: var(--sh-1);
}

.custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.custom-logo,
.custom-logo-link img {
  width: auto !important;
  height: 46px !important;
  max-height: 46px !important;
  max-width: min(320px, 46vw);
  object-fit: contain;
}

/* --- Primary navigation --- */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  position: relative;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-label);
  transition:
    color var(--t-fast) ease,
    background-color var(--t-fast) ease,
    transform var(--t-press) var(--ease-out);
}
.site-nav a:active { transform: scale(0.97); }

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--ink);
  background: rgba(18, 28, 40, 0.055);
}

.header-actions { display: flex; align-items: center; gap: var(--s-3); }

/* --- Menu toggle (animates to an X) --- */
.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-fast) ease;
}
.menu-toggle:active { transform: scale(0.94); }

.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 17px;
  height: 1.6px;
  margin-left: -8.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--t-base) var(--ease-out), opacity 120ms ease;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 24px; }

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* --- Mobile scrim --- */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(7, 21, 35, 0.32);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) ease, visibility var(--t-base);
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   6. BUTTONS — feedback on press, never only on release
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.8125rem 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: var(--fs-label);
  font-weight: var(--fw-semi);
  letter-spacing: var(--tr-label);
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform var(--t-press) var(--ease-out),
    background-color var(--t-fast) ease,
    border-color var(--t-fast) ease,
    color var(--t-fast) ease,
    box-shadow var(--t-fast) ease;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 90, 165, 0.3), 0 8px 20px rgba(0, 120, 212, 0.22);
}
.btn--primary:hover { background: var(--blue-deep); color: #fff; }

.btn--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}
.btn--ghost:hover { border-color: rgba(18, 28, 40, 0.2); background: #fff; color: var(--ink); }

.btn--glass {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

.btn--light { background: #fff; color: var(--navy); box-shadow: var(--sh-2); }
.btn--light:hover { background: #fff; color: var(--blue-deep); }

.btn--wide { width: 100%; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.actions--center { justify-content: center; }

/* Arrow link — the arrow leads in the direction of travel */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
  color: var(--blue);
  font-size: var(--fs-label);
  font-weight: var(--fw-semi);
  letter-spacing: var(--tr-label);
}
.link-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform var(--t-base) var(--ease-out);
}

/* ==========================================================================
   7. HERO
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(90vh, 780px);
  padding-block: clamp(4rem, 11vw, 7.5rem);
  overflow: hidden;
  background-color: var(--night);
  color: var(--on-night);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/images/datacenter-hero.jpg");
  background-position: 70% center;
  background-size: cover;
  transform: scale(1.06);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 70% at 12% 40%, rgba(5, 22, 38, 0.96) 0%, rgba(5, 22, 38, 0.72) 45%, rgba(5, 22, 38, 0.18) 100%),
    linear-gradient(180deg, rgba(4, 17, 29, 0.86) 0%, rgba(4, 17, 29, 0.42) 45%, rgba(4, 17, 29, 0.9) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero h1 { color: #fff; margin-bottom: var(--s-5); }
.hero .t-lead { color: var(--on-night-2); max-width: 34rem; }

/* Translucent material panel — a dark material over a dark image */
.hero__panel {
  padding: var(--s-6);
  border: 1px solid var(--night-line);
  border-radius: var(--r-xl);
  background: rgba(9, 30, 50, 0.52);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  backdrop-filter: saturate(160%) blur(24px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 28px 70px rgba(0, 0, 0, 0.36);
}

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

.hero__panel li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-block: var(--s-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--on-night);
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-label);
}
.hero__panel li:last-child { border-bottom: 0; padding-bottom: 0; }

.hero__panel li svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--blue-lit);
}

/* Page hero for interior pages */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4.5rem, 10vw, 7rem) clamp(3.5rem, 8vw, 5.5rem);
  background: radial-gradient(120% 140% at 15% 0%, #0e3557 0%, var(--night) 62%);
  color: var(--on-night);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  z-index: -1;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 195, 255, 0.16), transparent 68%);
}
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .t-lead { color: var(--on-night-2); max-width: 46rem; }

/* ==========================================================================
   8. TRUST STRIP
   ========================================================================== */

.trust-strip {
  border-block: 1px solid var(--line-soft);
  background: var(--surface);
}

.trust-strip ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-4);
  margin: 0;
  padding-block: var(--s-5);
  list-style: none;
  text-align: center;
}

.trust-strip li {
  color: var(--ink-2);
  font-size: var(--fs-label);
  font-weight: var(--fw-semi);
  letter-spacing: var(--tr-label);
}

/* ==========================================================================
   9. CARDS
   ========================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-1);
  transition:
    transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    border-color var(--t-base) ease;
}

.card h3 { margin-bottom: var(--s-3); }
.card p { color: var(--ink-2); }

.card--link { cursor: pointer; }
.card--flush { padding: var(--s-5); }

/* Hover only where a real pointer exists */
@media (hover: hover) and (pointer: fine) {
  .card--link:hover {
    transform: translateY(-4px);
    border-color: var(--line);
    box-shadow: var(--sh-3);
  }
  .card--link:hover .service-icon {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 26px rgba(0, 120, 212, 0.22);
  }
  .card--link:hover .link-arrow svg { transform: translateX(4px); }
  .link-arrow:hover svg { transform: translateX(4px); }
}

.card--link:active { transform: scale(0.99); }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--s-5);
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--r-sm);
  color: var(--blue);
  background: linear-gradient(150deg, #f7fbff, #e6f3ff);
  box-shadow: 0 4px 14px rgba(0, 120, 212, 0.12);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Numbered step cards */
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--s-5);
  border-radius: var(--r-pill);
  background: linear-gradient(145deg, var(--navy), var(--blue));
  color: #fff;
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: 0;
  box-shadow: var(--sh-1);
}

/* ==========================================================================
   10. FEATURE ROWS / LISTS
   ========================================================================== */

.feature-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}

.feature-row__sticky { position: sticky; top: calc(var(--header-h) + 2rem); }

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3) var(--s-5);
  margin: var(--s-5) 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  color: var(--ink-2);
  font-size: var(--fs-label);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-label);
}

.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 0.15em;
  border-radius: 50%;
  background-color: rgba(0, 120, 212, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230078d4' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--r-sm);
  background: rgba(0, 120, 212, 0.05);
  color: var(--ink);
  font-size: var(--fs-label);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-label);
}
.notice strong { color: var(--blue-deep); }

.quote {
  position: relative;
  padding: var(--s-6);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-1);
}
.quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--s-6);
  bottom: var(--s-6);
  width: 3px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--blue-lit), var(--blue));
}
.quote p { color: var(--ink-2); }

/* ==========================================================================
   11. CONTACT
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 2.75rem);
}

.contact-form { display: grid; gap: var(--s-4); }

.form-row { display: grid; gap: var(--s-2); }

.contact-form label {
  color: var(--ink);
  font-size: var(--fs-label);
  font-weight: var(--fw-semi);
  letter-spacing: var(--tr-label);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9375rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-body);   /* 17px — prevents iOS zoom on focus */
  line-height: 1.45;
  letter-spacing: var(--tr-body);
  transition:
    border-color var(--t-fast) ease,
    box-shadow var(--t-fast) ease,
    background-color var(--t-fast) ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--ink-3); }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.14);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6670' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.form-note { color: var(--ink-3); font-size: var(--fs-caption); }

.form-status {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-sm);
  font-size: var(--fs-label);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-label);
}
.form-status.success { border: 1px solid #b7dfc5; background: #ecf8f0; color: #1a6b33; }
.form-status.error   { border: 1px solid #f3c3bd; background: #fdeeec; color: #b4271e; }
.form-error-list { margin: var(--s-2) 0 0; padding-left: 1.1rem; }

.info-list { margin: 0; padding: 0; list-style: none; }

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-label);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-label);
}
.info-list li:first-child { padding-top: 0; }
.info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 0.15em; color: var(--blue); }
.info-list strong { display: block; color: var(--ink); font-weight: var(--fw-semi); }
.info-list span, .info-list a { color: var(--ink-2); }
.info-list a:hover { color: var(--blue); }

.map-wrap {
  margin-top: var(--s-5);
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.map-wrap iframe { display: block; width: 100%; height: 220px; border: 0; }

.trust-badges { display: grid; gap: var(--s-3); }

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-label);
}
.trust-badge svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--blue); }

/* ==========================================================================
   12. CTA + FOOTER
   ========================================================================== */

.cta {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  background: radial-gradient(120% 160% at 50% 0%, #0d6cc0 0%, #054b8c 55%, #063a6c 100%);
  color: #fff;
  text-align: center;
}
.cta::after {
  content: "";
  position: absolute;
  inset: auto 0 -60% 0;
  z-index: -1;
  height: 100%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(255, 255, 255, 0.18), transparent 70%);
}
.cta h2 { color: #fff; }
.cta .t-lead { max-width: 40rem; margin-inline: auto; color: rgba(255, 255, 255, 0.82); }

.footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) var(--s-6);
  background: var(--night);
  color: var(--on-night-2);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.footer h3 { color: #fff; font-size: var(--fs-title); }
.footer h4 {
  margin-bottom: var(--s-4);
  color: #fff;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semi);
  letter-spacing: var(--tr-caption);
  text-transform: uppercase;
}
.footer p { color: var(--on-night-2); line-height: var(--lh-tight); }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.footer a { color: var(--on-night-2); }
.footer a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: var(--s-5);
  border-top: 1px solid var(--night-line);
  color: var(--ink-3);
  font-size: var(--fs-caption);
  letter-spacing: var(--tr-label);
}

/* ==========================================================================
   13. WORDPRESS CONTENT (the_content) — inherits the same scale
   ========================================================================== */

.entry { padding-block: clamp(3rem, 7vw, 5.5rem); }

.prose > * + * { margin-top: var(--s-5); }
.prose h2 { margin-top: var(--s-8); }
.prose h3 { margin-top: var(--s-6); }
.prose p,
.prose li { color: var(--ink-2); font-size: var(--fs-body); }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: var(--s-2); }
.prose img { border-radius: var(--r-md); box-shadow: var(--sh-2); }
.prose blockquote {
  margin: 0;
  padding-left: var(--s-5);
  border-left: 3px solid var(--blue);
  color: var(--ink);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--tr-lead);
}
.prose code {
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 0.9em;
}
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-label); }
.prose th, .prose td { padding: var(--s-3); border-bottom: 1px solid var(--line-soft); text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line-soft); }

.post-meta { color: var(--ink-3); font-size: var(--fs-caption); letter-spacing: var(--tr-label); }

.post-list { display: grid; gap: var(--s-5); }
.post-list article { padding-bottom: var(--s-5); border-bottom: 1px solid var(--line-soft); }
.post-list article:last-child { border-bottom: 0; }
.post-list h2 { font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: var(--tr-title); }
.post-list p { color: var(--ink-2); }

.error-404 { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.error-404 .code {
  display: block;
  margin-bottom: var(--s-4);
  color: var(--blue);
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-display);
  line-height: 1;
}

/* ==========================================================================
   14. SCROLL REVEAL — stagger short, decorative, never blocks interaction
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* No-JS safety: never hide content permanently */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row__sticky { position: static; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__media { background-position: 62% center; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .custom-logo,
  .custom-logo-link img { height: 40px !important; max-height: 40px !important; max-width: 52vw; }

  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }

  /* The sheet enters from the header and dismisses along the same path */
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 95;
    padding: var(--s-4);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: rgba(251, 251, 253, 0.9);
    -webkit-backdrop-filter: saturate(180%) blur(28px);
    backdrop-filter: saturate(180%) blur(28px);
    box-shadow: var(--sh-3);
    transform-origin: top center;
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
    visibility: hidden;
    transition:
      opacity var(--t-fast) var(--ease-out),
      transform var(--t-fast) var(--ease-out),
      visibility var(--t-fast);
  }

  .site-nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition-duration: var(--t-base);
    transition-timing-function: var(--ease-drawer);
  }

  .site-nav ul { flex-direction: column; align-items: stretch; gap: var(--s-1); }
  .site-nav a { padding: var(--s-3) var(--s-4); font-size: var(--fs-body); }
  .site-nav .nav-cta { margin-top: var(--s-3); }
  .site-nav .nav-cta .btn { display: inline-flex; width: 100%; }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4,
  .check-list { grid-template-columns: 1fr; }

  .trust-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: var(--s-5); }
  .hero__panel { padding: var(--s-5); }
  .actions .btn { flex: 1 1 auto; }
  .footer-bottom { justify-content: flex-start; }
}

/* ==========================================================================
   16. ACCESSIBILITY PREFERENCES
   Reduced motion means gentler, not zero. Keep opacity, drop movement.
   ========================================================================== */

@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;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    transform: none;
    transition: opacity 200ms ease !important;
  }

  .site-nav { transform: none !important; transition: opacity 200ms ease !important; }
  .btn:active,
  .card--link:active,
  .card--link:hover { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .site-header.is-scrolled { background: var(--canvas); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-nav { background: var(--canvas); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero__panel { background: #0a2136; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn--glass { background: rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-scrim { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root {
    --ink-2: #3a444e;
    --ink-3: #5c6670;
    --line: rgba(18, 28, 40, 0.28);
    --line-soft: rgba(18, 28, 40, 0.18);
  }
  .site-header { background: var(--canvas); }
  .card { border-color: var(--line); }
  .btn--ghost { border-color: var(--ink-2); }
}

@media print {
  .site-header, .menu-toggle, .cta, .nav-scrim { display: none !important; }
  body { background: #fff; color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
