/* =========================================================
   Café & Nata — design system
   Portuguese cafe identity: tile rhythm, receipt rail,
   glass pastry case, stamp badges, sugar-packet reviews.
   ========================================================= */

:root {
  --custard: #e3a83b;
  --custard-deep: #c98a2a;
  --custard-pale: #f6e2b3;
  --caramel: #6b3a1e;
  --espresso: #2a1a12;
  --espresso-soft: #3d2a1e;
  --porcelain: #fbf7ef;
  --porcelain-dim: #f3ecdd;
  --tile-blue: #235c79;
  --tile-blue-dark: #163e52;
  --wood: #b98a55;
  --cherry: #b6392b;

  --font-display: "Playfair Display", Georgia, serif;
  --font-script: "EB Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 8px;
  --max-w: 1120px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--espresso);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2 {
  font-family: var(--font-display);
  color: var(--espresso);
  margin: 0 0 .4em;
  line-height: 1.1;
}

h1 { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; }

p { line-height: 1.6; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--espresso);
  color: var(--porcelain);
  padding: .6em 1em;
  z-index: 200;
}
.skip-link:focus { left: 0; }

section[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

.eyebrow {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cherry);
  margin: 0 0 .3em;
  letter-spacing: .02em;
}
.eyebrow-light { color: var(--custard); }

.section { padding: 64px 0; }
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section-copy {
  max-width: 56ch;
  color: var(--espresso-soft);
}

.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  padding: .75em 1.3em;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--cherry);
  color: var(--porcelain);
  box-shadow: 0 3px 0 rgba(0,0,0,.12);
}
.btn-primary:hover { background: #a02f22; }
.btn-outline {
  background: transparent;
  border-color: var(--espresso);
  color: var(--espresso);
}
.btn-outline:hover { background: var(--espresso); color: var(--porcelain); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,.15); }
.btn-espresso {
  background: var(--espresso);
  color: var(--porcelain);
}
.btn-espresso:hover { background: var(--espresso-soft); }
.btn-small { padding: .5em 1em; font-size: .85rem; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 239, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(42, 26, 18, .1);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { height: 34px; width: auto; }

.main-nav {
  display: none;
  gap: 24px;
  margin-left: 8px;
  flex: 1;
}
.main-nav a {
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  color: var(--espresso-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-color: var(--custard); color: var(--espresso); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-call span { display: none; }

.lang-switch {
  display: none;
  gap: 2px;
  background: var(--porcelain-dim);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .03em;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--espresso-soft);
}
.lang-btn.is-active { background: var(--espresso); color: var(--porcelain); }

.mobile-nav-toggle {
  width: 38px; height: 38px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.mobile-nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--espresso);
  transition: transform .15s ease, opacity .15s ease;
}
.mobile-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  background: var(--porcelain);
  border-bottom: 1px solid rgba(42,26,18,.08);
  transition: max-height .2s ease;
}
.mobile-nav.is-open { max-height: 320px; }
.mobile-nav a {
  display: block;
  padding: 14px 24px;
  text-decoration: none;
  font-weight: 600;
  color: var(--espresso);
  border-top: 1px solid rgba(42,26,18,.06);
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .lang-switch { display: flex; }
  .header-call span { display: inline; }
  .mobile-nav-toggle { display: none; }
}

/* =========================================================
   1. HERO — Nata Ritual Opener
   ========================================================= */
.hero { padding: 36px 0 0; }
.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  gap: 36px;
}
.hero-media { position: relative; }
.hero-photo-frame {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 18px 40px -18px rgba(42,26,18,.45);
  border: 6px solid #fff;
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }

.hero-stamp {
  position: absolute;
  right: 14px;
  bottom: -22px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--custard);
  color: var(--espresso);
  border: 3px dashed var(--porcelain);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  line-height: 1.25;
  padding: 10px;
  transform: rotate(-9deg);
  box-shadow: 0 8px 18px -8px rgba(42,26,18,.5);
}

