/* ============================================
   APEX HVAC — Landing Page Styles
   ============================================ */

:root {
  --navy: #01142b;
  --navy-dark: #011833;
  --orange: #ca0208;
  --orange-dark: #b3050a8f; 
  --gray-bg: #F4F5F7;
  --gray-text: #6B7686;
  --gray-border: #E1E5EA;
  --white: #FFFFFF;
  --radius: 8px;
  --font: -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.6;
  background: var(--white);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-weight: 700; line-height: 1.2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); }

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

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; text-align: center; }

.link-arrow {
  display: inline-block;
  margin-top: 8px;
  color: var(--orange);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.link-arrow:hover { color: var(--orange-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.logo-mark { color: var(--orange); font-size: 20px; }
.logo-text strong { color: var(--orange); }
.logo-subtext{ color: var(--orange); font-size: 15px; font-weight: 500;}

.main-nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}
.main-nav a.active,
.main-nav a:hover { color: var(--white); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-select {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  cursor: pointer;
}
.icon-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.hamburger:hover { background: rgba(255,255,255,0.08); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy) 45%, var(--navy-dark) 100%);
  padding: 80px 0;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero-copy h1 {
  color: var(--white);
  font-size: 52px;
  margin-bottom: 20px;
}
.hero-copy p {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  max-width: 460px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-media {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, var(--navy) 0%, rgba(11,42,74,0) 35%),
    linear-gradient(135deg, #3a5a80 0%, #1b3a5c 100%);
  position: relative;
  content: url(imagem.hero.png);
}
.hero-media::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.35;
  letter-spacing: 16px;
}

/* ---------- Features ---------- */
.features {
  position: relative;
  padding: 90px 0;
  background: var(--white);
}
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-head h2 { font-size: 34px; margin-bottom: 14px; }
.section-head p { color: var(--gray-text); font-size: 16px; }

/* ---------- Carrossel de serviços ---------- */
.carousel { position: relative; }

.carousel-track {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-btn {
  position: absolute;
  top: 96px;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(11, 42, 74, 0.18);
  transition: background 0.2s ease, opacity 0.2s ease;
}
.carousel-btn:hover { background: var(--orange-dark); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
.carousel-btn--prev { left: -22px; }
.carousel-btn--next { right: -22px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--gray-border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.active { background: var(--orange); transform: scale(1.3); }

.feature-card {
  flex: 0 0 calc((100% - 80px) / 3);
  scroll-snap-align: start;
  text-align: center;
  padding: 0 12px;
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  overflow: hidden;
  flex-shrink: 0;
}
.feature-icon svg {
  width: 42px;
  height: 42px;
  display: block;
}
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--gray-text); font-size: 15px; }

/* ---------- Nossos Trabalhos (Gallery Carousel) ---------- */
.gallery {
  padding: 90px 0;
  background: var(--gray-bg);
}
.gallery-carousel {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}
.gallery-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.gallery-slide {
  flex: 0 0 100%;
  position: relative;
  height: 380px;
  display: flex;
  align-items: flex-end;
}
.gallery-slide .slide-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--navy);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.gallery-slide .slide-caption {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 24px 28px;
  background: linear-gradient(0deg, rgba(8,30,56,0.88) 0%, rgba(8,30,56,0) 100%);
  color: var(--white);
}
.gallery-slide .slide-caption h3 { font-size: 20px; margin-bottom: 4px; }
.gallery-slide .slide-caption p { font-size: 14px; color: rgba(255,255,255,0.8); margin: 0; }

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(11,42,74,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s ease, color 0.2s ease;
}
.gallery-nav-btn:hover { background: var(--orange); color: var(--white); }
.gallery-prev { left: -22px; }
.gallery-next { right: -22px; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--gray-border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.gallery-dot.active { background: var(--orange); transform: scale(1.2); }

@media (max-width: 640px) {
  .gallery-slide { height: 280px; }
  .gallery-prev { left: 6px; }
  .gallery-next { right: 6px; }
  .gallery-nav-btn { width: 36px; height: 36px; font-size: 15px; }
}

/* ---------- Commercial Services ---------- */
.commercial {
  background: var(--navy);
  padding: 100px 0;
}
.commercial-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.commercial-copy h2 { color: var(--white); font-size: 32px; margin-bottom: 18px; }
.commercial-copy p { color: rgba(255,255,255,0.75); margin-bottom: 28px; max-width: 400px; }

.commercial-media { position: relative; }
.commercial-photo {
  height: 340px;
  border-radius: var(--radius);
}

.quote-card {
  position: absolute;
  top: 0px;
  right: 24px;
  bottom: -40px;
  width: 450px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.quote-card h3 { font-size: 18px; margin-bottom: 6px; }
.quote-card > p { color: var(--gray-text); font-size: 13px; margin-bottom: 18px; }
.field { display: block; margin-bottom: 14px; }
.field span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-text);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.field input:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

/* ---------- Bairros Atendidos (dropdown) ---------- */
.bairros-field { margin-bottom: 14px; }
.bairro-select {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--navy);
  background-color: var(--white);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F07C1E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}
.bairro-select:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}
.bairro-select:invalid,
.bairro-select option[value=""] {
  color: var(--gray-text);
}

/* ---------- Sobre ---------- */
.about { padding: 100px 0; background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}
.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 16px;
}
.about-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}
.about-copy h2 {
  font-size: clamp(28px, 3.2vw, 36px);
  color: var(--navy);
  margin-bottom: 20px;
}
.about-copy p {
  color: var(--gray-text);
  font-size: 16px;
  max-width: 52ch;
  margin-bottom: 16px;
}
.btn-outline-navy {
  display: inline-block;
  margin-top: 12px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }

