/* River City Electric — brand styles */
:root {
  --navy: #1B2B48;
  --navy-deep: #121E33;
  --slate: #3A4F6A;
  --slate-card: #2A3D58;
  --slate-muted: #8A9BB0;
  --gold: #C5A059;
  --gold-hover: #D4B36E;
  --gold-dark: #8B7038;
  --offwhite: #F7F4EF;
  --cream: #F0EBE3;
  --white: #FFFFFF;
  --text-body: #4A5568;
  --radius: 24px;
  --radius-sm: 16px;
  --radius-pill: 999px;
  --shadow: 0 12px 40px rgba(27, 43, 72, 0.12);
  --header-offset: 0px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--offwhite);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin: 0 0 0.5em;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section { padding: 4.5rem 0; }
.section--tight { padding: 3.5rem 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.eyebrow--center { justify-content: center; width: 100%; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.75rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  color: var(--navy);
}

.section-head p {
  margin: 0.75rem 0 0;
  color: var(--slate);
  font-size: 1.05rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.75rem 1rem;
  z-index: 10000;
  font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Utility bar */
.utility-bar {
  background: var(--navy-deep);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}
.utility-bar__left { opacity: 0.95; }
.utility-bar__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.utility-bar a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.85rem;
  font-weight: 500;
}
.utility-bar a:hover { color: var(--gold); }
.utility-bar svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  min-height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img, .logo svg {
  height: 60px;
  width: auto;
  max-width: 72px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--gold-hover); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-hover); color: var(--navy-deep); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn--outline:hover { border-color: var(--white); color: var(--white); }
.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }
.btn--ghost-slate {
  background: transparent;
  color: var(--white);
  border-color: var(--slate-muted);
}
.btn--block { width: 100%; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

.btn-call-mobile {
  display: none;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
}
.btn-call-mobile:hover { color: var(--navy-deep); background: var(--gold-hover); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(197,160,89,0.4);
  border-radius: 8px;
  color: var(--gold);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--gold);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #243A5C 55%, var(--slate-card) 100%);
  color: var(--white);
  padding: 4rem 0 4.5rem;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 14ch;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}
.hero__lead {
  color: rgba(247, 244, 239, 0.88);
  font-size: 1.08rem;
  max-width: 38ch;
  margin: 0 0 1.75rem;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.hero-card {
  background: var(--slate);
  border-radius: var(--radius);
  padding: 0.85rem;
  box-shadow: var(--shadow);
}
.hero-card__img {
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.hero-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-card__caption {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
  text-align: center;
  padding: 1rem 0.5rem 0.35rem;
  letter-spacing: 0.02em;
}

/* Value strip */
.values {
  background: var(--offwhite);
  padding: 2.5rem 0;
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}
.values__panel {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}
.values__intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.values__intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.values__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1rem;
  text-align: center;
}
.value-card__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  color: var(--gold);
}
.value-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.value-card p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--slate);
  line-height: 1.5;
}
.free-estimates {
  margin-top: 1.5rem;
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
}
.free-estimates h3 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.free-estimates p { margin: 0; font-size: 0.95rem; }

/* Services */
.services { background: var(--white); }
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
.service-card {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.35rem;
}
.service-card--highlight {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
}
.service-card--highlight h3 { color: var(--white); }
.service-card__icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.service-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Dealers */
.dealers { background: var(--offwhite); }
.dealer-card {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.35rem;
}
.dealer-card--highlight {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
}
.dealer-card--highlight h3 { color: var(--white); }
.dealer-card__icon {
  width: 32px;
  height: 32px;
  color: var(--gold);
  margin-bottom: 1rem;
}
.dealer-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.dealer-card p { margin: 0; font-size: 0.95rem; }

/* Why choose */
.why {
  background: var(--navy);
  color: var(--white);
}
.why .section-head h2 { color: var(--white); }
.why .eyebrow { justify-content: center; }
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.why-card {
  background: var(--slate-card);
  border: 1px solid rgba(138, 155, 176, 0.25);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}
.why-card__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  color: var(--gold);
}
.why-card h3 {
  color: var(--white);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
}
.why-card p {
  margin: 0;
  color: rgba(247, 244, 239, 0.85);
  font-size: 0.98rem;
}

/* Service area */
.area { background: var(--offwhite); }
.area__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.area h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  max-width: 18ch;
}
.towns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 2rem;
  margin-top: 1.5rem;
}
.towns li {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  padding: 0.25rem 0;
}
.area-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.area-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Testimonials */
.testimonials { background: var(--white); }
.t-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.t-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  color: var(--white);
}
.t-card--wide { grid-column: 1 / -1; }
.t-card__star {
  width: 22px;
  height: 22px;
  color: var(--gold);
  margin-bottom: 1rem;
}
.t-card blockquote {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
}
.t-card cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

