/* ==========================================================================
   CJB TERRAPLANAGEM — Folha de estilo principal
   Paleta: Laranja #F57C00 | Cinza escuro #2D2D2D | Branco | Preto
   ========================================================================== */

/* ---------- Variáveis ---------- */
:root {
  --orange: #F57C00;
  --orange-dark: #E56A00;
  --orange-light: #ff9838;
  --dark: #2D2D2D;
  --darker: #1e1e1e;
  --black: #000000;
  --gray-light: #f5f6f8;
  --gray-text: #6b7280;
  --white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, .08);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, .12);
  --shadow-lg: 0 22px 50px rgba(0, 0, 0, .18);
  --radius: 14px;
  --transition: .35s cubic-bezier(.25, .8, .25, 1);
  --font-head: 'Barlow Condensed', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ---------- Base ---------- */
* { scroll-behavior: smooth; }

html { scroll-padding-top: 80px; } /* compensa navbar fixa no scroll suave */

body {
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--white);
}

h1, h2, h3, h4, .navbar-brand, .stat-number {
  font-family: var(--font-head);
  letter-spacing: .3px;
}

p { color: #4b4b4b; }

a { text-decoration: none; transition: var(--transition); }

img { max-width: 100%; height: auto; }
iframe { max-width: 100%; }

/* Evita qualquer rolagem horizontal no mobile */
html, body { max-width: 100%; }

/* ---------- Botões ---------- */
.btn {
  font-weight: 600;
  border-radius: 50px;
  padding: .65rem 1.6rem;
  transition: var(--transition);
}

.btn-lg { padding: .85rem 2.1rem; }

.btn-orange {
  background: var(--orange);
  border: 2px solid var(--orange);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(245, 124, 0, .35);
}
.btn-orange:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(245, 124, 0, .45);
}

.btn-dark {
  background: var(--dark);
  border: 2px solid var(--dark);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--black);
  border-color: var(--black);
  transform: translateY(-3px);
}

.btn-outline-light:hover { transform: translateY(-3px); }

.btn-whatsapp {
  background: #25D366;
  border: 2px solid #25D366;
  color: var(--white);
  box-shadow: 0 8px 22px rgba(37, 211, 102, .4);
}
.btn-whatsapp:hover {
  background: #1ebe5a;
  border-color: #1ebe5a;
  color: var(--white);
  transform: translateY(-3px);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
#mainNav {
  background: rgba(45, 45, 45, .55);
  padding: 1rem 0;
  transition: var(--transition);
  backdrop-filter: blur(6px);
}
#mainNav.scrolled {
  background: var(--dark);
  padding: .55rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand { font-size: 1.55rem; color: var(--white) !important; font-weight: 700; }
.navbar-brand strong { color: var(--orange); }
.brand-icon { color: var(--orange); font-size: 1.7rem; line-height: 1; }
.brand-svg { display: block; vertical-align: middle; }

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, .85) !important;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .98rem;
  margin: 0 .35rem;
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: var(--transition);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 100%; }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--white) !important; }

.navbar-toggler { border: none; padding: .25rem .5rem; }
.navbar-toggler:focus { box-shadow: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* respeita a barra de endereço no celular */
  display: flex;
  align-items: center;
  background: url('../assets/images/hero.jpg') center/cover no-repeat fixed;
  color: var(--white);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,.82) 0%, rgba(45,45,45,.6) 60%, rgba(245,124,0,.25) 100%);
}
/* padding vertical apenas — mantém o gutter lateral do .container */
.hero-content { position: relative; z-index: 2; padding-top: 7rem; padding-bottom: 5rem; }

.hero-badge {
  display: inline-block;
  background: rgba(245, 124, 0, .18);
  border: 1px solid rgba(245, 124, 0, .5);
  color: var(--orange-light);
  padding: .45rem 1.1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2rem, 7vw, 4.6rem);
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .5);
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 620px;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 2.2rem;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 25px;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 1.6rem;
  z-index: 2;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ==========================================================================
   FAIXA DE ESTATÍSTICAS
   ========================================================================== */
.stats-band {
  background: var(--orange);
  padding: 2.5rem 0;
  color: var(--white);
}
.stat-number { font-size: 2.8rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .95rem; font-weight: 500; opacity: .95; margin-top: .3rem; }

/* ==========================================================================
   SEÇÕES GENÉRICAS
   ========================================================================== */
.section { padding: 6rem 0; }
.section-light { background: var(--gray-light); }
.section-dark { background: var(--dark); }

.section-eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .85rem;
  margin-bottom: .6rem;
}
.section-eyebrow.light { color: var(--orange-light); }

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--dark);
}
.section-title.text-white { color: var(--white); }

