:root {
  --ivory: #F4F1EB;
  --paper: #FFFBF6;
  --tile: #E7E2D6;
  --ink: #14202A;
  --muted: #3A4550;
  --line: #C9D0D6;
  --blue: #0C6EAD;
  --blue-bright: #0595EC;
  --blue-deep: #0A3A5C;
  --gold: #8A6A1A;
  --gold-line: #C4A035;
  --white: #ffffff;
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --script: "Allura", "Segoe Script", cursive;
  --sticky-h: 92px;
  --max: 1180px;
  --gutter: 22px;
  --btn-h: 54px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.55;
  font-weight: 400;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
::selection { background: var(--blue-deep); color: var(--ivory); }

.skip {
  position: absolute;
  left: 12px;
  top: -56px;
  background: var(--paper);
  padding: 10px 14px;
  z-index: 80;
  font-weight: 600;
}
.skip:focus { top: 8px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.noscript { padding: 28px; text-align: center; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Banner — static, not a marquee */
.announce {
  background: var(--blue-deep);
  color: var(--ivory);
  font-size: 17px;
  line-height: 1.4;
  padding: 10px 20px;
  text-align: center;
}

/* Header */
#topbar { position: sticky; top: 0; z-index: 50; }
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--blue-deep);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 10px 0;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}
.logo img {
  height: 52px;
  width: auto;
  max-width: min(360px, 58vw);
  object-fit: contain;
  background: #0595EC;
  border: 1px solid var(--blue-deep);
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 19px;
  border-bottom: 3px solid transparent;
}
.nav a[aria-current="page"],
.nav a:hover { border-bottom-color: var(--blue-bright); }
.tools { display: flex; align-items: center; gap: 8px; }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}
.lang button {
  background: none;
  border: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 8px;
  font-weight: 700;
  color: var(--muted);
}
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.icon-btn {
  position: relative;
  background: none;
  border: 2px solid var(--ink);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn svg { width: 22px; height: 22px; }
.bag-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.bag-count[hidden] { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 48px;
  height: 48px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--ink);
  width: 100%;
}
.lang-mobile { display: none; }

/* Buttons */
.btn, .btn-row .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-h);
  padding: 12px 26px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  border: 2px solid var(--blue);
  text-align: center;
  line-height: 1.2;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn.ghost, .btn-reserve {
  background: var(--paper);
  color: var(--blue-deep);
  border-color: var(--blue-deep);
}
.btn.ghost:hover, .btn-reserve:hover { background: var(--tile); }
.btn.light {
  background: var(--ivory);
  color: var(--blue-deep);
  border-color: var(--ivory);
}
.btn.light:hover { background: var(--white); }
.btn.full { width: 100%; }
.btn-row, .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.card-actions .btn, .card-actions .btn-reserve { flex: 1 1 140px; }

/* Hero — typographic panel + storefront, not a carousel */
.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1.2fr;
  min-height: min(78vh, 720px);
  background: var(--blue-deep);
  color: var(--ivory);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px var(--gutter) 56px;
  max-width: 560px;
  margin-left: auto;
}
.hero-wordmark {
  font-family: var(--script);
  font-size: clamp(64px, 8vw, 96px);
  line-height: 0.7;
  color: var(--ivory);
}
.hero-wordmark em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 0.72em;
  display: inline;
  letter-spacing: -0.02em;
}
.hero-sub {
  margin-top: 8px;
  font-size: 15px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-line);
}
.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.2;
  margin-top: 28px;
}
.hero-copy .lede {
  margin-top: 16px;
  font-size: 21px;
  color: #E8EEF2;
  max-width: 28ch;
}
.hero-photo {
  position: relative;
  min-height: 320px;
  background: #123;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  position: absolute;
  inset: 0;
}
.hero-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px;
  background: rgba(10, 58, 92, 0.86);
  color: var(--ivory);
  font-size: 16px;
}

