@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: #1e3a8a;
  --primary-dark: #1e2f6d;
  --primary-light: #3b82f6;
  --primary-fg: #ffffff;
  --accent: #dc2626;
  --accent-dark: #b91c1c;
  --bg: #f8fafc;
  --card: #ffffff;
  --foreground: #0f172a;
  --muted: #475569;
  --muted-bg: #f1f5f9;
  --border: #e2e8f0;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --shadow: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.05);
  --shadow-lg: 0 12px 24px -8px rgba(30,58,138,.18), 0 4px 8px -2px rgba(15,23,42,.08);
  --shadow-xl: 0 24px 48px -12px rgba(30,58,138,.25), 0 10px 16px -6px rgba(15,23,42,.10);
}

*, *::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; overflow-x: hidden; }
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(--accent); color: #fff; padding: .55rem 1rem; font-size: .85rem; }
.top-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: 0; }
.top-bar a { font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; }
.top-bar .info { display: inline-flex; align-items: center; gap: .5rem; }

/* ============ HEADER + MENU (mobile-first, desktop hover dropdown) ============ */
.header { background: var(--card); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; border-bottom: 3px solid var(--primary); }
.header .container { display: flex; align-items: center; justify-content: space-between; padding-top: .65rem; padding-bottom: .65rem; gap: .75rem; }
.header .logo img { height: 3rem; width: auto; max-width: 180px; object-fit: contain; }

