/* ============================================================
   CAFÉ ACONCHEGO — style.css
   Fermentação natural & farinhas orgânicas · Alphaville/SP
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* ---- Tokens ---- */
:root {
  --burg:       #7D1F1F;
  --burg-dk:    #5C1414;
  --cream:      #F5F0E8;
  --cream-dk:   #EDE6D7;
  --ivory:      #FDFAF4;
  --brown:      #2A1A0E;
  --brown-mid:  #6B3A28;
  --brown-lt:   #B07560;
  --amber:      #C4861A;
  --txt:        #1E0F08;
  --txt-mid:    #5A3A28;
  --txt-lt:     #9A7A6A;

  --f-disp: 'Cormorant Garamond', Georgia, serif;
  --f-body: 'Lora', Georgia, serif;

  --wrap:   1200px;
  --pad:    clamp(1.25rem, 5vw, 4rem);
  --gap:    clamp(4rem, 10vw, 8rem);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ivory);
  color: var(--txt);
  font-family: var(--f-body);
  font-size: clamp(0.92rem, 1vw + 0.4rem, 1.05rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Grain overlay ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.038;
  pointer-events: none;
  z-index: 9999;
}

/* ---- Container ---- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--f-disp);
  font-weight: 500;
  line-height: 1.08;
}
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); }

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--txt-mid);
  display: block;
  margin-bottom: 0.9rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.9rem;
  font-family: var(--f-body);
  font-size: 0.73rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-burg  { background: var(--burg);  color: #fff; }
.btn-burg:hover  { background: var(--burg-dk); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--txt); color: var(--txt); }
.btn-outline:hover { background: var(--txt); color: var(--ivory); }
.btn-ghost  { border: 1px solid rgba(255,255,255,0.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-wpp  { background: #25D366; color: #fff; gap: 0.6rem; }
.btn-wpp:hover { background: #1ebe5c; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--burg); }
.btn-white:hover { background: var(--cream); transform: translateY(-2px); }

/* ---- Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.on { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.45s; }

/* ---- Rule ---- */
.rule { width: 44px; height: 1px; background: var(--burg); margin: 1.25rem 0; }
.rule-c { margin-left: auto; margin-right: auto; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
.nav.solid {
  background: var(--ivory);
  box-shadow: 0 1px 0 var(--cream-dk);
  padding: 1rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.nav-brand { display: flex; flex-direction: column; line-height: 1; }
.nav-name {
  font-family: var(--f-disp);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  transition: color 0.4s;
}
.nav.solid .nav-name { color: var(--brown); }
.nav-tag {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 0.18rem;
  transition: color 0.4s;
}
.nav.solid .nav-tag { color: var(--txt-lt); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.25s;
}
.nav.solid .nav-links a { color: var(--txt-mid); }
.nav-links a:hover,
.nav.solid .nav-links a:hover { color: var(--burg); }

.nav-action {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  transition: all 0.3s;
}
.nav.solid .nav-action { border-color: var(--burg); color: var(--burg); }
.nav-action:hover { background: var(--burg); border-color: var(--burg); color: #fff; }

/* Hamburger */
.nav-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-ham span {
  display: block;
  width: 23px;
  height: 1.5px;
  background: #fff;
  transition: all 0.3s;
}
.nav.solid .nav-ham span { background: var(--brown); }

/* Mobile overlay */
.nav-links.open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: var(--brown);
  z-index: 999;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}
.nav-links.open li a {
  font-size: 1.6rem !important;
  color: #fff !important;
  letter-spacing: 0.08em;
}
.nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: rgba(255,255,255,0.6);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
}
.hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 8, 3, 0.88) 0%,
    rgba(20, 8, 3, 0.48) 45%,
    rgba(20, 8, 3, 0.18) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--pad) clamp(3rem, 9vh, 6rem);
}
.hero-label {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: block;
  margin-bottom: 1.2rem;
  animation: fadeUp 1s ease 0.3s both;
}
.hero-h1 {
  font-family: var(--f-disp);
  font-size: clamp(3.2rem, 9vw, 8rem);
  font-weight: 400;
  color: #fff;
  line-height: 0.93;
  margin-bottom: 1.5rem;
  animation: fadeUp 1s ease 0.5s both;
}
.hero-h1 em { font-style: italic; color: rgba(255,255,255,0.65); }
.hero-sub {
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.07em;
  max-width: 440px;
  margin-bottom: 2.25rem;
  animation: fadeUp 1s ease 0.7s both;
}
.hero-btns {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  animation: fadeUp 1s ease 0.9s both;
}

