:root {
  --gold: #C5A43C;
  --white: #FFFFFF;
  --accent-gold: #FFD800;
  --badge-bg: rgba(50, 50, 50, 0.6);
  --overlay: rgba(0, 0, 0, 0.45);
  --drawer-bg: #111;            /* Drawer background */
  --drawer-text: #fff;          /* Drawer text color */
}

/* ---------- Utilities ---------- */
[hidden] { display: none !important; }  /* ensure hidden elements don’t block clicks */

/* Prevent background scroll when drawer open */
.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* Global canvas + typography base */
html, body {
  height: 100%;
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  color: #f0f0f0;
  background-color: #0d0d0d; /* darker canvas improves contrast on internal pages */
}

/* ---------- Global Header (hamburger left, Shop Now right) ---------- */
.site-header {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));    /* stretch header */
  z-index: 1001;                                    /* header under drawer/overlay */
  display: flex;
  align-items: center;
  justify-content: space-between;                   /* burger left, button right */
  pointer-events: none;                             /* let clicks pass through header area... */
}

/* ...except on interactive controls */
.site-header .menu-toggle,
.site-header .btn-shop {
  pointer-events: auto;
}

.menu-toggle,
.menu-close {
  appearance: none;
  border: none;
  background: rgba(50, 50, 50, 0.65);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  line-height: 0;
}

.menu-toggle:hover,
.menu-close:hover {
  background: rgba(50, 50, 50, 0.8);
}

.menu-toggle:focus-visible,
.menu-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.icon-burger path,
.menu-close svg path {
  fill: currentColor;
}

/* ---------- Drawer + Overlay ---------- */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(86vw, 320px);
  height: 100vh;
  background: var(--drawer-bg);
  color: var(--drawer-text);
  transform: translateX(-105%);
  transition: transform 220ms ease;
  z-index: 1003; /* drawer ABOVE overlay so links are clickable */
  display: flex;
  flex-direction: column;
}

.drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  padding-top: 8px;
}

.menu-close {
  align-self: flex-end;
  margin-bottom: 8px;
}

.drawer-list {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
}

.drawer-list a {
  display: block;
  padding: 12px 10px;
  text-decoration: none;
  color: var(--drawer-text);
  border-radius: 8px;
}

.drawer-list a:hover,
.drawer-list a:focus {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 1002; /* overlay ABOVE header (1001), BELOW drawer (1003) */
}

/* ---------- Shop Now button ---------- */
.btn-shop {
  display: inline-block;
  background: var(--gold);     /* #C5A43C */
  color: #333333;              /* dark grey text */
  text-decoration: none;
  padding: 10px 58px;          /* comfortable tap size */
  border-radius: 9999px;       /* pill/oval */
  margin-right: 12px;          /* base spacing; increased on desktop */
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.btn-shop:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.btn-shop:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.btn-shop:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(197,164,60,0.45);
}

/* Desktop spacing for header controls */
@media (min-width: 769px) {
  .btn-shop { margin-right: 16px; }  /* a touch more space from right edge */
  .menu-toggle { margin-left: 4px; } /* subtle symmetry on left */
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .drawer { transition: none; }
}

