:root {
  --ink: #16324f;
  --muted: #5e6f82;
  --blue: #1262b3;
  --blue-dark: #0a3f7a;
  --blue-soft: #eef6ff;
  --yellow: #f6c445;
  --yellow-soft: #fff6d8;
  --white: #ffffff;
  --line: rgba(18, 98, 179, 0.16);
  --shadow: 0 16px 42px rgba(10, 63, 122, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(158px, 18vw, 206px);
  max-width: 48vw;
  height: auto;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.top-nav a:hover {
  color: var(--blue);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta {
  padding: 0 18px;
  color: var(--blue-dark);
  background: var(--yellow);
}

.button {
  padding: 12px 20px;
  text-align: center;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--blue-dark);
  background: var(--yellow);
  box-shadow: 0 12px 24px rgba(246, 196, 69, 0.28);
}

.button-primary:hover {
  background: #ffd35c;
}

.button-ghost {
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid rgba(18, 98, 179, 0.24);
}

.button-ghost.light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 520px;
  padding: clamp(54px, 8vw, 88px) clamp(18px, 5vw, 56px);
  overflow: hidden;
  background:
    linear-gradient(120deg, var(--white) 0%, var(--white) 54%, var(--blue-soft) 54%, var(--blue-soft) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: min(58%, 920px);
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0%, rgba(238, 246, 255, 0.32) 48%, rgba(238, 246, 255, 0.1) 100%),
    url("assets/fachada-clinari-destaque.jpg");
  background-position: left center;
  background-size: cover;
  opacity: 0.92;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--blue-dark);
  font-size: clamp(2.1rem, 4.7vw, 3.85rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 16px;
  color: var(--blue-dark);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-weight: 800;
}

h3 {
  margin-bottom: 9px;
  color: var(--blue-dark);
  font-size: 1rem;
  line-height: 1.28;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 430px;
  margin-top: 16px;
  padding: 12px 14px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 98, 179, 0.16);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(10, 63, 122, 0.1);
}

.google-rating strong,
.google-rating small {
  display: block;
}

.google-rating strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.google-rating small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.rating-stars {
  flex: 0 0 auto;
  color: var(--yellow);
  font-size: 1.08rem;
  line-height: 1;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.trust-strip span {
  padding: 8px 12px;
  color: var(--blue-dark);
  background: var(--yellow-soft);
  border: 1px solid rgba(246, 196, 69, 0.48);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.section {
  padding: clamp(58px, 8vw, 92px) clamp(18px, 5vw, 56px);
}

.section-heading {
  max-width: 780px;
}

.section-heading.centered {
  margin: 0 auto 30px;
  text-align: center;
}

.about-grid {
  display: block;
  margin-top: 28px;
}

.about-card,
.service-card,
.why-grid article,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(10, 63, 122, 0.07);
}

.about-card {
  padding: clamp(22px, 4vw, 34px);
}

.doctor-photo-slot {
  position: relative;
  display: grid;
  width: 100%;
  margin-bottom: 16px;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  color: var(--blue);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 246, 255, 0.92)),
    repeating-linear-gradient(135deg, rgba(18, 98, 179, 0.1) 0 1px, transparent 1px 12px);
  border: 1px dashed rgba(18, 98, 179, 0.3);
  border-radius: 8px;
}

.doctor-photo-slot::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(18, 98, 179, 0.12);
  border-radius: 6px;
  pointer-events: none;
}

.doctor-photo-slot span {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.doctor-photo-slot small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.doctor-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-photo-slot.has-photo {
  background: var(--white);
  border-style: solid;
  border-color: rgba(18, 98, 179, 0.18);
}

.doctor-photo-slot.has-photo::after {
  display: none;
}

.team-list {
  display: grid;
  gap: 18px;
}

.team-list > p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.doctor-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
}

