/* =========================================================
   Mt Barker & Balhannah Medical Clinics
   Static site stylesheet — styled to match the original Duda site
   ========================================================= */

:root {
  --blue: #0050c9;        /* primary link/heading/band blue */
  --blue-mid: #0a62bc;    /* secondary band blue (After Hours bar) */
  --blue-dark: #084e96;
  --green: #1ea160;
  --green-dark: #178a51;
  --ink: #333d47;         /* footer / overlay slate */
  --text: #333333;
  --muted: #666666;
  --red: #cc0000;
  --line: #dddddd;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #ffffff;
}

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

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

/* ---------- Header ---------- */

.site-header { background: #fff; position: relative; z-index: 50; }

.header-inner {
  margin: 0 auto; padding: 18px 45px 14px 30px;
  display: flex; align-items: flex-start; gap: 26px;
}

.logo img { height: 148px; width: auto; }

.header-center {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 14px;
  min-width: 0; padding-top: 4px;
}

.nav-toggle {
  display: none; background: none; border: 2px solid var(--blue); border-radius: 6px;
  padding: 8px 10px; cursor: pointer; margin-left: auto;
}
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--blue); margin: 4px 0; border-radius: 2px; }

.site-nav > ul {
  display: flex; flex-wrap: wrap; justify-content: center; list-style: none;
}
.site-nav li { position: relative; }
.site-nav a {
  display: block; padding: 4px 15px; color: var(--blue); text-decoration: none;
  font-size: 16px; font-weight: 700; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--blue-dark); border-bottom-color: var(--blue-dark); }

body[data-page="home"] .nav-home,
body[data-page="services"] .nav-services,
body[data-page="fees"] .nav-fees,
body[data-page="about"] .nav-about,
body[data-page="resources"] .nav-resources,
body[data-page="contact"] .nav-contact,
body[data-page="doctors"] .nav-doctors,
body[data-page="mymedicare"] .nav-mymedicare { border-bottom-color: var(--blue); }