.hero-copy { padding-top: 8px; }
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--espresso-soft);
  margin: 0 0 18px;
}
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--porcelain-dim);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 26px;
}
.stars { color: var(--custard-deep); letter-spacing: 1px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; padding-bottom: 70px; }
  .hero-stamp { width: 156px; height: 156px; right: -20px; bottom: -30px; font-size: .92rem; }
}

/* =========================================================
   2. RECEIPT RAIL
   ========================================================= */
.rail {
  background: var(--porcelain-dim);
  border-top: 1px dashed rgba(42,26,18,.25);
  border-bottom: 1px dashed rgba(42,26,18,.25);
}
.rail-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  font-family: var(--font-sans);
}
.rail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: none;
  text-decoration: none;
  color: inherit;
}
.rail-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cherry);
  font-weight: 700;
}
.rail-value { font-size: .88rem; font-weight: 600; white-space: nowrap; }
.rail-status {
  font-size: .74rem;
  font-weight: 700;
  color: #2f7a3d;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.rail-status.is-closed { color: var(--cherry); }
.rail-link:hover .rail-value { text-decoration: underline; }
.rail-sep { color: rgba(42,26,18,.3); flex: none; }

/* =========================================================
   3. THE CASE
   ========================================================= */
.case-section { background: var(--porcelain); }
.case-display {
  position: relative;
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 34px -20px rgba(42,26,18,.5);
}
.case-photo { width: 100%; height: auto; max-height: 480px; object-fit: cover; }
.case-shelf-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(227,168,59,.9), transparent);
  pointer-events: none;
}
.case-shelf-1 { top: 34%; }
.case-shelf-2 { top: 68%; }

.price-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}
.price-tag {
  position: relative;
  background: var(--espresso);
  color: var(--porcelain);
  padding: 10px 18px 10px 22px;
  border-radius: 3px;
  font-family: var(--font-sans);
  display: flex;
  align-items: baseline;
  gap: 10px;
  transform: rotate(-2deg);
  box-shadow: 0 6px 14px -8px rgba(42,26,18,.6);
}
.price-tag:nth-child(2) { transform: rotate(1.5deg); }
.price-tag::before {
  content: "";
  position: absolute;
  left: 8px; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--porcelain);
  transform: translateY(-50%);
}
.price-tag-name { font-weight: 600; font-size: .88rem; }
.price-tag-price { font-family: var(--font-display); font-weight: 700; color: var(--custard); font-size: 1rem; }

.case-groups {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.case-groups li {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--caramel);
  background: var(--custard-pale);
  padding: 7px 12px;
  border-radius: 999px;
}

/* =========================================================
   4. THE PERFECT PAIR
   ========================================================= */
.pair-section { background: var(--porcelain-dim); }
.pair-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 40px 0;
}
.pair-circle {
  width: 44vw;
  max-width: 200px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 14px 30px -16px rgba(42,26,18,.5);
  flex: none;
}
.pair-circle img { width: 100%; height: 100%; object-fit: cover; }
.pair-circle-nata img { object-position: 50% 40%; }
.pair-plus {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--cherry);
  font-weight: 700;
  flex: none;
}
.pair-quote {
  max-width: 62ch;
  margin: 0 auto;
  text-align: center;
  padding: 0 8px;
}
.pair-quote p {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--espresso);
  margin: 0 0 10px;
}
.pair-quote cite {
  font-size: .82rem;
  font-weight: 600;
  color: var(--caramel);
  font-style: normal;
}

@media (min-width: 640px) {
  .pair-circle { width: 220px; }
  .pair-circle-nata { margin-right: -14px; }
  .pair-circle-coffee { margin-left: -14px; }
}

/* =========================================================
   5. TAKEAWAY
   ========================================================= */
.takeaway-section { background: var(--porcelain); }
.takeaway-grid { display: grid; gap: 30px; align-items: center; }
.takeaway-media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 34px -20px rgba(42,26,18,.5); }
.takeaway-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