.section-subtitle { color: var(--gray-text); max-width: 620px; font-size: 1.08rem; }
.text-light-muted { color: rgba(255, 255, 255, .7) !important; }

/* ==========================================================================
   SOBRE
   ========================================================================== */
.about-image-wrap { position: relative; }
.about-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}
.about-experience {
  position: absolute;
  bottom: -25px; right: -15px;
  background: var(--orange);
  color: var(--white);
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  line-height: 1.1;
}
.about-experience .years { display: block; font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; }
.about-experience .years-label { font-size: .8rem; font-weight: 500; }

.lead-text { font-size: 1.2rem; color: var(--dark); }

.about-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.about-list li { margin-bottom: .7rem; font-weight: 500; color: var(--dark); }
.about-list i { color: var(--orange); margin-right: .5rem; }

/* ==========================================================================
   SERVIÇOS
   ========================================================================== */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 0;
  background: var(--dark);
  transition: var(--transition);
  z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--orange);
}
.service-icon {
  width: 68px; height: 68px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  margin-bottom: 1.3rem;
  box-shadow: 0 8px 18px rgba(245, 124, 0, .35);
  transition: var(--transition);
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); }
.service-title { font-size: 1.35rem; font-weight: 700; margin-bottom: .6rem; color: var(--dark); }
.service-card p { color: var(--gray-text); font-size: .95rem; margin: 0; }

/* ==========================================================================
   DIFERENCIAIS
   ========================================================================== */
.feature-box {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 1.6rem;
  height: 100%;
  transition: var(--transition);
}
.feature-box:hover {
  background: rgba(245, 124, 0, .1);
  border-color: rgba(245, 124, 0, .4);
  transform: translateY(-6px);
}
.feature-icon {
  flex-shrink: 0;
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--orange);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.feature-title { font-size: 1.2rem; color: var(--white); margin-bottom: .3rem; font-weight: 700; }
.feature-box p { color: rgba(255, 255, 255, .7); font-size: .93rem; margin: 0; }

/* ==========================================================================
   GALERIA
   ========================================================================== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery-item::after {
  content: '\F52A'; /* bi-zoom-in */
  font-family: 'bootstrap-icons';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(45, 45, 45, .55);
  color: var(--white);
  font-size: 2rem;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.15); }
.gallery-item:hover::after { opacity: 1; }

.gallery-modal-close {
  position: absolute;
  top: -44px; right: 0;
  z-index: 20;
  opacity: 1;
}

/* Carrossel / lightbox da galeria */
.gallery-carousel .carousel-item img {
  border-radius: var(--radius);
  max-height: 82vh;
  object-fit: contain;
  background: #000;
}
.gallery-counter {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: .3rem .9rem;
  border-radius: 50px;
  z-index: 15;
  backdrop-filter: blur(4px);
}

/* Em telas pequenas: botão fechar visível dentro da área e controles maiores */
@media (max-width: 575.98px) {
  .gallery-modal-close {
    top: 8px; right: 8px;
    background-color: rgba(0, 0, 0, .55);
    border-radius: 50%;
    padding: .7rem;
    background-size: .8rem;
  }
  .gallery-carousel .carousel-item img { max-height: 74vh; }
  .gallery-carousel .carousel-control-prev,
  .gallery-carousel .carousel-control-next { width: 18%; }
}

