/* ==========================================================================
   Floricultura Magali — folha de estilo de produção
   Convertida do protótipo Claude Design (magali-redesign.dc.html).
   Ordem: tokens → base → utilitários → componentes (na ordem da página).
   ========================================================================== */

/* --------------------------------------------------------------- Tokens -- */
:root {
  /* Superfícies */
  --cream: #faf7f3;   /* fundo principal */
  --sand: #f3ece4;    /* fundo da seção Localização */
  --stone: #efe8e1;   /* placeholder de imagem */
  --ink: #1b1613;     /* texto e seção escura */
  --coal: #14100e;    /* rodapé */
  --ink-soft: #241c18;

  /* Marca */
  --red: #b5261b;
  --ember: #e0776b;   /* destaque sobre fundo escuro */
  --whats: #25d366;
  --whats-dark: #1ebe5b;

  /* Texto sobre claro */
  --t-70: rgba(27, 22, 19, 0.7);
  --t-65: rgba(27, 22, 19, 0.65);
  --t-62: rgba(27, 22, 19, 0.62);
  --t-45: rgba(27, 22, 19, 0.45);

  /* Traços sobre claro */
  --line-12: rgba(27, 22, 19, 0.12);
  --line-10: rgba(27, 22, 19, 0.1);
  --line-09: rgba(27, 22, 19, 0.09);
  --line-25: rgba(27, 22, 19, 0.25);

  /* Texto sobre escuro */
  --d-86: rgba(255, 255, 255, 0.86);
  --d-72: rgba(250, 247, 243, 0.72);
  --d-70: rgba(250, 247, 243, 0.7);
  --d-50: rgba(250, 247, 243, 0.5);
  --d-30: rgba(250, 247, 243, 0.3);
  --d-16: rgba(250, 247, 243, 0.16);
  --d-12: rgba(250, 247, 243, 0.12);

  /* Tipografia */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Jost, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Métrica */
  --wrap: 1240px;
  --gutter: 24px;
  --radius: 4px;
  --pill: 999px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--ink); }
img { display: block; max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1, h2, h3 { font-weight: 400; }
::selection { background: #e9ddd2; }

/* Foco visível e consistente — o protótipo não previa navegação por teclado. */
:where(a, button):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Conteúdo só para leitores de tela (pular para o conteúdo, rótulos). */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: var(--pill);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; color: var(--cream); }

@keyframes mgFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------- Utilitários -- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* O cabeçalho é sticky, então um link de âncora pararia com o título escondido
   atrás dele. scroll-margin-top reserva essa altura no destino da rolagem. */
:where(#topo, #servicos, #sobre, #galeria, #localizacao) { scroll-margin-top: 150px; }

/* Rótulo em caixa alta que abre cada seção. */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  margin: 0;
}

.section-lead {
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--t-65);
  margin: 0;
  max-width: 48ch;
  text-wrap: pretty;
}

/* Cabeçalho de seção: título à esquerda, texto de apoio à direita. */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* Botões ------------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 16px 30px;
  border-radius: var(--pill);
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--red); color: var(--cream); }

.btn--outline { border-color: var(--line-25); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }

.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--ink); color: #fff; }

.btn--sm { padding: 12px 24px; letter-spacing: 0.08em; }

/* Variantes sobre fundo escuro. */
.btn--ghost-light { border-color: var(--d-30); color: var(--cream); }
.btn--ghost-light:hover { background: var(--cream); color: var(--ink); }

/* ------------------------------------------------------------ Cabeçalho -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 247, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-09);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(27, 22, 19, 0.75);
  border-bottom: 1px solid rgba(27, 22, 19, 0.07);
}
.topbar__social { display: flex; gap: 18px; }
.topbar__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: rgba(27, 22, 19, 0.75);
}
.topbar__social a:hover { color: var(--red); }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}
.masthead__logo { display: block; flex: none; }
.masthead__logo img { height: 44px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a { color: var(--ink); }
.nav a:hover { color: var(--red); }

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.masthead__phone {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}
.masthead__phone:hover { color: var(--red); }

.masthead__cta {
  background: var(--red);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--pill);
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 0.25s ease;
}
.masthead__cta:hover { background: var(--ink); color: #fff; }

/* Botão do menu — só aparece no mobile. */
.nav-toggle { display: none; }

/* ----------------------------------------------------------------- Hero -- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 72px;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
}
.hero__kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--red);
  display: block;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  text-wrap: pretty;
  min-height: 1.04em;
}

.hero__sub {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  font-weight: 300;
  color: var(--t-70);
  margin: 0 0 36px;
  max-width: 46ch;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__dots { display: flex; align-items: center; gap: 10px; }
.hero__dot {
  width: 14px;
  height: 3px;
  border-radius: var(--pill);
  background: rgba(27, 22, 19, 0.22);
  transition: width 0.4s ease, background 0.4s ease;
}
.hero__dot[aria-current="true"] { width: 40px; background: var(--red); }
.hero__count {
  margin-left: 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(27, 22, 19, 0.72);
}

.hero__media {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.hero__frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame--main { grid-row: span 2; aspect-ratio: 3 / 4; }
.hero__frame--square { aspect-ratio: 1 / 1; }

/* ------------------------------------------------------------- Produtos -- */
.products {
  border-top: 1px solid var(--line-09);
  padding-top: 80px;
  padding-bottom: 88px;
}
.products .section-head { margin-bottom: 48px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 24px;
}

