/* LTS Base: the layout every LTS theme starts from. Mobile first: the rules outside
   media queries are the phone layout; wider screens add columns. Breakpoints
   (templates/THEMES.md): sm 480px, md 768px, lg 1024px, xl 1440px.
   Colours come only from the family tokens (css/colors.css). Themes restyle in
   css/theme.css through the --t-* knobs below, or with their own rules. */

:root {
  /* Theme knobs: a theme changes these first. */
  --t-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --t-font-head: var(--t-font);
  --t-head-weight: 800;
  --t-radius: 12px;
  --t-btn-radius: 8px;
  --t-max: 1180px;
  --t-gutter: 20px;
  --t-space: clamp(48px, 9vw, 88px);   /* vertical space between areas */
  --t-h1: clamp(32px, 7vw, 56px);
  --t-h2: clamp(25px, 4.5vw, 36px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 var(--t-font);
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--t-font-head); font-weight: var(--t-head-weight); line-height: 1.15; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
a { color: var(--primary); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--t-max); margin: 0 auto; padding: 0 var(--t-gutter); }
.narrow > * { max-width: 780px; }   /* a readable line length, still aligned with the other areas */

/* Header: logo and section links. On phones the links wrap under the logo (no
   JavaScript, no hidden menu); from md they sit beside it. */
.site-header { background: var(--surface); border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--text); }
.brand .logo img, img.logo { max-height: 44px; width: auto; }
.brand-name { font-family: var(--t-font-head); font-weight: var(--t-head-weight); font-size: 20px; }
.menu { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 -10px; }
.menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; }
.menu a:hover { color: var(--primary); }

/* Buttons: at least 44px tall; full width on the smallest phones. */
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: var(--t-btn-radius); font-weight: 700; text-decoration: none; background: var(--accent); color: var(--text); border: 2px solid transparent; }
.btn:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); margin-top: 8px; }
.btn-accent { background: var(--accent); color: var(--text); }

/* Hero: text first; the photo (if any) under it on phones, beside it from lg. */
.hero { background: var(--primary); color: #fff; padding: var(--t-space) 0; }
.hero h1, .hero .lede, .hero .eyebrow { color: #fff; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; margin-bottom: 12px; }
.lede { font-size: clamp(17px, 2.4vw, 20px); max-width: 620px; opacity: .95; }
.hero-row { display: grid; gap: 32px; }
.hero-media .photo img { border-radius: var(--t-radius); }

/* Areas */
.area { padding: var(--t-space) 0; }
.area-lede { color: var(--muted); max-width: 680px; margin-top: -6px; }
.cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); border-radius: var(--t-radius); padding: 22px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
/* Long names ("Networking/Structured Wiring") break rather than push past a phone's edge. */
h1, h2, h3, .card h3 { overflow-wrap: anywhere; hyphens: auto; }
.area.alt { background: var(--surface); }
.callout { padding-top: 0; }
.services + .callout { padding-top: 0; }
.callout-box { background: var(--primary-dark); color: #fff; border-radius: var(--t-radius); padding: 28px 24px; display: grid; gap: 20px; }
.callout-box h2, .callout-box p { color: #fff; }
.callout-box p { margin: 0; opacity: .92; }
.media-row { display: grid; gap: 28px; align-items: center; }
.area-media { margin: 0; }
.area-media img { border-radius: var(--t-radius); }
.area-media figcaption { color: var(--muted); font-size: 15px; margin-top: 8px; }
address { font-style: normal; font-size: 18px; margin-bottom: 14px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 0 0 14px; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 4px; }
.contact-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; min-height: 44px; border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.contact-list span { width: 120px; font-weight: 700; }
.contact-list a { font-size: 18px; min-height: 44px; display: inline-flex; align-items: center; }
.social { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.social a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.site-footer { background: var(--primary-dark); color: rgba(255, 255, 255, .85); padding: 28px 0; font-size: 15px; }
.site-footer p { margin: 0 0 6px; }
.site-footer .fine { opacity: .75; font-size: 14px; }
.site-footer .lts-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Testimonials: quote cards, one column on phones, two from md, three from lg. */
.quotes { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.quote { background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); border-radius: var(--t-radius); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.area.alt .quote { background: var(--bg); }
.quote blockquote { margin: 0; position: relative; padding-top: 30px; }
.quote blockquote::before { content: "\201C"; position: absolute; top: -14px; left: -2px; font: 700 64px/1 Georgia, serif; color: var(--accent); }
.quote blockquote p { margin: 0 0 .6em; }
.quote-by { margin: 0; display: flex; flex-direction: column; font-size: 16px; }
.quote-by span { color: var(--muted); }

/* sm: 480px+ */
@media (min-width: 480px) {
  .actions { flex-direction: row; flex-wrap: wrap; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
/* md: 768px+ */
@media (min-width: 768px) {
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .site-header { position: sticky; top: 0; z-index: 10; }   /* sticky only where it doesn't crowd the screen */
  .media-row { grid-template-columns: 1fr 1fr; gap: 48px; }
  .media-row.reverse .area-media { order: 2; }
  .callout-box { grid-template-columns: 1fr auto; align-items: center; padding: 36px 40px; }
}
/* lg: 1024px+ */
@media (min-width: 1024px) {
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .hero.has-image .hero-row { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
/* xl: 1440px+ (content stays capped by --t-max) */
@media (min-width: 1440px) {
  body { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Contact form (lts-base): labels above inputs, 16px+ text so phones don't zoom,
   44px+ targets. The honeypot is moved off screen, not display:none (some bots skip those). */
.contact-form { display: grid; gap: 14px; margin-top: 24px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); border-radius: var(--t-radius); padding: 22px; }
.contact-form .field { display: grid; gap: 6px; }
.contact-form label { font-weight: 700; font-size: 15px; }
.contact-form .optional { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--text); background: var(--bg); border: 1px solid color-mix(in srgb, var(--text) 25%, transparent); border-radius: var(--t-btn-radius); }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent); border-color: var(--primary); }
.contact-form .btn-send { background: var(--primary); color: #fff; justify-self: start; min-width: 180px; }
.contact-form .btn-send[disabled] { opacity: .6; }
.form-status { margin: 0; font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: var(--primary); }
.form-status.error { color: #B3261E; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 479px) { .contact-form .btn-send { justify-self: stretch; } }

/* /editmypage */
.steps-list { padding-left: 22px; margin: 0 0 24px; }
.steps-list li { margin-bottom: 8px; }
.edit-request { display: grid; gap: 12px; justify-items: start; margin-bottom: 20px; }
.edit-request .btn-send { background: var(--primary); color: #fff; }
.fine-print { color: var(--muted); font-size: 16px; }
