/* ==========================================================================
   Brindle Ridge Volunteer Fire Department
   Shared stylesheet — controls the appearance of every page.

   Everything that controls COLORS, FONTS, and SPACING lives in this one file.
   Change a color here and it changes on all seven pages at once.
   ========================================================================== */

:root {
  --navy:       #1B2A4A;   /* Department navy — masthead, headings */
  --navy-deep:  #142038;   /* Darker navy — navigation bar, footer */
  --gold:       #C9A227;   /* Department gold — the stripe, footer links */
  --ink:        #2A2E35;   /* Body text */
  --ink-soft:   #5A6070;   /* Captions, secondary text */
  --rule:       #D8DCE4;   /* Divider lines */
  --panel:      #EEF1F5;   /* Light background blocks */
  --alert:      #B3261E;   /* Emergency red, and the [PLACEHOLDER] markers */

  --serif: Georgia, 'Times New Roman', serif;
  --sans:  'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--navy); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Masthead ---------------------------------------------------- */

header.masthead {
  background: var(--navy);
  color: #fff;
  padding: 2.25rem 0 1.85rem;
}
.masthead .wrap {
  display: flex;
  gap: 1.35rem;
  align-items: center;
}
.masthead img {
  width: 92px;
  height: auto;
  flex: none;
}
.masthead h1 {
  font-size: 1.7rem;
  line-height: 1.4;
  margin: 0 0 .3rem;
  font-weight: normal;
}
.masthead h1 a {
  color: #fff;
  text-decoration: none;
}
.masthead p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.5;
  color: #BDC6D6;
}

/* ---------- Navigation -------------------------------------------------- */

nav.tabs {
  background: var(--navy-deep);
  border-bottom: 5px solid var(--gold);   /* the apparatus stripe */
  font-family: var(--sans);
}
nav.tabs .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.5rem;
  padding-top: .2rem;
  padding-bottom: .2rem;
}
nav.tabs a {
  display: block;
  color: #C7CFDD;
  text-decoration: none;
  font-size: .88rem;
  padding: .75rem 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}
nav.tabs a:hover { color: #fff; }

/* The current tab is highlighted from the class on the <body> tag, which
   keeps the navigation HTML identical in every file. If you add a page,
   add its pair of lines here too. */
body.p-home      nav.tabs a[href="index.html"],
body.p-mission   nav.tabs a[href="mission.html"],
body.p-apparatus nav.tabs a[href="apparatus.html"],
body.p-join      nav.tabs a[href="join.html"],
body.p-support   nav.tabs a[href="support.html"],
body.p-safety    nav.tabs a[href="safety.html"],
body.p-contact   nav.tabs a[href="contact.html"] {
  color: #fff;
  border-bottom-color: var(--gold);
}

/* ---------- Emergency notice -------------------------------------------- */

.emergency {
  background: var(--panel);
  padding: 1.1rem 0;
}
.emergency .wrap {
  border-left: 5px solid var(--alert);
  padding-left: 1.1rem;
  font-family: var(--sans);
}
.emergency strong {
  display: block;
  font-size: 1.02rem;
  color: var(--alert);
}
.emergency span {
  display: block;
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: .15rem;
}

/* ---------- Page content ------------------------------------------------ */

main { padding-bottom: .5rem; }

main section {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule);
}
main section:last-of-type { border-bottom: none; }

h2 {
  font-size: 1.28rem;
  color: var(--navy);
  margin: 0 0 .8rem;
  font-weight: normal;
}
h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 1.6rem 0 .4rem;
}
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .35rem; }

blockquote.statement {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.25rem;
  border-left: 4px solid var(--gold);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--navy);
}

/* Two-column "label / value" rows, used for contact details */
ul.rows { list-style: none; margin: 0 0 1rem; padding: 0; }
ul.rows li {
  padding: .55rem 0;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 1rem;
  font-size: .97rem;
  margin: 0;
}
ul.rows li:last-child { border-bottom: 1px solid var(--rule); }
ul.rows b { flex: none; width: 8rem; color: var(--navy); }

/* "Where to next" links on the home page */
ul.signpost { list-style: none; margin: 0; padding: 0; }
ul.signpost li {
  padding: .8rem 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}
ul.signpost li:first-child { border-top: none; padding-top: 0; }
ul.signpost li:last-child { border-bottom: 1px solid var(--rule); }
ul.signpost a { font-size: 1.05rem; }
ul.signpost span {
  display: block;
  font-size: .92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- Apparatus entries ------------------------------------------- */

.unit { padding: 1.75rem 0; border-top: 1px solid var(--rule); }
.unit:first-of-type { border-top: none; padding-top: .5rem; }
.unit h3 { margin-top: 0; font-size: 1.15rem; }
.unit .spec {
  font-family: var(--sans);
  font-size: .86rem;
  color: var(--ink-soft);
  margin: -.3rem 0 .8rem;
}

/* ---------- Photo placeholder ------------------------------------------- */
/* Delete a .photo-slot block and paste the <img> tag shown in the comment
   above it once you have the real photograph. */

.photo-slot {
  background: var(--panel);
  border: 2px dashed #AEB7C6;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  margin: 0 0 1.1rem;
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.photo-slot b { display: block; color: var(--navy); margin-bottom: .2rem; }

/* Real photos. Landscape shots fill the column width. */
.unit img, .photo {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 1.1rem;
}

/* Add class="portrait" to any tall photo so it doesn't run the whole
   height of the screen. */
.unit img.portrait, img.portrait {
  width: auto;
  max-width: 100%;
  max-height: 32rem;
}

/* Home page photo — sits flush under the emergency notice */
.hero { margin: 2rem 0 0; }
.hero img { width: 100%; height: auto; display: block; }

/* ---------- Placeholder text marker ------------------------------------- */
/* Anything wrapped in <span class="fill"> shows up red so you can find and
   replace it easily. Remove the span along with the bracketed text. */

.fill {
  color: var(--alert);
  font-family: var(--sans);
  font-size: .9rem;
}

/* ---------- Footer ------------------------------------------------------ */

footer {
  background: var(--navy-deep);
  color: #B9C2D2;
  border-top: 5px solid var(--gold);
  padding: 2rem 0 2.5rem;
  font-size: .92rem;
  line-height: 1.7;
  margin-top: 1.5rem;
}
footer h2 { color: #fff; font-size: 1rem; margin-bottom: .5rem; }
footer a { color: #E4C860; }
footer p { margin-bottom: .9rem; }
footer .legal {
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: .82rem;
  color: #8B95A8;
}
footer .legal .call911 { color: #E58C86; }

/* ---------- Small screens ----------------------------------------------- */

@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 1.15rem; }
  .masthead .wrap { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .masthead img { width: 80px; }
  .masthead h1 { font-size: 1.38rem; }
  nav.tabs .wrap { gap: 0 1.15rem; }
  nav.tabs a { font-size: .84rem; }
  ul.rows li { flex-direction: column; gap: .1rem; }
  ul.rows b { width: auto; }
}
