/* Optio Electrical Specifications — shared styles */

:root {
  --paper: #F5F6F3;
  --sheet: #FFFFFF;
  --ink: #17222C;
  --slate: #55636F;
  --rule: #D3D9DD;
  --mark: #A8321C;
  --highlight: #FCE49A;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --measure: 68ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--mark); }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  flex-wrap: wrap;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.brand {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.brand span { display: block; font-weight: 400; font-size: .85rem; color: var(--slate); }
.site-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-size: .95rem; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; }

.button {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: .7rem 1.2rem;
  border-radius: 3px;
  border: 2px solid var(--ink);
}
.button:hover { background: var(--mark); border-color: var(--mark); color: #fff; }
.button.quiet { background: transparent; color: var(--ink); }
.button.quiet:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.site-nav .button { color: #fff; }

/* Floating "Book a call" button, fixed to the lower-left corner */
.floating-call {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 50;
  box-shadow: 0 0 0 2px var(--paper), 0 4px 12px rgba(23, 34, 44, .18);
}

/* Type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; max-width: 24ch; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; max-width: var(--measure); }
.lead { font-size: 1.2rem; color: var(--slate); max-width: 52ch; }

/* Sections */
.section { padding: 4.5rem 0; border-bottom: 1px solid var(--rule); }
.section.sheet { background: var(--sheet); }
.section-intro { margin-bottom: 2.5rem; }

/* Hero */
.hero { padding: 4.5rem 0 5rem; border-bottom: 1px solid var(--rule); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* The specification excerpt — the one signature element */
.excerpt {
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: 6px 6px 0 var(--rule);
  padding: 1.75rem 1.75rem 1.5rem;
  font-family: var(--serif);
  font-size: .98rem;
  line-height: 1.65;
  position: relative;
}
.excerpt-head {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--slate);
  border-bottom: 1px solid var(--rule);
  padding-bottom: .6rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.excerpt p { margin: 0 0 .9rem; max-width: none; }
.excerpt .art { font-weight: 600; }
.excerpt mark {
  background: var(--highlight);
  color: inherit;
  padding: 0 .15em;
}
.note {
  display: block;
  font-family: var(--sans);
  font-size: .85rem;
  line-height: 1.45;
  color: var(--mark);
  border-left: 2px solid var(--mark);
  padding-left: .7rem;
  margin: -.3rem 0 1rem;
}
.excerpt-foot { font-family: var(--sans); font-size: .78rem; color: var(--slate); margin-top: .5rem; }

/* Three causes */
.causes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.cause { padding: 1.5rem 1.5rem 0 0; }
.cause + .cause { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.cause p { font-size: 1rem; color: var(--slate); }
/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}
.steps li::before {
  content: counter(step);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--mark);
}
.steps h3 { margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--slate); }

/* Definition-style lists */
.deflist { margin: 0; border-top: 2px solid var(--ink); }
.deflist div {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.deflist dt { font-weight: 700; }
.deflist dd { margin: 0; color: var(--slate); max-width: var(--measure); }

/* Two column */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
.plain-list { margin: 0; padding-left: 1.2rem; }
.plain-list li { margin-bottom: .6rem; max-width: var(--measure); }

/* Engagements */
.engagement { padding: 2rem 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.5rem; }
.engagement:first-of-type { border-top: 2px solid var(--ink); }
.engagement .kind { font-size: .9rem; color: var(--slate); margin-top: .25rem; }

/* Services: list of analyses */
.analysis-group + .analysis-group,
.analysis-group + .catalog-note { margin-top: 3.5rem; }

/* Call to action band */
.cta-band { background: var(--ink); color: #fff; padding: 4rem 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9D2D9; }
.cta-band .button { background: #fff; color: var(--ink); border-color: #fff; margin-top: .75rem; }
.cta-band .button:hover { background: var(--highlight); border-color: var(--highlight); color: var(--ink); }

/* Footer */
.site-footer { padding: 2.5rem 0 6rem; font-size: .88rem; color: var(--slate); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; }
.site-footer p { max-width: 70ch; margin-bottom: .5rem; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-content: start; }

/* Placeholder marker — remove nothing here; replace the bracketed text in the pages */
.fill { background: var(--highlight); padding: 0 .2em; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .two-col { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .causes { grid-template-columns: minmax(0, 1fr); }
  .cause, .cause + .cause { padding: 1.25rem 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .deflist div, .engagement { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 3.25rem 0; }
  .hero { padding: 3rem 0 3.5rem; }
  .floating-call { font-size: .9rem; padding: .55rem 1rem; }
}

@media print {
  .floating-call { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
p + h3 { margin-top: 2rem; }
