/* ============================================================
   AZM Electrical Contractors
   Website by Parallax
   ============================================================ */

:root {
  --red: #E23030;
  --red-hot: #FF4A3D;
  --red-deep: #9E1A1A;

  --ink-000: #070809;
  --ink-050: #0B0C0E;
  --ink-100: #101216;
  --ink-200: #16191F;
  --ink-300: #1E222A;
  --ink-400: #2A2F39;

  --paper: #F3F4F6;
  --paper-dim: #A8AEB9;
  --paper-mute: #7C838F;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --radius-lg: 22px;

  --font: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --callbar-h: 0px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--ink-050);
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--callbar-h);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: 12px 18px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ── Type ──────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }

h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }

.eyebrow {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .9rem;
}

.lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--paper-dim); }
.muted { color: var(--paper-mute); }
.small { font-size: .875rem; }
.accent { color: var(--red); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700; font-size: .96rem; letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(226, 48, 48, .85);
}
.btn-primary:hover { background: var(--red-hot); transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--ink-400);
  color: var(--paper);
  background: rgba(255,255,255,.02);
}
.btn-ghost:hover { border-color: var(--red); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ── Icons (pure CSS, no external assets) ──────────────────── */
.ico-phone, .ico-pin, .ico-clock {
  width: 1em; height: 1em; flex: none;
  background: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain;    mask-size: contain;
  -webkit-mask-position: center; mask-position: center;
}
.ico-phone {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.4 11.4 0 0 0 .57 3.6 1 1 0 0 1-.25 1z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.4 11.4 0 0 0 .57 3.6 1 1 0 0 1-.25 1z'/%3E%3C/svg%3E");
}
.ico-pin {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}
.ico-clock {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 10.6V6h-2v7.4l5 3 1-1.7z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 10.6V6h-2v7.4l5 3 1-1.7z'/%3E%3C/svg%3E");
}
.ico-phone.big, .ico-pin.big, .ico-clock.big { width: 1.5rem; height: 1.5rem; color: var(--red); }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 12, 14, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 74px;
}
.brand img { height: 38px; width: auto; }
.nav {
  margin-left: auto;
  display: flex; gap: 2rem;
  font-size: .93rem; font-weight: 600;
}
.nav a { color: var(--paper-dim); position: relative; padding: .35rem 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--red); transition: right .28s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { right: 0; }

.header-call { padding: .68rem 1.15rem; font-size: .9rem; background: var(--red); color: #fff; }
.header-call:hover { background: var(--red-hot); }

@media (max-width: 900px) {
  .nav { display: none; }
  .header-call { margin-left: auto; }
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 78% 8%, rgba(226, 48, 48, .20), transparent 62%),
    radial-gradient(900px 520px at 10% 90%, rgba(226, 48, 48, .10), transparent 60%),
    linear-gradient(180deg, var(--ink-000) 0%, var(--ink-100) 100%);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, #000 20%, transparent 80%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

.hero-copy h1 { margin-bottom: 1.15rem; }
.hero-copy .lede { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.hero-facts {
  list-style: none; padding: 0;
  margin-top: 2.6rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: 1.5rem;
}
.hero-facts li { display: flex; flex-direction: column; gap: .18rem; }
.hero-facts strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.hero-facts span { font-size: .8rem; color: var(--paper-mute); }
@media (max-width: 520px) {
  .hero-facts { grid-template-columns: 1fr; gap: .8rem; }
  .hero-facts li { flex-direction: row; justify-content: space-between; align-items: baseline; }
}

/* Hero art + power-on animation */
.hero-art {
  position: relative;
  margin: 0;
  isolation: isolate;
}
.hero-art img {
  width: 100%;
  border-radius: var(--radius-lg);
  animation: power-on 2.6s var(--ease) both;
}
.hero-arc {
  position: absolute; inset: -12% -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(226,48,48,.42), transparent 62%);
  filter: blur(30px);
  animation: arc-breathe 5.5s ease-in-out 2.4s infinite;
}

@keyframes power-on {
  0%   { opacity: 0; filter: brightness(.25) saturate(.4); transform: scale(.985); }
  14%  { opacity: 1; filter: brightness(1.75) saturate(1.25); }
  20%  { opacity: .25; filter: brightness(.3) saturate(.5); }
  27%  { opacity: 1; filter: brightness(1.5); }
  33%  { opacity: .5; filter: brightness(.6); }
  42%  { opacity: 1; filter: brightness(1.25); }
  55%  { opacity: .88; filter: brightness(.95); }
  100% { opacity: 1; filter: none; transform: scale(1); }
}
@keyframes arc-breathe {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; opacity: 1; filter: none; transform: none; }
  .hero-arc { animation: none; opacity: .7; }
  .btn, .nav a::after, .shot img, .service { transition: none !important; }
}

