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

:root {
  --primary: #0b2c6b; /* Azul logo */
  --primary-dark: #08214f;
  --primary-light: #dc2626;
  --primary-fg: #ffffff;
  --bg: #F8FAFC;
  --card: #ffffff;
  --foreground: #0F172A;
  --muted: #64748B;
  --muted-bg: #F1F5F9;
  --border: #E2E8F0;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--foreground);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', sans-serif; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Top Bar */
.top-bar {
  background: var(--primary);
  color: var(--primary-fg);
  padding: .5rem 1rem;
  font-size: .875rem;
}
.top-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.top-bar a { font-weight: 600; display: flex; align-items: center; gap: .5rem; transition: opacity .2s; }
.top-bar a:hover { opacity: .85; }
.top-bar .info { display: flex; align-items: center; gap: .5rem; }

/* Header */
.header {
  background: var(--card);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header .container { display: flex; align-items: center; justify-content: space-between; padding-top: .75rem; padding-bottom: .75rem; }
.header .logo img { height: 4.5rem; width: auto; max-width: 250px; object-fit: contain; }
.header nav { display: none; gap: 1.5rem; font-size: .875rem; font-weight: 500; }
.header nav a { transition: color .2s; }
.header nav a:hover { color: var(--primary); }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .625rem 1.25rem; border-radius: .5rem;
  font-weight: 600; font-size: .875rem;
  border: none; cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,.3); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: .875rem 2rem; font-size: 1.125rem; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg .overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,23,42,.9), rgba(15,23,42,.7), rgba(15,23,42,.4)); }
.hero .container { position: relative; padding-top: 5rem; padding-bottom: 5rem; }
.hero-content { max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(11, 44, 107, 0.2); backdrop-filter: blur(8px);
  border: 1px solid rgba(11, 44, 107, 0.3); border-radius: 9999px;
  padding: .375rem 1rem; font-size: .875rem; font-weight: 500;
  color: #fff; margin-bottom: 1.5rem;
}
.hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; color: #fff; }
.hero h1 span { color: var(--primary-light); }
.hero p { font-size: 1.125rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; max-width: 480px; }
.hero p strong { color: #fff; }
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; }

