/* MANSTOCK — base + layout (light theme, warm bone) */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

::selection { background: rgba(184, 149, 106, 0.35); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Scroll reveal — initial state is applied by JS, so content is never
   hidden when scripts don't run. */
.reveal-init {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal-init.revealed { opacity: 1; transform: none; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bone); }
.section-h2 { margin-bottom: 40px; }
.section-cta { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.btn-lg { padding: 16px 36px; font-size: 15px; }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(184,149,106,0.35); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(26,31,42,0.28); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(26,31,42,0.04); transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn-ink:hover { background: var(--charcoal); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(26,31,42,0.22); }
/* Ghost buttons inside dark bands revert to bone */
.security-band .btn-ghost, .cookie-banner .btn-ghost {
  color: var(--bone); border-color: var(--bone-30);
}
.security-band .btn-ghost:hover, .cookie-banner .btn-ghost:hover {
  border-color: var(--bone); background: var(--bone-08);
}

/* ── Header (light, frosted) ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 249, 243, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 76px;
}
.header-logo { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.header-logo img { width: 150px; height: auto; display: block; }
.header-division {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--stone);
}
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav a {
  color: rgba(26, 31, 42, 0.62); text-decoration: none;
  font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.2s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav .nav-cta { color: var(--ink); }
.site-nav .nav-cta:hover { color: var(--ink); }
.header-phone {
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15px;
  white-space: nowrap;
}
.header-phone:hover { color: var(--gold); }
.nav-toggle { display: none; }

/* ── Footer (ink anchor) ── */
.site-footer { background: var(--ink); color: var(--bone-70); }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px; padding-top: 72px; padding-bottom: 48px;
}
.footer-col h3 {
  color: var(--gold); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-family: var(--font-mono); font-weight: 500; margin-bottom: 18px;
}
.footer-col a { display: block; color: var(--bone-70); text-decoration: none; padding: 4px 0; font-size: 15px; }
.footer-col a:hover { color: var(--bone); }
.footer-col address { font-style: normal; margin-bottom: 12px; font-size: 15px; }
.footer-hours { display: block; margin-top: 8px; font-size: 14px; color: var(--stone); }
.footer-brand img { width: 160px; margin-bottom: 16px; }
.footer-tagline { font-size: 15px; max-width: 260px; }
.footer-legal {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid rgba(244, 239, 227, 0.12);
  padding-top: 24px; padding-bottom: 32px;
  font-size: 13px; color: var(--stone);
}
.footer-legal nav { display: flex; gap: 18px; }
.footer-legal a { color: var(--stone); text-decoration: none; }
.footer-legal a:hover { color: var(--bone); }

/* ── Page hero (inner pages — light) ── */
.page-hero {
  background: linear-gradient(180deg, var(--bone) 0%, var(--warm-white) 100%);
  color: var(--ink);
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--hairline);
}
.page-hero-dark { background: linear-gradient(180deg, var(--bone) 0%, var(--warm-white) 100%); }
.page-hero h1 { color: var(--ink); }
.page-hero-sub { max-width: 640px; color: var(--stone); font-size: 17px; }
.page-hero-sub a { color: var(--ink); font-weight: 700; }
.breadcrumb {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 22px;
}
.breadcrumb a { color: var(--stone); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--ink); }

/* ── Error page ── */
.error-page {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bone); color: var(--ink); text-align: center; padding: 40px; gap: 8px;
}
.error-page h1 { font-size: 84px; color: var(--gold); margin: 12px 0 4px; }
.error-page .btn { margin-top: 20px; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .header-phone { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 44px; height: 44px; padding: 10px;
    background: none; border: 1px solid rgba(26,31,42,0.25); border-radius: var(--radius-sm); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); transition: 0.2s; }
  .site-nav {
    position: fixed; inset: 76px 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--warm-white); border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-soft);
    padding: 8px 24px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--hairline); }
  .site-nav .nav-cta { margin-top: 14px; text-align: center; border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
