:root {
  --navy: #031B33;
  --navy-2: #062642;
  --green: #24A85A;
  --green-dark: #158547;
  --cream: #F7F4EE;
  --white: #FFFFFF;
  --text: #12243A;
  --muted: #607084;
  --line: rgba(255, 255, 255, .16);
  --shadow: 0 24px 70px rgba(0, 0, 0, .18);
  --soft-shadow: 0 22px 65px rgba(3, 27, 51, .1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: Inter, Arial, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  background: rgba(3, 27, 51, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 48px));
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: 136px;
  height: auto;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: rgba(255, 255, 255, .84);
  font-size: 15px;
  font-weight: 500;
}

.menu a {
  position: relative;
  padding: 30px 0;
  transition: color .2s ease;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--white);
}

.menu a:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 99px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 3px auto;
  background: currentColor;
  border-radius: 99px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-whats,
.btn-main {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), #36C46D);
  box-shadow: 0 12px 25px rgba(36, 168, 90, .25);
}

.btn-whats:hover,
.btn-main:hover,
.btn-whats:focus-visible,
.btn-main:focus-visible {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.nav-cta {
  min-height: 48px;
  padding: 0 20px;
  white-space: nowrap;
}

.whats-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.whats-icon::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 10px;
  left: 6px;
  top: 4px;
  border: 2px solid currentColor;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 4px 0;
  transform: rotate(-28deg);
}

.whats-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: -1px;
  bottom: -2px;
  background: currentColor;
  clip-path: polygon(0 100%, 100% 38%, 62% 0);
}

.whats-icon.green {
  color: var(--green);
}

.hero {
  min-height: 682px;
  padding-top: 82px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3, 27, 51, .99) 0%, rgba(3, 27, 51, .94) 41%, rgba(3, 27, 51, .45) 65%, rgba(3, 27, 51, .08) 100%),
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, .2), transparent 22%),
    var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 82px 0 0 auto;
  width: min(62vw, 760px);
  background-image: url("assets/dr-george-hero-smile.png");
  background-size: cover;
  background-position: center top;
  opacity: .98;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--navy) 0%, rgba(3, 27, 51, .74) 12%, rgba(3, 27, 51, .1) 43%),
    linear-gradient(0deg, rgba(3, 27, 51, .18), rgba(3, 27, 51, 0));
}

.hero-content {
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 54px 0 60px;
}

.hero-text {
  width: min(640px, 100%);
}

