:root {
  --red: #d51f1f;
  --red-dark: #a90f0f;
  --orange: #ff8a00;
  --yellow: #ffc400;
  --dark: #151515;
  --dark-2: #242424;
  --gray: #666;
  --gray-light: #f4f5f7;
  --white: #ffffff;
  --border: #e7e7e7;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }

.topbar { background: var(--dark); color: var(--white); font-size: 0.9rem; }
.topbar-content { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--yellow); font-weight: 700; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: 0.25s ease; }
.site-header.scrolled { box-shadow: var(--shadow); }
.header-content { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 1.25rem; }
.logo-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--red), var(--orange)); color: var(--white); box-shadow: 0 10px 24px rgba(213,31,31,0.3); }
.logo-text strong { color: var(--red); }
.nav-menu { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: .95rem; }
.nav-menu a { position: relative; }
.nav-menu a::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 0; height: 3px; background: var(--red); transition: width 0.2s ease; }
.nav-menu a:hover::after { width: 100%; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--gray-light); border-radius: 12px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 3px; margin: 4px auto; background: var(--dark); border-radius: 10px; transition: .2s; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 20px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.16); }
.btn-primary, .btn-whatsapp { background: linear-gradient(135deg, var(--red), var(--orange)); color: var(--white); }
.btn-outline { background: var(--white); color: var(--red); border: 2px solid rgba(213,31,31,.25); }
.btn-outline-dark { background: transparent; color: var(--dark); border: 2px solid var(--dark); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-service { background: var(--dark); color: var(--white); width: 100%; margin-top: 18px; }

.hero { padding: 88px 0 58px; background: radial-gradient(circle at top left, rgba(255,196,0,.28), transparent 34%), linear-gradient(135deg, #fff7ed, #ffffff 45%, #f9fafb); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 46px; }
.eyebrow { display: inline-flex; color: var(--red); background: rgba(213,31,31,.09); padding: 7px 12px; border-radius: 999px; font-weight: 900; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 4rem); line-height: .95; letter-spacing: -0.06em; margin-bottom: 24px; }
.hero p { font-size: 1.15rem; color: var(--gray); max-width: 620px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-features { display: flex; gap: 12px; flex-wrap: wrap; font-weight: 800; color: var(--dark-2); }
.hero-features span { background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 9px 12px; }
.hero-card { position: relative; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); min-height: 440px; }
.hero-card img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }

.carousel { position: relative; width: 100%; height: 100%; min-height: 440px; }
.carousel-track { display: flex; height: 100%; transition: transform 0.5s ease; }
.carousel-track img { min-width: 100%; height: 100%; min-height: 440px; object-fit: cover; flex-shrink: 0; }
.carousel-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.carousel-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: .2s; }
.carousel-dots span.active { background: var(--white); transform: scale(1.2); }

.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: .2s; z-index: 10; }
.carousel-arrow:hover { background: var(--white); transform: translateY(-50%) scale(1.1); }
.carousel-arrow svg { width: 20px; height: 20px; stroke: var(--dark); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.floating-box { position: absolute; left: 22px; bottom: 22px; background: rgba(21,21,21,.88); color: var(--white); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; padding: 18px; backdrop-filter: blur(8px); }
.floating-box strong { display: block; font-size: 2.25rem; color: var(--yellow); line-height: 1; }

.quick-search { padding: 26px 0; }
.search-panel { margin-top: -8px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; align-items: center; }
.search-panel h2 { font-size: 1.5rem; }
.search-panel p { color: var(--gray); }
.search-form { display: flex; gap: 12px; }
.search-form input { width: 100%; border: 2px solid var(--border); border-radius: 999px; padding: 0 18px; min-height: 50px; outline: none; }
.search-form input:focus { border-color: var(--red); }

.section { padding: 84px 0; }
.section-alt { background: var(--gray-light); }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 42px; }
.section-heading h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 14px; }
.section-heading p { color: var(--gray); font-size: 1.05rem; }
.section-heading.light { color: var(--white); }
.section-heading.light p { color: rgba(255,255,255,.78); }

