/* ==========================================================================
   Gatsby Nights — foundation
   Design system: art-deco influenced "supper club" look.
   Palette: deep petrol ink + brushed brass + champagne ivory + smoke grey.
   Mobile-first, no external fonts or libraries, no network requests.
   ========================================================================== */

:root {
  --ink:        #06181B;
  --ink-2:      #0A2227;
  --ink-3:      #113037;
  --ink-4:      #1B4149;
  --brass:      #C8A24C;
  --brass-lt:   #E2C88C;
  --brass-dk:   #8E6F2A;
  --champagne:  #F5EFE2;
  --champagne-2:#EADFC9;
  --smoke:      #9DB0B3;
  --smoke-dk:   #5F7478;
  --white:      #FFFDF8;

  --line-brass: rgba(200, 162, 76, .30);
  --line-dark:  rgba(6, 24, 27, .14);
  --line-light: rgba(245, 239, 226, .16);

  --font-display: "Didot", "Bodoni MT", "Hoefler Text", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shell: 1240px;
  --gut: 20px;
  --radius: 2px;
  --t: 320ms cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--champagne);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brass-lt); text-decoration: none; }
a:hover, a:focus-visible { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .005em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.1rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.45rem); }
h4 { font-size: 1.06rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .02em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.15em; }
li { margin-bottom: .45em; }

strong { font-weight: 600; color: var(--white); }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .9em;
  background: rgba(200, 162, 76, .12);
  border: 1px solid var(--line-brass);
  border-radius: var(--radius);
  padding: .08em .34em;
  color: var(--brass-lt);
}

hr {
  border: 0;
  height: 1px;
  background: var(--line-brass);
  margin: 2.6rem 0;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 50%; top: -60px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--brass);
  color: var(--ink);
  padding: .7rem 1.4rem;
  font-weight: 600;
  transition: top var(--t);
}
.skip:focus { top: 8px; text-decoration: none; }

/* ---------- Layout shell ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: .73rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 .9rem;
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--smoke);
  max-width: 62ch;
}

.lede strong { color: var(--champagne); }

/* Deco rule used as a divider motif */
.deco-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 1.6rem;
}
.deco-rule::before,
.deco-rule::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  flex: 1;
}
.deco-rule span {
  width: 9px; height: 9px;
  border: 1px solid var(--brass);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .78rem 1.5rem;
  font-family: var(--font-body);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn:hover, .btn:focus-visible { text-decoration: none; transform: translateY(-1px); }

.btn--brass {
  background: linear-gradient(180deg, var(--brass-lt), var(--brass));
  color: var(--ink);
}
.btn--brass:hover, .btn--brass:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--brass-lt);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: rgba(200, 162, 76, .14);
  color: var(--white);
}

.btn--lg { min-height: 56px; padding: .95rem 2rem; }
.btn--block { width: 100%; }

.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--brass-lt);
  cursor: pointer;
  text-align: left;
}
.linklike:hover, .linklike:focus-visible { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Compliance chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips li {
  margin: 0;
  font-size: .71rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--smoke);
  position: relative;
  padding-left: 14px;
}
.chips li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 5px; height: 5px;
  border: 1px solid var(--brass);
  transform: rotate(45deg);
}
.chips li:first-child { color: var(--brass-lt); font-weight: 700; }
.chips--sm li { font-size: .67rem; }