/* Hamburger button (mobile only) */
.menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; background: var(--primary); border: none; border-radius: .5rem; cursor: pointer; flex-shrink: 0; }
.menu-toggle span { display: block; width: 22px; height: 3px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Main navigation */
.main-nav { position: fixed; top: 0; right: -100%; width: 86%; max-width: 340px; height: 100dvh; background: #fff; box-shadow: -8px 0 30px rgba(0,0,0,.18); padding: 5rem 1.25rem 2rem; overflow-y: auto; transition: right .3s ease; z-index: 95; display: flex; flex-direction: column; gap: .25rem; }
.main-nav.open { right: 0; }
.nav-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.main-nav a, .main-nav .nav-trigger { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; font-weight: 600; font-size: .98rem; color: var(--foreground); border-radius: .5rem; transition: background .2s, color .2s; cursor: pointer; background: none; border: none; width: 100%; text-align: left; font-family: inherit; }
.main-nav a:hover, .main-nav .nav-trigger:hover { background: var(--muted-bg); color: var(--accent); }
.has-submenu { position: relative; }
.nav-trigger::after { content: '▾'; font-size: .8rem; transition: transform .25s; color: var(--accent); }
.has-submenu.open .nav-trigger::after { transform: rotate(180deg); }
.submenu { list-style: none; padding: 0 0 .35rem .75rem; margin: 0; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.has-submenu.open .submenu { max-height: 600px; }
.submenu li a { padding: .65rem .85rem; font-size: .92rem; font-weight: 500; color: var(--muted); border-left: 2px solid var(--border); border-radius: 0 .35rem .35rem 0; }
.submenu li a:hover { color: var(--accent); border-left-color: var(--accent); background: var(--muted-bg); }

.header-cta { display: none; }

/* DESKTOP nav */
@media (min-width: 992px) {
  .header .container { padding-top: .85rem; padding-bottom: .85rem; }
  .header .logo img { height: 4rem; max-width: 220px; }
  .menu-toggle, .nav-overlay { display: none !important; }
  .main-nav { position: static; width: auto; max-width: none; height: auto; background: transparent; box-shadow: none; padding: 0; overflow: visible; flex-direction: row; gap: .25rem; align-items: center; flex: 1; justify-content: center; }
  .main-nav > * { position: relative; }
  .main-nav a, .main-nav .nav-trigger { padding: .55rem .85rem; font-size: .92rem; border-radius: .45rem; width: auto; gap: .35rem; }
  .nav-trigger::after { content: '▾'; font-size: .7rem; }
  .submenu { position: absolute; top: 100%; left: 0; min-width: 280px; background: #fff; box-shadow: 0 12px 40px rgba(15,23,42,.18); border: 1px solid var(--border); border-radius: .65rem; padding: .5rem; max-height: none; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; border-top: 3px solid var(--accent); }
  .submenu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 12px; }
  .has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu, .has-submenu.open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); max-height: none; }
  .submenu li a { padding: .6rem .85rem; border-left: none; border-radius: .4rem; font-size: .9rem; }
  .submenu li a:hover { background: var(--muted-bg); border-left: none; }
  .header-cta { display: inline-flex; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: .6rem; font-weight: 700; font-size: .9rem; border: none; cursor: pointer; transition: all .2s; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(220,38,38,.35); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 4px 14px rgba(37,211,102,.3); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,.3); color: #fff; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1rem; }

/* 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(135deg, rgba(30,58,138,.94) 0%, rgba(30,58,138,.78) 50%, rgba(15,23,42,.55) 100%); }
.hero .container { position: relative; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.hero-content { max-width: 680px; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(220,38,38,.95); border-radius: 9999px; padding: .4rem 1rem; font-size: .8rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(1.7rem, 5vw, 2.8rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.1rem; color: #fff; letter-spacing: -.02em; }
.hero h1 span { color: #fbbf24; display: block; }
.hero p { font-size: clamp(.98rem, 2.4vw, 1.15rem); color: rgba(255,255,255,.92); margin-bottom: 1.5rem; max-width: 560px; }
.hero p strong { color: #fff; background: rgba(220,38,38,.4); padding: 0 .25rem; border-radius: .25rem; }
.hero-buttons { display: flex; flex-direction: column; gap: .85rem; }
@media (min-width: 640px) { .hero-buttons { flex-direction: row; flex-wrap: wrap; } }

/* Stats */
.stats { background: #fff; border-bottom: 1px solid var(--border); }
.stats .container { padding: 2rem 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.stat { text-align: center; }
.stat svg { margin: 0 auto .5rem; color: var(--primary); }
.stat .value { font-size: clamp(1.4rem, 4vw, 1.85rem); font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--primary); }
.stat .label { font-size: .82rem; color: var(--muted); margin-top: .15rem; font-weight: 500; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

/* Section header */
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header .tag { display: inline-block; color: #fff; background: var(--accent); padding: .25rem .85rem; border-radius: 9999px; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .65rem; }
.section-header h2 { font-size: clamp(1.5rem, 4vw, 1.95rem); font-weight: 800; color: var(--primary); }
.section-header p { color: var(--muted); margin-top: .65rem; max-width: 620px; margin-left: auto; margin-right: auto; }

/* Services grid */
.services { padding: 3rem 0; }
.services-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .services-grid { grid-template-columns: repeat(3, 1fr); } .services { padding: 4rem 0; } }
.service-card { background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-lg); transition: all .3s; border: 1px solid var(--border); }
.service-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px); border-color: var(--primary-light); }
.service-card .img-wrap { position: relative; height: 11rem; 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.07); }
.service-card .img-wrap .gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,58,138,.85), transparent 60%); }
.service-card .img-wrap h3 { position: absolute; bottom: 1rem; left: 1rem; color: #fff; font-weight: 800; font-size: 1.1rem; }
.service-card .content { padding: 1.15rem; }
.service-card .content p { font-size: .9rem; color: var(--muted); }
.service-card .content > a { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-weight: 700; font-size: .9rem; margin-top: .8rem; }

/* About */
.about { padding: 3rem 0; background: linear-gradient(180deg, #fff 0%, var(--muted-bg) 100%); }
.about-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 992px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } .about { padding: 4rem 0; } }
.about .tag { display: inline-block; color: #fff; background: var(--accent); padding: .25rem .85rem; border-radius: 9999px; font-weight: 700; font-size: .72rem; text-transform: uppercase; margin-bottom: .65rem; }
.about h2 { font-size: clamp(1.5rem, 4vw, 1.95rem); font-weight: 800; margin-bottom: 1rem; color: var(--primary); }
.diff-grid { display: grid; gap: .85rem; margin-top: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
.diff-item { display: flex; align-items: center; gap: .65rem; padding: .75rem; border-radius: .65rem; background: #fff; border: 1px solid var(--border); }
.diff-icon { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(30,58,138,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.diff-icon svg { color: var(--primary); }
.diff-item span { font-weight: 600; font-size: .88rem; }
.about-img { position: relative; }
.about-img img { border-radius: 1rem; box-shadow: var(--shadow-xl); width: 100%; }
.about-badge { position: absolute; bottom: -1rem; left: -1rem; background: var(--accent); color: #fff; border-radius: 1rem; padding: 1.2rem; box-shadow: var(--shadow-xl); }
.about-badge .num { font-size: 1.85rem; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; }
.about-badge .txt { font-size: .8rem; font-weight: 600; opacity: .95; }

/* Segments */
.segments { padding: 3rem 0; background: var(--primary); color: #fff; text-align: center; }
@media (min-width: 992px) { .segments { padding: 4rem 0; } }
.segments h2 { font-size: clamp(1.5rem, 4vw, 1.95rem); font-weight: 800; margin-bottom: 1rem; }
.segments > .container > p { opacity: .9; margin-bottom: 1.5rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.segments-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.segments-list span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 9999px; padding: .55rem 1.1rem; font-size: .85rem; font-weight: 600; }

/* ============ FAQ — design moderno ============ */
.faq { padding: 3rem 0; background: var(--muted-bg); }
@media (min-width: 992px) { .faq { padding: 4.5rem 0; } }
.faq-list, .faq-block { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .85rem; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; box-shadow: 0 2px 8px rgba(15,23,42,.04); transition: box-shadow .25s, border-color .25s; position: relative; }
.faq-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--primary), var(--accent)); transform: scaleY(0); transform-origin: top; transition: transform .3s; }
.faq-item:hover, .faq-item.active, .faq-item[open] { box-shadow: 0 12px 30px rgba(30,58,138,.12); border-color: var(--primary-light); }
.faq-item.active::before, .faq-item[open]::before { transform: scaleY(1); }

/* details/summary version (subpáginas) */
details.faq-item > summary { list-style: none; cursor: pointer; padding: 1.15rem 3rem 1.15rem 1.5rem; font-weight: 700; font-size: .98rem; color: var(--primary); position: relative; display: flex; align-items: center; gap: .65rem; }
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary::before { content: 'Q'; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: .9rem; }
details.faq-item > summary::after { content: '+'; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; line-height: 1; transition: transform .25s; }
details.faq-item[open] > summary::after { content: '−'; transform: translateY(-50%) rotate(180deg); }
details.faq-item > p { padding: 0 1.5rem 1.25rem 4.15rem; color: #334155; font-size: .94rem; line-height: 1.7; }

/* button version (homepage) */
.faq-question { width: 100%; padding: 1.15rem 3.25rem 1.15rem 1.5rem; background: none; border: none; display: flex; align-items: center; gap: .65rem; font-weight: 700; font-size: .98rem; color: var(--primary); cursor: pointer; text-align: left; font-family: 'Inter', sans-serif; position: relative; }
.faq-question::before { content: 'Q'; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: .9rem; }
.faq-question svg { display: none; }
.faq-question::after { content: '+'; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; line-height: 1; transition: transform .25s; }
.faq-item.active .faq-question::after { content: '−'; transform: translateY(-50%) rotate(180deg); }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; color: #334155; font-size: .94rem; line-height: 1.7; }
.faq-item.active .faq-answer { padding: 0 1.5rem 1.25rem 4.15rem; max-height: 600px; }

/* Howto */
.howto { padding: 3rem 0; }
.howto-steps { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
.howto-steps .step { background: #fff; padding: 1.25rem 1.25rem 1.25rem 4rem; border-radius: .85rem; box-shadow: var(--shadow); position: relative; border-left: 4px solid var(--primary); }
.howto-steps .step-num { position: absolute; left: 1rem; top: 1.25rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; }
.howto-steps h3 { font-size: 1.05rem; margin-bottom: .35rem; color: var(--primary); }
.howto-steps p { color: var(--muted); font-size: .9rem; }

/* Reviews */
.reviews-section { padding: 3rem 0; background: #fff; }
.rating-summary { margin-top: 1.25rem; display: flex; justify-content: center; }
.rating-big { display: flex; flex-direction: column; align-items: center; gap: .25rem; background: #fffbeb; border: 2px solid #fbbf24; border-radius: 1rem; padding: 1rem 2rem; }
.rating-num { font-size: 2.6rem; font-weight: 800; color: #f59e0b; line-height: 1; }
.rating-stars { display: flex; gap: 2px; }
.reviews-grid { display: grid; gap: 1rem; max-width: 1100px; margin: 0 auto; grid-template-columns: 1fr; }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { background: var(--muted-bg); border-radius: 1rem; padding: 1.35rem; box-shadow: var(--shadow); border-left: 4px solid var(--accent); }
.review-stars { display: flex; gap: 2px; margin-bottom: .5rem; }
.review-body { color: var(--foreground); font-style: italic; line-height: 1.6; margin-bottom: .65rem; font-size: .92rem; }
.review-author { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .82rem; }
.review-author strong { color: var(--primary); }

/* Region / Map */
.region { padding: 3rem 0; background: var(--card); }
.region-grid { display: grid; gap: 1.5rem; align-items: stretch; grid-template-columns: 1fr; }
@media (min-width: 992px) { .region-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.map-wrap { border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-xl); min-height: 320px; }
.map-wrap iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }
@media (min-width: 768px) { .map-wrap, .map-wrap iframe { min-height: 450px; } }

.bairros-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.bairro-tag { padding: .35rem .75rem; background: var(--muted-bg); border: 1px solid var(--border); border-radius: 9999px; font-size: .8rem; font-weight: 600; color: var(--foreground); }

/* Cross links */
.cross-links { padding: 3rem 0; background: var(--muted-bg); }
.cross-links-grid { display: grid; grid-template-columns: 1fr; gap: .65rem; max-width: 960px; margin: 0 auto; }
.cross-links-grid a { display: block; padding: .9rem 1.1rem; background: var(--card); border: 1px solid var(--border); border-radius: .65rem; font-weight: 500; color: var(--foreground); box-shadow: var(--shadow); font-size: .88rem; }
.cross-links-grid a strong { color: var(--primary); display: block; margin-bottom: .125rem; }
.cross-links-grid a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .cross-links-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .cross-links-grid { grid-template-columns: repeat(4, 1fr); } }

/* Subpages */
.breadcrumb { background: var(--muted-bg); padding: .65rem 0; font-size: .82rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb .sep { color: var(--muted); }

.page-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 2.5rem 0; border-bottom: 4px solid var(--accent); }
.page-hero h1 { font-size: clamp(1.5rem, 5vw, 2.5rem); margin-bottom: .65rem; line-height: 1.2; color: #fff; }
.page-hero p.lead { font-size: clamp(.95rem, 2.5vw, 1.1rem); opacity: .95; max-width: 760px; margin-bottom: 1.25rem; }
.page-hero .hero-cta { display: flex; flex-wrap: wrap; gap: .65rem; }

.layout-wrap { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; }
@media (min-width: 992px) { .layout-wrap { grid-template-columns: 1fr 320px; gap: 2rem; padding: 2.5rem 0; } }

article.service-content { background: #fff; padding: 1.25rem; border-radius: .85rem; box-shadow: var(--shadow); }
@media (min-width: 640px) { article.service-content { padding: 2rem; } }
article.service-content h2 { font-size: clamp(1.25rem, 3.5vw, 1.55rem); margin: 1.75rem 0 .85rem; color: var(--primary); border-left: 4px solid var(--accent); padding-left: .8rem; }
article.service-content h3 { font-size: 1.1rem; margin: 1.25rem 0 .55rem; color: var(--foreground); }
article.service-content p { margin-bottom: 1rem; color: #334155; font-size: .96rem; }
article.service-content ul, article.service-content ol { margin: 0 0 1.25rem 1.1rem; }
article.service-content li { margin-bottom: .5rem; color: #334155; list-style: disc inside; font-size: .94rem; }
article.service-content ol li { list-style: decimal inside; }
article.service-content img.cover { border-radius: .65rem; margin: 1rem 0 1.5rem; box-shadow: var(--shadow); width: 100%; }
article.service-content a { color: var(--accent); text-decoration: underline; font-weight: 600; word-break: break-word; }
article.service-content blockquote { border-left: 4px solid var(--accent); background: var(--muted-bg); padding: .85rem 1.1rem; margin: 1.25rem 0; border-radius: .35rem; font-style: italic; color: #475569; }
article.service-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .9rem; display: block; overflow-x: auto; white-space: nowrap; }
@media (min-width: 768px) { article.service-content table { display: table; white-space: normal; } }
article.service-content th, article.service-content td { border: 1px solid var(--border); padding: .55rem; text-align: left; }
article.service-content th { background: var(--primary); color: #fff; font-weight: 600; }

aside.sidebar { display: flex; flex-direction: column; gap: 1rem; }
.side-card { background: #fff; padding: 1.15rem; border-radius: .85rem; box-shadow: var(--shadow); }
.side-card h4 { font-size: 1rem; margin-bottom: .65rem; color: var(--primary); border-bottom: 2px solid var(--accent); padding-bottom: .5rem; }
.side-card ul li { list-style: none; margin-bottom: .35rem; }
.side-card ul li a { color: var(--foreground); font-size: .9rem; display: flex; align-items: center; gap: .5rem; padding: .35rem .25rem; border-radius: .25rem; }
.side-card ul li a:hover { background: var(--muted-bg); color: var(--accent); }
.side-card.cta { background: var(--accent); color: #fff; text-align: center; }
.side-card.cta h4 { color: #fff; border-color: rgba(255,255,255,.3); }
.side-card.cta a.phone { display: block; font-size: 1.4rem; font-weight: 800; color: #fff; margin: .5rem 0; }
.side-card.cta .btn { width: 100%; background: #fff; color: var(--accent); }
@media (min-width: 992px) { aside.sidebar { position: sticky; top: 90px; align-self: start; } }

.cta-strip { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; padding: 2rem 1.25rem; text-align: center; margin-top: 2rem; border-radius: .85rem; }
.cta-strip h2 { color: #fff !important; border: none !important; padding: 0 !important; font-size: clamp(1.2rem, 4vw, 1.7rem); margin-bottom: .85rem; }
.cta-strip p { color: rgba(255,255,255,.95); margin-bottom: 1.25rem; font-size: .95rem; }
.cta-strip .btn { background: #fff; color: var(--accent); margin: .25rem; }

.toc { background: var(--muted-bg); padding: 1rem 1.15rem; border-radius: .5rem; margin: 1.25rem 0; border-left: 4px solid var(--primary); }
.toc strong { display: block; margin-bottom: .5rem; color: var(--primary); }
.toc ol { margin-left: 1.1rem; }
.toc ol li { list-style: decimal; margin-bottom: .25rem; }
.toc a { color: var(--primary); }

/* Floating WhatsApp */
.whatsapp-float { position: fixed; bottom: 1.25rem; right: 1.25rem; width: 56px; height: 56px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 28px rgba(37,211,102,.5); z-index: 80; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 8px 28px rgba(37,211,102,.5); } 50% { box-shadow: 0 8px 28px rgba(37,211,102,.85), 0 0 0 12px rgba(37,211,102,.15); } }
.wa-icon { width: 1.15em; height: 1.15em; vertical-align: -0.18em; flex-shrink: 0; }
.whatsapp-float .wa-icon { width: 1.85rem; height: 1.85rem; }

/* Sitelinks */
.sitelinks { display: none; background: var(--muted-bg); border-bottom: 1px solid var(--border); }
@media (min-width: 992px) { .sitelinks { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.25rem; padding: .55rem 1rem; font-size: .82rem; } .sitelinks a { color: var(--muted); font-weight: 600; } .sitelinks a:hover { color: var(--accent); } }

/* Serviços Detalhados */
.services-detailed { padding: 3rem 0; background: linear-gradient(180deg, #f8fafc 0%, #fff 100%); }
.services-detailed-grid { display: grid; gap: 2rem; margin-top: 2rem; }
.service-detail { display: grid; grid-template-columns: 1fr; gap: 0; background: #fff; border-radius: 1.2rem; overflow: hidden; box-shadow: 0 10px 40px rgba(30,58,138,.08); border: 1px solid #e2e8f0; }
@media (min-width: 992px) {
  .services-detailed { padding: 5rem 0; }
  .services-detailed-grid { gap: 3rem; }
  .service-detail { grid-template-columns: 1fr 1.4fr; gap: 2.5rem; }
  .service-detail:nth-child(even) { grid-template-columns: 1.4fr 1fr; }
  .service-detail:nth-child(even) .service-detail-img { order: 2; }
}
.service-detail-img { position: relative; min-height: 220px; overflow: hidden; }
@media (min-width: 992px) { .service-detail-img { min-height: 320px; } }
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-detail-content { padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 992px) { .service-detail-content { padding: 2.5rem; } }
.service-detail-content h3 { font-size: clamp(1.3rem, 3.5vw, 1.7rem); color: var(--primary); margin-bottom: .85rem; line-height: 1.2; border-left: 4px solid var(--accent); padding-left: 1rem; }
.service-detail-content p { font-size: .95rem; line-height: 1.7; color: #334155; margin-bottom: 1.25rem; }
.service-detail-content p strong { color: var(--primary); font-weight: 700; }
.service-detail-content .btn { align-self: flex-start; }

/* Footer */
.footer { background: var(--primary-dark); color: #e2e8f0; padding: 3rem 0 0; font-size: .92rem; line-height: 1.65; }
.footer .container { max-width: 1200px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2rem; }
.footer-grid h4 { color: #fff; font-size: 1.05rem; margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--accent); display: inline-block; }
.footer-grid p { margin: .75rem 0 0; color: #cbd5e1; }
.footer-grid .logo img { max-width: 200px; height: auto; background: #fff; padding: .5rem .75rem; border-radius: .5rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li, .footer-grid .contact-item { padding: .35rem 0; color: #cbd5e1; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.footer a { color: #fff; text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--accent); text-decoration: underline; }
.footer .wa-icon { width: 18px; height: 18px; color: #25D366; flex: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1.25rem 0; text-align: center; font-size: .85rem; color: #94a3b8; }
.footer-bottom p { margin: .35rem 0; }
.footer-credit { background: rgba(0,0,0,.25); padding: .85rem 0; text-align: center; font-size: .82rem; color: #cbd5e1; }
.footer-credit a { color: var(--accent); font-weight: 600; }
.footer-credit .heart { color: #ef4444; }
@media (max-width: 768px) {
  .footer { padding-top: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; padding-bottom: 1.5rem; text-align: left; }
  .footer-grid .logo img { max-width: 170px; }
}

/* Top bar mobile */
@media (max-width: 600px) { .top-bar { font-size: .75rem; padding: .4rem .75rem; } .top-bar .info { display: none; } .top-bar .container { justify-content: center; } }

/* ============ FIX RESPONSIVIDADE GERAL + SIDEBAR LINKS PRETOS ============ */
.side-card ul li a,
.side-card ul li a:link,
.side-card ul li a:visited { color: #0f172a !important; font-weight: 600; }
.side-card ul li a:hover { color: var(--accent) !important; background: var(--muted-bg); }
.side-card.cta ul li a,
.side-card.cta a.btn,
.side-card.cta a.btn:link,
.side-card.cta a.btn:visited { color: var(--accent) !important; }
.side-card h4 { color: #0f172a; }
.side-card.cta h4, .side-card.cta a.phone, .side-card.cta p { color: #fff !important; }

/* ============ NO-OVERFLOW GLOBAL (mobile fix) ============ */
html, body { max-width: 100%; overflow-x: hidden; }
*, *::before, *::after { min-width: 0; }
img, iframe, video, svg, picture { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; padding-left: 1rem; padding-right: 1rem; }
.layout-wrap { width: 100%; max-width: 100%; padding-left: 0; padding-right: 0; }
article.service-content, aside.sidebar, .side-card, .page-hero, .cta-strip,
article.service-content p, article.service-content li, article.service-content h1,
article.service-content h2, article.service-content h3, .side-card *, .page-hero * {
  overflow-wrap: anywhere; word-break: break-word; max-width: 100%;
}
article.service-content img, article.service-content iframe { width: 100%; height: auto; }
article.service-content .map-wrap, article.service-content .map-wrap iframe { width: 100%; max-width: 100%; }

/* ============ SIDEBAR FIXA AO ROLAR (DESKTOP) ============ */
@media (min-width: 992px) {
  aside.sidebar { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: .25rem; }
  aside.sidebar::-webkit-scrollbar { width: 6px; }
  aside.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
}

/* ============ SUBPÁGINAS — MOBILE (≤991px) ============ */
@media (max-width: 991px) {
  aside.sidebar { width: 100%; position: static; }
  .side-card { width: 100%; padding: 1rem; }
  article.service-content { padding: 1rem; font-size: .95rem; }
  article.service-content h2 { font-size: 1.2rem; padding-left: .65rem; }
  article.service-content h3 { font-size: 1rem; }
  article.service-content ul, article.service-content ol { margin-left: 1rem; padding-left: .25rem; }
  article.service-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .map-wrap, .map-wrap iframe { min-height: 280px; }
  .page-hero { padding: 1.5rem 0; }
  .page-hero h1 { font-size: 1.4rem; line-height: 1.25; }
  .page-hero .hero-cta { flex-direction: column; }
  .page-hero .hero-cta .btn { width: 100%; }
  .cta-strip { padding: 1.25rem 1rem; }
  .cta-strip .btn { display: block; width: 100%; margin: .35rem 0; }
  .layout-wrap { padding: 1rem 0; gap: 1rem; }
}

/* ============ SUBPÁGINAS — MOBILE PEQUENO (≤640px) ============ */
@media (max-width: 640px) {
  .container { padding-left: .75rem; padding-right: .75rem; }
  article.service-content { padding: .9rem; border-radius: .5rem; }
  article.service-content h2 { font-size: 1.1rem; }
  article.service-content h3 { font-size: .98rem; }
  article.service-content p, article.service-content li { font-size: .92rem; }
  .toc { padding: .75rem .85rem; font-size: .9rem; }
  .toc ol { margin-left: .85rem; }
}

/* ============ SUBPÁGINAS — MOBILE PEQUENINHO (≤480px) ============ */
@media (max-width: 480px) {
  .header .logo img { height: 2.4rem; max-width: 150px; }
  .top-bar { font-size: .72rem; }
  .breadcrumb { font-size: .75rem; }
  .breadcrumb ol { gap: .25rem; }
  article.service-content { padding: .8rem; }
  article.service-content h2 { font-size: 1.05rem; padding-left: .55rem; }
  article.service-content p, article.service-content li { font-size: .88rem; }
  details.faq-item > summary { padding: .85rem 2.4rem .85rem .9rem; font-size: .88rem; gap: .5rem; }
  details.faq-item > summary::before { width: 1.5rem; height: 1.5rem; font-size: .72rem; }
  details.faq-item > p { padding: 0 .9rem 1rem 2.7rem; font-size: .86rem; }
  details.faq-item > summary::after { right: .75rem; width: 22px; height: 22px; font-size: 1rem; }
  .page-hero { padding: 1.25rem 0; }
  .page-hero h1 { font-size: 1.2rem; }
  .page-hero p.lead { font-size: .88rem; }
  .map-wrap, .map-wrap iframe { min-height: 240px; }
  .cta-strip { padding: 1rem .85rem; }
  .cta-strip h2 { font-size: 1rem; }
  .cta-strip p { font-size: .85rem; }
  .whatsapp-float { width: 50px; height: 50px; bottom: .85rem; right: .85rem; }
  .whatsapp-float .wa-icon { width: 1.5rem; height: 1.5rem; }
  .submenu li a { font-size: .85rem; }
  .side-card { padding: .85rem; }
  .side-card h4 { font-size: .95rem; }
  .side-card ul li a { font-size: .85rem; padding: .3rem .25rem; }
  .side-card.cta a.phone { font-size: 1.2rem; }
}

/* ============ MOBILE EXTREMO (≤360px) ============ */
@media (max-width: 360px) {
  .container { padding-left: .6rem; padding-right: .6rem; }
  .page-hero h1 { font-size: 1.1rem; }
  article.service-content h2 { font-size: 1rem; }
  .top-bar { padding: .35rem .5rem; }
  .top-bar a { font-size: .7rem; }
}
