/* ==========================================================================
   Hardstone AI Consulting — site styles
   Palette: jobsite charcoal + hi-vis orange, blueprint grid accents
   ========================================================================== */
:root {
  --bg: #0f1216;
  --bg-2: #151a20;
  --panel: #1b2129;
  --panel-2: #222a34;
  --line: #2c3642;
  --text: #e9edf2;
  --muted: #9aa6b4;
  --accent: #ff7a1a;        /* hi-vis orange */
  --accent-2: #ffb020;      /* caution yellow */
  --accent-ink: #1a0e02;
  --blue: #4da3ff;          /* blueprint blue */
  --good: #3ecf8e;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0,0,0,.35);
  --maxw: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Top hazard strip + nav ---------- */
.hazard {
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--accent-2) 0 14px, #111 14px 28px);
}
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,18,22,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 1rem; font-weight: 800;
}
.brand em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 10px; font-size: 1rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 10px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ff8c38; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 80px;
  background:
    radial-gradient(900px 400px at 85% 10%, rgba(255,122,26,.16), transparent 60%),
    linear-gradient(var(--bg), var(--bg-2));
}
.hero::before { /* blueprint grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(77,163,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,163,255,.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--accent-2); background: rgba(255,176,32,.1); border: 1px solid rgba(255,176,32,.3);
  padding: 6px 12px; border-radius: 999px;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 16px; letter-spacing: .3px; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; font-weight: 800; margin-top: 20px; }
h1 .hl { color: var(--accent); }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; font-weight: 800; }
h3 { font-size: 1.45rem; font-weight: 700; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 620px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.hero-note strong { color: var(--text); }

.hero-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); position: relative;
}
.hero-card .tag { position: absolute; top: -12px; right: 20px; background: var(--accent-2); color: #1a1200; font-weight: 800; font-size: .75rem; letter-spacing: 1px; padding: 5px 10px; border-radius: 6px; text-transform: uppercase; }
.hero-card h3 { margin-bottom: 6px; }
.price { font-family: var(--display); font-size: 3.4rem; font-weight: 800; color: var(--text); line-height: 1; }
.price small { font-size: 1rem; color: var(--muted); font-family: var(--font); font-weight: 500; }
.checks { list-style: none; padding: 0; margin: 18px 0 22px; }
.checks li { padding-left: 30px; position: relative; margin: 9px 0; color: var(--text); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(62,207,142,.15); color: var(--good); font-size: .75rem; font-weight: 800; display: grid; place-items: center; margin-top: 3px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker { color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; display: block; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(255,122,26,.5); transform: translateY(-3px); }
.card p { color: var(--muted); margin: 0; }
.card .icon { width: 46px; height: 46px; border-radius: 10px; background: rgba(255,122,26,.12); color: var(--accent); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }

/* ---------- Stats / urgency ---------- */
.stat { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 24px; }
.stat .num { font-family: var(--display); font-size: 3.2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat .label { margin-top: 10px; color: var(--text); font-weight: 500; }
.stat .src { margin-top: 10px; font-size: .78rem; color: var(--muted); }
.stat .src a { color: var(--muted); text-decoration: underline; }

.banner {
  margin-top: 44px; padding: 34px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(255,122,26,.18), rgba(255,176,32,.08));
  border: 1px solid rgba(255,122,26,.4);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.banner h3 { font-size: 2rem; text-transform: uppercase; margin: 0 0 6px; }
.banner p { margin: 0; color: var(--muted); }

/* ---------- Compare table (without vs with AI) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare > div { padding: 26px; }
.compare .without { background: var(--panel); }
.compare .with { background: rgba(62,207,142,.06); border-left: 1px solid var(--line); }
.compare h3 { font-size: 1.3rem; text-transform: uppercase; }
.compare .without h3 { color: #ff6b6b; }
.compare .with h3 { color: var(--good); }
.compare ul { margin: 0; padding-left: 18px; color: var(--muted); }
.compare li { margin: 8px 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 62px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-family: var(--display); font-size: 2.6rem; font-weight: 800; color: var(--accent);
}

/* ---------- Pricing ---------- */
.tier { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.tier.featured { border: 2px solid var(--accent); box-shadow: 0 0 0 6px rgba(255,122,26,.08), var(--shadow); }
.tier .badge { position: absolute; top: -13px; left: 30px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .75rem; letter-spacing: 1px; padding: 5px 10px; border-radius: 6px; text-transform: uppercase; }
.tier .who { color: var(--muted); font-size: .95rem; min-height: 48px; }
.tier .price { margin: 14px 0 4px; }
.tier .checks { flex: 1; }
.fine { font-size: .85rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* ---------- Forms ---------- */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: 1rem; margin-bottom: 16px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.form-status { margin-top: 10px; font-weight: 600; }

/* ---------- Booking embed ---------- */
.booking-shell { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 640px; }
#cal-inline { width: 100%; min-height: 620px; overflow: auto; border-radius: 10px; }
.setup-note { border: 2px dashed var(--accent-2); border-radius: 12px; padding: 28px; color: var(--muted); background: rgba(255,176,32,.05); }
.setup-note strong { color: var(--accent-2); }
.policy-box { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.policy-box h3 { font-size: 1.2rem; text-transform: uppercase; }
.policy-box ul { padding-left: 18px; color: var(--muted); margin: 0; }
.policy-box li { margin: 6px 0; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 70px 0 40px; background: linear-gradient(var(--bg), var(--bg-2)); border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 720px; }

/* ---------- Legal/prose ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.8rem; margin-top: 40px; }
.prose p, .prose li { color: #c9d1db; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 50px 0 30px; background: #0b0d10; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
footer h4 { font-size: .85rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 6px 0; }
footer a { color: var(--text); }
footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare .with { border-left: 0; border-top: 1px solid var(--line); }
  form .row { grid-template-columns: 1fr; gap: 0; }
  footer .cols { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .mobile-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; }
  .mobile-cta .btn { width: 100%; box-shadow: var(--shadow); }
  footer { padding-bottom: 90px; }
}

/* Collapse nav to hamburger before links start wrapping */
@media (max-width: 1020px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 16px; gap: 14px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