.product-card {
  border: 1px solid var(--line-12);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  transition: border-color 0.3s ease;
}
.product-card:hover { border-color: rgba(27, 22, 19, 0.34); }

.product-card__media {
  aspect-ratio: 4 / 3;
  background: var(--stone);
  overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }

.product-card__body { padding: 24px 24px 28px; }
.product-card__body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.2;
  margin: 0 0 9px;
}
.product-card__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--t-62);
}

/* -------------------------------------------------------------- História -- */
.story {
  background: var(--ink);
  color: var(--cream);
  padding-top: 88px;
  padding-bottom: 88px;
}
.story__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  align-items: center;
}
.story__figure { margin: 0; }
.story__figure > div {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-soft);
}
.story__figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.story__figure figcaption {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--d-50);
}

.story .eyebrow { color: var(--ember); }
.story__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  margin: 0 0 32px;
  color: var(--cream);
}

.stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--d-16);
}
.stats__value {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
  color: #fff;
}
.stats__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--d-70);
  margin-top: 8px;
}

.story__text p {
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
  color: var(--d-86);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.story__text p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------- Diferenciais -- */
.values {
  padding-top: 76px;
  padding-bottom: 76px;
  border-bottom: 1px solid var(--line-09);
}
.values__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.1;
  margin: 0 0 44px;
}
.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.value {
  border: 1px solid var(--line-12);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.value::before {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  background: var(--red);
  margin-bottom: 22px;
}
.value h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 8px;
}
.value p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--t-62);
}

/* -------------------------------------------------------------- Galeria -- */
.gallery {
  padding-top: 80px;
  padding-bottom: 92px;
}
.gallery .section-head { margin-bottom: 40px; }

.gallery__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: flex-start;
}

.gallery__filters {
  position: sticky;
  top: 120px;
  flex: 1 1 200px;
  max-width: 260px;
}
.gallery__filters-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-70);
  margin-bottom: 16px;
}
.gallery__cats { display: flex; flex-direction: column; gap: 2px; }

.cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 11px 14px;
  border-radius: 3px;
  font-size: 14px;
  letter-spacing: 0.02em;
  background: transparent;
  color: rgba(27, 22, 19, 0.72);
  transition: background 0.2s ease, color 0.2s ease;
}
.cat:hover { background: #f1e9e1; }
.cat[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.cat[aria-pressed="true"]:hover { background: var(--ink); }
.cat__n { font-size: 12px; }

.gallery__instagram {
  display: inline-block;
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(181, 38, 27, 0.4);
  padding-bottom: 3px;
}

.gallery__main { flex: 6 1 420px; min-width: 0; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone);
  animation: mgFade 0.45s ease both;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 12px 11px;
  background: linear-gradient(180deg, rgba(27, 22, 19, 0), rgba(27, 22, 19, 0.85));
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-align: left;
  /* Legendas longas ganham reticências em vez de serem cortadas na borda. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.gallery__count {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(27, 22, 19, 0.72);
}
.gallery__more {
  border: 1px solid var(--line-25);
  padding: 15px 32px;
  border-radius: var(--pill);
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.gallery__more:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.gallery__empty {
  font-size: 15px;
  font-weight: 300;
  color: var(--t-65);
  padding: 20px 0;
}

/* ---------------------------------------------------------- Localização -- */
.location {
  background: var(--sand);
  padding-top: 84px;
  padding-bottom: 88px;
}
.location .section-head { margin-bottom: 44px; }
.location .section-lead { max-width: 50ch; }

.location__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}

.info-card {
  background: var(--cream);
  border: 1px solid var(--line-10);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.info-card__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-45);
  margin-bottom: 18px;
}
.info-card__street { margin: 0 0 4px; font-size: 18px; font-weight: 400; }
.info-card__city { margin: 0 0 22px; font-size: 17px; font-weight: 300; color: var(--t-65); }

.info-card__contact { margin: 0 0 10px; font-size: 18px; font-weight: 300; }
.info-card__contact:last-of-type { margin-bottom: 24px; }
.info-card__contact a { color: var(--ink); }
.info-card__contact a:hover { color: var(--red); }

.social-row { display: flex; gap: 10px; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(27, 22, 19, 0.22);
  border-radius: var(--pill);
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.social-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.hours { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 300; padding: 9px 0; border-bottom: 1px solid var(--line-10); }
.hours:last-child { border-bottom: 0; }
.hours__day { color: var(--t-62); }

.contact-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.contact-card p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 27px;
  line-height: 1.25;
  color: #fff;
  text-wrap: pretty;
}
.contact-card__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-card .btn--red:hover { background: var(--cream); color: var(--ink); }

