/* MJR Postes Padrão Copel — CSS puro, mobile-first */

:root {
  --orange: #FA652A;
  --orange-dark: #D9501C;
  --black: #16161A;
  --ink: #1D1D20;
  --white: #FFFFFF;
  --gray-50: #F7F7F8;
  --gray-100: #EFEFF2;
  --gray-300: #D8D8DE;
  --gray-500: #86868F;
  --gray-700: #4A4A52;
  --green: #1DA851;
  --green-dark: #15803D;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --container: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: clamp(1rem, .95rem + .2vw, 1.125rem);
  line-height: 1.65;
  text-wrap: pretty;
}

h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; color: var(--black); }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { color: var(--orange); text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px;
}
button { font-family: inherit; cursor: pointer; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--orange); color: var(--white);
  padding: 12px 18px; border-radius: 8px; z-index: 1000; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header { background: var(--black); position: sticky; top: 0; z-index: 900; border-bottom: 3px solid var(--orange); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; max-width: var(--container); margin: 0 auto; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 56px; width: auto; }
.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--white); font-weight: 600; padding: 10px 2px; text-decoration: none; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--orange); border-bottom-color: var(--orange); }
.main-nav a[aria-current="page"] { color: var(--orange); border-bottom-color: var(--orange); }
.nav-cta { background: var(--orange); color: var(--white) !important; padding: 10px 18px !important; border-radius: 999px; border-bottom: none !important; }
.nav-cta:hover { background: var(--orange-dark); }
.menu-toggle {
  display: flex; align-items: center; justify-content: center; background: transparent; border: 2px solid var(--white);
  border-radius: 8px; width: 48px; height: 48px; padding: 0;
}
.menu-toggle img { width: 26px; height: 26px; }
.mobile-menu { background: var(--ink); border-top: 1px solid var(--orange); }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: flex; flex-direction: column; padding: 8px 20px 16px; }
.mobile-menu a { display: block; color: var(--white); padding: 14px 4px; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: var(--orange); }
.mobile-menu .nav-cta { margin-top: 12px; text-align: center; border-bottom: none; }

@media (min-width: 960px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* Hero */
.hero { background: var(--orange); color: var(--white); padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { color: var(--white); }
.hero p { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); }
.hero .eyebrow { display: inline-block; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; background: rgba(0,0,0,.18); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.hero img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; object-fit: cover; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; border: 2px solid transparent; min-height: 48px; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); text-decoration: none; }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #000; color: var(--white); text-decoration: none; }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.15); color: var(--white); text-decoration: none; }
.btn img { width: 22px; height: 22px; }

@media (min-width: 860px) {
  .hero-grid.with-image { grid-template-columns: 1.1fr .9fr; }
}

/* Sections */
section { padding: 56px 0; }
.section-black { background: var(--black); color: var(--white); }
.section-black h2, .section-black h3 { color: var(--white); }
.section-gray { background: var(--gray-50); }
.section-header { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-header p { color: var(--gray-700); }
.section-black .section-header p { color: var(--gray-300); }

/* Breadcrumbs */
.breadcrumbs { background: var(--gray-50); border-bottom: 1px solid var(--gray-100); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; font-size: .9rem; color: var(--gray-700); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--gray-300); }
.breadcrumbs a { color: var(--gray-700); }
.breadcrumbs a:hover { color: var(--orange-dark); }
.breadcrumbs [aria-current="page"] { color: var(--orange-dark); font-weight: 600; }

/* Differentials */
.badges-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.badge { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.badge img { width: 40px; height: 40px; margin: 0 auto 12px; }
.badge h3 { font-size: 1.05rem; margin-bottom: 6px; }
.badge p { color: var(--gray-700); font-size: .95rem; margin: 0; }
@media (min-width: 720px) { .badges-grid { grid-template-columns: repeat(4,1fr); } }

/* Service cards */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px) { .cards-grid { grid-template-columns: repeat(4,1fr); } }
.service-card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--gray-100); text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover, .service-card:focus-visible { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,.16); text-decoration: none; }
.service-card img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.service-card .card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--gray-700); font-size: .95rem; flex: 1; }
.service-card .card-link { font-weight: 700; color: var(--orange-dark); margin-top: 10px; }
.service-card:hover .card-link { color: var(--orange); }

/* Cities */
.cities-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; max-width: 760px; margin: 0 auto; }
@media (min-width: 640px) { .cities-list { grid-template-columns: repeat(3,1fr); } }
.cities-list li { background: var(--white); border: 1px solid var(--gray-100); border-radius: 10px; padding: 12px 16px; font-weight: 600; text-align: center; }
.section-black .cities-list li { background: var(--ink); border-color: rgba(255,255,255,.12); }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 800px) { .testimonials-grid { grid-template-columns: repeat(3,1fr); } }
.testimonial { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--gray-100); }
.testimonial p.quote { font-style: italic; color: var(--ink); }
.testimonial .stars { color: var(--orange); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial .name { font-weight: 700; margin: 0; }
.testimonial .role { color: var(--gray-500); font-size: .9rem; }

/* Contact block */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-item { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-item img { width: 30px; height: 30px; flex-shrink: 0; }
.contact-item a, .contact-item span { font-weight: 700; font-size: 1.1rem; color: var(--white); }
.section-black .contact-item a:hover { color: var(--orange); }
.hours-row { display: flex; gap: 10px; align-items: baseline; color: var(--gray-300); margin-top: 4px; }

/* Form */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border: 1px solid var(--gray-100); }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--gray-300); border-radius: 10px; font: inherit; background: var(--white); color: var(--ink);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(250,101,42,.18); }
.form-note { font-size: .9rem; color: var(--gray-700); margin-top: 10px; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--gray-100); border-radius: 10px; background: var(--white); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--orange); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 20px 20px; color: var(--gray-700); }

/* Spec table */
.spec-table-wrap { overflow-x: auto; margin: 24px 0; }
table.spec-table { width: 100%; border-collapse: collapse; min-width: 480px; }
table.spec-table caption { text-align: left; font-weight: 700; margin-bottom: 10px; }
table.spec-table th, table.spec-table td { border: 1px solid var(--gray-100); padding: 12px 16px; text-align: left; }
table.spec-table thead th { background: var(--black); color: var(--white); }
table.spec-table tbody tr:nth-child(even) { background: var(--gray-50); }

/* Included list */
.included-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .included-list { grid-template-columns: repeat(2,1fr); } }
.included-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--gray-100); border-radius: 10px; padding: 14px 16px; }
.included-list img { width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px; }

/* Map */
.map-frame { border: 0; border-radius: var(--radius); width: 100%; height: 360px; box-shadow: var(--shadow); }

/* Footer */
.site-footer { background: var(--black); color: var(--gray-300); border-top: 3px solid var(--orange); }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 48px 0 28px; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-col h2 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--gray-300); }
.footer-col a:hover { color: var(--orange); }
.footer-brand img { height: 48px; margin-bottom: 12px; }
.footer-brand p { font-size: .92rem; color: var(--gray-500); }
.footer-contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-contact-item img { width: 22px; height: 22px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed; bottom: 20px; right: 20px; width: 62px; height: 62px; background: var(--green);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,.28); z-index: 999;
}
.whatsapp-float:hover { background: var(--green-dark); }
.whatsapp-float img { width: 32px; height: 32px; }

/* 404 */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
