/* ==========================================================================
   INFUSE ELECTRICS — shared stylesheet
   All brand values live in :root below. Change them in one place.
   ========================================================================== */

/* --- Alfabet (headings) ---------------------------------------------------
   Alfabet is a commercial typeface (Machalski / Capitalics). Drop licensed
   .woff2 files into /assets/fonts/ and these rules pick them up. Until then
   headings fall back to Space Grotesk, which is metrically close enough that
   nothing reflows badly. Alternative: swap these @font-face blocks for an
   Adobe Fonts kit <link> in each page head.
   ------------------------------------------------------------------------ */
@font-face {
  font-family: "Alfabet";
  src: url("/assets/fonts/alfabet-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("/assets/fonts/alfabet-black.woff2") format("woff2");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("/assets/fonts/alfabet-medium.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- BRAND TOKENS ---------------------------------------------------- */
  --ink:        #000000;   /* logo background — header, footer, hero       */
  --ink-soft:   #0d0f11;   /* mobile nav drawer, hovers on black          */
  --cyan:       #36cbf7;   /* primary — the neon tube                     */
  --cyan-dark:  #17b4e3;   /* cyan hover                                  */
  --lemon:      #eee81d;   /* secondary accent, used sparingly            */
  --lemon-dark: #d6d008;
  --surface:    #f7fef9;   /* page background                             */
  --muted:      #e9f6fb;   /* alternating section — cyan tint of surface   */
  --line:       #d3e2e8;
  --text:       #0b0d0e;
  --text-dim:   #4e565b;
  --on-dark:    #d9e2e6;   /* body copy on black                          */

  --font-display: "Alfabet", "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Space Grotesk", system-ui, sans-serif;

  /* --- SCALE ------------------------------------------------------------ */
  --wrap: 1180px;
  --radius: 3px;
  --shadow: 0 2px 14px rgba(0, 0, 0, .08);
  --shadow-lift: 0 10px 28px rgba(0, 0, 0, .14);
  --glow: 0 0 6px rgba(54, 203, 247, .75), 0 0 22px rgba(54, 203, 247, .45);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; }
.section--muted { background: var(--muted); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.center { text-align: center; }
.lede { font-size: 1.1rem; color: var(--text-dim); max-width: 760px; }
.section--ink .lede { color: var(--on-dark); }
.center .lede { margin-inline: auto; }

/* --- Skip link ---------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--cyan); color: #000; padding: 12px 18px; font-weight: 700;
}
.skip:focus { left: 12px; top: 12px; }

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

/* --- Eyebrow / neon signature ------------------------------------------- */
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-size: .76rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .22em;
  color: var(--cyan); margin-bottom: 18px;
}
.section--ink .eyebrow { text-shadow: var(--glow); }
.neon { color: var(--cyan); text-shadow: var(--glow); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: .92rem;
  text-transform: uppercase; letter-spacing: .07em; text-decoration: none;
  padding: 14px 30px; border: 2px solid var(--cyan); border-radius: var(--radius);
  background: var(--cyan); color: #000; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--cyan-dark); border-color: var(--cyan-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--cyan); }
.btn--ghost:hover { background: var(--cyan); color: #000; }
.btn--lemon { background: var(--lemon); border-color: var(--lemon); color: #000; }
.btn--lemon:hover { background: var(--lemon-dark); border-color: var(--lemon-dark); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--cyan); }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); border-bottom: 2px solid var(--cyan);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 88px; padding: 10px 22px;
  width: 100%; max-width: var(--wrap); margin: 0 auto;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 58px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav a {
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: #f1f5f7; text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cyan); border-bottom-color: var(--cyan); }
.nav .btn { padding: 11px 22px; font-size: .8rem; }
.nav .btn:hover { color: #000; border-bottom-color: var(--cyan-dark); }

.social { display: flex; align-items: center; gap: 12px; }
.social a { display: inline-flex; }
.social a { color: #f1f5f7; transition: color .15s ease; }
.social a:hover { color: var(--cyan); }
.social svg { width: 24px; height: 24px; fill: currentColor; display: block; }
.social img { width: 24px; height: 24px; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 2px solid #2a3034; border-radius: var(--radius);
  color: var(--cyan); font-family: var(--font-display); font-weight: 700;
  padding: 10px 13px; font-size: .9rem; line-height: 1; cursor: pointer;
}

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-soft); border-bottom: 2px solid var(--cyan);
    padding: 10px 22px 22px; margin-left: 0; display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid #1e2427; }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .social { padding-top: 16px; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  background:
    linear-gradient(rgba(0,0,0,.86), rgba(0,0,0,.94)),
    url("/assets/img/consumer-unit.jpeg") center/cover no-repeat;
  color: #fff;
  border-bottom: 1px solid #171b1e;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px;
  align-items: center; padding: 96px 0;
}
.hero h1 { color: #fff; }
.hero p { color: var(--on-dark); font-size: 1.1rem; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 62px 0; gap: 38px; }
}

/* --- Forms -------------------------------------------------------------- */
.form-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-lift); color: var(--text);
  border-top: 3px solid var(--cyan);
}
.form-card h2, .form-card h3 { color: var(--ink); }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-family: var(--font-display); font-size: .76rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink); margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--text);
}
.field input:focus, .field textarea:focus {
  border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(54,203,247,.3);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: .84rem; color: var(--text-dim); margin-top: 14px; }

