:root {
  --brown: #72595d;
  --brown-dark: #463239;
  --blush: #ddccc7;
  --cyan: #00cae0;
  --cyan-dark: #00a4b6;
  --ink: #333333;
  --muted: #5e7988;
  --paper: #ffffff;
  --soft: #f7f3f1;
  --line: rgba(114, 89, 93, 0.16);
  --shadow: 0 22px 55px rgba(70, 50, 57, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.62;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 82px;
  padding: 10px clamp(18px, 5vw, 76px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  width: min(190px, 48vw);
}

.menu-toggle,
.mobile-phone {
  display: none;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  font-family: Poppins, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
}

.main-nav a,
.header-phone,
.button,
.text-link,
.phone-link,
.site-footer a {
  text-decoration: none;
}

.nav-item {
  position: relative;
  padding: 24px 0;
}

.submenu {
  position: absolute;
  top: 60px;
  left: -18px;
  display: grid;
  gap: 2px;
  min-width: 235px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 180ms ease;
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.submenu a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 4px;
}

.submenu a:hover {
  color: var(--paper);
  background: var(--brown);
}

.header-phone {
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  color: var(--paper);
  background: var(--cyan);
  border-radius: 6px;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  white-space: nowrap;
}

.hero {
  min-height: calc(78vh - 82px);
  padding: clamp(36px, 5vw, 58px) clamp(18px, 5vw, 76px) clamp(30px, 4vw, 46px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.46)),
    url("assets/dental-express/hero-dental-express.png") center right / cover no-repeat,
    var(--blush);
}

.hero-inner {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brown);
  font-family: Poppins, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-family: Poppins, sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 5.1vw, 4.65rem);
  font-weight: 800;
}

h1 span {
  display: block;
  color: var(--brown);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 800;
}

.about-title {
  font-size: clamp(2rem, 3.25vw, 3.25rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

.hero p:not(.eyebrow),
.section-copy p,
.section-heading p,
.feature-layout p {
  max-width: 650px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: Poppins, sans-serif;
  font-weight: 600;
}

.button.outline {
  margin-top: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.3);
  border-color: var(--brown);
}

.button.outline:hover,
.button.filled {
  color: var(--paper);
  background: var(--brown);
}

.button.filled:hover,
.header-phone:hover,
.newsletter button:hover,
.contact-form button:hover {
  background: var(--cyan-dark);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
  padding: clamp(70px, 9vw, 116px) clamp(18px, 5vw, 76px);
}

.image-stack {
  position: relative;
}

.image-stack img {
  width: 100%;
  min-height: 500px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-top: 24px;
}

.text-link {
  color: var(--ink);
  font-family: Poppins, sans-serif;
  font-weight: 600;
}

.text-link::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  color: var(--paper);
  background: var(--cyan);
  border-radius: 50%;
}

.section {
  padding: clamp(70px, 8vw, 112px) clamp(18px, 5vw, 76px);
}

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

.section-heading {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(280px, 430px);
  justify-content: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.team-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(70, 50, 57, 0.08);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.team-card div {
  padding: 22px;
  text-align: center;
}

.team-card span,
.reviews-grid span {
  color: var(--brown);
  font-weight: 700;
}

.services-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.64fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 78px);
  align-items: start;
  padding: clamp(70px, 9vw, 116px) clamp(18px, 5vw, 76px);
  background: linear-gradient(135deg, var(--brown-dark), var(--brown));
}

.section-copy.light h2,
.section-copy.light .eyebrow,
.section-copy.light p,
.services-section h3 {
  color: var(--paper);
}

.section-copy.light p {
  color: rgba(255, 255, 255, 0.75);
}

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

.service-grid article {
  min-height: 214px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
}

.service-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--brown-dark);
  background: var(--cyan);
  border-radius: 50%;
  font-family: Poppins, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

.service-grid p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.before-after {
  display: grid;
  grid-template-columns: minmax(280px, 0.56fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(70px, 8vw, 112px) clamp(18px, 5vw, 76px);
  background: var(--soft);
}

.ba-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ba-images figure {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.ba-images img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.ba-images figcaption {
  padding: 14px;
  color: var(--brown);
  font-family: Poppins, sans-serif;
  font-weight: 700;
  text-align: center;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 74px);
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list article {
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--cyan);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(70, 50, 57, 0.06);
}

.feature-list p {
  margin-bottom: 0;
}

.gallery-section {
  padding: clamp(70px, 8vw, 112px) clamp(18px, 5vw, 76px);
  background: var(--blush);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(70, 50, 57, 0.12);
}

.gallery-grid .wide {
  grid-column: span 2;
}

.reviews-section {
  padding: clamp(70px, 8vw, 112px) clamp(18px, 5vw, 76px);
}

.reviews-grid article {
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(70, 50, 57, 0.08);
}

.review-avatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 18px;
  color: var(--paper);
  background: var(--brown);
  border-radius: 50%;
  font-family: Poppins, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

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

.stars {
  color: var(--cyan-dark);
  font-family: Poppins, sans-serif;
  letter-spacing: 0.16em;
}

.contact-section {
  padding: clamp(70px, 8vw, 112px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url("assets/dental-express/crown-bridge.jpg") center / cover;
}

.consult-card {
  max-width: 920px;
  margin: 0 auto 34px;
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  background: var(--blush);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.phone-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--brown);
  font-family: Poppins, sans-serif;
  font-size: clamp(1.7rem, 4vw, 3.5rem);
  font-weight: 800;
}

.consult-card .appointment-link {
  display: flex;
  width: max-content;
  margin: 22px auto 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.75fr);
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.contact-form,
.contact-details {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(70, 50, 57, 0.08);
}

.contact-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--brown);
  font-family: Poppins, sans-serif;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfbfb;
  border: 1px solid #cae1e4;
  border-radius: 6px;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form button,
