/*
 * main.css
 * Dr. Aprilia West — Global Design System
 *
 * Contains: CSS variables, reset, base typography,
 *           shared utilities, scroll reveal, global responsive rules.
 *
 * @package daw
 * @author  Anything Digital <https://anythingdigital.co/>
 */

/* ─────────────────────────────────────────────
   DESIGN TOKENS
   ───────────────────────────────────────────── */
:root {
  /* Colour palette */
  --black:      #0a0906;
  --off-white:  #f5f2ec;
  --warm-white: #faf8f4;
  --gold:       #b8965a;
  --gold-light: #d4af7a;
  --text-dark:  #1a1714;
  --text-mid:   #4a4540;
  --text-light: #8a8078;
  --border:     rgba(184, 150, 90, 0.2);

  /* Typography */
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Barlow', sans-serif;
  --condensed: 'Barlow Condensed', sans-serif;

  /* Spacing scale */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  72px;
  --space-xl:  120px;

  /* Section horizontal padding */
  --pad-x:     72px;
  --pad-x-md:  40px;
  --pad-x-sm:  20px;
}

/* ─────────────────────────────────────────────
   RESET
   ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─────────────────────────────────────────────
   BASE
   ───────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--off-white);
  color: var(--text-dark);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}

section {
  position: relative;
}

/* ─────────────────────────────────────────────
   SHARED LAYOUT UTILITIES
   ───────────────────────────────────────────── */

/* Gold horizontal rule */
.gold-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0;
}

/* Section label (eyebrow) — left-aligned */
.section-label,
.sec-label {
  font-family: var(--condensed);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before,
.sec-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* Section label — centred variant */
.sec-label-c {
  font-family: var(--condensed);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sec-label-c::before,
.sec-label-c::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  display: block;
}

/* Section headlines */
.section-headline {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-dark);
}

.section-headline em {
  font-style: italic;
  color: var(--gold);
}

.section-headline-light {
  color: var(--off-white);
}

/* Reusable serif headings for inner-page heroes */
h2.serif {
  font-family: var(--serif);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-dark);
}

h2.serif em { font-style: italic; color: var(--gold); }

h2.serif-light {
  font-family: var(--serif);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--off-white);
}

h2.serif-light em { font-style: italic; color: var(--gold-light); }

/* Body paragraphs */
.body-p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 18px;
}

.body-p-light {
  font-size: 15px;
  font-weight: 300;
  color: rgba(245, 242, 236, 0.58);
  line-height: 1.85;
  margin-bottom: 18px;
}

/* ─────────────────────────────────────────────
   SCROLL REVEAL ANIMATIONS
   ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }
.reveal-delay-5 { transition-delay: 0.50s; }
.reveal-delay-6 { transition-delay: 0.60s; }

/* Books page reveal aliases */
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.30s; }
.reveal-d4 { transition-delay: 0.40s; }

/* ─────────────────────────────────────────────
   GLOBAL RESPONSIVE BREAKPOINTS
   These cover shared elements (padding, nav,
   footer, section padding). Page-specific
   breakpoints live in their own CSS files.
   ───────────────────────────────────────────── */

/* Tablet — ≤ 1024px */
@media (max-width: 1024px) {
  :root {
    --pad-x: var(--pad-x-md);
  }
}

/* Mobile — ≤ 640px */
@media (max-width: 640px) {
  :root {
    --pad-x: var(--pad-x-sm);
  }
}
