/* Einstein Electric LLC — Mobile-first contractor styles */
:root {
  /* Brand from logo: navy EINSTEIN, bright blue accents, grey ELECTRIC */
  --navy: #0b2f63;
  --navy-mid: #0e3d7a;
  --electric: #1670ac;
  --electric-dark: #125a8a;
  --brand-grey: #808487;
  --sky: #e8f4fb;
  --white: #ffffff;
  --off-white: #f5f9fc;
  --text: #1a2332;
  --muted: #5a6a7e;
  --border: #d5dee9;
  --success: #1e7a4a;
  --cta-warm: #f5a623;
  --cta-warm-dark: #d4890f;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(11, 47, 99, 0.12);
  --max: 1100px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-mid); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top bar */
.top-bar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}
.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  align-items: center;
}
.top-bar a { color: var(--white); }
.top-bar a:hover { color: var(--electric); text-decoration: none; }

/* Header / Nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(11, 31, 58, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}
.logo:hover { text-decoration: none; }
.logo img {
  height: 48px;
  width: auto;
  max-width: min(160px, 42vw);
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
}
@media (min-width: 768px) {
  .logo img {
    height: 56px;
    max-width: 180px;
  }
}
@media (min-width: 1024px) {
  .logo img {
    height: 64px;
    max-width: 200px;
  }
}

.nav-toggle {
  display: flex;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle span { transition: 0.2s; }

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
}
.main-nav.open { display: block; }
.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.main-nav a {
  display: block;
  padding: 0.65rem 0.75rem;
  color: var(--navy);
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--sky);
  text-decoration: none;
}
.main-nav a.nav-schedule {
  background: var(--cta-warm);
  color: var(--navy);
}
.main-nav a.nav-schedule:hover {
  background: var(--cta-warm-dark);
  color: var(--white);
}

.header-ctas {
  display: none;
  gap: 0.5rem;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.3;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--electric);
  color: var(--white);
  border-color: var(--electric);
}
.btn-primary:hover {
  background: var(--electric-dark);
  border-color: var(--electric-dark);
  color: var(--white);
}
.btn-secondary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 55%, #1670ac 100%);
  color: var(--white);
  padding: 2.75rem 0 3rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 0.85rem;
  font-weight: 800;
}
.hero p.lead {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Sections */
main { flex: 1; }
.section { padding: 3rem 0; }
.section-alt { background: var(--off-white); }
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-weight: 800;
}
.section-sub {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 2rem;
}

/* Cards grid */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.card p { color: var(--muted); font-size: 0.95rem; }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--sky);
  color: var(--navy-mid);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}

/* Trust strip */
.trust-strip {
  background: var(--sky);
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  text-align: center;
}
.trust-item {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 600;
}
.trust-item span {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 0.5rem;
}
.cta-band p {
  opacity: 0.9;
  margin-bottom: 1.25rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* Page header (inner pages) */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 0;
}
.page-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 0.35rem;
}
.page-header p { opacity: 0.9; max-width: 36rem; }

/* About / content prose */
.prose { max-width: 42rem; }
.prose p { margin-bottom: 1rem; color: var(--text); }
.prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.prose li { margin-bottom: 0.35rem; }
.prose strong { color: var(--navy); }

.info-box {
  background: var(--sky);
  border-left: 4px solid var(--electric);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.25rem;
  margin: 1.5rem 0;
}
.info-box h3 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.info-box p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.contact-card h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}
.contact-list li {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}
.contact-list strong {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.15rem;
}
.contact-list a {
  color: var(--navy-mid);
  font-weight: 600;
  font-size: 1.05rem;
}

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--navy-mid);
  outline-offset: 1px;
  border-color: var(--navy-mid);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Schedule AI chat UI */