/* Sections */
.section { padding: 64px 0; }
.section-head { margin-bottom: 28px; }
.eyebrow, .kicker {
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}
h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; font-weight: 700; }
.lede { font-size: 21px; color: var(--muted); max-width: 46ch; }
.text-link {
  font-weight: 700;
  color: var(--blue-deep);
  text-underline-offset: 4px;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 6px solid var(--blue);
  padding: 28px 24px;
}
.step .num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 10px;
}

/* Visit band on home — photo left, copy right (inverse of hero) */
.visit-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.visit-band figure { margin: 0; background: #123; min-height: 360px; }
.visit-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.visit-band .copy { padding: 56px var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.visit-band figcaption { padding: 10px 16px; font-size: 16px; color: var(--muted); background: var(--tile); }

.about-block { max-width: 46ch; }

/* Dress cards — horizontal, buttons always visible */
.grid { display: grid; gap: 22px; }
.grid.cols-1 { grid-template-columns: 1fr; }
.dress-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(20,32,42,0.04);
}
.dress-card .media { min-height: 240px; }
.dress-card .body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
}
.dress-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.25;
}
.dress-card h3 a { text-decoration: none; }
.dress-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dress-card .meta { color: var(--muted); margin-top: 6px; }
.dress-card .sample {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.dress-card .card-actions { margin-top: auto; padding-top: 16px; }
.media {
  position: relative;
  overflow: hidden;
  background: var(--swatch, var(--tile));
}
.media img.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  position: absolute;
  inset: 0;
}
.media .silhouette { display: none; }
.media.is-fallback .photo { display: none; }
.media.is-fallback .silhouette {
  display: block;
  width: 55%;
  height: auto;
  margin: 18% auto 0;
  position: relative;
  opacity: 0.35;
}
.r34 { aspect-ratio: 3/4; }
.pill {
  display: inline-block;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--ivory);
}
.price, .price-lg { font-weight: 700; margin-top: 6px; }
.price-lg { font-size: 26px; }

/* Shop */
.page-intro { padding: 40px 0 10px; }
.page-intro .lede { margin-top: 12px; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
  align-items: center;
}
.chip, .filters a, .size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
  text-decoration: none;
  font-weight: 600;
}
.chip.is-on, .filters a[aria-current="true"], .size.is-on {
  background: var(--blue-deep);
  color: var(--ivory);
  border-color: var(--blue-deep);
}
.sort-label { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sort-label select {
  min-height: 48px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  min-width: 160px;
}
.filter-block h3 { font-size: 18px; margin: 8px 0 6px; }

/* Product */
.pdp {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  padding: 36px 0 64px;
}
.pdp-info h1 { margin-top: 8px; }
.crumbs { font-size: 18px; margin-bottom: 12px; }
.crumbs a { color: var(--blue-deep); }
.size-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.size { background: var(--paper); }
.field-error, .form-error { color: #8B1E1E; font-weight: 600; min-height: 1.2em; margin-top: 8px; }
.sample-note { margin-top: 12px; color: var(--muted); }
.desc { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.buy-box {
  margin-top: 20px;
  padding: 22px;
  background: var(--ivory);
  border: 2px solid var(--blue-deep);
}
.buy-box h2 { font-size: 26px; margin-bottom: 8px; }

/* Visit */
.visit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 64px;
}
.hours { width: 100%; border-collapse: collapse; font-size: 20px; margin-top: 8px; }
.hours th { text-align: left; font-weight: 600; padding: 8px 16px 8px 0; color: var(--ink); }
.hours td { padding: 8px 0; }
.placeholder-flag {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-deep);
  border: 1px solid var(--blue);
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.map-pending {
  background: var(--tile);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  border: 1px dashed var(--muted);
  color: var(--muted);
  margin-top: 16px;
}
.stack-form { display: grid; gap: 16px; }
.stack-form label { display: grid; gap: 6px; font-weight: 600; }
.stack-form input, .stack-form select, .stack-form textarea {
  min-height: 52px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  width: 100%;
}
.stack-form textarea { min-height: 140px; resize: vertical; }
.radios { display: grid; gap: 10px; margin-top: 8px; }
.radios label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  min-height: 48px;
  padding: 8px 12px;
  border: 2px solid var(--line);
  background: var(--paper);
}
.radios input { width: 22px; height: 22px; accent-color: var(--blue); }

/* Reserve */
.reserve-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding-bottom: 64px;
}
.summary {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
  align-self: start;
}
.summary ul { margin-top: 12px; }
.summary li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.confirm dl { margin: 20px 0; }
.confirm dt { font-weight: 700; margin-top: 12px; }
.confirm dd { margin: 0; }
.code { font-size: 28px; font-weight: 700; letter-spacing: 0.08em; margin-top: 6px; }
.demo-note {
  margin: 20px 0;
  padding: 14px 16px;
  background: var(--tile);
  border-left: 4px solid var(--gold-line);
}

