@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #102f45;
  --blue: #1769aa;
  --teal: #0e8f8f;
  --green: #2e8b57;
  --warm: #d96c42;
  --sky: #eef7fb;
  --mint: #edf8f4;
  --surface: #ffffff;
  --surface-alt: #f8fbfd;
  --text: #183246;
  --muted: #5c6f7f;
  --border: #d7e4ec;
  --shadow: 0 18px 38px rgba(16, 47, 69, 0.10);
  --shadow-soft: 0 10px 24px rgba(16, 47, 69, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(14, 143, 143, 0.08) 0 18%, transparent 18% 100%),
    linear-gradient(180deg, #f7fbfc 0%, #ffffff 36%, #f3f8fb 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

a, button, input, select, textarea { transition: all 180ms ease; }

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

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(18, 49, 76, 0.04);
}

.nav-wrap, .footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 17rem;
}

.brand strong, .brand small { display: block; }

.brand-logo {
  width: 58px;
  height: auto;
  display: block;
}

.brand strong { font-size: 1rem; }

.brand small { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }

.brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  font-weight: 800;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  position: relative;
  font-size: 0.93rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: linear-gradient(135deg, var(--sky), #ffffff);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(27, 95, 156, 0.12);
}

.nav-links a.active,
body[data-page="home"] .nav-links a[href="index.html"],
body[data-page="services"] .nav-links a[href="services.html"],
body[data-page="doctors"] .nav-links a[href="doctors.html"],
body[data-page="appointment"] .nav-links a[href="appointment.html"],
body[data-page="location"] .nav-links a[href="location.html"],
body[data-page="support"] .nav-links a[href="support.html"] {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  box-shadow: 0 8px 18px rgba(18, 49, 76, 0.16);
}

.hero-section {
  padding: 2.25rem 0 1.1rem;
}

.page-shell,
.hero-section,
.visual-section {
  padding-bottom: 0.25rem;
}

.hero-grid, .two-column-panel, .section-grid { display: grid; gap: 1.2rem; }

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: stretch;
  gap: 1rem;
}

.hero-copy, .panel-card, .hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-card:hover,
.hero-copy:hover,
.hero-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(18, 49, 76, 0.12);
  border-color: rgba(27, 95, 156, 0.22);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.35rem, 3.4vw, 2.35rem);
  background:
    linear-gradient(135deg, rgba(23, 105, 170, 0.08), transparent 42%),
    #fff;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 700;
  margin: 0 0 0.4rem;
}

h1, h2, h3 { line-height: 1.2; }

h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.55rem);
  margin: 0.25rem 0 0.85rem;
  letter-spacing: 0;
}

h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); margin-top: 0; }

.lede, .page-intro p { color: var(--muted); }

.lede {
  max-width: 43rem;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0 1.15rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
  min-height: 2.85rem;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(18, 49, 76, 0.14);
}

.btn-primary { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; }

.btn-secondary { border-color: var(--border); background: #fff; }

.btn-secondary:hover,
.btn-secondary:focus-visible { background: #f8fbff; border-color: rgba(27, 95, 156, 0.35); }

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}

.feature-pills li {
  background: var(--mint);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  color: var(--navy);
  font-size: 0.95rem;
}

.hero-visual-card {
  overflow: hidden;
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-alt) 100%);
  box-shadow: var(--shadow-soft);
}

.hero-visual-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.hero-visual-copy {
  padding: 1.1rem 1.2rem 1.25rem;
  border-top: 1px solid var(--border);
}

.hero-visual-copy h2 {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  margin-bottom: 0.35rem;
}

.hero-visual-copy p:last-child { color: var(--muted); margin-bottom: 0; }

.hero-card { display: none; }

.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.9rem;
  margin-top: 0.75rem;
}

.stat-card strong { display: block; font-size: 1.45rem; }

.section-grid { grid-template-columns: repeat(3, 1fr); margin-top: 1rem; }

.quick-actions-section { margin: 0.8rem auto 1.6rem; }

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

.quick-action-card {
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-alt) 100%);
}

.action-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.quick-action-card h3 { margin-bottom: 0.35rem; }

