/* Adam's Electronics
   Navy #082050 and electric blue #0050DF, sampled from the logo. */

:root {
  --navy: #082050;
  --navy-deep: #061633;
  --blue: #0050df;
  --blue-dark: #003eae;
  --blue-soft: #e8f0fc;
  --blue-on-navy: #d6e4ff;
  --muted: #3a4a63;
  --line: #d9e2ee;
  --paper: #f4f7fb;
  --white: #ffffff;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --header-h: 76px;
  --shadow: 0 12px 28px rgba(8, 32, 80, 0.07);
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: light;
}

section[id],
h2[id],
#contact-phone,
#facebook-link,
#business-address {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  background: #d6e4ff;
  color: var(--navy);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  z-index: 80;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  transform: none;
}

#content:focus {
  outline: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-paper {
  background: var(--paper);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 600;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.lead {
  margin-top: 0.85rem;
  max-width: 38rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--muted);
}

.prose p + p {
  margin-top: 1rem;
}

.prose h2 {
  margin-bottom: 1.15rem;
}

.prose a {
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue-dark);
  color: var(--white);
}

.btn-primary:active {
  background: #00348f;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover,
.btn-navy:focus-visible {
  background: var(--navy-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: #c5d2e4;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--paper);
  border-color: var(--navy);
  color: var(--navy);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(8, 32, 80, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand picture {
  display: block;
  flex: none;
}

.brand img {
  height: 46px;
  width: auto;
}

.brand-name {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  margin-top: 0.18rem;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--navy);
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.site-nav a:hover,
.site-nav a.is-active:not(.nav-cta) {
  color: var(--blue);
}

.site-nav a.is-active:not(.nav-cta) {
  box-shadow: inset 0 -2px 0 var(--blue);
}

.site-nav a.nav-cta {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta:focus-visible {
  background: var(--blue-dark);
  color: var(--white);
}

/* Hero */

.hero {
  position: relative;
  padding: 2.75rem 0 3.25rem;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.hero h1 {
  max-width: 16em;
  font-size: clamp(2.15rem, 4.4vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
}

.hero-lead {
  max-width: 38rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.hero-points strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hero-points span {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-meta {
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 1rem;
}

.hero-meta a {
  color: var(--navy);
  font-weight: 600;
}

.hero-meta span {
  display: block;
  margin-top: 0.15rem;
}

.hero-logo {
  display: flex;
  justify-content: center;
}

.hero-logo img {
  width: min(250px, 72vw);
  height: auto;
}

.circuit-hero {
  display: none;
  position: absolute;
  left: 8px;
  top: 48%;
  width: 132px;
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}

/* About */

.about-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.about-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.about-panel-body {
  padding: 1.15rem 1.35rem 1.45rem;
}

@media (max-width: 859px) {
  .about-grid .prose {
    display: contents;
  }

  #about-heading {
    order: 1;
  }

  .about-panel {
    order: 2;
  }

  .about-grid .prose p {
    order: 3;
  }
}

.about-panel p + p {
  margin-top: 0.75rem;
}

.about-kicker {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-name {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 680 / 670;
  object-fit: cover;
}

.photo-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.photo-grid img {
  aspect-ratio: 4 / 3;
}

.stat-num {
  display: block;
  font-size: clamp(3.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.stat-label {
  display: block;
  max-width: 16rem;
  margin-top: 0.45rem;
  color: var(--blue-on-navy);
  font-size: 1.05rem;
  line-height: 1.35;
}

.value-list {
  margin-top: 1.15rem;
}

.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  line-height: 1.4;
}

.value-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 0.05rem;
  color: var(--blue-on-navy);
}

/* Services */

.service-grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.15rem 1.35rem;
}

.service-icon {
  display: flex;
  margin-bottom: 0.65rem;
  color: var(--blue);
}

.service-icon svg,
.why-icon svg,
.map-pin {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-icon svg,
.why-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
}

.service-card p,
.services-note {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.services-note {
  max-width: 42rem;
  margin-top: 0.85rem;
}

.service-grid + .services-note {
  margin-top: 1.4rem;
}

.warranty {
  display: grid;
  gap: 0.15rem 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.25rem 1.2rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
}

.warranty-label {
  color: var(--blue-on-navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.warranty-term {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.warranty p:last-child {
  max-width: 38rem;
  color: var(--blue-on-navy);
  font-size: 1.05rem;
  line-height: 1.45;
}

@media (min-width: 720px) {
  .warranty {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 1.75rem;
  }

  .warranty-label,
  .warranty-term {
    grid-column: 1;
  }

  .warranty p:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* Feedback */

.feedback-layout {
  display: grid;
  gap: 0.85rem;
  align-items: start;
}

.feedback-feature {
  margin: 0;
}

.feedback-feature img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.feedback-feature figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.feedback-list {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 800px) {
  .feedback-layout {
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 1.15rem;
  }
}

.feedback-list blockquote {
  margin: 0;
  padding: 1.15rem 1.2rem 1.05rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.feedback-list p {
  font-size: 1.05rem;
  line-height: 1.5;
}

.stars {
  margin-bottom: 0.45rem;
  color: #a67c1a;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.feedback-list footer {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Why */

.band {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.band h2 {
  color: var(--white);
}

.band h2::before {
  background: #a9c9ff;
}

.band .lead,
.why-item p {
  color: var(--blue-on-navy);
}

.band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

.circuit-band {
  position: absolute;
  top: -36px;
  right: -28px;
  width: 240px;
  height: auto;
  color: var(--white);
  opacity: 0.14;
  pointer-events: none;
}

.why-grid {
  display: grid;
  gap: 1.75rem 1.5rem;
}

.why-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.why-item h3 {
  margin-bottom: 0.4rem;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 1.15rem;
  align-items: stretch;
}

.contact-card {
  font-style: normal;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.7rem 1.5rem 1.5rem;
}

.contact-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-place {
  margin-top: 0.2rem;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

.contact-list dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.contact-list dd {
  margin-top: 0.18rem;
  font-size: 1.125rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.directions {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-actions .btn {
  width: 100%;
  white-space: nowrap;
}

.map-frame {
  position: relative;
  min-height: 320px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #e7eef8;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  height: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  background-color: #e7eef8;
  background-image:
    linear-gradient(rgba(8, 32, 80, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 32, 80, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

.map-pin {
  width: 36px;
  height: 36px;
  margin-bottom: 0.55rem;
  color: var(--navy);
}

.map-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.map-copy {
  max-width: 18rem;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.map-loc {
  margin-top: 0.7rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Footer */

.site-footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: 2.2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.footer-name span {
  margin: 0 0.35rem;
  opacity: 0.7;
}

.footer-tag,
.footer-place {
  margin-top: 0.3rem;
  color: var(--blue-on-navy);
}

.footer-place a {
  color: inherit;
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
}

.footer-nav a {
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a.is-active {
  text-decoration: underline;
}

/* Mobile contact bar */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
}

.mobile-cta .btn {
  min-height: 46px;
  padding-inline: 0.6rem;
}

/* Layout breakpoints */

@media (max-width: 719px) {
  .hero-points {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-top: 1.2rem;
    padding-top: 0.9rem;
  }

  .hero-points li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
  }

  .hero-points span {
    margin-top: 0;
    text-align: right;
  }
}

@media (max-width: 340px) {
  .brand-sub {
    display: none;
  }

  .brand img {
    height: 40px;
  }

  .brand-name {
    font-size: 0.95rem;
  }
}

@media (max-width: 899px) {
  .hero-logo {
    order: -1;
  }

  .hero-logo img {
    width: min(210px, 58vw);
  }

  .hero-grid {
    gap: 1.35rem;
  }
}

@media (max-width: 719px) {
  html {
    scroll-padding-top: 84px;
    scroll-padding-bottom: 92px;
  }

  .section {
    padding: 3.25rem 0;
  }

  .hero {
    padding: 1.35rem 0 1.5rem;
  }

  .hero-logo img {
    width: min(180px, 52vw);
  }

  /* Short phones: keep the headline and buttons above the contact bar. */
  @media (max-height: 740px) {
    .hero-logo {
      display: none;
    }
  }

  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  body.nav-open {
    overflow: hidden;
  }

  .mobile-cta {
    display: grid;
  }

  .header-inner {
    flex-wrap: wrap;
    padding-block: 0.55rem;
  }

  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.35rem;
  }

  .site-nav a {
    padding: 0.8rem 0.15rem;
    border-bottom: 1px solid var(--paper);
  }

  .site-nav a.nav-cta {
    margin-top: 0.75rem;
    border-bottom: 0;
    text-align: center;
  }

  html.js .header-inner {
    flex-wrap: nowrap;
    height: var(--header-h);
    padding-block: 0;
  }

  html.js .nav-toggle {
    display: flex;
  }

  html.js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.35rem 1rem 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(8, 32, 80, 0.06);
  }

  html.js .site-nav.is-open {
    display: flex;
  }
}

@media (min-width: 700px) {
  .service-grid,
  .feedback-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 3.5rem;
    align-items: center;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 4rem 0 4.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 3rem;
  }

  .hero-logo {
    justify-content: flex-end;
  }

  .hero-logo img {
    width: min(100%, 440px);
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem 1.25rem;
  }

  .why-item {
    grid-column: span 2;
  }

  .why-item:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .why-item:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

@media (min-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .circuit-hero {
    display: block;
    width: 136px;
    left: max(12px, calc((100% - 1120px) / 2 - 148px));
  }
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (hover: hover) {
  .service-card:hover {
    border-color: #b7c9e4;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .btn,
  .service-card,
  .contact-card,
  .about-panel,
  .map-frame,
  .nav-cta {
    border: 1px solid ButtonText;
  }
}

@media print {
  .site-header,
  .mobile-cta,
  .circuit-hero,
  .circuit-band,
  .nav-toggle {
    display: none !important;
  }

  body {
    padding: 0;
    color: #000;
    background: #fff;
  }

  .band,
  .about-panel,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
  }

  .band .lead,
  .why-item p,
  .stat-label,
  .footer-tag,
  .footer-place,
  .site-footer a {
    color: #000 !important;
  }

  a {
    text-decoration: underline;
  }
}
