/* ============================================
   CALAMARO — Design System v2
   Institucional · Claro · Acolhedor · Confiável
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Variáveis --- */
:root {
  /* Paleta principal — clara e institucional */
  --blue:        #1A8FC1;       /* azul principal — sério, confiável */
  --blue-mid:    #1AABDF;       /* azul médio */
  --blue-light:  #E8F6FB;       /* azul muito claro — fundo suave */
  --blue-xlight: #F2FAFD;       /* quase branco com toque de azul */
  --blue-dark:   #0F6A93;       /* azul escuro para hover */
  --cyan:        #1FB7E8;       /* acento ciano (mantém da marca) */

  /* Neutros */
  --white:       #FFFFFF;
  --off-white:   #F7F9FC;       /* fundo levemente azulado */
  --gray-bg:     #EEF3F7;       /* seção cinza-azulado */
  --gray-line:   #DDE6ED;       /* bordas e divisores */
  --gray-soft:   #9AAFC0;       /* textos de apoio */
  --gray-mid:    #5E7A8F;       /* textos secundários */
  --text:        #1A2E3D;       /* cor principal do texto */
  --text-light:  #3D5468;       /* corpo de texto */

  /* Institucionais */
  --navy:        #0D2137;       /* para destaques escuros pontuais */
  --success:     #1A9E6E;
  --warning:     #D97706;
  --danger:      #DC2626;

  /* Tipografia */
  --font-title:  'Barlow Condensed', sans-serif;
  --font-body:   'Inter', sans-serif;

  /* Espaçamentos */
  --section-py:     88px;
  --section-py-sm:  56px;
  --container-max:  1200px;
  --container-px:   24px;

  /* Bordas */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 999px;

  /* Sombras suaves e limpas */
  --shadow-xs:  0 1px 4px rgba(15,60,100,0.06);
  --shadow-sm:  0 2px 12px rgba(15,60,100,0.08);
  --shadow-md:  0 6px 24px rgba(15,60,100,0.10);
  --shadow-lg:  0 12px 48px rgba(15,60,100,0.13);
  --shadow-blue: 0 8px 32px rgba(26,143,193,0.22);

  --transition: all 0.22s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
button { border: none; cursor: pointer; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

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

/* --- Tipografia --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
p  { line-height: 1.75; color: var(--text-light); }

.text-blue  { color: var(--blue); }
.text-white { color: var(--white); }
.text-gray  { color: var(--gray-mid); }
.text-upper { text-transform: uppercase; }

/* --- Seções --- */
.section      { padding: var(--section-py) 0; }
.section--bg  { background: var(--off-white); }
.section--blue-light { background: var(--blue-light); }
.section--navy { background: var(--navy); color: var(--white); }
.section--white { background: var(--white); }

/* Tags de seção */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 10px;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.section-tag--white { color: rgba(255,255,255,0.7); }
.section-tag--white::before { background: rgba(255,255,255,0.5); }

/* Alias para seções */
.section--gray { background: var(--off-white); }
.section--dark { background: linear-gradient(165deg, #1A2E3D 0%, #0D2137 100%); color: var(--white); }
.section--dark .section-title { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.65); }

/* Aliases de cor de texto */
.text-cyan  { color: var(--blue); }

.section-title {
  font-family: var(--font-title);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text);
}
.section-title--white { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-mid);
  max-width: 580px;
  line-height: 1.75;
}
.section-subtitle--white { color: rgba(255,255,255,0.7); }

/* --- Botões --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26,143,193,0.25);
}
.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}

.btn--secondary {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn--secondary:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--white {
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
}
.btn--white:hover {
  background: var(--blue-light);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn--ghost {
  background: var(--blue-light);
  color: var(--blue);
}
.btn--ghost:hover {
  background: #d4eef8;
}

.btn--lg  { padding: 18px 36px; font-size: 1.05rem; }
.btn--sm  { padding: 10px 20px; font-size: 0.85rem; }
.btn--full { width: 100%; justify-content: center; }

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.badge--blue    { background: var(--blue-light); color: var(--blue); }
.badge--navy    { background: var(--navy); color: var(--white); }
.badge--success { background: #D1F5E8; color: var(--success); }
.badge--warning { background: #FEF3C7; color: var(--warning); }
.badge--gray    { background: var(--gray-bg); color: var(--gray-mid); }
/* Aliases para compatibilidade */
.badge--cyan    { background: var(--blue-light); color: var(--blue); }
.badge--dark    { background: var(--navy); color: var(--white); }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: var(--white);
  border-bottom: 1px solid var(--gray-line);
  box-shadow: 0 1px 8px rgba(15,60,100,0.07);
}
.navbar.scrolled {
  background: var(--white);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(15,60,100,0.10);
  border-bottom: 1px solid var(--gray-line);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.navbar__logo { display: flex; flex-direction: column; line-height: 1; }
.navbar__logo-main {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: var(--transition);
}
.navbar__logo-main span { color: var(--blue); }
.navbar.scrolled .navbar__logo-main { color: var(--text); }
.navbar__logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-soft);
  transition: var(--transition);
}
.navbar.scrolled .navbar__logo-sub { color: var(--gray-soft); }

