:root {
  --primary: #0e2f4f;
  --primary-strong: #0d2540;
  --accent: #f2912f;
  --accent-soft: #f7c68b;
  --bg: #f5f0e8;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #5a6471;
  --border: rgba(16, 28, 44, 0.08);
  --shadow: 0 18px 44px rgba(13, 37, 64, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.brand-logo {
  display: block;
  max-height: 52px;
  width: auto;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 232, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(14, 47, 79, 0.12);
  box-shadow: 0 8px 18px rgba(30, 24, 14, 0.04);
}

.navbar {
  display: flex;
  align-items: center;
  min-height: 78px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary-strong);
  padding: 6px 0;
}

.brand-logo {
  display: block;
  max-height: 48px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.08));
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  justify-content: flex-end;
}

.unit-selector {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.unit-selector select {
  border: 1px solid rgba(14, 47, 79, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-strong);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  min-width: 220px;
  font: inherit;
  box-shadow: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-menu a {
  color: var(--primary-strong);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-menu a.nav-cta,
.nav-menu a.nav-cta:hover {
  color: #fff;
  transform: translateY(-1px);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-menu a.nav-cta::after {
  display: none;
}

.nav-menu a:hover::after {
  opacity: 1;
}

.nav-cta,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta,
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #da6f1b);
  color: #fff;
  box-shadow: 0 10px 26px rgba(242, 145, 47, 0.35);
}

.nav-cta:hover,
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(14, 47, 79, 0.15);
}

.menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}

.hero {
  padding: 68px 0 52px;
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: center;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(14, 47, 79, 0.08);
  border-radius: 30px;
  padding: 32px 30px;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.06);
}

.eyebrow,
.badge,
.city-tag {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.badge {
  background: rgba(242, 145, 47, 0.12);
  color: var(--accent);
  border: 1px solid rgba(242, 145, 47, 0.18);
}

.hero-wordmark {
  margin: 1rem 0 0.4rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.08em;
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--primary);
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  letter-spacing: -0.04em;
}

.hero-copy p,
.section-head p,
.about-copy p,
.service-card p,
.step-card p,
.testimonial p,
.location-card p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-copy {
  padding: 8px 6px;
}

.hero-copy p {
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #475569;
}

.hero-copy .eyebrow {
  margin-bottom: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 32px;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  padding: 1rem 1.6rem;
  min-width: 190px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 18px;
  max-width: 460px;
}

.stat {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(15, 23, 42, 0.05);
  padding: 18px 14px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(15,23,42,0.04);
}

.stat strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--primary);
}

.stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.doctor-photo {
  width: min(100%, 540px);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 32px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
  color: #102847;
}

.services-grid,
.steps-grid,
.testimonials-grid,
.location-grid {
  display: grid;
  gap: 24px;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.step-card,
.testimonial,
.location-card,
.contact-card,
.form-card,
.contact-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.service-card,
.step-card,
.location-card {
  padding: 28px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before,
.step-card::before,
.location-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(242,145,47,0.9), rgba(242,145,47,0.2));
}

.service-card:hover,
.step-card:hover,
.location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.icon-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: rgba(242, 145, 47, 0.12);
  margin-bottom: 18px;
  border: 1px solid rgba(242, 145, 47, 0.1);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 36px;
  background: #fffdf9;
  border-radius: 28px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.about-image {
  min-height: 420px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(14, 47, 79, 0.8), rgba(242, 145, 47, 0.42)), url('dr-expert-consultorio-DNaxxcyU.png') center/cover no-repeat;
  box-shadow: var(--shadow);
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
  color: var(--text);
  font-weight: 700;
}

.check {
  color: #1ea76a;
  margin-right: 10px;
}

.location-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, #fff, #f9fafb);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  overflow: hidden;
}

.location-card .btn-primary {
  margin-top: auto;
}

.location-jatai {
  background: linear-gradient(180deg, rgba(242, 145, 47, 0.10), #fff);
}

.location-goiania {
  background: linear-gradient(180deg, rgba(14, 47, 79, 0.08), #fff);
}

.city-tag {
  background: rgba(14, 47, 79, 0.08);
  color: var(--primary);
  width: fit-content;
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card .badge {
  margin-bottom: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 900;
}

.testimonials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial {
  padding: 24px 22px;
  position: relative;
}

.testimonial::before {
  content: "“";
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 4rem;
  line-height: 1;
  color: rgba(242,145,47,0.18);
  font-weight: 700;
}

.person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(242, 145, 47, 0.12);
  color: var(--accent);
}

.contact {
  padding-top: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.contact-card,
.form-card,
.contact-box {
  padding: 28px 24px;
  background: linear-gradient(180deg, #fff, #fffaf5);
  border-radius: 28px;
  box-shadow: 0 14px 32px rgba(17,24,39,0.04);
}

.contact-card h3,
.contact-box h2 {
  color: #102847;
}

.contact-placeholder {
  background: #f8f9fb;
  border: 1px dashed rgba(14, 47, 79, 0.22);
  border-radius: 18px;
  padding: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.contact-info {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-item {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
}

.contact-item strong {
  display: block;
  color: var(--primary);
  margin-bottom: 4px;
}

.input-group label {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input:focus,
textarea:focus,
.unit-selector select:focus {
  outline: 2px solid rgba(242, 145, 47, 0.38);
  outline-offset: 2px;
}

.input-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

label {
  font-weight: 700;
  color: var(--primary);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(14, 47, 79, 0.16);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

footer {
  padding: 24px 0 32px;
  background: #0c1f32;
  color: rgba(255,255,255,0.86);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.unit-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}

.unit-modal[hidden] {
  display: none;
}

.unit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.5);
}

.unit-modal-card {
  position: relative;
  z-index: 1;
  width: min(540px, calc(100% - 24px));
  background: #fff;
  border-radius: 30px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.unit-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #f3f5f7;
  cursor: pointer;
  font-size: 1.5rem;
}

.unit-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .steps-grid,
  .testimonials-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    display: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
    justify-content: flex-start;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .navbar {
    position: relative;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .topbar-actions {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .unit-selector {
    flex: 1;
  }

  .unit-selector select {
    min-width: 0;
    flex: 1;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }
}
