/* ============================================================================
   GOSTINHO DO CÉU — Landing Page
   ----------------------------------------------------------------------------
   Sumário
     01. Design tokens        06. Produtos          10. CTA final
     02. Reset + base         07. Destaque          11. Rodapé
     03. Utilitários          08. Sobre             12. Modal de pedido
     04. Botões               09. Instagram         13. Animações
     05. Header + Hero
   ========================================================================== */

/* ==========================================================================
   01. DESIGN TOKENS  —  mudar aqui muda o site inteiro
   ========================================================================== */
:root {
  /* paleta da marca
     A escala mantém o matiz do azul da logo, só sobe a intensidade.
     --color-sky-logo é o tom exato da logo, usado atrás do selo.
     Os fundos das seções usam 100/200/300 — é o que faz a página ler
     como AZUL e não como branco. */
  --color-sky-logo:  #D2F0F0;
  --color-sky-50:    #DFF3F7;   /* seção mais clara — já é azul, não branco */
  --color-sky-100:   #C6E9F1;
  --color-sky-200:   #A3DCE8;   /* azul da marca, presença forte */
  --color-sky-300:   #7BCBDC;
  --color-sky-400:   #4FB2C7;
  --color-sky-700:   #25555F;   /* azul escuro legível sobre qualquer tom da escala */
  --color-gold:      #B4A064;   /* dourado da logo */
  --color-gold-soft: #E7DDC0;
  --color-gold-deep: #8E7A46;
  --color-gold-ink:  #70602F;   /* dourado escurecido: contraste AA inclusive sobre o azul forte */
  --color-white:     #FFFFFF;
  --color-cream:     #FAFAF7;
  --color-ink:       #2A2F36;
  --color-ink-soft:  #434B55;
  --color-muted:     #515B64;   /* escurecido: passa AA sobre o azul claro */

  /* papéis semânticos — use estes nos componentes */
  --color-primary:    var(--color-sky-200);
  --color-secondary:  var(--color-sky-100);
  --color-background: var(--color-sky-50);
  --color-surface:    var(--color-white);
  --color-gold-accent: var(--color-gold);
  --color-text:       var(--color-ink);
  --color-muted-text: var(--color-muted);
  --color-border:     #E8E4D9;

  /* tipografia */
  --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-script:  "Parisienne", "Segoe Script", cursive;

  --fs-100: 0.8125rem;
  --fs-200: 0.875rem;
  --fs-300: 1rem;
  --fs-400: clamp(1.0625rem, 1.01rem + 0.25vw, 1.1875rem);
  --fs-500: clamp(1.1875rem, 1.09rem + 0.45vw, 1.4375rem);
  --fs-600: clamp(1.4rem, 1.24rem + 0.8vw, 1.95rem);
  --fs-700: clamp(1.95rem, 1.6rem + 1.7vw, 2.9rem);
  --fs-800: clamp(2.45rem, 1.85rem + 2.9vw, 4.1rem);

  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* espaçamento */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(3.5rem, 2.4rem + 5vw, 7rem);
  --gutter: clamp(1.15rem, 0.7rem + 2vw, 2.5rem);
  --wrap: 1200px;

  /* formas */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(42, 47, 54, 0.05), 0 4px 12px -6px rgba(60, 110, 114, 0.16);
  --shadow-md: 0 2px 6px rgba(42, 47, 54, 0.04), 0 10px 30px -14px rgba(60, 110, 114, 0.3);
  --shadow-lg: 0 6px 18px -10px rgba(42, 47, 54, 0.1), 0 28px 64px -28px rgba(60, 110, 114, 0.38);
  --shadow-gold: 0 10px 26px -12px rgba(142, 122, 70, 0.55);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 0.18s;
  --dur: 0.32s;
  --dur-slow: 0.7s;

  /* breakpoints de referência: sm 480 · md 720 · lg 1024 · xl 1280 · 2xl 1600 */
}