/* --- Card grids --------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--cyan); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 22px; }
.card-body h3 { margin-bottom: .45em; }
.card-body p { color: var(--text-dim); font-size: .97rem; }

/* --- Feature list (Why choose us) --------------------------------------- */
.feature { border-top: 2px solid var(--cyan); padding-top: 20px; }
.feature h3 { margin-bottom: .4em; }
.feature p { color: var(--text-dim); font-size: .97rem; }
.section--ink .feature p { color: #a9b3b8; }

/* --- Reviews ------------------------------------------------------------ */
.review {
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--cyan); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
}
.review-source { height: 34px; width: auto; max-width: 150px; object-fit: contain; object-position: left center; margin-bottom: 16px; }
.review-title { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin: 0 0 .6em; }
.review-body { font-size: .97rem; color: var(--text-dim); margin: 0 0 18px; }
.review-by { margin-top: auto; font-size: .87rem; font-weight: 700; color: var(--ink); }
.review-by span { font-weight: 400; color: var(--text-dim); }
.review-by a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 3px; }

/* --- Qualifications ----------------------------------------------------- */
.quals { display: grid; grid-template-columns: 240px 1fr; gap: 42px; align-items: start; }
@media (max-width: 820px) { .quals { grid-template-columns: 1fr; } }
.quals img { border-radius: var(--radius); width: 100%; height: auto; max-width: 220px; }
.qual-list { list-style: none; margin: 0; padding: 0; }
.qual-list li {
  position: relative; padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line); font-size: .99rem;
}
.qual-list li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 16px; height: 18px; background: var(--lemon);
  clip-path: polygon(40% 0, 100% 0, 60% 42%, 100% 42%, 25% 100%, 45% 55%, 0 55%);
}

/* --- Areas -------------------------------------------------------------- */
.area-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.area-block h3 { border-bottom: 3px solid var(--cyan); display: inline-block; padding-bottom: 6px; }
.area-list { list-style: none; margin: 0; padding: 0; }
.area-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.area-list li:last-child { border-bottom: 0; }
.area-list strong { font-family: var(--font-display); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; padding: 0; list-style: none; }
.chips li {
  font-family: var(--font-display); font-size: .84rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  background: var(--ink); color: var(--cyan); padding: 10px 18px; border-radius: 999px;
}

/* --- Projects ----------------------------------------------------------- */
.project {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--line);
}
.project:last-of-type { border-bottom: 0; }
.project img { border-radius: var(--radius); width: 100%; height: 300px; object-fit: cover; }
.project--flip .project-text { order: 2; }
@media (max-width: 820px) {
  .project { grid-template-columns: 1fr; gap: 22px; }
  .project--flip .project-text { order: 0; }
  .project img { height: 220px; }
}

/* --- Contact detail rows ------------------------------------------------ */
.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-list .social a { color: var(--ink); }
.detail-list .social a:hover { color: var(--cyan-dark); }
.detail-list .label {
  display: block; font-family: var(--font-display); font-size: .74rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-dim); margin-bottom: 3px;
}
.detail-list a { font-weight: 700; color: var(--ink); text-decoration: none; }
.detail-list a:hover { text-decoration: underline; text-decoration-color: var(--cyan); }

/* --- Legal copy --------------------------------------------------------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal ul { padding-left: 22px; color: var(--text-dim); }
.legal li { margin-bottom: .5em; }
.legal a { text-decoration-color: var(--cyan); }

/* --- Call band ---------------------------------------------------------- */
.callband { background: var(--lemon); color: #000; padding: 44px 0; }
.callband-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.callband h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); color: #000; }
.callband p { margin: .3em 0 0; font-weight: 600; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #98a3a8; padding: 62px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 34px; }
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 {
  color: #fff; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .16em; margin-bottom: 16px;
}
.footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 62px; width: auto; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; font-size: .94rem; }
.site-footer a { color: #98a3a8; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-bottom {
  margin-top: 48px; border-top: 1px solid #1a1f22; padding: 22px 0;
  font-size: .85rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}
.footer-bottom a { text-decoration: underline; text-decoration-color: var(--cyan); }
