/* ========================================
   Richmond TV Installers – Global Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --white: #ffffff;
  --off: #f8f7f4;
  --light: #eeece7;
  --border: #e0ddd7;
  --muted: #8f8b84;
  --text: #3c3a35;
  --dark: #1a1917;
  --blue: #1a4ed8;
  --blue-dark: #1338b0;
  --blue-light: #eaf0fd;
  --red: #cc2a2a;
  --green: #166534;
  --green-bg: #f0faf4;
  --shadow: 0 1px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg: 0 10px 48px rgba(0,0,0,0.13);
  --radius: 8px;
  --radius-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.18;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── UTILITIES ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.section-sm { padding: 60px 0; }

.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.rule { width: 44px; height: 3px; background: var(--blue); border-radius: 2px; margin-bottom: 24px; }

.section-title { font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--muted); max-width: 520px; line-height: 1.65; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; border: none; transition: all 0.17s ease;
  letter-spacing: 0.01em; white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 5px 18px rgba(26,78,216,0.32); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue-light); }
.btn-white { background: white; color: var(--blue); font-weight: 700; }
.btn-white:hover { background: #f0f0f0; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: white; background: rgba(255,255,255,0.1); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ── HEADER ── */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
#header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo-img { height: 44px; width: auto; }
.header-phone a {
  font-size: 18px; font-weight: 700; color: var(--blue);
  display: flex; align-items: center; gap: 7px;
}
.header-phone a svg { flex-shrink: 0; }
.header-right { display: flex; align-items: center; gap: 20px; }
.header-quote-btn { display: flex; }

/* ── HERO ── */
.hero {
  padding-top: 70px;
  background: var(--off);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,78,216,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
  min-height: 520px; padding: 72px 0 64px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-bg); color: var(--green);
  border-radius: 100px; padding: 5px 14px 5px 10px;
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
  border: 1px solid #bbf7d0;
}
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; flex-shrink: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 18px; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-sub { font-size: 18px; color: #5c5950; margin-bottom: 32px; max-width: 440px; }
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-trust {
  display: flex; align-items: center; gap: 28px;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.trust-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue); }

.hero-image { position: relative; }
.hero-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; object-fit: cover; width: 100%;
}
.hero-badge-card {
  position: absolute; bottom: -18px; left: -18px;
  background: white; border-radius: 10px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  min-width: 160px;
}
.hbc-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.hbc-val { font-family: 'DM Serif Display', serif; font-size: 22px; color: var(--dark); }

/* ── PRICING ── */
.pricing-section { padding: 88px 0; background: var(--white); }
.pricing-header { margin-bottom: 48px; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.pricing-card {
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 32px; background: var(--off);
}
.pricing-card-head { margin-bottom: 28px; }
.pricing-card-title { font-family: 'DM Serif Display', serif; font-size: 22px; margin-bottom: 6px; }
.pricing-card-sub { font-size: 14px; color: var(--muted); }

.price-list { display: flex; flex-direction: column; }
.price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; border-bottom: 1px solid var(--border); gap: 12px;
}
.price-row:last-child { border-bottom: none; }
.price-name { font-size: 15px; font-weight: 500; }
.price-val { font-size: 15px; font-weight: 700; color: var(--blue); white-space: nowrap; flex-shrink: 0; }

.pricing-anchor {
  margin-top: 32px;
  background: var(--blue-light); border: 1px solid #c3d8fa;
  border-radius: var(--radius-lg); padding: 22px 26px;
  display: flex; gap: 14px; align-items: flex-start;
}
.anchor-icon { flex-shrink: 0; color: var(--blue); margin-top: 2px; }
.anchor-text { font-size: 15.5px; line-height: 1.6; color: var(--dark); }
.anchor-cta { margin-top: 16px; }

/* ── SERVICES ── */
.services-section { background: var(--off); padding: 80px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.service-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 22px; transition: all 0.2s ease; display: block;
}
.service-card:hover { box-shadow: var(--shadow-lg); border-color: var(--blue); transform: translateY(-3px); }
.svc-icon {
  width: 44px; height: 44px; background: var(--blue-light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--blue);
}
.svc-name { font-family: 'DM Serif Display', serif; font-size: 17px; margin-bottom: 7px; }
.svc-desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 12px; }
.svc-link { font-size: 13px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; }

