/* Niddrie Clinic — medical blue, white, red */

:root {
  --ink: #123a6b;
  --teal: #1a5fad;
  --teal-mid: #2470c4;
  --aqua: #3d8fd4;
  --accent: #d32f2f;
  --accent-deep: #b71c1c;
  --fog: #e8f1fa;
  --mist: #f5f9fc;
  --line: #c5d6e8;
  --muted: #5a7390;
  --white: #fff;
  --max: 1120px;
  --display: "Outfit", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --shadow: 0 18px 42px rgba(18, 58, 107, 0.16);
  --radius: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-mid); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.45em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 2.4rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-teal { background: var(--teal); color: var(--white); }
.section-teal h2, .section-teal h3 { color: var(--white); }
.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.lede { font-size: 1.08rem; color: var(--muted); max-width: 40rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--body); font-weight: 800; font-size: 0.95rem;
  padding: 0.9rem 1.4rem; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--white); box-shadow: 0 10px 24px rgba(211, 47, 47, .28); }
.btn-accent:hover { background: var(--accent-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: var(--white); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-mid); color: var(--white); }
.btn-block { width: 100%; }

.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.75rem;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink);
}
.brand img { height: 48px; width: auto; background: var(--white); border-radius: 3px; padding: 4px 6px; }
.brand-text { font-family: var(--display); font-weight: 800; font-size: 1.1rem; line-height: 1.1; }
.brand-text span {
  display: block; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-mid);
}
.nav-desktop { display: none; align-items: center; gap: 0.15rem; }
.nav-desktop a {
  color: var(--ink); text-decoration: none; font-weight: 700;
  font-size: 0.88rem; padding: 0.5rem 0.65rem; border-radius: var(--radius);
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] {
  color: var(--teal); background: var(--fog);
}
.header-cta { display: none; align-items: center; gap: 0.7rem; }
.header-phone { color: var(--ink); font-weight: 800; text-decoration: none; font-size: 0.9rem; }
.header-phone:hover { color: var(--accent); }
.nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); background: transparent;
  color: var(--ink); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-mobile {
  display: none; background: var(--white); border-top: 1px solid var(--line);
  padding: 1rem 1.2rem 1.4rem;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block; color: var(--ink); text-decoration: none; font-weight: 700;
  padding: 0.8rem 0; border-bottom: 1px solid var(--line);
}
.nav-mobile .btn-ghost { color: var(--teal); border-color: var(--teal); }
.nav-mobile .btn { margin-top: 1rem; width: 100%; }
@media (min-width: 920px) {
  .nav-desktop, .header-cta { display: flex; }
  .nav-toggle { display: none; }
  .brand img { height: 54px; }
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(88vh, 820px);
  background: #0c2d56;
  color: var(--white);
  overflow: hidden;
}
.hero-copy-pane {
  display: grid;
  align-items: center;
  padding: clamp(1.8rem, 4.5vw, 3.2rem) clamp(1.2rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 70% 55% at 0% 0%, rgba(61, 143, 212, 0.35), transparent 55%),
    linear-gradient(165deg, #0e3a72 0%, #0c2d56 48%, #091f3d 100%);
}
.hero-copy-inner { max-width: 36rem; width: min(100%, 36rem); margin-inline: auto 0; }
.hero-photo-pane {
  position: relative;
  min-height: 42vh;
  background: #d6e4f2;
  overflow: hidden;
}
.hero-photo-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-photo-pane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 31, 61, 0.22) 0%, transparent 18%);
  pointer-events: none;
}
@media (min-width: 900px) {
  .hero-split {
    grid-template-columns: minmax(360px, 0.95fr) minmax(380px, 1.1fr);
    min-height: min(86vh, 780px);
  }
  .hero-photo-pane { min-height: 100%; }
  .hero-photo-pane img { object-position: center 10%; }
  .hero-photo-pane::after {
    background: linear-gradient(90deg, rgba(9, 31, 61, 0.35) 0%, transparent 22%);
  }
}
@keyframes drift {
  from { transform: scale(1.01); }
  to { transform: scale(1.05) translate(-0.4%, -0.3%); }
}
.hero-brand {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  letter-spacing: -0.04em; line-height: 0.92; margin: 0 0 0.3em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
  animation: rise .75s ease both;
}
.hero-brand em { font-style: normal; color: #ffd0d0; }
.hero h1 {
  color: #fff; font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  font-weight: 650; max-width: 26ch; margin-bottom: 0.55rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
  animation: rise .75s ease .08s both;
}
.hero-copy {
  max-width: 34rem; color: #f2f7fc; margin-bottom: 1.1rem;
  font-weight: 500;
  animation: rise .75s ease .12s both;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem;
  animation: rise .75s ease .16s both;
}
.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.hero-hours {
  animation: rise .75s ease .22s both;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  padding: 0.9rem 1.05rem 1rem;
  backdrop-filter: blur(6px);
}
.hero-hours-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb4b4;
}
.hours-grid-hero {
  max-width: none;
  gap: 0;
}
.hours-grid-hero div {
  border-bottom-color: rgba(255, 255, 255, 0.28);
  padding: 0.45rem 0;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 650;
}
.hours-grid-hero div:last-child { border-bottom: 0; }
.hours-grid-hero span {
  color: #e8f1fa;
  font-weight: 700;
}
.trust-pills { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  padding: 0.4rem 0.75rem; border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 700; color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,58,107,.3), rgba(18,58,107,.88));
}
.hero-content { position: relative; z-index: 1; padding: 5rem 0 2.2rem; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.quickbar { background: var(--teal); color: var(--white); }
.quickbar .wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-block: 1.25rem;
}
.qb b { display: block; font-size: 0.95rem; }
.qb small { color: rgba(255,255,255,.78); font-size: 0.78rem; }
@media (min-width: 800px) {
  .quickbar .wrap { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr .95fr; gap: 3.2rem; }
  .split.reverse > :first-child { order: 2; }
}
.media-frame {
  overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--teal);
}
.media-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.media-frame.wide img { aspect-ratio: 16/10; }

