/* Family First Community – shared styles.
   Page sections use inline styles from the mockup; site-wide parts live here. */
:root {
  --navy: #0e3a5c;
  --blue: #0b69a5;
  --ink: #1f3447;
  --muted: #4a5d6e;
  --sun: #f8c04e;        /* warm accent for primary actions (navy text on it: 7.1:1) */
  --sun-hover: #f0a92a;
  /* spacing system: one set of values every page shares */
  --sec: clamp(36px, 4vw, 56px);       /* standard section */
  --sec-md: clamp(30px, 3.5vw, 46px);
  --sec-sm: clamp(26px, 3vw, 36px);
  --sec-lg: clamp(40px, 4.5vw, 60px);
  --hero-top: clamp(28px, 3.5vw, 44px);
  --hero-bot: clamp(32px, 4vw, 52px);
  --hero-top-lg: clamp(38px, 4.5vw, 60px);
  --hero-bot-lg: clamp(44px, 5vw, 68px);
  --split-gap: 40px;                   /* between image and text columns */
  --block-gap: 22px;                   /* between a heading block and its content */
  --card-pad: 22px;
  --panel-pad: clamp(20px, 3vw, 36px);
  --figure-h: clamp(240px, 26vw, 360px);
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Fraunces', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { overflow-wrap: normal; word-break: normal; }
@media (max-width: 700px) {
  :root { --sec: 32px; --sec-md: 28px; --sec-lg: 36px; --split-gap: 26px; --block-gap: 18px; --card-pad: 20px; }
}

/* two white sections in a row: don't double the gap between them */
main section[style*="background: #ffffff"] + section[style*="background: #ffffff"] { padding-top: 0 !important; }

/* primary buttons */
.btn-primary { transition: background-color .15s, transform .15s; }
.btn-primary:hover { background: var(--sun-hover) !important; border-color: var(--sun-hover) !important; color: var(--navy) !important; }
.btn-primary:active { transform: translateY(1px); }

/* visible keyboard focus everywhere (amber ring on dark areas) */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.site-footer :focus-visible, .topbar :focus-visible, section[style*="#0f6496"] :focus-visible { outline-color: var(--sun); }

/* top bar */
.topbar {
  background: var(--navy); color: #fff; padding: 10px 20px;
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-align: center;
}
.topbar-sub { color: #cfe8f1; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid #d6e8f1; padding: 14px 20px; position: relative; }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 56px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 20px; }
.brand-sub { font-size: 13px; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 16px; font-weight: 600; }
.main-nav a { color: var(--navy); text-decoration: none; padding: 6px 0; }
.main-nav a.active { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
.main-nav a:hover { color: var(--blue); }
.main-nav .nav-cta {
  background: var(--sun); color: var(--navy); padding: 12px 22px; border-radius: 999px;
  min-height: 44px; display: inline-flex; align-items: center; box-shadow: none;
}
.main-nav .nav-cta:hover, .main-nav .nav-cta.active { background: var(--sun-hover); color: var(--navy); box-shadow: none; }
.menu-toggle {
  display: none; background: none; border: 0; color: var(--navy); cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px;
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff;
    border-bottom: 1px solid #d6e8f1; box-shadow: 0 12px 24px rgba(14, 58, 92, .10); padding: 8px 20px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid #eef3f6; }
  .main-nav a.active { box-shadow: none; }
  .main-nav .nav-cta { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .brand-name { font-size: 18px; }
}

/* footer */
.site-footer { border-top: 4px solid var(--sun); background: var(--navy); color: #fff; padding: clamp(48px, 5vw, 72px) 20px 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-intro { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.footer-title { font-family: var(--font-head); font-size: clamp(26px, 1vw + 20px, 30px); line-height: 1.2; }
.footer-sub { color: #cfe8f1; max-width: 26em; }
.footer-social { display: flex; gap: 12px; margin-top: 4px; }
.footer-social a, .footer-contact .footer-social a { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.45); color: #fff; display: flex; align-items: center; justify-content: center; line-height: 0; transition: background .15s, border-color .15s; }
.footer-social svg { display: block; }
.footer-social a:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 28px 48px; }
.footer-contact > div { display: flex; flex-direction: column; gap: 6px; }
.footer-follow { flex-basis: 100%; }
@media (min-width: 900px) { .footer-contact { display: grid; grid-template-columns: repeat(3, auto); } .footer-follow { grid-column: 1 / -1; } }
.footer-contact .label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9fd0e0; }
.footer-contact a, .footer-contact span:not(.label) { color: #fff; text-decoration: none; font-size: 18px; font-weight: 600; white-space: nowrap; }
.footer-bottom {
  border-top: 1px solid #2b5778; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; font-size: 14px; color: #cfe8f1;
}
.footer-ack { margin: 0 0 24px; font-size: 15px; color: #cfe8f1; max-width: 52em; line-height: 1.6; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #cfe8f1; }
@media (max-width: 400px) { .footer-contact a { font-size: 16px; } }

/* contact form messages */
.form-msg { border-radius: 12px; padding: 14px 18px; font-weight: 600; }
.form-msg.ok { background: #d2efe4; color: #14532d; }
.form-msg.err { background: #fde8e7; color: #8a1c13; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) { .topbar-sub { display: none; } }

/* home hero: photos above the text once the columns stack */
@media (max-width: 960px) { .hero-photos { order: -1; } }

/* service page photos on tablets: taller crop so heads and faces aren't cut off */
@media (min-width: 601px) and (max-width: 960px) {
  figure.hero-photos img { height: auto !important; aspect-ratio: 16 / 10; max-height: 460px; }
}