/* Stats */
.stats { background: var(--card); border-bottom: 1px solid var(--border); }
.stats .container { padding-top: 3rem; padding-bottom: 3rem; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.stat { text-align: center; }
.stat svg { margin: 0 auto .75rem; color: var(--primary); }
.stat .value { font-size: 1.875rem; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; }
.stat .label { font-size: .875rem; color: var(--muted); margin-top: .25rem; }

/* Section headers */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .tag { display: inline-block; color: var(--primary); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }
.section-header h2 { font-size: 1.875rem; font-weight: 800; }
.section-header p { color: var(--muted); margin-top: .75rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Services */
.services { padding: 4rem 0; }
.services-grid { display: grid; gap: 1.5rem; }
.service-card {
  background: var(--card); border-radius: 1rem; overflow: hidden;
  box-shadow: var(--shadow-lg); transition: all .3s;
}
.service-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.service-card .img-wrap { position: relative; height: 12rem; overflow: hidden; }
.service-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .img-wrap img { transform: scale(1.05); }
.service-card .img-wrap .gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.6), transparent); }
.service-card .img-wrap h3 { position: absolute; bottom: 1rem; left: 1rem; color: #fff; font-weight: 700; font-size: 1.125rem; }
.service-card .content { padding: 1.25rem; }
.service-card .content p { font-size: .875rem; color: var(--muted); line-height: 1.7; }
.service-card .content a { display: inline-flex; align-items: center; gap: .5rem; color: var(--primary); font-weight: 600; font-size: .875rem; margin-top: 1rem; transition: gap .2s; }
.service-card .content a:hover { gap: .75rem; }

/* About */
.about { padding: 4rem 0; background: var(--card); }
.about-grid { display: grid; gap: 3rem; align-items: center; }
.about .tag { display: inline-block; color: var(--primary); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }
.about h2 { font-size: 1.875rem; font-weight: 800; margin-bottom: 1.5rem; }
.about > .container > .about-grid > div:first-child > p { color: var(--muted); margin-bottom: 2rem; line-height: 1.7; }
.diff-grid { display: grid; gap: 1rem; }
.diff-item { display: flex; align-items: center; gap: .75rem; padding: .75rem; border-radius: .5rem; background: var(--muted-bg); }
.diff-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(11, 44, 107, 0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.diff-icon svg { color: var(--primary); }
.diff-item span { font-weight: 500; font-size: .875rem; }
.about-img { position: relative; }
.about-img img { border-radius: 1rem; box-shadow: var(--shadow-xl); width: 100%; }
.about-badge {
  position: absolute; bottom: -1.5rem; left: -1.5rem;
  background: var(--primary); color: var(--primary-fg); border-radius: 1rem;
  padding: 1.5rem; box-shadow: var(--shadow-xl);
}
.about-badge .num { font-size: 2rem; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; }
.about-badge .txt { font-size: .875rem; font-weight: 500; opacity: .9; }

/* Segments */
.segments { padding: 4rem 0; background: var(--primary); color: var(--primary-fg); text-align: center; }
.segments h2 { font-size: 1.875rem; font-weight: 800; margin-bottom: 1rem; }
.segments > .container > p { opacity: .8; margin-bottom: 2.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.segments-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.segments-list span {
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 9999px;
  padding: .625rem 1.5rem; font-size: .875rem; font-weight: 500;
}

/* FAQ */
.faq { padding: 4rem 0; }
.faq-list { max-width: 768px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: .75rem; overflow: hidden; box-shadow: var(--shadow); }
.faq-question {
  width: 100%; padding: 1.25rem 1.5rem; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 1rem; color: var(--foreground); cursor: pointer;
  text-align: left; font-family: 'Inter', sans-serif;
}
.faq-question svg { transition: transform .3s; flex-shrink: 0; margin-left: 1rem; }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; color: var(--muted); line-height: 1.7; font-size: .9375rem; }
.faq-item.active .faq-answer { max-height: 300px; padding: 0 1.5rem 1.25rem; }

/* CTA */
.cta { padding: 4rem 0; background: var(--card); text-align: center; }
.cta h2 { font-size: 1.875rem; font-weight: 800; margin-bottom: 1rem; }
.cta p { color: var(--muted); font-size: 1.125rem; margin-bottom: 2rem; }
.cta-buttons { display: flex; flex-direction: column; gap: 1rem; justify-content: center; align-items: center; }

/* Footer */
.footer { background: var(--foreground); color: rgba(255,255,255,.7); padding: 3rem 0; }
.footer-grid { display: grid; gap: 2rem; }
.footer .logo img { height: 4.5rem; width: auto; max-width: 250px; margin-bottom: 1rem; object-fit: contain; }
.footer p, .footer li { font-size: .875rem; line-height: 1.7; }
.footer h4 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer ul { display: flex; flex-direction: column; gap: .5rem; }
.footer .contact-item { display: flex; align-items: center; gap: .5rem; }
.footer .contact-item a { transition: color .2s; }
.footer .contact-item a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 2rem; text-align: center; font-size: .875rem; }
.footer-bottom a { color: var(--primary-light); }
.footer-bottom a:hover { text-decoration: underline; }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  background: var(--whatsapp); color: #fff; border-radius: 50%;
  width: 3.5rem; height: 3.5rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,.4); transition: all .3s;
  animation: bounce 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); background: var(--whatsapp-dark); }

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* Responsive */
@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
  .cta-buttons { flex-direction: row; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .header nav { display: flex; }
  .hero .container { padding-top: 8rem; padding-bottom: 8rem; }
  .hero h1 { font-size: 3.75rem; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .section-header h2, .about h2, .segments h2, .cta h2 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Modal de Localização */
.location-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.location-modal.active {
  opacity: 1;
  visibility: visible;
}

.location-content {
  background: #fff;
  border-radius: 1.5rem;
  max-width: 450px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.location-modal.active .location-content {
  transform: translateY(0);
}

.location-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748B;
  line-height: 1;
}

.location-logo {
  height: 4rem;
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.location-content h2 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.location-content h3 {
  color: #DC2626;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.location-content p {
  color: #475569;
  font-size: 0.9375rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.location-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-location {
  background: #3B82F6;
  color: #fff;
  justify-content: center;
  padding: 0.875rem;
}

.btn-location:hover {
  background: #2563EB;
}

.btn-whatsapp-modal {
  background: #25D366;
  color: #fff;
  justify-content: center;
  padding: 0.875rem;
}

.btn-whatsapp-modal:hover {
  background: #16A34A;
}

.btn-call-modal {
  background: #334155;
  color: #fff;
  justify-content: center;
  padding: 0.875rem;
}

.btn-call-modal:hover {
  background: #1E293B;
}


/* Ajustes solicitados - Doutor Esgoto azul */
.logo-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
  color:var(--primary);
  font-family:'Plus Jakarta Sans',sans-serif;
  text-decoration:none;
}
.logo-text strong{font-size:1.75rem;font-weight:800;letter-spacing:-.03em}
.logo-text span{font-size:.82rem;font-weight:700;color:var(--primary-light);text-transform:uppercase;letter-spacing:.04em;margin-top:.25rem}
.logo-footer-text{display:flex;flex-direction:column;color:#fff;font-family:'Plus Jakarta Sans',sans-serif;margin-bottom:1rem}
.logo-footer-text strong{font-size:1.6rem;font-weight:800}
.logo-footer-text span{font-size:.85rem;font-weight:700;opacity:.9}
.top-bar-strong{position:relative;z-index:60}
.top-actions{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}
.top-phone{font-size:1rem;font-weight:800!important;background:rgba(255,255,255,.14);padding:.45rem .75rem;border-radius:.5rem}
.top-whats{background:var(--whatsapp);color:#fff!important;padding:.45rem .85rem;border-radius:.5rem;font-weight:800!important}
.header .btn-whatsapp{font-weight:800;box-shadow:0 8px 18px rgba(37,211,102,.25)}
.blog{padding:4rem 0;background:var(--muted-bg)}
.blog-grid{display:grid;gap:1rem}
.blog-card{background:#fff;border:1px solid var(--border);border-radius:1rem;padding:1.5rem;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:.5rem;transition:all .2s}
.blog-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);border-color:var(--primary)}
.blog-card strong{color:var(--primary);font-size:1.15rem;font-family:'Plus Jakarta Sans',sans-serif}
.blog-card span{color:var(--muted)}
.floating-contact{position:fixed;right:18px;bottom:18px;z-index:999;display:flex;flex-direction:column;gap:10px}
.floating-contact a{display:flex;align-items:center;justify-content:center;border-radius:999px;padding:12px 18px;font-weight:800;box-shadow:0 10px 25px rgba(0,0,0,.2);text-decoration:none}
.float-call{background:var(--primary);color:#fff}
.float-whats{background:var(--whatsapp);color:#fff}
@media(min-width:768px){.blog-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:640px){
  .top-bar .container{align-items:flex-start}
  .top-actions{width:100%}
  .top-phone,.top-whats{flex:1;justify-content:center}
  .logo-text strong{font-size:1.45rem}
  .floating-contact{left:12px;right:12px}
  .floating-contact a{width:100%}
}


/* Logo Doutor Esgoto enviada pelo cliente */
.header .logo img{
  height:78px;
  width:auto;
  max-width:260px;
  object-fit:contain;
  display:block;
}
.footer-logo{
  width:210px;
  height:auto;
  background:#fff;
  border-radius:12px;
  padding:8px;
  margin-bottom:1rem;
}
@media(max-width:640px){
  .header .logo img{
    height:62px;
    max-width:210px;
  }
}


/* Imagem real na seção de experiência */
.about-real-photo{
  margin:0 auto 2rem;
  max-width:950px;
  border-radius:1.25rem;
  overflow:hidden;
  box-shadow:var(--shadow-xl);
  border:1px solid var(--border);
}
.about-real-photo img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}


/* Fotos reais otimizadas */
.real-services{
  padding:4rem 0;
  background:#fff;
}
.real-gallery{
  display:grid;
  gap:1rem;
}
.real-gallery figure{
  background:#fff;
  border:1px solid var(--border);
  border-radius:1rem;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.real-gallery img{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
}
.real-gallery figcaption{
  padding:.85rem 1rem;
  font-weight:700;
  color:var(--primary);
  font-size:.95rem;
}
@media(min-width:768px){
  .real-gallery{grid-template-columns:repeat(4,1fr);}
}
@media(max-width:640px){
  .real-gallery img{height:210px;}
}


/* Bloco de experiência acima dos serviços */
.about{
  padding:4rem 0;
  background:#fff;
}
.about .section-header{
  margin-bottom:0;
}
.about-real-photo{
  margin:0 auto 2rem;
  max-width:950px;
  border-radius:1.25rem;
  overflow:hidden;
  box-shadow:var(--shadow-xl);
  border:1px solid var(--border);
}
.about-real-photo img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}
