/* ═══════════════════════════════════════════════════════
   base.css  –  Reset, Base Styles, & Utilities
═══════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Dancing+Script:wght@600;700&family=Lato:wght@300;400;700&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--clr-text);
  background-color: var(--clr-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* No scrollbar on cover screen */
body.cover-active {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid var(--clr-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Skip to Main ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: var(--z-top);
  background: var(--clr-gold);
  color: var(--clr-navy);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-md);
  font-weight: var(--fw-bold);
  transition: top var(--dur-fast) var(--ease-smooth);
}
.skip-link:focus {
  top: var(--sp-4);
}

/* ── Scroll Padding ── */
[id] { scroll-margin-top: 80px; }

/* ── Typography Helpers ── */
.font-display { font-family: var(--font-display); }
.font-script  { font-family: var(--font-script); }
.font-body    { font-family: var(--font-body); }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* ── Color Helpers ── */
.text-gold    { color: var(--clr-gold); }
.text-navy    { color: var(--clr-navy); }
.text-white   { color: var(--clr-white); }
.text-muted   { color: var(--clr-text-muted); }
.text-cream   { color: var(--clr-cream); }

/* ── Visibility ── */
.hidden { display: none !important; }
.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;
}

/* ── Section Wrapper ── */
.section {
  padding: var(--sp-20) var(--sp-4);
  max-width: 900px;
  margin: 0 auto;
}

.section-sm {
  padding: var(--sp-12) var(--sp-4);
  max-width: 700px;
  margin: 0 auto;
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--sp-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--clr-navy);
}

.section-title.light {
  color: var(--clr-white);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  margin-top: var(--sp-4);
  line-height: var(--lh-relaxed);
}

.section-subtitle.light {
  color: rgba(255,255,255,0.8);
}

/* ── Divider Monogram ── */
.divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-8) auto;
  max-width: 320px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--grad-gold);
  opacity: 0.5;
}

.divider-mono {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-style: italic;
  color: var(--clr-gold);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-height: 48px;
  min-width: 44px;
  transition: all var(--dur-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-gold);
  color: var(--clr-navy);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  border: 2px solid var(--clr-gold);
  color: var(--clr-gold);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(201,168,76,0.12);
}

.btn-ghost {
  color: var(--clr-white);
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.18);
}

.btn-sm {
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--fs-xs);
  min-height: 40px;
}

/* ── Card ── */
.card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
}

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  background: rgba(201,168,76,0.15);
  color: var(--clr-gold);
  letter-spacing: 0.05em;
}

/* ── Ornament Line ── */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  color: var(--clr-gold);
  margin: var(--sp-6) 0;
}
.ornament::before,
.ornament::after {
  content: "✦";
  font-size: var(--fs-xs);
  opacity: 0.6;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}
