/* ============================================================
   TROPICAL BRAZIL CAFE - Chineham, Basingstoke
   Brazilian street food + mercearia. Deep green, cream, yellow.
   Native smooth scroll. Parallax desktop only. No backdrop-filter.
   ============================================================ */

:root {
  --cream:     #faf6ea;   /* page background */
  --cream-2:   #f3ead2;   /* soft panel */
  --cream-3:   #ece0c9;
  --green:     #1f3d2b;   /* deep green of the sign */
  --green-deep:#16301f;
  --green-soft:#2c5540;
  --mint:      #7fb59a;   /* window frames */
  --yellow:    #f2c230;   /* BRAZIL yellow / leaf */
  --yellow-soft:#f7d15a;
  --wood:      #9a6a41;
  --ink:       #22301f;   /* warm green-black text */
  --muted:     #5e6b58;   /* muted */
  --line:      #e2d9c1;

  --serif: "Fraunces", "Georgia", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;
  --script:"Pacifico", "Segoe Script", "Brush Script MT", cursive;

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

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
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; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: var(--cream);
  padding: 0.7rem 1.1rem; border-radius: 0 0 8px 0;
  font-size: 0.85rem; text-decoration: none;
}
.skip-link:focus { left: 0; }

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

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

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

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

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

/* ---------- Brand lockup ---------- */
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 0.9; text-decoration: none; }
.brand .b-tropical {
  font-family: var(--script);
  font-size: 1.6rem;
  color: var(--cream);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
  transition: color .4s ease;
}
.brand .b-brazil {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  color: var(--yellow-soft);
  margin-top: 0.1rem; margin-left: 0.15rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
  transition: color .4s ease;
}
.topbar.scrolled .brand .b-tropical { color: var(--green); text-shadow: none; }
.topbar.scrolled .brand .b-brazil { color: var(--wood); text-shadow: none; }

/* ---------- 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(--yellow); color: var(--green-deep); box-shadow: 0 10px 26px -12px rgba(31,61,43,0.6); }
.btn-primary:hover { background: var(--yellow-soft); box-shadow: 0 14px 30px -12px rgba(31,61,43,0.7); }
.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,246,234,0.55); }
.btn-ghost:hover { background: rgba(250,246,234,0.12); border-color: var(--cream); }
.btn-ghost-dark { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost-dark:hover { background: var(--green); 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: 1rem var(--pad);
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.topbar.scrolled {
  background: var(--cream);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.topnav { display: flex; align-items: center; gap: clamp(0.7rem, 1.8vw, 1.7rem); }
.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.4);
  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(--green);
  color: var(--cream) !important;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-weight: 500;
  text-shadow: none !important;
}
.nav-cta:hover { background: var(--green-deep); opacity: 1 !important; }
.topbar.scrolled .nav-cta { background: var(--green); color: var(--cream) !important; }

.lang-toggle {
  font-family: var(--sans);
  background: rgba(250,246,234,0.16);
  border: 1.5px solid rgba(250,246,234,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(--yellow-soft); }
.topbar.scrolled .lang-toggle { border-color: var(--line); background: transparent; color: var(--ink); }
.topbar.scrolled .lang-toggle span.active { color: var(--green); }
.lang-toggle:hover { border-color: var(--yellow-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(15,32,20,0.9) 0%, rgba(15,32,20,0.42) 45%, rgba(15,32,20,0.2) 70%, rgba(15,32,20,0.5) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-title {
  color: var(--cream);
  font-size: clamp(2.5rem, 7.2vw, 5.4rem);
  font-weight: 500;
  margin: 0.5rem 0 1.4rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-sub {
  color: var(--cream);
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  max-width: 42ch; line-height: 1.6;
  text-shadow: 0 1px 16px rgba(0,0,0,0.45);
}
.hero-support {
  color: rgba(250,246,234,0.84);
  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,246,234,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(--yellow-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); } }

/* ---------- Proof bar ---------- */
.proof { background: var(--green); color: var(--cream); }
.proof-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1.1rem var(--pad);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.6rem 1.4rem; text-align: center;
  font-size: 0.94rem; letter-spacing: 0.04em;
}
.proof-inner .stars { color: var(--yellow); margin-right: 0.35rem; }
.proof-inner .dot { color: var(--mint); }

/* ---------- Section rhythm ---------- */
.about, .menu, .reviews, .visit {
  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; }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-visual { position: relative; }
.framed {
  position: relative; overflow: hidden; border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(20,40,25,0.5);
}
.framed img { width: 100%; height: 100%; object-fit: cover; 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(--green); color: var(--cream);
  padding: 1.8rem 2rem; border-radius: 6px;
  box-shadow: 0 24px 44px -24px rgba(20,40,25,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(--yellow-soft); }

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

/* ---------- MENU ---------- */
.menu { background: linear-gradient(180deg, transparent, var(--cream-2) 22%, var(--cream-2) 78%, transparent); }
.menu-grid { display: grid; gap: clamp(1.4rem, 3vw, 2rem); grid-template-columns: 1fr; }
.menu-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 10px 24px -20px rgba(20,40,25,0.4);
  transition: transform .4s ease, box-shadow .4s ease;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -22px rgba(20,40,25,0.45); }