.strip {
  background: #041013;
  border-bottom: 1px solid var(--line-light);
  padding: 9px 0;
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
}
.strip__link {
  font-size: .71rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* ---------- Disclaimer blocks ---------- */
.disclaimer {
  border-left: 2px solid var(--brass);
  background: rgba(200, 162, 76, .07);
  padding: .85rem 1.1rem;
  font-size: .9rem;
  color: var(--smoke);
  margin: 1.6rem 0;
}
.disclaimer--inline { margin: 1.4rem 0 0; }
.section--light .disclaimer { color: var(--smoke-dk); background: rgba(6, 24, 27, .05); }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 24, 27, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brandmark { display: flex; align-items: center; gap: 12px; }
.brandmark:hover { text-decoration: none; }
.brandmark__glyph {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  color: var(--brass-lt);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .06em;
  position: relative;
}
.brandmark__glyph::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(200, 162, 76, .35);
}
.brandmark__text { display: flex; flex-direction: column; }
.brandmark__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--champagne);
  line-height: 1.1;
}
.brandmark__kicker {
  font-size: .64rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--smoke-dk);
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 1px solid var(--line-brass);
  border-radius: var(--radius);
  color: var(--champagne);
  padding: .55rem .8rem;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.burger__bars { position: relative; width: 18px; height: 2px; background: var(--brass); display: block; }
.burger__bars::before, .burger__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--brass);
  transition: transform var(--t), opacity var(--t);
}
.burger__bars::before { top: -6px; }
.burger__bars::after { top: 6px; }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: #041013;
  border-bottom: 1px solid var(--line-brass);
  padding: 1rem var(--gut) 1.6rem;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.primary-nav.is-open { display: block; }

.primary-nav__list { list-style: none; margin: 0; padding: 0; }
.primary-nav__item {
  margin: 0;
  border-bottom: 1px solid var(--line-light);
  position: relative;
}
.primary-nav__item > a {
  display: block;
  padding: .85rem 2.6rem .85rem 0;
  color: var(--champagne);
  font-size: .95rem;
  letter-spacing: .04em;
}
.primary-nav__item > a.is-active { color: var(--brass-lt); }

.subtoggle {
  position: absolute;
  right: 0; top: .5rem;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--line-brass);
  cursor: pointer;
}
.subtoggle::before, .subtoggle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--brass);
  transition: opacity var(--t);
}
.subtoggle::before { width: 11px; height: 1px; transform: translate(-50%, -50%); }
.subtoggle::after { width: 1px; height: 11px; transform: translate(-50%, -50%); }
.subtoggle[aria-expanded="true"]::after { opacity: 0; }

.subnav {
  list-style: none;
  margin: 0;
  padding: 0 0 .7rem .9rem;
  display: none;
  border-left: 1px solid var(--line-brass);
}
.subnav.is-open { display: block; }
.subnav li { margin: 0; }
.subnav a {
  display: block;
  padding: .55rem 0;
  font-size: .88rem;
  color: var(--smoke);
}
.subnav a:hover, .subnav a.is-active { color: var(--brass-lt); }

.primary-nav__tail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.3rem;
}
.masthead__phone {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--champagne);
}

/* ---------- Pre-footer ---------- */
.prefooter {
  background:
    linear-gradient(rgba(6, 24, 27, .88), rgba(6, 24, 27, .94)),
    url("../img/pattern-deco-fan.png") center / 420px repeat;
  border-top: 1px solid var(--line-brass);
  padding: clamp(3rem, 7vw, 5.2rem) 0;
}
.prefooter__inner { display: grid; gap: 2.2rem; }
.prefooter__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.prefooter__contacts {
  list-style: none;
  margin: .6rem 0 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.prefooter__contacts li { margin-bottom: .3em; }

/* ---------- Footer ---------- */
.footer {
  background: #041013;
  border-top: 1px solid var(--line-light);
  padding: clamp(2.6rem, 5vw, 4rem) 0 2rem;
  font-size: .9rem;
}
.footer__grid { display: grid; gap: 2.2rem; }
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--champagne);
  margin: 0 0 .5rem;
}
.footer__line { color: var(--smoke); }
.footer__age {
  display: inline-block;
  border: 1px solid var(--brass);
  color: var(--brass-lt);
  padding: .15rem .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0 0 1rem;
}
.footer__h {
  font-family: var(--font-body);
  font-size: .73rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 .9rem;
}
.footer__h--spaced { margin-top: 1.8rem; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: .5em; }
.footer__list a, .footer__list .linklike { color: var(--smoke); font-size: .89rem; }
.footer__list a:hover, .footer__list .linklike:hover { color: var(--brass-lt); }

.footer__meta { list-style: none; margin: 0; padding: 0; }
.footer__meta li {
  display: grid;
  gap: 1px;
  padding: .45rem 0;
  border-bottom: 1px dashed var(--line-light);
  color: var(--champagne);
  font-size: .87rem;
}
.footer__meta span {
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--smoke-dk);
}

.footer__base {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-brass);
}
.footer__note { color: var(--smoke); font-size: .85rem; }
.footer__copy { color: var(--smoke-dk); font-size: .8rem; margin: 0; }
.footer__copy .linklike { font-size: .8rem; }

/* ---------- Forms ---------- */
.form__row { margin-bottom: 1.15rem; }
.form__label {
  display: block;
  font-size: .73rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: .45rem;
}
.req { color: var(--brass-lt); }
.opt { color: var(--smoke-dk); letter-spacing: .04em; text-transform: none; }

.form__input {
  width: 100%;
  min-height: 52px;
  background: rgba(4, 16, 19, .72);
  border: 1px solid var(--line-brass);
  border-radius: var(--radius);
  color: var(--champagne);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .8rem .95rem;
  transition: border-color var(--t), background var(--t);
}
.form__input:focus {
  border-color: var(--brass-lt);
  background: rgba(4, 16, 19, .95);
  outline: none;
  box-shadow: 0 0 0 2px rgba(200, 162, 76, .22);
}
textarea.form__input { min-height: 110px; resize: vertical; }
select.form__input { appearance: none; background-image: none; }
.form__input::placeholder { color: var(--smoke-dk); }
.form__input.has-error { border-color: #D98A6A; }

.form__msg { color: #E7A98C; font-size: .83rem; margin: .4rem 0 0; min-height: 0; }
.form__msg:empty { display: none; }
.form__hint { color: var(--smoke-dk); font-size: .82rem; margin: .4rem 0 0; }
.form__fine { color: var(--smoke-dk); font-size: .8rem; margin: 1rem 0 0; }

.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__consents {
  border: 1px solid var(--line-brass);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem .5rem;
  margin: 1.6rem 0;
}
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 1rem;
  font-size: .9rem;
  color: var(--smoke);
  cursor: pointer;
}
.check input {
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--brass);
  cursor: pointer;
}
.check.has-error span { color: #E7A98C; }

.alert {
  border: 1px solid #D98A6A;
  background: rgba(217, 138, 106, .1);
  padding: .9rem 1.1rem;
  margin-bottom: 1.6rem;
  font-size: .9rem;
}

/* ---------- Cookie consent layer ---------- */
.cookiebar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  background: #041316;
  border-top: 2px solid var(--brass);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, .5);
  padding: 1.2rem var(--gut);
  max-height: 72vh;
  overflow-y: auto;
}
.cookiebar__inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  gap: 1.2rem;
}
.cookiebar__h {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}
.cookiebar__text p { font-size: .86rem; color: var(--smoke); }
.cookiebar__links { font-size: .8rem; margin: .6rem 0 0; }
.cookiebar__actions { display: grid; gap: 10px; }
.cookiebar__actions .btn { width: 100%; }

.sheet { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: var(--gut); }

/* The consent layer is hidden with the hidden attribute. These author-level rules
   are required because .sheet sets display:grid, which would otherwise beat the
   user-agent rule for [hidden]. */
.cookiebar[hidden], .sheet[hidden] { display: none !important; }

.sheet__backdrop { position: absolute; inset: 0; background: rgba(2, 10, 12, .78); border: 0; }
.sheet__panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #05171B;
  border: 1px solid var(--brass);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border-bottom: 1px solid var(--line-brass);
}
.sheet__head h2 { margin: 0; font-size: 1.3rem; }
.sheet__close {
  background: none;
  border: 1px solid var(--line-brass);
  color: var(--champagne);
  width: 40px; height: 40px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.sheet__body { padding: 1.2rem 1.3rem; overflow-y: auto; font-size: .9rem; color: var(--smoke); }
.sheet__foot {
  display: grid;
  gap: 10px;
  padding: 1.1rem 1.3rem;
  border-top: 1px solid var(--line-brass);
  background: #041316;
}
.sheet__fine { font-size: .81rem; color: var(--smoke-dk); margin-top: 1.2rem; }

.optrow {
  display: grid;
  gap: .8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-light);
}
.optrow__text h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 600; color: var(--champagne); margin: 0 0 .35rem; }
.optrow__text p { font-size: .85rem; margin: 0; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 44px; height: 24px; }
.switch span {
  width: 46px; height: 26px;
  border: 1px solid var(--brass);
  background: rgba(200, 162, 76, .1);
  position: relative;
  flex: 0 0 auto;
  transition: background var(--t);
}
.switch span::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--brass);
  transition: transform var(--t);
}
.switch input:checked + span { background: rgba(200, 162, 76, .3); }
.switch input:checked + span::after { transform: translateX(20px); background: var(--brass-lt); }
.switch input:focus-visible + span { outline: 2px solid var(--brass-lt); outline-offset: 2px; }
.switch em {
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--smoke);
}
.switch--locked { cursor: default; }
.switch--locked span { opacity: .55; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 680px) {
  :root { --gut: 28px; }
  .prefooter__actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .prefooter__contacts { width: 100%; }
  .cookiebar__actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet__foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .optrow { grid-template-columns: 1fr auto; align-items: center; gap: 1.6rem; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem; }
}

@media (min-width: 980px) {
  .burger { display: none; }
  .primary-nav {
    display: flex !important;
    position: static;
    align-items: center;
    justify-content: flex-end;
    gap: 1.6rem;
    background: none;
    border: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
    flex: 1;
  }
  .primary-nav__list { display: flex; align-items: center; gap: .2rem; }
  .primary-nav__item { border: 0; }
  .primary-nav__item > a {
    padding: .5rem .62rem;
    font-size: .82rem;
    letter-spacing: .09em;
    text-transform: uppercase;
  }
  .primary-nav__item.has-sub > a { padding-right: 1.3rem; }
  .subtoggle {
    right: .25rem; top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    border: 0;
    pointer-events: none;
  }
  .subtoggle::before { width: 8px; }
  .subtoggle::after { height: 8px; }
  .primary-nav__item.has-sub:hover .subtoggle::after,
  .primary-nav__item.has-sub:focus-within .subtoggle::after { opacity: 0; }
  .subnav {
    display: block;
    position: absolute;
    top: 100%; left: -.4rem;
    min-width: 248px;
    background: #041316;
    border: 1px solid var(--line-brass);
    border-left: 1px solid var(--line-brass);
    padding: .5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity var(--t), transform var(--t), visibility var(--t);
    box-shadow: 0 22px 46px rgba(0, 0, 0, .45);
  }
  .primary-nav__item.has-sub:hover .subnav,
  .primary-nav__item.has-sub:focus-within .subnav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .subnav a { padding: .55rem 1.1rem; }
  .subnav a:hover { background: rgba(200, 162, 76, .1); }
  .primary-nav__tail { flex-direction: row; align-items: center; gap: 1.1rem; margin: 0; }
  .prefooter__inner { grid-template-columns: 1.35fr .9fr; align-items: end; gap: 3rem; }
  .footer__grid { grid-template-columns: 1.3fr .85fr .85fr 1.15fr; }
  .footer__base { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; }
  .cookiebar__inner { grid-template-columns: 1.7fr .9fr; align-items: center; gap: 2.4rem; }
  .cookiebar__actions { grid-template-columns: 1fr; }
}

@media (min-width: 1200px) {
  .primary-nav__item > a { font-size: .84rem; padding: .5rem .8rem; }
}
