/* ==========================================================================
   New Concept Bar — base.css
   Design tokens, reset, typography, utilities, accessibility
   ========================================================================== */

:root {
  /* --- Layout chrome (shared by scroll-padding and the mobile panel) --- */
  --ncb-header-h: 96px;   /* matches .ncb-header__inner min-height in layout.css */
  --ncb-adminbar-h: 0px;  /* raised below for logged-in users */

  /* --- Core surfaces (dark luxury) --- */
  --ncb-black:      #0a0a0c;
  --ncb-bg:         #0b0c10;
  --ncb-surface:    #111219;
  --ncb-surface-2:  #16171f;
  --ncb-elevated:   #1c1d27;
  --ncb-line:       #26273356;
  --ncb-line-solid: #2a2b36;

  /* --- Gold (metallic) --- */
  --ncb-gold-1: #7d551b;
  --ncb-gold-2: #c9962f;
  --ncb-gold-3: #f3d98a;
  --ncb-gold:   #d8ac57;
  --ncb-gold-soft: #b9924a;
  --ncb-gold-grad: linear-gradient(135deg, #8a5f1e 0%, #e9c877 24%, #f7e6ac 50%, #c9962f 78%, #7d551b 100%);
  --ncb-gold-line: linear-gradient(90deg, transparent, var(--ncb-gold-2), transparent);

  /* --- Vibrant / energetic accent (from the Dreamy swirl) --- */
  --ncb-accent:      #ff2e88;
  --ncb-accent-deep: #d4126b;
  --ncb-accent-glow: #ff2e8833;
  --ncb-cyan:        #24d6c4;

  /* --- Text --- */
  --ncb-text:   #ede8de;
  --ncb-muted:  #a7a196;
  --ncb-dim:    #979183;
  --ncb-invert: #0a0a0c;

  /* --- Typography --- */
  --font-display: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  --text-xl:   clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --text-2xl:  clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem);
  --text-3xl:  clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
  --text-hero: clamp(2.7rem, 1.4rem + 5.4vw, 6.4rem);

  /* --- Spacing / rhythm --- */
  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.75rem);
  --container: 1240px;
  --container-wide: 1440px;
  --container-narrow: 780px;

  /* --- Radius / depth --- */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.35);
  --shadow: 0 18px 50px -20px rgba(0,0,0,.75);
  --shadow-gold: 0 20px 60px -24px rgba(201,150,47,.35);
  --shadow-accent: 0 20px 60px -22px rgba(255,46,136,.4);

  /* --- Motion --- */
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 640ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* scroll-padding-top keeps anchor targets and keyboard focus clear of the
   fixed header (WCAG 2.2 — 2.4.11 Focus Not Obscured). scrollbar-gutter keeps
   the gutter reserved so locking scroll doesn't shift the page sideways. */
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip;
  scroll-padding-top: calc(var(--ncb-header-h) + 1.5rem);
  scrollbar-gutter: stable;
}
/* WordPress puts .admin-bar on <body>, and custom properties don't inherit
   upwards — scroll-padding only takes effect on the root, hence :has(). */
html:has(body.admin-bar) { scroll-padding-top: calc(var(--ncb-header-h) + 1.5rem + 32px); }
@media screen and (max-width: 782px) {
  html:has(body.admin-bar) { scroll-padding-top: calc(var(--ncb-header-h) + 1.5rem + 46px); }
}
/* Set by theme.js while the mobile menu or the lightbox is open. Has to live on
   <html>, since overflow-x: clip above stops body overflow from propagating. */
html.ncb-noscroll { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ncb-text);
  background-color: var(--ncb-bg);
  background-image:
    radial-gradient(1200px 700px at 82% -8%, rgba(201,150,47,.10), transparent 60%),
    radial-gradient(900px 620px at -10% 8%, rgba(255,46,136,.06), transparent 55%),
    linear-gradient(180deg, #0a0a0c 0%, #0b0c10 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* contains horizontal overflow without breaking position: sticky */
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }

a { color: var(--ncb-gold-3); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--ncb-gold); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

ul, ol { list-style: none; padding: 0; }

/* --- Headings --- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: .01em; color: var(--ncb-text); }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
p { text-wrap: pretty; }
strong, b { font-weight: 700; }

::selection { background: var(--ncb-accent); color: #fff; }

/* --- Focus --- */
:focus-visible { outline: 2px solid var(--ncb-gold-3); outline-offset: 3px; border-radius: 4px; }

/* --- Layout helpers --- */
.container { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }
.container--wide { max-width: var(--container-wide); }
.container--narrow { width: min(100% - (var(--gutter) * 2), var(--container-narrow)); }
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }

/* --- Reusable atoms --- */
.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; color: var(--ncb-gold);
}
.kicker::before { content: ""; width: 30px; height: 1px; background: var(--ncb-gold-2); opacity: .8; }
.kicker--center::after { content: ""; width: 30px; height: 1px; background: var(--ncb-gold-2); opacity: .8; }

.gold-text {
  background: var(--ncb-gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.accent-text { color: var(--ncb-accent); }

.lead { font-size: var(--text-lg); color: var(--ncb-muted); line-height: 1.75; }
.eyebrow-rule { width: 64px; height: 2px; background: var(--ncb-gold-grad); border-radius: 2px; }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* --- Accessibility --- */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  z-index: 1000; background: var(--ncb-gold); color: var(--ncb-invert);
  padding: .7em 1.4em; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; color: var(--ncb-invert); }

[hidden] { display: none !important; }
