/* ============================================================
   Black Diamond Protection — style.css
   Three palettes via [data-palette] on <html>:
     "onyx"     (default) — Onyx & Champagne, dark executive
     "midnight" — Midnight Steel, navy/platinum corporate
     "gallery"  — Gallery Light, light/charcoal minimal
   ============================================================ */

/* ---------- Self-hosted fonts (no third-party requests) ---------- */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/cinzel-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}

/* ---------- Palette tokens ---------- */
:root,
:root[data-palette="onyx"] {
  --bg: #0a0a0b;
  --surface: #16161a;
  --surface-2: #26262c;
  --border: #26262c;
  --text: #f2eee6;
  --muted: #9a948a;
  --accent: #c6a45c;
  --accent-strong: #d8b96f;
  --on-accent: #0a0a0b;
  --hero-glow: rgba(198, 164, 92, 0.08);
  --band-bg: #101014;
  --nav-bg: rgba(10, 10, 11, 0.82);
  --input-border: #6b6b74;
  --scheme: dark;
}

:root[data-palette="midnight"] {
  --bg: #0a1628;
  --surface: #122240;
  --surface-2: #1a2f54;
  --border: #1e3358;
  --text: #edf1f7;
  --muted: #8291a6;
  --accent: #b9c5d3;
  --accent-strong: #d5deea;
  --on-accent: #0a1628;
  --hero-glow: rgba(110, 155, 197, 0.1);
  --band-bg: #0d1c33;
  --nav-bg: rgba(10, 22, 40, 0.85);
  --link: #6e9bc5;
  --input-border: #5f7391;
  --scheme: dark;
}

:root[data-palette="gallery"] {
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-2: #f1efe9;
  --border: #e8e6e1;
  --text: #17191d;
  --muted: #696e76;
  --accent: #8c6d2f;
  --accent-strong: #6f5522;
  --on-accent: #fafaf8;
  --hero-glow: rgba(140, 109, 47, 0.06);
  --band-bg: #101114;
  --band-text: #f2eee6;
  --band-muted: #9a948a;
  --nav-bg: rgba(250, 250, 248, 0.88);
  --input-border: #8f8d86;
  --scheme: light;
}

:root { --link: var(--accent); }
:root[data-palette="gallery"] {
  --band-accent: #c6a45c;
}
:root[data-palette="onyx"],
:root[data-palette="midnight"] {
  --band-text: var(--text);
  --band-muted: var(--muted);
  --band-accent: var(--accent);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: var(--scheme);
}

body {
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2 {
  font-family: "Cinzel", "Times New Roman", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.03em;
}

h3, h4 { font-weight: 700; line-height: 1.3; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

section { padding-block: clamp(4rem, 9vw, 8.5rem); }

.eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1.25rem;
  max-width: 24ch;
}

.section-intro {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* Diamond divider */
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
  border: 0;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: 56px;
  background: var(--accent);
  opacity: 0.5;
}
.divider span {
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 6px 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-family: "Cinzel", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}
.brand .mark {
  width: 14px;
  height: 14px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: none;
}
.brand small {
  display: block;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-phone {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.nav-phone svg { vertical-align: -2px; margin-right: 0.35rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }

.btn-ghost {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-ghost:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- Hero ---------- */
.hero {
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding-block: 9rem 5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 560px at 72% -8%, var(--hero-glow) 0%, transparent 62%),
    radial-gradient(900px 500px at 12% 110%, var(--hero-glow) 0%, transparent 55%),
    var(--bg);
}
/* faint diamond lattice */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, var(--border) 1px, transparent 1px),
    linear-gradient(-45deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.14;
  pointer-events: none;
}
:root[data-palette="gallery"] .hero {
  background:
    radial-gradient(1100px 560px at 72% -8%, var(--hero-glow) 0%, transparent 62%),
    var(--bg);
}

.hero-inner { position: relative; max-width: 820px; }

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
  margin: 1.1rem 0 1.4rem;
}
.hero .tagline {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 2.4rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-note {
  margin-top: 2.2rem;
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-note .dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: none;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  border-block: 1px solid var(--border);
  background: var(--surface);
  padding-block: 1.4rem;
}
.trust-strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.75rem;
}
.trust-strip li {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.trust-strip li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 6px;
  padding: 2rem 1.75rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); }

.card .num {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  opacity: 0.09;
  font-variant-numeric: tabular-nums;
}
.card svg { color: var(--accent); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); font-size: 0.9688rem; flex: 1; }
.card .card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}
.card .card-link:hover { text-decoration: underline; }

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--band-bg);
  color: var(--band-text);
  border-block: 1px solid var(--border);
}
:root[data-palette="gallery"] .stats-band { border-color: #26262c; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem 1.5rem;
  text-align: center;
}
.stat .value {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--band-accent);
  font-variant-numeric: tabular-nums;
}
.stat .label {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--band-muted);
}

