/* ============================================
   AV Repair — Responsive Stylesheet
   Brand blue edition.  Mobile-first.
   Edit colors in :root below.
   ============================================ */

/* Load brand fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --blue:     #1b2a9c;   /* brand deep blue (logo)   */
  --blue-dk:  #131f73;   /* darker — hovers/footer   */
  --blue-lt:  #2e42ef;   /* bright accent (sparingly)*/
  --ink:      #222222;   /* body text / "epair"      */
  --muted:    #555a63;
  --line:     #e3e5ec;
  --bg:       #ffffff;
  --bg-alt:   #f4f6fb;   /* faint blue-tinted grey   */
  --max:      1100px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 66px;
}
/* Text logo styling (until you drop in the PNG) */
.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--ink);           /* "epair" charcoal   */
}
.logo:hover { text-decoration: none; }
.logo .avr { color: var(--blue); }   /* "AVR" in blue  */

/* Nav */
.main-nav ul { list-style: none; }
.main-nav a {
  color: var(--ink);
  display: block;
  padding: 12px 14px;
  font-weight: 500;
}
.main-nav a:hover { color: var(--blue); text-decoration: none; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 3px; width: 26px;
  background: var(--blue); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (with photo) ---------- */
.hero {
  background:
    linear-gradient(rgba(19,31,115,0.52), rgba(19,31,115,0.52)),
    url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 60px 0;
}
.hero h1,
.hero .lead { text-shadow: 0 2px 8px rgba(0,0,0,0.5); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--blue-lt);
  color: #fff;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
}
.btn:hover { background: var(--blue); text-decoration: none; }
.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  padding: 11px 24px;
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: 50px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 1.6rem; margin-bottom: 16px; color: var(--ink); font-weight: 700; }
.section p { color: var(--muted); max-width: 720px; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 8px;
  padding: 26px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(27,42,156,.12); transform: translateY(-3px); text-decoration: none; }
.card h3 { color: var(--blue); font-size: 1.25rem; margin-bottom: 10px; font-weight: 600; }
.card p { color: var(--muted); margin-bottom: 0; }
.card:hover { box-shadow: 0 8px 24px rgba(27,42,156,.12); transform: translateY(-3px); }
.card h3 { color: var(--blue); font-size: 1.25rem; margin-bottom: 10px; font-weight: 600; }
.card p { color: var(--muted); margin-bottom: 16px; }
.card-link { font-weight: 600; }

/* ---------- CTA ---------- */
.cta { text-align: center; background: var(--bg-alt); }
.cta h2 { margin-bottom: 10px; }
.cta p { margin: 0 auto 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-dk);
  color: #c3caf0;
  padding: 28px 0;
}
.footer-inner { text-align: center; }
.footer-nav { margin-bottom: 10px; }
.footer-nav a { color: #e3e7fb; margin: 0 10px; }
.copyright { font-size: .9rem; color: #9aa2d8; }

/* ============================================
   TABLET (600px+)
   ============================================ */
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.4rem; }
}

/* ============================================
   DESKTOP (860px+)
   ============================================ */
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .main-nav { display: block !important; }
  .main-nav ul { display: flex; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 80px 0; }
  .hero h1 { font-size: 2.8rem; }
}

/* ============================================
   MOBILE NAV (below 860px)
   ============================================ */
@media (max-width: 859px) {
  .main-nav {
    display: none;
    width: 100%;
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
}
/* Smaller hero for interior pages */
.page-hero {
  background: linear-gradient(135deg, var(--blue), var(--blue-dk));
  color: #fff;
  text-align: center;
  padding: 46px 0;
}
.page-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.page-hero .lead { color: #d5daf5; max-width: 640px; margin: 0 auto; }

/* Anchor offset so sticky header doesn't cover headings */
[id] { scroll-margin-top: 80px; }

/* Quick-jump bar */
.jump-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 4px;
}
.btn-sm { padding: 9px 18px; font-size: .95rem; }
.btn-outline-blue {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 7px 16px;
}
.btn-outline-blue:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* Model list */
.model-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 20px;
}
.model {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  padding: 20px 22px;
}
.model h3 { color: var(--blue); margin-bottom: 6px; font-weight: 600; }
.model p { color: var(--muted); }

