/* =========================================================
   redAfterHours.is — design system
   Palette: warm-black / burgundy / red / ivory / muted gold
   Type:    Cormorant Garamond (display) + Inter (body)
   ========================================================= */

:root {
  --c-bg:        #0b0608;
  --c-bg-soft:   #140a0d;
  --c-bg-card:   #1a0d11;
  --c-line:      #2a1419;
  --c-burgundy:  #4a0d1c;
  --c-red:       #b8243a;
  --c-red-deep:  #82172a;
  --c-gold:      #b89968;
  --c-ivory:     #f0e6d8;
  --c-ivory-dim: #c9bfb1;
  --c-muted:     #8a7f72;

  --f-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --f-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 72rem;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
  --pad-y: clamp(3rem, 8vw, 6rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-ivory);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* subtle film-grain overlay for warmth */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(184, 36, 58, 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  z-index: 1;
  mix-blend-mode: screen;
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--c-ivory);
}
h1 { font-size: clamp(2.4rem, 6.5vw, 4.5rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }

p { margin: 0 0 1.1em; }

a {
  color: var(--c-ivory);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
a:hover { color: var(--c-red); border-bottom-color: var(--c-red); }

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1.2rem;
}

.lede { font-size: 1.15rem; color: var(--c-ivory-dim); max-width: 38rem; }

.divider {
  width: 3rem; height: 1px;
  background: var(--c-red);
  border: 0; margin: 2.5rem 0;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
section { padding: var(--pad-y) 0; position: relative; z-index: 2; }
.section-soft { background: var(--c-bg-soft); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad-x);
  background: rgba(11, 6, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.brand {
  display: inline-flex; align-items: baseline; gap: 0.55rem;
  font-family: var(--f-display); font-size: 1.35rem;
  letter-spacing: 0.04em;
  border: 0;
}
.brand:hover { color: var(--c-red); }
.brand-mark {
  font-style: italic; font-weight: 600;
  color: var(--c-red);
  font-size: 1.55rem;
}
.brand-name { color: var(--c-ivory); }

.site-nav {
  display: flex; gap: clamp(0.9rem, 2.5vw, 2rem);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-nav a {
  color: var(--c-ivory-dim);
  border: 0;
  padding: 0.4rem 0;
  position: relative;
}
.site-nav a:hover { color: var(--c-ivory); }
.site-nav a.is-active { color: var(--c-red); }
.site-nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--c-red);
}

@media (max-width: 540px) {
  .site-header { flex-direction: column; gap: 0.6rem; padding: 0.85rem var(--pad-x); }
  .site-nav { gap: 1.1rem; font-size: 0.75rem; }
}

/* ---------- hero ---------- */
.hero {
  min-height: calc(100vh - 4rem);
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(184, 36, 58, 0.18), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(74, 13, 28, 0.6), transparent 70%),
    var(--c-bg);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 70%, var(--c-bg) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 {
  font-style: italic; font-weight: 400;
  font-size: clamp(3rem, 10vw, 7rem);
  margin-bottom: 0.2em;
}
.hero h1 .accent { color: var(--c-red); font-style: italic; }
.hero .tagline {
  font-family: var(--f-body); font-weight: 300;
  letter-spacing: 0.22em; text-transform: uppercase;
  font-size: 0.85rem; color: var(--c-gold);
  margin-bottom: 2rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid var(--c-red);
  color: var(--c-ivory);
  background: transparent;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
  cursor: pointer;
}
.btn:hover {
  background: var(--c-red);
  color: var(--c-bg);
  border-color: var(--c-red);
}
.btn-ghost {
  border-color: var(--c-line);
  color: var(--c-ivory-dim);
}
.btn-ghost:hover {
  border-color: var(--c-ivory);
  background: transparent;
  color: var(--c-ivory);
}

/* ---------- feature grid (services teaser, etc) ---------- */
.grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.card {
  padding: 2rem;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  position: relative;
  transition: border-color .3s ease, transform .3s ease;
}
.card:hover {
  border-color: var(--c-red-deep);
  transform: translateY(-2px);
}
.card h3 { color: var(--c-ivory); }
.card .price {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--c-red);
  margin-top: 1rem;
}

/* ---------- forms ---------- */
.form { max-width: 36rem; }
.form .field { margin-bottom: 1.4rem; }
.form label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 0.5rem;
}
.form label .req { color: var(--c-red); }
.form input[type="text"],
.form input[type="email"],
.form input[type="date"],
.form input[type="number"],
.form select,
.form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  color: var(--c-ivory);
  font-family: var(--f-body);
  font-weight: 300;
  transition: border-color .25s ease, background .25s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 0;
  border-color: var(--c-red);
  background: var(--c-bg-card);
}
.form textarea { min-height: 9rem; resize: vertical; }
.form .checkbox {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.95rem; color: var(--c-ivory-dim);
}
.form .checkbox input { margin-top: 0.35rem; accent-color: var(--c-red); }
.form .help {
  font-size: 0.85rem; color: var(--c-muted);
  margin-top: 0.4rem; line-height: 1.5;
}

/* honeypot — hidden from humans, visible to bots */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-msg {
  padding: 1rem 1.25rem;
  border-left: 2px solid;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.form-msg.error   { border-color: var(--c-red);  background: rgba(184, 36, 58, 0.08); }
.form-msg.success { border-color: var(--c-gold); background: rgba(184, 153, 104, 0.08); }

/* ---------- footer ---------- */
.site-footer {
  padding: 3rem var(--pad-x) 2rem;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg-soft);
  position: relative; z-index: 2;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer-tag {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--c-red);
  margin: 0 0 0.6rem;
}
.footer-meta { font-size: 0.85rem; color: var(--c-ivory-dim); margin: 0 0 0.8rem; }
.footer-meta a { color: var(--c-gold); border: 0; }
.footer-meta a:hover { color: var(--c-red); }
.footer-fineprint { font-size: 0.72rem; color: var(--c-muted); margin: 0; max-width: 42rem; margin-inline: auto; }

/* ---------- age gate (index.php) ---------- */
.gate {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem var(--pad-x);
  background:
    radial-gradient(ellipse at center, rgba(184, 36, 58, 0.22), transparent 60%),
    var(--c-bg);
  text-align: center;
}
.gate-inner { max-width: 32rem; }
.gate h1 {
  font-style: italic; font-size: clamp(3.5rem, 12vw, 6.5rem);
  color: var(--c-red); margin-bottom: 0.1em;
}
.gate .domain {
  font-family: var(--f-body);
  letter-spacing: 0.4em; text-transform: uppercase;
  font-size: 0.78rem; color: var(--c-gold);
  margin-bottom: 2.5rem;
}
.gate p {
  font-size: 1rem; color: var(--c-ivory-dim);
  max-width: 26rem; margin-inline: auto;
}
.gate .actions {
  display: flex; gap: 1rem; justify-content: center; margin-top: 2.5rem;
  flex-wrap: wrap;
}
.gate .leave {
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--c-muted);
  padding: 0.95rem 2rem;
  border: 1px solid var(--c-line);
}
.gate .leave:hover { color: var(--c-ivory-dim); border-color: var(--c-muted); background: transparent; }

/* ---------- two-column block ---------- */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse > :first-child { order: 2; }
}
.split img {
  filter: grayscale(0.2) contrast(1.05) brightness(0.9);
  border: 1px solid var(--c-line);
}

/* ---------- utilities ---------- */
.text-center { text-align: center; }
.muted { color: var(--c-ivory-dim); }
.hide { display: none; }
@media (max-width: 600px) { .hide-mobile { display: none; } }
