/* AURIE Noir v4 — Balanced Warm Editorial Luxury Dark Theme
   Mathematically balanced contrast: warm champagne-parchment ink (#DED5CB) on
   velvety warm dark charcoal-aubergine (#1A171C) eliminates white-on-black halation
   (~11.4:1 headlines instead of harsh 16.5:1 glare) while keeping WCAG AA >= 4.5:1
   for all text and WCAG 1.4.11 >= 3:1 for all interactive borders. */

:root {
  --oxblood: #420817;
  --oxblood-deep: #2D0712;
  --plum-bright: #6E243B;
  --plum-hover: #822C47;
  --steel-blue: #273D52;
  --steel-mist: #A9C1D2;

  /* Balanced Warm Editorial Surfaces */
  --bg-canvas: #1A171C;
  --bg-alt: #211D24;
  --bg-paper: #2E2733;
  --bg-stone: #3A3140;
  --bg-input: #1D1920;

  /* Balanced Warm Champagne Typography (Zero harsh pure white) */
  --ink: #DED5CB;
  --ink-soft: #C4B9AE;
  --ink-muted: #A89D94;
  --ivory: #E8DFD5;
  --accent-text: #D7AEBB;
  --focus-ring: #D7AEBB;

  /* Primary action = lightest element on the page (9.0:1 vs canvas; ink 9.3:1 on fill) */
  --cta-bg: #D7AEBB;
  --cta-hover: #E3C4CD;
  --cta-ink: #2D0712;
  --danger-text: #F0A49A;

  /* Accessible Hairlines (hairline-strong >= 3.2:1 on inputs/cards — WCAG 1.4.11 PASS) */
  --hairline: rgba(222, 213, 203, 0.24);
  --hairline-strong: rgba(222, 213, 203, 0.42);
  --border: var(--hairline);
  --border-strong: var(--hairline-strong);

  /* Semantic Alerts */
  --info-bg: rgba(42, 62, 82, 0.42);
  --success-bg: rgba(34, 88, 62, 0.42);
  --error-bg: rgba(126, 44, 68, 0.46);

  /* Typography & Layout Scale */
  --font-sans: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: "Playfair AURIE", Georgia, "Times New Roman", serif;
  --font-serif: var(--font-display);
  --container-max: 1460px;
  --gutter: clamp(18px, 7.5vw, 120px);
  --header-h: 74px;
}
/* Phones keep a compact gutter; the wide margins above are for tablets and desktop */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
}

body {
  background-color: var(--bg-canvas);
  background-image: radial-gradient(ellipse 75% 38% at 50% 0%, rgba(110, 36, 59, 0.15), transparent 70%);
  color: var(--ink);
}

::selection {
  background: rgba(215, 174, 187, 0.28);
  color: var(--ivory);
}

/* Dispatch top bar & translucent sticky header */
.dispatch-note {
  background: linear-gradient(90deg, #320915 0%, #4A1123 50%, #320915 100%);
  border-bottom: 1px solid rgba(222, 213, 203, 0.14);
}

.site-header {
  background: rgba(26, 23, 28, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.site-header.is-scrolled {
  background: rgba(22, 19, 25, 0.96);
  border-bottom-color: rgba(222, 213, 203, 0.26);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
}

/* Subtle AURIE brand signature pattern motifs (warm, low-contrast luxury) */
.cover {
  background:
    radial-gradient(ellipse 58% 80% at 24% 48%, rgba(110, 36, 59, 0.20), transparent 68%),
    var(--bg-alt);
}
.cover-copy::before {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 240px;
  height: 240px;
  background: url("../assets/brand/pattern-constellation-light.png?v=noir4") right bottom / contain no-repeat;
  opacity: 0.11;
  -webkit-mask-image: radial-gradient(circle at 84% 84%, #000 0%, rgba(0, 0, 0, 0.42) 48%, transparent 78%);
  mask-image: radial-gradient(circle at 84% 84%, #000 0%, rgba(0, 0, 0, 0.42) 48%, transparent 78%);
  pointer-events: none;
}
.cover-copy > * { position: relative; z-index: 1; }

.academy-feature {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 80% 30%, rgba(42, 62, 82, 0.18), transparent 68%),
    var(--bg-alt);
}

.mentor-spotlight-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 80% at 92% 18%, rgba(110, 36, 59, 0.16), transparent 65%),
    var(--bg-paper);
}
.mentor-spotlight-card::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 190px;
  height: 190px;
  background: url("../assets/brand/pattern-lattice-light.png?v=noir4") right bottom / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
.mentor-spotlight-card > * { position: relative; z-index: 1; }

/* Inquiry section on szkolenia.html */
.inquiry-section {
  background:
    radial-gradient(ellipse 60% 70% at 15% 20%, rgba(110, 36, 59, 0.16), transparent 65%),
    var(--bg-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(36px, 5vw, 68px);
}
.inquiry-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 860px) {
  .inquiry-grid { grid-template-columns: 1fr; }
}

/* Recently viewed strip on PDPs & Store */
.recently-viewed-section {
  padding-block: clamp(26px, 4vw, 48px);
  border-top: 1px solid var(--hairline);
}
