/* ============================================================
   Meliponário Mayer — Design tokens
   ============================================================ */
:root {
  --bg: #0d1f1a;
  --bg-panel: #142c24;
  --bg-panel-2: #1a352b;
  --cream: #f5efe0;
  --cream-dim: #d9d2c0;
  --ink: #142018;
  --ink-soft: #3c493f;
  --gold: #d4a039;
  --gold-light: #f0c869;
  --gold-dim: rgba(212, 160, 57, 0.28);
  --line-on-dark: rgba(240, 232, 210, 0.14);
  --line-on-light: rgba(20, 32, 24, 0.12);
  --shadow-soft: 0 18px 40px -20px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 24px 48px -18px rgba(0, 0, 0, 0.55);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --container: 1180px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

@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;
  }
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75em 1.25em;
  z-index: 1000;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ============================================================
   Typography
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--gold);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  flex-shrink: 0;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.25;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--cream-dim);
  line-height: 1.7;
  max-width: 62ch;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 3rem;
}

.section-head.center {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.section--panel {
  background: var(--bg-panel);
}

.section--light {
  background: var(--cream);
  color: var(--ink);
}

.section--light .lede {
  color: var(--ink-soft);
}

.section--light h2,
.section--light h3 {
  color: var(--ink);
}

.honeycomb-bg {
  position: relative;
  isolation: isolate;
}

.honeycomb-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='96' viewBox='0 0 84 96'%3E%3Cpath d='M42 0 84 24 84 72 42 96 0 72 0 24Z' fill='none' stroke='%23f0c869' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 84px 96px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.7em;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-on-dark);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.section--light .btn-outline {
  color: var(--ink);
  border-color: var(--line-on-light);
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 1.1rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), padding 0.3s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(13, 31, 26, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-color: var(--line-on-dark);
  padding: 0.7rem 0;
}

.site-header.is-scrolled::before {
  background: rgba(13, 31, 26, 0.94);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
}

.brand img {
  height: 168px;
  width: 168px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  padding: 0.5rem;
  z-index: 210;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.main-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cream-dim);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--cream);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  width: 100%;
}

.nav-whatsapp {
  background: var(--gold);
  color: var(--ink) !important;
  padding: 0.55em 1.1em;
  border-radius: 100px;
}

.nav-whatsapp::after {
  display: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease);
    z-index: 205;
  }

  .main-nav.is-open {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .main-nav a {
    font-size: 1.3rem;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 31, 26, 0.35) 0%, rgba(13, 31, 26, 0.55) 45%, rgba(13, 31, 26, 0.96) 100%);
}

.hero-content {
  padding: 15rem 0 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 46rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.6rem;
}

.hero-locations {
  display: flex;
  gap: 2.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.hero-locations div {
  font-size: 0.82rem;
  color: var(--cream-dim);
}

.hero-locations strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 0.15rem;
}

/* ============================================================
   Badge strip (certifiers)
   ============================================================ */
.badge-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.6rem, 4vw, 3.2rem);
}

.badge-strip figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
}

.badge-hex {
  width: 92px;
  height: 104px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: var(--shadow-soft);
}

.badge-strip figure:hover .badge-hex {
  transform: translateY(-6px) scale(1.04);
}

.badge-hex img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.badge-strip figcaption {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cream);
  max-width: 10rem;
}

/* ============================================================
   Location / unit cards
   ============================================================ */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.location-card {
  background: var(--bg-panel-2);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.location-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-lift);
}

.location-card .city {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
}

.location-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 0.8rem;
  font-size: 0.92rem;
  margin: 0;
}

.location-card dt {
  color: var(--cream-dim);
}

.location-card dd {
  margin: 0;
  font-weight: 600;
}

.location-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--cream-dim);
}

.location-card ul li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  margin-right: 0.6em;
}

@media (max-width: 760px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }
}

.section--light .location-card {
  background: #fff;
  border-color: var(--line-on-light);
}

.section--light .location-card .city {
  color: #a97a1f;
}

.section--light .location-card dt,
.section--light .location-card ul {
  color: var(--ink-soft);
}

.section--light .location-card ul li::before {
  background: #a97a1f;
}

.section--light .location-card:hover {
  border-color: var(--gold);
}

.email-link {
  font-weight: 700;
  color: var(--ink);
}

/* ============================================================
   Photo grid (galleries)
   ============================================================ */
.gallery-group {
  margin-bottom: 4rem;
}

.gallery-group:last-child {
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-panel);
  border: none;
  padding: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 31, 26, 0.55), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.07);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(9, 20, 16, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease);
  padding: 2rem;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 84vh;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(245, 239, 224, 0.08);
  border: 1px solid var(--line-on-dark);
  color: var(--cream);
  border-radius: 100px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--gold);
  color: var(--ink);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-nav.prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 38px;
    height: 38px;
  }
}

/* ============================================================
   Timeline (História)
   ============================================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 52rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.6rem;
  padding-bottom: 2.6rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 1.7rem;
  top: 3.4rem;
  bottom: 0;
  width: 1px;
  background: var(--line-on-dark);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  width: 3.4rem;
  height: 3.9rem;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: var(--bg-panel-2);
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-light);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.timeline-body h3 {
  margin-bottom: 0.5rem;
}

.timeline-body p {
  color: var(--cream-dim);
  max-width: 56ch;
}

/* ============================================================
   Cards (mídia, parceiros, certificados)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.doc-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border: none;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.doc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.doc-card .thumb {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ece5d2;
}

.doc-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.doc-card:hover .thumb img {
  transform: scale(1.05);
}

.doc-card .doc-body {
  padding: 1.1rem 1.2rem 1.3rem;
}

.doc-card .doc-body h3 {
  font-size: 1.05rem;
  color: var(--ink);
}

.doc-card .doc-body p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

/* Media list (press clippings) */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--bg-panel);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.press-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 46rem;
}

.press-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 1.1rem 1.3rem;
  background: var(--bg-panel-2);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-md);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.press-item:hover {
  border-color: var(--gold-dim);
  transform: translateX(4px);
}

.press-edition {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
  min-width: 4rem;
}

.press-item h3 {
  font-size: 1rem;
  color: var(--cream);
}

.press-item p {
  font-size: 0.85rem;
  color: var(--cream-dim);
  margin-top: 0.2rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #0a1712;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line-on-dark);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-on-dark);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand img {
  height: 58px;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 100px;
  border: 1px solid var(--line-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-social a:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.footer-social img {
  width: 18px;
  height: 18px;
}

.footer-units {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 2rem;
  padding: 2.5rem 0;
}

@media (max-width: 540px) {
  .footer-units {
    grid-template-columns: 1fr;
  }
}

.footer-units h4 {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.footer-units p {
  font-size: 0.88rem;
  color: var(--cream-dim);
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--cream-dim);
}

.footer-bottom nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-bottom nav a:hover {
  color: var(--gold-light);
}

/* ============================================================
   Page intro banner (inner pages)
   ============================================================ */
.page-banner {
  padding: 15rem 0 3.5rem;
  background: var(--bg-panel);
  position: relative;
}

.page-banner .eyebrow {
  margin-bottom: 1rem;
}

.page-banner p {
  max-width: 50ch;
  color: var(--cream-dim);
  margin-top: 1rem;
}

/* ============================================================
   WhatsApp floating button
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 190;
  width: 58px;
  height: 58px;
  border-radius: 100px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lift);
  transition: transform 0.25s var(--ease);
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float img {
  width: 28px;
  height: 28px;
}

/* ============================================================
   Utility
   ============================================================ */
.mt-lg {
  margin-top: 3rem;
}

.text-center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