/* ==========================================================================
   02. RESET + BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-300);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
picture,
video { display: block; max-width: 100%; height: auto; }

/* NÃO pinte fundo em todas as <img>: a logo tem cantos transparentes e
   apareceria um quadrado atrás dela. A cor de espera vai só nas fotos. */
.hero__media img,
.card__media img,
.feature__media img,
.about__media img,
.social__grid img { background-color: var(--color-sky-100); }

button,
input,
select,
textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  line-height: var(--lh-snug);
  text-wrap: balance;
  font-weight: 600;
}

p { text-wrap: pretty; }

a {
  color: var(--color-gold-ink);
  text-underline-offset: 0.18em;
}
a:hover { color: var(--color-gold-deep); }

:where(a, button, [tabindex], summary):focus-visible {
  outline: 3px solid var(--color-gold-deep);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

section { scroll-margin-top: 92px; }

::selection { background: var(--color-sky-200); color: var(--color-ink); }

/* ==========================================================================
   03. UTILITÁRIOS
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); position: relative; }
/* Fundos das seções. A página alterna azul claro e azul médio; os cards,
   o modal e os botões continuam brancos para o conteúdo respirar. */
.section--tint { background: var(--color-sky-50); }
.section--sky-soft {
  background: linear-gradient(180deg, var(--color-sky-50) 0%, var(--color-sky-100) 100%);
}
/* utilitários: use se quiser devolver uma seção ao branco/creme */
.section--cream { background: var(--color-cream); }
.section--white { background: var(--color-surface); }
.section--sky {
  background: linear-gradient(180deg, var(--color-sky-100) 0%, var(--color-sky-200) 52%, var(--color-sky-100) 100%);
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--color-surface);
  color: var(--color-ink);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.15rem);
  line-height: 1.1;
  color: var(--color-gold-ink);
  font-weight: 400;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-100);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-sky-700);
}
.kicker::before,
.kicker::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.75;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-700);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: var(--lh-tight);
  margin-block: var(--sp-3) var(--sp-4);
}

.section-lead {
  font-size: var(--fs-400);
  color: var(--color-ink-soft);
  max-width: 58ch;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem);
}
.section-head .section-lead { margin-inline: auto; }

/* sprite de ícones: presente no DOM, invisível na página */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* atrasos escalonados da animação de entrada (sem style inline, por causa da CSP) */
.reveal--d1 { --reveal-delay: 60ms; }
.reveal--d2 { --reveal-delay: 120ms; }

.section-head--flush { margin-bottom: 0; }
.about__text p + p { margin-top: var(--sp-4); }

/* nuvem decorativa — usada com parcimônia, sempre aria-hidden */
.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.deco svg { width: 100%; height: auto; }

/* ==========================================================================
   04. BOTÕES
   ========================================================================== */
