/* ===== BT Electrix & Co brand styles =====
   Palette from the Instagram logo:
   black #0a0a0a, white #ffffff, electric green #a3e635

   Green is reserved for: primary actions, the trust bar, links, and the one
   accented phrase in the H1. It is deliberately not used for decoration. */

:root {
  color-scheme: dark;

  /* Surfaces */
  --black: #0a0a0a;
  --dark: #121212;
  --dark-2: #1a1a1a;
  --dark-3: #1f1f1f;

  /* Ink */
  --white: #ffffff;
  --grey: #b3b3b3;        /* body copy on dark:      9.44:1 on --black */
  --grey-mute: #8a8a8a;   /* placeholders:           5.74:1 on --black */
  --grey-dim: #9a9a9a;    /* fine print:             7.03:1 on --black */

  /* Lines */
  --line-soft: #1e1e1e;
  --line: #262626;
  --line-header: #222222;
  --line-strong: #6b6b6b; /* form borders: 3.27:1 on --dark-2 (WCAG 1.4.11) */

  /* Brand + state */
  --green: #a3e635;
  --green-dark: #84cc16;
  --danger: #f87171;

  --radius: 6px;
  --font-head: "Oswald", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
}

.container {
  width: min(1100px, 100% - 3rem);
  margin: 0 auto;
}

.accent { color: var(--green); }

/* ===== Browser surfaces =====
   Selection, caret, scrollbars and underlines ship with UA defaults that belong
   to no design system. Theme them from the palette. */
::selection {
  background: var(--green);
  color: var(--black);
}

html {
  scrollbar-color: var(--line-strong) var(--black);
  scrollbar-width: thin;
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 6px;
  border: 3px solid var(--black);
}
::-webkit-scrollbar-thumb:hover { background: var(--grey-mute); }

a {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

/* Avoid single-word orphans in running copy. */
p, li, figcaption, blockquote { text-wrap: pretty; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon-sprite symbol { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  vertical-align: -0.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Accessibility utilities ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--green);
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}
/* On green surfaces a green ring is invisible, so switch to white. */
.btn-primary:focus-visible,
.skip-link:focus-visible {
  outline-color: var(--white);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--black); }
.btn-primary:hover { background: var(--green-dark); color: var(--black); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 1.9rem; font-size: 1.05rem; min-height: 52px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid var(--line-header);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
  min-height: 44px;
}
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.brand-name em { color: var(--green); font-style: normal; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--green); }
/* The nav rule above out-specifies .btn-primary, so restate the button ink here.
   Without this the header CTA renders white-on-green at 1.5:1. */
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover { color: var(--black); }
.nav-phone { font-family: var(--font-head); letter-spacing: 0.05em; }

/* Mobile header controls: hidden on desktop, shown at the same breakpoint
   where .site-nav is withdrawn, so navigation is never simply deleted. */
.mobile-actions { display: none; align-items: center; gap: 0.5rem; }
.btn-call { padding: 0.5rem 1rem; font-size: 0.9rem; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline-block; }

.mobile-menu {
  border-top: 1px solid var(--line-header);
  padding: 0.5rem 1.5rem 1rem;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a.mobile-menu-call { color: var(--green); }

/* ===== Hero ===== */
.hero {
  background: var(--black);
  padding: 4.5rem 0 4rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-sub {
  color: var(--grey);
  margin: 1.3rem 0 2rem;
  font-size: 1.1rem;
  max-width: 34rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-note {
  margin-top: 1.1rem;
  color: var(--grey-dim);
  font-size: 0.9rem;
}
.hero-badge { display: flex; justify-content: center; }
.hero-logo { width: min(300px, 70vw); }

/* ===== Trust bar ===== */
.trust-bar {
  background: var(--green);
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.trust-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  padding: 0.75rem 0;
  font-size: 0.95rem;
}
.trust-inner span { display: inline-flex; align-items: center; gap: 0.45rem; }

/* ===== Sections ===== */
.section { padding: 4.5rem 0; scroll-margin-top: 90px; }
.section-dark { background: var(--dark); }
.hero { scroll-margin-top: 90px; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 0.6rem;
}
.section-title.left { text-align: left; }
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--green);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}
.section-title.left::after { margin-left: 0; }
.section-hint {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--grey-dim);
  font-size: 0.9rem;
}
.section-sub {
  text-align: center;
  color: var(--grey);
  margin: 0 auto 2.8rem;
  max-width: 58ch;
}

/* ===== Specialties grid ===== */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 1rem;
  list-style: none;
}
.spec-grid > li { display: flex; }
.spec-item {
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--dark-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  font-weight: 600;
  font-size: 0.97rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.spec-item:hover { border-color: var(--green); background: var(--dark-3); }
.spec-item:active { transform: translateY(1px); }
.spec-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--green);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.spec-also {
  margin-top: 1.6rem;
  text-align: center;
  color: var(--grey);
  font-size: 0.95rem;
  max-width: 62ch;
  margin-inline: auto;
}
.spec-also span {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
}