/* Nav links */
.navbar__nav { display: flex; align-items: center; gap: 28px; }
.navbar__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  transition: var(--transition);
}
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: var(--transition);
  border-radius: 2px;
}
.navbar__link:hover { color: var(--blue); }
.navbar__link:hover::after { width: 100%; }
.navbar.scrolled .navbar__link { color: var(--text-light); }
.navbar.scrolled .navbar__link:hover { color: var(--blue); }
.navbar.scrolled .navbar__link::after { background: var(--blue); }
.navbar__link.active { color: var(--blue); }
.navbar.scrolled .navbar__link.active { color: var(--blue); }
.navbar__link.active::after { width: 100%; }

.navbar__cta { display: flex; align-items: center; gap: 12px; }

.navbar__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.navbar__menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .navbar__menu-toggle span { background: var(--text); }

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 300px; height: 100vh;
  background: var(--white);
  z-index: 1100;
  padding: 80px 28px 32px;
  display: flex; flex-direction: column; gap: 4px;
  transition: right 0.32s ease;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { right: 0; }
.mobile-menu__overlay {
  position: fixed; inset: 0;
  background: rgba(13,33,55,0.5);
  z-index: 1050; opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
  backdrop-filter: blur(3px);
}
.mobile-menu__overlay.open { opacity: 1; pointer-events: all; }
.mobile-menu__close {
  position: absolute; top: 20px; right: 20px;
  color: var(--text); font-size: 1.2rem; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gray-bg);
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu__link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-bg);
  transition: var(--transition);
}
.mobile-menu__link:hover { color: var(--blue); padding-left: 4px; }
.mobile-menu__cta { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__logo {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}
.footer__logo span { color: var(--cyan); }
.footer__desc { font-size: 0.88rem; line-height: 1.75; margin-bottom: 20px; color: rgba(255,255,255,0.55); }
.footer__social { display: flex; gap: 10px; }
.footer__social-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.9rem;
  transition: var(--transition);
}
.footer__social-link:hover { background: var(--blue); color: var(--white); }
.footer__col-title {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--white); margin-bottom: 16px;
}
.footer__link {
  display: block; font-size: 0.88rem;
  color: rgba(255,255,255,0.55); padding: 5px 0;
  transition: var(--transition);
}
.footer__link:hover { color: var(--cyan); }
.footer__contact-item {
  display: flex; align-items: flex-start;
  gap: 10px; font-size: 0.88rem; padding: 5px 0;
  color: rgba(255,255,255,0.55);
}
.footer__contact-item i { color: var(--cyan); font-size: 0.85rem; margin-top: 3px; flex-shrink: 0; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
}

/* --- WhatsApp flutuante --- */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.38);
  transition: var(--transition);
  animation: pulseWA 2.8s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.55); }
.whatsapp-float svg { width: 28px; height: 28px; }

@keyframes pulseWA {
  0%   { box-shadow: 0 4px 20px rgba(37,211,102,0.38); }
  50%  { box-shadow: 0 4px 28px rgba(37,211,102,0.6), 0 0 0 8px rgba(37,211,102,0.1); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,0.38); }
}

/* --- Utilitários --- */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }  .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }  .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }  .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.w-100 { width: 100%; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* Animações */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.08s; }
.fade-up-delay-2 { transition-delay: 0.16s; }
.fade-up-delay-3 { transition-delay: 0.24s; }
.fade-up-delay-4 { transition-delay: 0.32s; }

/* Separador azul */
.divider-blue {
  height: 3px;
  width: 48px;
  background: var(--blue);
  border-radius: 2px;
  margin: 12px 0 20px;
}

/* --- Responsivo --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  :root { --section-py: 56px; --container-px: 20px; }
  .navbar__nav, .navbar__cta { display: none; }
  .navbar__menu-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}
