/* =========================================
   RESET & CUSTOM PROPERTIES
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --burgundy:      #810020;
  --burgundy-dark: #600018;
  --bg:            #FAFAFA;
  --text:          #1A1A1A;
  --gray-900:      #111827;
  --gray-600:      #4B5563;
  --gray-500:      #6B7280;
  --gray-400:      #9CA3AF;
  --gray-300:      #D1D5DB;
  --gray-200:      #E5E7EB;
  --gray-50:       #F9FAFB;
  --white:         #FFFFFF;
  --surface:       #FFFFFF;
  --header-bg:     rgba(250, 250, 250, 0.9);
  --accent-tint:   rgba(129, 0, 32, 0.1);
  --header-h:      5rem;
  --max-w:         72rem;
  --serif:         'Playfair Display', Georgia, serif;
  --sans:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease:          200ms ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --burgundy:      #C4183C;
    --burgundy-dark: #A01030;
    --bg:            #141212;
    --text:          #EAE4E4;
    --gray-900:      #EDE6E6;
    --gray-600:      #BFB0B0;
    --gray-500:      #9A8A8A;
    --gray-400:      #6B5A5A;
    --gray-300:      #3C2F2F;
    --gray-200:      #2D2222;
    --gray-50:       #1B1717;
    --white:         #FFFFFF;
    --surface:       #1F1B1B;
    --header-bg:     rgba(20, 18, 18, 0.92);
    --accent-tint:   rgba(196, 24, 60, 0.15);
  }
}

::selection {
  background: var(--burgundy);
  color: var(--white);
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
button { font-family: var(--sans); }
ul { list-style: none; }

/* =========================================
   HEADER
   ========================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  transition: color var(--ease);
  user-select: none;
}
.logo:hover { color: var(--burgundy); }

/* Desktop nav */
.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .main-nav { display: flex; } }

.nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray-500);
  transition: color var(--ease);
  position: relative;
  padding: 0.25rem 0;
  display: inline-block;
}
.nav-btn:hover { color: var(--burgundy); }
.nav-btn.active { color: var(--burgundy); }
.nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--burgundy);
  border-radius: 50%;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-900);
  padding: 0.25rem;
  width: 2rem;
  height: 2rem;
}
@media (min-width: 768px) { .hamburger { display: none; } }

.ham-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 300ms ease, opacity 200ms ease;
  transform-origin: center;
}
.hamburger.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0.1); }
.hamburger.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
  border-top: 1px solid transparent;
  gap: 0.125rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 320ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 240ms ease,
              padding 320ms ease,
              border-color 320ms ease;
}
.mobile-nav.open {
  max-height: 16rem;
  opacity: 1;
  padding: 0.75rem 1.5rem 1.25rem;
  border-top-color: var(--gray-200);
}
.mobile-nav .nav-btn { text-align: left; padding: 0.5rem 0; display: block; }
.mobile-nav .nav-btn.active::after { display: none; }

/* =========================================
   MAIN LAYOUT
   ========================================= */
#main-content {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  animation: fadeUp 0.5s ease both;
}
@media (min-width: 768px) { #main-content { padding: 2.5rem 1.5rem 5rem; } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0);     }
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gray-900);
  line-height: 1.15;
}

/* =========================================
   FOOTER
   ========================================= */
#site-footer {
  border-top: 1px solid var(--gray-200);
  background: var(--surface);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}
.social-link {
  color: var(--gray-400);
  display: flex;
  align-items: center;
  transition: color var(--ease);
}
.social-link:hover { color: var(--burgundy); }