.btn {
  --btn-bg: var(--color-surface);
  --btn-fg: var(--color-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0.95rem 1.9rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-weight: 700;
  font-size: var(--fs-400);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

/* CTA principal: dourado da marca + texto escuro (contraste AA) */
.btn--primary {
  --btn-fg: #241F12;
  background-image: linear-gradient(135deg, #D3C088 0%, var(--color-gold) 48%, #A38D51 100%);
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.8s var(--ease);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px rgba(142, 122, 70, 0.65);
}
.btn--primary:hover::after { transform: translateX(130%); }
.btn--primary:active { transform: translateY(0) scale(0.985); box-shadow: var(--shadow-sm); }

.btn--ghost {
  --btn-fg: var(--color-sky-700);
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1.5px var(--color-sky-300), var(--shadow-sm);
}
.btn--ghost:hover { background: var(--color-sky-50); transform: translateY(-2px); }
.btn--ghost:active { transform: translateY(0) scale(0.985); }

.btn--lg { min-height: 62px; padding: 1.1rem 2.4rem; font-size: var(--fs-500); }
.btn--block { display: flex; width: 100%; }

@media (min-width: 480px) {
  .btn--block { display: inline-flex; width: auto; }
}

/* ==========================================================================
   05. HEADER + HERO
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(233, 246, 249, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(143, 210, 224, 0.7);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}
.site-header.is-visible { transform: translateY(0); opacity: 1; visibility: visible; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 68px;
  padding-block: 0.6rem;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-ink);
}
.site-header__brand img { width: 44px; height: 44px; border-radius: 50%; }
.site-header__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.site-header .btn { min-height: 46px; padding: 0.55rem 1.3rem; font-size: var(--fs-200); }

@media (max-width: 360px) {
  .site-header__name { display: none; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.25rem, 1.5rem + 4vw, 5.5rem) clamp(3rem, 2rem + 4vw, 6rem);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 56%),
    linear-gradient(168deg, var(--color-sky-300) 0%, var(--color-sky-200) 34%, var(--color-sky-100) 72%, var(--color-sky-50) 100%);
}
.hero::after {
  /* borda curva orgânica na base */
  content: "";
  position: absolute;
  inset-inline: -5%;
  bottom: -1px;
  height: clamp(40px, 6vw, 90px);
  background: var(--color-sky-50);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  justify-items: center;
  text-align: center;
}

.hero__logo {
  width: clamp(122px, 30vw, 172px);
  height: auto;
  aspect-ratio: 1;
  filter: drop-shadow(0 12px 26px rgba(60, 110, 114, 0.22));
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-800);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  margin-block: 0.4rem 0;
  max-width: 16ch;
}
.hero__title em {
  font-style: normal;
  color: var(--color-gold-ink);
}

.hero__lead {
  font-size: var(--fs-400);
  color: var(--color-ink-soft);
  max-width: 44ch;
  margin-top: var(--sp-4);
}

.hero__media {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
}
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 44vh;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: calc(var(--r-xl) + 10px);
  border: 1px solid var(--color-gold);
  opacity: 0.45;
  pointer-events: none;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
}
.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-200);
  color: var(--color-sky-700);
}

/* nuvens do hero */
.hero__cloud {
  position: absolute;
  z-index: 0;
  color: #fff;
  opacity: 0.75;
  pointer-events: none;
}
.hero__cloud--a { top: 8%;  left: -6%;  width: clamp(130px, 26vw, 260px); }
.hero__cloud--b { top: 3%;  right: -8%; width: clamp(110px, 22vw, 220px); opacity: 0.55; }
.hero__cloud--c { bottom: 18%; left: 4%; width: clamp(80px, 14vw, 150px); opacity: 0.45; }