/* Footer CTA */
.footer-cta {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0 0;
}
.footer-cta__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 3rem;
}
.footer-cta h2 {
  color: var(--white);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  max-width: 18ch;
}
.footer-cta__text {
  color: var(--slate-muted);
  margin: 0.75rem 0 0;
  max-width: 42ch;
}
.footer-cta__btns {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.site-footer {
  border-top: 1px solid rgba(138, 155, 176, 0.25);
  padding: 1.5rem 0 2rem;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-footer__brand img {
  height: 48px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  border-radius: 8px;
}
.site-footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: 1.25rem;
}
.site-footer__copy {
  color: var(--slate-muted);
  font-size: 0.85rem;
  margin: 0;
}


/* Hero local SEO phrase */
.hero__local {
  margin: -0.35rem 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.area__intro {
  margin: 0 0 1.25rem;
  color: var(--slate);
  max-width: 48ch;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}
.faq-item {
  background: var(--white);
  border: 1px solid rgba(27, 43, 72, 0.08);
  border-radius: var(--radius-sm);
  padding: 0;
  box-shadow: 0 4px 16px rgba(27, 43, 72, 0.04);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  padding: 1.1rem 1.35rem;
  position: relative;
  padding-right: 2.75rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0;
  padding: 0 1.35rem 1.25rem;
  color: var(--text-body);
}
.faq-item a { font-weight: 600; }

.site-footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}
.site-footer__nap {
  margin: 0;
  color: rgba(247, 244, 239, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
}
.site-footer__nap a {
  color: var(--gold);
  font-weight: 700;
}
.site-footer__nap a:hover { color: var(--gold-hover); }

@media (max-width: 700px) {
  .site-footer__meta {
    align-items: flex-start;
    text-align: left;
  }
}

/* Form pages */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, #243A5C 100%);
  color: var(--white);
  padding: 3rem 0 2.5rem;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  max-width: 18ch;
}
.page-hero p {
  color: rgba(247,244,239,0.88);
  max-width: 48ch;
  margin: 0.75rem 0 0;
}

.form-section { padding: 3rem 0 4.5rem; }
.form-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-aside {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-aside h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.form-aside p { color: rgba(255,255,255,0.85); margin: 0 0 1rem; }
.form-aside ul { margin: 1rem 0; }
.form-aside li {
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
  color: rgba(255,255,255,0.9);
}
.form-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.form-aside a { color: var(--gold); font-weight: 700; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}
.form-group .req { color: var(--gold-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #D0D5DD;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--offwhite);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.25);
  background: var(--white);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-hint {
  font-size: 0.82rem;
  color: var(--slate);
  margin: 0.35rem 0 0;
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}
.form-actions { margin-top: 1.5rem; }
.form-note {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 1rem;
}
.alert {
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.alert--error {
  background: #FDECEC;
  color: #8B1E1E;
  border: 1px solid #F5C2C2;
}
.alert--success {
  background: #E8F5E9;
  color: #1B5E20;
  border: 1px solid #A5D6A7;
}

.thank-you {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 0 1rem;
}
.thank-you h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.thank-you p { margin: 1rem 0 1.75rem; color: var(--slate); }
.thank-you__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  color: var(--gold);
}

/* Mobile nav panel */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .btn-call-mobile { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: auto 0 0 0;
    top: var(--header-bottom, 110px);
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 2rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
    border-top: 1px solid rgba(197,160,89,0.2);
    max-height: calc(100vh - var(--header-bottom, 110px));
    overflow-y: auto;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
  }
  .nav-actions .btn { display: none; }
  .hero__grid,
  .area__grid,
  .footer-cta__top,
  .form-layout {
    grid-template-columns: 1fr;
  }
  .values__grid { grid-template-columns: 1fr 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .t-grid { grid-template-columns: 1fr; }
  .t-card--wide { grid-column: auto; }
  .hero { padding: 2.5rem 0 3rem; }
  .hero h1 {
    max-width: none;
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .utility-bar__right .util-email { display: none; }
  .utility-bar__left { font-size: 0.65rem; letter-spacing: 0.06em; }
  .values__grid { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .logo img, .logo svg { height: 52px; width: auto; max-width: 60px; }
  .container { width: min(100% - 1.5rem, var(--max)); }
  .section { padding: 3.25rem 0; }
  .form-card, .form-aside { padding: 1.35rem; }
  .hero-card { padding: 0.55rem; }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 1.7rem;
    line-height: 1.2;
  }
  .btn { padding: 0.8rem 1.15rem; font-size: 0.9rem; }
  .nav-bar { gap: 0.5rem; }
}

/* Prevent overflow helpers */
.site-header, .hero, .section, .footer-cta {
  max-width: 100vw;
}