/* Check list */
.check-list { list-style: none; margin: 16px 0; max-width: 720px; }
.check-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  color: var(--ink);
}
.check-list li::before {
  content: "\2713";           /* checkmark */
  color: var(--blue);
  font-weight: 700;
  position: absolute;
  left: 0;
}
.note { margin-top: 14px; color: var(--ink); }
.note-small { margin-top: 8px; font-size: .9rem; color: var(--muted); }

/* Highlight section (Bullet Proofing) */
.highlight {
  background: var(--blue);
  color: #fff;
}
.highlight h2 { color: #fff; }
.highlight p { color: #dfe3fb; }
.highlight strong { color: #fff; }

/* Callout box */
.callout {
  background: var(--bg-alt);
  border: 1px dashed var(--blue);
  border-radius: 8px;
  padding: 24px 26px;
  max-width: 720px;
}
.callout h3 { color: var(--blue); margin-bottom: 8px; font-weight: 600; }
.callout p { color: var(--muted); margin-bottom: 12px; }

/* Interior grids on larger screens */
@media (min-width: 600px) {
  .model-list { grid-template-columns: repeat(2, 1fr); }
}
.repair-form h2 { margin: 28px 0 8px; }
.repair-form h2:first-child { margin-top: 0; }
.repair-form h3 { margin: 22px 0 8px; color: var(--ink); font-weight: 600; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.repair-form label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
}
.repair-form label.full { grid-column: 1 / -1; }
.repair-form .req { color: var(--blue-lt); font-weight: 500; font-size: .82rem; }

.repair-form input,
.repair-form select,
.repair-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid #c7ccd8;
  border-radius: 6px;
  background: #fff;
}
.repair-form input:focus,
.repair-form select:focus,
.repair-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,42,156,.15);
}
.repair-form textarea { resize: vertical; }

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0;
  font-weight: 500 !important;
}
.checkbox-line input { width: auto; margin-top: 3px; }

.form-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
}

/* Print-only helper (hidden on screen) */
.print-only { display: none; }

