/* =========================================================
   DayBreak OPCO website styles
   ---------------------------------------------------------
   Colors and fonts live in the :root block below. Change a
   value there and it updates everywhere on the site.
   ========================================================= */

:root {
  /* Brand colors (from the DayBreak OpCo letterhead) */
  --ink: #1c2b30;          /* main text */
  --ink-soft: #4b5c61;     /* secondary text */
  --navy: #15343b;         /* brand dark teal: headings, top bar, footer */
  --blue: #1f5866;         /* links and buttons */
  --blue-dark: #15343b;    /* button hover */
  --gold: #b5822c;         /* brand gold: accents */
  --gold-soft: #f7eedd;    /* light gold background */
  --sky: #eef4f5;          /* light teal section background */
  --paper: #ffffff;        /* page background */
  --line: #d5e1e3;         /* borders */
  --focus: #b5822c;        /* keyboard focus ring */

  /* Fonts (Open Sans matches the letterhead) */
  --font-head: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --max: 1120px;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;          /* 18px: easier to read for older visitors */
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 68ch; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Skip link: lets keyboard users jump past the menu */
.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; color: #fff; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, 88px); }
.section--sky { background: var(--sky); }
.section--gold { background: var(--gold-soft); }
.eyebrow {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 0.6em;
}
.lead { font-size: 1.25rem; color: var(--ink-soft); }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* ---------- Placeholder marker (remove class when real content is added) ---------- */
.placeholder-note {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  background: #fff3c4; color: #6b4e00; border: 1px dashed #c9a227;
  padding: 2px 8px; border-radius: 6px; margin-bottom: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--gold-soft); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy); color: #dfe8f1; font-size: 0.95rem; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-block: 8px; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo img { height: 52px; width: auto; }
@media (max-width: 480px) { .logo img { height: 42px; } }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; }
.logo-tag { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.main-nav a:hover { background: var(--sky); }
.main-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.main-nav .btn { margin-left: 8px; color: #fff; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; }
  .main-nav .btn { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #f6f9fc 0%, #fff 100%); }
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; padding-block: clamp(40px, 7vw, 80px); }
.hero p.lead { margin-top: 8px; }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; } }

/* Placeholder photo blocks (swap for <img> tags with real photos) */
.photo {
  aspect-ratio: 4 / 3; width: 100%; border-radius: var(--radius); overflow: hidden;
  background: repeating-linear-gradient(135deg, #e6eef5 0 14px, #edf3f8 14px 28px);
  border: 1px solid var(--line); display: grid; place-items: center; text-align: center;
  color: var(--ink-soft); font-weight: 700; padding: 16px;
}
.photo span { background: rgba(255,255,255,.85); padding: 6px 12px; border-radius: 8px; font-size: 0.95rem; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--headshot { aspect-ratio: 4 / 5; }
.photo--headshot img { object-position: center top; }
.card .role { font-weight: 700; color: var(--blue); margin-bottom: 0.5em; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo:has(img) { padding: 0; background: #e6eef0; }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--gold-soft); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 14px;
}
.icon svg { width: 26px; height: 26px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.check-list li { padding-left: 34px; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Community feature card */
.community-card { display: grid; grid-template-columns: 1fr 1.2fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.community-card .photo { border: 0; border-radius: 0; aspect-ratio: auto; min-height: 280px; }
.community-card .body { padding: clamp(24px, 4vw, 40px); }
@media (max-width: 760px) { .community-card { grid-template-columns: 1fr; } }

/* Quick facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 24px 0; }
.fact { background: var(--sky); border-radius: 12px; padding: 14px 16px; }
.fact b { display: block; font-size: 1.15rem; color: var(--navy); }
.fact span { font-size: 0.92rem; color: var(--ink-soft); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.gallery .photo:first-child { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .photo:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4/3; } }

/* Testimonials */
.quote { background: #fff; border-left: 5px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px; }
.quote blockquote { margin: 0 0 12px; font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); }
.quote cite { font-style: normal; color: var(--ink-soft); font-weight: 600; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 20px 20px 20px 72px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center;
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; color: var(--navy); font-size: 1.1rem; }
.faq details p { margin-top: 0; }

/* CTA band */
.cta-band { background: var(--navy); color: #e8eef5; border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 6px 0 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-size: 0.92rem; color: var(--ink-soft); margin: 4px 0 0; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; min-height: 48px;
  border: 1.5px solid #b9c7d4; border-radius: 10px; background: #fff;
}
textarea { min-height: 130px; resize: vertical; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; }
.checkbox input { width: 22px; height: 22px; min-height: 0; margin-top: 4px; flex: none; }
.form-note { background: var(--sky); border-radius: 10px; padding: 12px 16px; font-size: 0.95rem; }
.hidden-field { position: absolute; left: -9999px; }
.form-message { display: none; padding: 14px 16px; border-radius: 10px; background: #e3f2e6; color: #1d5a2c; font-weight: 600; }
.form-message.is-visible { display: block; }

/* ---------- Page header (inner pages) ---------- */
.page-header { background: var(--sky); padding-block: clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-header p { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d7e1eb; margin-top: 0; font-size: 1rem; }
.site-footer .container { padding-block: 48px 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: 12px; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.9rem; }
.license { color: #fff; font-weight: 700; }