.eyebrow {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0 0 24px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(40px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-subtitle {
  max-width: 540px;
  margin: 0 0 38px;
  color: rgba(255, 255, 255, .9);
  font-size: 20px;
  line-height: 1.65;
}

.specialties-mini {
  width: min(610px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 36px;
}

.mini {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.mini-icon {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
}

.mini-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 15px;
}

.mini small {
  display: block;
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-main {
  min-height: 70px;
  max-width: 100%;
  padding: 0 28px;
  font-size: 16px;
  line-height: 1.35;
  text-transform: uppercase;
}

.trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.trust::before {
  content: "⌘";
  font-size: 15px;
}

.benefits {
  background:
    radial-gradient(circle at 12% 30%, rgba(3, 27, 51, .06), transparent 34%),
    radial-gradient(circle at 86% 64%, rgba(36, 168, 90, .08), transparent 30%),
    #fbfaf7;
  padding: 42px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.benefit {
  min-height: 150px;
  padding: 24px 34px;
  text-align: center;
  border-right: 1px solid #e3ded7;
}

.benefit:last-child {
  border-right: 0;
}

.benefit-icon {
  display: block;
  min-height: 36px;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
}

.benefit h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
  line-height: 1.18;
}

.benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.section-dark {
  padding: 70px 0 76px;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 0%, #0A3558 0%, rgba(10, 53, 88, .52) 30%, transparent 58%),
    linear-gradient(135deg, #021120, var(--navy) 48%, #082C4C);
}

.section-head {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto 36px;
  text-align: center;
}

.section-head span {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
}

.tooth-divider {
  width: 210px;
  height: 28px;
  margin: 14px auto 0;
  position: relative;
}

.tooth-divider::before,
.tooth-divider::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 82px;
  height: 1px;
  background: rgba(255, 255, 255, .45);
}

.tooth-divider::before {
  left: 0;
}

.tooth-divider::after {
  right: 0;
}

.tooth-divider {
  background:
    radial-gradient(circle at 50% 37%, transparent 7px, rgba(255, 255, 255, .9) 7px, rgba(255, 255, 255, .9) 8px, transparent 9px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.treatment-card {
  min-height: 238px;
  padding: 28px;
  display: flex;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.treatment-card::before,
.treatment-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.treatment-card::before {
  background-size: cover;
  background-position: center;
  transition: transform .35s ease;
}

.treatment-card:hover::before {
  transform: scale(1.05);
}

.treatment-card::after {
  background: linear-gradient(180deg, rgba(3, 27, 51, .08), rgba(3, 27, 51, .78));
}

.treatment-card.orto::before {
  background-image: url("assets/treatment-ortodontia.png");
  background-position: 42% center;
}

.treatment-card.orto::after {
  background: linear-gradient(90deg, rgba(3, 27, 51, .1), rgba(3, 27, 51, .74));
}

.treatment-card.protese {
  color: var(--navy);
}

.treatment-card.protese::before {
  background-image: url("assets/treatment-protese.png");
  background-position: 35% center;
}

.treatment-card.protese::after,
.treatment-card.invisalign::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .42));
}

.treatment-card.invisalign {
  color: var(--navy);
}

.treatment-card.invisalign::before {
  background-image: url("assets/treatment-invisalign.png");
  background-position: 60% center;
}

.treatment-card h3 {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.treatment-card p {
  max-width: 280px;
  margin: 0 0 20px;
  color: inherit;
  font-size: 13px;
  line-height: 1.7;
}

.treatment-card.orto p {
  color: rgba(255, 255, 255, .9);
}

.invisalign-mark {
  display: inline-block;
  margin-bottom: 42px;
  color: #008ed6;
  font-size: 20px;
  font-weight: 800;
  text-transform: lowercase;
}

.treatment-card a {
  width: 116px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.treatment-card a:hover,
.treatment-card a:focus-visible {
  transform: translateY(-2px);
  background: var(--white);
  color: var(--navy);
}

.about {
  padding: 72px 0;
  background:
    radial-gradient(circle at 0% 10%, rgba(3, 27, 51, .06), transparent 28%),
    radial-gradient(circle at 90% 75%, rgba(36, 168, 90, .07), transparent 24%),
    #fbfaf7;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr .9fr .9fr;
  gap: 36px;
  align-items: center;
}

.doctor-card {
  min-height: 305px;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  background: var(--navy);
}

.doctor-card img {
  width: 100%;
  height: 100%;
  min-height: 305px;
  object-fit: cover;
  object-position: center;
}

.doctor-card button {
  width: 58px;
  height: 58px;
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--navy);
  background: var(--white);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.doctor-card button span {
  margin-left: 4px;
}

.about-text span,
.contact-box small {
  display: block;
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.about-text h2,
.contact-box h2 {
  margin: 0 0 20px;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.15;
}

.about-text p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.btn-outline {
  min-height: 46px;
  padding: 0 22px;
  color: var(--navy);
  border: 1px solid var(--navy);
  background: transparent;
  font-size: 14px;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: var(--white);
  background: var(--navy);
}

.contact-box {
  padding: 32px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--soft-shadow);
}

.contact-box h2 {
  margin-bottom: 22px;
  font-size: 27px;
}

.contact-box ul {
  display: grid;
  gap: 15px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 15px;
}

.contact-box li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-box li > span:first-child {
  width: 22px;
  flex: 0 0 auto;
  color: var(--green);
}

.contact-box .btn-whats {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  text-transform: uppercase;
  font-size: 13px;
}

.floating-whats {
  width: 58px;
  height: 58px;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: none;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(21, 133, 71, .34);
}

footer {
  padding: 26px 24px;
  color: rgba(255, 255, 255, .74);
  background: var(--navy);
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 1120px) {
  .nav {
    width: min(100% - 32px, 1180px);
  }

  .menu {
    gap: 18px;
  }

  .nav-cta {
    padding-inline: 16px;
    font-size: 14px;
  }
}

@media (max-width: 980px) {
  .container,
  .section-head {
    width: min(100% - 36px, 720px);
  }

  .nav {
    min-height: 72px;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .nav-cta {
    margin-left: auto;
  }

  .menu {
    position: fixed;
    inset: 72px 0 auto;
    display: grid;
    gap: 0;
    padding: 12px 18px 18px;
    background: rgba(3, 27, 51, .98);
    border-top: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-120%);
    transition: transform .25s ease;
    box-shadow: 0 28px 60px rgba(0, 0, 0, .24);
  }

  .menu.is-open {
    transform: translateY(0);
  }

  .menu a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .menu a:first-child::after {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding-top: 72px;
    background:
      linear-gradient(180deg, rgba(3, 27, 51, .2) 0%, rgba(3, 27, 51, .78) 45%, rgba(3, 27, 51, .99) 78%),
      var(--navy);
  }

  .hero-bg {
    inset: 72px 0 auto;
    width: 100%;
    height: 420px;
    background-position: 68% top;
  }

  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(3, 27, 51, 0) 0%, rgba(3, 27, 51, .86) 82%),
      linear-gradient(90deg, rgba(3, 27, 51, .48), rgba(3, 27, 51, 0));
  }

  .hero-content {
    min-height: 688px;
    align-items: flex-end;
    padding: 280px 0 44px;
  }

  .hero-text {
    width: 100%;
  }

  .specialties-mini,
  .benefits-grid,
  .cards,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .specialties-mini {
    gap: 18px;
  }

  .mini small {
    font-size: 13px;
  }

  .benefit {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #e3ded7;
  }

  .benefit:last-child {
    border-bottom: 0;
  }

  .cards,
  .about-grid {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .nav {
    width: calc(100% - 28px);
    min-height: 68px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 108px;
    padding: 4px 7px;
  }

  .nav-cta {
    display: none;
  }

  .menu {
    top: 68px;
  }

  .hero {
    min-height: 780px;
    padding-top: 68px;
  }

  .hero-bg {
    top: 68px;
    height: 360px;
    background-position: 63% top;
  }

  .hero-content {
    min-height: 712px;
    padding: 260px 0 42px;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: .15em;
  }

  h1 {
    font-size: clamp(33px, 10.5vw, 42px);
  }

  .hero-subtitle {
    margin-bottom: 28px;
    font-size: 17px;
  }

  .btn-main {
    width: 100%;
    min-height: 64px;
    padding-inline: 18px;
    font-size: 14px;
  }

  .hero-actions {
    order: 4;
    margin-bottom: 26px;
  }

  .specialties-mini {
    order: 5;
    margin-bottom: 30px;
  }

  .mini-icon {
    width: 40px;
    height: 40px;
  }

  .benefits,
  .about {
    padding-block: 46px;
  }

  .section-dark {
    padding-block: 54px;
  }

  .treatment-card {
    min-height: 220px;
    padding: 24px;
  }

  .contact-box {
    padding: 26px;
  }

  .floating-whats {
    display: grid;
  }
}
