:root {
  --cream: #f8f6f1;
  --sand: #ebe1d4;
  --copper: #945a35;
  --copper-dark: #6f4026;
  --ink: #1f2933;
  --charcoal: #263238;
  --muted: #64727f;
  --blue: #315f72;
  --blue-dark: #234756;
  --white: #ffffff;
  --max: 1160px;
  --radius: 8px;
  --shadow-soft: 0 18px 45px rgba(31, 41, 51, 0.1);
  --shadow-card: 0 12px 32px rgba(31, 41, 51, 0.12);
  --focus: 0 0 0 3px rgba(49, 95, 114, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a,
button {
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--blue-dark);
  color: var(--white);
  padding: 12px 16px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
}

.skip-link:focus {
  transform: translateY(0);
}

.top-bar {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.top-bar__inner,
.nav__inner,
.section__inner {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
}

.top-bar__inner {
  min-height: 42px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.contact-item {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.contact-item span {
  color: #f3c7a7;
  margin-right: 6px;
  font-weight: 700;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(31, 41, 51, 0.08);
  backdrop-filter: blur(12px);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 86px;
  gap: 28px;
}

.logo {
  width: 238px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #2d3a43;
  font-family: Raleway, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 33px 0 29px;
  border-bottom: 3px solid transparent;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--blue);
  border-bottom-color: var(--copper);
}

.nav__toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(49, 95, 114, 0.18);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--blue);
  font-size: 25px;
  cursor: pointer;
}

.hero {
  min-height: 76vh;
  display: grid;
  place-items: end center;
  padding: 150px 0 118px;
  background:
    linear-gradient(90deg, rgba(12, 28, 36, 0.76), rgba(12, 28, 36, 0.38) 54%, rgba(12, 28, 36, 0.16)),
    url("assets/images/location/IMG_3844_edited.webp") center 32% / cover no-repeat;
}

.hero__panel {
  width: min(100% - 36px, var(--max));
  text-align: left;
  color: var(--white);
  text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.55);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: Raleway, Arial, sans-serif;
  font-size: clamp(40px, 5.5vw, 70px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero p {
  margin: 20px 0 0;
  max-width: 700px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero__actions .button,
.footer-cta__actions .button {
  width: auto;
  min-width: 190px;
}

.quick-info {
  position: relative;
  z-index: 2;
  margin-top: -52px;
}

.quick-info__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.quick-info__grid > div {
  padding: 24px 28px;
  border-left: 1px solid rgba(49, 95, 114, 0.12);
}

.quick-info__grid > div:first-child {
  border-left: 0;
}

.quick-info__label,
.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--copper);
  font-family: Raleway, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-info strong {
  display: block;
  color: var(--blue-dark);
  font-family: Raleway, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.3;
}

.quick-info span:not(.quick-info__label) {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.section {
  padding: clamp(56px, 7vw, 86px) 0;
}

.section--sand {
  background: var(--sand);
}

.section--cream {
  background: var(--cream);
}

.section--copper {
  background: linear-gradient(135deg, var(--copper), var(--copper-dark));
  color: var(--white);
  text-align: center;
}

.section--copper .section-title,
.section--copper .eyebrow {
  color: var(--white);
}

.testimonial-feature {
  max-width: 840px;
  margin: 0 auto;
}

.testimonial-feature .section-title {
  margin-bottom: 16px;
}

.testimonial-feature p:last-child {
  margin: 0 auto;
  max-width: 760px;
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.section--dark {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 12px),
    var(--charcoal);
  color: var(--white);
}

.section-title {
  margin: 0 0 clamp(30px, 4vw, 46px);
  text-align: center;
  font-family: Raleway, Arial, sans-serif;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.18;
  text-transform: uppercase;
}

.section-heading {
  max-width: 790px;
  margin: 0 auto clamp(30px, 4vw, 46px);
  text-align: center;
}

.section-heading .section-title {
  margin-bottom: 14px;
}

.section-heading p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.section-title span,
.accent {
  color: var(--copper);
}

.service-grid,
.doctor-grid,
.stats,
.contact-grid {
  display: grid;
  gap: 28px;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(31, 41, 51, 0.16);
}

.service-card__image {
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 3vw, 32px);
  color: var(--white);
  background-position: center;
  background-size: cover;
  position: relative;
}

.service-card__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 35, 43, 0.04), rgba(20, 35, 43, 0.64));
  transition: background 0.25s ease;
}

.service-card:hover .service-card__image::before {
  background: linear-gradient(180deg, rgba(20, 35, 43, 0.1), rgba(20, 35, 43, 0.72));
}

.service-card__image h3 {
  position: relative;
  margin: 0;
  font-family: Raleway, Arial, sans-serif;
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.28;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.48);
}

.service-card__button,
.button {
  display: block;
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(49, 95, 114, 0.12);
  background: var(--white);
  color: var(--blue-dark);
  padding: 16px 18px;
  font-family: Raleway, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.button--primary {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--white);
}

.button--light {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--blue-dark);
}

.service-card__button:hover,
.button:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.split img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.split__content {
  display: grid;
  place-content: center;
  padding: clamp(40px, 5vw, 64px);
  text-align: center;
}