.about-stats {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--gray-border);
  padding-left: 44px;
}
.stat { padding: 20px 0; border-bottom: 1px solid var(--gray-border); }
.stat:first-child { padding-top: 0; }
.stat:last-child { border-bottom: none; }
.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-num span { color: var(--orange); font-size: 20px; }
.stat-label { font-size: 13.5px; color: var(--gray-text); margin-top: 4px; }

/* Divider between Sobre and Footer */
.section-divider {
  height: 12px;
  background: repeating-linear-gradient(
    115deg,
    var(--orange) 0px,
    var(--orange) 3px,
    transparent 3px,
    transparent 20px
  );
  opacity: 0.9;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.85); }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr 1.1fr;
  gap: 40px;
  padding: 64px 0 48px;
}

.footer-logo { margin-bottom: 16px; }
.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 34ch;
  margin-bottom: 22px;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.socials a:hover { background: var(--orange); border-color: var(--orange); }

.footer-col h3 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
  font-size: 14.5px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.footer-col ul a:hover { color: var(--white); padding-left: 3px; }

.footer-contact li {
  font-size: 14.5px;
  color: rgba(255,255,255,0.65);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.footer-contact svg { flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.55); }
.legal-links { display: flex; gap: 22px; list-style: none; }
.legal-links a { font-size: 13px; color: rgba(255,255,255,0.55); text-decoration: none; }
.legal-links a:hover { color: var(--white); }

/* ---------- Floating WhatsApp CTA ---------- */
.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 16px;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(202, 2, 8, 0.35), 0 4px 10px rgba(0,0,0,0.18);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: floating-cta-pulse 2.4s ease-out infinite;
}

.floating-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(202, 2, 8, 0.45), 0 6px 14px rgba(0,0,0,0.22);
}

.floating-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.floating-cta__icon svg { display: block; }

.floating-cta__label { white-space: nowrap; }

@keyframes floating-cta-pulse {
  0%   { box-shadow: 0 12px 28px rgba(202, 2, 8, 0.35), 0 4px 10px rgba(0,0,0,0.18), 0 0 0 0 rgba(202, 2, 8, 0.55); }
  70%  { box-shadow: 0 12px 28px rgba(202, 2, 8, 0.35), 0 4px 10px rgba(0,0,0,0.18), 0 0 0 16px rgba(202, 2, 8, 0); }
  100% { box-shadow: 0 12px 28px rgba(202, 2, 8, 0.35), 0 4px 10px rgba(0,0,0,0.18), 0 0 0 0 rgba(202, 2, 8, 0); }
}

@media (max-width: 480px) {
  .floating-cta {
    right: 16px;
    bottom: 16px;
    padding: 12px 18px 12px 14px;
    font-size: 14px;
  }
  .floating-cta__icon { width: 28px; height: 28px; }
  .floating-cta__icon svg { width: 20px; height: 20px; }
}

@media (max-width: 360px) {
  .floating-cta__label { display: none; }
  .floating-cta { padding: 12px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .quote-card { position: static; width: 100%; margin-top: 20px; }
  .commercial-inner { grid-template-columns: 1fr; }
  .feature-card { flex-basis: calc((100% - 40px) / 2); }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    display: none;
    padding: 8px 24px 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hamburger { display: flex; }
  .header-actions .lang-select,
  .header-actions .icon-btn,
  .header-actions .btn-sm { display: none; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 380px; }
  .hero-copy h1 { font-size: 36px; }

  .feature-card { flex-basis: 88%; }
  .carousel-btn { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-stats {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--gray-border);
    padding-top: 24px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }
  .stat { border-bottom: none; padding: 0; flex: 1 1 140px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; padding: 56px 0 40px; }
}

@media (max-width: 480px) {
  .hero { padding: 56px 0; }
  .hero-copy h1 { font-size: 30px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .commercial { padding: 60px 0; }
  .about { padding: 64px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
