/* Hartline Electrical. A local electrician.
 *
 * Trust-first, so this one follows the system preference rather than
 * committing to a look. Somebody finding an electrician at 11pm with a dead
 * consumer unit should get whatever their phone is already set to.
 *
 * Cool slate with a single teal. Not the safety-yellow-on-black that every
 * trades template reaches for, which reads as a hazard sign rather than as a
 * business, and not the cobalt or the amber used on the other two builds.
 */

:root {
  color-scheme: light;

  --paper:       #f8f9fa;
  --surface:     #ffffff;
  --surface-alt: #eef1f3;
  --line:        #dde2e6;
  --line-strong: #c4ccd2;
  --control-border: #6f7c85;

  --ink:    #14191d;
  --ink-2:  #414c54;
  --ink-3:  #5f6b74;

  --accent:      #0d6b61;
  --accent-hover:#0a564e;
  --accent-ink:  #ffffff;
  --accent-soft: #e2efed;

  --font-sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0:  clamp(1.02rem, 0.99rem + 0.15vw, 1.11rem);
  --step-1:  clamp(1.26rem, 1.2rem + 0.3vw, 1.44rem);
  --step-2:  clamp(1.56rem, 1.45rem + 0.55vw, 1.94rem);
  --step-3:  clamp(1.95rem, 1.75rem + 1vw, 2.6rem);
  --step-4:  clamp(2.3rem, 2rem + 1.6vw, 3.4rem);
  --step-5:  clamp(2.6rem, 2.1rem + 2.6vw, 4.2rem);

  --measure: 68ch;
  --tracking-display: -0.02em;
  --tracking-tight:   -0.01em;

  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.5rem;  --space-6: 2rem;
  --space-7: 2.75rem; --space-8: 4rem;    --space-9: 6rem;

  /* Squarer than the other two builds. A trades business should look solid,
     not soft, so nothing here is a pill. */
  --radius-interactive: 6px;
  --radius-container:   6px;
  --radius-media:       4px;

  --shell: 1120px;
  --shell-narrow: 740px;

  --shadow-1: 0 1px 2px rgb(20 25 29 / 0.06);
  --shadow-2: 0 12px 30px -14px rgb(20 25 29 / 0.2);

  --focus-ring: 2px solid var(--accent);
  --focus-offset: 3px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --paper:       #0f1417;
    --surface:     #161c21;
    --surface-alt: #1c242a;
    --line:        #27313a;
    --line-strong: #39454f;
    --control-border: #6b7a85;

    --ink:    #eef2f5;
    --ink-2:  #b4bec6;
    --ink-3:  #8d99a3;

    --accent:      #4fc4b4;
    --accent-hover:#6ed6c7;
    --accent-ink:  #07100f;
    --accent-soft: #14262a;

    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.45);
    --shadow-2: 0 12px 30px -14px rgb(0 0 0 / 0.7);
  }
}

/* Emergency strip. The one piece of urgency on the page, and it carries a real
   phone number rather than a decorative status dot. */
.callout-bar {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-container);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.callout-bar p { color: var(--ink); font-weight: 560; margin: 0; }
.callout-bar a { font-weight: 620; white-space: nowrap; }

/* Service list: grouped, no hairline under every row. */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-6); }
.service { display: grid; gap: var(--space-3); align-content: start; }
.service h3 { font-size: var(--step-0); letter-spacing: 0; }
.service p { font-size: var(--step--1); color: var(--ink-2); }
.service__rule { height: 2px; background: var(--accent); width: 2.2rem; }

/* Credentials, stated plainly. No badges, no seals, no invented numbers. */
.creds { display: grid; gap: var(--space-4); }
.creds div { display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.creds dt { color: var(--ink); font-weight: 560; }
.creds dd { margin: 0; color: var(--ink-3); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