.quick-action-card p { color: var(--muted); }

.home-services-section {
  margin: 0.9rem auto 1.5rem;
}

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

.home-service-card {
  display: grid;
  grid-template-rows: 170px 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.home-service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--surface-alt);
}

.home-service-card div {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.95rem 1rem 1.05rem;
}

.home-service-card h3,
.home-service-card p {
  margin: 0;
}

.home-service-card p {
  color: var(--muted);
}

.home-support-band,
.visit-cta {
  display: grid;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.home-support-band {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  margin: 0 auto 1.5rem;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  background:
    linear-gradient(135deg, rgba(14, 143, 143, 0.10), transparent 46%),
    #fff;
}

.home-support-copy h2,
.visit-cta h2 {
  margin-bottom: 0.5rem;
}

.home-support-copy p:last-child,
.visit-cta p {
  color: var(--muted);
  margin-bottom: 0;
}

.home-trust-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-trust-list li {
  position: relative;
  padding: 0.85rem 0.9rem 0.85rem 2.15rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 600;
}

.home-trust-list li::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 1.25rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 3px;
  background: var(--green);
}

.visit-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 auto 2rem;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  background:
    linear-gradient(135deg, rgba(23, 105, 170, 0.10), rgba(255, 255, 255, 0.78)),
    #fff;
}

.visit-cta .cta-row {
  justify-content: flex-end;
  margin: 0;
}

.panel-card { padding: clamp(1rem, 2.2vw, 1.35rem); }

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

.two-column-panel { grid-template-columns: 1.1fr 0.9fr; margin: 1rem auto 1.4rem; }

.location-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 auto 1.2rem;
}

.summary-card { background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%); }

.summary-card h3 { margin: 0.1rem 0 0.25rem; font-size: 1.02rem; }

.summary-card p:last-child { color: var(--muted); margin-bottom: 0; }

.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  background: var(--mint);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
}

.info-boxes { display: grid; gap: 1rem; }

.mini-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.mini-card:hover {
  border-color: rgba(27, 95, 156, 0.25);
  box-shadow: 0 14px 22px rgba(18, 49, 76, 0.10);
}

.mini-card h3 { margin: 0 0 0.2rem; font-size: 1.06rem; }

.mini-card a { color: var(--blue); font-weight: 700; }

.page-shell { padding: 1.55rem 0 2.4rem; }

.page-intro {
  margin-bottom: 1.15rem;
  max-width: none;
}

.page-intro h1,
.page-intro h2 {
  max-width: 52rem;
}

.page-shell > .page-intro {
  width: 100%;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(14, 143, 143, 0.10), rgba(255, 255, 255, 0.78) 48%),
    #fff;
  box-shadow: 0 14px 30px rgba(16, 47, 69, 0.07);
}

.location-intro {
  max-width: none;
  margin-bottom: 1rem;
}

.card-grid { display: grid; gap: 1rem; }

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

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

.service-card,
.doctor-card {
  position: relative;
  overflow: hidden;
}

.service-card::before,
.doctor-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--warm));
}

.service-card h2, .doctor-card h2 { margin-bottom: 0.35rem; }

.service-card p,
.doctor-card p {
  color: var(--muted);
}

.service-grid {
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 100%;
  padding: 0;
}

.service-card img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--surface-alt);
}

.service-card h2,
.service-card p,
.service-card ul {
  margin-left: 1.1rem;
  margin-right: 1.1rem;
}

.service-card h2 {
  margin-top: 0.25rem;
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
}

.service-card p {
  margin-top: 0;
  margin-bottom: 0.1rem;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: auto;
  margin-bottom: 1.1rem;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 0.94rem;
}

.service-card li {
  position: relative;
  padding-left: 1rem;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 3px;
  background: var(--teal);
}