/* ============================================================
   PILLARS
   ============================================================ */
.pillars {
  background: var(--cream);
  padding: var(--gap) 0;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pillar {
  background: var(--ivory);
  padding: 2.25rem 2rem 2.5rem;
  border-top: 2px solid var(--burg);
}
.pillar-ico { font-size: 1.4rem; margin-bottom: 1.2rem; }
.pillar h3 { font-size: 1.35rem; margin-bottom: 0.65rem; }
.pillar p { font-size: 0.88rem; color: var(--txt-mid); line-height: 1.72; }

/* ============================================================
   EDITORIAL GRID
   ============================================================ */
.editorial { padding: var(--gap) 0; }
.ed-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.ed-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.6rem;
}
.ed-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.ed-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.ed-item:hover img { transform: scale(1.05); }
.ed-cap {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,8,3,0.72) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.ed-item:hover .ed-cap { opacity: 1; }
.ed-cap span {
  font-family: var(--f-disp);
  font-style: italic;
  font-size: 1.15rem;
  color: #fff;
}
/* Grid layout */
.ed-item:nth-child(1) { grid-column: 1 / 7; aspect-ratio: 4/3; }
.ed-item:nth-child(2) { grid-column: 7 / 10; aspect-ratio: 3/4; }
.ed-item:nth-child(3) { grid-column: 10 / 13; aspect-ratio: 3/4; }
.ed-item:nth-child(4) { grid-column: 1 / 5; aspect-ratio: 4/3; }
.ed-item:nth-child(5) { grid-column: 5 / 13; aspect-ratio: 16/7; }

/* ============================================================
   STORY TEASER (home)
   ============================================================ */
.story-home {
  background: var(--brown);
  padding: var(--gap) 0;
  overflow: hidden;
}
.story-home-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.story-frame {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.story-frame img { width: 100%; height: 100%; object-fit: cover; }
.story-frame::after {
  content: '';
  position: absolute;
  inset: 0.6rem;
  border: 1px solid rgba(255,255,255,0.14);
  pointer-events: none;
}
.story-text .eyebrow { color: var(--brown-lt); }
.story-text h2 { color: var(--cream); margin-bottom: 1.25rem; }
.story-text p { color: rgba(255,255,255,0.6); font-size: 0.93rem; margin-bottom: 0.9rem; }
.story-text blockquote {
  border-left: 2px solid var(--burg);
  padding: 0.25rem 0 0.25rem 1.25rem;
  font-family: var(--f-disp);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--cream);
  margin: 1.75rem 0;
  line-height: 1.4;
}
.story-text .btn { margin-top: 0.5rem; }

/* ============================================================
   VISIT (home)
   ============================================================ */
.visit { padding: var(--gap) 0; background: var(--cream); }
.visit-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}
.visit-info h2 { margin-bottom: 1rem; }
.visit-info > p { color: var(--txt-mid); margin-bottom: 2rem; font-size: 0.93rem; }
.info-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.info-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-lt);
  margin-bottom: 0.2rem;
}
.info-val { font-size: 0.93rem; color: var(--txt); }
.map-box {
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 20px 50px rgba(0,0,0,0.13);
}
.map-box iframe { width: 100%; height: 100%; border: none; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--brown);
  color: rgba(255,255,255,0.65);
  padding: 4rem 0 2rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 5fr 3fr 3fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  margin-bottom: 2rem;
}
.foot-name {
  font-family: var(--f-disp);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.3rem;
}
.foot-subtag {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown-lt);
  margin-bottom: 1.2rem;
}
.foot-desc { font-size: 0.88rem; line-height: 1.72; }
.foot-col h5 {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-lt);
  margin-bottom: 1rem;
  font-family: var(--f-body);
  font-weight: 400;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 0.45rem; font-size: 0.88rem; }
