/* ==========================================================
   Entre Amigas · Casa da Nina
   Tokens e medidas extraídos do protótipo no Figma.
   ========================================================== */

:root {
  --creme: #f4ebdd;
  --off-white: #fbf8f3;
  --areia: #e6d7c3;
  --terracota: #c0694b;
  --terracota-escuro: #9e4f36;
  --rosa: #c48b84;
  --salvia: #9aa98b;
  --oliva: #6e7752;
  --caramelo: #b8834c;
  --marrom: #4a3326;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 96px;
  --section-y: 80px;
  --radius-card: 24px;
  --radius-pill: 999px;

  --gradient-photo: linear-gradient(151deg, #e8d4b8 0%, #c48c80 39%, #99a88c 71%);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--off-white);
  color: var(--marrom);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--marrom); color: var(--off-white);
  padding: 8px 16px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--terracota); outline-offset: 3px; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font: 700 12px/16px var(--font-sans);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracota);
}
.eyebrow--light { color: var(--creme); }
.eyebrow--dark { color: var(--terracota-escuro); }

.display, .h1, .h2, .h3, .display-sm { font-family: var(--font-serif); font-variation-settings: "SOFT" 0, "WONK" 1; color: var(--marrom); }
.display { font-weight: 300; font-size: 72px; line-height: 80px; letter-spacing: -1px; }
.display-sm { font-weight: 300; font-size: 44px; line-height: 52px; letter-spacing: -.5px; }
.h1 { font-weight: 300; font-size: 52px; line-height: 60px; letter-spacing: -.5px; }
.h2 { font-size: 36px; line-height: 44px; }
.h3 { font-size: 24px; line-height: 32px; }

.lead { font-size: 20px; line-height: 32px; }
.lead--areia { color: var(--areia); }
.lead--creme { color: var(--creme); }
.body { font-size: 16px; line-height: 26px; }
.small { font-size: 14px; line-height: 22px; color: var(--oliva); }
.note { font-size: 14px; line-height: 22px; color: var(--oliva); }

.on-dark { color: var(--off-white); }
.small.on-dark { color: var(--creme); }
.center { text-align: center; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font: 500 16px/20px var(--font-sans);
  letter-spacing: .2px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--terracota); color: var(--off-white); }
