/* MSCQ site styles — matches the homepage sample. */

:root {
  --ink: #14213D;        /* navy text and footer */
  --blue: #1E4C9A;       /* seal blue, main accent */
  --gold: #C9A23F;       /* seal gold */
  --light: #F4F6FA;      /* pale band background */
  --light-blue: #DCE6F5;
  --line: #DDE3EC;
  --muted: #4A5568;
  --footer-text: #C9D6EE;
  --overlay: rgba(20, 33, 61, 0.78);
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
}

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: var(--blue); }
a:hover { color: var(--ink); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 72px; padding-bottom: 64px; }
.center { text-align: center; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 14px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Buttons and links */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); padding: 13px 27px; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #b38d2f; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.text-link { font-weight: 600; }

/* Headings */
.display,
.section-title,
.masthead-name,
.president-name,
.tile-title,
.eyebrow,
.footer-label {
  font-family: var(--display);
  text-transform: uppercase;
}
.section-title { margin: 0 0 28px; font-weight: 500; font-size: 1.9rem; letter-spacing: 0.04em; }
.display { margin: 0 0 24px; font-weight: 400; font-size: 2.4rem; line-height: 1.15; letter-spacing: 0.02em; }
.eyebrow { margin: 0 0 6px; font-size: 15px; letter-spacing: 0.08em; color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.topnav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 14px; padding-bottom: 14px;
  font-size: 15px; font-weight: 600;
}
.topnav a { color: var(--ink); text-decoration: none; }
.topnav a:hover { color: var(--blue); }
.topnav-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topnav-actions { display: flex; align-items: center; gap: 18px; }
.topnav-actions .btn-primary { color: #fff; }
.has-sub { position: relative; }
.submenu {
  display: none; position: absolute; top: 100%; left: -16px; z-index: 5;
  list-style: none; margin: 0; padding: 8px 0; min-width: 180px;
  background: #fff; border: 1px solid var(--line);
}
.submenu a { display: block; padding: 8px 16px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { display: block; }
.nav-toggle {
  display: none; min-height: 44px; padding: 0 16px;
  background: #fff; border: 1px solid var(--ink); border-radius: 4px;
  font: inherit; color: var(--ink); cursor: pointer;
}

.masthead { padding: 40px 24px 36px; text-align: center; border-top: 1px solid var(--line); }
.masthead-seal img { width: 112px; height: 112px; margin: 0 auto 18px; }
.masthead-name { margin: 0; font-weight: 500; font-size: 3rem; line-height: 1.1; letter-spacing: 0.02em; }
.masthead-since { margin: 12px 0 0; font-size: 17px; color: var(--muted); }

/* 1. Photo mosaic */
.hero-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-photos figure { position: relative; overflow: hidden; }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; }
.hero-main { flex: 3 1 420px; height: 568px; }
.hero-main img { object-position: center 35%; }
.hero-side { flex: 2 1 320px; display: flex; flex-direction: column; gap: 8px; }
.hero-side figure { height: 280px; }
.photo-tag {
  position: absolute; left: 20px; bottom: 20px;
  background: #fff; color: var(--ink); padding: 8px 14px;
  font-family: var(--display); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
}

/* 2. Intro */
.intro { padding: 56px 24px; text-align: center; }

/* 3. Mission */
.mission { background: var(--light); padding: 64px 24px; text-align: center; }
.mission-text { margin: 0 auto; max-width: 860px; font-family: var(--serif); font-style: italic; font-size: 1.9rem; line-height: 1.35; }
.mission-link { margin: 18px 0 0; font-size: 15px; font-weight: 600; }

/* 4. Tiles */
.tiles { display: flex; flex-wrap: wrap; gap: 16px; }
.tile {
  flex: 1 1 240px; min-height: 260px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none;
}
.tile-body { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; font-size: 16px; line-height: 1.4; }
.tile-title { font-size: 1.6rem; letter-spacing: 0.03em; line-height: 1.2; }
.tile-photo { color: #fff; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform 0.4s ease; }
.tile-photo .tile-body { background: var(--overlay); }
.tile-photo:hover { color: #fff; }
.tile-photo:hover img { transform: scale(1.04); }
.tile-gold { background: var(--gold); color: var(--ink); }
.tile-light { background: var(--light-blue); color: var(--ink); }
.tile-gold:hover, .tile-light:hover { color: var(--ink); filter: brightness(0.97); }

/* 5. President */
.president { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.president-inner { max-width: 1000px; margin: 0 auto; padding: 56px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.president-photo { flex: 0 0 180px; width: 180px; height: 180px; border-radius: 50%; object-fit: cover; }
.president-text { flex: 1 1 360px; min-width: 0; }
.president-name { margin: 0; font-weight: 500; font-size: 1.9rem; text-transform: none; }
.president-text .muted { margin: 4px 0 16px; }
.president-excerpt { margin: 0 0 16px; font-size: 18px; }

/* 6. Events */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.section-head .section-title { margin: 0; }
.events { display: flex; flex-wrap: wrap; gap: 24px; }
.events-photo { flex: 1 1 340px; display: flex; flex-direction: column; gap: 8px; }
.events-photo-frame { flex: 1 1 auto; min-height: 340px; position: relative; overflow: hidden; }
.events-photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.event-list { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.event-card { flex: 1 1 auto; display: flex; border: 1px solid var(--line); }
.event-date {
  flex: 0 0 96px; background: var(--blue); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px 0; font-family: var(--display);
}
.event-month { font-size: 15px; letter-spacing: 0.08em; }
.event-day { font-size: 2.4rem; line-height: 1; }
.event-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.event-title { margin: 0; font-size: 18px; font-weight: 600; }

/* 7. Doctors */
.doctors { background: var(--light); padding: 64px 0; }
.doctor-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 16px; }
.doctor { flex: 0 0 148px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.doctor img { width: 128px; height: 128px; margin-bottom: 12px; border-radius: 50%; object-fit: cover; object-position: center 22%; }
.doctor-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.doctor-role { font-size: 14px; color: var(--muted); line-height: 1.35; margin-top: 4px; }

/* 8. History */
.history { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; padding-bottom: 24px; }
.history > * { flex: 1 1 300px; }
.history-text { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.history-text .section-title { margin: 0; }
.lead { margin: 0; font-size: 18px; }
.history img { width: 100%; height: 260px; object-fit: cover; object-position: center 40%; margin-bottom: 8px; }
.grayscale { filter: grayscale(100%); }

/* 9. Partners */
.partners { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; }
.partners .eyebrow { margin: 0; }
.partner { padding: 14px 28px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.partner:hover { border-color: var(--ink); color: var(--ink); }

/* Footer */
.site-footer { background: var(--ink); color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--footer-text); }
.footer-grid { padding-top: 56px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.footer-brand { flex: 1 1 280px; display: flex; align-items: center; gap: 18px; font-family: var(--display); font-size: 1.3rem; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.03em; }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; }
.footer-col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }
.footer-col address { font-style: normal; }
.footer-label { margin: 0; font-size: 15px; font-weight: 400; letter-spacing: 0.08em; color: var(--footer-text); }
.footer-cta { flex: 0 1 200px; align-items: flex-start; }
.footer-cta .btn-gold { color: var(--ink); }
.footer-bottom { padding-top: 18px; padding-bottom: 28px; border-top: 1px solid #2E3D5C; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--footer-text); }
.footer-bottom a { color: var(--footer-text); }

/* Phones and small tablets */
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .topnav-links { display: none; flex-direction: column; width: 100%; order: 3; gap: 0; }
  .topnav-links.is-open { display: flex; }
  .topnav-links > li > a { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
  .submenu { display: block; position: static; border: 0; padding: 0 0 8px 16px; }
  .masthead-name { font-size: 2rem; }
  .display { font-size: 1.8rem; }
  .mission-text { font-size: 1.4rem; }
  .hero-main { height: 380px; }
  .hero-side figure { height: 240px; }
}

/* ------------------------------------------------------------------
   Inner pages
   ------------------------------------------------------------------ */
.topnav a[aria-current="page"] { color: var(--blue); }
.masthead-small { padding: 24px 24px 20px; }
.masthead-small .masthead-seal img { width: 64px; height: 64px; margin-bottom: 10px; }
.masthead-small .masthead-name { font-size: 1.5rem; }

.page { padding-top: 56px; padding-bottom: 72px; }
.page > .section-title:first-child { margin-bottom: 16px; }
.section-title-sm { font-size: 1.4rem; margin-top: 56px; }
.page-lead { max-width: 760px; margin-bottom: 36px; color: var(--muted); }

/* Events page */
.event-stack { display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.event-card-full .event-date { flex-basis: 110px; }
.event-year { font-size: 14px; letter-spacing: 0.06em; margin-top: 4px; }
.event-details p { margin: 6px 0; }
.is-past { opacity: 0.75; }
.is-past .event-date { background: var(--muted); }

/* Bulletin */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.article-card { display: flex; flex-direction: column; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.article-card:hover { border-color: var(--ink); color: var(--ink); }
.article-card img { width: 100%; height: 180px; object-fit: cover; }
.article-card-body { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.article-card-title { font-weight: 600; font-size: 19px; line-height: 1.3; }
.article-card-summary { font-size: 15px; color: var(--ink); }
.callout { margin-top: 56px; padding: 32px; background: var(--light); }
.callout .section-title-sm { margin-top: 0; margin-bottom: 8px; }

.article { max-width: 780px; }
.article-title { font-family: var(--display); font-weight: 500; font-size: 2.4rem; line-height: 1.15; margin: 8px 0; }
.article-cover { width: 100%; max-height: 460px; object-fit: cover; margin: 24px 0; }
.article-body { font-size: 18px; line-height: 1.65; }
.article-body p { margin: 0 0 1.1em; }
.president-photo-page { margin: 24px 0; }

/* Contact */
.contact-layout { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.contact-info { flex: 1 1 260px; }
.contact-info address { font-style: normal; margin-bottom: 12px; }
.contact-info .eyebrow { margin-top: 24px; }
.contact-form { flex: 2 1 420px; min-width: 0; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; flex: 1 1 220px; }
.field-row { display: flex; flex-wrap: wrap; gap: 0 20px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #b9c3d3; border-radius: 4px; padding: 12px 14px; min-height: 46px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; border-radius: 4px; margin-bottom: 20px; }
.notice p { margin: 0 0 4px; }
.notice-ok { background: #E7F4EC; color: #14532d; }
.notice-err { background: #FDECEC; color: #7f1d1d; }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
