/* True Service Electric — brand stylesheet
   Navy #0E2439 · Amber #F2A413 · Slate #5A6B7C · Cool White #F5F7F9 · Ink #0A1119 */

:root {
  --navy: #0E2439;
  --navy-700: #16324c;
  --navy-500: #24405C;
  --amber: #F2A413;
  --amber-dark: #96600E;
  --amber-tint: #FCF4E4;
  --slate: #5A6B7C;
  --slate-light: #8FA3B5;
  --line: #DCE3E9;
  --cool: #F5F7F9;
  --white: #FFFFFF;
  --ink: #0A1119;

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1180px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --radius: 4px;
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--amber-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }

ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: 0.45em; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--gap) 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--amber); color: var(--navy); padding: 0.7rem 1.1rem; font-weight: 700;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------------------------------------------------------------- header -- */

.topbar {
  background: var(--ink); color: var(--slate-light);
  font-size: 0.8125rem; letter-spacing: 0.04em;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; justify-content: space-between; padding-block: 0.5rem; }
.topbar a { color: var(--slate-light); text-decoration: none; }
.topbar a:hover { color: var(--white); }

.masthead { background: var(--navy); position: sticky; top: 0; z-index: 50; }
.masthead .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.85rem; }

.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; flex-shrink: 0; }
.brand svg { width: 44px; height: 44px; flex-shrink: 0; }
.brand .l1 {
  font-family: var(--display); font-weight: 800; font-size: 1.32rem;
  line-height: 0.9; letter-spacing: -0.025em; color: var(--white); display: block;
}
.brand .l2 {
  font-family: var(--display); font-weight: 600; font-size: 0.615rem;
  line-height: 1; letter-spacing: 0.5em; margin-right: -0.5em; color: var(--amber);
  display: block; margin-top: 0.3rem;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  color: #C6D2DC; text-decoration: none; font-weight: 500;
  font-size: 0.95rem; white-space: nowrap; padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--amber); }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid #35506d;
  color: var(--white); font-family: var(--body); font-weight: 600; font-size: 0.9rem;
  padding: 0.7rem 1rem; min-height: 44px; border-radius: var(--radius); cursor: pointer;
}

/* ---------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  padding: 0.85rem 1.5rem; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center; line-height: 1.2;
}
.btn-primary { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.btn-primary:hover { background: #d98f08; border-color: #d98f08; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.07); }
.btn-dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }
.btn-lg { font-size: 1.1rem; padding: 1rem 1.9rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ----------------------------------------------------------------- layout -- */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tight { padding-block: clamp(2.2rem, 5vw, 3.5rem); }
.section-cool { background: var(--cool); }
.section-navy { background: var(--navy); color: #C6D2DC; }
.section-navy h2, .section-navy h3 { color: var(--white); }

.eyebrow {
  display: flex; align-items: center; gap: 0.8rem;
  font-family: var(--body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ''; width: 26px; height: 3px; background: var(--amber); flex-shrink: 0; }
.section-navy .eyebrow { color: var(--slate-light); }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.lede { font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.5; color: var(--slate); }
.section-navy .lede { color: #A9BCCC; }

/* ------------------------------------------------------------------- hero -- */

.hero { background: var(--navy); color: #C6D2DC; position: relative; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; right: -8%; top: -20%;
  width: 46rem; height: 46rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,164,19,0.10) 0%, rgba(242,164,19,0) 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(3.2rem, 8vw, 6rem); }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lede { max-width: 54ch; margin-bottom: 2rem; }
.hero .btn-row { margin-bottom: 2.4rem; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 0.6rem 2.2rem; border-top: 1px solid #24405C; padding-top: 1.5rem; }
.hero-fact { font-size: 0.9rem; color: #A9BCCC; }
.hero-fact strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--white); letter-spacing: -0.01em; }

/* ------------------------------------------------------------------ cards -- */

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 1.9rem); display: flex; flex-direction: column; gap: 0.6rem;
}
.card h3 { margin-bottom: 0.2rem; }
.card p { color: var(--slate); font-size: 0.97rem; }
.card .more { margin-top: auto; padding-top: 0.7rem; font-family: var(--display); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.card .more::after { content: ' →'; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--amber); transform: translateY(-2px); }
.section-cool .card { background: var(--white); }

