/* ===== SHARED STYLES — The Order of the Tile ===== */
/* Nav, Footer, Variables, Reset, Hamburger Menu     */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display+SC:ital,wght@0,400;0,700;0,900;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

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

:root {
  --cloud: #F8F6F2;
  --ivory: #F5F0E8;
  --ink: #1A1412;
  --dusk: #6B6560;
  --lilac: #C9B8C4;
  --melon: #F2A97A;
  --orchid: #9B72A0;
  --butter: #F5E6A3;
  --serif-sc: 'Playfair Display SC', Georgia, serif;
  --serif: 'Playfair Display', Georgia, serif;
  --body: 'Crimson Text', Georgia, serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--cloud);
  color: #3D3530;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(248,246,242,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--lilac);
  height: 74px;
  display: flex; align-items: center;
  padding: 0 16px;
  justify-content: space-between;
}

.nav-wordmark {
  font-family: var(--serif-sc);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-wordmark img { width: 32px; height: 32px; object-fit: contain; }

/* Dropdown menu — anchored to .nav-menu wrapper. */
.nav-links {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  list-style: none;
  flex-direction: column;
  gap: 0;
  min-width: 240px;
  max-width: 280px;
  padding: 8px 0;
  background: rgba(248,246,242,0.98);
  backdrop-filter: blur(10px);
  border: 0.5px solid var(--lilac);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(26,20,18,0.18);
}
.nav-links.open { display: flex; }
.nav-links li { width: 100%; }
.nav-links a {
  display: block;
  font-family: var(--serif-sc);
  font-size: 16px;
  color: var(--dusk);
  text-decoration: none;
  padding: 10px 22px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  border-bottom: none !important;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--ivory);
  color: var(--ink);
}
.nav-links li:last-child {
  padding: 6px 22px 10px;
  margin-top: 4px;
  border-top: 0.5px solid var(--lilac);
}

.nav-cta {
  font-family: var(--serif-sc) !important;
  font-size: 13px !important;
  font-weight: 400;
  background: var(--melon);
  color: var(--ink) !important;
  padding: 10px 18px;
  border-radius: 6px;
  border-bottom: none !important;
  transition: opacity 0.2s;
  display: block;
  text-align: left;
}
.nav-cta:hover { opacity: 0.85; }

/* MENU WRAPPER + TOGGLE */
.nav-menu {
  position: relative;
  flex-shrink: 0;
}

.nav-menu-toggle {
  font-family: var(--serif-sc);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.nav-menu-toggle:hover { opacity: 0.75; }
.nav-menu-toggle:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.nav-menu-chevron {
  transition: transform 0.2s ease;
  display: block;
}

/* Open state — set by JS for hover (with delayed close), tap, and keyboard */
.nav-menu-toggle[aria-expanded="true"] .nav-menu-chevron {
  transform: rotate(180deg);
}

/* ===== COMMON BUTTONS ===== */
.btn-primary {
  font-family: var(--serif-sc);
  font-size: 15px;
  font-weight: 400;
  background: var(--melon);
  color: var(--ink);
  padding: 14px 34px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.82; }

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  padding: 48px 56px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-seal { width: 48px; height: 48px; opacity: 0.85; }
.footer-wordmark {
  font-family: var(--serif-sc);
  font-size: 18px;
  font-weight: 400;
  color: var(--cloud);
}
.footer-tagline {
  font-family: var(--body);
  font-size: 13px;
  color: rgba(248,246,242,0.45);
  margin-top: 4px;
  font-style: italic;
}

.social-links { display: flex; align-items: center; gap: 12px; }
.social-link-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(248,246,242,0.3);
  color: rgba(248,246,242,0.7);
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.social-link-circle:hover {
  border-color: var(--cloud);
  color: var(--cloud);
}

/* ===== FOOTER MOBILE ===== */
@media (max-width: 600px) {
  footer { padding: 36px 24px; }
  .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
  .footer-brand { flex-direction: column; gap: 10px; }
  .social-links { justify-content: center; }
}
