/* ==========================================================================
   2Garrisons.com — shared stylesheet
   Father-and-son tech services, Lake County FL. Audience: 65+.

   THE AUDIENCE DRIVES EVERY CHOICE BELOW. Not taste:
     - 19px base body text (brief floor was 18px), 1.65 line height
     - every interactive target at least 48px tall
     - visible focus rings, never removed
     - contrast pairs checked against WCAG AA, and the brief's bright orange
       DARKENED because white-on-bright-orange fails for button text
     - zero webfonts: Georgia and system-ui are already on the device, so a
       slow rural connection or an old iPad never renders a blank page
   ========================================================================== */

:root {
  --navy:        #10243f;
  --navy-soft:   #1d3a5f;
  --warm-white:  #fdfbf7;
  --cream:       #f5efe4;
  --cream-deep:  #ece2d0;
  --ink:         #1f2a37;
  --ink-soft:    #45505f;
  --sky:         #1d5f8f;   /* 5.3:1 on warm white */
  --sky-light:   #e8f1f8;
  --orange:      #b35309;   /* darkened from the brief: 4.9:1 behind white text */
  --orange-dark: #8f4207;
  --rule:        #ddd3c4;
  --shadow:      0 2px 10px rgba(16, 36, 63, 0.08);
  --radius:      10px;
  --measure:     34rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.65;
}

h1, h2, h3, .serif {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5.5vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.4rem); }

p { margin: 0 0 1.1em; max-width: var(--measure); }

a { color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1100px; margin-inline: auto; padding-inline: 20px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--navy); color: #fff; padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ── Header: the phone number is the most important element on the page ──
   It is FIRST in DOM order inside the bar so a screen-reader user and a
   keyboard user both reach it before the navigation. */

.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 5px solid var(--orange);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-block: 14px;
}

.brand {
  display: flex; align-items: baseline; gap: 10px;
  font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700;
  color: #fff; text-decoration: none; margin-right: auto;
}
.brand span { color: var(--cream-deep); font-size: 0.95rem; font-family: system-ui, sans-serif; font-weight: 400; }

