/* ══════════════════════════════════════════════════════════════════════════
   Unplugged Ideas — shared stylesheet.

   Everything every page shares: the :root palette, reset, nav, hamburger,
   mobile drawer and footer. Page-specific CSS stays inline in each template's
   "styles" block.
   ══════════════════════════════════════════════════════════════════════════ */

  :root {
    --ink: #0e0e0e;
    --cream: #1d1710;
    --gold: #8a6a1f;
    --gold-light: #e8c46a;
    --warm-white: #faf7f2;
    --mid: #6b6460;
    --dark-bg: #faf6ee;
    --section-gap: 120px;
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--dark-bg);
    color: var(--cream);
    overflow-x: hidden;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 60px;
    background: rgba(250,246,238,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200,155,60,0.26);
    transition: padding 0.3s;
  }
  nav.scrolled { padding: 14px 60px; }

  .nav-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--cream);
    z-index: 101;
  }
  .nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem; letter-spacing: 0.03em;
  }

  .nav-links {
    display: flex; gap: 36px; list-style: none;
  }
  .nav-links a {
    color: rgba(29,23,16,0.65);
    text-decoration: none;
    font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.25s;
  }
  .nav-links a:hover { color: var(--gold); }

  /* ── HAMBURGER ── */
  .hamburger {
    display: none;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: none; border: none; cursor: pointer;
    z-index: 101; padding: 4px;
  }
  .hamburger span {
    display: block; width: 22px; height: 1.5px;
    background: var(--cream);
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease, width 0.3s ease;
    transform-origin: center;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* ── MOBILE DRAWER ── */
  .mobile-menu {
    display: none;
    position: fixed; inset: 0; z-index: 99;
    background: rgba(250,246,238,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .mobile-menu.open {
    opacity: 1;
    pointer-events: all;
  }
  .mobile-menu a {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; font-weight: 700;
    color: rgba(29,23,16,0.7);
    text-decoration: none; letter-spacing: -0.01em;
    transition: color 0.25s, transform 0.25s;
    transform: translateY(12px);
    opacity: 0;
    transition: color 0.25s, transform 0.4s ease, opacity 0.4s ease;
  }
  .mobile-menu.open a {
    transform: translateY(0); opacity: 1;
  }
  .mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
  .mobile-menu.open a:nth-child(2) { transition-delay: 0.1s; }
  .mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
  .mobile-menu.open a:nth-child(4) { transition-delay: 0.2s; }
  .mobile-menu a:hover { color: var(--gold); }

  .mobile-menu-footer {
    position: absolute; bottom: 40px;
    font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(29,23,16,0.2);
  }

  /* .active — highlights the current page in the nav, drawer and footer. */
  .nav-links a.active { color: var(--gold); }
  .mobile-menu a.active { color: var(--gold); }

  /* ── FOOTER ── */
  footer {
    background: #e9dcbf;
    border-top: 1px solid rgba(200,155,60,0.22);
    padding: 48px 60px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px;
  }
  .footer-brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--cream);
  }
  .footer-brand-text { font-family: 'Playfair Display', serif; font-size: 1rem; }
  .footer-copy { font-size: 0.78rem; color: rgba(29,23,16,0.3); letter-spacing: 0.05em; }
  .footer-links { display: flex; gap: 28px; list-style: none; }
  .footer-links a {
    font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(29,23,16,0.35); text-decoration: none; transition: color 0.25s;
  }
  .footer-links a:hover, .footer-links a.active { color: var(--gold); }

  .nav-logo svg, .footer-brand svg {
    filter: drop-shadow(0 0 4px rgba(212,160,23,0.35));
  }

  /* ── SHARED RESPONSIVE ── */
  @media (max-width: 900px) {
    nav { padding: 18px 24px; }
    nav.scrolled { padding: 14px 24px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: flex; }
    footer { padding: 40px 24px; }
  }

  /* ── SERVER-RENDERED STATE ──
     #form-success and #form-error default to display:none. The server decides
     which of them a response shows, so it needs a class to override that
     default rather than revealing them from JavaScript. Those defaults are id
     selectors, which outrank a bare class, so contact.html pairs this with
     #form-success.is-visible / #form-error.is-visible — without that the boxes
     stay hidden however the server marks them. */
  .is-visible { display: block; }