.doctor-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.doctor-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.doctor-photo {
  width: 142px;
  height: 142px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  border: 1px solid rgba(27, 95, 156, 0.18);
  background: linear-gradient(180deg, #eff6fc, #fff);
  box-shadow: 0 12px 24px rgba(18, 49, 76, 0.10);
  flex-shrink: 0;
}

.muted { color: var(--muted); font-weight: 600; }

.appointment-layout { grid-template-columns: 1.1fr 0.9fr; }

.form-card {
  background:
    linear-gradient(180deg, rgba(23, 105, 170, 0.06), transparent 34%),
    #fff;
}

.info-card {
  align-self: start;
  background:
    linear-gradient(135deg, rgba(14, 143, 143, 0.10), rgba(217, 108, 66, 0.08)),
    #fff;
}

.info-card h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.info-card h2::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 3px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(46, 139, 87, 0.14);
}

.appointment-form { display: grid; gap: 0.9rem; }

.appointment-form label { display: grid; gap: 0.35rem; font-weight: 600; color: var(--navy); }

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 0.85rem;
  font: inherit;
  background: var(--surface-alt);
  box-shadow: inset 0 1px 2px rgba(18, 49, 76, 0.04);
}

.appointment-form input:focus-visible,
.appointment-form select:focus-visible,
.appointment-form textarea:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(27, 95, 156, 0.12), inset 0 1px 2px rgba(18, 49, 76, 0.04);
  background: #fff;
}

.status-note {
  min-height: 1.2em;
  color: var(--green);
  font-weight: 700;
  margin: 0;
}

.check-list {
  padding-left: 1.1rem;
  color: var(--muted);
}

.check-list li { margin-bottom: 0.45rem; }

.location-layout { grid-template-columns: 1fr 1fr; gap: 1rem; }

.map-box {
  border: 1px dashed var(--border);
  border-radius: 8px;
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background:
    linear-gradient(90deg, rgba(23, 105, 170, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 105, 170, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #f7fbff, #edf4fb);
  background-size: 28px 28px, 28px 28px, auto;
  text-align: center;
  padding: 1rem;
}

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; color: var(--muted); }

.visual-section { margin-bottom: 2rem; }

.visual-gallery .visual-card {
  overflow: hidden;
  padding: 0;
}

.visual-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.visual-card h3,
.visual-card p {
  padding: 0 1rem;
}

.visual-card h3 { margin: 0.9rem 0 0.2rem; }

.visual-card p { color: var(--muted); padding-bottom: 1rem; }

.support-visual-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.support-visual-card img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  min-height: 220px;
  max-height: 320px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--navy);
  color: #fff;
}

.site-footer p { margin: 0; color: rgba(255, 255, 255, 0.78); }

@media (max-width: 980px) {
  .hero-grid, .two-column-panel, .section-grid, .three-up, .two-up, .appointment-layout, .location-layout, .support-visual-card { grid-template-columns: 1fr; }
  .quick-action-grid { grid-template-columns: repeat(2, 1fr); }
  .location-summary-grid { grid-template-columns: 1fr; }
  .home-service-grid { grid-template-columns: 1fr; }
  .home-support-band,
  .visit-cta { grid-template-columns: 1fr; }
  .visit-cta .cta-row { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .nav-wrap, .footer-wrap { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .nav-links {
    justify-content: flex-start;
    gap: 0.35rem;
    width: 100%;
    padding-bottom: 0.15rem;
  }
  .nav-links a { padding: 0.45rem 0.55rem; }
  .brand { align-items: flex-start; }
  .brand small { max-width: 18rem; }
  .hero-section { padding-top: 1.2rem; }
  .hero-copy { padding: 1rem; }
  .cta-row { gap: 0.5rem; }
  .hero-visual-card img { height: 220px; }
  .home-service-card { grid-template-rows: 160px 1fr; }
  .quick-action-grid { grid-template-columns: 1fr; }
  .doctor-head { align-items: center; }
  .doctor-photo { width: 104px; height: 104px; }
  .section-label-row { align-items: flex-start; flex-direction: column; }
  .service-card img { height: 136px; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 1rem, 1160px); }
  .brand { min-width: 0; }
  .brand-logo { width: 50px; }
  .nav-links a { font-size: 0.86rem; }
  .btn { width: 100%; }
  .doctor-head { flex-direction: column; }
  .doctor-photo { width: 100%; height: 220px; }
}
