:root {
  --cream: #f7f5ef;
  --paper: #fffefa;
  --steel: #5d7177;
  --steel-dark: #314f55;
  --deep: #27464c;
  --blue: #78a8cb;
  --blue-dark: #547d9a;
  --tan: #b3a596;
  --tan-dark: #918271;
  --ink: #1f3440;
  --muted: #6c7578;
  --white: #ffffff;
  --line: rgba(31, 52, 64, 0.14);
  --sans: "Inter", Arial, sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 20px;
  left: 20px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--deep);
  color: var(--white);
}

.container {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.site-header {
  background: var(--cream);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.utility-bar {
  position: relative;
  width: min(1360px, calc(100% - 32px));
  min-height: 136px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 20px;
  padding: 18px 0 0;
}

.utility-left,
.utility-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.utility-left {
  font-size: 15px;
  font-weight: 700;
}

.utility-left a::before {
  content: "•";
  color: var(--tan);
  margin-right: 6px;
}

.center-logo {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
  color: var(--ink);
}

.center-logo span {
  width: 74px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.center-logo strong {
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.utility-actions {
  justify-content: flex-end;
}

.utility-btn,
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  padding: 14px 24px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.utility-btn:hover,
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.utility-btn.muted,
.btn-muted {
  background: var(--tan);
  color: var(--white);
}

.utility-btn.blue,
.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.utility-btn.outline {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.btn-tan {
  background: var(--tan);
  color: var(--white);
}

.main-nav {
  width: min(1040px, calc(100% - 32px));
  min-height: 54px;
  margin: -24px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--tan-dark);
}

.nav-links a:first-child,
.nav-links a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border: 1px solid var(--line);
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  width: 22px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 118px 0 0;
  background: var(--steel-dark);
  color: var(--white);
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background:
    linear-gradient(130deg, transparent 0 48%, rgba(255, 255, 255, 0.06) 48% 49%, transparent 49% 100%),
    linear-gradient(70deg, transparent 0 42%, rgba(255, 255, 255, 0.07) 42% 43%, transparent 43% 100%),
    linear-gradient(180deg, rgba(18, 43, 48, 0.92), rgba(56, 84, 91, 0.78));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 88px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(520px, 1fr);
  align-items: center;
}

.hero-panel {
  z-index: 2;
  width: min(660px, 100%);
  min-height: 410px;
  margin-right: -130px;
  padding: 78px 62px;
  background: rgba(94, 112, 118, 0.94);
}

.hero-kicker {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 520px;
  margin: 0 0 26px;
  font-size: clamp(42px, 4.6vw, 76px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-panel p:not(.hero-kicker) {
  max-width: 470px;
  margin-bottom: 42px;
  font-size: 18px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}

.hero-feature {
  position: relative;
  min-height: 610px;
}

.hero-feature img {
  width: 100%;
  height: 610px;
  object-fit: cover;
  object-position: center;
}

.feature-frame {
  position: absolute;
  top: 118px;
  right: 30px;
  width: min(405px, calc(100% - 60px));
  min-height: 275px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.18);
}

.feature-frame span {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-frame strong {
  display: block;
  font-size: 36px;
  line-height: 1.16;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-frame em {
  max-width: 280px;
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.03em;
}

.feature-button {
  position: absolute;
  right: 62px;
  bottom: 70px;
  min-width: 340px;
  padding: 23px 24px;
  background: var(--blue);
  color: var(--white);
  text-align: center;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.social-row {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 88px));
  margin: -78px auto 0;
  display: flex;
  gap: 22px;
  color: var(--tan);
  font-size: 24px;
  font-weight: 800;
}

.intro-section {
  min-height: 610px;
  padding: 192px 0 80px;
  background: var(--cream);
}

.intro-copy {
  max-width: 970px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 26px;
  color: var(--tan-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.78);
}

h2 {
  margin-bottom: 26px;
  font-size: clamp(32px, 3.4vw, 56px);
  font-weight: 500;
  line-height: 1.16;
}

h3 {
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 700;
}

.intro-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  color: #33414a;
  font-size: 17px;
}

.center-actions {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  gap: 150px;
}

.proof-band {
  padding: 36px 0 44px;
  background: var(--cream);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: center;
  text-align: center;
}

.proof-grid span {
  color: var(--tan-dark);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-section {
  padding: 84px 0 108px;
  background: var(--cream);
}

.section-heading {
  margin-bottom: 48px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  text-align: center;
  padding: 0 18px 28px;
}

.service-card img {
  width: 210px;
  height: 210px;
  margin: 0 auto 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 42px rgba(44, 71, 79, 0.14);
}

.service-card h3 {
  color: var(--deep);
}

.service-card a {
  display: block;
  margin: 8px auto;
  color: var(--tan-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.results-section {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.results-section > img,
.results-overlay {
  position: absolute;
  inset: 0;
}

.results-section > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.results-overlay {
  background: rgba(34, 75, 82, 0.82);
}

.results-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin-left: max(22px, calc((100vw - 1180px) / 2));
}

.results-content p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
}

.result-links {
  margin-top: 26px;
  display: grid;
  gap: 10px;
}

.result-links a {
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doctor-section {
  padding: 92px 0 110px;
  background: var(--steel);
  color: var(--white);
}

.doctor-copy {
  text-align: center;
}

.doctor-copy > p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto 58px;
  color: rgba(255, 255, 255, 0.76);
}

.doctor-card-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 360px));
  justify-content: center;
  gap: 80px;
}

.doctor-card-row article {
  text-align: center;
}

.doctor-card-row img {
  width: 240px;
  height: 240px;
  margin: 0 auto 24px;
  object-fit: cover;
  border-radius: 50%;
}

.doctor-card-row a {
  display: inline-block;
  margin: 0 7px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.testimonials-section {
  padding: 124px 0;
  background:
    linear-gradient(90deg, rgba(247, 245, 239, 0.96), rgba(247, 245, 239, 0.58), rgba(247, 245, 239, 0.96)),
    url("assets/doctor-consulta.webp") center / cover;
}

.testimonial-shell {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 62px 70px;
  background: var(--paper);
  text-align: center;
}

.stars {
  margin-bottom: 24px;
  color: var(--blue);
  letter-spacing: 0.25em;
}

blockquote {
  max-width: 900px;
  margin: 0 auto 20px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.7;
}

.testimonial-dots {
  margin: 22px 0 28px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.testimonial-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.care-section {
  padding: 132px 0;
  background: var(--cream);
}

.care-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 74px;
  align-items: center;
}

.care-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.care-grid img {
  width: 100%;
  height: 470px;
  object-fit: cover;
}

.locations-section {
  position: relative;
  padding: 92px 0 86px;
  overflow: hidden;
  background: var(--steel-dark);
  color: var(--white);
  text-align: center;
}

.location-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(255, 255, 255, 0.08) 44% 45%, transparent 45% 100%),
    linear-gradient(45deg, transparent 0 55%, rgba(255, 255, 255, 0.08) 55% 56%, transparent 56% 100%);
}

.locations-section .container {
  position: relative;
}

.locations-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.locations-grid article {
  min-height: 250px;
  padding: 34px 26px;
  background: var(--paper);
  color: var(--ink);
}

.locations-grid p {
  color: var(--muted);
}

.locations-grid a {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-section {
  padding: 76px 0 86px;
  background: var(--deep);
  color: var(--white);
}

.contact-section h2 {
  text-align: center;
}

.contact-form {
  width: min(860px, 100%);
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contact-form label {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 5px;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
}

.checkbox-line {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 11px !important;
}

.checkbox-line input {
  width: auto;
  margin: 0;
}

.newsletter-section {
  padding: 42px 0;
  background: var(--cream);
}

.newsletter-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.newsletter-grid h2 {
  margin: 0;
  font-size: 20px;
}

.site-footer {
  padding: 44px 0;
  background: var(--blue);
  color: var(--white);
  text-align: center;
}

.footer-grid {
  display: grid;
  gap: 20px;
}

.footer-grid strong,
.footer-grid span,
.footer-grid a {
  display: inline-block;
}

.footer-grid strong {
  margin-right: 8px;
}

.footer-grid nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-grid p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.mobile-cta {
  display: none;
}

@media (max-width: 1120px) {
  .utility-bar {
    min-height: 92px;
    grid-template-columns: 1fr auto;
  }

  .center-logo {
    justify-self: start;
    grid-row: 1;
    grid-column: 1;
    display: flex;
    align-items: center;
    text-align: left;
  }

  .utility-left,
  .utility-actions {
    display: none;
  }

  .main-nav {
    width: calc(100% - 32px);
    min-height: 0;
    margin: -68px auto 18px;
    justify-content: flex-end;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    z-index: 20;
    top: 96px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 20px 46px rgba(31, 52, 64, 0.16);
  }

  .main-nav.is-open .nav-links {
    display: grid;
    gap: 14px;
  }

  .hero-inner {
    width: min(100% - 44px, 820px);
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: 2;
    width: 100%;
    margin: -40px auto 0;
  }

  .hero-feature {
    order: 1;
    min-height: 470px;
  }

  .hero-feature img {
    height: 470px;
  }

  .social-row {
    width: min(100% - 44px, 820px);
    margin-top: 24px;
  }

  .services-grid,
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 56px;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .utility-bar {
    width: calc(100% - 28px);
    min-height: 86px;
  }

  .center-logo span {
    width: 54px;
    font-size: 25px;
  }

  .center-logo strong {
    font-size: 12px;
  }

  .main-nav {
    width: calc(100% - 28px);
  }

  .hero {
    min-height: auto;
    padding: 18px 0 40px;
  }

  .hero-inner {
    width: calc(100% - 24px);
  }

  .hero-feature {
    min-height: 410px;
  }

  .hero-feature img {
    height: 410px;
  }

  .feature-frame {
    top: 54px;
    right: 12px;
    width: calc(100% - 24px);
    min-height: 210px;
    padding: 20px;
    border-width: 3px;
  }

  .feature-frame span {
    font-size: 22px;
  }

  .feature-frame strong {
    font-size: 25px;
  }

  .feature-button {
    right: 20px;
    bottom: 24px;
    min-width: calc(100% - 40px);
    font-size: 18px;
  }

  .hero-panel {
    padding: 40px 20px;
  }

  h1 {
    font-size: 39px;
    letter-spacing: 0.08em;
  }

  h2 {
    font-size: 31px;
  }

  .hero-actions,
  .center-actions,
  .newsletter-grid {
    display: grid;
    gap: 14px;
  }

  .btn,
  .utility-btn {
    width: 100%;
  }

  .social-row {
    width: calc(100% - 28px);
    margin-top: 20px;
  }

  .intro-section {
    min-height: auto;
    padding: 86px 0 56px;
  }

  .proof-grid,
  .services-grid,
  .doctor-card-row,
  .care-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .services-section,
  .doctor-section,
  .care-section,
  .locations-section,
  .contact-section {
    padding: 70px 0;
  }

  .results-content {
    margin: 0 auto;
    width: min(100% - 28px, 580px);
  }

  .testimonial-shell {
    width: calc(100% - 28px);
    padding: 44px 22px;
  }

  .care-grid img {
    height: 330px;
  }

  .mobile-cta {
    position: fixed;
    z-index: 80;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mobile-cta a {
    min-height: 56px;
    display: grid;
    place-items: center;
    background: var(--tan);
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
  }

  .mobile-cta a + a {
    background: var(--blue);
  }
}