/* ---------- About / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split .visual {
  position: relative;
  min-height: 420px;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(600px 400px at 30% 20%, var(--hero-glow) 0%, transparent 60%),
    linear-gradient(160deg, var(--surface) 0%, var(--band-bg) 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
:root[data-palette="gallery"] .split .visual {
  background:
    radial-gradient(600px 400px at 30% 20%, var(--hero-glow) 0%, transparent 60%),
    linear-gradient(160deg, #ffffff 0%, #efece4 100%);
}
.split .visual .big-diamond {
  width: 130px;
  height: 130px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  position: relative;
  opacity: 0.85;
}
.split .visual .big-diamond::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid var(--accent);
  opacity: 0.55;
}
.split .visual .big-diamond::after {
  content: "";
  position: absolute;
  inset: 42px;
  background: var(--accent);
  opacity: 0.75;
}

.checklist { list-style: none; display: grid; gap: 0.9rem; margin-top: 1.75rem; }
.checklist li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  color: var(--text);
  font-weight: 500;
}
.checklist li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.55em;
  background: var(--accent);
  transform: rotate(45deg);
}
.checklist li span { color: var(--muted); font-weight: 400; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.9rem 1.6rem;
}
.step .step-num {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.9375rem; }

/* ---------- Coverage ---------- */
.coverage {
  background: var(--band-bg);
  color: var(--band-text);
  border-block: 1px solid var(--border);
  text-align: center;
}
.coverage .section-title { margin-inline: auto; max-width: none; }
.coverage p { color: var(--band-muted); max-width: 60ch; margin: 0 auto 2rem; }
.coverage .regions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  list-style: none;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: 0.12em;
  color: var(--band-accent);
}
.coverage .regions li { display: flex; align-items: center; gap: 2.5rem; }
.coverage .regions li + li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--band-accent);
  transform: rotate(45deg);
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--muted); margin-bottom: 1.75rem; max-width: 46ch; }

.contact-list { list-style: none; display: grid; gap: 1.1rem; }
.contact-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}
.contact-list a:hover { color: var(--accent); }
.contact-list .kind {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.privacy-note {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 6px 6px 0;
  font-size: 0.9063rem;
  color: var(--muted);
}

/* Form */
.enquiry-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 6px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  display: grid;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.field .optional { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--input-border);
  border-radius: 4px;
  padding: 0.8rem 0.9rem;
}
:root[data-palette="gallery"] .field input,
:root[data-palette="gallery"] .field select,
:root[data-palette="gallery"] .field textarea {
  background: #ffffff;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}
.field textarea { resize: vertical; min-height: 120px; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.form-foot small { color: var(--muted); max-width: 34ch; }

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--band-bg);
  color: var(--band-muted);
  border-top: 1px solid var(--border);
  padding-block: 3.5rem 2rem;
  font-size: 0.9063rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.site-footer h3 {
  color: var(--band-text);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--band-muted); text-decoration: none; }
.site-footer a:hover { color: var(--band-accent); }
.footer-brand .brand { margin-bottom: 0.9rem; color: var(--band-text); }
.footer-brand p { max-width: 38ch; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.8125rem;
}

/* ---------- Mobile call bar ---------- */
.call-bar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
  font-weight: 800;
  padding: 0.95rem 1rem calc(0.95rem + env(safe-area-inset-bottom));
  text-decoration: none;
  letter-spacing: 0.03em;
}

/* ---------- Reveal animations ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ---------- Palette switcher (demo only — remove for production) ---------- */
.palette-switcher {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.palette-switcher span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.palette-switcher button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 0;
}
.palette-switcher button[aria-pressed="true"] {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.palette-switcher .sw-onyx { background: linear-gradient(135deg, #0a0a0b 55%, #c6a45c 55%); }
.palette-switcher .sw-midnight { background: linear-gradient(135deg, #0a1628 55%, #b9c5d3 55%); }
.palette-switcher .sw-gallery { background: linear-gradient(135deg, #fafaf8 55%, #8c6d2f 55%); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .contact-wrap { grid-template-columns: 1fr; }
  .split .visual { min-height: 280px; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
    font-size: 1.05rem;
  }
  .nav-toggle { display: block; }
  .nav-phone { padding: 0.6rem; margin: -0.6rem 0; }
  .nav-phone .phone-text { display: none; }
  .nav .btn { display: none; }
  .call-bar { display: block; }
  body { padding-bottom: 3.6rem; }
  .palette-switcher { bottom: 5.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 86svh; }
}