/* --------------------------------------------------------------- Rodapé -- */
.site-footer {
  background: var(--coal);
  color: var(--d-72);
  padding-top: 56px;
  padding-bottom: 28px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.site-footer__logo {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  margin-bottom: 20px;
}
.site-footer p { margin: 0 0 10px; font-size: 15px; font-weight: 300; line-height: 1.55; }
.site-footer__about { max-width: 34ch; line-height: 1.6; }
.site-footer a { color: var(--d-72); }
.site-footer a:hover { color: var(--cream); }

.site-footer__heading {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 18px;
}
.site-footer .social-btn {
  border-color: rgba(250, 247, 243, 0.24);
  color: rgba(250, 247, 243, 0.85);
}
.site-footer .social-btn:hover { background: var(--cream); color: var(--coal); border-color: var(--cream); }

/* Seletor duplo de propósito: `.site-footer p` acima tem especificidade maior
   que uma classe sozinha e anularia o `margin: auto` que centraliza o bloco. */
.site-footer .site-footer__legal {
  max-width: var(--wrap);
  margin: 44px auto 0;
  padding: 20px var(--gutter) 0;
  border-top: 1px solid var(--d-12);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--d-50);
  text-align: center;
}

/* -------------------------------------------------------- WhatsApp fixo -- */
.whats-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--pill);
  background: var(--whats);
  box-shadow: 0 10px 30px rgba(27, 22, 19, 0.28);
  transition: background 0.25s ease;
}
.whats-fab:hover { background: var(--whats-dark); }

/* ------------------------------------------------------------- Lightbox -- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 16, 14, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: mgFade 0.25s ease both;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  width: min(92vw, 900px);
  height: 74vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__caption {
  color: var(--cream);
  font-size: 15px;
  font-weight: 300;
  margin-top: 20px;
  text-align: center;
}
.lightbox__nav { display: flex; gap: 12px; margin-top: 22px; }
.lightbox__nav button {
  padding: 11px 22px;
  border-radius: var(--pill);
  font-size: 13px;
  letter-spacing: 0.08em;
  border: 1px solid var(--d-30);
  color: var(--cream);
  transition: background 0.25s ease, color 0.25s ease;
}
.lightbox__nav button:hover { background: var(--cream); color: var(--coal); }
.lightbox__nav .is-close { background: var(--red); color: #fff; border-color: var(--red); }
.lightbox__nav .is-close:hover { background: var(--cream); color: var(--coal); border-color: var(--cream); }

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

/* -------------------------------------------------------------- Mobile -- */
@media (max-width: 900px) {
  /* O cabeçalho é fixo: cada pixel aqui é tirado do conteúdo. A barra de topo
     sai (endereço e redes se repetem em Localização e no rodapé) e as duas
     linhas restantes encolhem — de ~182px para ~120px. */
  .topbar { display: none; }

  .masthead {
    position: relative;
    padding-top: 12px;
    padding-bottom: 12px;
    row-gap: 10px;
  }
  .masthead__logo img { height: 38px; }

  /* Linha 1: logo e botão de menu nas extremidades.
     Linha 2: telefone e WhatsApp. Linha 3 (quando aberto): a navegação. */
  .masthead__logo { order: 1; }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-25);
    border-radius: var(--pill);
    color: var(--ink);
    order: 2;
  }

  /* Menu recolhido: some da ordem visual e do fluxo de foco. */
  .nav {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-top: 8px;
    border-top: 1px solid var(--line-09);
  }
  .nav[hidden] { display: none; }
  .nav a {
    display: block;
    width: 100%;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line-09);
  }

  .masthead__actions {
    order: 3;
    flex-basis: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .masthead__phone { font-size: 19px; }
  .masthead__cta { padding: 10px 18px; font-size: 12px; }

  .hero { padding-top: 44px; padding-bottom: 52px; gap: 40px; }

  /* Layout 2×2 do hero vira faixa única no celular. */
  .hero__media { grid-template-columns: 1fr 1fr; }
  .hero__frame--main { grid-row: auto; grid-column: span 2; aspect-ratio: 4 / 3; }

  .gallery__layout { flex-direction: column; }
  .gallery__filters {
    position: static;
    max-width: none;
    width: 100%;
  }
  .gallery__cats {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .cat { flex: none; border: 1px solid var(--line-12); }

  /* Uma coluna deixaria cada foto ocupando a tela inteira: duas colunas
     permitem comparar os trabalhos rolando bem menos. */
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile__caption { padding: 22px 9px 9px; font-size: 11px; }

  :where(#topo, #servicos, #sobre, #galeria, #localizacao) { scroll-margin-top: 125px; }

  .story, .products, .gallery, .location { padding-top: 60px; padding-bottom: 64px; }
  .stats { gap: 32px; }
  .stats__value { font-size: 42px; }
}

@media (max-width: 560px) {
  .topbar { font-size: 11px; gap: 12px; }
  .lightbox { padding: 18px; }
  .lightbox__img { height: 62vh; }
  .whats-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* ------------------------------------------------- Movimento reduzido -- */
@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;
  }
}

/* --------------------------------------------------------------- Print -- */
@media print {
  .site-header, .whats-fab, .gallery__filters, .gallery__more, .lightbox { display: none !important; }
  body { background: #fff; }
}