.newsletter button {
  min-height: 50px;
  color: var(--paper);
  background: var(--cyan);
  border: 0;
  border-radius: 6px;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.contact-details p {
  margin: 20px 0 2px;
  color: var(--brown);
  font-family: Poppins, sans-serif;
  font-weight: 700;
}

.contact-details strong {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.contact-details .directions-link {
  margin-top: 24px;
}

.location-map {
  margin-top: 30px;
  overflow: hidden;
  border-radius: 8px;
}

.location-map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 18px;
}

.location-map-heading .eyebrow,
.location-map-heading h3 {
  margin-bottom: 0;
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 390px;
  border: 0;
  border-radius: 6px;
}

.newsletter {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(46px, 6vw, 70px) clamp(20px, 5vw, 56px);
  transform: translateY(54px);
  text-align: center;
  background: var(--blush);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

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

.newsletter form {
  display: grid;
  grid-template-columns: 1fr auto;
  max-width: 560px;
  margin: 24px auto 0;
}

.newsletter input {
  border-radius: 6px 0 0 6px;
}

.newsletter button {
  padding: 0 28px;
  border-radius: 0 6px 6px 0;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  padding: 104px clamp(18px, 5vw, 76px) 34px;
  color: var(--muted);
  background: var(--paper);
}

.site-footer img {
  width: 220px;
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 340px;
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  color: var(--ink);
  font-family: Poppins, sans-serif;
  font-weight: 600;
}

.site-footer .footer-credit {
  max-width: none;
  color: var(--ink);
  font-size: 0.88rem;
  white-space: nowrap;
}

.footer-credit a {
  color: var(--brown);
  font-weight: 700;
}

.footer-credit a:hover {
  color: var(--cyan-dark);
}

.service-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
  min-height: 560px;
  padding: clamp(54px, 7vw, 94px) clamp(18px, 7vw, 108px);
  background: var(--soft);
}

.service-page-hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
}

.service-page-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.02rem;
}

.service-page-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-content {
  display: grid;
  grid-template-columns: minmax(230px, 0.32fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 80px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(70px, 8vw, 110px) clamp(18px, 5vw, 76px);
}

.service-menu {
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(70, 50, 57, 0.08);
}

.service-menu a {
  padding: 13px 15px;
  color: var(--muted);
  border-radius: 6px;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.service-menu a:hover,
.service-menu a[aria-current="page"] {
  color: var(--paper);
  background: var(--brown);
}

.service-article {
  max-width: 780px;
}

.service-article h2 {
  font-size: clamp(2rem, 3.5vw, 3.35rem);
}

.service-article h3 {
  margin-top: 38px;
  font-size: 1.45rem;
}

.service-article p,
.service-article li {
  color: var(--muted);
}

.service-article ul,
.service-article ol {
  display: grid;
  gap: 12px;
  padding-left: 22px;
}

.service-note {
  margin-top: 38px;
  padding: 24px;
  background: var(--blush);
  border-left: 4px solid var(--brown);
  border-radius: 0 6px 6px 0;
}

.service-note p {
  margin-bottom: 0;
}

.service-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(42px, 6vw, 76px) clamp(18px, 7vw, 108px);
  color: var(--paper);
  background: var(--brown-dark);
}

.service-cta h2,
.service-cta p {
  color: var(--paper);
}

.service-cta h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

.service-cta p {
  margin-bottom: 0;
}

.service-cta .button {
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--paper);
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-item {
    padding: 0;
  }

  .submenu {
    display: none;
  }

  .about-section,
  .services-section,
  .before-after,
  .feature-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    background-position: 58% center;
  }

  .service-page-hero {
    grid-template-columns: 1fr;
  }

  .service-page-hero img {
    max-height: 460px;
  }
}

@media (max-width: 760px) {
  .service-content {
    grid-template-columns: 1fr;
  }

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

  .service-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
    min-height: 72px;
    padding-block: 8px;
  }

  .brand {
    width: min(180px, 58vw);
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px clamp(18px, 5vw, 76px) 18px;
    overflow: visible;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(70, 50, 57, 0.12);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav > a,
  .nav-item > a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-item {
    width: 100%;
  }

  .main-nav .submenu {
    position: static;
    display: grid;
    gap: 0;
    min-width: 0;
    padding: 0 0 4px 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .main-nav .submenu a {
    padding: 9px 0;
    color: var(--muted);
    background: transparent;
    border-bottom: 1px solid var(--line);
  }

  .main-nav .submenu a:hover {
    color: var(--brown);
    background: transparent;
  }

  .main-nav .mobile-phone {
    display: block;
    margin-top: 10px;
    padding: 11px 16px;
    color: var(--paper);
    text-align: center;
    background: var(--cyan);
    border: 0;
    border-radius: 6px;
  }

  .header-phone {
    display: none;
  }

  .team-grid,
  .reviews-grid,
  .service-grid,
  .ba-images,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 250px;
  }

  .gallery-grid .wide {
    grid-column: span 1;
  }

  .image-stack img {
    min-height: 360px;
  }

}

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .brand {
    width: min(180px, 58vw);
  }

  .main-nav {
    font-size: 0.86rem;
  }

  .service-page-hero {
    min-height: auto;
  }

  .service-menu {
    grid-template-columns: 1fr;
  }

  .header-phone,
  .button,
  .newsletter form {
    width: 100%;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
      url("assets/dental-express/hero-dental-express.png") 57% center / cover no-repeat,
      var(--blush);
  }

  .button-row,
  .newsletter form {
    grid-template-columns: 1fr;
  }

  .newsletter input,
  .newsletter button {
    border-radius: 6px;
  }

  .location-map-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .location-map iframe {
    height: 320px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