.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-card.no-img .menu-text { padding-top: 1.7rem; }
.menu-card.no-img { background:
  radial-gradient(circle at 88% 12%, rgba(242,194,48,0.14), transparent 45%),
  radial-gradient(circle at 10% 90%, rgba(127,181,154,0.16), transparent 45%),
  var(--cream); }
.menu-text { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.menu-text h3 { font-size: 1.5rem; color: var(--green); margin-bottom: 0.9rem; line-height: 1.1; }
.menu-list { list-style: none; margin: 0 0 1.1rem; }
.menu-list li {
  position: relative; padding: 0.5rem 0 0.5rem 1.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 1rem; line-height: 1.5;
}
.menu-list li:last-child { border-bottom: 0; }
.menu-list li::before {
  content: ""; position: absolute; left: 0; top: 0.95rem;
  width: 7px; height: 7px; border-radius: 50%; background: var(--yellow);
}
.menu-note {
  margin-top: auto; padding-top: 0.4rem;
  font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--wood); font-weight: 500;
}
.menu-note::before { content: "› "; color: var(--yellow); }

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

/* ---------- MERCEARIA band ---------- */
.mercearia { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--pad) clamp(4rem, 11vw, 8.5rem); }
.merc-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.merc-visual img { aspect-ratio: 3/4; width: 100%; height: 100%; object-fit: cover; }
.merc-copy h3 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); color: var(--green); }
.merc-copy .body { margin-top: 1rem; }
.merc-copy .menu-note { margin-top: 1.4rem; display: block; }
@media (min-width: 860px) { .merc-grid { grid-template-columns: 0.85fr 1fr; } }

/* ---------- REVIEWS ---------- */
.rating-line { margin-top: 1rem; font-size: 1.05rem; color: var(--ink); letter-spacing: 0.02em; }
.rating-line strong { color: var(--green); 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: 10px;
  padding: 1.7rem 1.8rem;
  box-shadow: 0 10px 22px -20px rgba(20,40,25,0.4);
}
.rev-stars { color: var(--yellow); letter-spacing: 0.14em; font-size: 0.95rem; margin-bottom: 0.9rem; }
.review blockquote { font-family: var(--serif); font-size: 1.06rem; line-height: 1.55; color: var(--ink); }
.review .rev-trans { display: block; margin-top: 0.6rem; font-family: var(--sans); font-style: normal; font-size: 0.92rem; line-height: 1.5; color: var(--muted); }
.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; } }
@media (min-width: 1040px) { .review-grid { grid-template-columns: repeat(3, 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(22,48,31,0.94), rgba(44,85,64,0.82)); }
.orders-inner { position: relative; z-index: 2; max-width: 720px; text-align: center; }
.orders-inner .body { margin-left: auto; margin-right: auto; }
.orders-inner .btn { margin-top: 1.4rem; }
.orders-inner .micro { margin-top: 1.1rem; }

/* ---------- 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(--green); }
.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; }
.visit-ig { margin-top: 1.4rem; font-size: 0.98rem; color: var(--muted); }
.visit-ig a { color: var(--green); text-decoration: none; font-weight: 500; }
.visit-ig a:hover { text-decoration: underline; }
.visit-copy .btn { margin-top: 1.6rem; }
.visit-map { min-height: 360px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px -34px rgba(20,40,25,0.5); position: relative; }
.visit-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: saturate(0.95); }
.map-link {
  position: absolute; right: 0.7rem; bottom: 0.7rem; z-index: 3;
  background: var(--cream); color: var(--green);
  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(20,40,25,0.5);
  transition: background .3s ease, color .3s ease;
}
.map-link:hover { background: var(--green); color: var(--cream); }

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

/* ---------- FOOTER ---------- */
.footer { background: var(--green-deep); color: var(--cream); text-align: center; padding: clamp(3rem, 7vw, 5rem) var(--pad); }
.foot-brand { font-family: var(--script); font-size: 1.9rem; color: var(--cream); }
.foot-brand span { font-family: var(--sans); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.4em; color: var(--yellow-soft); display: inline-block; margin-left: 0.4rem; vertical-align: middle; }
.foot-tag { margin-top: 0.7rem; color: rgba(250,246,234,0.8); font-size: 0.95rem; }
.foot-contact { list-style: none; margin: 1.8rem auto 0; max-width: 460px; display: grid; gap: 0.6rem; }
.foot-contact li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(250,246,234,0.14); font-size: 0.95rem; }
.foot-contact li span { color: rgba(250,246,234,0.6); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.76rem; align-self: center; }
.foot-contact li a { color: var(--yellow-soft); text-decoration: none; }
.foot-contact li a:hover { text-decoration: underline; }
.foot-fine { margin-top: 1.4rem; color: rgba(250,246,234,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 ---------- */
.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; }
}

@media (max-width: 900px) {
  .hero-media img, .orders-media img { height: 100%; }
}