.schedule-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.chat-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
}
.chat-header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--electric);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.chat-header h2 { font-size: 1.05rem; margin: 0; }
.chat-header p { font-size: 0.8rem; opacity: 0.85; margin: 0; }
.chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 420px;
}
.msg {
  max-width: 92%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.msg-bot {
  background: var(--white);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg-user {
  background: var(--navy);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg-bot strong { color: var(--navy); }
.chat-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.25rem 0.5rem;
  background: var(--off-white);
}
.choice-btn {
  background: var(--white);
  border: 1.5px solid var(--navy-mid);
  color: var(--navy);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.choice-btn:hover {
  background: var(--navy);
  color: var(--white);
}
.chat-input-area {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--white);
  display: none;
}
.chat-input-area.visible { display: block; }
.chat-input-row {
  display: flex;
  gap: 0.5rem;
}
.chat-input-row input {
  flex: 1;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.chat-input-row button {
  flex-shrink: 0;
}
.schedule-sidebar .card { margin-bottom: 1rem; }
.schedule-sidebar h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.schedule-sidebar p, .schedule-sidebar li {
  font-size: 0.9rem;
  color: var(--muted);
}
.schedule-sidebar ul {
  list-style: disc;
  padding-left: 1.15rem;
  margin-top: 0.5rem;
}
.schedule-sidebar li { margin-bottom: 0.3rem; }

.confirm-panel {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.confirm-panel.visible { display: block; }
.confirm-panel .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e6f5ed;
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
}
.confirm-panel h2 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.confirm-panel p {
  color: var(--muted);
  margin-bottom: 0.75rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.summary-box {
  text-align: left;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin: 1.25rem auto;
  max-width: 28rem;
  font-size: 0.9rem;
}
.summary-box dt {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.65rem;
}
.summary-box dt:first-child { margin-top: 0; }
.summary-box dd { color: var(--text); margin: 0.15rem 0 0; }

/* Services list detail */
.service-list .card { margin-bottom: 0; }
.service-list .card h3 { display: flex; align-items: center; gap: 0.5rem; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.site-footer a {
  color: rgba(255,255,255,0.85);
}
.site-footer a:hover { color: var(--electric); }
.site-footer p, .site-footer li {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;
  line-height: 0;
}
.footer-brand:hover { text-decoration: none; }
.footer-logo {
  height: 140px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
  padding: 0.35rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.about-logo-wrap {
  margin: 0 0 1.75rem;
  display: flex;
  justify-content: flex-start;
}
.about-logo {
  height: auto;
  width: min(280px, 100%);
  max-width: 280px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem;
  box-shadow: var(--shadow);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.75;
}

/* Desktop */
@media (min-width: 768px) {
  .top-bar .container { justify-content: space-between; }
  .nav-toggle { display: none; }
  .main-nav {
    display: block;
    position: static;
    border: none;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }
  .main-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }
  .main-nav a {
    padding: 0.45rem 0.7rem;
    font-size: 0.9rem;
  }
  .header-ctas { display: flex; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
  .schedule-layout { grid-template-columns: 1.6fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .hero { padding: 3.5rem 0 4rem; }
}

@media (min-width: 1024px) {
  .card-grid.three { grid-template-columns: repeat(3, 1fr); }
  .main-nav a { padding: 0.5rem 0.85rem; }
}

/* Care Plan / membership */
.pricing-compare {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.pricing-card-featured {
  border: 2px solid var(--electric);
  background: linear-gradient(180deg, #eef7fc 0%, var(--white) 40%);
}
.pricing-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.pricing-card-featured .pricing-label {
  color: var(--electric-dark);
}
.pricing-card h2 {
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.price-display {
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.price-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--navy);
}
.price-period {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
}
.pricing-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.benefit-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.benefit-list li {
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}
.benefit-list strong { color: var(--navy); }
.fine-print {
  max-width: 46rem;
}
.fine-print ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.fine-print li {
  margin-bottom: 0.65rem;
}
.fine-print strong { color: var(--navy); }

@media (min-width: 768px) {
  .pricing-compare { grid-template-columns: 1.2fr 1fr; align-items: start; }
}

/* Service list H2s (SEO headings) */
.service-list .card h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

/* Locations / service areas */
.location-grid .location-card h2 {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}
.location-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.location-ctas .btn {
  font-size: 0.875rem;
  padding: 0.5rem 0.9rem;
}
@media (min-width: 768px) {
  .location-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .location-grid { grid-template-columns: repeat(3, 1fr); }
}
