/* ============================================================
   FRATE FORNERIA — Sistema de design compartilhado
   ============================================================ */

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

:root {
  /* Cores — mantidas da identidade atual, com refinamentos */
  --verde: #285b39;
  --verde-escuro: #1e4228;
  --verde-claro: #3f7652;
  --verde-bg: #f0f5f1;
  --verde-acento: #c9a961;        /* dourado sutil para detalhes premium */
  --branco: #ffffff;
  --creme: #fbf9f5;                /* creme quente para fundos */
  --preto: #141414;
  --preto-suave: #2a2a2a;
  --cinza-texto: #4a4a4a;
  --cinza-suave: #888;
  --cinza-borda: #e5e2dc;
  --cinza-bg: #f7f5f0;

  /* Tipografia */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaçamentos */
  --nav-h: 84px;
  --strip-h: 36px;
  --max-w: 1280px;
  --container-px: clamp(24px, 5vw, 80px);
}

html { scroll-behavior: smooth; }

html body #frate-shell { display: contents !important; }

body {
  background: var(--creme);
  color: var(--preto);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

/* ============================================================
   TOP STRIP — endereço + horário sempre visíveis
   ============================================================ */
.top-strip {
  background: var(--preto);
  color: rgba(255,255,255,0.7);
  height: var(--strip-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 0 20px;
  white-space: nowrap;
}

.top-strip > * { flex-shrink: 0; }

.top-strip .sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.2);
}

.top-strip svg {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  margin-right: 6px;
  opacity: 0.7;
}

.top-strip a { text-decoration: none; color: inherit; transition: color .2s; }
.top-strip a:hover { color: #fff; }

/* ============================================================
   NAV
   ============================================================ */
nav.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--verde);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--container-px);
  height: var(--nav-h);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

nav.main-nav .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

nav.main-nav .logo img {
  height: 58px;
  width: auto;
  filter: invert(1);
}

nav.main-nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
}

nav.main-nav ul a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s;
  padding: 6px 0;
  position: relative;
}

nav.main-nav ul a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

nav.main-nav ul a:hover { color: #fff; }
nav.main-nav ul a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: #fff;
  color: var(--verde) !important;
  padding: 11px 24px;
  border-radius: 2px;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  display: inline-block;
}
.nav-cta:hover { background: var(--verde-bg); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Mobile hamburger */
.hamburger {
  display: none;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  margin: 5px auto;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--verde);
  z-index: 105;
  padding: calc(var(--nav-h) + 32px) 32px 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.9);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-menu .m-info {
  margin-top: 40px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.8;
}
.mobile-menu .m-info a { font-family: var(--sans); font-size: 14px; border: none; padding: 0; color: #fff; text-decoration: underline; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 15px 32px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: all 0.25s;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--verde); color: #fff; border-color: var(--verde); }
.btn-primary:hover { background: var(--verde-escuro); border-color: var(--verde-escuro); }

.btn-branco { background: #fff; color: var(--verde); border-color: #fff; font-weight: 600; }
.btn-branco:hover { background: var(--verde-bg); }

.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.btn-outline-verde { background: transparent; color: var(--verde); border-color: var(--verde); }
.btn-outline-verde:hover { background: var(--verde); color: #fff; }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.section-label {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--verde);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--verde);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--preto);
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--verde); }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  margin-bottom: 20px;
  display: inline-block;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer.main-footer {
  background: var(--preto);
  color: rgba(255,255,255,0.7);
  padding: 72px var(--container-px) 32px;
}
footer.main-footer .footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
footer.main-footer h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 18px;
  font-style: italic;
}
footer.main-footer .footer-logo img {
  height: 38px;
  width: auto;
  filter: invert(1);
  opacity: 0.9;
  margin-bottom: 20px;
}
footer.main-footer p, footer.main-footer a {
  font-size: 13px;
  line-height: 1.8;
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
footer.main-footer a:hover { color: #fff; }
footer.main-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer.main-footer .footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 200;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37,211,102,0.4);
  transition: transform 0.25s;
}
.whatsapp-float:hover { transform: scale(1.08) rotate(-8deg); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  nav.main-nav ul { display: none; }
  .hamburger { display: block; }

  .top-strip { gap: 16px; font-size: 11px; white-space: nowrap; }
  .top-strip .strip-horario { display: none; }

  /* Nav CTA compacta no mobile */
  .nav-cta {
    padding: 9px 14px;
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap;
  }

  footer.main-footer { padding: 56px 24px 24px; }
  footer.main-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  .top-strip {
    justify-content: center;
    padding: 0 16px;
    gap: 0;
    white-space: nowrap;
    overflow: hidden;
  }
  .top-strip .strip-endereco,
  .top-strip .sep { display: none; }
  .top-strip .strip-tel-sep { display: none; }
  .top-strip .strip-tel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  /* Hero CTA compacta - se o texto for longo, reduz */
  .nav-cta {
    padding: 8px 12px;
    font-size: 10.5px !important;
  }

  footer.main-footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
