/* ==========================================================================
   ATHGORISE — Shared brand stylesheet
   Per official Brand Book: black/white core palette, accent blue for
   marketing/digital use only, sans-serif modern typography, uppercase
   headlines, direct/sober/confident tone.
   ========================================================================== */

:root {
  --black: #000000;
  --near-black: #0a0a0a;
  --charcoal: #131313;
  --charcoal-2: #1c1c1c;
  --line: #2a2a2a;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --gray-300: #b3b3b3;
  --gray-500: #7d7d7d;

  --blue: #0066ff;       /* official ATHGORISE accent blue — marketing/digital use only */
  --blue-light: #4d94ff;
  --blue-dark: #0047b3;
  --green: #2ecc71;

  --font-display: "Montserrat", "Arial", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --radius: 12px;
  --container: 1180px;
  --container-narrow: 760px;

  /* Backward-compatible aliases (used by vip/index.html) */
  --navy-950: var(--black);
  --navy-900: var(--near-black);
  --navy-800: var(--charcoal);
  --navy-700: var(--charcoal-2);
  --navy-600: var(--line);
  --blue-bright: var(--blue-light);
  --blue-dim: var(--blue-dark);
}

/* ---------- Light theme ----------
   Toggled via data-theme="light" on <html>. Brand Book allows monochrome
   logo either way (white-on-black priority, black-on-white permitted) —
   the nav/footer logo is auto-inverted below rather than swapped. */
:root[data-theme="light"] {
  --black: #ffffff;
  --near-black: #f6f6f7;
  --charcoal: #ffffff;
  --charcoal-2: #f0f0f1;
  --line: #e2e2e4;
  --white: #0a0a0a;
  --off-white: #111111;
  --gray-300: #45454a;
  --gray-500: #74747a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  transition: background-color .2s ease, color .2s ease;
  overflow-x: hidden;
}

/* Brand logo (white artwork) auto-inverts to black on light backgrounds */
:root[data-theme="light"] .nav-logo img,
:root[data-theme="light"] .footer-brand img {
  filter: invert(1);
}

/* ---------- Theme toggle button ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  flex: none;
  transition: border-color .15s ease;
}
.theme-toggle:hover { border-color: var(--blue); }
.theme-toggle svg { width: 17px; height: 17px; display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #ffffff; }
.btn-primary:hover { background: var(--blue-light); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-outline-blue { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: #ffffff; }
.btn-amazon { background: #ff9900; color: #0a0a0a; }
.btn-amazon:hover { background: #ffab33; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
:root[data-theme="light"] .site-header { background: rgba(255,255,255,0.88); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-logo img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-300);
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 68px 0 0 0; background: var(--black);
    flex-direction: column; justify-content: flex-start; padding: 36px 24px; gap: 26px;
    transform: translateX(100%); transition: transform .25s ease; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; background: none; border: none; color: var(--white); font-size: 26px; cursor: pointer; }
  .nav-cta .btn-outline { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  margin-top: 90px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-brand img { height: 28px; margin-bottom: 14px; }
.footer-brand p { color: var(--gray-500); font-size: 13.5px; max-width: 260px; }
.footer-col h4 {
  font-size: 12px; letter-spacing: 0.1em; color: var(--gray-500);
  margin-bottom: 14px; font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--gray-300); font-size: 14px; transition: color .15s ease; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding-top: 26px; border-top: 1px solid var(--line);
  color: var(--gray-500); font-size: 12.5px;
}
.footer-signature { font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-300); font-size: 11.5px; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
