/* Arizona Electrical Solutions — Design-Build landing page */

:root {
  --navy: #0a1f33;
  --navy-deep: #061421;
  --slate: #1c3349;
  --amber: #f5a623;
  --amber-deep: #e08e0b;
  --ink: #11242f;
  --gray: #5a6b78;
  --line: #e4e9ee;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 31, 51, 0.10);
  --shadow-lg: 0 20px 50px rgba(10, 31, 51, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1140px, 92%); margin: 0 auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

.accent { color: var(--amber); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-deep);
  margin-bottom: 0.6rem;
}
.eyebrow.center, h2.center, .center { text-align: center; }
.lede { font-size: 1.12rem; color: var(--gray); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--amber);
  color: var(--navy-deep);
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--amber-deep); box-shadow: 0 8px 20px rgba(245, 166, 35, 0.35); }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.02rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); box-shadow: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 31, 51, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; }
.logo { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: #fff; font-weight: 800; }
.logo-mark { color: var(--amber); font-size: 1.3rem; }
.logo-text { font-size: 1.02rem; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav a:hover { color: #fff; }
.nav a.btn { color: var(--navy-deep); }

/* Hero */
.hero {
  background: radial-gradient(900px 500px at 80% -10%, rgba(245,166,35,0.18), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.hero-inner { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 3rem; align-items: center; }
.hero-copy .lede { color: rgba(255,255,255,0.78); margin-top: 1.1rem; max-width: 38ch; }
.hero h1 { margin-bottom: 0.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1rem; font-size: 0.88rem; color: rgba(255,255,255,0.6); }

.hero-card {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-lg);
}
.hero-card-badge {
  position: absolute; top: -12px; left: 1.6rem;
  background: var(--amber); color: var(--navy-deep);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.hero-card h3 { margin: 0.4rem 0 1rem; font-size: 1.18rem; }
.hero-card-list { list-style: none; margin-bottom: 1.3rem; }
.hero-card-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem; font-size: 0.95rem; color: var(--slate); }
.hero-card-list li::before { content: "⚡"; position: absolute; left: 0; color: var(--amber-deep); }

/* Trust bar */
.trustbar { background: var(--navy-deep); color: rgba(255,255,255,0.75); }
.trustbar-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; padding: 0.9rem 0; font-size: 0.85rem; font-weight: 500; }
.trustbar span[aria-hidden] { color: var(--amber); }

/* Sections */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section h2.center { margin-bottom: 2.5rem; }

/* Grids & cards */
.grid { display: grid; gap: 1.4rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { font-size: 1.9rem; margin-bottom: 0.7rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--gray); font-size: 0.95rem; }

/* Steps */
.steps .step { background: #fff; border-radius: var(--radius); padding: 1.8rem 1.5rem; border: 1px solid var(--line); position: relative; }
.step-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem; margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--gray); font-size: 0.95rem; }

/* Guide / lead magnet */
.guide-section { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.guide-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.guide-copy .lede { color: rgba(255,255,255,0.8); margin: 1rem 0 1.5rem; }
.checklist { list-style: none; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.85rem; color: rgba(255,255,255,0.92); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--amber); color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800;
}
.checklist em { color: var(--amber); font-style: italic; }

/* Form */
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 1.35rem; }
.form-sub { color: var(--gray); font-size: 0.92rem; margin: 0.4rem 0 1.3rem; }
.field { margin-bottom: 0.95rem; }
.field label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--slate); margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fbfcfd;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,166,35,0.18);
}
.checkbox { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0.4rem 0 1.2rem; font-size: 0.9rem; color: var(--slate); cursor: pointer; }
.checkbox input { width: auto; margin-top: 0.2rem; }
.form-fine { font-size: 0.75rem; color: var(--gray); margin-top: 0.8rem; text-align: center; }
.hidden-field { display: none; }

/* CEU */
.ceu { background: var(--bg-alt); }
.ceu-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.ceu .lede { margin: 1rem auto 1.6rem; }
.ceu-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-bottom: 1.8rem; }
.pill { background: #fff; border: 1px solid var(--line); color: var(--slate); padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.75); padding: 3rem 0 1.5rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand { max-width: 420px; }
.footer-brand strong { color: #fff; font-size: 1.05rem; margin-left: 0.4rem; }
.footer-brand p { margin-top: 0.6rem; font-size: 0.92rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact a { color: var(--amber); text-decoration: none; font-weight: 600; }
.footer-bottom { margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* Skip link (accessibility) */
.skip-link {
  position: absolute; left: 8px; top: -48px;
  background: var(--amber); color: var(--navy-deep);
  font-weight: 700; padding: 0.6rem 1rem; border-radius: 8px;
  z-index: 100; transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }

/* Header "main site" link */
.nav .nav-home { font-weight: 600; }

/* Form: required/optional markers, error states, placeholder contrast */
.req { color: var(--amber-deep); font-weight: 800; }
.opt { color: var(--gray); font-weight: 400; font-size: 0.78rem; }
.field-error { display: block; color: #c0392b; font-size: 0.8rem; margin-top: 0.25rem; min-height: 0.9rem; }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.15); }
.field input::placeholder, .field textarea::placeholder { color: #6b7a86; opacity: 1; }

/* Persona / FAQ card links */
.card-link { display: inline-block; margin-top: 0.7rem; color: var(--amber-deep); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* FAQ */
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq-inner h2.center { margin-bottom: 2rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.4rem; }
.faq-item summary { font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; position: relative; padding-right: 1.6rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--amber-deep); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--gray); margin-top: 0.7rem; font-size: 0.96rem; }
.faq-item a { color: var(--amber-deep); font-weight: 600; }

/* Footer additions */
.footer-creds { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 0.6rem; }
.footer-contact address { font-style: normal; color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 0.2rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--amber); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .guide-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
