/* ==========================================================
   Climamax — Global Styles
   Paleta extraída da logo.webp
   ========================================================== */

:root {
  /* ---- Brand colors (from logo) ---- */
  --navy: #025886;
  --navy-dark: #014a77;
  --navy-light: #1b79a6;
  --navy-pale: #e8f4fa;
  --red: #fa3f1e;
  --red-hover: #e03615;
  --dark: #1a1a1a;
  --silver: #bebdbe;
  --white: #ffffff;

  /* ---- Semantic tokens ---- */
  --text-primary: var(--dark);
  --text-secondary: #5a6a72;
  --bg-page: #f7fafb;
  --bg-section: var(--white);
  --border: #dde8eb;
  --shadow-sm: 0 2px 8px rgba(1,74,119,.06);
  --shadow-md: 0 8px 24px rgba(1,74,119,.10);
  --shadow-lg: 0 16px 48px rgba(1,74,119,.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* ---- Type scale ---- */
  --font-display: 'Manrope', 'Avenir Next', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --fs-hero: clamp(40px, 5vw, 64px);
  --fs-h2: clamp(28px, 3.5vw, 44px);
  --fs-h3: clamp(20px, 2vw, 26px);
  --fs-body: 16px;
  --fs-small: 13px;
  --fs-caption: 11px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -1.5px;
  line-height: 1.12;
  margin: 0;
}

/* ---- SVG Icon system ---- */
.icon {
  width: 24px;
  height: 24px;
  display: block;
}
.icon-lg {
  width: 56px;
  height: 56px;
  display: block;
}

/* ---- Layout helpers ---- */
.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}
.section-pad {
  padding: 80px 0;
}
.section-pad-lg {
  padding: 100px 0;
}

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-caption);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--red);
}

/* ---- Section heading ---- */
.section-title {
  font-size: var(--fs-h2);
  max-width: 640px;
  margin-bottom: 12px;
}
.section-title span { color: var(--navy); }
.section-subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  transition: background .2s, box-shadow .25s, transform .15s;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.btn:focus-visible {
  outline: 3px solid var(--navy-light);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(250,63,30,.22);
}
.btn-primary:hover {
  background: var(--red-hover);
  box-shadow: 0 8px 24px rgba(250,63,30,.30);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(2,88,134,.18);
}
.btn-ghost {
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  padding: 0;
}
.btn-ghost:hover {
  color: var(--red);
}
.btn-ghost::after {
  content: '→';
  transition: transform .2s;
}
.btn-ghost:hover::after {
  transform: translateX(4px);
}

/* ---- Topbar ---- */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,.8);
  font-size: var(--fs-caption);
  padding: 10px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---- Navbar ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,250,251,.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 76px;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /*width: 100%;*/
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 75px;
  width: auto;
  max-width: 100%;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--navy-dark);
}
.brand-text b { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.nav-links a {
  padding: 6px 0;
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width .25s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 12px rgba(250,63,30,.2);
  transition: background .2s, box-shadow .25s, transform .15s;
}
.nav-cta:hover {
  background: var(--red-hover);
  box-shadow: 0 6px 16px rgba(250,63,30,.28);
  transform: translateY(-1px);
}
.menu-toggle {
  display: none;
  font-size: 24px;
  color: var(--navy-dark);
  padding: 8px;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: box-shadow .3s, transform .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--navy-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(2,88,134,.15);
}
.card:hover::before {
  transform: scaleX(1);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy-pale), rgba(27,121,166,.12));
  display: grid;
  place-items: center;
  color: var(--navy);
  margin-bottom: 20px;
}
.card-img {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-img img {
  transform: scale(1.05);
}
.card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 10px;
}
.card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}
.card-number {
  margin-top: 20px;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--silver);
}

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

/* ---- Footer ---- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 36px; margin-bottom: 14px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}
.footer h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  font-size: 14px;
  transition: color .2s;
}
.footer ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: var(--fs-small);
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--white); }

/* ---- Badges / Tags ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: var(--fs-small);
  font-weight: 600;
}
.badge-navy {
  background: var(--navy-pale);
  color: var(--navy);
}
.badge-red {
  background: rgba(250,63,30,.08);
  color: var(--red);
}

/* ---- Accordion (FAQ) ---- */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  background: var(--bg-section);
  transition: background .2s;
}
.accordion-header:hover {
  background: var(--navy-pale);
}
.accordion-header .icon {
  font-size: 18px;
  transition: transform .3s;
  color: var(--navy);
}
.accordion-item.open .accordion-header .icon {
  transform: rotate(45deg);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.accordion-body-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

/* ---- Contact section ---- */
.contact-banner {
  background: linear-gradient(135deg, #013d63 0%, var(--navy-dark) 40%, var(--navy) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.contact-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
  pointer-events: none;
}
.contact-banner h2 {
  font-size: var(--fs-h2);
  color: var(--white);
  margin-bottom: 8px;
}
.contact-banner p {
  color: rgba(255,255,255,.75);
  font-size: 17px;
}
.contact-banner .btn-primary {
  background: var(--red);
  padding: 16px 32px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}

/* ==========================================================
   SEO & Conversion Enhancements
   ========================================================== */

/* ---- Floating WhatsApp Button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff;
  padding: 12px 18px 12px 14px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.2px;
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
  color: #ffffff;
}
.whatsapp-float svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}
.whatsapp-float-pulse {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50px;
  border: 2px solid #25D366;
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
  pointer-events: none;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 0.2; }
  100% { transform: scale(1.2); opacity: 0; }
}

@media (max-width: 576px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    padding: 12px;
  }
  .whatsapp-float span {
    display: none;
  }
}

/* ---- Trust / E-E-A-T Badges Bar ---- */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin-top: -20px;
  position: relative;
  z-index: 2;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--navy-pale);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-text strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}
.trust-text span {
  font-size: 12px;
  color: var(--text-secondary);
}

@media (max-width: 992px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 576px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---- Neighborhood / Area Pills ---- */
.neighborhoods-box {
  margin-top: 32px;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: left;
}
.neighborhoods-box h3 {
  font-size: 17px;
  margin-bottom: 12px;
  color: var(--navy);
}
.neighborhoods-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.n-pill {
  font-size: 12px;
  background: var(--navy-pale);
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 100px;
  font-weight: 600;
  border: 1px solid rgba(2, 88, 134, 0.12);
}

/* ---- Services Jump Bar ---- */
.service-nav-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 36px 0 20px;
}
.service-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all .2s ease;
  box-shadow: var(--shadow-sm);
}
.service-nav-pill:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* ---- Breadcrumbs ---- */
.breadcrumb-nav {
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.breadcrumb-nav ol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb-nav li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb-nav li:not(:last-child)::after {
  content: "/";
  color: var(--silver);
}
.breadcrumb-nav a {
  color: var(--text-secondary);
  transition: color .2s;
}
.breadcrumb-nav a:hover {
  color: var(--navy);
}
.breadcrumb-nav span {
  color: var(--navy);
  font-weight: 600;
}

