/* =====================================================
   CONVIJO — SISTEMA DE DESIGN COMPLETO
   Versão: 5.0 — Rebranding Total
   ===================================================== */

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

/* ── TOKENS DE MARCA ─────────────────────────────────── */
:root {
  /* Facilities — Azul Profundo + Verde */
  --f-deep:        #0B1F3A;
  --f-mid:         #132D55;
  --f-accent:      #1C4B8C;
  --f-green:       #2CB673;
  --f-green-light: #38D98A;
  --f-green-dark:  #1E9059;

  /* Águas — Ciano + Azul Oceano */
  --w-deep:        #00253E;
  --w-mid:         #00416B;
  --w-cyan:        #00B4D8;
  --w-cyan-light:  #48CAE4;
  --w-cyan-dark:   #0077B6;

  /* Neutros */
  --white:         #FFFFFF;
  --off-white:     #F7F9FC;
  --gray-100:      #EEF1F6;
  --gray-200:      #D9DFE8;
  --gray-400:      #8A97A8;
  --gray-600:      #4F5D6E;
  --gray-800:      #1E2A3A;
  --dark:          #080F1C;

  /* Gradientes */
  --grad-facilities: linear-gradient(135deg, #0B1F3A 0%, #132D55 100%);
  --grad-green:      linear-gradient(135deg, #1E9059 0%, #38D98A 100%);
  --grad-water:      linear-gradient(135deg, #00253E 0%, #0077B6 50%, #00B4D8 100%);
  --grad-hero:       linear-gradient(160deg, #080F1C 0%, #0B1F3A 60%, #0d3060 100%);

  /* Sombras */
  --shadow-xs:  0 1px 4px rgba(11,31,58,0.06);
  --shadow-sm:  0 4px 12px rgba(11,31,58,0.10);
  --shadow-md:  0 8px 28px rgba(11,31,58,0.14);
  --shadow-lg:  0 20px 50px rgba(11,31,58,0.18);
  --shadow-xl:  0 32px 80px rgba(11,31,58,0.22);

  /* Bordes */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* Tipografia */
  --ff-heading: 'Outfit', sans-serif;
  --ff-body:    'Inter', sans-serif;

  /* Transições */
  --t-fast: all 0.15s ease;
  --t-base: all 0.30s cubic-bezier(0.4,0,0.2,1);
  --t-slow: all 0.55s cubic-bezier(0.4,0,0.2,1);

  /* Layout */
  --max-w: 1220px;
  --header-h: 76px;
  --section-y: 100px;
}

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

/* ── TIPOGRAFIA ──────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-heading);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--gray-600); line-height: 1.75; }

/* ── LAYOUT ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: var(--section-y) 0; }
.section--dark  { background: var(--dark); }
.section--navy  { background: var(--f-deep); }
.section--gray  { background: var(--off-white); }

/* ── BOTÕES ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--r-full);
  font-family: var(--ff-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--grad-green);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(44,182,115,0.38);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(44,182,115,0.50);
}
.btn-water {
  background: var(--grad-water);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0,180,216,0.35);
}
.btn-water:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,180,216,0.50);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--white);
}
.btn-outline-green {
  background: transparent;
  color: var(--f-green);
  border-color: var(--f-green);
}
.btn-outline-green:hover {
  background: var(--f-green);
  color: var(--white);
}
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(37,211,102,0.38);
}
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37,211,102,0.55);
}
.btn-sm { padding: 10px 22px; font-size: 0.86rem; }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }
.btn-icon { width: 50px; height: 50px; padding: 0; border-radius: 50%; justify-content: center; }

/* ── SECTION LABELS ──────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--f-green);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section-label--water { color: var(--w-cyan); }
.section-label--white { color: rgba(255,255,255,0.7); }
.section-label--white::before { background: rgba(255,255,255,0.7); }

/* ── DIVIDERS ────────────────────────────────────────── */
.divider {
  width: 56px;
  height: 5px;
  border-radius: var(--r-full);
  background: var(--grad-green);
  margin: 20px 0 32px;
}
.divider--center { margin: 20px auto 32px; }
.divider--water { background: var(--grad-water); }

/* ── UTILITIES ───────────────────────────────────────── */
.text-white   { color: var(--white)  !important; }
.text-green   { color: var(--f-green) !important; }
.text-cyan    { color: var(--w-cyan)  !important; }
.text-gray    { color: var(--gray-600) !important; }
.text-center  { text-align: center; }
.text-sm      { font-size: 0.875rem; }
.text-xs      { font-size: 0.78rem; }
.font-heading { font-family: var(--ff-heading); }
.font-semibold { font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 900; }
.uppercase    { text-transform: uppercase; letter-spacing: 0.08em; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.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; }
.mb-64 { margin-bottom: 64px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.max-w-prose { max-width: 680px; }
.max-w-2xl   { max-width: 720px; }

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── BADGE ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-family: var(--ff-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-green { background: rgba(44,182,115,0.12); color: var(--f-green-dark); }
.badge-water { background: rgba(0,180,216,0.12);  color: var(--w-cyan-dark); }

/* ── SCROLL ANIMATIONS ───────────────────────────────── */
/* Controlado pelo AOS CDN — sem conflito */

/* ── PRELOADER ───────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--f-deep);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
#preloader img { height: 50px; }
.loader-bar {
  width: 140px;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: var(--grad-green);
  border-radius: 3px;
  animation: loading 1.2s ease-in-out infinite alternate;
}
@keyframes loading {
  from { transform: translateX(-100%); }
  to   { transform: translateX(250%); }
}

/* ── WHATSAPP FLOATING BUTTONS ───────────────────────── */
.wa-fabs {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.wa-fab {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: var(--white);
  border-radius: var(--r-full);
  padding: 14px 18px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: var(--t-base);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 0.82rem;
  max-width: 54px;
  overflow: hidden;
}
.wa-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.wa-fab__label { white-space: nowrap; opacity: 0; transition: opacity 0.2s; }
.wa-fab:hover { max-width: 280px; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37,211,102,0.55); }
.wa-fab:hover .wa-fab__label { opacity: 1; }
.wa-fab--water { background: linear-gradient(135deg, #0077B6, #00B4D8); box-shadow: 0 6px 24px rgba(0,180,216,0.45); }

/* ── SCROLL TO TOP ───────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 48px;
  height: 48px;
  background: var(--f-mid);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--t-base);
  z-index: 999;
}
#scroll-top.visible { opacity: 1; visibility: visible; }
#scroll-top:hover { background: var(--f-accent); transform: translateY(-3px); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-y: 72px; }
}
@media (max-width: 768px) {
  :root { --section-y: 56px; --header-h: 68px; }
  h1 { letter-spacing: -0.01em; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}