.site-nav .sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; list-style: none; box-shadow: 0 6px 18px rgba(0,0,0,.18);
  border: 1px solid #e4e8ee; z-index: 60; padding: 4px 0; text-align: left;
}
.site-nav .sub a { color: var(--ink); font-weight: 400; padding: 8px 16px; white-space: normal; border-bottom: none; font-size: 15px; }
.site-nav .sub a:hover { background: #f1f4f8; color: var(--blue); }
.site-nav li.open > .sub { display: block; }
@media (hover: hover) {
  .site-nav li.has-sub:hover > .sub { display: block; }
}
.site-nav .caret { font-size: 10px; margin-left: 5px; color: #9aa4ae; }

.mission {
  text-align: center; font-size: 19px; font-style: italic; font-weight: 700;
  color: var(--ink); line-height: 1.4; margin: 0; max-width: 900px;
}

.header-book { display: flex; flex-direction: column; gap: 12px; width: 376px; flex-shrink: 0; padding-top: 6px; }
.btn-book {
  display: flex; align-items: center; justify-content: center; height: 46px;
  background: var(--green); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 17px; text-align: center;
  border-radius: 5px; transition: background .15s ease;
}
.btn-book:hover { background: var(--green-dark); color: #fff; }

.btn {
  display: inline-block; padding: 10px 24px; border-radius: 5px;
  font-size: 16px; font-weight: 600; text-decoration: none; text-align: center;
  transition: background .15s ease;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }

/* ---------- Hero slider + page title band ---------- */

.hero { position: relative; overflow: hidden; }
.hero .slide {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center;
  transition: opacity 1.2s ease;
}
.hero .slide.active { opacity: 1; }
.hero .slide::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.hero::after { content: ""; display: block; padding-top: 28%; }

.page-band { background: var(--blue); padding: 22px 20px; text-align: center; }
.page-band h1 {
  color: #fff; font-size: clamp(30px, 3.2vw, 50px); font-weight: 700; line-height: 1.3;
}

/* full-width sub band (e.g. "Table Of Fees") */
.band-sub { background: var(--blue); padding: 14px 20px; text-align: center; margin: 40px calc(50% - 50vw) 30px; }
.band-sub h2 { color: #fff; font-size: 28px; font-weight: 700; }

/* MyMedicare image hero */
.img-hero { position: relative; overflow: hidden; }
.img-hero img.hero-bg { width: 100%; height: auto; min-height: 260px; object-fit: cover; }
.img-hero .hero-title {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.img-hero .hero-title h1 {
  color: #fff; font-size: clamp(30px, 3.2vw, 50px); font-weight: 700;
  background: rgba(30, 161, 96, .52);
  border: 7px solid #fff; padding: 10px 90px; max-width: 90%;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* ---------- Content layout ---------- */

.section { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.section-wide { max-width: none; padding: 20px 20px 5px; }

.page-body { max-width: 1200px; margin: 0 auto 40px; padding: 34px 20px; }
.page-body h2 { color: var(--blue); font-size: 24px; margin: 28px 0 12px; font-weight: 700; }
.page-body h3 { color: var(--blue); font-size: 18px; margin: 20px 0 8px; font-weight: 700; }
.page-body p { margin: 0 0 14px; }
.page-body ul, .page-body ol { margin: 0 0 16px 26px; }
.page-body li { margin-bottom: 5px; }
.centered { text-align: center; }
h2.upper { text-transform: uppercase; font-size: 20px; }

.note {
  background: #f2f7fd; border-left: 4px solid var(--blue);
  padding: 14px 18px; border-radius: 4px; margin: 18px 0;
}
.notice-box {
  border: 2px solid var(--blue); background: #fff; max-width: 980px;
  margin: 20px auto 30px; padding: 26px 30px;
}
.notice-box .lead-line { font-weight: 700; color: var(--ink); }

.red-note strong, .red-strong { color: var(--red); }

/* ---------- Service tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.tile {
  position: relative; display: block; overflow: hidden;
  text-decoration: none; height: 240px; background-size: cover; background-position: center;
  border: 1px solid #e5e5e5;
}
.tile::before { content: ""; position: absolute; inset: 0; background: rgba(51,61,71,.3); }
.tile span {
  position: absolute; left: 0; right: 0; bottom: 15px; text-align: center;
  color: #fff; font-weight: 700; font-size: 32px;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.tile.label-top span { bottom: auto; top: 12px; }
.tile:hover::before { background: rgba(51,61,71,.15); }

/* ---------- Hours (homepage) ---------- */

.hours-cols {
  max-width: 1200px; margin: 30px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.hours-col { text-align: center; }
.hours-col h3 { color: var(--blue); font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.hours-col .hours-sub { color: var(--blue); font-size: 24px; font-weight: 700; margin-bottom: 12px; }

.hours { width: 100%; max-width: 420px; margin: 0 auto 18px; border-collapse: collapse; }
.hours td { padding: 5px 4px; font-size: 16px; text-align: left; }
.hours td:last-child { text-align: right; }

.hours-col .btn-book { max-width: 280px; margin: 0 auto; height: 42px; font-size: 15px; }

/* ---------- After hours (homepage) ---------- */

.after-section { max-width: 1200px; margin: 40px auto 30px; padding: 0 20px; text-align: center; }
.bar-heading {
  background: var(--blue-mid); color: #fff; font-size: 28px; font-weight: 700;
  text-transform: uppercase; padding: 14px 20px; margin-bottom: 26px;
}
.after-section p { margin: 0 0 18px; }
.em000 { color: var(--red); font-weight: 700; font-size: 26px; }
.after-section a { font-weight: 700; }

/* ---------- Doctors ---------- */

.doctor-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  max-width: 1200px; margin: 30px auto 50px; padding: 0 20px;
}
.doctor-card {
  background: #fff; border: 1px solid #e8e8e8; box-shadow: 0 1px 4px rgba(0,0,0,.08);
  text-align: center; padding-bottom: 16px;
}
.doctor-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center; }
.doctor-card .doc-name { color: var(--blue); font-size: 24px; font-weight: 700; padding: 14px 10px 0; line-height: 1.25; }
.doctor-card .doc-role { font-size: 15px; color: var(--text); padding: 6px 14px 0; }

.doctor-grid.cols-3 { grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; }

a.doctor-card { display: block; text-decoration: none; transition: box-shadow .15s ease; }
a.doctor-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.18); }
a.doctor-card:hover .doc-name { text-decoration: underline; }

/* ---------- Doctor bio pages ---------- */

.bio-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.bio-name { color: var(--blue); font-size: 30px; font-weight: 700; text-align: center; margin: 0 0 8px; }
.bio-quals { text-align: center; font-weight: 700; font-size: 14.5px; color: var(--ink); margin-bottom: 22px; }
.bio-text p { margin: 0 0 14px; }
.bio-si { color: var(--blue); font-size: 19px; font-weight: 700; margin: 26px 0 10px; }
.bio-photo img { width: 100%; }

@media (max-width: 1100px) {
  .bio-grid { grid-template-columns: 1fr; gap: 26px; }
  .bio-photo { order: -1; max-width: 420px; }
}

/* ---------- Two-column page layouts ---------- */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.two-col-wide-right { grid-template-columns: 1fr 1.2fr; }

/* ---------- Fees ---------- */

.policy-grid { display: grid; grid-template-columns: 260px 1fr; gap: 14px 40px; max-width: 900px; margin: 20px auto; }
.policy-grid h3 { color: var(--blue); font-size: 19px; font-weight: 700; margin: 0; }
.policy-grid div p { margin-bottom: 12px; }

.table-wrap { overflow-x: auto; margin: 14px 0 26px; }
table.fees { width: 100%; border-collapse: collapse; min-width: 560px; border: 1px solid #b9c4d8; }
table.fees th {
  background: var(--blue); color: #fff; text-align: left;
  padding: 9px 14px; font-size: 15px;
}
table.fees td { padding: 9px 14px; border: 1px solid #ccd4e4; font-size: 15.5px; background: #fff; }

table.list-table { width: 100%; border-collapse: collapse; border: 1px solid #b9c4d8; margin: 8px 0 24px; }
table.list-table td { padding: 8px 14px; border: 1px solid #ccd4e4; font-size: 15.5px; background: #fff; }
table.list-table .lt-head td { background: #c9c9c9; color: var(--blue); font-weight: 700; }
table.list-table .lt-head-blue td { background: #7ba0ea; color: #fff; font-weight: 700; }

.fees-h { color: var(--blue); font-size: 20px; font-weight: 700; margin: 26px 0 10px; }

/* ---------- Resources ---------- */

.res-bar {
  background: var(--red); color: #fff; padding: 10px 18px; margin: 34px 0 16px;
}
.res-bar h2 { font-size: 26px; font-weight: 700; text-decoration: underline; color: #fff; margin: 0; }
.res-card {
  background: #fff; border: 1px solid #e8e8e8; box-shadow: 0 1px 4px rgba(0,0,0,.08);
  display: grid; grid-template-columns: 230px 1fr; gap: 20px;
  padding: 24px 26px; margin-bottom: 16px;
}
.res-card h3 { color: var(--red); font-size: 18px; font-weight: 700; margin: 0; }
.res-card ul { list-style: none; margin: 0; }
.res-card li { margin-bottom: 12px; }
.res-card .ph { color: var(--text); }

/* ---------- Contact ---------- */

.clinic-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.clinic-col h2 { color: var(--blue); font-size: 28px; margin: 0 0 12px; }
.clinic-col address { font-style: normal; line-height: 1.9; }

.maps { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 10px 0 40px; }
.maps iframe { width: 100%; height: 380px; border: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px 28px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { font-weight: 700; color: var(--blue); display: block; margin-bottom: 6px; font-size: 15.5px; }
.form-grid input, .form-grid textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #e0e0e0; border-radius: 2px;
  font: inherit; background: #ececec;
}
.form-grid input:focus, .form-grid textarea:focus { outline: 2px solid var(--blue); background: #fff; }
.form-grid textarea { min-height: 110px; resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.btn-submit {
  background: #2160c4; color: #fff; border: 0; border-radius: 4px;
  font: inherit; font-weight: 600; font-size: 16px; padding: 10px 60px; cursor: pointer;
}
.btn-submit:hover { background: var(--blue-dark); }
.form-status { font-weight: 600; color: var(--green-dark); margin-top: 12px; }

/* ---------- Lifestyle Medicine ---------- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 10px; }
.pillar { text-align: left; }
.pillar .icon { color: var(--green); margin-bottom: 10px; height: 64px; display: flex; align-items: flex-start; }
.pillar .icon svg { width: 60px; height: 60px; }

.profile { display: grid; grid-template-columns: 280px 1fr; gap: 40px; margin-top: 40px; align-items: start; }
.profile img { width: 100%; }

/* ---------- MyMedicare / MHR ---------- */

.app-badges { display: flex; gap: 16px; margin: 14px 0; flex-wrap: wrap; }
.app-badges img { height: 52px; width: auto; }
.app-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.app-shots img { width: 100%; border: 1px solid #e5e5e5; }

.mhr-intro { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; margin-bottom: 20px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #d7dde3; margin-top: 40px; font-size: 14px; }
.footer-grid {
  max-width: 1200px; margin: 0 auto; padding: 44px 20px 40px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; align-items: start;
}
.footer-left .footer-logo { display: flex; justify-content: center; margin-bottom: 22px; }
.footer-left .footer-logo img { height: 74px; width: auto; }
.footer-addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-addresses h4 { color: #fff; font-size: 15px; margin-bottom: 6px; }
.footer-addresses address { font-style: normal; line-height: 1.9; }
.footer-addresses a { color: #d7dde3; }

.footer-mid { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-mid .agpal { height: 106px; width: auto; border-radius: 50%; }
.footer-mid .flags { display: flex; gap: 4px; }
.footer-mid .flags img { height: 36px; width: auto; }

.footer-right { text-align: right; }
.footer-right .mail-icon { color: #d7dde3; font-size: 22px; text-decoration: none; display: inline-block; margin-bottom: 24px; }
.footer-right .mail-icon:hover { color: #fff; }
.footer-right p { margin-bottom: 6px; }

/* ---------- Mobile ---------- */

@media (max-width: 1280px) {
  .logo img { height: 110px; }
  .header-book { width: 300px; }
}

@media (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; align-items: center; padding: 14px 20px; }
  .nav-toggle { display: block; order: 2; }
  .logo { order: 1; }
  .logo img { height: 64px; }

  .header-center { order: 4; width: 100%; padding-top: 0; }
  .mission { order: -1; font-size: 15px; }

  .header-book { order: 3; width: 100%; flex-direction: row; gap: 10px; padding-top: 10px; }
  .btn-book { flex: 1; font-size: 14px; height: 40px; }

  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; padding: 0; }
  .site-nav a { white-space: normal; border-bottom: none; padding: 10px 12px; }
  .site-nav .sub { position: static; box-shadow: none; border: none; background: #f2f6fb; }
  .site-nav .sub a { padding-left: 30px; }

  .hero::after { padding-top: 45%; }

  .tiles { grid-template-columns: 1fr; }
  .tile span { font-size: 26px; }

  .hours-cols, .two-col, .clinic-cols, .maps, .pillars, .app-shots { grid-template-columns: 1fr; gap: 30px; }
  .doctor-grid, .doctor-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .policy-grid { grid-template-columns: 1fr; gap: 4px 0; }
  .res-card { grid-template-columns: 1fr; gap: 8px; }
  .profile, .mhr-intro { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-right { text-align: center; }
  .footer-addresses { text-align: left; }
  .img-hero .hero-title h1 { padding: 8px 30px; }
}

@media (max-width: 560px) {
  .doctor-grid, .doctor-grid.cols-3 { grid-template-columns: 1fr; }
  .hours-cols { gap: 34px; }
}

@media print {
  .site-nav, .header-book, .nav-toggle { display: none; }
}