.hero__star {
  position: absolute;
  color: var(--color-gold);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.hero__star--a { top: 16%; right: 12%; width: 20px; }
.hero__star--b { top: 30%; left: 10%;  width: 13px; }
.hero__star--c { bottom: 30%; right: 7%; width: 16px; }

/* sentinela invisível que dispara o header fixo */
#heroSentinel { height: 1px; margin-top: -1px; }

@media (min-width: 720px) {
  .hero__media img { max-height: none; aspect-ratio: 4 / 5; }
}

/* Desktop: composição em duas colunas */
@media (min-width: 1024px) {
  .hero { padding-block: 6rem 7.5rem; }
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    text-align: left;
    justify-items: start;
    column-gap: clamp(2.5rem, 1rem + 4vw, 5rem);
    row-gap: 0;
  }
  .hero__copy { display: grid; justify-items: start; grid-column: 1; align-self: end; }
  .hero__logo { width: 150px; }
  .hero__title { max-width: 13ch; }
  .hero__actions {
    grid-column: 1;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    width: auto;
    margin-top: var(--sp-6);
    align-self: start;
    gap: var(--sp-4);
  }
  .hero__media {
    width: 100%;
    max-width: 520px;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .hero__media img { aspect-ratio: 5 / 6; }
  .hero__cloud--c { bottom: 8%; left: 40%; }
}

@media (min-width: 1600px) {
  .hero__inner { gap: 6rem; }
  .hero__media { max-width: 580px; }
}

/* ==========================================================================
   06. PRODUTOS
   ========================================================================== */
.products__grid {
  display: grid;
  gap: clamp(1.1rem, 0.6rem + 2vw, 2rem);
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 900px já comporta 3 colunas de ~260px: com 3 produtos, evita o card órfão */
@media (min-width: 900px) {
  .products__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card__media { position: relative; overflow: hidden; }
.card__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }

.card__badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-gold-ink);
  font-size: var(--fs-100);
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}
.card__badge svg { width: 12px; height: 12px; fill: currentColor; }

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: clamp(1.1rem, 0.8rem + 1vw, 1.6rem);
  flex: 1;
}
.card__name {
  font-family: var(--font-display);
  font-size: var(--fs-600);
  font-weight: 600;
  line-height: 1.2;
}
.card__desc {
  color: var(--color-ink-soft);
  font-size: var(--fs-200);
  line-height: 1.6;
  flex: 1;
}
.card__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* sem preço, o botão fica à direita */
  gap: var(--sp-3);
  margin-top: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--color-border);
}
.card__price {
  margin-right: auto;          /* com preço, ele vai para a esquerda */
  font-weight: 700;
  color: var(--color-gold-ink);
  font-size: var(--fs-400);
  font-variant-numeric: tabular-nums;
}
.card__cta {
  border: 0;
  background: none;
  /* 44px mínimos de alvo de toque, sem mudar o desenho */
  min-height: 44px;
  padding: 0.5rem;
  margin-right: -0.5rem;
  font-size: var(--fs-200);
  font-weight: 700;
  color: var(--color-sky-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.card__cta:hover { gap: 0.6rem; color: var(--color-gold-ink); }
.card__cta svg { width: 14px; height: 14px; fill: currentColor; }

.products__foot { text-align: center; margin-top: clamp(2rem, 1.2rem + 3vw, 3.25rem); }

/* ==========================================================================
   07. DESTAQUE (desejo)
   ========================================================================== */
.feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-sky-200);
}
.feature__media {
  position: relative;
}
.feature__media img {
  width: 100%;
  aspect-ratio: 4 / 3;     /* mais baixa no celular: não toma a tela inteira */
  max-height: 40vh;
  object-fit: cover;
}
.feature__panel {
  position: relative;
  padding: clamp(2rem, 1.4rem + 3vw, 3.5rem) var(--gutter) clamp(2.5rem, 1.6rem + 4vw, 4rem);
  text-align: center;
  background: linear-gradient(180deg, var(--color-sky-200) 0%, var(--color-sky-100) 100%);
}
.feature__title {
  font-family: var(--font-display);
  font-size: var(--fs-700);
  font-weight: 600;
  line-height: var(--lh-tight);
  max-width: 20ch;
  margin-inline: auto;
}
.feature__lead {
  margin-block: var(--sp-4) var(--sp-6);
  color: var(--color-ink-soft);
  font-size: var(--fs-400);
  max-width: 48ch;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .feature { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .feature__media img { height: 100%; max-height: none; aspect-ratio: auto; min-height: 440px; }
  .feature__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: clamp(3rem, 1rem + 5vw, 6rem);
    background: linear-gradient(140deg, var(--color-sky-100) 0%, var(--color-sky-200) 100%);
  }
  .feature__title,
  .feature__lead { margin-inline: 0; }
}

/* ==========================================================================
   08. SOBRE
   ========================================================================== */
.about__grid {
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
.about__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 0.4rem + 1.5vw, 1.25rem);
}
.about__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); width: 100%; }
.about__media img:first-child { aspect-ratio: 3 / 4; object-fit: cover; grid-row: span 2; }
.about__media img:last-child { aspect-ratio: 4 / 3; object-fit: cover; align-self: center; }

.about__values {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  padding: 0;
  list-style: none;
}
.about__values li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--fs-300);
  color: var(--color-ink-soft);
}
.about__values svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 0.22rem;
  fill: var(--color-gold);
}
.about__values strong { color: var(--color-ink); font-weight: 700; }

