/* All Valley Electrical — landing styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;1,6..96,400&display=swap');

:root {
  --navy:   #0b3a66;
  --red:    #c41e3a;
  --red-dk: #9e1730;
  --blue:   #1f78d1;
  --amber:  #f4b400;
  --green:  #1a9e5c;
  --ink:    #1b2733;
  --muted:  #5b6b7b;
  --bg:     #f7f9fc;
  --card:   #ffffff;
  --border: #dde4ed;
  --radius: 12px;
  --max:    1020px;
  --heading-font: 'Playfair Display', 'Georgia', serif;
  --body-font:    'Bodoni Moda', 'Didot', 'Bodoni MT', 'Book Antiqua', Georgia, serif;
}

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

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
}

h1, h2, h3, h4 { font-family: var(--heading-font); line-height: 1.15; }
a { color: inherit; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--body-font); font-weight: 500; font-size: 1rem;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--red); color: #fff; letter-spacing: .02em; }
.btn-primary:hover { background: var(--red-dk); }
.btn-full { width: 100%; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: center;
  padding: .85rem 2rem;
  background: var(--navy); color: #fff;
  position: sticky; top: 0; z-index: 20;
  border-bottom: 3px solid var(--red);
}
.brand { font-family: var(--heading-font); font-weight: 700; font-size: 1.15rem; }
.brand a { text-decoration: none; color: #fff; }

/* ── Funnel hero ─────────────────────────────────── */
.funnel-hero {
  background: linear-gradient(135deg, #051e3e 0%, #0b3a66 40%, #1a5c9e 70%, #0d2f55 100%);
  padding: 2rem 1.5rem 2rem;
}
@keyframes heroShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.funnel-center {
  max-width: 860px;
  margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 1.1rem; text-align: center;
}
.funnel-center h1 {
  font-size: clamp(1.15rem, 2.8vw, 2rem);
  color: #fff; margin: 0; font-weight: 800;
  text-transform: capitalize; letter-spacing: .01em;
  line-height: 1.2;
}
.funnel-body {
  font-size: 1.1rem; color: rgba(255,255,255,.82);
  max-width: 640px; margin: 0; line-height: 1.7;
}

/* ── Value props + video thumbnail ───────────────── */
.funnel-mid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  align-items: center;
}
.funnel-bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: row; gap: 1.5rem;
  justify-content: center; flex-wrap: wrap;
}
.funnel-bullets li {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--body-font); font-size: .95rem;
  color: #fff; font-weight: 500; line-height: 1.3;
}
.funnel-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px; margin-top: .1rem;
  border-radius: 50%;
  background: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5L13 4.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Video testimonial thumbnail ─────────────────── */
.video-thumb-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%; max-width: 560px;
  background: linear-gradient(135deg, #1b2733 0%, #0b3a66 100%);
  cursor: pointer;
  box-shadow: 8px 14px 32px rgba(0,0,0,.3);
}
.video-thumb-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.video-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .5rem;
  color: rgba(255,255,255,.55);
  font-family: var(--body-font); font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(196,30,58,.92);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
  pointer-events: none;
}
.video-thumb-wrap:hover .video-play-btn {
  background: var(--red-dk);
  transform: translate(-50%, -50%) scale(1.08);
}
.video-play-btn svg { margin-left: 4px; }
.video-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 100%);
  color: #fff; font-family: var(--body-font); font-size: .8rem;
  padding: .75rem 1rem .6rem;
  font-weight: 500; letter-spacing: .03em;
}