/* Drawer + modal */
.drawer, .modal {
  position: fixed;
  inset: 0;
  z-index: 70;
}
.drawer[hidden], .modal[hidden] { display: none; }
.drawer-backdrop, .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 42, 0.55);
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--paper);
  padding: 24px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(20,32,42,0.15);
}
.drawer-head, .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.line {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.line .media { min-height: 110px; }
.line-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); }
.qty button {
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  font-size: 22px;
}
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.linkish {
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  font-weight: 600;
  color: var(--blue-deep);
}
.bag-foot { margin-top: auto; padding-top: 16px; }
.modal-panel {
  position: relative;
  width: min(560px, calc(100% - 32px));
  margin: 8vh auto;
  background: var(--paper);
  padding: 28px 24px;
  border: 3px solid var(--blue-deep);
  max-height: 86vh;
  overflow: auto;
}

/* Footer — deep blue, inverse of Natalia's cream footer */
#site-footer {
  background: var(--blue-deep);
  color: var(--ivory);
  padding: 56px 0 28px;
  margin-top: 0;
}
#site-footer a { color: var(--ivory); }
#site-footer h2 {
  font-family: var(--script);
  font-weight: 400;
  font-size: 48px;
  line-height: 0.8;
}
#site-footer h2 span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.8em;
}
#site-footer h3 {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--gold-line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr;
  gap: 36px;
}
.foot-grid p { margin-top: 12px; }
.foot-grid li { margin: 8px 0; }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 16px;
}
.empty { padding: 24px 0 64px; }

@media (max-width: 900px) {
  .hero, .visit-band, .pdp, .visit-layout, .reserve-layout, .foot-grid, .steps {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 0; }
  .hero-photo { min-height: 280px; position: relative; }
  .hero-photo img { position: relative; height: 280px; }
  .hero-copy { margin: 0; padding: 36px 22px 40px; max-width: none; }
  .dress-card { grid-template-columns: 1fr; }
  .dress-card .media { min-height: 0; aspect-ratio: 3/4; max-height: 420px; }
  .sort-label { margin-left: 0; width: 100%; }
  .visit-band img { height: 280px; }
}

@media (max-width: 760px) {
  body { font-size: 19px; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 24px;
    border-bottom: 3px solid var(--blue-deep);
    gap: 0;
  }
  body.menu-open .nav { display: flex; }
  .nav a { min-height: 52px; border-bottom: 1px solid var(--line); }
  .lang-mobile { display: block; padding: 8px 0; }
  .lang-desktop { display: none; }
  .logo img { height: 42px; }
  .header-row { min-height: 72px; }
}

#site-footer .placeholder-flag {
  color: var(--ivory);
  border-color: var(--gold-line);
}
#site-footer .hours th,
#site-footer .hours td { color: var(--ivory); }
#site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .hero-photo { order: -1; }
}
@media (max-width: 760px) {
  .logo img { height: 36px; max-width: min(220px, 48vw); }
}
