:root {
  --navy: #08376b;
  --green: #3f9741;
  --text: #4b4f58;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.2; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: var(--navy);
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { top: 8px; }
.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.site-header { background: #fff; border-bottom: 1px solid #eee; }
.topbar {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 258px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 0 8px;
}
.logo img { display: block; width: 258px; height: 86px; object-fit: contain; }
.slogan {
  margin: 0;
  text-align: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
}
.plantao { text-align: right; color: var(--navy); font-weight: 700; line-height: 1.35; }
.plantao strong { display: block; margin-bottom: 2px; }
.plantao a { display: flex; justify-content: flex-end; align-items: center; gap: 6px; color: var(--navy); font-weight: 700; }
.plantao svg { color: var(--green); flex: 0 0 auto; }
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--navy);
  padding: 6px;
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.desktop-nav > ul { display: flex; justify-content: center; gap: 26px; list-style: none; margin: 0; padding: 8px 0 14px; }
.desktop-nav a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.desktop-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.has-sub { position: relative; }
.desktop-nav .submenu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  background: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 20;
}
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: flex; }
.submenu a { display: block; padding: 8px 16px; letter-spacing: 0; font-size: 14px; font-weight: 600; }
.submenu a:hover { background: #f5f5f5; }
.mobile-panel { display: none; }
.mobile-panel[hidden] { display: none !important; }

.hero { position: relative; aspect-ratio: 1400 / 600; background: #1c1c1c; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  padding: 24px 12%;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.hero-title { margin: 0; font-size: clamp(28px, 4vw, 52px); font-weight: 700; letter-spacing: .01em; }
.hero-sub { margin: 8px 0 0; font-size: clamp(18px, 2.5vw, 32px); font-weight: 500; }
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 36px;
  height: 42px;
  border: 0;
  background: rgba(20,20,20,.55);
  color: #fff;
  cursor: pointer;
}
.hero-arrow.prev { left: 10px; }
.hero-arrow.next { right: 10px; }

.wa-bar { background: var(--navy); color: #fff; text-align: center; padding: 12px 16px; }
.wa-bar p { margin: 0; font-weight: 700; font-size: clamp(15px, 1.6vw, 20px); }
.wa-bar a { color: #fff; }
.wa-bar svg { vertical-align: -2px; margin-right: 2px; }

.about { padding: 70px 0 20px; }
.about-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 36px; align-items: start; }
.about figure { margin: 0; }
.about img { display: block; width: 100%; height: auto; }
.about figcaption {
  margin-top: -6px;
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 12px;
}
.about h2 { margin: 0 0 -2px; font-size: 20px; font-weight: 600; text-transform: uppercase; color: var(--navy); }
.about h1 { margin: 0 0 16px; font-size: 30px; font-weight: 600; text-transform: uppercase; color: #222; }
.about h3, .areas h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--navy);
}
.about h3 svg, .areas h3 svg, .phone-line svg { flex: 0 0 auto; color: var(--navy); }

.services { padding: 40px 0 80px; }
.section-title, .areas h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
  color: #222;
}
.areas h2 { text-align: left; font-size: 25px; margin-bottom: 16px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.svc { position: relative; display: block; overflow: hidden; color: #fff; }
.svc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.svc span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 55, 107, .8);
  color: #fff;
  border-left: 5px solid #f5f5f5;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  padding: 6px 10px;
}
.svc:hover { outline: 5px solid var(--navy); outline-offset: -10px; filter: contrast(1.5); }

.areas { padding: 10px 0 80px; }
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.areas-photo { display: block; width: 100%; height: auto; margin-bottom: 18px; }
.phone-line { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 700; color: var(--navy); }
.phone-line a { color: var(--navy); }
.areas form { margin-top: 18px; }
.areas form p { margin: 0 0 16px; }
.areas label { display: block; font-weight: 600; color: #333; margin-bottom: 6px; }
.areas input, .areas textarea {
  width: 100%;
  border: 1px solid #ddd;
  background: #f7f7f7;
  padding: 10px 12px;
  font: inherit;
  color: #222;
}
.areas textarea { min-height: 140px; resize: vertical; }
.areas button {
  background: var(--navy);
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 700;
  padding: 10px 22px;
  cursor: pointer;
}
.areas button:disabled { opacity: .7; }
.form-feedback { min-height: 1.2em; font-weight: 600; }
.cities {
  background: #f5f5f5;
  padding: 35px;
  border-radius: 3px;
  border-left: 10px solid var(--navy);
  min-height: 530px;
}
.cities h2 { font-size: 22px; margin-bottom: 14px; }
.cities ul { list-style: none; margin: 18px 0 0; padding: 0; }
.cities li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #222; margin: 0 0 12px; }
.cities svg { color: #222; flex: 0 0 auto; }

.site-footer { background: var(--navy); color: #fff; }
.footer-main {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 1.1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 34px 0;
}
.footer-logo img { width: 150px; height: auto; display: block; }
.footer-label { margin: 0 0 8px; font-weight: 700; letter-spacing: .04em; }
.footer-line { display: flex; align-items: center; gap: 8px; color: #fff; margin: 4px 0; }
.footer-note { margin: 0; text-align: right; font-weight: 700; letter-spacing: .03em; line-height: 1.45; }
.footer-copy { background: #f3f3f3; color: #8a8f98; text-align: center; padding: 14px 16px; }
.footer-copy p { margin: 0; font-size: 14px; }
.footer-copy a { color: #8a8f98; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.wa-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.wa-panel { background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.16); overflow: hidden; min-width: 180px; }
.wa-panel a { display: block; padding: 12px 16px; color: #222; font-weight: 700; border-bottom: 1px solid #eee; }
.wa-panel a:last-child { border-bottom: 0; }
.wa-panel a:hover { background: #f5f5f5; }

@media (max-width: 1024px) {
  .about-grid, .areas-grid, .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-note { text-align: left; }
  .cities { min-height: 0; }
}
@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo toggle" "slogan slogan" "plantao plantao";
  }
  .logo { grid-area: logo; }
  .logo img { width: 180px; height: 60px; }
  .nav-toggle { display: inline-flex; grid-area: toggle; justify-self: end; }
  .slogan { grid-area: slogan; }
  .plantao { grid-area: plantao; text-align: center; }
  .plantao a { justify-content: center; }
  .desktop-nav { display: none; }
  .mobile-panel:not([hidden]) { display: block; background: #fff; border-top: 1px solid #eee; }
  .mobile-panel ul { list-style: none; margin: 0; padding: 8px 0 16px; }
  .mobile-panel a, .sub-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    color: var(--navy);
    font-weight: 700;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }
  .mobile-panel .submenu a { font-weight: 600; padding-left: 28px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .about h1 { font-size: 22px; }
}
@media (max-width: 640px) {
  .about-grid, .areas-grid, .footer-main, .service-grid { grid-template-columns: 1fr; }
  .about { padding-top: 36px; }
  .hero { aspect-ratio: 4 / 3; }
  .wa-bar p { font-size: 15px; }
  .section-title, .areas h2, .about h2, .about h3, .areas h3 { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
}
