/* ===== Gabriela de Campos Almeida — site institucional ===== */

:root {
  --petroleo: #1B2E35;
  --vinho: #6E1F2E;
  --offwhite: #F4EDEA;
  --grafite: #2B2422;
  --cereja: #C4183C;
  --border: rgba(43, 36, 34, 0.12);
  --radius: 14px;
  --max-width: 1120px;
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--grafite);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--vinho); text-decoration: none; }
a:hover { color: var(--cereja); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--petroleo);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 237, 234, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--petroleo);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.wordmark:hover { color: var(--petroleo); }
.wordmark-mark {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}
.wordmark small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.56rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--vinho);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav.main-nav a {
  color: var(--grafite);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--petroleo);
  border-bottom-color: var(--cereja);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--petroleo);
}

@media (max-width: 980px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--offwhite);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 4px; }
  nav.main-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 24px 56px;
  position: relative;
  overflow: hidden;
}
.hero-mark {
  position: absolute;
  top: -60px;
  right: -80px;
  width: 420px;
  max-width: 55vw;
  height: auto;
  opacity: 0.07;
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-photo-wrap {
  position: relative;
}
.hero-photo-wrap img.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 54px rgba(27, 46, 53, 0.18);
}
.hero-photo-wrap .hero-mark {
  top: -34px;
  right: -34px;
  width: 190px;
  opacity: 0.5;
  z-index: -1;
}
@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-photo-wrap {
    max-width: 320px;
    margin: 0 auto 28px;
    order: -1;
  }
}

/* ---------- Card-style brand badge (mirrors the business card) ---------- */

.hero-card-badge {
  position: absolute;
  left: -22px;
  bottom: -22px;
  background: var(--petroleo);
  color: var(--offwhite);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 34px rgba(27, 46, 53, 0.3);
  max-width: 230px;
}
.hero-card-badge.vinho { background: var(--vinho); box-shadow: 0 16px 34px rgba(110, 31, 46, 0.3); }
.hero-card-badge img.badge-icon { height: 34px; width: auto; flex-shrink: 0; }
.hero-card-badge img.badge-wordmark { width: 118px; height: auto; display: block; }
.hero-card-badge .badge-caption {
  display: block;
  font-family: var(--font-body);
  font-size: 0.64rem;
  letter-spacing: 0.5px;
  color: rgba(244, 237, 234, 0.78);
  margin-top: 4px;
}
@media (max-width: 820px) {
  .hero-card-badge {
    left: 14px;
    bottom: -18px;
    padding: 11px 14px;
    max-width: 190px;
  }
  .hero-card-badge img.badge-wordmark { width: 96px; }
}
.hero .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--vinho);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 { max-width: 18ch; }
.hero .lede {
  font-size: 1.15rem;
  max-width: 62ch;
  color: var(--grafite);
}
.hero .identity-line {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--petroleo);
  font-weight: 600;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--petroleo);
  color: var(--offwhite);
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--cereja); color: #fff; }
.btn.secondary {
  background: transparent;
  color: var(--petroleo);
  border: 1.5px solid var(--petroleo);
}
.btn.secondary:hover { border-color: var(--cereja); color: var(--cereja); background: transparent; }

/* ---------- Cards / grid ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}
@media (max-width: 820px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(27, 46, 53, 0.10);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--grafite); font-size: 0.96rem; margin-bottom: 0; }
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--vinho);
  font-weight: 700;
  margin-bottom: 12px;
}

/* ---------- Sections ---------- */

section.block {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
section.block:first-of-type { border-top: none; }
section.block.no-divider { border-top: none; }

/* Subtítulos dentro do corpo de um artigo: menores, na fonte do texto, em destaque sutil */
section.block.no-divider h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cereja);
  line-height: 1.35;
  margin: 1.7em 0 0.5em;
}

.section-tint {
  background: #EFE6E1;
}