.funnel-cta-wrap { display: flex; justify-content: center; width: 100%; }
.btn-funnel {
  background: linear-gradient(135deg, #2196f3 0%, #42a5f5 50%, #1e88e5 100%);
  color: #fff; font-weight: 700; letter-spacing: .03em;
  box-shadow: 0 4px 18px rgba(33,150,243,.45);
}
.btn-funnel:hover {
  background: linear-gradient(135deg, #42a5f5 0%, #64b5f6 50%, #2196f3 100%);
  box-shadow: 0 6px 24px rgba(33,150,243,.6);
}
@keyframes btnShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 640px) {
  .funnel-bullets { gap: .85rem; }
  .funnel-bullets li { font-size: .88rem; }
}

/* ── Offer section ───────────────────────────────── */
/* ── Brand logos ─────────────────────────────────────── */
.brand-logos-section {
  max-width: var(--max); margin: 2.5rem auto 0;
  padding: 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.brand-logos-label {
  font-size: .8rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 1rem;
}
.brand-logos-row {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}
.brand-logo-badge {
  padding: .45rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: .85rem; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); background: #fff;
  text-transform: uppercase;
}

.offer-section {
  max-width: var(--max); margin: 3.5rem auto 0;
  padding: 0 2rem;
}
.offer-section > h2 {
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: #000; text-align: center;
  margin: 0 0 2rem; font-weight: 700;
}

/* ── Offer grid ─────────────────────────────── */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
  min-height: 480px;
}

/* Card base */
.offer-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}

/* Card 1 — large left, full-bleed image + bottom overlay */
.offer-card-large { grid-row: span 2; }
.offer-img-full {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.offer-img-full-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #8fa8c0 0%, #b8cdd8 100%);
  display: flex; align-items: center; justify-content: center;
  color: #5a7a90; font-family: var(--body-font);
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
}
.offer-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(5,30,62,.92) 0%, rgba(5,30,62,.5) 60%, transparent 100%);
  padding: 3rem 1.5rem 1.75rem;
  color: #fff;
}
.offer-overlay h3 {
  font-family: var(--heading-font); font-size: 1.15rem;
  margin: 0 0 .5rem; font-weight: 700;
}
.offer-overlay p {
  font-family: var(--body-font); font-size: .88rem;
  line-height: 1.65; margin: 0; color: rgba(255,255,255,.85);
}

/* Cards 2 & 3 — split: left image, right text */
.offer-card-split { display: flex; }
.offer-split-img {
  flex: 0 0 50%;
  background: linear-gradient(135deg, #8fa8c0 0%, #b8cdd8 100%);
  display: flex; align-items: center; justify-content: center;
  color: #5a7a90; font-family: var(--body-font);
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  overflow: hidden;
}
.offer-split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-split-text {
  flex: 1; padding: 1.25rem 1.15rem;
  display: flex; flex-direction: column; justify-content: center; gap: .5rem;
}
.offer-split-text h3 {
  font-family: var(--heading-font); font-size: 1rem;
  color: #000; margin: 0; font-weight: 700;
}
.offer-split-text p {
  font-family: var(--body-font); font-size: .84rem;
  color: #222; line-height: 1.6; margin: 0;
}

@media (max-width: 680px) {
  .offer-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: unset;
  }
  .offer-card-large { grid-row: auto; min-height: 280px; }
  .offer-card-split { min-height: 160px; }
}

/* ── Estimate form section ───────────────────────── */
.estimate-section {
  max-width: 640px; margin: 3.5rem auto 4rem;
  padding: 0 1.5rem;
}
.estimate-section h2 {
  color: #000; font-size: 1.4rem; margin: 0 0 1.25rem; text-align: center;
}
.estimate-section .sub {
  text-align: center; color: var(--muted);
  font-family: var(--body-font); font-size: .9rem; margin: 0 0 1.5rem;
}
.estimate-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem 1.75rem;
  box-shadow: 8px 14px 32px rgba(0,0,0,.08);
}

