/* ============================================================
   BETEL — ESTILOS GLOBAIS (Mobile-first)
   ============================================================ */

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --color-black:        #111111;
  --color-dark:         #2f2d2b;
  --color-dark-2:       #272523;
  --color-gray-bg:      #ebebeb;
  --color-white:        #ffffff;
  --color-text-muted:   rgba(0, 0, 0, 0.55);
  --color-border:       rgba(0, 0, 0, 0.1);

  --font-sans:          'Inter', sans-serif;

  --radius-sm:          8px;
  --radius-md:          12px;
  --radius-lg:          16px;

  --shadow-card:        0 4px 8px rgba(0,0,0,0.02), 0 6px 12px rgba(0,0,0,0.03);
  --shadow-header:      0 0 4px rgba(0,0,0,0.25);

  --header-h:           64px;
  --container-px:       20px;
  --container-max:      1440px;
}

@media (min-width: 768px) {
  :root { --container-px: 48px; --header-h: 72px; }
}
@media (min-width: 1200px) {
  :root { --container-px: 120px; }
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

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

button { cursor: pointer; border: none; background: none; font-family: inherit; }

ul { list-style: none; }

/* ── Utilitários ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  transition: opacity 0.2s, transform 0.15s;
}
.btn:hover  { opacity: 0.85; }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--color-black);
  color: var(--color-white);
}

.btn--secondary {
  background: transparent;
  color: var(--color-black);
  border: 2px solid rgba(0,0,0,0.18);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-black);
}

.btn--white:hover { opacity: 0.9; }

.btn--ghost-white {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn--ghost-white:hover { border-color: rgba(255,255,255,0.7); }

@media (min-width: 768px) {
  .btn { font-size: 18px; padding: 12px 16px; }
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (min-width: 768px) { .section-title { font-size: 40px; } }

/* ── HEADER ─────────────────────────────────────────────────── */
#site-header-placeholder {
  min-height: var(--header-h);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: var(--shadow-header);
  transition: box-shadow 0.3s;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { display: flex; align-items: center; }

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Nav desktop */
.site-nav {
  display: none;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
  }
}

.nav-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-black);
  position: relative;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--color-black);
  transition: width 0.25s;
}

.nav-link:hover::after,
.nav-link--active::after { width: 100%; }

.nav-link:hover { opacity: 0.7; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
}

@media (min-width: 768px) { .hamburger { display: none; } }

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.mobile-menu.is-open { max-height: 320px; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px var(--container-px) 24px;
  gap: 4px;
}

.mobile-nav .nav-link {
  font-size: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav .nav-link:last-child { border-bottom: none; }

/* ── Tag de módulo EBB (compartilhada: home + ebb) ──────────── */
.ebb-module__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 4px 10px;
  margin-bottom: 8px;
}

/* ── Card (compartilhado: home + ebb) ───────────────────────── */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.card__image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}

@media (min-width: 768px) { .card__image-wrap { aspect-ratio: 16 / 9; } }

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.card:hover .card__image { transform: scale(1.04); }

.card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

@media (min-width: 768px) { .card__body { padding: 24px; } }

.card__texts { display: flex; flex-direction: column; gap: 8px; }

.card__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

@media (min-width: 768px) { .card__title { font-size: 24px; } }

.card__desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-muted);
  letter-spacing: -0.01em;
}

@media (min-width: 768px) { .card__desc { font-size: 18px; } }

.card__link {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
  margin-top: auto;
  transition: opacity 0.2s;
}

.card__link:hover { opacity: 0.6; }

@media (min-width: 768px) { .card__link { font-size: 18px; } }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer { background: var(--color-dark); color: var(--color-white); }

.footer-top { padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }

.footer-top-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer-top-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  display: inline-block;
  line-height: 0;
}

.footer-logo {
  height: 48px;
  width: auto;
  display: block;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer-link {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-link:hover { opacity: 1; text-decoration: underline; }

.footer-social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-white);
  opacity: 0.75;
  transition: opacity 0.2s;
}

.footer-social:hover { opacity: 1; }

.footer-bottom {
  background: var(--color-dark-2);
  padding: 16px 0;
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.footer-address,
.footer-copy {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
}

/* ── Mapa ─────────────────────────────────────────────────── */
.ct-map { background: var(--color-gray-bg); padding: 72px 0; }

.ct-map__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .ct-map__inner { grid-template-columns: 400px 1fr; gap: 64px; }
}

.ct-map__text { display: flex; flex-direction: column; gap: 16px; }

.ct-map__address-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.ct-map__address-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.ct-map__address-value {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-black);
}

.ct-map__address-cep {
  font-size: 13px;
  color: var(--color-text-muted);
}

.ct-map__embed-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 360px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) { .ct-map__embed-wrap { height: 420px; } }

.ct-map__embed {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Último vídeo YouTube ─────────────────────────────────── */
.yt-section {
  background: var(--color-white);
  padding: 64px 0;
}

.yt-section__header {
  margin-bottom: 32px;
}

.yt-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}

@media (min-width: 768px) {
  .yt-card { grid-template-columns: 1fr 1fr; }
}

.yt-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.yt-card__thumb-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-black);
}

.yt-card__thumb-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.yt-card__info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.yt-card__date {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.yt-card__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--color-black);
}

@media (min-width: 768px) { .yt-card__title { font-size: 24px; } }

.yt-card__cta {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* ── WhatsApp FAB ─────────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-fab:active {
  transform: scale(0.95);
}