.feature-row { display: grid; gap: 1.4rem; }
@media (min-width: 800px) { .feature-row { grid-template-columns: repeat(3, 1fr); gap: 1.8rem; } }
@media (min-width: 900px) { .feature-row.four { grid-template-columns: repeat(4, 1fr); } }
.feature-num {
  font-family: var(--display); font-weight: 800; font-size: 1.8rem;
  color: var(--aqua); line-height: 1; margin-bottom: 0.4rem;
}
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; }

.service-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service {
  position: relative; min-height: 260px; overflow: hidden;
  border-radius: var(--radius); color: var(--white); isolation: isolate;
}
.service img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2; transition: transform .45s ease;
}
.service:hover img { transform: scale(1.05); }
.service::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 25%, rgba(6,30,36,.92) 100%);
}
.service-body { position: absolute; inset: auto 0 0 0; padding: 1.2rem; }
.service-body h3 { color: var(--white); font-size: 1.2rem; margin-bottom: .2em; }
.service-body p { color: rgba(255,255,255,.82); font-size: .9rem; margin: 0; }

.doctor-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .doctor-grid { grid-template-columns: 1fr 1fr; } }
.doctor {
  display: grid; gap: 1rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 560px) { .doctor { grid-template-columns: 160px 1fr; } }
.doctor img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.doctor-body { padding: 1.2rem 1.2rem 1.4rem; }
.doctor-body h3 { margin-bottom: .2em; }
.doctor-body .langs { font-size: .82rem; font-weight: 700; color: var(--aqua); margin-bottom: .6rem; }
.doctor-body p { color: var(--muted); margin: 0; font-size: .95rem; }

.hours-grid {
  display: grid; gap: .55rem; max-width: 28rem;
}
.hours-grid div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line); font-weight: 700;
}
.hours-grid span { color: var(--muted); font-weight: 600; }

.page-hero {
  position: relative; min-height: 38vh; display: grid; align-items: end;
  color: var(--white); overflow: hidden; background: var(--teal);
}
.page-hero .hero-media::after {
  background: linear-gradient(180deg, rgba(6,30,36,.25), rgba(6,30,36,.88));
}
.page-hero .hero-content { padding: 5rem 0 2.2rem; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3.1rem); max-width: 14ch; }

.cta-band {
  background:
    linear-gradient(120deg, rgba(10,61,74,.94), rgba(6,30,36,.92)),
    url("../assets/images/clinic-exterior.jpg") center/cover;
  color: var(--white); text-align: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.7rem, 3.8vw, 2.5rem); }
.cta-band p { color: rgba(255,255,255,.88); max-width: 34rem; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.4rem; }

.form-panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 1.9rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: .9rem; }
.field label { display: block; font-weight: 800; font-size: .85rem; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line);
  border-radius: var(--radius); font: inherit; background: var(--mist); color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: 0; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(26,138,154,.2);
}
.form-status {
  padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem;
  font-weight: 700; font-size: .92rem;
}
.form-status.ok { background: #e5f6ef; color: #0d5c3d; }
.form-status.err { background: #fde8e2; color: #8a2a10; }
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.info-block strong { display: block; margin-bottom: .2rem; }
.info-block p { color: var(--muted); }

.amenity-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .9rem;
}
.amenity-list li {
  font-weight: 700; font-size: .92rem;
  padding-left: 1rem; position: relative;
}
.amenity-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; background: var(--accent); border-radius: 1px;
}

.site-footer {
  background: var(--ink); color: rgba(255,255,255,.78); padding: 3.2rem 0 1.8rem;
}
.footer-grid { display: grid; gap: 1.8rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: .8rem; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #9fd0f5; }
.site-footer li { margin-bottom: .4rem; }
.footer-brand {
  font-family: var(--display); font-weight: 800; font-size: 1.35rem;
  color: var(--white); margin-bottom: .55rem;
}
.footer-bottom {
  margin-top: 2.2rem; padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .7rem; justify-content: space-between; font-size: .84rem;
}

.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr; gap: .45rem;
  padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(18,58,107,.97); border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-bar .btn { padding: .8rem .4rem; font-size: .88rem; }
@media (min-width: 920px) { .mobile-bar { display: none; } }
body.has-mobile-bar { padding-bottom: 4.8rem; }

.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in { opacity: 1; transform: none; }
.text-center { text-align: center; }
.section-white { background: var(--white); }
.mt { margin-top: 1.5rem; }
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; padding: .55rem .8rem; font-weight: 800;
}
.skip-link:focus { top: 12px; color: #fff; }
.section-teal .eyebrow { color: #ffc9c9; }
.section-teal .feature p { color: rgba(255,255,255,.78); }
.section-teal .feature-num { color: #9fd0f5; }
.quote {
  margin: 0; max-width: 38rem;
  font-family: var(--display); font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.35; letter-spacing: -.02em;
}
.quote footer {
  margin-top: 1rem; font-family: var(--body); font-size: .85rem;
  font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.map-embed {
  width: 100%; min-height: 280px; border: 0; border-radius: var(--radius); margin-top: 1.2rem;
}
.thanks { min-height: 52vh; display: grid; align-content: center; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo-pane img, .hero-brand, .hero h1, .hero-copy, .hero-actions, .trust-pills, .reveal {
    animation: none !important; transition: none !important; opacity: 1; transform: none;
  }
}
