/*
Theme Name: AquiPerto Desentupidora
Theme URI: https://desentupidoraaquiperto.com.br
Author: AquiPerto
Description: Tema profissional para desentupidora com atendimento 24h
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aquiperto-desentupidora
*/

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:root {
  --orange: #E65100;
  --orange-light: #FF9800;
  --blue-dark: #0D2137;
  --blue-mid: #1A3A5C;
  --blue-nav: #0A1F35;
  --green-wa: #128C7E;
  --white: #FFFFFF;
  --gray-bg: #F5F6FA;
  --gray-text: #5A6A7A;
  --text-dark: #0D2137;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
}

/* ── NAV ── */
nav {
  background: var(--blue-nav);
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 5%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.nav-logo {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.nav-phone {
  background: var(--orange);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background .2s;
}

.nav-phone:hover {
  background: var(--orange-light);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--orange-light);
}

/* Menu Toggle Button */
#menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
}

#menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--white);
  margin-bottom: 5px;
  transition: all 0.3s ease;
  border-radius: 2px;
}

#menu-toggle span:last-child {
  margin-bottom: 0;
}

#menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

#menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 60%, #0e2d50 100%);
  padding: 80px 5% 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(245, 124, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-text {
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(245, 124, 0, 0.18);
  color: var(--orange-light);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(245, 124, 0, 0.4);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--orange-light);
}

.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-wa);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: border-color .2s, background .2s;
}

.btn-phone:hover {
  border-color: var(--orange-light);
  background: rgba(245, 124, 0, 0.1);
}

.hero-img-wrap {
  position: relative;
  z-index: 1;
  animation: float 4s ease-in-out infinite;
}

.hero-img-wrap img {
  width: min(300px, 40vw);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* ── STRIP ── */
.strip {
  background: var(--orange);
  padding: 18px 5%;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.strip-item svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
  flex-shrink: 0;
}

/* ── SERVICES ── */
.section {
  padding: 80px 5%;
}

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--gray-text);
  font-size: 16px;
  margin-bottom: 52px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1.5px solid #E8ECF1;
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(13, 33, 55, 0.1);
  border-color: var(--orange);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.service-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ── DIFFERENTIALS ── */
.diff-section {
  background: var(--blue-dark);
  padding: 80px 5%;
}

.diff-section .section-title {
  color: var(--white);
}

.diff-section .section-sub {
  color: rgba(255, 255, 255, 0.6);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.diff-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 30px 24px;
  transition: background .25s, border-color .25s;
}

.diff-card:hover {
  background: rgba(245, 124, 0, 0.1);
  border-color: rgba(245, 124, 0, 0.4);
}

.diff-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 42px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}

.diff-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 8px;
}

.diff-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ── TESTIMONIALS ── */
.testi-section {
  background: var(--gray-bg);
  padding: 80px 5%;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.testi-card {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.testi-stars {
  color: #FFB300;
  font-size: 18px;
  margin-bottom: 14px;
}

.testi-text {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testi-author {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--blue-dark);
}

.testi-loc {
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
}

/* ── FAQ ── */
.faq-section {
  padding: 80px 5%;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1.5px solid #E0E6ED;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
}

.faq-item.open {
  border-color: var(--orange);
}

.faq-q {
  width: 100%;
  background: var(--white);
  border: none;
  text-align: left;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--blue-dark);
  cursor: pointer;
  transition: background .2s;
}

.faq-q:hover {
  background: #fafbfd;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .3s;
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  fill: white;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 24px;
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.7;
  background: var(--white);
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ── AREA ── */
.area-section {
  background: var(--gray-bg);
  padding: 80px 5%;
  text-align: center;
}

.area-phone {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 3vw, 36px);
  color: var(--blue-dark);
  margin-bottom: 32px;
}

.area-phone span {
  color: var(--orange);
}

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}

.tag {
  background: var(--white);
  border: 1.5px solid #D8E2EC;
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-mid);
  font-family: 'Montserrat', sans-serif;
  transition: border-color .2s, color .2s;
}

.tag:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  padding: 80px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(245, 124, 0, 0.15), transparent);
  pointer-events: none;
}

.cta-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 46px);
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.btn-wa-lg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green-wa);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 17px;
  padding: 18px 40px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}

.btn-wa-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.5);
}

/* ── FOOTER ── */
footer {
  background: var(--blue-nav);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-logo {
  height: 56px;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 240px;
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}

.footer-col ul a:hover {
  color: var(--white);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-phone {
    display: none;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 5% 70px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-img-wrap img {
    width: 200px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--blue-nav);
    padding: 20px 5%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    font-size: 16px;
    padding: 10px 0;
    display: block;
  }

  #menu-toggle {
    display: block;
  }

  .strip {
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── SCROLL REVEAL ── */
/* Padrão: visível. JS adiciona 'js-loaded' ao body e então esconde para animar */
.js-loaded .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-loaded .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-loaded .reveal,
  .js-loaded .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── BLOG & PAGES HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  padding: 60px 5%;
  text-align: center;
}

.page-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--white);
  margin-bottom: 15px;
}

.page-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* ── BLOG GRID ── */
.blog-grid-section {
  padding: 60px 5%;
  background-color: var(--gray-bg);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card-image-link:hover .blog-card-image {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-category {
  display: inline-block;
  background: rgba(245, 124, 0, 0.1);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.blog-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-title a:hover {
  color: var(--orange);
}

.blog-card-excerpt {
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-pagination {
  margin-top: 50px;
  text-align: center;
}

.blog-pagination .nav-links {
  display: inline-flex;
  gap: 10px;
  justify-content: center;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-block;
  padding: 10px 18px;
  background: var(--white);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.blog-pagination a:hover,
.blog-pagination .current {
  background: var(--orange);
  color: var(--white);
}

/* ── SINGLE POST ── */
.single-post-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 5%;
}

.single-article {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.single-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.25;
}

.single-meta {
  color: var(--gray-text);
  font-size: 14px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.single-thumbnail {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.single-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.single-content {
  font-size: 16px;
  line-height: 1.8;
  color: #334;
}

.single-content p {
  margin-bottom: 20px;
}

.single-content h2,
.single-content h3,
.single-content h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: 700;
}

.single-content h2 {
  font-size: 26px;
}

.single-content h3 {
  font-size: 22px;
}

.single-content ul,
.single-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.single-content li {
  margin-bottom: 10px;
}

.single-content a {
  color: var(--orange);
  text-decoration: underline;
}

.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.single-content blockquote {
  border-left: 4px solid var(--orange);
  padding-left: 20px;
  font-style: italic;
  color: var(--gray-text);
  margin-bottom: 20px;
  background: rgba(245, 124, 0, 0.05);
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
}

/* ── RESPONSIVE BLOG/SINGLE ── */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .single-article {
    padding: 20px;
  }

  .single-title {
    font-size: 24px;
  }
}