.doctor-grid p,
.service-card p,
.why-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.services {
  background: var(--blue-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  padding: 22px;
}

.service-badge {
  display: inline-flex;
  margin-bottom: 13px;
  padding: 7px 10px;
  color: var(--blue-dark);
  background: var(--yellow);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.invisalign-recognition {
  background: var(--white);
}

.recognition-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
}

.recognition-copy {
  padding: clamp(24px, 4vw, 36px);
  background:
    linear-gradient(135deg, rgba(255, 246, 216, 0.82), rgba(238, 246, 255, 0.72)),
    var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(10, 63, 122, 0.08);
}

.recognition-copy p {
  color: var(--muted);
}

.recognition-copy p:last-of-type {
  margin-bottom: 0;
}

.recognition-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.recognition-tags span {
  padding: 8px 11px;
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid rgba(18, 98, 179, 0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.recognition-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-self: end;
  width: 100%;
  max-width: 620px;
  gap: 12px;
  align-items: stretch;
}

.recognition-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--blue-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(10, 63, 122, 0.1);
}

.recognition-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recognition-photo-main {
  aspect-ratio: 1 / 1;
}

.recognition-photo-small img {
  aspect-ratio: auto;
}

.recognition-photo-small figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.insurance-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  margin: 0 clamp(18px, 5vw, 56px);
  padding: clamp(28px, 5vw, 44px);
  color: var(--white);
  background: var(--blue);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.insurance-band h2 {
  color: var(--white);
}

.insurance-band .eyebrow {
  color: var(--yellow);
}

.insurance-band p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.insurance-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.insurance-tags span {
  min-width: 138px;
  padding: 16px 20px;
  text-align: center;
  color: var(--blue-dark);
  background: var(--yellow);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 900;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.why-grid article {
  padding: 22px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.72fr);
  gap: 28px;
  align-items: center;
  padding: clamp(58px, 8vw, 92px) clamp(18px, 5vw, 56px);
  color: var(--white);
  background: var(--blue-dark);
}

.contact h2 {
  color: var(--white);
}

.contact .eyebrow {
  color: var(--yellow);
}

.contact-copy p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-panel {
  padding: 24px;
  color: var(--ink);
  background: var(--white);
}

.contact-panel div + div {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-panel span {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-panel p {
  margin-bottom: 0;
}

.contact-panel a {
  color: var(--blue);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 22px clamp(18px, 5vw, 56px);
  color: rgba(255, 255, 255, 0.78);
  background: #072f5f;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--yellow);
  font-weight: 800;
}

.bio-page {
  min-height: 100vh;
  background:
    linear-gradient(160deg, rgba(238, 246, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 46%, rgba(255, 246, 216, 0.88) 100%);
}

.bio-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 18px 28px;
}

.bio-profile {
  text-align: center;
}

.bio-logo {
  width: min(236px, 72vw);
  height: auto;
  margin: 0 auto 24px;
}

.bio-profile .eyebrow {
  color: var(--blue);
}

.bio-profile h1 {
  max-width: none;
  margin: 0 auto 12px;
  font-size: clamp(1.7rem, 8vw, 2.4rem);
  line-height: 1.12;
}

.bio-profile p:not(.eyebrow) {
  max-width: 430px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.98rem;
}

.bio-links {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.bio-link {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(10, 63, 122, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.bio-link:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 98, 179, 0.3);
  box-shadow: 0 16px 34px rgba(10, 63, 122, 0.13);
}

.bio-link span {
  font-size: 1rem;
  font-weight: 900;
}

.bio-link small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.bio-link-primary {
  background: var(--yellow);
  border-color: rgba(246, 196, 69, 0.72);
}

.bio-link-primary small {
  color: rgba(10, 63, 122, 0.78);
}

.bio-info {
  margin-top: 22px;
  padding: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bio-info p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.48;
}

.bio-info p + p {
  margin-top: 8px;
}

.bio-info strong {
  color: var(--blue-dark);
}

@media (max-width: 1100px) {
  .service-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doctor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recognition-layout {
    grid-template-columns: 1fr;
  }

  .recognition-media {
    justify-self: stretch;
    max-width: 820px;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: center;
  }

  .top-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    background: linear-gradient(180deg, var(--white) 0%, var(--blue-soft) 100%);
  }

  .hero::after {
    inset: auto 0 0;
    width: 100%;
    height: 58%;
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(238, 246, 255, 0.5) 44%, rgba(238, 246, 255, 0.18) 100%),
      url("assets/fachada-clinari-destaque.jpg");
    background-position: left bottom;
    opacity: 0.52;
  }

  .about-grid,
  .insurance-band,
  .contact {
    grid-template-columns: 1fr;
  }

  .insurance-tags {
    justify-content: flex-start;
  }

  .recognition-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
    line-height: 1.52;
  }

  .site-header {
    gap: 10px;
    padding: 8px 14px;
  }

  .brand-logo {
    width: 132px;
    max-width: 54vw;
  }

  .header-cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
    border-radius: 7px;
    box-shadow: none;
  }

  .hero {
    padding: 34px 16px 42px;
    background: linear-gradient(180deg, var(--white) 0%, var(--white) 52%, var(--blue-soft) 100%);
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: 0.66rem;
    line-height: 1.35;
  }

  h1 {
    margin-bottom: 14px;
    font-size: 1.92rem;
    line-height: 1.14;
  }

  h2 {
    margin-bottom: 12px;
    font-size: 1.42rem;
    line-height: 1.18;
  }

  h3 {
    font-size: 0.98rem;
  }

  .hero-text {
    margin-bottom: 18px;
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .hero-actions,
  .contact-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 44px;
    padding: 11px 14px;
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .google-rating {
    width: 100%;
    margin-top: 12px;
    padding: 11px 12px;
  }

  .google-rating strong {
    font-size: 0.88rem;
  }

  .google-rating small {
    font-size: 0.74rem;
  }

  .rating-stars {
    font-size: 0.95rem;
  }

  .trust-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .trust-strip span {
    padding: 8px 10px;
    text-align: center;
    font-size: 0.78rem;
  }

  .section {
    padding: 46px 16px;
  }

  .section-heading.centered {
    margin-bottom: 22px;
    text-align: left;
  }

  .about-grid {
    gap: 16px;
    margin-top: 20px;
  }

  .about-card,
  .service-card,
  .why-grid article,
  .contact-panel {
    padding: 18px;
  }

  .team-list {
    gap: 16px;
  }

  .doctor-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .doctor-grid article {
    padding: 16px;
  }

  .doctor-photo-slot {
    aspect-ratio: 4 / 5;
    margin-bottom: 14px;
  }

  .service-badge {
    font-size: 0.7rem;
  }

  .recognition-copy {
    padding: 20px;
  }

  .recognition-tags {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .recognition-tags span {
    text-align: center;
  }

  .recognition-media {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    gap: 12px;
  }

  .recognition-photo-main {
    aspect-ratio: 1 / 1;
  }

  .recognition-photo-small img {
    aspect-ratio: auto;
  }

  .service-grid,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-cta {
    margin-top: 22px;
  }

  .insurance-band {
    margin: 0 16px;
    padding: 24px 18px;
    gap: 18px;
  }

  .insurance-tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .insurance-tags span {
    min-width: 0;
    padding: 12px 10px;
    font-size: 0.9rem;
  }

  .why-grid {
    margin-top: 20px;
  }

  .contact {
    gap: 22px;
    padding: 46px 16px;
  }

  .contact-panel div + div {
    margin-top: 16px;
    padding-top: 16px;
  }

  .site-footer {
    display: block;
    padding: 18px 16px;
    font-size: 0.9rem;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 8px;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 118px;
  }

  .header-cta {
    min-width: 78px;
  }

  h1 {
    font-size: 1.72rem;
  }

  .hero {
    padding-top: 30px;
  }

  .insurance-tags {
    grid-template-columns: 1fr;
  }
}
