/* ============================================================
   PORTUGUESE FLAVOURS - Leamington Spa
   Warm Portuguese pastelaria: wine, green, cream, gold, wood
   ============================================================ */

:root {
  --cream:     #faf5ec;   /* page background */
  --cream-2:   #f3e9d6;   /* soft panel */
  --cream-3:   #ece0c9;
  --wine:      #6b1f2a;   /* bordô letreiro */
  --wine-deep: #521521;
  --wine-soft: #8a3340;
  --green:     #234f3b;   /* toldo verde */
  --green-deep:#173626;
  --gold:      #c1913b;   /* dourado pastel de nata */
  --gold-soft: #d8b263;
  --wood:      #8a5a3c;
  --ink:       #2c1c15;   /* warm near-black text */
  --muted:     #6f6053;   /* warm muted */
  --line:      #e0d3ba;

  --serif: "Fraunces", "Georgia", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1240px;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

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

html { scroll-behavior: smooth; }
html, body { background: var(--cream); color: var(--ink); }

body {
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

img { display: block; max-width: 100%; }
section { position: relative; }
em { font-style: italic; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow.light { color: var(--gold-soft); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -0.01em; }
.big { font-size: clamp(2.1rem, 5.4vw, 4rem); }
.light { color: var(--cream); }

.body {
  font-size: clamp(1rem, 1.15vw, 1.13rem);
  line-height: 1.85;
  color: var(--muted);
  max-width: 52ch;
  margin-top: 1.3rem;
}
.body.center { margin-left: auto; margin-right: auto; text-align: center; }
.light-body { color: rgba(250,245,236,0.86); }

.micro {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.micro.light { color: rgba(250,245,236,0.7); }

.stars { color: var(--gold); letter-spacing: 0.12em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
  border: 1.5px solid transparent;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--wine); color: var(--cream); box-shadow: 0 10px 26px -12px rgba(107,31,42,0.7); }
.btn-primary:hover { background: var(--wine-deep); box-shadow: 0 14px 30px -12px rgba(107,31,42,0.85); }
.btn-dark { background: var(--green); color: var(--cream); }
.btn-dark:hover { background: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(250,245,236,0.55); }
.btn-ghost:hover { background: rgba(250,245,236,0.12); border-color: var(--cream); }
.btn-ghost-dark { background: transparent; color: var(--wine); border-color: var(--wine); }
.btn-ghost-dark:hover { background: var(--wine); color: var(--cream); }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.topbar.scrolled {
  background: rgba(250,245,236,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-decoration: none;
  transition: color .4s ease;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.brand span { font-style: italic; color: var(--gold-soft); }
.topbar.scrolled .brand { color: var(--wine); text-shadow: none; }
.topbar.scrolled .brand span { color: var(--wine-soft); }

.topnav { display: flex; align-items: center; gap: clamp(0.7rem, 1.8vw, 1.8rem); }
.topnav a {
  font-size: 0.82rem; letter-spacing: 0.05em; text-decoration: none;
  color: var(--cream); text-shadow: 0 1px 10px rgba(0,0,0,0.35);
  transition: color .4s ease, opacity .3s ease;
}
.topnav > a:not(.nav-cta):hover { opacity: 0.7; }
.topbar.scrolled .topnav a { color: var(--ink); text-shadow: none; }
.topnav a:not(.nav-cta) { display: none; }

.nav-cta {
  background: var(--wine);
  color: var(--cream) !important;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-weight: 500;
  text-shadow: none !important;
}
.nav-cta:hover { background: var(--wine-deep); opacity: 1 !important; }

.lang-toggle {
  font-family: var(--sans);
  background: rgba(250,245,236,0.16);
  border: 1.5px solid rgba(250,245,236,0.55);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.08em;
  cursor: pointer;
  transition: all .3s ease;
}
.lang-toggle .sep { opacity: 0.5; margin: 0 0.28rem; }
.lang-toggle span[data-lang] { opacity: 0.55; transition: opacity .3s ease; }
.lang-toggle span.active { opacity: 1; color: var(--gold-soft); }
.topbar.scrolled .lang-toggle { border-color: var(--line); background: transparent; color: var(--ink); }
.topbar.scrolled .lang-toggle span.active { color: var(--wine); }
.lang-toggle:hover { border-color: var(--gold-soft); }

@media (min-width: 900px) {
  .topnav a:not(.nav-cta) { display: inline-block; }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem var(--pad) clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 118%; object-fit: cover; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(40,12,16,0.86) 0%, rgba(40,12,16,0.35) 45%, rgba(40,12,16,0.15) 70%, rgba(40,12,16,0.42) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-title {
  color: var(--cream);
  font-size: clamp(2.5rem, 7.5vw, 5.6rem);
  font-weight: 500;
  margin: 0.5rem 0 1.4rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-sub {
  color: var(--cream);
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  max-width: 40ch; line-height: 1.6;
  text-shadow: 0 1px 16px rgba(0,0,0,0.4);
}
.hero-support {
  color: rgba(250,245,236,0.82);
  font-size: 0.98rem; max-width: 44ch; margin-top: 0.9rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-rating { margin-top: 1.6rem; color: var(--cream); font-size: 0.9rem; letter-spacing: 0.04em; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  z-index: 2; color: rgba(250,245,236,0.8);
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-cue span {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--gold-soft), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Section rhythm ---------- */
.story, .cafe, .shop, .reviews, .visit, .contact {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 11vw, 8.5rem) var(--pad);
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { display: inline-block; }
.section-foot { text-align: center; margin-top: clamp(2.5rem, 5vw, 4rem); display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }

/* ---------- STORY ---------- */
.story-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.story-visual { position: relative; }
.framed {
  position: relative; overflow: hidden; border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(60,25,20,0.5);
}
.framed img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.story-visual .framed img { aspect-ratio: 4/3.4; }
.pull-quote {
  margin-top: -2.5rem; margin-left: auto; width: min(88%, 30rem);
  position: relative; z-index: 2;
  background: var(--wine); color: var(--cream);
  padding: 1.8rem 2rem; border-radius: 6px;
  box-shadow: 0 24px 44px -24px rgba(107,31,42,0.7);
}
.pull-quote p { font-family: var(--serif); font-style: italic; font-size: 1.22rem; line-height: 1.4; }
.pull-quote cite { display: block; margin-top: 0.8rem; font-style: normal; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); }

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

/* ---------- CAFE / MENU ---------- */
.cafe { background: linear-gradient(180deg, transparent, var(--cream-2) 30%, var(--cream-2) 70%, transparent); border-radius: 0; }
.menu-grid { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); grid-template-columns: 1fr; }
.menu-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 18px 40px -32px rgba(60,25,20,0.5);
  transition: transform .4s ease, box-shadow .4s ease;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: 0 26px 48px -30px rgba(60,25,20,0.55); }
.menu-img { overflow: hidden; }
.menu-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; transition: transform .8s ease; }
.menu-card:hover .menu-img img { transform: scale(1.05); }
.menu-text { padding: 1.4rem 1.5rem 1.7rem; }
.pt-word { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--wine); margin-bottom: 0.5rem; line-height: 1.1; }
.menu-text p:not(.pt-word) { color: var(--muted); font-size: 0.98rem; line-height: 1.7; }

@media (min-width: 640px) { .menu-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .menu-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- SHOP ---------- */
.shop-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.shop-visual img { aspect-ratio: 3/4; width: 100%; height: 100%; object-fit: cover; }
.cat-list { list-style: none; margin: 1.6rem 0; }
.cat-list li {
  position: relative; padding: 0.7rem 0 0.7rem 1.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 1rem;
}
.cat-list li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
}
.shop-copy .btn { margin-top: 1.6rem; }

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

/* ---------- ORDERS (immersive band) ---------- */
.orders {
  position: relative; overflow: hidden;
  padding: clamp(4.5rem, 12vw, 9rem) var(--pad);
  display: flex; justify-content: center;
}
.orders-media { position: absolute; inset: 0; z-index: 0; }
.orders-media img { width: 100%; height: 116%; object-fit: cover; }
.orders-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgba(82,21,33,0.94), rgba(35,79,59,0.82)); }
.orders-inner { position: relative; z-index: 2; max-width: 720px; text-align: center; }
.orders-inner .body { margin-left: auto; margin-right: auto; }
.callout {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5;
  color: var(--gold-soft);
  max-width: 34ch; margin: 2rem auto;
  padding: 0 1rem;
}
.orders-inner .btn { margin-top: 0.5rem; }
.orders-inner .micro { margin-top: 1.1rem; }

/* ---------- REVIEWS ---------- */
.rating-line { margin-top: 1rem; font-size: 1.05rem; color: var(--ink); letter-spacing: 0.02em; }
.rating-line strong { color: var(--wine); font-weight: 600; }
.review-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr;
}
.review {
  background: var(--cream); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.7rem 1.8rem;
  box-shadow: 0 16px 38px -32px rgba(60,25,20,0.5);
}
.rev-stars { color: var(--gold); letter-spacing: 0.14em; font-size: 0.95rem; margin-bottom: 0.9rem; }
.review blockquote { font-family: var(--serif); font-size: 1.08rem; line-height: 1.55; color: var(--ink); }
.review figcaption { margin-top: 1.1rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

@media (min-width: 720px) {
  .review-grid { grid-template-columns: 1fr 1fr; }
  .review.wide { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .review.wide { grid-column: auto; }
}

/* ---------- VISIT ---------- */
.visit { }
.visit-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: stretch; }
.addr { font-style: normal; font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--ink); margin: 1.4rem 0 0.4rem; }
.hours { margin: 1.8rem 0 0.6rem; }
.hours h3 { font-size: 1.05rem; letter-spacing: 0.02em; margin-bottom: 0.7rem; color: var(--wine); }
.hours ul { list-style: none; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.hours li span:first-child { color: var(--muted); }
.hours li span:last-child { color: var(--ink); font-weight: 400; }
.hours .closed { color: var(--wine-soft) !important; }
.visit-copy .btn { margin-top: 1.6rem; }
.visit-map { min-height: 340px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px -34px rgba(60,25,20,0.5); }
.visit-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: saturate(0.92); }

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

/* ---------- CONTACT ---------- */
.contact { text-align: center; }
.contact-inner { max-width: 720px; margin: 0 auto; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2rem; }
.contact-list { list-style: none; margin: 2.6rem auto 0; max-width: 460px; }
.contact-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.contact-list li span { color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; align-self: center; }
.contact-list li a { color: var(--wine); text-decoration: none; font-weight: 400; }
.contact-list li a:hover { text-decoration: underline; }

/* ---------- FOOTER ---------- */
.footer { background: var(--wine-deep); color: var(--cream); text-align: center; padding: clamp(3rem, 7vw, 5rem) var(--pad); }
.foot-brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.foot-brand span { color: var(--gold-soft); }
.foot-addr { margin-top: 0.7rem; color: rgba(250,245,236,0.78); font-size: 0.95rem; }
.foot-fine { margin-top: 1.1rem; color: rgba(250,245,236,0.55); font-size: 0.85rem; letter-spacing: 0.04em; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 70;
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: #25D366; color: #08331b;
  padding: 0.85rem 1.1rem; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: 0.9rem; letter-spacing: 0.02em;
  box-shadow: 0 14px 34px -12px rgba(6,60,30,0.6);
  transition: transform .3s ease, box-shadow .3s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 40px -12px rgba(6,60,30,0.7); }
.wa-float-label { display: none; }
@media (min-width: 560px) { .wa-float-label { display: inline; } }

/* ---------- Reveal defaults (JS enhances) ---------- */
.reveal-up { opacity: 1; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .scroll-cue span { animation: none; }
}

/* ---------- Map overlay link ---------- */
.visit-map { position: relative; }
.map-link {
  position: absolute; right: 0.7rem; bottom: 0.7rem; z-index: 3;
  background: rgba(250,245,236,0.94); color: var(--wine);
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; padding: 0.5rem 0.9rem; border-radius: 999px;
  box-shadow: 0 6px 18px -8px rgba(60,25,20,0.5);
  transition: background .3s ease, color .3s ease;
}
.map-link:hover { background: var(--wine); color: var(--cream); }
