:root{
  --orange:#D97706;
  --brown:#6B3E1D;
  --bg:#FAF7F2;
  --gold:#E7B973;
  --text:#1F2937;
  --white:#ffffff;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
}

.container{width:min(1100px, 92%); margin-inline:auto}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(31,41,55,0.35); /* translucent charcoal */
  backdrop-filter: blur(8px);
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.site-header.solid{ background:rgba(31,41,55,0.9) }
.nav{display:flex; align-items:center; justify-content:space-between; padding:12px 0}
.brand{
  font-weight:800; letter-spacing:0.12em; text-decoration:none;
  color:var(--white); font-size:1.05rem;
}
.links a{
  color:var(--white); text-decoration:none; margin-left:18px; font-weight:500;
}
.links .btn{
  margin-left:22px; padding:8px 14px; border-radius:8px; background:var(--orange); color:var(--white);
}
.hamburger{display:none; background:none; border:none; padding:6px; cursor:pointer}
.hamburger span{display:block; width:22px; height:2px; background:var(--white); margin:4px 0}

/* Mobile drawer */
/* --- Mobile drawer (step 1: park it fully off-screen) --- */
@media (max-width: 860px) {
  .links { display: none; }
  .hamburger { display: block; }

  .mobile-drawer {
    position: fixed;
    top: 56px;                 /* match your header height */
    right: 0;            /* keep the panel totally off-screen */
    width: 78vw;               /* your current width */
    height: calc(100dvh - 56px);
    background: rgba(31,41,55,0.98);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    z-index: 1000;
    transition: transform .25s ease;
  }

  .site-header.open .mobile-drawer {
  transform: translateX(0);
}

  .mobile-drawer a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 6px;
    border-radius: 8px;
  }

  .mobile-drawer a.btn {
    background: var(--orange);
    text-align: center;
  }
}