/* ==========================================================================
   DEPOIMENTOS
   ========================================================================== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem 3rem 2.5rem;
  box-shadow: var(--shadow-md);
  margin: 0 auto 2rem;
  max-width: 760px;
}
.stars { color: #ffc107; font-size: 1.15rem; margin-bottom: 1.2rem; }
.testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--dark);
  line-height: 1.7;
  margin-bottom: 1.6rem;
}
.testimonial-author {
  display: flex; align-items: center; justify-content: center;
  gap: .9rem;
}
.testimonial-author .avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 1.15rem;
}
.testimonial-author strong { display: block; color: var(--dark); }
.testimonial-author small { color: var(--gray-text); }

.carousel-control-prev, .carousel-control-next { width: 5%; opacity: .8; }
.carousel-control-prev-icon, .carousel-control-next-icon {
  background-color: var(--orange);
  border-radius: 50%;
  padding: 1.1rem;
  background-size: 45%;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-accordion .accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: var(--radius) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-accordion .accordion-button {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  padding: 1.3rem 1.5rem;
  background: var(--white);
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--dark);
  color: var(--white);
  box-shadow: none;
}
.faq-accordion .accordion-button:focus { box-shadow: none; }
.faq-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}
.faq-accordion .accordion-button::after {
  background-size: 1.1rem;
}
.faq-accordion .accordion-body { padding: 1.3rem 1.5rem; color: var(--gray-text); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-band {
  background: linear-gradient(120deg, var(--orange) 0%, var(--orange-dark) 100%);
  padding: 4.5rem 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
}
.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: .8rem;
  position: relative;
}
.cta-subtitle { font-size: 1.15rem; opacity: .95; margin-bottom: 2rem; position: relative; }
.cta-band .btn-whatsapp { position: relative; }

/* ==========================================================================
   CONTATO
   ========================================================================== */
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Card de chamada para o WhatsApp */
.contact-cta-box {
  background: var(--white);
  border: 1px solid #eceef2;
  border-top: 4px solid #25D366;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 3rem 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.contact-cta-icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .4);
  animation: pulse 2.5s infinite;
}
.contact-cta-box h3 { font-size: 1.6rem; font-weight: 700; color: var(--dark); margin-bottom: .6rem; }
.contact-cta-box p { color: var(--gray-text); margin-bottom: 1.8rem; max-width: 340px; }
.contact-cta-box .btn { max-width: 360px; }
.form-label { font-weight: 600; color: var(--dark); font-size: .92rem; }
.form-control, .form-select {
  border-radius: 10px;
  padding: .7rem .9rem;
  border: 1.5px solid #e2e4e9;
}
.form-control:focus, .form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 .2rem rgba(245, 124, 0, .18);
}

.contact-info {
  background: var(--dark);
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  height: 100%;
  box-shadow: var(--shadow-md);
}
.contact-info h3 { color: var(--white); font-weight: 700; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, .88);
  padding: .8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.contact-item:last-of-type { border-bottom: none; }
.contact-item:hover { color: var(--white); }
.contact-item-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--orange);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}
.contact-item:hover .contact-item-icon { transform: scale(1.1); }
.contact-item span strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--orange-light); }
.map-wrap { border-radius: var(--radius); overflow: hidden; }

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.footer {
  background: var(--darker);
  color: rgba(255, 255, 255, .72);
  padding: 4rem 0 1.5rem;
}
.footer-brand {
  display: inline-flex; align-items: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
}
.footer-brand strong { color: var(--orange); margin-left: .3rem; }
.footer-brand .brand-icon { color: var(--orange); font-size: 1.6rem; }
.footer-title { color: var(--white); font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 1.2rem; font-weight: 600; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255, 255, 255, .7); }
.footer-links a:hover { color: var(--orange); padding-left: 5px; }
.footer-contact li { color: rgba(255, 255, 255, .7); margin-bottom: .6rem; }
.footer-contact i { color: var(--orange); margin-right: .5rem; }

.social-links { display: flex; gap: .7rem; margin-top: 1.2rem; }
.social-links a {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.social-links a:hover { background: var(--orange); transform: translateY(-4px); }

.footer-divider { border-color: rgba(255, 255, 255, .1); margin: 2.5rem 0 1.2rem; }
.footer-copy { font-size: .9rem; color: rgba(255, 255, 255, .55); }

/* ==========================================================================
   BOTÃO FLUTUANTE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px; right: 25px;
  width: 62px; height: 62px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  z-index: 999;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .5);
  animation: pulse 2s infinite;
}
.whatsapp-float:hover { color: var(--white); transform: scale(1.1); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Botão voltar ao topo */
.back-to-top {
  position: fixed;
  bottom: 25px; right: 100px;
  width: 48px; height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  font-size: 1.2rem;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--orange); transform: translateY(-4px); }

/* ==========================================================================
   SCROLL REVEAL (animação via JS)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   TOQUES DE MODERNIDADE
   ========================================================================== */

