:root {
  --primary: #0f766e;
  --primary-dark: #12323f;
  --accent: #d6a843;
  --ink: #202528;
  --muted: #626a70;
  --line: #dce2e0;
  --surface: #f4f7f6;
  --white: #fff;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 78px;
  padding: 10px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(32, 37, 40, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand span,
.footer-brand div {
  display: flex;
  flex-direction: column;
}

.brand strong {
  color: var(--primary-dark);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 17px;
  line-height: 1.25;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

nav {
  display: flex;
  justify-content: center;
  gap: 32px;
}

nav a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: var(--primary);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

.button-primary:hover {
  background: var(--primary-dark);
}

.button-light {
  color: var(--primary-dark);
  background: var(--white);
}

.button-light:hover {
  color: var(--white);
  background: var(--primary);
}

.button-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.button-large {
  min-width: 210px;
  min-height: 54px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(670px, calc(100vh - 78px));
  overflow: hidden;
  color: var(--white);
  background: var(--primary-dark);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(18, 50, 63, 0.92), rgba(18, 50, 63, 0.72) 48%, rgba(18, 50, 63, 0.38)),
    radial-gradient(circle at 76% 22%, rgba(214, 168, 67, 0.2), transparent 26%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(720px, calc(100% - 48px));
  min-height: min(670px, calc(100vh - 78px));
  margin: 0 auto 0 max(24px, calc((100vw - var(--max)) / 2));
  padding: 68px 0 82px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent);
}

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

h1,
h2 {
  font-family: "Libre Baskerville", Georgia, serif;
}

h1 {
  max-width: 720px;
  margin-bottom: 8px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.08;
}

.hero-tagline {
  margin-bottom: 24px;
  color: var(--accent);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(20px, 3vw, 31px);
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

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

.quick-info {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: min(var(--max), calc(100% - 48px));
  margin: -44px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(32, 37, 40, 0.12);
}

.quick-info > div {
  display: flex;
  min-height: 110px;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
}

.quick-info > div + div {
  border-left: 1px solid var(--line);
}

.quick-info p {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.quick-info small {
  color: var(--muted);
  font-size: 12px;
}

.quick-info strong,
.quick-info a {
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.quick-icon,
.service-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.quick-icon svg {
  width: 28px;
  height: 28px;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 104px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-heading h2,
.appointment-section h2,
.contact-copy h2,
.doctor-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.25;
}

.section-heading > p:last-child,
.appointment-section > div > p:last-child {
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-item {
  min-height: 260px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 26px;
  background: #e7f4f2;
  border-radius: 50%;
}

.service-icon svg {
  width: 25px;
  height: 25px;
}

.service-item h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.doctor-section {
  background: var(--surface);
}

.doctor-profile {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 98px 0;
}

.doctor-mark {
  display: grid;
  min-height: 430px;
  place-items: center;
  overflow: hidden;
  background: #eef2ef;
  border: 1px solid var(--line);
}

.doctor-mark img {
  width: min(94%, 540px);
}

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

.doctor-qualification {
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}

.doctor-copy dl {
  margin: 0 0 34px;
  border-top: 1px solid var(--line);
}

.doctor-copy dl div {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.doctor-copy dt {
  color: var(--muted);
  font-size: 13px;
}

.doctor-copy dd {
  margin: 0;
  font-weight: 700;
}

.appointment-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.appointment-section > div {
  max-width: 700px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  background: var(--surface);
}

.contact-copy {
  width: min(100%, calc(var(--max) * 0.58));
  margin-left: max(24px, calc((100vw - var(--max)) / 2));
  padding: 96px 70px 96px 0;
}

address {
  display: flex;
  flex-direction: column;
  margin: 24px 0;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.text-link {
  color: var(--primary);
  font-weight: 700;
}

.map-panel {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--white);
  background: var(--primary-dark);
  text-align: center;
  text-decoration: none;
}

.map-panel strong {
  margin: 20px 0 4px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 28px;
}

.map-panel span:last-child {
  margin-top: 28px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.map-pin-large svg {
  width: 54px;
  height: 54px;
  color: var(--accent);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 32px max(24px, calc((100vw - var(--max)) / 2));
  color: #cbd3d1;
  background: #182126;
  font-size: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-brand span {
  color: #cbd3d1;
}

footer p {
  margin: 0;
  text-align: center;
}

footer > a {
  justify-self: end;
  color: var(--white);
}

.mobile-actions {
  display: none;
}

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

  .header-booking {
    display: none;
  }

  nav {
    position: absolute;
    top: 77px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 22px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  nav.nav-open {
    display: flex;
  }

  nav a {
    padding: 12px 0;
  }

  .menu-button {
    display: block;
  }

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

  .doctor-profile,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
    padding: 78px 0;
  }

  .map-panel {
    min-height: 340px;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 66px;
  }

  .site-header {
    min-height: 68px;
    padding: 8px 18px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 15px;
  }

  nav {
    top: 67px;
  }

  .hero {
    min-height: 610px;
  }

  .hero::after {
    background: rgba(18, 50, 63, 0.82);
  }

  .hero-content {
    width: calc(100% - 36px);
    max-width: calc(100% - 36px);
    min-width: 0;
    min-height: 610px;
    margin: 0 18px;
    padding: 62px 0 72px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-tagline {
    font-size: 21px;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .quick-info {
    grid-template-columns: 1fr;
    width: calc(100% - 36px);
    margin-top: -28px;
  }

  .quick-info > div {
    min-height: 86px;
    padding: 17px 20px;
  }

  .quick-info > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section,
  .doctor-profile {
    width: calc(100% - 36px);
    padding: 72px 0;
  }

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

  .service-item {
    min-height: auto;
    padding: 28px;
  }

  .doctor-profile {
    gap: 28px;
  }

  .doctor-mark {
    min-height: 260px;
  }

  .doctor-copy dl div {
    grid-template-columns: 104px 1fr;
  }

  .appointment-section {
    display: block;
  }

  .appointment-section .button {
    width: 100%;
    margin-top: 20px;
  }

  .contact-copy {
    width: calc(100% - 36px);
    padding: 70px 0;
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-actions .text-link {
    text-align: center;
  }

  .map-panel {
    min-height: 310px;
    padding: 40px 24px;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 34px 18px;
  }

  footer > a {
    justify-self: center;
  }

  .mobile-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    height: 66px;
    max-width: 100vw;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 22px rgba(32, 37, 40, 0.12);
  }

  .mobile-actions a {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-actions a + a {
    border-left: 1px solid var(--line);
  }

  .mobile-actions .mobile-book {
    color: var(--white);
    background: var(--primary);
  }

  .mobile-actions svg {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
