/* ============================================================
   L'Abricot — «Pâtisserie vitrine» (concepto no oficial)
   Palette: apricot blush #F2C6A0 / cream #FBF7EF / deep chocolate #3B2A20 / soft ink
   Type: Playfair Display (didone display) + Alegreya Sans (humanist body)
   Shape system (locked): cards/slots 16px, inputs & inner images 10px,
   price tags 12px with a 3px tag corner, buttons full pill.
   Accent (locked): deep apricot #A34A24 for stars, links, tag notes, focus.
   ============================================================ */

:root {
  --cream: #FBF7EF;
  --card: #FFFDF8;
  --apricot: #F2C6A0;
  --apricot-soft: #F7E3CF;
  --choco: #3B2A20;
  --choco-deep: #2C1F16;
  --ink: #5C4A3D;
  --accent: #A34A24;
  --accent-deep: #8A3B1B;
  --line: rgba(59, 42, 32, 0.16);
  --line-strong: rgba(59, 42, 32, 0.34);
  --star-base: #EAD9C3;
  --shadow: 0 10px 24px rgba(59, 42, 32, 0.10);
  --shadow-lift: 0 16px 32px rgba(59, 42, 32, 0.14);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Trebuchet MS", Verdana, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: light;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--choco);
  background: var(--cream);
  overflow-x: clip;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

::selection { background: var(--apricot); color: var(--choco); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Utilities ---------- */

.section-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 60;
  background: var(--choco);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--cream); }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--choco);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--accent-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  white-space: nowrap;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--choco); border-color: var(--apricot); }

/* ---------- Hero: copy + vitrine strip ---------- */

.hero { padding-top: clamp(36px, 6vh, 72px); }

.hero-copy {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 7.5vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.hero-promise {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 1.13rem;
  color: var(--ink);
}

.cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Buttons: full pill (shape system) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 30px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--choco);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--choco-deep);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--choco);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--apricot-soft);
  border-color: var(--choco);
  color: var(--choco);
  transform: translateY(-1px);
}

/* The vitrine: apricot shop-window band + shelf board */

.vitrine {
  margin-top: clamp(36px, 6vh, 64px);
  background: linear-gradient(180deg, var(--apricot-soft), var(--apricot));
  border-top: 1px solid var(--line);
}

.vitrine-top {
  max-width: 1200px;
  margin-inline: auto;
  padding: 22px clamp(20px, 5vw, 48px) 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vitrine-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--choco);
}

.vitrine-arrows { display: flex; gap: 10px; }

.vitrine-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  color: var(--choco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.vitrine-btn svg { width: 18px; height: 18px; }
.vitrine-btn:hover { background: var(--choco); border-color: var(--choco); color: var(--cream); transform: translateY(-1px); }
.vitrine-btn:active { transform: translateY(1px) scale(0.96); }

.vitrine-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 14px max(20px, calc((100vw - 1200px) / 2 + 48px)) 30px;
  scrollbar-color: rgba(59, 42, 32, 0.4) transparent;
  scrollbar-width: thin;
}

.vitrine-slot {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: clamp(240px, 26vw, 300px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 10px 14px;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.vitrine-slot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.vitrine-slot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 375px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--apricot);
}

.vitrine-slot figcaption { padding: 12px 6px 2px; }

.vitrine-slot strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vitrine-slot span {
  font-size: 0.88rem;
  color: var(--accent);
}

/* Shelf board under the display slots */

.vitrine::after {
  content: "";
  display: block;
  height: 10px;
  background: var(--choco);
}

/* ---------- Sections, shared ---------- */

section { scroll-margin-top: 84px; }

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.12;
}

.section-lead {
  margin-top: 14px;
  max-width: 52ch;
  font-size: 1.08rem;
  color: var(--ink);
}

/* ---------- La carte: price-tag style list, no prices ---------- */

.carte { padding-block: clamp(72px, 10vh, 108px); }

.carte-tags {
  list-style: none;
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tag {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 12px 12px 12px 3px; /* price-tag corner, per shape system */
  padding: 12px 20px 11px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tag:hover { transform: translateY(-2px) rotate(-0.5deg); box-shadow: var(--shadow); }

.tag strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
}

.tag span {
  font-size: 0.85rem;
  color: var(--accent);
}

.carte-note {
  margin-top: 26px;
  font-size: 0.92rem;
  color: var(--ink);
}

/* ---------- Gâteaux: celebration cakes + order mock ---------- */

.gateaux {
  background: var(--apricot-soft);
  border-block: 1px solid var(--line);
  padding-block: clamp(72px, 10vh, 108px);
}

.gateaux-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.gateaux-copy .section-lead { max-width: 44ch; }

.gateaux-points {
  list-style: none;
  margin-top: 24px;
  max-width: 44ch;
}
.gateaux-points li {
  padding: 11px 2px;
  font-size: 1rem;
}
.gateaux-points li + li { border-top: 1px solid var(--line); }

.framed-note {
  margin-top: 28px;
  max-width: 44ch;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--ink);
}