.foot-col a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}
.foot-socials { display: flex; gap: 0.75rem; }
.foot-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.55);
  transition: all 0.3s;
}
.foot-socials a:hover { border-color: var(--burg); background: var(--burg); color: #fff; }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.pg-header {
  background: var(--brown);
  padding: 9rem var(--pad) 4rem;
  text-align: center;
}
.pg-header h1 { color: var(--cream); font-size: clamp(2.5rem, 7vw, 5.5rem); }
.pg-header .eyebrow { color: var(--brown-lt); justify-content: center; display: flex; }

/* ============================================================
   CARDÁPIO
   ============================================================ */
.menu-sec { padding: var(--gap) 0; }
.menu-sec.bg-cream { background: var(--cream); }
.menu-lead { max-width: 520px; margin-bottom: 2.75rem; }
.menu-lead p { color: var(--txt-mid); font-size: 0.93rem; }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.75rem;
}
.card {
  background: var(--ivory);
  overflow: hidden;
  border: 1px solid var(--cream-dk);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,0.1); }
.card-img { aspect-ratio: 4/3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.25rem 1.4rem 1.5rem; }
.card-name { font-family: var(--f-disp); font-size: 1.25rem; margin-bottom: 0.35rem; }
.card-desc { font-size: 0.83rem; color: var(--txt-mid); line-height: 1.65; margin-bottom: 0.65rem; }
.card-tag { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--burg); }

/* CTA banner */
.menu-banner {
  background: var(--burg);
  padding: 5rem 0;
  text-align: center;
}
.menu-banner h2 { color: #fff; margin-bottom: 0.85rem; }
.menu-banner p { color: rgba(255,255,255,0.72); max-width: 440px; margin: 0 auto 2rem; font-size: 0.93rem; }

/* ============================================================
   HISTÓRIA
   ============================================================ */
.hist-lead {
  padding: 5rem 0 3rem;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.hist-lead p {
  font-family: var(--f-disp);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.4;
  color: var(--txt);
}
.hist-chapters { padding-bottom: var(--gap); }
.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  padding: var(--gap) var(--pad);
  max-width: var(--wrap);
  margin: 0 auto;
}
.chapter.flip { direction: rtl; }
.chapter.flip > * { direction: ltr; }
.chap-img { overflow: hidden; aspect-ratio: 4/3; }
.chap-img img { width: 100%; height: 100%; object-fit: cover; }
.chap-text .eyebrow { margin-bottom: 0.75rem; }
.chap-text h2 { margin-bottom: 1.2rem; }
.chap-text p { color: var(--txt-mid); font-size: 0.93rem; margin-bottom: 0.9rem; }

/* Values */
.values-sec {
  background: var(--cream);
  padding: var(--gap) 0;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.val-card {
  background: var(--ivory);
  padding: 2rem 2.25rem;
  border-left: 3px solid var(--burg);
}
.val-card h3 { font-size: 1.3rem; margin-bottom: 0.65rem; }
.val-card p { font-size: 0.88rem; color: var(--txt-mid); line-height: 1.72; }

/* ============================================================
   CONTATO
   ============================================================ */
.contato-sec {
  padding: var(--gap) 0;
}
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}
.contato-info h2 { margin-bottom: 1.5rem; }
.contato-info > p { color: var(--txt-mid); margin-bottom: 2rem; font-size: 0.93rem; }
.info-card {
  background: var(--cream);
  padding: 1.75rem 2rem;
  margin-bottom: 0.85rem;
}
.info-card h4 {
  font-family: var(--f-body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burg);
  margin-bottom: 0.6rem;
  font-weight: 400;
}
.info-card p { font-size: 0.93rem; color: var(--txt-mid); line-height: 1.65; }
.info-card a { color: var(--txt); transition: color 0.2s; }
.info-card a:hover { color: var(--burg); }
.contato-map { position: sticky; top: 7rem; }
.contato-map iframe { width: 100%; aspect-ratio: 3/4; border: none; display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav-links, .nav-action { display: none; }
  .nav-ham { display: flex; }

  .pillars-grid { grid-template-columns: 1fr; gap: 1rem; }
  .ed-grid { grid-template-columns: 1fr 1fr; }
  .ed-item { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4/3 !important; }
  .story-home-inner,
  .visit-inner,
  .chapter,
  .contato-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .chapter.flip { direction: ltr; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ed-grid { grid-template-columns: 1fr; }
  .contato-map { position: static; }
  .foot-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero-h1 { font-size: clamp(2.6rem, 11vw, 4rem); }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
