/* ==========================================================================
   Kensington Medical — site styles
   Palette taken from the logo: navy shield, gold trim, slate hands.
   ========================================================================== */

:root {
  --navy: #1b355e;
  --navy-deep: #12253f;
  --navy-soft: #e9eef6;
  --gold: #c5a04a;
  --gold-dark: #a8853a;
  --gold-soft: #f7f0dd;
  --slate: #5f7085;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #5a6875;
  --border: #dfe4ec;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 8px 28px rgba(27, 53, 94, 0.08);
  --container: 1120px;
}

/* --- Base ------------------------------------------------------------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

main { flex: 1; }

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

[hidden] { display: none !important; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--gold-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { left: 1rem; top: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin: 0 0 .6rem;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 58ch; }

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

.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy-soft); color: var(--navy); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #d4b060; color: var(--navy-deep); }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.1); color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 84px;
}
.brand {
  display: inline-flex; align-items: center; gap: .85rem;
  text-decoration: none; color: var(--navy);
}
.brand-logo { height: 64px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: .02em; }
.brand-tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: var(--slate); margin-top: .25rem; }

.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  color: var(--navy); text-decoration: none; font-weight: 500;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: .5rem .85rem; font: inherit; color: var(--navy); cursor: pointer;
}

@media (max-width: 760px) {
  .brand-logo { height: 52px; }
  .brand-name { font-size: 1.15rem; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: .25rem 1.25rem .75rem;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--border); color: var(--gold-dark); }
  .site-nav a:last-child[aria-current="page"] { border-bottom: none; }
}

/* --- Hero (home) ------------------------------------------------------ */

.hero {
  background:
    radial-gradient(60% 80% at 100% 0%, var(--gold-soft) 0%, transparent 60%),
    linear-gradient(180deg, #fbfbfd 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.hero-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
.hero h1 { max-width: 15ch; }
.hero-logo { display: none; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-logo { display: block; justify-self: center; max-width: 380px; }
  .hero-logo img { width: 100%; filter: drop-shadow(0 12px 28px rgba(27, 53, 94, .15)); }
}

/* --- Sections --------------------------------------------------------- */

.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 64ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy-soft); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.card-icon svg { width: 22px; height: 22px; }

.split { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }

.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
  margin-top: .55rem;
}

/* Motto band */
.motto { background: var(--navy); color: #fff; text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.motto blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin: 0 auto 1rem; max-width: 24ch; line-height: 1.3;
}
.motto p { color: rgba(255,255,255,.75); max-width: 60ch; margin: 0 auto; }
.motto .gold-rule { width: 56px; height: 3px; background: var(--gold); margin: 0 auto 1.5rem; }

/* Director teaser (home) */
.teaser {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow);
}
@media (min-width: 760px) { .teaser { grid-template-columns: 220px 1fr; padding: 2rem; } }
.teaser-photo {
  aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
  background: var(--navy-soft); display: grid; place-items: center;
}
.teaser-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* --- Inner page hero -------------------------------------------------- */

.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 60ch; margin: 0; }

/* --- Prose (about) ---------------------------------------------------- */

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.4rem; font-size: 1.55rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.about-layout { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .about-layout { grid-template-columns: 1fr 320px; align-items: start; } }
.aside-card { position: sticky; top: 108px; }
.aside-card .card + .card { margin-top: 1.25rem; }
.fact { margin: 0; }
.fact dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 1rem; }
.fact dt:first-child { margin-top: 0; }
.fact dd { margin: .15rem 0 0; font-weight: 600; color: var(--navy); }

/* --- People ----------------------------------------------------------- */

.people-list { display: grid; gap: 2rem; }
.person {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow);
}
@media (min-width: 800px) { .person { grid-template-columns: 320px 1fr; padding: 2.5rem; } }
.person-photo {
  aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  background: var(--navy-soft); display: grid; place-items: center;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.photo-placeholder { font-family: var(--serif); font-size: 4rem; color: var(--navy); }
.person-role {
  color: var(--gold-dark); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem; margin: 0 0 .5rem;
}
.person h2 { margin-bottom: .35em; }
.person-contact { margin: 0 0 1.25rem; color: var(--muted); }
.person-contact a { font-weight: 600; }

.creds { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.creds li {
  display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; align-items: baseline;
  padding-bottom: .9rem; border-bottom: 1px solid var(--border);
}
.creds li:last-child { border-bottom: none; padding-bottom: 0; }
.cred-year { font-family: var(--serif); font-weight: 600; color: var(--gold-dark); font-variant-numeric: tabular-nums; }
.cred-title { font-weight: 600; color: var(--navy); display: block; }
.cred-detail { color: var(--muted); font-size: .95rem; }

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

.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.dl { margin: 0; }
.dl dt { font-weight: 700; color: var(--navy); margin-top: 1.25rem; }
.dl dt:first-child { margin-top: 0; }
.dl dd { margin: .2rem 0 0; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

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

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.78); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: flex-start; gap: 1rem; }
.footer-brand img { height: 84px; width: auto; background: #fff; border-radius: 10px; padding: 6px; }
.footer-motto { font-family: var(--serif); font-style: italic; color: #fff; font-size: 1.15rem; margin: .25rem 0 .5rem; }
.site-footer h3 {
  color: #fff; font-family: var(--sans); font-size: .82rem;
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: .9rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-links a { text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 2.5rem; padding-top: 1.25rem; font-size: .9rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
}
address { font-style: normal; }

@media (max-width: 420px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 1.05rem; }
}