.card-navy { background: var(--navy-700); border-color: #2b4b6b; color: #C6D2DC; }
.card-navy h3 { color: var(--white); }
.card-navy p { color: #A9BCCC; }

.stat { border-left: 3px solid var(--amber); padding-left: 1.1rem; }
.stat strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.5vw, 2.3rem); letter-spacing: -0.03em; color: var(--navy); line-height: 1; margin-bottom: 0.35rem; }
.section-navy .stat strong { color: var(--white); }
.stat span { font-size: 0.93rem; color: var(--slate); }
.section-navy .stat span { color: #A9BCCC; }

/* ------------------------------------------------------------------ lists -- */

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7rem; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 11px; height: 11px; background: var(--amber); border-radius: 2px;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.chips li {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.42rem 1rem; font-size: 0.93rem; font-weight: 500; margin: 0;
}
.section-navy .chips li { background: var(--navy-700); border-color: #2b4b6b; color: #C6D2DC; }

/* -------------------------------------------------------------------- FAQ -- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.15rem 2rem 1.15rem 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--amber); line-height: 1;
}
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding-bottom: 1.2rem; color: var(--slate); max-width: 68ch; }

/* ------------------------------------------------------------------- note -- */

.note {
  background: var(--amber-tint); border-left: 4px solid var(--amber);
  padding: 1.15rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.note h4 { color: var(--amber-dark); text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.75rem; margin-bottom: 0.5rem; }
.note p { color: #5C4514; font-size: 0.97rem; }

.placeholder {
  background: repeating-linear-gradient(45deg, #F5F7F9 0 8px, #EEF2F5 8px 16px);
  border: 1px dashed #B9C4CD; border-radius: var(--radius);
  padding: 1.2rem 1.4rem; color: var(--slate); font-size: 0.95rem;
}

/* ------------------------------------------------------------------ forms -- */

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.93rem; }
.field .hint { font-size: 0.85rem; color: var(--slate); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--navy);
  padding: 0.75rem 0.85rem; border: 1px solid #C3CDD6; border-radius: var(--radius);
  background: var(--white); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); }
.field textarea { min-height: 8rem; resize: vertical; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hp { position: absolute; left: -9999px; }

.radio-grid { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-card span {
  display: block; border: 1px solid #C3CDD6; border-radius: var(--radius);
  padding: 0.75rem 0.9rem; cursor: pointer; font-weight: 500; background: var(--white); text-align: center;
}
.radio-card input:checked + span { border-color: var(--amber); border-width: 2px; padding: calc(0.75rem - 1px) calc(0.9rem - 1px); background: var(--amber-tint); font-weight: 700; }
.radio-card input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

.alert { border-radius: var(--radius); padding: 0.9rem 1.1rem; font-weight: 500; }
.alert-error { background: #FDECEC; border-left: 4px solid #C0392B; color: #7A2018; }
.alert-ok { background: #E9F6EE; border-left: 4px solid #1E8F49; color: #16532F; }

/* ---------------------------------------------------------------- footer -- */

.footer { background: var(--ink); color: #8FA3B5; padding-block: clamp(2.5rem, 5vw, 4rem); font-size: 0.94rem; }
.footer h4 { color: var(--white); font-family: var(--body); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem; }
.footer a { color: #8FA3B5; text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.5rem; }
.footer .legal { border-top: 1px solid #1E2A36; margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; font-size: 0.85rem; }

/* ------------------------------------------------------------- call bar -- */

.callbar { display: none; }

/* ------------------------------------------------------------ breadcrumb -- */

.crumbs { font-size: 0.87rem; color: var(--slate); padding-block: 1rem 0; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs span { margin: 0 0.45rem; color: #B9C4CD; }

/* ---------------------------------------------------------------- mobile -- */

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy); flex-direction: column; align-items: stretch;
    gap: 0; padding: 0.5rem 0 1rem; border-top: 1px solid #24405C;
    box-shadow: 0 14px 24px rgba(0,0,0,0.25);
  }
  .masthead { position: relative; }
  .masthead .wrap { position: relative; }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem clamp(1rem, 4vw, 2rem); border-bottom: none; border-left: 3px solid transparent; }
  .nav a:hover, .nav a[aria-current="page"] { border-left-color: var(--amber); border-bottom-color: transparent; background: rgba(255,255,255,0.04); }
}

@media (max-width: 720px) {
  body { padding-bottom: 4.25rem; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #24405C; box-shadow: 0 -4px 14px rgba(14,36,57,0.22);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: 0.45rem;
    padding: 1rem 0.5rem; text-decoration: none;
    font-family: var(--display); font-weight: 700; font-size: 1rem;
  }
  .callbar .call { background: var(--amber); color: var(--navy); }
  .callbar .book { background: var(--navy); color: var(--white); }
  .topbar .wrap { justify-content: center; text-align: center; }
  .hero-facts { gap: 1rem; }
  .hero-fact { flex: 1 1 45%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.card:hover { transform: none; }
}

@media print {
  .masthead, .topbar, .callbar, .footer, .btn { display: none !important; }
  body { color: #000; }
}

/* Nav CTA — comfortable pointer target on desktop, full-width row on mobile. */
.nav .btn { padding: 0.62rem 1.15rem; min-height: 42px; font-size: 0.95rem; }
@media (max-width: 900px) {
  .nav .btn { margin: 0.6rem clamp(1rem, 4vw, 2rem) 0; min-height: 48px; }
}

/* ------------------------------------------------------------- photo slots -- */

.photo { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--cool); aspect-ratio: var(--ratio, 3 / 2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-empty {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  gap: 0.9rem; padding: clamp(1.1rem, 2.2vw, 1.6rem); position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(90,107,124,0.045) 0 10px, transparent 10px 20px),
    var(--cool);
  border: 1px dashed #B9C4CD; color: var(--slate); box-sizing: border-box;
}
.photo-empty[data-priority="1"] { border-color: var(--amber); border-style: solid; background:
    repeating-linear-gradient(135deg, rgba(242,164,19,0.07) 0 10px, transparent 10px 20px),
    var(--amber-tint); color: #5C4514; }

.photo-mark {
  position: absolute; top: clamp(1.1rem, 2.2vw, 1.6rem); left: clamp(1.1rem, 2.2vw, 1.6rem);
  width: 44px; height: 44px; color: currentColor;
}
.photo-empty figcaption { display: flex; flex-direction: column; gap: 0.45rem; max-width: 46ch; }
.photo-tag {
  font-family: var(--body); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75;
}
.photo-empty strong {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.01em; line-height: 1.2;
}
.photo-brief { font-size: 0.88rem; line-height: 1.5; }
.photo-spec { font-size: 0.78rem; opacity: 0.8; }
.photo-spec code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95em; }

/* On navy sections the placeholder inverts so it stays legible. */
.section-navy .photo-empty, .hero .photo-empty {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 10px, transparent 10px 20px), var(--navy-700);
  border-color: #3d5f82; color: #A9BCCC;
}
.section-navy .photo-empty[data-priority="1"], .hero .photo-empty[data-priority="1"] {
  border-color: var(--amber); color: #E4CFA6;
  background: repeating-linear-gradient(135deg, rgba(242,164,19,0.09) 0 10px, transparent 10px 20px), var(--navy-700);
}
.section-navy .photo-empty strong, .hero .photo-empty strong { color: var(--white); }

@media (max-width: 560px) {
  .photo-mark { display: none; }
  .photo-empty { justify-content: center; }
}

/* Hero becomes two columns once there is room for the photo beside the copy. */
.hero-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
.hero .photo { border-radius: var(--radius); }
.photo-lift { box-shadow: 0 18px 40px rgba(14,36,57,0.14); }

/* A placeholder must never clip its own brief — let it outgrow the aspect
   ratio on narrow screens rather than hiding the instructions. */
.photo-empty { min-height: fit-content; overflow: visible; }
@media (max-width: 560px) {
  .photo-empty { aspect-ratio: auto; padding-top: 4.5rem; }
  .photo-mark { display: block; width: 34px; height: 34px; }
}