.category-grid, .services-grid, .testimonials-grid, .offers-grid { display: grid; gap: 22px; }
.category-grid { grid-template-columns: repeat(4, 1fr); }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.category-card, .service-card, .testimonial-card, .benefit-card, .offer-card, .checklist-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: 0 8px 28px rgba(0,0,0,.05); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.category-card:hover, .service-card:hover, .testimonial-card:hover, .benefit-card:hover, .offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(213,31,31,.25); }
.category-card .icon, .service-card .icon { display: inline-grid; place-items: center; width: 56px; height: 56px; background: linear-gradient(135deg, #fff4e1, #ffe7e7); border-radius: 16px; margin-bottom: 18px; }
.category-card .icon img, .service-card .icon img { width: 28px; height: 28px; }
.category-card .icon svg, .service-card .icon svg { width: 28px; height: 28px; stroke: var(--red); }
.category-card h3, .service-card h3 { margin-bottom: 8px; font-size: 1.16rem; }
.category-card p, .service-card p, .testimonial-card p, .benefit-card p, .offer-card p { color: var(--gray); }

.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit-card strong { color: var(--red); font-size: 2.4rem; line-height: 1; }
.benefit-card h3 { margin: 12px 0 6px; }

.section-offers { background: linear-gradient(135deg, var(--dark), #2b0d0d); }
.offers-grid { grid-template-columns: repeat(3, 1fr); }
.offer-card { background: rgba(255,255,255,.98); }
.offer-card .tag { display: inline-block; background: var(--yellow); color: var(--dark); padding: 6px 10px; border-radius: 999px; font-weight: 900; font-size: .78rem; margin-bottom: 12px; }
.offer-card strong { display: block; margin-top: 16px; font-size: 1.35rem; color: var(--red); }

.appointment-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 34px; align-items: center; }
.appointment-grid h2 { font-size: clamp(2rem,4vw,3.2rem); line-height: 1.08; letter-spacing: -0.04em; margin-bottom: 16px; }
.appointment-grid p { color: var(--gray); margin-bottom: 24px; }
.checklist-card ul { list-style: none; display: grid; gap: 14px; margin-top: 16px; }
.checklist-card li { padding-left: 28px; position: relative; color: var(--gray); }
.checklist-card li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 900; }

.testimonials-grid { grid-template-columns: repeat(3, 1fr); }
.stars { color: var(--orange); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card strong { display: block; margin-top: 16px; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: stretch; }
.contact-info h2 { font-size: clamp(2rem,4vw,3.1rem); line-height: 1.05; margin-bottom: 12px; }
.contact-info > p { color: var(--gray); margin-bottom: 18px; }
.contact-list { list-style: none; display: grid; gap: 12px; margin: 22px 0; }
.contact-list a { text-decoration: none; color: inherit; }
.contact-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.map-card { min-height: 440px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.map-card iframe { width: 100%; height: 100%; min-height: 440px; border: 0; }
.map-fallback { position: absolute; bottom: 16px; right: 16px; display: flex; align-items: center; gap: 8px; background: var(--white); color: var(--dark); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; box-shadow: var(--shadow); transition: transform .2s ease; }
.map-fallback:hover { transform: scale(1.05); }
.map-fallback svg { width: 18px; height: 18px; }
.map-card { position: relative; }

.footer { background: var(--dark); color: var(--white); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 34px; padding-bottom: 42px; }
.footer h3, .footer h4 { margin-bottom: 14px; }
.footer p { color: rgba(255,255,255,.72); }
.footer a { display: block; color: rgba(255,255,255,.72); margin-bottom: 8px; transition: .2s; }
.footer a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 16px; text-align: center; color: rgba(255,255,255,.7); font-size: .92rem; }

.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--red); color: var(--white); font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s; z-index: 99; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.section-animate, .category-card, .service-card, .benefit-card, .offer-card, .testimonial-card { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.section-animate.visible, .category-card.visible, .service-card.visible, .benefit-card.visible, .offer-card.visible, .testimonial-card.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .contact-grid, .appointment-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 62px; }
}

@media (max-width: 768px) {
  .topbar-content { justify-content: center; text-align: center; padding: 8px 0; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .nav-menu { position: fixed; left: 16px; right: 16px; display: grid; gap: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; transform: translateY(-18px); opacity: 0; pointer-events: none; transition: .2s; }
  .nav-menu.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 14px; border-radius: 12px; }
  .nav-menu a:hover { background: var(--gray-light); }
  .nav-menu a::after { display: none; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .search-panel { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
  .benefits-grid, .offers-grid, .testimonials-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 24px, var(--container)); }
  .category-grid, .services-grid { grid-template-columns: 1fr; }
  .hero-actions, .contact-buttons { flex-direction: column; }
  .btn { width: 100%; }
  .logo-text { font-size: 1.05rem; }
  .logo-icon { width: 42px; height: 42px; }
  .hero-card, .hero-card img { min-height: 310px; }
  .floating-box { left: 14px; right: 14px; bottom: 14px; }
}

/* Fase 2 - catálogo dinâmico */
.catalog-toolbar { display: grid; grid-template-columns: 1fr 180px 220px; gap: 12px; margin-bottom: 22px; }
.catalog-toolbar input, .catalog-toolbar select, .admin-input { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; font: inherit; background: var(--white); color: var(--dark); }
.catalog-status { color: var(--gray); margin-bottom: 18px; }
.catalog-grid .service-card { display: flex; flex-direction: column; overflow: hidden; }
.catalog-image { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 18px; margin-bottom: 16px; background: #f3f4f6; }
.catalog-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: .75rem; font-weight: 800; background: #fff4e1; color: #8a3d00; }
.price { margin-top: auto; padding-top: 14px; font-size: 1.25rem; font-weight: 900; color: var(--red); }
.service-card .btn-service { margin-top: 14px; }
.dark { color: var(--dark); border-color: var(--dark); }
@media (max-width: 768px) { .catalog-toolbar { grid-template-columns: 1fr; } }