/* Tipografia mais suave */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* Seleção de texto na cor da marca */
::selection { background: var(--orange); color: #fff; }

/* Barra de rolagem moderna (desktop) */
* { scrollbar-width: thin; scrollbar-color: var(--orange) transparent; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 10px; }
::-webkit-scrollbar-track { background: #ececec; }

/* Traço em gradiente sob os títulos centralizados */
.text-center .section-title { position: relative; padding-bottom: .8rem; }
.text-center .section-title::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 68px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
}

/* Botão laranja com gradiente e brilho ao passar o mouse */
.btn-orange {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  position: relative;
  overflow: hidden;
}
.btn-orange::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn-orange:hover::after { left: 125%; }

/* Efeito "glass" no badge do hero e leve brilho */
.hero-badge { backdrop-filter: blur(6px); }

/* Números das estatísticas com leve destaque */
.stat-number { text-shadow: 0 2px 12px rgba(0, 0, 0, .15); letter-spacing: .5px; }

/* Imagens da galeria e sobre com transição suave ao carregar */
.gallery-item img, .about-image { transition: transform .6s ease, filter .4s ease; }
.gallery-item:hover img { filter: saturate(1.1); }

/* Cartões com leve realce de borda ao passar o mouse */
.service-card, .feature-box, .contact-cta-box { will-change: transform; }

/* Foco acessível e moderno nos elementos interativos */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.form-control:focus-visible, .form-select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ==========================================================================
   RESPONSIVIDADE  (mobile é a prioridade — ~90% dos acessos via celular)
   ========================================================================== */

/* ---------- Tablets e abaixo (< 992px) ---------- */
@media (max-width: 991.98px) {
  #mainNav {
    background: var(--dark);
    padding: .7rem 0;
  }
  .navbar-collapse {
    background: var(--dark);
    margin-top: .8rem;
    padding: 1rem;
    border-radius: var(--radius);
  }
  .navbar-nav .nav-link { padding: .7rem .2rem; } /* alvo de toque maior */
  .navbar-nav .btn { margin-top: .6rem; display: inline-block; width: 100%; }
  .hero { background-attachment: scroll; } /* evita bug de fixed no iOS */
  .about-experience { right: 15px; }
  .section { padding: 4rem 0; }
  .contact-info { margin-top: 0; }
}

/* ---------- Celulares em paisagem / tablets pequenos (< 768px) ---------- */
@media (max-width: 767.98px) {
  .section { padding: 3.5rem 0; }
  .hero-content { padding-top: 6rem; padding-bottom: 4.5rem; }

  /* Cards e caixas com menos respiro interno */
  .service-card { padding: 1.8rem 1.5rem; }
  .contact-cta-box { padding: 2.2rem 1.5rem; }
  .feature-box { padding: 1.3rem; }

  /* Badge de experiência da seção Sobre menor e sem estourar a lateral */
  .about-experience { padding: .9rem 1.2rem; bottom: 12px; right: 12px; }
  .about-experience .years { font-size: 1.9rem; }

  /* Alvos de toque mínimos de 44px nos botões */
  .btn { padding: .7rem 1.4rem; }
  .btn-lg { padding: .85rem 1.6rem; }

  /* Depoimentos e mapa */
  .testimonial-text { font-size: 1.05rem; }
  .map-wrap iframe { height: 200px; }
}

/* ---------- Celulares (< 576px) ---------- */
@media (max-width: 575.98px) {
  .navbar-brand { font-size: 1.25rem; }
  .brand-icon { font-size: 1.4rem; }

  .hero-content { padding-top: 5.5rem; padding-bottom: 4rem; }
  .hero-badge { font-size: .78rem; padding: .4rem .9rem; margin-bottom: 1rem; }
  .hero-subtitle { margin-bottom: 1.8rem; }
  .hero-buttons { flex-direction: column; gap: .75rem; }
  .hero-buttons .btn { width: 100%; }
  .hero-scroll { display: none; } /* evita sobrepor os botões empilhados */

  .section { padding: 3rem 0; }
  .section-title { margin-bottom: .75rem; }
  .section-subtitle { font-size: 1rem; }

  .stat-number { font-size: 2rem; }
  .stat-label { font-size: .82rem; }

  .service-card { padding: 1.6rem 1.4rem; }
  .service-icon { width: 60px; height: 60px; font-size: 1.7rem; }

  .testimonial-card { padding: 1.8rem 1.3rem; }
  .contact-form, .contact-info, .contact-cta-box { padding: 1.6rem; }

  /* Botões flutuantes um pouco menores e reposicionados */
  .whatsapp-float { width: 54px; height: 54px; font-size: 1.7rem; bottom: 18px; right: 18px; }
  .back-to-top { width: 44px; height: 44px; bottom: 18px; right: 80px; }

  /* Rodapé: mais espaço entre colunas empilhadas */
  .footer { padding: 3rem 0 1.2rem; }
  .footer .row > [class*="col-"] { margin-bottom: .5rem; }
}

/* ---------- Celulares muito pequenos (< 380px) ---------- */
@media (max-width: 379.98px) {
  .navbar-brand { font-size: 1.1rem; }
  .hero-title { font-size: 1.85rem; }
  .stat-number { font-size: 1.75rem; }
  .about-experience { padding: .75rem 1rem; }
  .about-experience .years { font-size: 1.6rem; }
}

/* Acessibilidade: respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .whatsapp-float, .hero-scroll { animation: none; }
  * { scroll-behavior: auto; }
}
