/* JB Plantas e Vasos — rebuild visual estático
   Cores: papel #F6F4E9 · verde escuro #234332 · verde #426B3F · terracota #C2794B */

:root {
  --papel: #f6f4e9;
  --papel-2: #efeadd;
  --verde-escuro: #234332;
  --verde: #426b3f;
  --verde-claro: #9ee66c;
  --terracota: #c2794b;
  --texto: #2a2a24;
  --texto-suave: #5a5a4e;
  --branco: #ffffff;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); color: var(--verde-escuro); line-height: 1.2; margin: 0 0 12px; }
p { margin: 0 0 12px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--verde); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Acessibilidade */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--verde-escuro); color: #fff; padding: 12px 20px; z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--terracota); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Faixa superior */
.topbar { background: var(--verde-escuro); color: #f3f1e6; font-size: 14px; }
.topbar .container { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.topbar strong { font-weight: 700; }

/* ============ 01 · MASTHEAD: logo grande primeiro, slogan abaixo, nav depois ============ */
.masthead { background: var(--papel); }

.brand-block {
  min-height: 550px;               /* desktop: masthead de 550px */
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 24px 40px;
  text-align: center;
}
.brand-area {
  width: 600px; max-width: 92vw; height: 370px;
  display: flex; align-items: center; justify-content: center;
}
.brand-logo {
  width: 600px; max-width: 100%; height: 370px; max-height: 370px;
  object-fit: contain;             /* logo sempre integral: sem recorte, sem filtro */
  filter: none;
}
.slogan {
  font-family: var(--serif);
  font-size: 42px; line-height: 1.25;  /* slogan a 42px */
  color: var(--verde-escuro);
  margin: 28px 0 32px;
  max-width: 900px;
}

/* Navegação discreta DEPOIS do slogan */
.masthead-nav {
  display: flex; align-items: center; gap: 4px;
  flex-wrap: wrap; justify-content: center;
}
.masthead-nav a {
  color: var(--texto-suave);
  text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 10px 16px; min-height: 44px; min-width: 44px;
  display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.masthead-nav a:hover { color: var(--verde-escuro); border-bottom-color: var(--terracota); }
.mobile-toggle {
  display: none;
  background: none; border: 1px solid var(--verde);
  color: var(--verde-escuro); font-size: 22px;
  min-width: 44px; min-height: 44px; border-radius: 8px; cursor: pointer;
}

/* ============ CAMPANHA: 710px · texto à esquerda · foto do casal 690x610 retangular ============ */
.campaign {
  display: grid;
  grid-template-columns: 1fr 690px;
  gap: 48px; align-items: center;
  min-height: 710px;
  padding-top: 40px; padding-bottom: 64px;
}
.eyebrow {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--terracota); margin: 0 0 12px;
}
.campaign-title { font-size: 44px; margin-bottom: 16px; }
.campaign-lead { font-size: 18px; line-height: 28px; color: var(--texto-suave); max-width: 52ch; }
.campaign-list { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; }
.campaign-list li { padding-left: 28px; position: relative; font-size: 16px; }
.campaign-list li::before { content: "🌿"; position: absolute; left: 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.campaign-address { font-size: 14px; color: var(--texto-suave); }

/* Foto do casal: RETANGULAR, cantos retos — PROIBIDO arco/cápsula/moldura */
.campaign-photo { margin: 0; }
.campaign-photo img {
  width: 690px; max-width: 100%; height: 610px;
  object-fit: cover;
  border-radius: 0;                 /* sem arredondamento */
  border: none; outline: none; box-shadow: none;
  background: var(--papel-2);
}
.campaign-photo figcaption {
  font-size: 14px; color: var(--texto-suave); font-style: italic;
  margin-top: 10px; max-width: 690px;
}

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px;
  padding: 12px 24px; border-radius: 10px;
  font-family: var(--sans); font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s, background .2s, color .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--verde); color: #fff; }
.btn-primary:hover { background: var(--verde-escuro); }
.btn-ghost { border-color: var(--verde); color: var(--verde-escuro); background: transparent; }
.btn-ghost:hover { background: var(--verde); color: #fff; }
.btn-wa { background: #25d366; color: #0c2b14; }
.btn-wa:hover { background: #1eb85a; color: #06210e; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ============ Seções ============ */
.section { padding: 72px 0; }
.section.alt { background: var(--papel-2); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 40px; }
.section-head h2 { font-size: 34px; margin-bottom: 0; }
.section-head p { color: var(--texto-suave); margin-bottom: 0; font-size: 17px; line-height: 26px; }

/* ============ 02 · Categorias ============ */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card {
  background: var(--branco); border: 1px solid #e3ddc9; border-radius: 12px;
  padding: 24px 18px; text-decoration: none; display: grid; gap: 6px;
  min-height: 44px; transition: border-color .2s, transform .15s;
}
.cat-card:hover { border-color: var(--terracota); transform: translateY(-2px); }
.cat-name { font-family: var(--serif); font-size: 20px; color: var(--verde-escuro); font-weight: 700; }
.cat-desc { font-size: 14px; color: var(--texto-suave); line-height: 20px; }

/* ============ 03 · Catálogo ============ */
.filters { margin-bottom: 32px; }
.filters-label { font-weight: 700; color: var(--verde-escuro); margin-bottom: 10px; }
.filters-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  border: 2px solid var(--verde); background: transparent; color: var(--verde-escuro);
  cursor: pointer; transition: background .2s, color .2s;
}
.chip:hover { background: #e9ecdf; }
.chip.is-active { background: var(--verde); color: #fff; }
.filters-hint { font-size: 14px; color: var(--texto-suave); margin-top: 10px; font-style: italic; }

/* Pré-menu Produtos | Plantas */
.tabs { display: flex; gap: 12px; margin-bottom: 24px; }
.tab {
  flex: 1; font-family: var(--sans); font-size: 18px; font-weight: 800;
  min-height: 56px; padding: 12px; border-radius: 14px; cursor: pointer;
  border: 2px solid var(--verde); background: transparent; color: var(--verde-escuro);
  transition: background .2s, color .2s;
}
.tab.is-active { background: var(--verde); color: #fff; }
.plantas-busca { margin-bottom: 24px; }
.plantas-busca input {
  width: 100%; min-height: 52px; padding: 12px 18px; font-size: 16px;
  border: 2px solid var(--verde); border-radius: 14px; font-family: var(--sans);
}
.planta-nome-cientifico { font-size: 13px; font-style: italic; color: var(--texto-suave); }
.planta-cuidados { font-size: 13px; color: var(--texto-suave); line-height: 1.5; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tab { font-size: 16px; min-height: 52px; }
}
.card {
  background: var(--branco); border: 1px solid #e3ddc9; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
}
.card-media button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  min-height: 44px; position: relative;
}
.card-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--papel-2); }
.foto-aviso {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(20, 30, 22, 0.78); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px; pointer-events: none;
}
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--terracota); }
.card-body h3 { font-size: 22px; margin: 0; }
.card-body > p { color: var(--texto-suave); font-size: 15px; line-height: 23px; margin: 0; }
.card-meta { display: grid; gap: 6px; margin-top: 8px; font-size: 14px; }
.card-meta .meta-row { display: flex; gap: 8px; align-items: baseline; }
.card-meta dt { font-weight: 700; color: var(--verde-escuro); min-width: 110px; }
.card-meta dd { margin: 0; color: var(--texto-suave); }
.luz-badge {
  display: inline-block; font-size: 13px; font-weight: 700;
  background: #eef3e4; color: var(--verde-escuro);
  border: 1px solid var(--verde); border-radius: 999px; padding: 4px 12px;
}
.disponivel { font-size: 13px; font-weight: 700; color: var(--verde); }
.preco { font-size: 14px; font-weight: 700; color: var(--verde-escuro); }
.add-btn {
  margin-top: auto; padding-top: 12px;
}
.add-btn .btn { width: 100%; }
.empty-state { text-align: center; color: var(--texto-suave); font-size: 17px; padding: 32px; }

.quote-panel {
  margin-top: 40px; background: var(--verde-escuro); color: #f3f1e6;
  border-radius: 16px; padding: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.quote-panel h2 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.quote-panel p { color: #d8d4c0; margin: 0; max-width: 60ch; }
.quote-panel .btn-primary { background: var(--terracota); }
.quote-panel .btn-primary:hover { background: #a86437; }

/* ============ 04/06 · Detalhes ============ */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.detail-card {
  background: var(--branco); border: 1px solid #e3ddc9; border-left: 6px solid var(--terracota);
  border-radius: 12px; padding: 28px;
}
.detail-card h3 { font-size: 22px; }
.detail-card p { color: var(--texto-suave); margin: 0; font-size: 16px; line-height: 25px; }

/* ============ Empresa / Localização ============ */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.about-panel h2 { font-size: 34px; }
.about-panel > p { color: var(--texto-suave); font-size: 17px; line-height: 27px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.fact { background: var(--branco); border: 1px solid #e3ddc9; border-radius: 12px; padding: 18px; display: grid; gap: 4px; }
.fact b { font-family: var(--serif); font-size: 18px; color: var(--verde-escuro); }
.fact span { font-size: 14px; color: var(--texto-suave); }
.map-card {
  background: var(--verde-escuro); color: #f3f1e6; border-radius: 16px; padding: 32px;
  display: grid; gap: 24px;
}
.map-card .eyebrow { color: var(--verde-claro); }
.map-card h3 { color: #fff; font-size: 26px; }
.map-card p { color: #d8d4c0; margin: 0; }
.hours { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hours div { background: rgba(255,255,255,.08); border-radius: 10px; padding: 12px 16px; }
.hours b { color: #fff; }
.hours span { color: #d8d4c0; font-size: 14px; }
.map-card .btn-ghost { border-color: var(--verde-claro); color: #fff; }
.map-card .btn-ghost:hover { background: var(--verde-claro); color: var(--verde-escuro); }

/* ============ 05 · CTA / Contato ============ */
.cta { padding: 72px 0; background: var(--papel); }
.cta-box {
  background: var(--verde); color: #fff; border-radius: 18px; padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-box .eyebrow { color: var(--verde-claro); }
.cta-box h2 { color: #fff; font-size: 32px; margin-bottom: 10px; }
.cta-box p { color: #e9ecdf; margin: 0; max-width: 55ch; font-size: 17px; line-height: 26px; }

/* ============ Rodapé ============ */
footer { background: var(--verde-escuro); color: #d8d4c0; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
.footer-grid strong { color: #fff; font-family: var(--serif); font-size: 18px; display: block; margin-bottom: 8px; }
.footer-grid p { margin: 0; font-size: 15px; }
.footer-grid a { color: var(--verde-claro); }
.copy { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; font-size: 14px; text-align: center; }

/* Botão flutuante WhatsApp */
.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #0c2b14;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform .15s;
}
.float-wa:hover { transform: scale(1.06); }

/* ============ Drawer da lista de orçamento ============ */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(20,30,20,.55); z-index: 100;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 101;
  width: 420px; max-width: 94vw; background: var(--papel);
  padding: 28px; overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0,0,0,.25);
  display: flex; flex-direction: column; gap: 16px;
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h2 { font-size: 26px; margin: 0; }
.drawer-close {
  background: none; border: 1px solid var(--verde); color: var(--verde-escuro);
  font-size: 24px; line-height: 1; border-radius: 8px;
  min-width: 44px; min-height: 44px; cursor: pointer;
}
.drawer-note { font-size: 14px; color: var(--texto-suave); background: #eef3e4; border-radius: 10px; padding: 12px 16px; margin: 0; }
.drawer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.drawer-list li {
  background: #fff; border: 1px solid #e3ddc9; border-radius: 10px;
  padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.drawer-list .item-name { font-weight: 600; color: var(--verde-escuro); }
.drawer-list .item-qty { display: flex; align-items: center; gap: 8px; }
.drawer-list .qty-btn {
  min-width: 44px; min-height: 44px; border-radius: 8px;
  border: 1px solid var(--verde); background: #fff; color: var(--verde-escuro);
  font-size: 18px; font-weight: 700; cursor: pointer;
}
.drawer-list .remove-btn {
  min-height: 44px; padding: 8px 12px; border: none; background: none;
  color: var(--terracota); font-weight: 600; cursor: pointer; font-size: 14px;
}
.drawer-empty { color: var(--texto-suave); text-align: center; font-style: italic; }
.drawer-name { display: grid; gap: 8px; font-weight: 600; color: var(--verde-escuro); font-size: 15px; }
.drawer-name input {
  font-family: var(--sans); font-size: 16px; padding: 12px 16px; min-height: 44px;
  border: 2px solid #d8d2ba; border-radius: 10px; background: #fff; color: var(--texto);
}
.drawer-name input:focus { border-color: var(--verde); outline: 2px solid var(--terracota); outline-offset: 2px; }

/* ============ Modal de imagem ============ */
.modal {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(15,25,15,.9);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal.open { display: flex; }
.modal img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: #fff; border: none; border-radius: 50%;
  width: 48px; height: 48px; font-size: 28px; line-height: 1;
  color: var(--verde-escuro); cursor: pointer;
}

/* ============ Responsivo: 390px ============ */
@media (max-width: 480px) {
  .brand-block {
    min-height: 397px;               /* mobile: bloco de marca de 397px */
    padding: 28px 16px 24px;
  }
  .brand-area { width: 320px; max-width: 92vw; height: 270px; }
  .brand-logo { width: 320px; max-width: 100%; height: 270px; max-height: 270px; }
  .slogan { font-size: 27px; margin: 20px 0 20px; }   /* slogan de 27px */

  .masthead-nav a { display: none; }
  .masthead-nav.nav-open a { display: inline-flex; }
  .masthead-nav.nav-open { flex-direction: column; align-items: stretch; width: 100%; }
  .masthead-nav.nav-open a { justify-content: center; border: 1px solid #e3ddc9; border-radius: 10px; background: #fff; margin-top: 6px; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }

  /* Campanha mobile: cena de 780px; foto retangular 390x445, topo NÃO arredondado */
  .campaign {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 780px;
    padding-top: 8px; padding-bottom: 48px;
  }
  .campaign-title { font-size: 32px; }
  .campaign-photo img {
    width: 100%; max-width: 390px; height: auto;
    aspect-ratio: 390 / 445;        /* 390x445 retangular */
    border-radius: 0;               /* NÃO arredondar a parte superior */
  }
  .campaign-photo figcaption { max-width: 390px; }

  .section { padding: 52px 0; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head h2 { font-size: 28px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 32px 24px; }
  .quote-panel { flex-direction: column; align-items: stretch; }
}

@media (max-width: 900px) and (min-width: 481px) {
  .campaign { grid-template-columns: 1fr; min-height: auto; }
  .campaign-photo img { width: 100%; max-width: 690px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
}
