/* ==========================================================================
   Cookie Moments — base styles (loaded on every page)
   ========================================================================== */

:root {
  --gold: #C8AC6E;        /* buttons only */
  --cocoa: #2A1A14;       /* dark sections, text */
  --cocoa-deep: #1E120E;  /* intro + footer */
  --pink: #F4C9C3;        /* accents on dark backgrounds */
  --rose: #A23B4C;        /* accents on light backgrounds */
  --rose-dark: #7E2C3A;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #FFFFFF;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--cocoa);
}

/* :where() keeps these at zero specificity so the section styles always win */
:where(a) {
  color: var(--rose);
}

:where(a):hover {
  color: var(--rose-dark);
}

:where(section[id]) {
  scroll-margin-top: 112px;
}

[hidden] {
  display: none !important;
}

button:disabled {
  opacity: 0.35;
  cursor: default;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Mobile menu (900px and below): floating menu button + slide-in drawer
   The drawer is built by js/site.js from the page's own menu links.
   -------------------------------------------------------------------------- */
.menu-btn {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #4A3229;
  background: transparent;
  color: #FFFFFF;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.drawer,
.drawer-scrim {
  display: none;
}

@media (max-width: 900px) {
  /* No bar on phones/tablets: just a floating hamburger, top-right */
  html .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none; /* taps go through the empty strip to the page */
  }

  .site-header .header-inner {
    justify-content: flex-end;
    flex-wrap: nowrap;
    padding: 14px 16px;
  }

  .site-header .brand {
    display: none;
  }

  .site-header .menu-btn {
    display: inline-flex;
    pointer-events: auto;
    background: rgba(42, 26, 20, 0.85);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }

  /* The desktop row of links is replaced by the drawer */
  .site-header .site-nav {
    display: none;
  }

  /* Dark overlay behind the open drawer */
  .drawer-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(18, 10, 7, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  }

  .drawer-scrim.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease;
  }

  /* The drawer: slides in from the left */
  .drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    width: min(84vw, 340px);
    padding: calc(24px + env(safe-area-inset-top, 0px)) 28px calc(28px + env(safe-area-inset-bottom, 0px));
    background: var(--cocoa-deep);
    color: #F4E6E1;
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.35);
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.4s;
  }

  .drawer.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .drawer-close {
    position: absolute;
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: 14px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: #F4E6E1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  /* Logo at the top, like the footer */
  .drawer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    margin: 32px 0 8px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(200, 172, 110, 0.25);
  }

  .drawer-logo {
    width: 150px;
    height: auto;
    display: block;
  }

  .drawer-name {
    font-family: 'Pinyon Script', cursive;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.1;
    margin-top: 8px;
    color: #C5A96D;
  }

  .drawer-tagline {
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1;
    margin-top: -6px;
    color: #C5A96D;
  }

  /* Menu links */
  .drawer-nav {
    display: flex;
    flex-direction: column;
  }

  .drawer-link {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #F4E6E1;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
  }

  .drawer-link:hover,
  .drawer-link:focus-visible {
    color: #C5A96D;
  }

  /* Instagram at the bottom */
  .drawer-social {
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #C5A96D;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }

  .drawer-social:hover {
    color: #F4E6E1;
  }

  /* Stop the page scrolling behind the open drawer */
  html.drawer-open,
  html.drawer-open body {
    overflow: hidden;
  }
}

/* --------------------------------------------------------------------------
   Typography: no orphans
   -------------------------------------------------------------------------- */
h1, h2, h3, blockquote {
  text-wrap: balance;   /* headings: lines of similar length */
}

p, li, dd, figcaption {
  text-wrap: pretty;    /* paragraphs: never leave one word alone on the last line */
}

/* --------------------------------------------------------------------------
   Reduced motion: no animations, the page still works the same way
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}


/* Menu links: stop with the section's content just below the menu bar */
.gallery,
.classes,
.faq {
  scroll-margin-top: 22px;
}

/* Hide the menu button while the drawer is open (phones/tablets) */
@media (max-width: 900px) {
  .site-header .menu-btn {
    transition: opacity 0.25s ease;
  }
  html.drawer-open .site-header .menu-btn {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  }
}

/* Phones and tablets have no top bar, so sections land flush with the top */
@media (max-width: 900px) {
  .gallery,
  .classes,
  .faq {
    scroll-margin-top: 0;
  }
}

/* Footer logo (all pages): links to the homepage, half size */
.footer-home {
  text-decoration: none;
}
.footer .footer-logo {
  height: 115px;
}
.footer .footer-txt {
  font-size: 24px;
  margin-top: 2px;
}
.footer .footer-eyebrow {
  font-size: 5px;
  margin-top: -5px;
}
@media (max-width: 600px) {
  .footer .footer-logo {
    height: 80px;
  }
}

/* Phone footer: centred logo, three link columns, centred bottom line */
@media (max-width: 600px) {
  body .footer {
    padding: 56px 20px 36px;
  }
  .footer .footer-stack {
    gap: 40px;
  }
  .footer .footer-row {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .footer .footer-stack-2 {
    flex: 0 0 auto;
    align-items: center;
  }
  .footer .footer-stack-3 {
    align-self: center;
    margin-bottom: 0;
  }
  .footer .footer-row-2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    text-align: center;
  }
  .footer .footer-nav,
  .footer .footer-stack-4 {
    align-items: center;
    gap: 10px;
    font-size: 14px;
  }
  .footer .footer-eyebrow-2 {
    font-size: 11px;
    letter-spacing: 0.12em;
  }
  .footer .footer-row-3 {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
}


.footer-row-3 a { color: inherit; text-decoration: none; }
.footer-row-3 a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }