/* Shared base for the luxury samples. Each sample sets its own tokens in styles.css. */
:root {
  --bg: #f4f0e8; --ink: #1c1a17; --muted: #8a8174; --line: rgba(28, 26, 23, .16);
  --dark: #121110; --on-dark: #f4f0e8; --accent: #b08d57;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "Jost", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 80px); --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; }
em { font-style: italic; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
html.menu-open { overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip:focus { left: 16px; }
.label { font: 400 .68rem/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.4rem; }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 2.2rem; border: 1px solid currentColor; background: transparent; color: inherit;
  font: 400 .7rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .4s, color .4s, border-color .4s; }
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font: 400 .68rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; text-decoration: none; position: relative; }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 1px; background: currentColor; transform-origin: right; transition: transform .5s var(--ease); }
.text-link:hover::after { transform: scaleX(0); }

/* Menu toggle + overlay */
.menu-toggle { display: inline-flex; align-items: center; gap: .8rem; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
  font: 400 .68rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; position: relative; z-index: 120; }
.menu-toggle .bars { display: grid; gap: 6px; width: 26px; }
.menu-toggle .bars i { display: block; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.menu-toggle[aria-expanded="true"] .bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  background: var(--bg); color: var(--ink); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.menu.open { opacity: 1; visibility: visible; }
.menu > a { font: 300 clamp(2rem, 5vw, 3.4rem)/1.25 var(--serif); text-decoration: none; padding: 4px 12px; opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s; }
.menu.open > a { opacity: 1; transform: none; }
.menu.open > a:nth-child(2) { transition-delay: .05s; } .menu.open > a:nth-child(3) { transition-delay: .1s; }
.menu.open > a:nth-child(4) { transition-delay: .15s; } .menu.open > a:nth-child(5) { transition-delay: .2s; }
.menu > a:hover { color: var(--accent); }
.menu-foot { position: absolute; bottom: 32px; left: 16px; right: 16px; text-align: center; margin: 0; font-size: .8rem; letter-spacing: .08em; color: var(--muted); }
.menu-foot a { text-decoration: none; display: inline-block; padding: 10px 4px; }
html.menu-open .site-header { color: var(--ink) !important; background: transparent !important; border-color: transparent !important; }
html.menu-open .site-header .wordmark, html.menu-open .site-header .header-cta { visibility: hidden; }

/* Forms: hairline underline fields */
.form { display: grid; gap: 1.4rem; text-align: left; min-width: 0; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.form label { display: grid; gap: .2rem; font: 400 .64rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); min-width: 0; }
.form input, .form select, .form textarea { width: 100%; min-height: 46px; padding: .55em 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent;
  color: inherit; font: 300 1rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; transition: border-color .3s; }
.form select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { color: #111; }
.form textarea { resize: vertical; min-height: 92px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: currentColor; }
.form .invalid { border-bottom-color: #b5442f; }
.form .btn { justify-self: start; margin-top: .6rem; }
.form-note { margin: 0; min-height: 1.2em; font-size: .85rem; color: var(--muted); }
.form-note.ok { color: #4f7a52; } .form-note.err { color: #b5442f; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Gallery strip */
.gallery-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.gallery-head .label { margin: 0; }
.gallery-nav { display: flex; gap: .4rem; }
.gallery-nav button { width: 46px; height: 46px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; font-size: 1rem; transition: border-color .3s; }
.gallery-nav button:hover { border-color: currentColor; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 30vw, 460px); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.gallery::-webkit-scrollbar { display: none; }
.gallery.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery li { scroll-snap-align: start; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1.2s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox { padding: 16px; border: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; color: #f4f0e8; }
.lightbox::backdrop { background: rgba(12, 11, 10, .95); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.lightbox figure { margin: 0; display: grid; gap: 1rem; justify-items: center; min-width: 0; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; }
.lightbox figcaption { font-size: .8rem; letter-spacing: .08em; color: rgba(244, 240, 232, .7); text-align: center; }
.lightbox button { min-width: 48px; min-height: 48px; border: 1px solid rgba(244, 240, 232, .3); background: transparent; color: inherit; cursor: pointer; font: 400 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.lb-close { position: absolute; top: 16px; right: 16px; padding: 0 16px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .form .row { grid-template-columns: 1fr; }
  .gallery { grid-auto-columns: 78%; gap: 14px; }
  .gallery-nav { display: none; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .menu > a { opacity: 1; transform: none; }
}

/* Keep the header (and its Close button) above the open menu */
html.menu-open .site-header { z-index: 130; }
