/* ============================================================
   HART — global.css
   Variáveis, reset, navbar, footer — compartilhado por todas as páginas
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

/* ── VARIÁVEIS ── */
:root {
  --dark:         #192318;
  --green:        #2D5A27;
  --green-light:  #4A8C42;
  --green-muted:  #8FB887;
  --gold:         #C8A96E;
  --gold-light:   #dcd68d;
  --cream:        #F5F2EC;
  --white:        #FFFFFF;
  --border:       #E2DDD5;
  --text:         #2C2C2C;
  --text-muted:   #7A7A72;
  --muted:        #8E8E93;
}

/* ── NAVBAR ── */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
}
.nav-pill {
  pointer-events: all;
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%; max-width: 100%;
  padding: 16px 48px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background-color: var(--dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.20), 0 8px 32px rgba(0,0,0,0.10);
  transition:
    background-color 0.45s ease, border-color 0.45s ease,
    box-shadow 0.45s ease, border-radius 0.45s ease,
    max-width 0.45s ease, padding 0.45s ease, margin-top 0.45s ease;
}
.nav-pill.scrolled {
  max-width: 880px;
  padding: 12px 12px 12px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background-color: rgba(22,32,20,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-top: 12px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 4px 20px rgba(0,0,0,0.28),
    0 16px 48px rgba(0,0,0,0.18);
}
.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo img { height: 28px; width: auto; display: block; mix-blend-mode: screen; }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
  transition: color 0.2s, opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; font-weight: 600; }
.nav-cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  background: transparent; color: rgba(255,255,255,0.80);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 10px;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.45); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  background: #fff; color: var(--dark);
  border: none; border-radius: 10px;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: #F0EFEC; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 60px 60px 32px;
  color: rgba(255,255,255,0.5);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { display: flex; margin-bottom: 14px; }
.footer-brand .logo img { height: 26px; width: auto; mix-blend-mode: screen; }
.footer-desc { font-size: 13px; line-height: 1.65; max-width: 240px; }
.footer-col h4 {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: rgba(255,255,255,0.5); font-size: 13px;
  transition: all 0.2s;
}
.social-link:hover { background: rgba(255,255,255,0.08); color: var(--white); }

/* ── SHARED SECTION ELEMENTS ── */
.section-badge {
  display: inline-block; padding: 5px 14px;
  background: rgba(45,90,39,0.08); color: var(--green);
  border-radius: 100px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px;
}
/* ══════════════════════════════════════════
   MOBILE RESPONSIVE — iPhone / ≤768px
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Navbar */
  .nav-pill {
    padding: 14px 16px;
    overflow: hidden;
  }
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: inline-flex; padding: 7px 14px; font-size: 13px; }
  .nav-cta .btn-primary { display: none; }
  .nav-pill.scrolled {
    max-width: calc(100% - 24px);
    padding: 10px 16px;
  }

  /* Footer */
  footer { padding: 48px 24px 28px; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .nav-pill { padding: 12px 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
