/* Drezyon Technologies — site styles. No inline styles are used anywhere,
   so the strict Content-Security-Policy in public/_headers can stay strict. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0d;
  --bg-raised: #131316;
  --bg-soft: #18181c;
  --line: #2a2a30;
  --text: #ece7dc;
  --muted: #a9a498;
  --gold: #c9a96a;
  --gold-bright: #e0c48a;
  --danger: #e58a7b;
  --ok: #9ccf9a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --radius: 4px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }
a { color: var(--gold-bright); text-underline-offset: 3px; }
a:hover { color: var(--text); }
ul { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: #111; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4.5rem; gap: 1.5rem;
}
.brand {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 600;
  color: var(--text); text-decoration: none; letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 0.6rem;
}
.brand-mark {
  width: 1.5rem; height: 1.5rem; border: 1px solid var(--gold);
  border-radius: 50%; position: relative; flex: none;
}
.brand-mark::after {
  content: ""; position: absolute; width: 0.4rem; height: 0.4rem;
  background: var(--gold); border-radius: 50%; top: -0.2rem; right: 0.15rem;
}
.site-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; align-items: center; }
.site-nav li { margin: 0; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-bright); }
.site-nav a.btn { color: #111; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: 0.9rem; padding: 0.5rem 0.9rem; border-radius: var(--radius); cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg-raised); border-bottom: 1px solid var(--line); padding: 1rem 1.5rem 1.5rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
}

/* Buttons */
.btn {
  display: inline-block; background: var(--gold); color: #111;
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
  padding: 0.9rem 1.6rem; border: 1px solid var(--gold); border-radius: var(--radius);
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--gold-bright); color: #111; }
.btn-ghost { background: transparent; color: var(--gold-bright); }
.btn-ghost:hover { background: var(--gold); color: #111; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Sections */
section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-raised); border-block: 1px solid var(--line); }
.eyebrow {
  color: var(--gold); font-size: 0.82rem; letter-spacing: 0.22em;
  text-transform: uppercase; margin-bottom: 1.4rem; display: block;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.section-head { max-width: 44rem; margin-bottom: 3rem; }

.hero { padding: clamp(5rem, 13vw, 10rem) 0 clamp(4rem, 9vw, 7rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -14rem; top: -10rem;
  width: 44rem; height: 44rem; border: 1px solid var(--line); border-radius: 50%;
  box-shadow: 0 0 0 6rem rgba(201, 169, 106, 0.03), 0 0 0 12rem rgba(201, 169, 106, 0.02);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.page-hero { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.8rem); max-width: 18ch; }

/* Grids and cards */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); }

.card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; transition: border-color 0.2s;
}
.card:hover { border-color: var(--gold); }
.card h3 { margin-bottom: 0.6rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p, .card li { color: var(--muted); font-size: 1rem; }
.card-num {
  font-family: var(--serif); color: var(--gold); font-size: 1.1rem;
  letter-spacing: 0.1em; display: block; margin-bottom: 1.2rem;
}
.card-link { display: inline-block; margin-top: 1rem; font-size: 0.95rem; }

.service-block {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem;
  padding: 3rem 0; border-top: 1px solid var(--line);
}
.service-block:first-of-type { border-top: 0; padding-top: 0; }
.service-block p { color: var(--muted); }
.service-block ul { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .service-block { grid-template-columns: 1fr; gap: 1rem; } }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem;
  padding: 2rem 0; border-top: 1px solid var(--line); margin: 0;
}
.steps li::before {
  content: "0" counter(step); font-family: var(--serif); font-size: 2rem; color: var(--gold); line-height: 1;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--muted); margin: 0; }

.cta-band { text-align: center; }
.cta-band .lede { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* Form */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3.5rem; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
label { display: block; font-size: 0.9rem; letter-spacing: 0.04em; margin-bottom: 0.45rem; color: var(--text); }
.req { color: var(--gold); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.85rem 1rem; font: inherit; font-size: 1rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.check { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; color: var(--muted); }
.check input { margin-top: 0.35rem; accent-color: var(--gold); width: 1.05rem; height: 1.05rem; flex: none; }
.check label { margin: 0; color: var(--muted); letter-spacing: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1.2rem; min-height: 1.5rem; font-size: 1rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }
.turnstile-slot { margin: 1.4rem 0; min-height: 65px; }
.aside-block { border-left: 1px solid var(--gold); padding-left: 1.5rem; margin-bottom: 2.2rem; }
.aside-block h3 { font-size: 1.35rem; }
.aside-block p { color: var(--muted); margin-bottom: 0.3em; }

/* Prose pages */
.prose h2 { font-size: 1.9rem; margin-top: 2.2em; }
.prose p, .prose li { color: var(--muted); }
.notice {
  border: 1px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.25rem;
  color: var(--text); background: rgba(201, 169, 106, 0.06); font-size: 0.98rem;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 {
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.85rem; }
