/* Harbour Health Partners — site styles
   Palette taken from the clinic logo:
   blue #53a2ca, teal #0c948b, accent #08a6b6 */

:root {
  --blue: #53a2ca;
  --blue-dark: #2c6d92;
  --teal: #0c948b;
  --teal-dark: #06736c;
  --accent: #08a6b6;
  --ink: #1f2a30;
  --ink-soft: #4a5a63;
  --line: #dde5e9;
  --bg: #ffffff;
  --bg-tint: #f2f7f9;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(31, 42, 48, .08), 0 6px 18px rgba(31, 42, 48, .06);
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: 2.1rem; margin: 0 0 .6rem; }
h2 { font-size: 1.55rem; margin: 2.4rem 0 .8rem; }
h3 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; }

p { margin: 0 0 1rem; }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--ink);
  padding: .75rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: .7rem 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 46px; height: 46px; }
.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .1px;
  line-height: 1.2;
}
.brand-tag {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: .3px;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  font: inherit;
  font-size: .95rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .5rem .8rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle:hover { border-color: var(--blue); }

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
}

.nav a, .nav .submenu-toggle {
  display: block;
  padding: .55rem .8rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 600;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.nav a:hover, .nav .submenu-toggle:hover {
  background: var(--bg-tint);
  color: var(--teal-dark);
}
.nav a[aria-current="page"] {
  color: var(--teal-dark);
  box-shadow: inset 0 -3px 0 var(--teal);
}

.nav .has-submenu { position: relative; }
.nav .submenu-toggle::after {
  content: "";
  display: inline-block;
  margin-left: .4rem;
  border: 5px solid transparent;
  border-top-color: currentColor;
  transform: translateY(3px);
}
.nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 232px;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .35rem;
}
.nav .has-submenu .submenu-toggle[aria-expanded="true"] + .submenu { display: flex; }
.nav .submenu a { font-weight: 500; }

.nav-cta {
  background: var(--teal);
  color: #fff !important;
  padding: .55rem 1rem !important;
}
.nav-cta:hover { background: var(--teal-dark); color: #fff !important; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    border-top: 1px solid var(--line);
    padding: .5rem 0 .8rem;
  }
  .header-inner { flex-wrap: wrap; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav .submenu {
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 1rem;
  }
  .nav-cta { text-align: center; margin-top: .4rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: .8rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--teal);
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }

.btn-outline {
  background: #fff;
  color: var(--teal-dark);
}
.btn-outline:hover { background: var(--bg-tint); color: var(--teal-dark); }

/* ---------- Page shell ---------- */

main { display: block; }

.page {
  padding: 2.5rem 0 3.5rem;
}
.page-header {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
  padding: 2.2rem 0;
}
.page-header p { margin: 0; color: var(--ink-soft); max-width: 60ch; }

.prose { max-width: 70ch; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

.note {
  background: var(--bg-tint);
  border-left: 4px solid var(--blue);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }

.guideline { font-size: .9rem; color: var(--ink-soft); }
p.guideline { margin-top: -.4rem; }
li .guideline { display: block; }

/* ---------- Home ---------- */

.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  color: #fff;
  padding: 3.2rem 0;
}
.hero h1 { color: #fff; font-size: 2.4rem; }
.hero p {
  font-size: 1.1rem;
  max-width: 56ch;
  margin-bottom: 1.6rem;
  color: rgba(255, 255, 255, .95);
}
.hero .btn {
  background: #fff;
  color: var(--teal-dark);
  border-color: #fff;
}
.hero .btn:hover { background: rgba(255, 255, 255, .88); color: var(--teal-dark); }
.hero .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .8);
  margin-left: .5rem;
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .15); color: #fff; }

.banner {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
  text-align: center;
}
.banner h2 { margin: 0 0 .2rem; font-size: 1.2rem; }
.banner p { margin: 0; color: var(--ink-soft); }

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split h2 { margin-top: 0; }

.section { padding: 2.8rem 0; }
.section-tint { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin-top: 0; }
.section-lead { color: var(--ink-soft); max-width: 60ch; margin-bottom: 1.6rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.card:hover {
  border-color: var(--blue);
  color: var(--ink);
  transform: translateY(-2px);
  transition: transform .15s ease;
}
.card h3 { margin: 0 0 .4rem; color: var(--teal-dark); font-size: 1.1rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.card .more {
  display: inline-block;
  margin-top: .7rem;
  font-weight: 600;
  font-size: .93rem;
  color: var(--blue-dark);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.contact-card {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-card h2 { margin-top: 0; font-size: 1.3rem; }
.contact-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.contact-list li { margin-bottom: .5rem; }
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-soft); }

.physicians {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .8rem;
}
.physicians li {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  font-weight: 600;
}

/* ---------- Resource links ---------- */

.resource-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.resource-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  background: #fff;
}
.resource-list a { font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.resource-list a:hover { text-decoration: underline; }
.resource-list p { margin: .3rem 0 0; color: var(--ink-soft); font-size: .97rem; }
.ext::after {
  content: " ↗";
  font-size: .85em;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}
.faq-item h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.faq-item p:last-child, .faq-item ul:last-child { margin-bottom: 0; }

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

.site-footer {
  background: var(--ink);
  color: #d8e2e7;
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
  font-size: .95rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}
.site-footer h2 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #fff;
  margin: 0 0 .6rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
  color: #b9c7ce;
  font-size: .88rem;
}
.emergency {
  background: rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  color: #fff;
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  h1 { font-size: 1.75rem; }
  .hero h1 { font-size: 1.95rem; }
  .split { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; }
  .hero .btn-ghost { margin-left: 0; margin-top: .6rem; }
  .hero .btn { display: block; text-align: center; }
}

@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  body { font-size: 12pt; color: #000; }
}

/* ---------- Temporary "under construction" banner ----------
   Delete this block (and the matching markup in each .html file)
   once the site is finished. See README.md. */

.construction {
  background: #fdf3d8;
  border-bottom: 1px solid #e7d08a;
  color: #5a4408;
  text-align: center;
  padding: .7rem 20px;
  font-size: .95rem;
}
.construction p { margin: 0; }
.construction strong { font-weight: 700; }