ul.plain, ol.plain {
  padding-left: 1.2em;
}
ul.plain li, ol.plain li { margin-bottom: 0.6em; }

.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 700px) {
  .scope-grid { grid-template-columns: 1fr; }
}
.scope-box {
  border-radius: var(--radius);
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--border);
}
.scope-box.limite { border-left: 4px solid var(--vinho); }
.scope-box.atende { border-left: 4px solid var(--petroleo); }

/* ---------- FAQ ---------- */

details.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
details.faq-item summary {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--petroleo);
  cursor: pointer;
  font-weight: 600;
}
details.faq-item p { margin-top: 12px; margin-bottom: 0; }

/* ---------- Callout / crisis note ---------- */

.callout {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--cereja);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--petroleo);
  color: var(--offwhite);
  padding: 48px 0 28px;
  margin-top: 40px;
}
footer.site-footer a { color: var(--offwhite); }
footer.site-footer a:hover { color: var(--cereja); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
footer.site-footer h4 {
  color: var(--offwhite);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.footer-brand img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}
.footer-brand h4 {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.05rem;
  font-family: var(--font-heading);
  font-weight: 600;
}
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-crisis {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(244,237,234,0.2);
  font-size: 0.85rem;
  color: rgba(244,237,234,0.85);
}
.footer-bottom {
  margin-top: 24px;
  font-size: 0.78rem;
  color: rgba(244,237,234,0.6);
}

/* ---------- Polaroid / photo intervention accent ---------- */

.polaroid-block {
  text-align: center;
  padding: 52px 0;
}
.polaroid-frame {
  display: inline-block;
  background: #fff;
  padding: 14px 14px 30px;
  border-radius: 4px;
  box-shadow: 0 20px 44px rgba(27, 46, 53, 0.18);
  transform: rotate(-1.4deg);
  max-width: 300px;
}
.polaroid-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
.polaroid-credit {
  display: block;
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--vinho);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.crp-line {
  font-size: 0.85rem;
  color: rgba(244,237,234,0.85);
  margin-top: 6px;
}

/* ===== WhatsApp flutuante ===== */
.whatsapp-fab {
  position: fixed;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  bottom: 22px;
  right: 22px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  touch-action: none;
}
.whatsapp-fab:hover { transform: scale(1.07); box-shadow: 0 4px 14px rgba(0,0,0,0.28); color: #fff; }
.whatsapp-fab svg { width: 26px; height: 26px; display: block; }

@media (max-width: 760px) {
  .whatsapp-fab {
    width: 56px;
    height: 56px;
    bottom: 18px;
    right: 16px;
  }
  .whatsapp-fab svg { width: 30px; height: 30px; }
  .whatsapp-fab.dragging {
    transition: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  }
}

/* Carrossel de posts do Instagram (home) */
.instagram-carousel-wrap {
  position: relative;
}
.instagram-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: var(--vinho);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
  z-index: 2;
  transition: background .15s ease, color .15s ease;
  padding: 0;
}
.instagram-nav:hover { background: var(--vinho); color: #fff; }
.instagram-nav.prev { left: -18px; }
.instagram-nav.next { right: -18px; }
@media (max-width: 760px) {
  .instagram-nav { display: none; }
}
.instagram-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 2px 20px;
  margin: 24px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.instagram-carousel::-webkit-scrollbar { height: 8px; }
.instagram-carousel::-webkit-scrollbar-track { background: transparent; }
.instagram-carousel::-webkit-scrollbar-thumb { background: var(--vinho); border-radius: 4px; }
.instagram-post-card {
  flex: 0 0 230px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.1);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.instagram-post-card:hover,
.instagram-post-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,.14);
}
.instagram-post-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  background: #eee;
}
.instagram-post-caption {
  padding: 12px 14px;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--petroleo);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.instagram-carousel-status,
.instagram-carousel-error {
  color: var(--petroleo);
  opacity: .72;
  font-size: .95rem;
}
.instagram-carousel-error a { color: var(--cereja); }
