/* ============================================================
 * site/theme-light.css  -  the light option, matched to er-electrical
 *
 * Built from the two screenshots of er-electrical.co.uk, so the two
 * sites read as one company. Everything structural is the same: white
 * and light-grey alternating bands, centred section headings, a
 * translucent dark bar over a photo hero, cards with the image on top.
 *
 * WHAT CHANGED, which is the point of the exercise:
 *
 *   red   #e40513  ->  blue  #0098cc   the brand accent, from the logo
 *   green #71a944  ->  warm  #d9772b   the second action colour
 *
 * The greys are theirs, unaltered: #514d4d for the bar, #999090 for
 * the footer, #656565 for body text, #f5f5f5 for the alternate band.
 * They are warm greys rather than the cool blue-greys an air
 * conditioning site might reach for by default, and keeping them is
 * most of what makes the two sites look related.
 *
 * The green is worth a word. On the electrical site it is the "Read
 * More" colour and reads as a neutral go-ahead. Carrying a green onto
 * an air conditioning site would be odd next to the blue, so the
 * second action colour here is the warm orange already used on the
 * holding page for the heating half of what a reversible system does.
 *
 * Only colour and type selection live here. Structure is in site.css.
 * ============================================================ */

:root{
  /* --- type ------------------------------------------------------ */
  /* er-electrical sets its section headings in a condensed face.
     Oswald is loaded and is the closest match; swap the two lines to
     try it. Archivo is the default because it is what the rest of this
     brand already uses. */
  --font-head:"Archivo",system-ui,-apple-system,"Segoe UI",sans-serif;
  /* --font-head:"Oswald","Archivo",system-ui,sans-serif; */
  --font-ui:"Archivo",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-body:"Newsreader",Georgia,"Times New Roman",serif;

  /* --- brand ----------------------------------------------------- */
  --brand:#0098cc;          /* sampled from the supplied logo */
  --brand-ink:#00719a;      /* the brand blue on white is only 3.1:1, which
                               fails for small text, so links and captions
                               use this darker tint at 4.8:1 */
  --brand-wash:#e8f6fc;
  --brand-line:#bde3f3;
  --on-brand:#ffffff;
  --warm:#d9772b;           /* replaces their green as the second action */

  /* --- their greys, kept ----------------------------------------- */
  --ink:#3f3b3b;            /* headings: their heading grey, warm */
  --ink-2:#656565;          /* body copy: sampled from their page */
  --line:#e3e0e0;
  --paper:#ffffff;
  --paper-2:#f5f5f5;        /* their alternate band, exactly */
  --bar:#514d4d;            /* their header bar */
  --bar-bg:rgba(81,77,77,.78);   /* see-through, as on their site */
  --foot:#999090;           /* their footer */

  /* --- the dark call-to-action band and footer ------------------- */
  --on-dark:#ffffff;
  --on-dark-2:#eceaea;
  --on-dark-3:#d8d4d4;
  --on-dark-line:rgba(255,255,255,.18);

  /* --- preview-only: unconfirmed claims and the to-do panel ------ */
  --warn-bg:#fff8e6;
  --warn-line:#f0ddb0;
  --warn-ink:#7a5a12;
  --warn-ink-2:#6b5516;

  --radius:4px;             /* theirs are barely rounded */
  --pad:clamp(1.25rem,4vw,3rem);
  --measure:34rem;
}

/* --- the bar sits over the hero photo, as theirs does -------------- */
.bar{background:var(--bar-bg);border-bottom:2px solid var(--brand)}
.bar .nav a{color:#e8e5e5}
.bar .nav a:hover{color:#fff;border-bottom-color:var(--brand)}
.mast__fallback{color:#fff}

/* --- hero: a photograph with a dark wash over it ------------------ */
/* No photograph supplied yet, so this is a neutral ground of the same
   value as theirs. Drop a file in and set --hero-image to use it. */
.hero{
  background:
    linear-gradient(rgba(60,57,57,.78),rgba(60,57,57,.78)),
    var(--hero-image,linear-gradient(135deg,#6d6a6a,#4a4747));
  background-size:cover;background-position:center;
  color:#fff;border:none;
}
.hero .eyebrow{color:#d8d4d4}
.hero h1{color:#fff}
.hero .lead{color:#efeded;margin-inline:auto}
.hero .btn--ghost{color:#fff;border-color:rgba(255,255,255,.55);background:transparent}
.hero .btn--ghost:hover{border-color:#fff;background:rgba(255,255,255,.1);color:#fff}

/* --- footer: their mid grey, not near-black ----------------------- */
.band--cta{background:var(--bar)}
.foot{background:var(--foot);color:#fff}
.foot a{color:#fff}
