/* ===================================================================
   VÍA ROMA — Panadería Pastelería
   Design tokens
   =================================================================== */
:root {
  /* color */
  --bg: #F8F3EA;
  --bg-alt: #EFE6D6;
  --bg-deep: #E4D5B7;
  --ink: #241A12;
  --ink-soft: #5C4A3A;
  --ink-faint: #8A7660;
  --wheat: #B8863B;
  --wheat-light: #D8B679;
  --wine: #6E2A2A;
  --line: #D9CBB0;
  --white: #FFFDF8;

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* layout */
  --max-w: 1220px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 3px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); font-weight: 500; }

h1 em, h2 em {
  font-style: italic;
  font-weight: 420;
  color: var(--wheat);
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

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

button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wheat);
  font-weight: 600;
  margin: 0 0 0.9em;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-solid {
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
}
.btn-solid:hover { background: var(--wine); border-color: var(--wine); }

.btn-line {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-faint);
}
.btn-line:hover { border-color: var(--ink); background: var(--white); }

.btn-small { padding: 10px 20px; font-size: 0.82rem; }

.btn-inverse { background: var(--wheat); border-color: var(--wheat); color: var(--ink); }
.btn-inverse:hover { background: var(--white); border-color: var(--white); }

.btn-inverse-line { border-color: rgba(248,243,234,0.5); color: var(--white); }
.btn-inverse-line:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ===================================================================
   SCORE MARK — signature motif (bread-scoring slashes)
   =================================================================== */
.score-mark {
  display: inline-block;
  margin-bottom: 14px;
}
.score-mark svg {
  height: 20px;
  width: auto;
  display: block;
}
.score-mark svg path {
  fill: none;
  stroke: var(--wheat);
  stroke-width: 3;
  stroke-linecap: round;
}

/* ===================================================================
   PLACEHOLDER IMAGES
   =================================================================== */
.placeholder-img {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(36,26,18,0.045) 0px, rgba(36,26,18,0.045) 2px, transparent 2px, transparent 14px),
    linear-gradient(155deg, var(--bg-deep), var(--wheat-light) 60%, var(--bg-deep));
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.placeholder-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,253,248,0.35), transparent 55%);
}
.placeholder-img::after {
  content: attr(data-label);
  position: relative;
  z-index: 1;
  display: block;
  margin: 16px;
  padding: 8px 12px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--white);
  background: rgba(36,26,18,0.62);
  border-radius: 2px;
  max-width: 88%;
}

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(248,243,234,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.logo-dot { color: var(--wheat); font-style: normal; }
.logo-sub {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  align-self: center;
}

.main-nav {
  display: flex;
  gap: 34px;
}
.main-nav a {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--wheat);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.mobile-nav.is-open { max-height: 420px; }
.mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 500;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-call { color: var(--wine) !important; font-weight: 600 !important; }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px var(--gutter) 80px;
  background: var(--bg);
  overflow: hidden;
}
.hero-grain {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 12%, rgba(184,134,59,0.14), transparent 45%),
              radial-gradient(circle at 8% 90%, rgba(110,42,42,0.08), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.hero-media { position: relative; order: 2; }
.hero-img { aspect-ratio: 4/5; }
.hero-media-caption {
  position: absolute;
  left: -14px;
  bottom: -18px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 10px 18px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-radius: 2px;
  box-shadow: 0 12px 30px rgba(36,26,18,0.08);
}

.hero-copy { order: 1; }
.hero-copy h1 { margin-bottom: 0.3em; }
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); max-width: 30ch; margin-bottom: 1.6em; }

.hero-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2.2em;
}
.stars { color: var(--wheat); letter-spacing: 2px; font-size: 0.95rem; }
.rating-text { font-size: 0.92rem; color: var(--ink-soft); }
.rating-text strong { color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--ink-faint);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 3px;
  background: var(--wheat);
  animation: scrollcue 1.8s var(--ease) infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 8px; }
}

/* ===================================================================
   PHILOSOPHY
   =================================================================== */
.philosophy { padding: 130px 0; background: var(--bg); }
.philosophy-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.philosophy-media .placeholder-img { aspect-ratio: 3/4; }

.pull-quote {
  margin: 1.6em 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.4;
}
.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ===================================================================
   PRODUCTS
   =================================================================== */
.products { padding: 60px 0 130px; background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 70px; }
.section-head--center { max-width: 620px; margin-left: auto; margin-right: auto; text-align: center; }
.section-note { font-size: 0.92rem; color: var(--ink-faint); font-style: italic; }

.product-block {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding: 60px 0;
}
.product-block + .product-block { border-top: 1px solid var(--line); }
.product-block--reverse { direction: rtl; }
.product-block--reverse > * { direction: ltr; }

.product-media {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: repeat(2, 130px);
  gap: 14px;
}
.product-img-main { grid-row: 1 / 3; aspect-ratio: auto; }
.product-img-sm { aspect-ratio: auto; }