@media (min-width: 860px) {
  .takeaway-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   6. NOT ONLY NATA
   ========================================================= */
.more-section { background: var(--porcelain-dim); }
.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.more-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px -16px rgba(42,26,18,.4);
}
.more-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.more-card figcaption {
  padding: 12px 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--caramel);
}

/* =========================================================
   7. REVIEWS — sugar packets
   ========================================================= */
.reviews-section { background: var(--porcelain); }
.packets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px 18px;
  margin-top: 30px;
}
.packet {
  position: relative;
  background: #fff;
  padding: 20px 16px 16px;
  border-radius: 2px;
  box-shadow: 0 10px 22px -14px rgba(42,26,18,.45);
  font-size: .88rem;
}
.packet::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--cherry) 0 6px, var(--porcelain) 6px 12px);
}
.packet-stars { color: var(--custard-deep); font-size: .78rem; letter-spacing: 1px; }
.packet p {
  font-family: var(--font-script);
  font-style: italic;
  margin: 8px 0 10px;
  color: var(--espresso);
  font-size: 1.02rem;
}
.packet-author { font-size: .74rem; font-weight: 700; color: var(--caramel); text-transform: uppercase; letter-spacing: .03em; }
.packet-1 { transform: rotate(-2deg); }
.packet-2 { transform: rotate(1.5deg); }
.packet-3 { transform: rotate(-1deg); }
.packet-4 { transform: rotate(2deg); }
.packet-5 { transform: rotate(-1.5deg); }

/* =========================================================
   8. WELCOME NOTE
   ========================================================= */
.welcome-section { background: var(--porcelain-dim); }
.welcome-grid { display: grid; gap: 30px; align-items: center; }
.welcome-media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 34px -20px rgba(42,26,18,.5); }
.welcome-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

@media (min-width: 860px) {
  .welcome-grid { grid-template-columns: 1fr 1fr; }
  .welcome-section .welcome-media { order: 2; }
}

/* =========================================================
   9. VISIT / TILE WALL
   ========================================================= */
.visit-section {
  background: var(--tile-blue-dark);
  color: #fff;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.06) 0 2px, transparent 2px),
    radial-gradient(circle at 60% 70%, rgba(255,255,255,.05) 0 2px, transparent 2px);
  background-size: 46px 46px;
}
.visit-title { color: #fff; }
.tile-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.tile {
  background: var(--tile-blue);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 22px;
}
.tile .icon { width: 26px; height: 26px; fill: var(--custard); margin-bottom: 10px; }
.tile p { margin: 0 0 16px; font-size: .92rem; line-height: 1.5; }
.tile-hours-label, .tile-social-label {
  display: block;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--custard);
  margin-bottom: 12px;
}
.hours-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.hours-table td { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.social-icons { display: flex; gap: 12px; }
.social-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .6;
}
.social-icon svg { width: 18px; height: 18px; fill: #fff; }

.visit-note {
  margin: 28px 0 0;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  text-align: center;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--espresso);
  color: rgba(251,247,239,.7);
  text-align: center;
  padding: 34px 24px 100px;
  font-size: .82rem;
}
.footer-logo { height: 30px; width: auto; margin: 0 auto 12px; filter: brightness(0) invert(1); opacity: .85; }

@media (min-width: 900px) {
  .site-footer { padding-bottom: 34px; }
}

/* =========================================================
   STICKY MOBILE CTA
   ========================================================= */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--porcelain);
  border-top: 1px solid rgba(42,26,18,.15);
  box-shadow: 0 -8px 20px -12px rgba(42,26,18,.35);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sticky-cta-status {
  display: flex;
  flex-direction: column;
  font-size: .68rem;
  line-height: 1.3;
  color: var(--espresso-soft);
  margin-right: auto;
}
#sticky-status { font-weight: 700; color: #2f7a3d; text-transform: uppercase; letter-spacing: .03em; }
#sticky-status.is-closed { color: var(--cherry); }
.btn-sticky { flex: 1; justify-content: center; padding: .7em .8em; font-size: .86rem; }

@media (min-width: 900px) {
  .sticky-cta { display: none; }
}