/* ---------- Hero page (index) ---------- */
.bgimg {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('/images/aulwaze_happy.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Brand Badge (desktop bottom-right by default) */
.brand-badge {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: var(--badge-bg);
  padding: 20px 30px;
  border-radius: 40px; /* oval */
  text-align: center;  /* keep text centered in the oval */
  max-width: min(90vw, 520px);
  z-index: 10;
}

/* Backdrop blur only if supported */
@supports (backdrop-filter: blur(2px)) {
  .brand-badge { backdrop-filter: saturate(120%) blur(2px); }
}

.brand-badge h1,
.brand-badge h2 {
  margin: 0;
  font-weight: 400;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-badge h1 {
  font-size: 40px;
  font-weight: 600; /* requested */
}

.brand-badge h2 {
  font-size: 20px;
  margin-top: 6px;
}

/* Brand colors */
.gold  { color: var(--gold); }
.white { color: var(--white); }

/* Bottom-left text (desktop) */
.bottomleft {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: var(--accent-gold);
  font-size: 16px;
  max-width: min(90vw, 520px);
  font-weight: 600;
  z-index: 10;
}
.bottomleft p { margin: 0 0 6px 0; }

/* Very small devices: allow badge text wrap to avoid overflow */
@media (max-width: 360px) {
  .brand-badge h1,
  .brand-badge h2 { white-space: normal; }
}

/* Mobile: stack vertically; badge right, text left (Layout B) */
@media (max-width: 768px) {
  .bgimg {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch; /* allow different horizontal alignment per child */
    gap: 10px;
    padding: 16px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0));
  }

  .btn-shop {
    padding: 12px 18px;        /* slightly taller for thumbs */
    font-weight: 700;
  }

  /* Remove absolute positioning so they can stack */
  .brand-badge,
  .bottomleft {
    position: static;
    max-width: 100%;
    z-index: auto;
  }

  /* Badge aligned to the right; text stays centered inside the oval */
  .brand-badge {
    align-self: flex-end; /* push badge to the right */
    text-align: center;
    padding: 12px 18px;
    border-radius: 30px;
  }
  .brand-badge h1 { font-size: 28px; font-weight: 600; }
  .brand-badge h2 { font-size: 16px; }

  /* Paragraphs below, left-aligned */
  .bottomleft {
    align-self: flex-start;  /* left */
    text-align: left;
    font-size: 14px;
    color: var(--accent-gold);
    font-weight: 800;
  }
  .bottomleft p { margin: 0 0 4px 0; }
}

/* ---------- Internal pages (About, Story, etc.) ---------- */

.page {
  padding-top: 84px; /* space for fixed header */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Generic container with max readable width */
.container {
  width: min(100% - 32px, 1100px);
  margin-inline: auto;
}

/* Page hero strip (subtle) */
.page-hero {
  padding: 48px 0 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.1) 60%, transparent);
}

.page-hero h1 {
  margin: 0 0 8px 0;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--gold);
  font-weight: 600;
}

.page-hero .lead {
  margin: 0;
  font-size: clamp(16px, 2.4vw, 20px);
  color: #EFEFEF; /* brighter subtext for contrast */
  max-width: 70ch;
}

/* Main content */
.page-content {
  padding: 28px 0 60px;
}

/* Readable “prose” defaults (higher contrast on dark) */
.prose {
  font-size: 18px;
  line-height: 1.7;
  color: #E8E8E8; /* brighter, clearer body text */
  max-width: 80ch;
}

.prose h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 28px;
  color: #FFFFFF;
}

.prose h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 22px;
  color: #FFFFFF;
}

.prose p { margin: 0 0 16px 0; }

.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.prose a:hover { opacity: 0.9; }

.prose ul, .prose ol {
  padding-left: 20px;
  margin: 0 0 16px 0;
}
.prose li + li { margin-top: 4px; }

.prose blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: #f7f7f7;
}

.prose .lede { font-size: 1.125rem; line-height: 1.7; letter-spacing: 0.005em; }
.prose .eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: .8rem; opacity: .7; margin-bottom: .25rem; }
.prose .quiet { opacity: .85; }
.prose .divider { border: 0; height: 1px; background: rgba(0,0,0,.08); margin: 2rem 0; }
.prose .pullquote { font-size: 1.1rem; line-height: 1.8; padding: 1rem 1.25rem; border-left: 4px solid var(--gold, #D4AF37); background: rgba(212,175,55,0.06); border-radius: .5rem; }

/* Internal pages: fixed brand badge bottom-right on desktop */
.page-brand-badge {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  background: var(--badge-bg);
  padding: 20px 30px;
  border-radius: 40px;
  text-align: center;
  max-width: min(90vw, 520px);
}

/* Mobile: stack like homepage */
@media (max-width: 768px) {
  .page-brand-badge {
    position: static;
    align-self: flex-end;
    padding: 12px 18px;
    border-radius: 30px;
    margin-bottom: 10px;
  }
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 24px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
}

.site-footer p {
  margin: 0;
  color: #e6e6e6;
  font-size: 14px;
}

/* Mobile tweaks for internal pages */
@media (max-width: 768px) {
  .page { padding-top: 78px; }
  .page-content { padding-bottom: 72px; }
  .prose { font-size: 17px; }
}