.product-copy h3 { margin-bottom: 0.5em; }
.product-copy p { max-width: 46ch; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2em; }
.tag-list li {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
}

/* ===================================================================
   AQUEDUCT
   =================================================================== */
.aqueduct { padding: 130px 0; background: var(--ink); color: var(--white); }
.aqueduct .eyebrow { color: var(--wheat-light); }
.aqueduct h2 { color: var(--white); }
.aqueduct .lead { color: rgba(248,243,234,0.72); }
.aqueduct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.aqueduct-media .placeholder-img { aspect-ratio: 4/3; }

/* ===================================================================
   REVIEWS
   =================================================================== */
.reviews { padding: 130px 0; background: var(--bg); }
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 1.4em;
  padding: 14px 26px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--white);
}
.rating-number { font-family: var(--font-display); font-size: 2rem; color: var(--ink); line-height: 1; }
.rating-caption { display: block; font-size: 0.78rem; color: var(--ink-faint); margin-top: 2px; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 22px;
  margin-top: 60px;
}
.review {
  margin: 0;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.review p { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); line-height: 1.4; margin: 14px 0 10px; }
.review cite { font-style: normal; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.review--main {
  grid-row: 1 / 3;
  background: var(--ink);
  border-color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.review--main p { color: var(--white); font-size: 1.5rem; }
.review--main cite { color: var(--wheat-light); }
.review--main .stars { color: var(--wheat-light); }

.reviews-link {
  display: inline-block;
  margin-top: 40px;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--wheat);
  padding-bottom: 2px;
}

/* ===================================================================
   HOURS
   =================================================================== */
.hours { padding: 130px 0; background: var(--bg-alt); }
.hours-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.4em;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--line);
}
.open-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-faint);
}
.open-status.is-open { color: #2E5B3E; border-color: #B9D6C2; background: #EEF6F0; }
.open-status.is-open::before { background: #2E5B3E; }
.open-status.is-closed { color: var(--wine); border-color: #E3C6C6; background: #FBF0F0; }
.open-status.is-closed::before { background: var(--wine); }

.hours-list { border-top: 1px solid var(--line); }
.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.hours-list li.is-today { color: var(--wine); }
.hours-list .day { font-weight: 500; }
.hours-list .time { font-family: var(--font-body); font-size: 0.92rem; color: var(--ink-soft); }

/* ===================================================================
   VISIT
   =================================================================== */
.visit { padding: 130px 0; background: var(--bg); }
.visit-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.visit-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin-bottom: 0.3em; }
.visit-line { font-size: 1rem; margin-bottom: 0.5em; }
.visit-line a { border-bottom: 1px solid var(--line); }
.visit-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.6em; }
.visit-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
}
.visit-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.15) sepia(0.08); }

/* ===================================================================
   CTA FINAL
   =================================================================== */
.cta-final { background: var(--wine); color: var(--white); padding: 110px 0; text-align: center; }
.cta-final h2 { color: var(--white); }
.cta-final p { color: rgba(248,243,234,0.78); font-size: 1.1rem; margin-bottom: 1.8em; }
.cta-final-inner { display: flex; flex-direction: column; align-items: center; }
.cta-final .hero-actions { justify-content: center; }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer { background: var(--ink); color: rgba(248,243,234,0.8); padding: 80px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(248,243,234,0.14);
}
.footer-logo { color: var(--white); margin-bottom: 14px; font-size: 1.2rem; }
.footer-heading { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wheat-light); margin-bottom: 14px; }
.footer-line { font-size: 0.92rem; margin-bottom: 8px; color: rgba(248,243,234,0.72); }
.footer-line a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 0 var(--gutter);
  font-size: 0.78rem;
  color: rgba(248,243,234,0.45);
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: 1; }
  .hero-copy { order: 2; }
  .hero { padding-top: 120px; }

  .philosophy-grid,
  .aqueduct-grid,
  .hours-grid,
  .visit-grid { grid-template-columns: 1fr; }

  .product-block,
  .product-block--reverse { grid-template-columns: 1fr; direction: ltr; padding: 40px 0; }
  .product-media { order: -1; }

  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .review--main { grid-column: 1 / 3; grid-row: auto; }
}

@media (max-width: 640px) {
  .header-actions .btn-small { display: none; }
  .hero { min-height: auto; padding: 110px 20px 60px; }
  .hero-media-caption { display: none; }
  .hero-rating { flex-wrap: wrap; }

  .philosophy,
  .products,
  .aqueduct,
  .reviews,
  .hours,
  .visit { padding: 80px 0; }

  .product-media {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 150px;
  }

  .reviews-grid { grid-template-columns: 1fr; }
  .review--main { grid-column: auto; }

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

  .cta-final .hero-actions { flex-direction: column; width: 100%; }
  .cta-final .btn { width: 100%; }
}