/* ── GALLERY ── */
.gallery-section { padding: 80px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 14px; margin-top: 48px;
}
.gallery-item { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item.tall { grid-row: span 2; }
.gi-1 { aspect-ratio: 4/3; }
.gi-2 { aspect-ratio: 4/3; }
.gi-3 { aspect-ratio: unset; } /* tall, spans 2 rows */
.gi-4 { aspect-ratio: 4/3; }
.gi-5 { aspect-ratio: 4/3; }
.gi-6 { grid-column: span 2; aspect-ratio: 16/7; }
.gallery-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-tag { background: white; color: var(--dark); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 100px; }

/* ── HOW IT WORKS ── */
.how-section { background: var(--dark); padding: 88px 0; }
.how-section .section-title { color: white; }
.how-section .eyebrow { color: #93b4f7; }
.how-section .rule { background: var(--blue); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; position: relative; }
.steps-grid::before {
  content: '';
  position: absolute; top: 38px; left: calc(12.5% + 20px); right: calc(12.5% + 20px);
  height: 1px; background: rgba(255,255,255,0.1);
}
.step { padding: 0 20px; text-align: center; }
.step-num-wrap {
  width: 76px; height: 76px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; position: relative; z-index: 1;
  transition: all 0.2s;
}
.step:hover .step-num-wrap { border-color: var(--blue); background: rgba(26,78,216,0.2); }
.step-num { font-family: 'DM Serif Display', serif; font-size: 28px; color: white; }
.step-title { font-family: 'DM Serif Display', serif; font-size: 19px; color: white; margin-bottom: 10px; }
.step-desc { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ── REVIEWS ── */
.reviews-section { padding: 80px 0; background: var(--off); border-top: 1px solid var(--border); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.review-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.stars { display: flex; gap: 2px; margin-bottom: 14px; }
.star { color: #f59e0b; font-size: 17px; }
.review-text { font-size: 15px; line-height: 1.7; margin-bottom: 20px; color: var(--text); }
.reviewer { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
.reviewer-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Display', serif; font-size: 16px; font-weight: 700;
}
.reviewer-name { font-size: 14px; font-weight: 600; }
.reviewer-meta { font-size: 12px; color: var(--muted); }

/* ── FAQ ── */
.faq-section { padding: 80px 0; }
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  padding: 18px 22px; font-size: 15px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  cursor: pointer; background: white; user-select: none; transition: background 0.15s;
}
.faq-q:hover { background: var(--off); }
.faq-icon {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; transition: transform 0.22s;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  font-size: 14px; color: var(--muted); line-height: 1.7;
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: white;
}
.faq-item.open .faq-a { max-height: 280px; padding: 0 22px 18px; }

/* ── CTA BAND ── */
.cta-band { background: var(--blue); padding: 72px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { font-family: 'DM Serif Display', serif; font-size: clamp(28px, 4vw, 44px); color: white; }
.cta-band p { color: rgba(255,255,255,0.75); font-size: 16px; margin-top: 8px; }
.cta-actions { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }

/* ── LOCATIONS ── */
.locations-section { padding: 72px 0; background: var(--off); border-top: 1px solid var(--border); }
.locations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.location-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
  transition: all 0.17s;
}
.location-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.location-card a { display: flex; align-items: center; justify-content: space-between; width: 100%; font-weight: 600; font-size: 15px; }
.loc-arrow { color: var(--blue); font-size: 18px; }

/* ── FOOTER ── */
footer { background: var(--dark); color: rgba(255,255,255,0.55); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-logo { height: 44px; width: auto; margin-bottom: 16px; }
.footer-tagline { font-size: 14px; line-height: 1.65; max-width: 280px; margin-bottom: 20px; }
.footer-phone a { font-size: 20px; font-weight: 700; color: var(--blue); display: flex; align-items: center; gap: 8px; }
.footer-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.15s; }
.footer-links a:hover { color: white; }
.footer-bottom { padding-top: 28px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); transition: color 0.15s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ── STICKY MOBILE BAR ── */
.sticky-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 600;
  background: white; border-top: 1px solid var(--border);
  padding: 10px 16px; gap: 10px; box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.sticky-bar a { flex: 1; text-align: center; padding: 14px 10px; border-radius: var(--radius); font-weight: 700; font-size: 15px; }
.sticky-call { background: var(--blue); color: white; }
.sticky-text { background: var(--off); color: var(--dark); border: 1px solid var(--border); }

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white; border-radius: var(--radius-lg); padding: 40px;
  max-width: 480px; width: 100%; position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22);
  animation: modalIn 0.22s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(16px); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--off); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--muted); transition: all 0.15s; line-height: 1;
}
.modal-close:hover { background: var(--light); color: var(--dark); }
.modal h3 { font-family: 'DM Serif Display', serif; font-size: 26px; margin-bottom: 6px; }
.modal-sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  background: var(--off); color: var(--dark); outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); background: white; }
.form-group textarea { min-height: 80px; resize: vertical; }
.form-submit {
  width: 100%; padding: 15px; background: var(--blue); color: white;
  border: none; border-radius: var(--radius); font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.17s; margin-top: 6px;
}
.form-submit:hover { background: var(--blue-dark); }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }

/* ── INNER PAGE HERO ── */
.page-hero {
  padding-top: 70px;
  background: var(--dark); color: white;
  padding-bottom: 56px;
}
.page-hero-inner { padding-top: 56px; }
.page-hero .eyebrow { color: #93b4f7; }
.page-hero h1 { color: white; font-size: clamp(34px, 5vw, 52px); margin-bottom: 16px; }
.page-hero-sub { font-size: 18px; color: rgba(255,255,255,0.65); max-width: 560px; margin-bottom: 32px; }
.page-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.15s; }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ── PAGE CONTENT SECTIONS ── */
.content-section { padding: 72px 0; }
.content-section + .content-section { padding-top: 0; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.content-grid.reverse { }
.content-grid img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; }
.content-text .section-title { margin-bottom: 16px; }
.content-text p { font-size: 16px; color: #5c5950; margin-bottom: 16px; line-height: 1.75; }
.check-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.check-item { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.check-item::before { content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 0; padding: 48px 0 40px; }
  .hero-image { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gi-3 { grid-row: span 1; aspect-ratio: 4/3; }
  .gi-6 { grid-column: span 2; }
  .reviews-grid { grid-template-columns: 1fr; }
  .faq-cols { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sticky-bar { display: flex; }
  body { padding-bottom: 70px; }
  .header-quote-btn { display: none; }
  .header-phone a span { display: none; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gi-6 { grid-column: span 1; aspect-ratio: 4/3; }
  .locations-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .modal { padding: 28px 20px; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: fadeUp 0.55s 0.05s both; }
.anim-2 { animation: fadeUp 0.55s 0.18s both; }
.anim-3 { animation: fadeUp 0.55s 0.30s both; }
