/* ==========================================================================
   BasQé — Basque cheesecake, Bondi
   Palette "Donostia Blue" · Archivo · zero radius · 2px rules
   ========================================================================== */

/* — Fonts (Archivo variable, self-hosted) — */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* — Tokens — */
:root {
  --blue: #1D4ED8;
  --yellow: #FFD24C;
  --white: #FFFFFF;
  --brown: #2E1D14;
  --brown-muted: #6B5D55;
  --disabled-bg: #F3F1EF;
  --disabled-fg: #9A8F88;
  --font: 'Archivo', system-ui, sans-serif;
  --edge: clamp(20px, 5vw, 72px);
  --section-pad: clamp(48px, 8vw, 96px);
  --rule: 2px solid var(--brown);
}

/* — Base — */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0; background: var(--white); color: var(--brown);
  font-family: var(--font); font-size: 15px; line-height: 1.55; font-weight: 400;
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 8px; }
p { margin: 0 0 12px; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--brown); }
img { display: block; max-width: 100%; }
button { font-family: var(--font); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--blue) 30%, transparent); }
[hidden] { display: none !important; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* — Shared bits — */
.label-caps { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.display-h2 { margin: 0; font-size: clamp(40px, 7vw, 72px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 800; }
.section { max-width: 1320px; width: 100%; margin: 0 auto; padding: var(--section-pad) var(--edge); }
.grid-ruled { display: grid; gap: 2px; background: var(--brown); border: var(--rule); }

/* — Nav — */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 12px var(--edge); background: var(--white); border-bottom: var(--rule);
}
.nav-brand { margin-right: auto; font-weight: 800; font-size: 26px; letter-spacing: -0.04em; color: var(--blue); text-decoration: none; }
.nav-brand:hover { color: var(--blue); }
.nav-brand-sub { color: var(--brown); font-size: 13px; letter-spacing: 1.3px; text-transform: uppercase; }
.nav-links { display: none; gap: 24px; font-size: 14px; font-weight: 600; }
.nav-links a { color: var(--brown); text-decoration: none; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-order {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 0;
  background: var(--blue); color: var(--white); font: 800 15px var(--font); cursor: pointer;
}
.nav-order:hover { background: var(--brown); }
.nav-count { background: var(--yellow); color: var(--brown); padding: 2px 7px; font-size: 13px; }

/* — Hero — */
.hero { background: var(--white); color: var(--brown); border-bottom: var(--rule); }
.hero-grid {
  max-width: 1320px; margin: 0 auto; padding: clamp(28px, 6vw, 72px) var(--edge) 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 5vw, 64px); align-items: end;
}
.hero-media { position: relative; width: 100%; order: 2; align-self: center; padding-bottom: clamp(28px, 6vw, 72px); }
.hero-img { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.hero-badge {
  position: absolute; top: 6%; right: 0; background: var(--brown); color: var(--yellow);
  padding: 10px 14px; font-weight: 800; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; pointer-events: none;
}
.hero-copy { display: flex; flex-direction: column; gap: 20px; padding-bottom: clamp(28px, 6vw, 72px); }
.hero-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-title { margin: 0 0 0 -0.06em; font-size: clamp(72px, 11vw, 150px); line-height: 0.86; letter-spacing: -0.06em; font-weight: 800; color: var(--blue); }
.hero-tagline { margin: 0; font-size: clamp(26px, 4.4vw, 44px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; max-width: 14ch; }
.hero-sub { margin: 0; font-size: 17px; line-height: 1.6; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-hero-primary {
  min-height: 52px; min-width: 220px; padding: 0 20px; border: 2px solid var(--blue); border-radius: 0;
  background: var(--blue); color: var(--white); font: 800 17px var(--font); text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.btn-hero-primary:hover { background: var(--brown); border-color: var(--brown); }
.btn-hero-primary .arrow { color: var(--yellow); }
.btn-hero-outline {
  min-height: 52px; padding: 0 20px; border: var(--rule); color: var(--brown); font-weight: 800; font-size: 17px;
  text-decoration: none; display: flex; align-items: center;
}
.btn-hero-outline:hover { background: var(--yellow); color: var(--brown); }

/* — Marquee — */
.marquee {
  background: var(--yellow); color: var(--brown); border-bottom: var(--rule); overflow: hidden; padding: 14px 0;
  font-weight: 800; font-size: 20px; letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap;
}
.marquee-track { display: inline-flex; animation: bq-marq 28s linear infinite; }
.marquee-track span { white-space: pre; }
@keyframes bq-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* — Cakes — */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head p { margin: 0; max-width: 36ch; font-size: 16px; line-height: 1.6; }
.products { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.card { background: var(--white); display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--yellow); border-bottom: var(--rule); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
  position: absolute; top: 0; left: 0; background: var(--blue); color: var(--white); padding: 8px 12px;
  font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; line-height: 1.2; pointer-events: none;
}
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card-title { margin: 0; font-size: 32px; letter-spacing: -0.03em; font-weight: 800; }
.card-price { font-size: 28px; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; }
.card-desc { margin: 0; font-size: 16px; line-height: 1.55; flex: 1; }
.card-note { font-size: 13px; line-height: 1.4; }
.base-picker { display: flex; flex-direction: column; gap: 8px; }
.base-options { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--brown); border: var(--rule); }
.base-opt {
  min-height: 64px; padding: 10px 12px; border: 0; border-radius: 0; background: var(--white); color: var(--brown);
  font-family: var(--font); text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.base-opt.is-sel { background: var(--blue); color: var(--white); }
.base-opt-label { font-weight: 800; font-size: 16px; }
.base-opt-note { font-size: 13px; line-height: 1.3; }
.btn-add {
  min-height: 52px; padding: 0 18px; border: var(--rule); border-radius: 0; background: var(--brown); color: var(--yellow);
  font: 800 16px var(--font); text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.btn-add:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.stepper-lg { display: grid; grid-template-columns: 52px 1fr 52px; border: var(--rule); min-height: 52px; }
.stepper-lg button { border: 0; border-radius: 0; background: var(--white); color: var(--brown); font: 800 22px var(--font); cursor: pointer; }
.stepper-lg button:first-child { border-right: var(--rule); }
.stepper-lg button:last-child { border-left: var(--rule); }
.stepper-lg button:hover { background: var(--yellow); }
.stepper-lg .qty { display: flex; align-items: center; padding: 0 16px; font-weight: 800; font-size: 16px; background: var(--yellow); }

/* — Order — */
.order { background: var(--yellow); border-top: var(--rule); border-bottom: var(--rule); scroll-margin-top: 70px; }
.order-inner { max-width: 1320px; margin: 0 auto; padding: var(--section-pad) var(--edge); }
.order .display-h2 { margin: 0 0 8px; }
.order-lead { margin: 0 0 32px; font-size: 16px; line-height: 1.6; max-width: 48ch; }
.confirm {
  background: var(--blue); color: var(--white); border: var(--rule); padding: clamp(24px, 5vw, 48px);
  display: flex; flex-direction: column; gap: 16px; max-width: 720px;
}
.confirm-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.confirm-title { margin: 0; font-size: clamp(32px, 5vw, 52px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--yellow); }
.confirm-text { margin: 0; font-size: 17px; line-height: 1.6; }
.btn-reset {
  align-self: flex-start; min-height: 48px; padding: 0 18px; border: 2px solid var(--white); border-radius: 0;
  background: transparent; color: var(--white); font: 800 15px var(--font); cursor: pointer;
}
.btn-reset:hover { background: var(--white); color: var(--blue); }
.order-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.panel { background: var(--white); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel-details { gap: 14px; }
.panel-dark { background: var(--brown); color: var(--white); gap: 14px; }
.step-label { color: var(--blue); }
.panel-dark .step-label { color: var(--yellow); }

/* sizes accordion */
.sizes { display: flex; flex-direction: column; gap: 16px; }
.size-box { border: var(--rule); }
.size-head {
  width: 100%; min-height: 64px; padding: 12px 16px; border: 0; border-radius: 0; background: var(--white); color: var(--brown);
  font-family: var(--font); text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.size-head.is-open { background: var(--blue); color: var(--white); }
.size-head-text { display: flex; flex-direction: column; gap: 4px; line-height: 1.2; }
.size-name { display: block; font-weight: 800; font-size: 18px; line-height: 1.2; white-space: nowrap; }
.size-meta { display: block; font-size: 14px; line-height: 1.2; }
.size-right { display: flex; align-items: center; gap: 10px; }
.size-count { font-size: 13px; font-weight: 800; }
.size-icon { font-size: 24px; font-weight: 800; line-height: 1; }
.variant { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: var(--rule); background: var(--white); }
.variant-text { display: flex; flex-direction: column; gap: 2px; }
.variant-name { font-weight: 800; font-size: 16px; }
.variant-note { font-size: 13px; }
.stepper { flex: none; display: grid; grid-template-columns: 44px 40px 44px; border: var(--rule); height: 44px; background: var(--white); }
.stepper button { border: 0; border-radius: 0; background: var(--white); color: var(--brown); font: 800 20px var(--font); cursor: pointer; }
.stepper button:hover { background: var(--yellow); }
.stepper .qty { display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--brown); border-left: var(--rule); border-right: var(--rule); }

/* calendar */
.datepicker { display: flex; flex-direction: column; }
.date-btn {
  min-height: 56px; padding: 0 16px; border: var(--rule); border-radius: 0; background: var(--white); color: var(--brown);
  font: 800 17px var(--font); text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.date-btn:hover { border-color: var(--blue); }
.date-btn-label { display: flex; align-items: center; gap: 10px; }
.date-btn-label img { width: 20px; height: 20px; }
.date-btn-icon { font-size: 22px; line-height: 1; }
.cal { border: var(--rule); border-top: 0; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cal-nav {
  width: 44px; height: 44px; border: var(--rule); border-radius: 0; background: var(--white); color: var(--brown);
  font: 800 18px var(--font); cursor: pointer;
}
.cal-nav:hover { background: var(--yellow); }
.cal-nav:disabled { opacity: 0.35; }
.cal-month { font-weight: 800; font-size: 17px; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-week { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.cal-day {
  height: 44px; padding: 0 0 0 8px; border: var(--rule); border-radius: 0; background: var(--white); color: var(--brown);
  font: 800 15px var(--font); text-align: left; cursor: pointer;
}
.cal-day:hover { border-color: var(--blue); }
.cal-day.is-dis { background: var(--disabled-bg); color: var(--disabled-fg); border-color: var(--disabled-bg); cursor: not-allowed; }
.cal-day.is-dis:hover { border-color: var(--blue); }
.cal-day.is-sel { background: var(--blue); color: var(--white); border-color: var(--blue); }
.cal-day.is-blank { visibility: hidden; background: var(--white); border-color: var(--white); cursor: default; }
.pickup-note { margin: 0; font-size: 14px; line-height: 1.5; }

/* details */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input {
  min-height: 48px; padding: 0 14px; border: var(--rule); border-radius: 0; font: 400 16px var(--font);
  color: var(--brown); background: var(--white); outline: none;
}
.field textarea {
  min-height: 80px; padding: 10px 14px; border: var(--rule); border-radius: 0; font: 400 16px/1.45 var(--font);
  color: var(--brown); background: var(--white); resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.field-note { font-size: 12px; font-weight: 400; }

/* pay */
.summary { display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.5; flex: 1; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--white); padding-bottom: 8px; }
.summary-row strong { font-weight: 800; text-align: right; }
.summary-total { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-top: 4px; }
.summary-total strong { font-weight: 800; font-size: 32px; color: var(--yellow); letter-spacing: -0.02em; }
.btn-pay {
  min-height: 56px; padding: 0 20px; border: 0; border-radius: 0; background: var(--brown-muted); color: var(--white);
  font: 800 18px var(--font); text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.btn-pay.is-ready { background: var(--yellow); color: var(--brown); }
.pay-note { font-size: 13px; line-height: 1.5; }
.pay-error { margin: 0; color: #ffd9d9; font-size: 14px; line-height: 1.45; }

/* — FAQ — */
.faq { scroll-margin-top: 70px; }
.faq .display-h2 { margin: 0 0 32px; }
.faq-list { border-top: var(--rule); }
.faq-item { border-bottom: var(--rule); }
.faq-q {
  width: 100%; min-height: 64px; padding: 16px 0; border: 0; border-radius: 0; background: transparent; color: var(--brown);
  font: 800 clamp(19px, 2.4vw, 24px)/1.25 var(--font); letter-spacing: -0.01em; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q:hover { color: var(--blue); }
.faq-icon {
  flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--yellow); color: var(--brown); font-size: 24px; line-height: 1;
}
.faq-item.is-open .faq-icon { background: var(--blue); color: var(--white); }
.faq-a { margin: 0; padding: 0 56px 24px 0; font-size: 17px; line-height: 1.6; max-width: 60ch; }
.faq-more { margin: 24px 0 0; font-size: 17px; line-height: 1.6; }
.faq-more a { font-weight: 800; }

/* — Checkout thanks — */
.thanks-main { flex: 1; background: var(--yellow); border-bottom: var(--rule); padding: var(--section-pad) var(--edge); }
.thanks-card {
  max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 48px); border: var(--rule);
  background: var(--blue); color: var(--white); display: flex; flex-direction: column; gap: 18px;
}
.thanks-card .label-caps { color: var(--yellow); }
.thanks-card .confirm-title { color: var(--yellow); }
.thanks-card .confirm-text { margin: 0; }
.thanks-instagram { color: var(--white); font-size: 18px; font-weight: 800; }
.thanks-instagram:hover { color: var(--yellow); }
.thanks-home {
  align-self: flex-start; min-height: 48px; padding: 12px 18px; border: 2px solid var(--white);
  color: var(--white); font-weight: 800; text-decoration: none;
}
.thanks-home:hover { background: var(--white); color: var(--blue); }

/* — Footer — */
.footer { background: var(--blue); color: var(--white); border-top: var(--rule); scroll-margin-top: 70px; }
.footer-logo-wrap { padding: var(--section-pad) var(--edge) 0; }
.footer-logo { margin: 0 0 0 -0.06em; font-size: clamp(88px, 20vw, 300px); line-height: 0.82; font-weight: 800; letter-spacing: -0.065em; color: var(--yellow); }
.footer-grid {
  margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 2px; background: var(--white); border-top: 2px solid var(--white); border-bottom: 2px solid var(--white);
}
.footer-cell { background: var(--blue); padding: 28px clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 10px; }
.footer-cell-social { gap: 14px; }
.footer-label { color: var(--yellow); }
.footer-place { margin: 0; font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.footer-text { margin: 0; font-size: 16px; line-height: 1.6; }
.footer-small { margin: 0; font-size: 14px; line-height: 1.5; }
.footer a { color: var(--white); font-weight: 800; }
.footer a:hover { color: var(--yellow); }
.footer-link { font-size: 16px; }
.contact-link { font-size: 20px; word-break: break-word; }
.hours { display: flex; flex-direction: column; font-size: 16px; line-height: 1.6; }
.hours-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--white); padding: 6px 0; }
.hours-row strong { font-weight: 800; }
.footer a.ig-link { display: flex; align-items: center; gap: 12px; font-size: 20px; text-decoration: none; word-break: break-word; }
.ig-icon { flex: none; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--yellow); }
.ig-icon img { width: 28px; height: 28px; }
.footer-bottom { padding: 20px var(--edge) 112px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* — Sticky order bar — */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px clamp(12px, 3vw, 24px) calc(10px + env(safe-area-inset-bottom));
  background: var(--white); border-top: var(--rule); display: flex; justify-content: flex-end;
}
.bar-btn {
  width: 100%; max-width: 520px; min-height: 56px; padding: 0 20px; border: 0; border-radius: 0; background: var(--blue);
  color: var(--white); font: 800 17px var(--font); text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.bar-btn:hover { background: var(--brown); }
.bar-right { color: var(--yellow); }