/* Hero */
.hero{
  position:relative; min-height:72vh; display:grid; place-items:center; overflow:hidden;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(0,0,0,0.45), transparent),
              linear-gradient(180deg, #1f2937 0%, #0b0f14 100%);
}
.hero-video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .6s ease;
}
.hero-overlay{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.65)); }
.hero-content{
  position:relative; z-index:1; text-align:center; color:var(--white);
  padding:48px 16px; max-width:880px; animation:fadeUp .7s ease both .15s;
}
.headline{ font-family: "Playfair Display", Georgia, serif; font-size: clamp(28px, 4.8vw, 48px); margin:0 0 10px }
.subhead{ color:#E5E7EB; margin:8px 0 22px; font-size: clamp(14px, 2.2vw, 18px) }
.cta-row{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap }
.btn{
  border:1px solid rgba(255,255,255,0.2); color:var(--white); text-decoration:none;
  padding:12px 16px; border-radius:10px; font-weight:600;
}
.btn.primary{ background:var(--orange); border-color:transparent }
.btn.ghost:hover{ background:rgba(255,255,255,0.06) }

/* Sections */
.section{ padding:56px 0 }
.section h2{ font-family: "Playfair Display", Georgia, serif; margin:0 0 12px; color:var(--brown) }
.steps{ margin:8px 0 0 1.1rem }
.steps li{ margin:8px 0 }

/* Footer */
.site-footer{ background:#111827; color:#D1D5DB; margin-top:28px; padding-top:24px }
.footer-grid{
  display:grid; grid-template-columns: 1.1fr .7fr .7fr; gap:28px; padding:18px 0 8px;
}
.brand-footer{ color:var(--white); font-weight:800; letter-spacing:.12em; margin-bottom:6px }
.tagline{ margin:6px 0 0; color:#9CA3AF }
.site-footer h4{ color:#F3F4F6; margin:0 0 6px }
.site-footer ul{ list-style:none; padding:0; margin:0 }
.site-footer li{ margin:6px 0 }
.site-footer a{ color:#D1D5DB; text-decoration:none }
.footnote{ border-top:1px solid rgba(255,255,255,.08); padding:12px 0 18px; font-size:.9rem; color:#9CA3AF }

@media (max-width: 860px){
  .footer-grid{ grid-template-columns:1fr; }
}

/* Animations */
@keyframes fadeUp{ from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:none} }
.reveal{ opacity:0; transform: translateY(10px); transition:.5s ease }
.reveal.is-visible{ opacity:1; transform:none }

.btn.primary[href="/upload.html"] {
  background: #ff7a1a;
  color: #111;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 22px;
  transition: all 0.2s ease;
  box-shadow: 0 6px 14px rgba(255,122,26,0.25);
}

.btn.primary[href="/upload.html"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(255,122,26,0.35);
}
/* ----- Auth Modal ----- */
.modal.hidden { display: none; }
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: grid; place-items: center;
  z-index: 1000;
}
.modal-dialog {
  width: min(92vw, 420px);
  background: #111; color: #f5f5f5;
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
}
.modal-dialog h3 { margin: 0 0 .75rem; }
.modal-dialog label { display: grid; gap: .35rem; margin: .75rem 0; }
.modal-dialog input {
  background: #1b1b1b; border: 1px solid #2a2a2a;
  color: #eee; padding: .65rem .75rem; border-radius: 8px;
}
.modal-close {
  position: absolute; top: .5rem; right: .6rem;
  background: transparent; border: none; color: #bbb;
  font-size: 1.4rem; cursor: pointer;
}
.auth-switch { margin-top: .75rem; font-size: .95rem; color: #bbb; }
.auth-switch a { color: #f6b45f; }
.auth-message { margin-top: .5rem; min-height: 1.25rem; font-size: .9rem; }
.btn.small { padding: .35rem .7rem; font-size: .9rem; }

/* Kill the sideways scroll caused by the off-screen menu */
html, body {
  overflow-x: hidden;
}

/* Mobile menu = full-screen overlay when header is "open" */
@media (max-width: 640px) {
  /* Hide the links by default on phones */
  .site-header.menu-overlay .links {
    position: fixed;
    top: 56px;          /* roughly header height; adjust if needed */
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    padding: 16px;
    background: rgba(0,0,0,0.92);  /* dark overlay so items are readable */
    z-index: 1000;
  .site-header:not(.menu-overlay) .links { display: none !important; }

  }

  /* When header gets .open, show the menu */
  .site-header.menu-overlay.open .links {
    display: block;
  }

  /* Make each link / button tappable */
  .site-header .links a,
  .site-header .links .btn {
    display: block;
    width: 100%;
    padding: 14px 10px;
    margin: 8px 0;
    text-align: left;
    font-size: 18px;
  }

  /* Keep the hamburger above the overlay so it can close the menu */
  .hamburger {
    position: relative;
    z-index: 1001;
  }
}
/* prevent sideways scrolling */
html, body { overflow-x: hidden; }

/* utilities to show/hide per breakpoint */
.hide-desktop { display: none; }
.hide-mobile  { display: initial; }

@media (max-width: 768px) {
  .hide-desktop { display: inline-flex; }
  .hide-mobile  { display: none; }

  /* make the mobile menu a proper off-canvas panel */
  .site-header nav.links{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 85vw;
    max-width: 360px;
    background: var(--paper, #fff);
    transform: translateX(100%);           /* start off screen */
    transition: transform .3s ease;
    padding: 24px 20px;
    overflow-y: auto;
    box-shadow: -12px 0 24px rgba(0,0,0,.15);
    z-index: 1000;
  }

  /* when body has .nav-open, slide it in */
  body.nav-open .site-header nav.links { transform: translateX(0); }

  /* optional: dimmed backdrop behind panel */
  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease;
    z-index: 999;
  }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
}

/* ===== Mobile drawer fix (non-breaking) ===== */
html, body {
  overflow-x: hidden; /* stop horizontal drag */
}

/* Default: nav links visible inline on desktop, become a drawer on mobile */
@media (max-width: 900px) {
  .site-header {
    position: relative;
    z-index: 1001;
  }

  /* Turn the .links nav into a right-side drawer */
  .site-header .links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: 80vw;
    max-width: 360px;
    background: #0e1113;              /* match your header theme */
    transform: translateX(100%);       /* hidden off-canvas by default */
    transition: transform .28s ease;
    padding: 24px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: -8px 0 24px rgba(0,0,0,.4);
  }

  /* Drawer open state */
  .site-header .links.open {
    transform: translateX(0);
  }

  /* Prevent page scroll when drawer open */
  body.menu-open {
    overflow: hidden;
  }

  /* Backdrop behind the drawer */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 1000;
  }
  .nav-backdrop.show {
    opacity: 1;
    visibility: visible;
  }

  /* Keep hamburger tappable above everything */
  .hamburger {
    position: relative;
    z-index: 1002;
  }

  /* Small utility so auth chip can hide/show */
  .hidden { display: none !important; }

  /* Make buttons inside drawer full-width on mobile for easier tap targets */
  .site-header .links .btn,
  .site-header .links a.btn {
    width: 100%;
    text-align: center;
  }
}

body {
  overflow-x: hidden;
}

/* === WOODSHED — Single-System Mobile Drawer Reset (paste at END) === */

/* 1) Disable all overlay/alt systems on phones */
@media (max-width: 900px) {
  /* Any .links-based overlays: off */
  .site-header .links {
    display: none !important;
    position: static !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
    height: auto !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  /* Old body.nav-open system: neutralize */
  body.nav-open .site-header .links { transform: none !important; }
  .nav-backdrop { opacity: 0 !important; visibility: hidden !important; }
}

/* 2) Desktop stays normal */
@media (min-width: 901px) {
  .site-header .links {
    display: flex !important;
    gap: 16px;
    position: static !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
  }
  .hamburger { display: none !important; }
  .mobile-drawer { display: none !important; }
}

/* 3) The ONLY mobile menu = right-side drawer */
.mobile-drawer {
  position: fixed;
  top: 56px;             /* match header height */
  right: 0;
  width: 78vw;           /* panel width */
  max-width: 360px;
  height: calc(100dvh - 56px);
  background: rgba(31,41,55,0.98);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  z-index: 1000;
  transform: translateX(100%);      /* closed by default */
  transition: transform .25s ease;
}

/* Open state: header gets .open (already in your JS) */
.site-header.open .mobile-drawer {
  transform: translateX(0);
}

/* 4) Keep burger above drawer so it can close it */
.hamburger { position: relative; z-index: 1002; }

/* 5) Prevent accidental horizontal scroll */
html, body { overflow-x: hidden; }
