/* ============================================
   MIRRORBALL MINISTRIES — DESIGN SYSTEM
   ============================================ */

:root {
  --black:        #050408;
  --navy:         #06041A;
  --blue-deep:    #0D0A5C;
  --charcoal:     #0E0C22;
  --cream:        #FFF1D0;
  --gold:         #B8882A;
  --gold-bright:  #D4A840;
  --gold-dark:    #7A5618;
  --blue:         #1A0FC4;
  --lavender:     #D7CCFF;
  --peach:        #F2B977;
  --rose:         #B76C7A;

  /* legacy aliases kept for any leftover references */
  --plum:         #06041A;
  --wine:         #0D0A5C;

  --font-heading: 'Aboreto', 'Cormorant Garamond', serif;
  --font-subhead: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;

  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  64px;
  --space-xl:  96px;
  --space-2xl: 128px;

  --max-width: 1280px;
  --gutter:    48px;
}

@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --space-xl: 64px;
    --space-2xl: 88px;
  }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
  .rv {
    opacity: 0;
    transform: translateY(38px);
    transition:
      opacity  0.72s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .rv.rv-in {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   RESET
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--cream);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ============================================
   SKIP LINK
   ============================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  background: var(--gold);
  color: var(--black);
  padding: 8px 16px;
  font-weight: 500;
  font-size: 14px;
  z-index: 9999;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   TYPOGRAPHY SCALE
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
  color: var(--cream);
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; font-family: var(--font-body); font-weight: 500; }

p {
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 241, 208, 0.85);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.35;
  max-width: 80px;
}

/* Gold gradient text */
.gold-text {
  background: linear-gradient(130deg, #F7D36A 0%, #D6A94A 60%, #9C6A1E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  background: var(--gold-bright);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 241, 208, 0.35);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost-gold {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn-ghost-gold:hover {
  background: var(--gold);
  color: var(--black);
}

.text-link {
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.text-link:hover {
  color: var(--gold-bright);
}

/* ============================================
   ART DECO CORNER FRAME
   ============================================ */

.deco-frame {
  position: relative;
}

.deco-frame::before,
.deco-frame::after {
  content: '';
  position: absolute;
  width: 44px;
  height: 44px;
  pointer-events: none;
}

.deco-frame-tl::before {
  top: 12px;
  left: 12px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.deco-frame-br::after {
  bottom: 12px;
  right: 12px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

.deco-frame-tr::before {
  top: 12px;
  right: 12px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

.deco-frame-bl::after {
  bottom: 12px;
  left: 12px;
  border-bottom: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

/* ============================================
   GRAIN TEXTURE OVERLAY
   ============================================ */

.grain-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ============================================
   SECTION SPACING
   ============================================ */

.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.section-lg {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

/* ============================================
   FOCUS STATES
   ============================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
details summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================
   CATEGORY / TAG BADGES
   ============================================ */

.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid rgba(214, 169, 74, 0.35);
  color: var(--gold);
}

.tag-room {
  border-color: rgba(255, 241, 208, 0.15);
  color: rgba(255, 241, 208, 0.55);
}

.tag-cancelled {
  border-color: var(--rose);
  color: var(--rose);
}

.tag-postponed {
  border-color: var(--peach);
  color: var(--peach);
}

/* ============================================
   DIVIDER
   ============================================ */

.gold-rule {
  border: none;
  border-top: 1px solid rgba(214, 169, 74, 0.25);
  margin: var(--space-md) 0;
}

/* ============================================
   NEWSLETTER INLINE
   ============================================ */

.newsletter-section {
  background: var(--charcoal);
  border-top: 1px solid rgba(214, 169, 74, 0.12);
  border-bottom: 1px solid rgba(214, 169, 74, 0.12);
  padding: var(--space-lg) 0;
  text-align: center;
}

.newsletter-section h3 {
  margin-bottom: var(--space-xs);
}

.newsletter-section p {
  margin-bottom: var(--space-md);
  color: rgba(255, 241, 208, 0.6);
  font-size: 15px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 241, 208, 0.2);
  color: var(--cream);
  font-size: 14px;
}

.newsletter-form input[type="text"]::placeholder,
.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 241, 208, 0.35);
}

.newsletter-form input[type="text"]:focus,
.newsletter-form input[type="email"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: transparent;
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* Text for screen readers only: hidden visually, still read aloud. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