@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(3rem, 1rem + 5vw, 5.5rem); }
  .about__media { order: -1; }
  .about__values { grid-template-columns: 1fr; }
}

/* ==========================================================================
   09. INSTAGRAM
   ========================================================================== */
.social { text-align: center; }
.social__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 0.35rem + 1vw, 1rem);
  margin-block: clamp(1.75rem, 1rem + 3vw, 2.75rem);
}
.social__grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease);
}
.social__grid a:hover img { transform: scale(1.03); }

@media (min-width: 600px) {
  .social__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.social__handle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--sp-4);
  font-size: var(--fs-200);
  color: var(--color-sky-700);
}

/* ==========================================================================
   10. CTA FINAL
   ========================================================================== */
.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(165deg, var(--color-sky-300) 0%, var(--color-sky-200) 42%, var(--color-sky-100) 100%);
}
.final__title {
  font-family: var(--font-display);
  font-size: var(--fs-700);
  font-weight: 600;
  line-height: var(--lh-tight);
  max-width: 18ch;
  margin-inline: auto;
}
.final__lead {
  margin-block: var(--sp-4) var(--sp-6);
  color: var(--color-ink-soft);
  font-size: var(--fs-400);
  max-width: 46ch;
  margin-inline: auto;
}
.final__cloud {
  position: absolute;
  color: #fff;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.final__cloud--a { top: 12%; left: -4%; width: clamp(120px, 20vw, 220px); }
.final__cloud--b { bottom: 8%; right: -5%; width: clamp(100px, 18vw, 190px); opacity: 0.42; }
.final .wrap { position: relative; z-index: 1; }

/* ==========================================================================
   11. RODAPÉ
   ========================================================================== */
.footer {
  background: var(--color-sky-50);
  border-top: 1px solid var(--color-border);
  padding-block: clamp(2.5rem, 1.6rem + 3vw, 3.75rem);
  font-size: var(--fs-200);
  color: var(--color-muted-text);
}
.footer__top {
  display: grid;
  gap: var(--sp-6);
  justify-items: center;
  text-align: center;
}
.footer__brand { display: grid; justify-items: center; gap: var(--sp-3); }
.footer__brand img { width: 72px; height: 72px; border-radius: 50%; }
.footer__tagline { font-family: var(--font-script); font-size: 1.45rem; color: var(--color-gold-ink); }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  padding: 0;
  margin: 0;
  list-style: none;
}
.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--color-surface);
  color: var(--color-sky-700);
  text-decoration: none;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(143, 210, 224, 0.9);
  transition: background-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.footer__links a:hover { background: var(--color-sky-200); transform: translateY(-2px); }
.footer__links svg { width: 17px; height: 17px; fill: currentColor; }

.footer__info { display: grid; gap: 0.35rem; }

.footer__bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  justify-content: center;
  text-align: center;
  font-size: var(--fs-100);
}

@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
    align-items: center;
    gap: var(--sp-7);
  }
  .footer__brand { justify-items: start; }
  .footer__right { display: grid; gap: var(--sp-4); justify-items: end; width: 100%; }
  .footer__links { justify-content: flex-end; }
  .footer__info { text-align: right; }
  .footer__bottom { justify-content: space-between; text-align: left; }
}

/* ==========================================================================
   12. MODAL DE PEDIDO  (bottom sheet no mobile, diálogo no desktop)
   ========================================================================== */