.order-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.order-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 22px;
}

.field { margin-bottom: 20px; }

.field label,
.sizes legend {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.field select,
.field input[type="date"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #FFFEFB;
  color: var(--choco);
  font-family: var(--sans);
  font-size: 1rem;
}

.field select:focus-visible,
.field input[type="date"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.helper {
  margin-top: 7px;
  font-size: 0.84rem;
  color: var(--ink);
}

.sizes { border: 0; }
.sizes legend { padding: 0; }

.pill { position: relative; display: inline-flex; }

.pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pill span {
  display: inline-block;
  padding: 9px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--choco);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}

.pill input:checked + span {
  background: var(--choco);
  border-color: var(--choco);
  color: var(--cream);
}

.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.sizes .pill { margin: 0 10px 10px 0; }

.btn-block { width: 100%; margin-top: 6px; }

/* ---------- Quién somos ---------- */

.quien { padding-block: clamp(72px, 10vh, 108px); }

.quien-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.quien-statement {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  line-height: 1.5;
  max-width: 34ch;
}

.quien-statement em { font-style: italic; font-weight: 600; }

.quien-facts {
  margin-top: 30px;
  max-width: 44ch;
}

.quien-facts div {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 13px 2px;
}
.quien-facts div + div { border-top: 1px solid var(--line); }

.quien-facts dt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  min-width: 7.5ch;
}

.quien-facts dd { color: var(--ink); font-size: 0.98rem; }

.quien-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* ---------- Visítanos ---------- */

.visita {
  background: var(--apricot-soft);
  border-block: 1px solid var(--line);
  padding-block: clamp(72px, 10vh, 108px);
}

.visita-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.visita-address {
  margin-top: 22px;
  font-style: normal;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1.08rem;
  line-height: 1.55;
}
.visita-address svg { width: 22px; height: 22px; flex: none; margin-top: 4px; color: var(--accent); }

.maps-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.maps-link svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.maps-link:hover svg { transform: translateX(3px); }

.visita-note { margin-top: 18px; font-size: 0.94rem; color: var(--ink); }

.rating-card {
  justify-self: center;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 38px;
  box-shadow: var(--shadow);
}

.stars svg { width: 150px; height: 28px; }

.rating-line {
  margin-top: 12px;
  font-weight: 700;
  font-size: 1rem;
}

.rating-level {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--ink);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 2px solid var(--choco);
  padding: 56px 0 44px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.wordmark-footer {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
}

.footer-address {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--ink);
  max-width: 30ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links a {
  color: var(--choco);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  width: fit-content;
}
.footer-links a:hover { color: var(--accent-deep); text-decoration-color: var(--accent-deep); }

.colophon p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink);
}
.colophon p + p { margin-top: 10px; }
.colophon a { color: var(--accent); }

/* ---------- Motion (gated; collapses under reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }

  .hero-copy > * { animation: rise 0.7s var(--ease) backwards; }
  .hero-eyebrow { animation-delay: 0.05s; }
  .hero h1 { animation-delay: 0.12s; }
  .hero-promise { animation-delay: 0.2s; }
  .cta-row { animation-delay: 0.28s; }

  .vitrine-slot { animation: rise 0.8s var(--ease) backwards; }
  .vitrine-slot:nth-child(1) { animation-delay: 0.25s; }
  .vitrine-slot:nth-child(2) { animation-delay: 0.34s; }
  .vitrine-slot:nth-child(3) { animation-delay: 0.43s; }
  .vitrine-slot:nth-child(4) { animation-delay: 0.52s; }
}

/* ---------- Responsive collapses ---------- */

@media (max-width: 1024px) {
  .gateaux-grid { grid-template-columns: 1fr; }
  .order-card { max-width: 560px; }
  .quien-grid { grid-template-columns: 1fr; }
  .quien-photo { max-width: 560px; }
  .visita-grid { grid-template-columns: 1fr; }
  .rating-card { justify-self: start; }
}

@media (max-width: 640px) {
  .nav-inner { padding-inline: 16px; gap: 10px; }
  .wordmark { font-size: 1.15rem; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 0.72rem; letter-spacing: 0.1em; }

  .hero { padding-top: 32px; }
  .hero-promise { font-size: 1.02rem; }
  .cta-row .btn { flex: 1 1 100%; }

  .vitrine-top { padding-top: 18px; }
  .vitrine-track { gap: 14px; padding-bottom: 24px; }
  .vitrine-slot { width: min(66vw, 260px); padding: 8px 8px 12px; }
  .vitrine-slot img {
    max-height: 30vh;   /* fallback */
    max-height: 30svh;  /* keeps the whole strip <= 45svh on phones */
  }

  section { scroll-margin-top: 76px; }
  .carte, .quien { padding-block: 64px; }
  .gateaux, .visita { padding-block: 64px; }

  .order-card { padding: 22px 20px; }
  .rating-card { padding: 24px 26px; align-self: center; }

  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 380px) {
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.68rem; }
}