/* ===== Why us ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  text-align: center;
}
.why-item h3 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.why-item p { color: var(--grey); max-width: 46ch; margin-inline: auto; }
.owner-quote {
  max-width: 44rem;
  margin: 3rem auto 0;
  padding: 1.6rem 2rem;
  border-left: 4px solid var(--green);
  background: var(--dark-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.owner-quote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--white);
}
.owner-quote cite {
  display: block;
  margin-top: 0.8rem;
  color: var(--green);
  font-style: normal;
  font-family: var(--font-head);
  letter-spacing: 0.05em;
}
.about-follow { text-align: center; margin-top: 2.5rem; }

/* ===== Gallery (Behold Instagram widget) ===== */
.behold-wrap { min-height: 220px; }
.gallery-follow { text-align: center; margin-top: 2rem; }

/* ===== Customer reviews =====
   Typographic, not carded: the page already leans on boxed containers, and the
   quote itself should carry the weight. Hairline rule above each attribution. */
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 3rem;
  list-style: none;
  margin-top: 2.5rem;
}
/* Explicit rather than auto-fit: auto-fit resolved to 3 tracks for 2 reviews
   and left an empty column. */
@media (min-width: 720px) {
  .review-grid { grid-template-columns: 1fr 1fr; }
}
.review-quote p {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--white);
  text-wrap: pretty;
  max-width: 42ch;
}
.review-quote p::before { content: "\201C"; }
.review-quote p::after { content: "\201D"; }
.review-by {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  max-width: 42ch;
}
.review-name {
  font-family: var(--font-head);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
.review-place {
  font-size: 0.9rem;
  color: var(--grey-dim);
}
.review-place::before { content: "\2022"; margin-right: 0.6rem; }

@media (max-width: 520px) {
  .review-quote p { font-size: 1.05rem; }
}

/* ===== Quote form ===== */
.quote-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}
.quote-intro p { color: var(--grey); margin: 0.8rem 0 1.4rem; }
.quote-points { list-style: none; }
.quote-points li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
  min-height: 44px;
}
.quote-points .icon { color: var(--green); }
.quote-points a {
  color: var(--green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.15rem;
}
.quote-points a:hover { text-decoration: underline; }

.quote-form {
  background: var(--dark-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}
.form-field .req { color: var(--green); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  background: var(--black);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  caret-color: var(--green);
  transition: border-color 0.15s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--grey-mute); opacity: 1; }
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--green);
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
.form-field textarea { resize: vertical; }
.form-field [aria-invalid="true"] { border-color: var(--danger); }
.field-err {
  margin-top: 0.35rem;
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 600;
}
.hidden-field { display: none; }
.form-reassure {
  margin-top: 0.9rem;
  color: var(--grey-dim);
  font-size: 0.85rem;
  text-align: center;
}
.form-status {
  margin-top: 0.6rem;
  text-align: center;
  font-weight: 600;
}
.form-status-top {
  margin: 0 0 1rem;
  text-align: left;
}
.form-status-top:not(:empty) {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  background: var(--black);
  border: 1px solid var(--danger);
}
.form-status-top.ok:not(:empty) { border-color: var(--green); }
.form-status:empty { margin-top: 0; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--danger); }
.form-status a { color: inherit; }

/* Fallback shown when the Web3Forms access key has not been set yet. */
.form-fallback {
  background: var(--dark-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.form-fallback h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.form-fallback p { color: var(--grey); margin-bottom: 1.5rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--line-header);
  padding: 3rem 0 1.5rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-brand p { color: var(--grey); font-size: 0.95rem; }
.footer-contact p { margin-bottom: 0; }
.footer-contact a {
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-contact a:hover { color: var(--green); }
.footer-creds {
  margin-top: 0.8rem;
  color: var(--grey-dim);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 32ch;
}
.footer-creds strong { color: var(--white); }
.footer-creds a {
  color: var(--green);
  min-height: 0;
  display: inline-block;
  padding-block: 2px;
  text-decoration: underline;
}
.footer-fine {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
  color: var(--grey-dim);
  font-size: 0.85rem;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-badge { order: -1; }
  .hero-logo { width: min(120px, 34vw); }
  .why-grid { grid-template-columns: 1fr; }
  .quote-wrap { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .mobile-actions { display: flex; }
  .trust-inner { justify-content: center; text-align: center; }
  .quote-points li { justify-content: center; }
  .footer-inner, .footer-contact { text-align: center; justify-content: center; }
  .footer-creds { margin-inline: auto; }
}

@media (max-width: 520px) {
  .brand-name { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .quote-form, .form-fallback { padding: 1.5rem 1.25rem; }
  .hero { padding: 3rem 0 3.5rem; }
  .hero-ctas .btn { width: 100%; }
}

/* ===== Reduced motion =====
   Keeps colour/border feedback so state changes stay legible, but removes
   translation, scale and smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover,
  .spec-item:hover { transform: none; }
  *, *::before, *::after {
    transition-property: color, background-color, border-color, outline-color, opacity !important;
    transition-duration: 0.12s !important;
    animation: none !important;
  }
}