/* Print: big, easy-to-read request form that fills the page */
@media print {
  @page { margin: 0.5in; }

  .site-header, .site-footer, .page-hero, .nav-toggle,
  .main-nav, .form-btns, .jump-bar, .no-print { display: none !important; }
  .print-only { display: block !important; }
  .print-head { font-size: 22px; font-weight: 700; color: #000; margin: 0 0 14px; text-align: center; }

  html, body { background: #fff !important; color: #000 !important; font-size: 17px; }
  .section, .section-alt { padding: 0 !important; background: #fff !important; }
  .wrap { max-width: 100% !important; padding: 0 !important; }

  .repair-form h2 { font-size: 18px; margin: 12px 0 5px; }
   .repair-form h3 { font-size: 16px; margin: 10px 0 5px; }

  .field-grid { grid-template-columns: 1fr 1fr !important; gap: 10px 22px !important; }

  .repair-form label { font-size: 15px; font-weight: 600; }
  .repair-form input,
  .repair-form select,
  .repair-form textarea {
    font-size: 16px !important;
    padding: 7px 10px !important;
    margin-top: 4px !important;
    border: 1px solid #666 !important;
    box-shadow: none !important;
  }
  .repair-form textarea { height: 60px !important; resize: none; }
  .checkbox-line { margin: 10px 0 !important; font-size: 15px; }
}
/* ---------- Card hover arrow cue ---------- */
.card { position: relative; }

.card::after {
  content: "\2192";              /* → */
  position: absolute;
  right: 24px;
  bottom: 20px;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 700;
  color: var(--blue);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.card:hover::after {
  opacity: 1;
  transform: translateX(0);
}
/* ---------- Camcorder model groups ---------- */
.model-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 28px;
  margin-top: 20px;
}
.model-group h3 {
  color: var(--blue);
  font-weight: 600;
  margin: 16px 0 2px;
}
.model-group .check-list { margin: 6px 0; }

@media (min-width: 720px) {
  .model-groups { grid-template-columns: repeat(3, 1fr); }
  /* ---------- About stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  text-align: center;
}
.stat {
  background: var(--bg-alt);
  border-top: 3px solid var(--blue);
  border-radius: 8px;
  padding: 26px 22px;
}
.stat .num { display: block; color: var(--blue); font-size: 2.1rem; font-weight: 700; line-height: 1; }
.stat .label { display: block; color: var(--muted); font-size: .95rem; margin-top: 8px; }

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}
/* ---------- About story polish ---------- */
.about-story { max-width: 760px; }

.about-story p {
  font-size: 1.04rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

/* Bigger, warmer opening paragraph */
.about-story p:first-of-type {
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.7;
}

/* Make your signature lines pop in blue */
.about-story .pop { color: var(--blue); font-weight: 700; }
/* Drop cap on the About opening paragraph */
.about-story p:first-of-type::first-letter {
  float: left;
  font-size: 3.4rem;
  line-height: 0.85;
  font-weight: 700;
  color: var(--blue);
  margin: 6px 10px 0 0;
}
/* ---------- Contact methods grid ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 20px;
}
@media (min-width: 720px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}
/* ============================================
   TESTIMONIALS PAGE
   ============================================ */

/* Trusted By band */
.trusted { text-align: center; }
.trusted h2 { font-size: 1.6rem; margin-bottom: 8px; }
.trusted .sub { color: var(--muted); max-width: 660px; margin: 0 auto 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.pill {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--blue);
}
.center { text-align: center; margin-top: 24px; }

/* Full client list (revealed on click) */
.client-list { margin-top: 26px; text-align: left; }
.client-list h3 { color: var(--blue); font-size: 1.05rem; margin: 20px 0 8px; }
.client-cols { columns: 220px; column-gap: 26px; list-style: none; }
.client-cols li { break-inside: avoid; padding: 3px 0; color: var(--muted); font-size: .92rem; }

/* Testimonials masonry wall */
.t-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto; }
.testimonials { margin-top: 26px; column-gap: 22px; }
.tcard {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 20px 22px;
}
.tcard .quote { color: var(--ink); font-style: italic; line-height: 1.6; margin: 0; }
.tcard .by { margin: 12px 0 0; color: var(--blue); font-weight: 600; font-size: .9rem; }
.tcard .by .loc { display: block; color: var(--muted); font-weight: 500; font-size: .82rem; margin-top: 2px; }

@media (min-width: 600px) { .testimonials { column-count: 2; } }
@media (min-width: 960px) { .testimonials { column-count: 3; } }
.logo img { height: 42px; width: auto; display: block; }
/* ---------- Bullet Proofing (long-read) ---------- */
.prose { max-width: 760px; }
.prose p { color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.prose p strong { color: var(--ink); }
.prose h3 { color: var(--blue); font-weight: 600; font-size: 1.15rem; margin: 26px 0 8px; }
.callout .big-price { font-size: 2.4rem; font-weight: 700; color: var(--blue); line-height: 1.1; margin: 6px 0; }
/* ---------- FAQ ---------- */
.faq-jump { max-width: 760px; margin: 0 auto 8px; }
.faq-jump-title { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.faq-jump ul { list-style: none; }
.faq-jump li { padding: 4px 0; }
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); padding: 22px 0; }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq .q { color: var(--blue); font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.faq .a p { color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.faq .a p:last-child { margin-bottom: 0; }
.faq .a strong { color: var(--ink); }