.order-dialog {
  width: 100%;
  max-width: 100%;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.order-dialog::backdrop {
  background: rgba(24, 43, 45, 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* A animação é feita com @keyframes, não com transition + classe via JS.
   A ENTRADA não usa fill-mode de propósito: o estado de repouso do painel é
   "visível", então ele nunca fica preso fora da tela se a animação não rodar.
   A SAÍDA usa "both" para segurar o painel escondido até o close() do JS. */
.order-dialog[open]::backdrop { animation: gdc-fade-in var(--dur) var(--ease); }
.order-dialog.is-closing::backdrop { animation: gdc-fade-out var(--dur) var(--ease) both; }

.order-dialog__panel {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--sp-5) var(--sp-5) calc(var(--sp-5) + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -18px 50px -20px rgba(24, 43, 45, 0.45);
  max-height: 88dvh;
  overflow-y: auto;
}
.order-dialog[open] .order-dialog__panel { animation: gdc-sheet-in var(--dur) var(--ease); }
.order-dialog.is-closing .order-dialog__panel { animation: gdc-sheet-out var(--dur) var(--ease) both; }

@keyframes gdc-fade-in  { from { opacity: 0 } to { opacity: 1 } }
@keyframes gdc-fade-out { from { opacity: 1 } to { opacity: 0 } }
@keyframes gdc-sheet-in  { from { transform: translateY(100%) } to { transform: none } }
@keyframes gdc-sheet-out { from { transform: none } to { transform: translateY(100%) } }

.order-dialog__grip {
  width: 42px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--color-sky-300);
  margin: 0 auto var(--sp-4);
}

.order-dialog__head { text-align: center; margin-bottom: var(--sp-5); padding-inline: var(--sp-5); }
.order-dialog__title {
  font-family: var(--font-display);
  font-size: var(--fs-600);
  font-weight: 600;
  line-height: 1.2;
}
.order-dialog__sub { margin-top: var(--sp-2); color: var(--color-ink-soft); font-size: var(--fs-200); }

.order-dialog__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--color-sky-50);
  color: var(--color-sky-700);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}
.order-dialog__close:hover { background: var(--color-sky-100); }
.order-dialog__close svg { width: 17px; height: 17px; fill: currentColor; }

.order-options { display: grid; gap: var(--sp-3); list-style: none; padding: 0; margin: 0; }

.order-option {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  width: 100%;
  min-height: 72px;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--color-ink);
  background: var(--color-cream);
  box-shadow: inset 0 0 0 1.5px var(--color-border);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}
.order-option:hover { transform: translateY(-2px); background: var(--color-white); box-shadow: var(--shadow-md); }
.order-option:active { transform: translateY(0) scale(0.99); }

.order-option__icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.order-option__icon svg { width: 24px; height: 24px; }
.order-option--ifood .order-option__icon svg { fill: #EA1D2C; }
.order-option--whats .order-option__icon svg { fill: #1FA855; }

.order-option__text { display: grid; gap: 0.15rem; min-width: 0; }
.order-option__label { font-weight: 700; font-size: var(--fs-400); }
.order-option__meta { font-size: var(--fs-100); color: var(--color-muted-text); }
.order-option__arrow { margin-left: auto; flex: none; width: 18px; height: 18px; fill: var(--color-gold); }

.order-dialog__foot {
  margin-top: var(--sp-5);
  text-align: center;
  font-size: var(--fs-100);
  color: var(--color-muted-text);
}

@media (min-width: 720px) {
  .order-dialog {
    max-width: 480px;
    margin: auto;
  }
  .order-dialog__panel {
    border-radius: var(--r-xl);
    padding: var(--sp-6);
    box-shadow: var(--shadow-lg);
  }
  .order-dialog__grip { display: none; }

  @keyframes gdc-sheet-in {
    from { transform: translateY(14px) scale(0.98); opacity: 0 }
    to   { transform: none; opacity: 1 }
  }
  @keyframes gdc-sheet-out {
    from { transform: none; opacity: 1 }
    to   { transform: translateY(14px) scale(0.98); opacity: 0 }
  }
}

/* trava a rolagem do fundo enquanto o modal está aberto */
body.is-locked { overflow: hidden; }

/* ==========================================================================
   13. ANIMAÇÕES
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* sem JS, nada some */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .order-dialog__panel { transform: none; opacity: 1; }
  .btn--primary::after { display: none; }
}
