/* Kerns Fire Consultants: design preview.
   A one-person practice: Bruce speaks for himself, one serif family that sits with
   the logo, the logo's blues, and a few real photos to carry the page. */
:root {
  --navy: #0f2747;
  --blue: #003db1;
  --blue-dark: #002e86;
  --light-blue: #8aacff;
  --tint: #eef2fa;
  --ink: #1b2230;
  --muted: #5a6475;
  --rule: #d9dee6;
  --white: #ffffff;
  --on-navy: #c9d4e6;
  --font: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wide: 68rem;
  --read: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.1875rem/1.7 var(--font); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { color: var(--navy); line-height: 1.18; margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
h3 { font-size: 1.25rem; }
p, ul, ol, dl { margin: 0; }

.wrap { max-width: var(--wide); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.stack { display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
.read { max-width: var(--read); }
.muted { color: var(--muted); }
.small { font-size: 0.95rem; }

/* Preview notice */
.preview { background: var(--tint); color: var(--blue-dark); font-size: 0.9rem; text-align: center; padding: 0.45rem 1rem; border-bottom: 1px solid var(--rule); }

/* Header */
.site-head { background: var(--white); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1rem; }
.brand { display: block; line-height: 0; text-decoration: none; }
.brand .full { height: 3.4rem; width: auto; }
.brand .flame, .brand .name { display: none; }
.site-head .wrap { gap: 0.75rem 1.6rem; }
.brand { margin-right: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.6rem; font-size: 1.05rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--blue); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; }
.site-head .call { color: var(--white); background: var(--blue); text-decoration: none; font-size: 1.05rem; padding: 0.45rem 0.9rem; border-radius: 3px; font-weight: 600; white-space: nowrap; }
.site-head .call:hover { color: var(--white); background: var(--blue-dark); text-decoration: none; }
.site-head .call .short { display: none; }

/* Buttons */
.button { display: inline-block; background: var(--blue); color: var(--white); text-decoration: none; padding: 0.75rem 1.4rem; border-radius: 3px; border: 0; font: 600 1.05rem/1.3 var(--font); cursor: pointer; }
.button:hover { background: var(--blue-dark); color: var(--white); }
.button.light { background: var(--white); color: var(--blue); }
.button.light:hover { background: var(--tint); color: var(--blue-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin-top: 0.4rem; }

/* Sections */
.section { padding-block: clamp(3rem, 2.4rem + 2.5vw, 4.5rem); }
.section + .section { border-top: 1px solid var(--rule); }
.tinted { background: var(--tint); }
.tinted + .section { border-top: 0; }
.head { margin-bottom: 1.75rem; }

/* Intro: text beside a scene photo */
.intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 3rem; align-items: center; }
.intro img, .split img, .tile img, .row img { width: 100%; object-fit: cover; border-radius: 3px; }
.intro img { aspect-ratio: 4 / 3; }
.note { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

/* What I investigate */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 2rem; }
.tile { display: grid; gap: 0.6rem; align-content: start; }
.tile img { aspect-ratio: 16 / 9; }
.tile p { color: var(--muted); font-size: 1.05rem; }
.more { margin-top: 2rem; }

/* Text beside a photo */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: start; }
.split img { aspect-ratio: 4 / 5; }

.motto { font-size: 1.35rem; font-style: italic; color: var(--blue); margin-top: -0.4rem; }

/* Services page rows */
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; align-items: start; padding-block: 2.5rem; border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
.row:first-child { border-top: 0; padding-top: 0; }
.row img { aspect-ratio: 4 / 3; }

.list { padding-left: 1.2rem; display: grid; gap: 0.5rem; }
dl.details { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.5rem; }
dl.details dt { color: var(--muted); }
dl.details dd { margin: 0; }

/* Text Bruce still needs to confirm */
.todo { background: #dde7ff; border-bottom: 2px dotted var(--blue); padding: 0 0.15em; }

/* New loss band */
.band { background: var(--blue); color: var(--white); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding-block: 2.5rem; }
.band h2 { color: var(--white); }
.band p { color: #dbe5ff; }
.band .phone { color: var(--white); font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.3rem); font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Form */
form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.3rem; }
.field label { font-weight: 600; color: var(--navy); font-size: 1rem; }
.field small { color: var(--muted); font-size: 0.9rem; }
.field input, .field textarea { width: 100%; font: 400 1.05rem/1.4 var(--font); color: var(--ink); background: var(--white); border: 1px solid #a9b3c2; border-radius: 3px; padding: 0.6rem 0.7rem; }
.field textarea { min-height: 8rem; resize: vertical; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.sent { background: var(--tint); border-left: 3px solid var(--blue); padding: 1.25rem 1.4rem; display: grid; gap: 0.5rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3.5rem; align-items: start; }
.card { background: var(--tint); border-radius: 3px; padding: 1.5rem; display: grid; gap: 0.6rem; }
.card-title { font-size: 1.4rem; }

/* Footer */
.site-foot { background: var(--navy); color: var(--on-navy); font-size: 1rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem 3rem; padding-block: 2.75rem; }
.site-foot img { height: 3rem; width: auto; margin-bottom: 1rem; }
.site-foot a { color: var(--white); }
.site-foot ul { list-style: none; padding: 0; display: grid; gap: 0.3rem; }
.site-foot .base { flex-basis: 100%; border-top: 1px solid #2a4a76; padding-top: 1.25rem; font-size: 0.9rem; }

@media (max-width: 860px) {
  .intro, .split, .row, .contact-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .split img { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .site-head .wrap { padding-block: 0.8rem; }
  .brand { display: flex; align-items: center; gap: 0.6rem; line-height: 1.2; }
  .brand .full { display: none; }
  .brand .flame { display: block; height: 2.5rem; width: auto; }
  .brand .name { display: block; color: var(--navy); font-size: 1.3rem; font-weight: 600; font-style: italic; }
  .nav { order: 2; flex-basis: 100%; gap: 0.4rem 1.2rem; font-size: 1rem; }
  .site-head .call { padding: 0.4rem 0.75rem; font-size: 0.95rem; }
  .site-head .call .long { display: none; }
  .site-head .call .short { display: inline; }
  .tiles, .pair { grid-template-columns: 1fr; }
  .band .wrap > div:last-child { width: 100%; }
}