/* ── Sections ──────────────────────────────────────────────── */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-alt { background: var(--ink-100); border-block: 1px solid rgba(255,255,255,.06); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head h2 { margin-bottom: .8rem; }
.section-sub { color: var(--paper-dim); }

/* ── Services ──────────────────────────────────────────────── */
.services {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.service {
  position: relative;
  display: flex; flex-direction: column; gap: .9rem;
  padding: 1.5rem 1.35rem 1.6rem;
  background: linear-gradient(160deg, var(--ink-200), var(--ink-100));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.service::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  transform: scaleY(0); transform-origin: top;
  transition: transform .32s var(--ease);
}
.service:hover {
  transform: translateY(-4px);
  border-color: rgba(226,48,48,.45);
  box-shadow: 0 22px 46px -26px rgba(0,0,0,.9);
}
.service:hover::before { transform: scaleY(1); }
.svc-num {
  font-size: .72rem; font-weight: 800; letter-spacing: .18em;
  color: var(--red);
  opacity: .8;
}
.service h3 { color: var(--paper); }

.services-cta { margin-top: 2rem; color: var(--paper-dim); }
.services-cta a { color: var(--red); font-weight: 700; border-bottom: 1px solid rgba(226,48,48,.4); }
.services-cta a:hover { color: var(--red-hot); }

/* ── Gallery ───────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-300);
  border: 1px solid rgba(255,255,255,.07);
  aspect-ratio: 1 / 1;
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease), filter .35s var(--ease);
  filter: saturate(.92) contrast(1.03);
}
.shot:hover img { transform: scale(1.06); filter: saturate(1.05) contrast(1.05); }

/* ── About ─────────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-copy p + p { margin-top: 1rem; color: var(--paper-dim); }
.about-copy .lede { margin-bottom: 0; }
.about-copy h2 { margin-bottom: 1rem; }

.values {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.values li {
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background: var(--ink-200);
}
.values h3 { margin-bottom: .45rem; }
.values p { font-size: .9rem; color: var(--paper-mute); line-height: 1.5; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .values { grid-template-columns: 1fr; }
}

/* ── Two-column panels ─────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.panel h2 { margin-bottom: .9rem; }
.panel p { color: var(--paper-dim); }
.panel p + p { margin-top: .9rem; }

.hours {
  width: 100%;
  border-collapse: collapse;
  margin-top: .4rem;
  font-size: .95rem;
}
.hours th, .hours td {
  padding: .78rem .2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
}
.hours th { font-weight: 600; color: var(--paper-dim); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.hours .closed td { color: var(--paper-mute); font-weight: 500; }

/* ── Contact ───────────────────────────────────────────────── */
.contact-info h2 { margin-bottom: 1.6rem; }

.contact-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background: var(--ink-200);
  margin-bottom: 12px;
  transition: border-color .24s var(--ease), transform .24s var(--ease);
}
a.contact-card:hover { border-color: var(--red); transform: translateY(-2px); }
.contact-card strong { display: block; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.contact-card em { font-style: normal; font-size: .85rem; color: var(--paper-mute); }

/* ── Quote form ────────────────────────────────────────────── */
.quote-panel {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(226,48,48,.12), transparent 70%),
    var(--ink-200);
  scroll-margin-top: 100px;
}
.quote-panel h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.quote-panel > .muted { margin-bottom: 1.5rem; font-size: .9rem; }

.field { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .42rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.field label { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--paper-dim); }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--paper-mute); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .9rem;
  background: var(--ink-050);
  border: 1px solid var(--ink-400);
  border-radius: 10px;
  color: var(--paper);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226,48,48,.18);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237C838F'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  background-size: 1.35rem;
  padding-right: 2.4rem;
}
.field select option { background: var(--ink-100); color: var(--paper); }

.form-note { margin-top: .9rem; font-size: .87rem; color: var(--paper-dim); min-height: 1.2em; }
.form-note.error { color: var(--red-hot); font-weight: 600; }
.quote-panel .small { margin-top: .9rem; }
.quote-panel .small a { color: var(--red); font-weight: 700; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink-000);
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
}
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.footer-brand img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--paper-mute); font-size: .92rem; max-width: 34ch; }

.footer-col { display: flex; flex-direction: column; gap: .55rem; }
.footer-col h4 {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--paper); margin-bottom: .4rem;
}
.footer-col a, .footer-col address {
  color: var(--paper-mute); font-size: .92rem; font-style: normal; line-height: 1.55;
}
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .84rem;
  color: var(--paper-mute);
}
.credit { color: var(--paper-dim); font-weight: 600; letter-spacing: .02em; }

/* ── Sticky mobile call bar ────────────────────────────────── */
.callbar { display: none; }

@media (max-width: 760px) {
  :root { --callbar-h: 74px; }

  .callbar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(7, 8, 9, .93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .callbar-call {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .95rem 1rem;
    background: var(--red); color: #fff;
    border-radius: 999px;
    font-weight: 800; font-size: 1rem;
  }
  .callbar-call:active { background: var(--red-hot); }
  .callbar-quote {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .95rem 1.3rem;
    border: 1px solid var(--ink-400);
    border-radius: 999px;
    font-weight: 700; font-size: .95rem;
    color: var(--paper);
  }
  .quote-panel { scroll-margin-top: 90px; }
}