.btn--primary:hover { background: var(--terracota-escuro); }
.btn--secondary { border-color: var(--terracota-escuro); color: var(--terracota-escuro); background: transparent; }
.btn--secondary:hover { background: var(--terracota-escuro); color: var(--off-white); }
.btn--light { background: var(--off-white); color: var(--terracota-escuro); }
.btn--light:hover { background: var(--creme); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Logo (desenhado em CSS) ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { position: relative; width: 30px; height: 36px; flex: none; }
.logo__arc {
  position: absolute; inset: 0;
  border: 2px solid var(--terracota);
  border-radius: 15px 15px 0 0;
}
.logo__dot { position: absolute; top: 18px; width: 13px; height: 13px; border-radius: 50%; }
.logo__dot--a { left: 4px; background: var(--terracota); opacity: .85; }
.logo__dot--b { left: 13px; background: var(--salvia); mix-blend-mode: multiply; }
.logo__name {
  font-family: var(--font-serif); font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: 26px; line-height: normal; color: var(--marrom); white-space: nowrap;
}
.logo--light .logo__arc { border-color: var(--off-white); }
.logo--light .logo__dot--a { background: var(--rosa); }
.logo--light .logo__dot--b { background: var(--salvia); mix-blend-mode: normal; }
.logo--light .logo__name { color: var(--off-white); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 24px var(--gutter);
  background: var(--off-white);
  border-bottom: 1px solid var(--areia);
}
.site-header__brand { text-decoration: none; }
.site-header__nav { margin-left: auto; display: flex; align-items: center; gap: 32px; }
.nav-link {
  padding: 8px 0;
  font: 500 15px/20px var(--font-sans); letter-spacing: .2px;
  text-decoration: none; color: var(--marrom);
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.is-active { border-bottom-color: var(--terracota); }
.nav-toggle { display: none; }

/* ---------- Seções ---------- */
.section { padding: var(--section-y) var(--gutter); display: flex; flex-direction: column; gap: 48px; align-items: flex-start; }
.section--creme { background: var(--creme); }
.section--offwhite { background: var(--off-white); }
.section--areia { background: var(--areia); }
.section--marrom { background: var(--marrom); }

.section__head { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.section__head--center { align-items: center; text-align: center; }
.section__head--tight { gap: 16px; }

/* ---------- Grids e cards ---------- */
.grid { display: grid; gap: 20px; width: 100%; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--off-white);
  border: 1px solid var(--areia);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.card--pilar { padding: 32px; display: flex; flex-direction: column; gap: 16px; align-content: start; }
.card--pilar .h3 { margin-bottom: -10px; }
.card__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--creme); color: var(--terracota-escuro);
}
.card--foto { display: flex; flex-direction: column; }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Fotos / placeholders ---------- */
.photo { position: relative; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--placeholder {
  background: var(--gradient-photo);
  display: flex; align-items: flex-end; padding: 16px;
}
.photo__caption {
  background: var(--off-white); color: var(--marrom);
  font: 400 12px/22px var(--font-sans);
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.photo--card { height: 200px; border-radius: 0; }
.photo--hero { width: 560px; height: 640px; flex: none; border-radius: 280px 280px 32px 32px; padding: 24px; }
.photo--arch-sm { width: 480px; height: 400px; flex: none; border-radius: 240px 240px 24px 24px; }
.photo--arch-lg { width: 520px; height: 560px; flex: none; border-radius: 260px 260px 32px 32px; }
.photo--map { flex: 1; width: 100%; border-radius: 32px; min-height: 0; }

/* ---------- Hero ---------- */
.hero { display: flex; align-items: center; gap: 64px; padding: 80px var(--gutter); }
.hero__text { flex: 1; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; min-width: 0; }

/* ---------- Citação ---------- */
.quote { display: flex; align-items: center; gap: 80px; padding: 80px var(--gutter); }
.quote__text { flex: 1; display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* ---------- Passos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; width: 100%; }
.step { display: flex; flex-direction: column; gap: 16px; }
.step__num {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--terracota); color: var(--off-white);
  font: 400 24px/32px var(--font-serif); font-variation-settings: "SOFT" 0, "WONK" 1;
}

/* ---------- Nossa história ---------- */
.history { display: flex; align-items: center; gap: 80px; padding: 80px var(--gutter); }
.history__text { flex: 1; display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* ---------- Itens de cardápio ---------- */
.menu-item {
  display: flex; align-items: center; gap: 16px;
  padding: 12px;
  background: var(--off-white);
  border: 1px solid var(--areia);
  border-radius: 20px;
}
.menu-item__img { flex: none; width: 88px; height: 88px; border-radius: 14px; background: var(--gradient-photo); }
.menu-item__name { font: 400 20px/32px var(--font-serif); font-variation-settings: "SOFT" 0, "WONK" 1; }
.menu-item__desc { font-size: 14px; line-height: 22px; color: var(--oliva); }
.menu-item__price { font: 700 14px/22px var(--font-sans); color: var(--terracota-escuro); }
.grid--menu { align-items: start; }

.menu-intro { padding: 72px var(--gutter); display: flex; flex-direction: column; gap: 16px; }
.menu-cat { padding: 40px var(--gutter); display: flex; flex-direction: column; gap: 20px; }
.menu-cat__title { font-size: 32px; line-height: 40px; }

/* ---------- Localização ---------- */
.location { flex-direction: row; gap: 64px; align-items: flex-start; }
.location__text { flex: 1; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; min-width: 0; }
.info { width: 100%; padding: 20px 24px; border-radius: 20px; display: flex; flex-direction: column; gap: 6px; }
.info--creme { background: var(--creme); }
.info--areia { background: var(--areia); }
.info__title { font: 400 22px/32px var(--font-serif); font-variation-settings: "SOFT" 0, "WONK" 1; }
.info--areia .small { color: var(--marrom); }
.map {
  width: 560px; height: 520px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--areia); border-radius: 32px; overflow: hidden;
}
.map__title { font: 400 24px/32px var(--font-serif); font-variation-settings: "SOFT" 0, "WONK" 1; color: var(--terracota-escuro); }
.map .small { color: var(--marrom); }

/* ---------- Convite final ---------- */
.invite { background: var(--terracota-escuro); }
.invite__banner {
  height: 320px; display: grid; place-items: center; padding: 0 24px; text-align: center;
  background: linear-gradient(rgba(38, 23, 10, .55), rgba(38, 23, 10, .55)), var(--gradient-photo);
  background-size: cover; background-position: center;
}
.invite__banner p { font: 400 20px/32px var(--font-serif); font-variation-settings: "SOFT" 0, "WONK" 1; color: var(--off-white); }
.invite__body { padding: 80px var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 28px; }
.invite__body .h1 { max-width: 900px; }
.invite__body .lead { max-width: 760px; }
.invite--simple .invite__body { padding: 72px var(--gutter); gap: 16px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--marrom); color: var(--creme); padding: 48px var(--gutter); display: flex; flex-direction: column; gap: 32px; }
.site-footer__top { display: flex; gap: 32px; align-items: flex-start; }
.site-footer__brand { width: 360px; display: flex; flex-direction: column; gap: 24px; }
.footer-block { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 22px; }
.footer-col { width: 220px; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-col a { display: inline-block; padding: 8px 0; font: 500 15px/20px var(--font-sans); letter-spacing: .2px; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.site-footer__rule { width: 100%; height: 1px; border: 0; background: var(--areia); opacity: .25; margin: 0; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; line-height: 22px; }

/* ==========================================================
   Responsivo
   ========================================================== */
@media (max-width: 1200px) {
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .photo--hero { width: 440px; height: 560px; }
  .display { font-size: 60px; line-height: 68px; }
  .map { width: 440px; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; --section-y: 56px; }

  .display { font-size: 40px; line-height: 46px; }
  .display-sm { font-size: 34px; line-height: 42px; }
  .h1 { font-size: 34px; line-height: 42px; }
  .h2 { font-size: 28px; line-height: 36px; }
  .lead { font-size: 18px; line-height: 30px; }

  .site-header { padding: 16px var(--gutter); gap: 16px; }
  .logo__name { font-size: 22px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    margin-left: auto; width: 44px; height: 44px; padding: 0 9px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2.5px; border-radius: 2px; background: var(--marrom); }
  .site-header__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--off-white); border-bottom: 1px solid var(--areia);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .site-header__nav.is-open { display: flex; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid var(--areia); }
  .nav-cta { margin-top: 16px; }

  .hero, .quote, .history { flex-direction: column; align-items: stretch; gap: 40px; padding: 40px var(--gutter) 56px; }
  .history { padding: 56px var(--gutter); }
  .quote { padding: 56px var(--gutter); }
  .photo--hero, .photo--arch-sm, .photo--arch-lg { width: 100%; height: auto; aspect-ratio: 342 / 400; border-radius: 171px 171px 24px 24px; }
  .hero .btn-row .btn { flex: 1 1 100%; }

  .section { gap: 32px; }
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .section .btn { width: 100%; }

  .location { flex-direction: column; gap: 32px; }
  .map { width: 100%; height: 280px; }

  .menu-intro { padding: 40px var(--gutter); }
  .menu-cat { padding: 28px var(--gutter); }
  .menu-cat__title { font-size: 26px; line-height: 34px; }

  .invite__banner { height: 220px; }
  .invite__body { padding: 56px var(--gutter); }
  .invite--simple .invite__body { padding: 48px var(--gutter); }

  .site-footer__top { flex-direction: column; gap: 28px; }
  .site-footer__brand, .footer-col { width: 100%; }
  .site-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