.split__content h2 {
  margin: 0 0 16px;
  font-family: Raleway, Arial, sans-serif;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 500;
  line-height: 1.28;
}

.stats {
  grid-template-columns: repeat(6, 1fr);
  text-align: center;
}

.stat__icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(243, 199, 167, 0.72);
  border-radius: 50%;
  color: #f3c7a7;
  font-size: 34px;
}

.stat__number {
  display: block;
  color: #f3c7a7;
  font-size: 38px;
  line-height: 1.1;
  font-weight: 700;
}

.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.doctor-card {
  perspective: 1000px;
  min-height: 460px;
  border-radius: var(--radius);
  cursor: pointer;
}

.doctor-card:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}

.doctor-card__inner {
  position: relative;
  height: 100%;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
}

.doctor-card:hover .doctor-card__inner,
.doctor-card.is-flipped .doctor-card__inner {
  transform: rotateY(180deg);
}

.doctor-card__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(49, 95, 114, 0.08);
  border-radius: var(--radius);
  backface-visibility: hidden;
  box-shadow: var(--shadow-card);
}

.doctor-card__face--back {
  transform: rotateY(180deg);
  padding: 24px;
  justify-content: center;
}

.doctor-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.doctor-card__info {
  padding: 18px 14px 22px;
  text-align: center;
}

.doctor-card__name {
  display: block;
  color: var(--blue-dark);
  font-family: Raleway, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.doctor-card__role {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.bio-row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
  border-top: 1px solid rgba(49, 95, 114, 0.16);
}

.bio-row:first-child {
  border-top: 0;
}

.bio-row img {
  width: 180px;
  border-radius: var(--radius);
  background: var(--sand);
  box-shadow: var(--shadow-soft);
}

.bio-row blockquote {
  margin: 0;
  color: #394751;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

.bio-row h3 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-family: Raleway, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}

.bio-row ul {
  margin: 0 0 28px;
  padding-left: 20px;
}

.question {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.question h3 {
  margin: 0 0 12px;
  font-family: Raleway, Arial, sans-serif;
  font-size: 32px;
  color: var(--blue-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-grid {
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  font-family: Raleway, Arial, sans-serif;
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 300;
  line-height: 1.5;
}

.footer-cta {
  padding-top: clamp(58px, 7vw, 90px);
}

.footer-cta__grid {
  display: grid;
  gap: 34px;
}

.footer-cta h2 {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
  font-family: Raleway, Arial, sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.18;
  text-transform: uppercase;
}

.footer-cta .eyebrow {
  text-align: center;
}

.footer-cta__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer {
  padding: 18px 0;
  background: #1d272d;
  color: #d8d8d8;
  font-size: 12px;
}

.footer__inner {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer a:hover {
  color: #f3c7a7;
}

.cookie {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: 560px;
  display: none;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: rgba(29, 39, 45, 0.98);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  font-size: 14px;
}

.cookie.is-visible {
  display: flex;
}

.cookie button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: var(--copper);
  color: var(--white);
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.56);
}

.modal.is-open {
  display: grid;
}

.modal__panel {
  width: min(100%, 640px);
  background: var(--white);
  padding: 32px;
  border-top: 6px solid var(--copper);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.modal__panel h2 {
  margin: 0 0 12px;
  font-family: Raleway, Arial, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
}

.modal__panel button {
  margin-top: 16px;
  width: auto;
  min-width: 140px;
}

.privacy {
  max-width: 900px;
  margin: 0 auto;
  color: #394751;
}

.privacy h1,
.privacy h2 {
  font-family: Raleway, Arial, sans-serif;
  font-weight: 700;
}

@media (max-width: 920px) {
  .service-grid,
  .doctor-grid,
  .stats,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .bio-row {
    grid-template-columns: 1fr;
  }

  .quick-info__grid,
  .footer-cta .contact-grid {
    grid-template-columns: 1fr;
  }

  .quick-info__grid > div {
    border-left: 0;
    border-top: 1px solid rgba(49, 95, 114, 0.12);
  }

  .quick-info__grid > div:first-child {
    border-top: 0;
  }

  .bio-row img {
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .top-bar__inner {
    justify-content: center;
    gap: 10px 18px;
    padding: 10px 0;
  }

  .nav__inner {
    min-height: 74px;
  }

  .logo {
    width: 190px;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(29, 39, 45, 0.98);
    color: var(--white);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    min-height: 52px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero {
    min-height: auto;
    padding: 96px 0 56px;
  }

  .hero__panel {
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__actions .button,
  .footer-cta__actions .button {
    width: 100%;
  }

  .quick-info {
    margin-top: 0;
  }

  .hero p {
    font-size: 17px;
  }

  .service-grid,
  .doctor-grid,
  .stats,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    min-height: 500px;
  }

  .split img {
    min-height: 300px;
  }

  .split__content {
    padding: 34px 22px;
  }

  .cookie {
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie button {
    width: 100%;
  }

  .footer__inner {
    justify-content: center;
    text-align: center;
  }
}