/* ── Brand page hero (index.html) ────────────────── */
.hero { max-width: var(--max); margin: 0 auto; padding: 3rem 2rem 2rem; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin: 0 0 .5rem; color: var(--navy); }
.hero p  { font-size: 1.05rem; color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.25rem 0; }
.trust-h { list-style: none; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; font-weight: 500; }
.trust-h li { font-size: .95rem; }
.services { max-width: var(--max); margin: 0 auto; padding: 1rem 2rem 2.5rem; }
.services h2 { color: var(--navy); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.card h3 { margin: 0 0 .35rem; color: var(--navy); font-size: 1.05rem; }
.card p  { margin: 0; color: var(--muted); font-size: .92rem; }
.estimate { max-width: 640px; margin: 0 auto 3rem; padding: 1.75rem 2rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }

/* ── Shared form elements ────────────────────────── */
.muted  { color: var(--muted); }
.row    { margin-bottom: .8rem; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 520px) { .row.two { grid-template-columns: 1fr; } }
label { display: block; font-weight: 500; font-size: .88rem; font-family: var(--body-font); }
input, select, textarea {
  width: 100%; margin-top: .28rem; padding: .65rem .8rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--body-font); font-size: .95rem; color: var(--ink);
  background: #fff; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,58,102,.09);
}
.hint { font-size: .76rem; color: var(--muted); margin: 0 0 .5rem; font-family: var(--body-font); }
.status { margin-top: .5rem; font-weight: 500; min-height: 1.2em; font-size: .9rem; }
.status.ok  { color: var(--green); }
.status.err { color: #d6336c; }
.callback-promise {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: var(--muted); font-family: var(--body-font); margin-top: .25rem;
}
.callback-promise strong { color: var(--green); font-weight: 600; }

/* ── Blog ────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, #051e3e 0%, #0b3a66 40%, #1a5c9e 70%, #0d2f55 100%);
  padding: 3rem 2rem 2.5rem; text-align: center;
}
.blog-hero h1 {
  font-family: var(--heading-font);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: #fff; margin: 0 0 .6rem;
}
.blog-hero p {
  font-family: var(--body-font); color: rgba(255,255,255,.8);
  font-size: 1rem; max-width: 580px; margin: 0 auto; line-height: 1.65;
}
.blog-container {
  max-width: var(--max); margin: 0 auto; padding: 2.5rem 2rem 4rem;
}

/* Featured post */
.blog-featured {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); background: var(--card);
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  text-decoration: none; color: inherit;
  margin-bottom: 2rem; min-height: 260px;
  transition: box-shadow .15s;
}
.blog-featured:hover { box-shadow: 0 6px 28px rgba(0,0,0,.12); }
.blog-featured-img {
  background: linear-gradient(135deg, #8fa8c0 0%, #b8cdd8 100%);
  background-size: cover; background-position: center;
  transition: opacity 0.3s ease;
}
.blog-featured-body {
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column; justify-content: center; gap: .6rem;
}
.blog-featured-title {
  font-family: var(--heading-font); font-size: 1.35rem;
  color: var(--navy); margin: 0; font-weight: 700; line-height: 1.25;
}
.blog-read-more {
  font-family: var(--body-font); font-size: .88rem;
  color: var(--red); font-weight: 600; margin-top: .25rem;
}

/* Category filters */
.blog-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; row-gap: .5rem; }
.blog-filter-btn {
  padding: .35rem .9rem; border-radius: 20px;
  border: 1.5px solid var(--border); background: transparent;
  font-family: var(--body-font); font-size: .82rem;
  cursor: pointer; color: var(--muted); transition: all .15s;
}
.blog-filter-btn.active, .blog-filter-btn:hover {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

/* Post grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}
.blog-post-card {
  border-radius: 14px; border: 1px solid var(--border);
  background: var(--card); overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .12s;
}
.blog-post-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.blog-card-img {
  height: 150px;
  background: linear-gradient(135deg, #8fa8c0 0%, #b8cdd8 100%);
  background-size: cover; background-position: center;
  transition: opacity 0.3s ease;
}
.blog-card-body {
  padding: 1.1rem 1rem; flex: 1;
  display: flex; flex-direction: column; gap: .35rem;
}
.blog-badge {
  font-size: .7rem; font-family: var(--body-font); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--red);
}
.blog-card-title {
  font-family: var(--heading-font); font-size: .98rem;
  color: var(--navy); margin: 0; font-weight: 700; line-height: 1.3;
}
.blog-card-excerpt {
  font-family: var(--body-font); font-size: .83rem;
  color: var(--muted); line-height: 1.55; margin: 0; flex: 1;
}
.blog-card-date { font-family: var(--body-font); font-size: .74rem; color: var(--muted); }

/* Single post */
#view-post {
  min-height: 100vh;
  background: #fff;
}
.blog-article {
  max-width: 780px; margin: 0 auto; padding: 0 0 4rem;
}
/* Post banner */
.post-banner {
  background: linear-gradient(160deg, #020d1a 0%, #051e3e 50%, #0b3a66 100%);
  padding: 1.25rem 2rem 1.75rem;
  text-align: center;
  position: relative;
}
.post-banner-back {
  font-family: var(--body-font); font-size: .82rem;
  color: rgba(255,255,255,.6); text-decoration: none;
  display: inline-flex; align-items: center; gap: .3rem;
  position: absolute; top: 1.1rem; left: 1.5rem;
}
.post-banner-back:hover { color: #fff; }
.post-logo {
  height: 90px; width: auto;
  mix-blend-mode: screen;
  display: block; margin: 0 auto .75rem;
}
.post-banner-badge {
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.85);
  display: inline-block; margin-bottom: .5rem;
}
.post-title {
  font-family: var(--heading-font); color: #fff;
  font-size: clamp(1.25rem, 3vw, 2rem);
  margin: 0 0 .5rem; line-height: 1.2; font-weight: 800;
}
.post-banner-meta {
  font-family: var(--body-font); font-size: .8rem;
  color: rgba(255,255,255,.55);
  display: flex; justify-content: center; gap: .5rem;
}

/* Post body — inverted pyramid */
.post-body-wrap {
  max-width: 700px; margin: 0 auto;
  padding: 1.75rem 1.5rem 1rem;
}
.post-body > p:first-of-type {
  font-family: var(--body-font); font-size: 1.1rem;
  font-weight: 600; color: var(--navy);
  line-height: 1.75; margin: 0 0 1.4rem;
  padding-bottom: 1.1rem;
  border-bottom: 2px solid var(--border);
}
.post-body p {
  font-family: var(--body-font); font-size: .97rem;
  line-height: 1.85; color: var(--ink); margin: 0 0 1.1rem;
}
.post-body h2 {
  font-family: var(--heading-font); color: var(--navy);
  font-size: 1.15rem; margin: 1.75rem 0 .5rem; font-weight: 700;
}
.btn-navy {
  background: linear-gradient(135deg, #b71c1c 0%, #e53935 50%, #c62828 100%);
  background-size: 200% 200%;
  animation: btnShift 4s ease infinite;
  color: #fff; font-weight: 600;
  border: none; border-radius: 6px; cursor: pointer;
  text-decoration: none; display: inline-block;
  box-shadow: 0 3px 12px rgba(183,28,28,.45);
}
.btn-navy:hover { opacity: .9; }
.btn-sm { font-size: .78rem; padding: .35rem .85rem; }

.post-form-section {
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { height: 160px; }
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border); padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  max-width: var(--max); margin: 0 auto;
  font-size: .85rem; font-family: var(--body-font); color: var(--muted);
}
.footer strong { color: var(--ink); }
.footer-social {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.footer-social-link {
  color: var(--muted); display: flex; align-items: center;
  transition: color .15s;
}
.footer-social-link:hover { color: var(--navy); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
  .review-card { flex: 0 0 85%; }
  .reviews-track { /* show ~1.2 cards on mobile */ }
  .nav { padding: .85rem 1.25rem; }
}