.phone-cta {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 10px 22px;
  background: var(--orange); color: #fff;
  font-size: 1.22rem; font-weight: 700; letter-spacing: 0.01em;
  border-radius: var(--radius); text-decoration: none;
  box-shadow: var(--shadow);
}
.phone-cta:hover, .phone-cta:focus { background: var(--orange-dark); color: #fff; }
.phone-cta .label { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; opacity: 0.92; }

/* PLACEHOLDER, deliberately conspicuous — see README. Nothing ships with this visible. */
.needs-value {
  background: #ffe9b8; color: #6b4a00;
  border-bottom: 2px dotted #b07c00; padding: 0 4px; font-weight: 700;
}

.site-nav { width: 100%; border-top: 1px solid rgba(255,255,255,0.18); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 6px 0 10px; }
.site-nav a {
  display: block; min-height: 48px; padding: 12px 16px;
  color: var(--cream); text-decoration: none; font-weight: 600; border-radius: 8px;
}
.site-nav a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.site-nav a[aria-current="page"] { background: #fff; color: var(--navy); }

/* ── Sections ── */

main { display: block; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy a { color: #cfe4f3; }

.lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 36rem; }

.hero { padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; } }
.hero h1 { margin-bottom: 0.5em; }
.hero .lede { font-size: 1.28rem; color: var(--ink); }

.photo-slot {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(45deg, var(--cream) 0 14px, var(--cream-deep) 14px 28px);
  border: 2px dashed #b9a98e;
  border-radius: var(--radius);
  display: grid; place-items: center; padding: 1.5rem;
}
.photo-slot p { max-width: 24rem; text-align: center; color: #6b5c45; font-size: 0.98rem; margin: 0; }

/* The hero photograph. width/height are on the element so the browser reserves the box before the
   image arrives — no layout shift on a slow connection, which is the one most likely to be in use
   here. aspect-ratio keeps that box correct as the column narrows. */
.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 896;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(16, 36, 63, 0.14);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 12px 28px;
  font-size: 1.1rem; font-weight: 700; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover, .btn-primary:focus { background: var(--orange-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover, .btn-secondary:focus { background: var(--navy); color: #fff; }
.btn-on-navy { background: #fff; color: var(--navy); }
.btn-on-navy:hover, .btn-on-navy:focus { background: var(--cream); color: var(--navy); }

/* ── Cards ── */

.cards { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4em; }
.card p { margin-bottom: 0; font-size: 1.02rem; color: var(--ink-soft); }
.card .icon { font-size: 2rem; line-height: 1; margin-bottom: 0.6rem; }

/* A deliberate full-width highlight. Added for Custom PC Builds: a seventh card in a 3-up grid
   would otherwise sit alone in its own row, which reads as a layout accident rather than emphasis. */
.card-feature {
  grid-column: 1 / -1;
  border-left: 6px solid var(--orange);
  display: grid; gap: 0.4rem 2rem; align-items: start;
}
@media (min-width: 760px) { .card-feature { grid-template-columns: 1fr auto; } }
.card-feature .feature-price {
  font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700;
  color: var(--orange-dark); white-space: nowrap;
}
.card-feature .feature-price small { display: block; font-family: system-ui, sans-serif; font-size: 0.9rem; font-weight: 400; color: var(--ink-soft); white-space: normal; }
.card-feature p { grid-column: 1 / -1; }

/* ── Service menu ── */

.service-group { margin-top: 2.5rem; }
.service-group > h2 { border-bottom: 3px solid var(--orange); padding-bottom: 0.35em; }

.service-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }

.service {
  background: #fff; border: 1px solid var(--rule); border-left: 6px solid var(--sky);
  border-radius: var(--radius); padding: 1.25rem 1.4rem;
  display: grid; gap: 0.5rem 1.5rem; box-shadow: var(--shadow);
}
@media (min-width: 720px) {
  .service { grid-template-columns: 1fr auto auto; align-items: center; }
}
.service-name { font-weight: 700; font-size: 1.1rem; color: var(--navy); font-family: Georgia, serif; }
.service-desc { grid-column: 1 / -1; margin: 0; font-size: 1rem; color: var(--ink-soft); max-width: 52rem; }
.service-price { font-size: 1.1rem; font-weight: 700; color: var(--orange-dark); white-space: nowrap; }
.service .btn { min-height: 48px; padding: 10px 20px; font-size: 1rem; }

/* ── Plan ── */

.plan {
  background: #fff; border: 3px solid var(--navy); border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 6px 24px rgba(16,36,63,0.12);
}
.plan-price { font-family: Georgia, serif; font-size: clamp(2.6rem, 8vw, 3.6rem); color: var(--navy); line-height: 1; }
.plan-price small { font-size: 1.05rem; font-family: system-ui, sans-serif; color: var(--ink-soft); font-weight: 600; }

.ticks { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1rem; }
.ticks li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; align-items: start; font-size: 1.08rem; }
.ticks .tick { color: var(--orange); font-weight: 700; font-size: 1.4rem; line-height: 1.2; }
.ticks strong { color: var(--navy); }

/* ── Form ── */

.form-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); box-shadow: var(--shadow); max-width: 40rem; }
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; font-size: 1.05rem; }
.field .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.98rem; margin-top: 0.1rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font-size: 1.05rem; font-family: inherit; color: var(--ink);
  background: #fff; border: 2px solid #9aa6b4; border-radius: 8px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.required { color: var(--orange-dark); }

.form-note { background: var(--sky-light); border-left: 5px solid var(--sky); padding: 1rem 1.25rem; border-radius: 8px; font-size: 1rem; }
.form-note p { margin: 0; max-width: none; }

.thanks {
  background: #e8f6ec; border: 2px solid #2f7d4f; border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.thanks h2 { color: #1d5133; margin-bottom: 0.3em; }

/* The failure counterpart to .thanks — shown on ?error=1. */
.oops { background: #fdecea; border: 2px solid #b3261e; border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.oops h2 { color: #8c1d18; margin-bottom: 0.3em; }
.oops p { margin-bottom: 0; }

/* Honeypot. Off-screen rather than display:none — some bots skip hidden fields, and this one is
   meant to be filled. aria-hidden + tabindex="-1" in the markup keep it away from real users. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks p { margin-bottom: 0; }
[hidden] { display: none !important; }

/* ── Trust strip ── */

.trust { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 720px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust div { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.trust strong { display: block; color: var(--navy); font-family: Georgia, serif; font-size: 1.1rem; }
.trust span { color: var(--ink-soft); font-size: 1rem; }

/* ── Footer ── */

.site-footer { background: var(--navy); color: var(--cream); padding-block: 2.5rem; margin-top: 0; }
.site-footer a { color: #cfe4f3; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.5em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer p { font-size: 1rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.2); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.95rem; color: #bfd0e0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media print { .site-nav, .phone-cta, .btn { display: none; } }
