/* ===== THE WILLOW BEAN — SHARED STYLES ===== */
/* Loaded by all pages. Page-specific CSS stays in each file's <style> block. */

/* ===== DESIGN TOKENS ===== */
:root {
  --cream:        #F5F0E8;
  --cream-dark:   #EDE5D4;
  --cream-mid:    #F9F4EC;
  --espresso:     #2C1209;
  --mocha:        #5C2E0E;
  --latte:        #A0704A;
  --latte-text:   #7A4E2D;
  --foam:         #FAF6EF;
  --sage:         #8C9E7E;
  --sage-pale:    #D4DECC;
  --sage-dark:    oklch(35% 0.06 145);
  --blush:        #E8B4B8;
  --blush-light:  #F2D0D3;
  --blush-dark:   oklch(32% 0.07 10);
  --gold:         #C49A4A;
  --gold-light:   #E8C97A;
  --gold-dark:    oklch(36% 0.09 72);
  --cream-accent: oklch(88% 0.03 80);
  --cream-deep:   #D9D0BE;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    32px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-body:    'Lato', sans-serif;
  --shadow-warm:  0 8px 40px rgba(44,18,9,0.12);
  --shadow-card:  0 4px 24px rgba(44,18,9,0.08);
}

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

html {
  overflow-x: hidden;
  color-scheme: light;
  background-color: var(--cream);
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--espresso);
  line-height: 1.6;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--espresso);
  color: var(--cream);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 40px;
  background: rgba(245,240,232,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(160,112,74,0.12);
  transition: box-shadow 0.3s;
}
nav.scrolled {
  box-shadow: 0 2px 20px rgba(44,18,9,0.1);
}
.nav-logo {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--espresso);
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.nav-logo:hover { opacity: 0.72; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mocha);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--latte);
  transition: width 0.25s ease;
  border-radius: 2px;
}
.nav-links a:hover { color: var(--latte-text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--latte-text); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--espresso);
  color: var(--cream) !important;
  padding: 10px 22px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover {
  background: var(--mocha) !important;
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--espresso);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--foam);
  z-index: 9999;
  padding: 90px 32px 40px;
  box-shadow: 0 8px 40px rgba(44,18,9,0.2);
  transform: translateY(-100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
}
#mobile-menu.is-open { transform: translateY(0); }
.mob-link {
  font-family: var(--font-body);
  font-size: 16px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--mocha); text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid rgba(160,112,74,0.15);
  display: block;
}
.mob-cta {
  margin-top: 16px;
  background: var(--espresso);
  color: var(--cream) !important;
  padding: 16px 24px;
  border-radius: 100px;
  text-align: center;
  border-bottom: none !important;
}
#mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,18,9,0.4);
  z-index: 9998;
}
#mobile-overlay.is-open { display: block; }

/* ===== NAV: MOBILE BREAKPOINT ===== */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  #mobile-menu { display: flex; }
}

/* ===== KEYBOARD FOCUS ===== */
:focus-visible {
  outline: 3px solid var(--latte);
  outline-offset: 4px;
  border-radius: var(--radius);
  box-shadow: 0 0 0 6px rgba(160, 112, 74, 0.18);
}
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-cta:focus-visible,
.social-btn:focus-visible,
.form-submit:focus-visible,
.notify-form button:focus-visible,
.mob-cta:focus-visible {
  border-radius: 100px;
}

/* ===== UTILITY ===== */
.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}

/* ===== HAMBURGER OPEN STATE (shared across all pages) ===== */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== FOOTER (shared across all pages) ===== */
footer {
  background: var(--espresso);
  color: var(--cream);
  padding: 60px 40px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.1);
  margin-bottom: 32px;
}

.footer-logo {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 26px;
  margin-bottom: 14px;
  display: block;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-logo:hover {
  opacity: 0.8;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.55);
  font-weight: 300;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.6);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(245, 240, 232, 0.35);
  font-weight: 300;
}

.footer-bottom p a {
  color: rgba(245, 240, 232, 0.5);
  text-decoration: none;
}

.footer-hearts {
  font-size: 14px;
  color: var(--blush);
  font-family: var(--font-serif);
  font-style: italic;
}

@media (max-width: 900px) {
  footer { padding: 56px 24px 32px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  footer { padding: 48px 20px 28px; }
  .footer-top { gap: 24px; }
  .footer-bottom { gap: 8px; }
}
