/* ============================================================
   ACDC HOME SERVICES — acdcdfw.com
   Design v2.0 — Boston Comfort inspired
   February 2026
   ============================================================ */

/* === VARIABLES === */
:root {
  /* Brand Colors */
  --color-primary:        #001F92;   /* Deep navy — headings, links, logo */
  --color-primary-light:  #0b52ff;   /* Bright blue — hover, gradients */
  --color-dark:           #0f172a;   /* Near-black — body text */
  --color-muted:          #475569;   /* Secondary text */

  /* Action — navy blue (not red) */
  --color-cta:            #001F92;
  --color-cta-hover:      #0b3db5;

  /* Surfaces */
  --color-white:          #ffffff;
  --color-surface:        #f0f4f8;   /* Page background — cool gray */
  --color-surface-card:   #f7f8ff;   /* Card background */
  --color-border:         #dbe4f1;
  --color-border-card:    #dde3ff;

  /* Accent — keep for stars */
  --color-accent:         #f59e0b;   /* Amber stars */

  /* Footer — WHITE */
  --color-footer-bg:      #ffffff;
  --color-footer-text:    #0f172a;

  /* Layout */
  --max-width:            960px;
  --radius:               12px;
  --radius-pill:          999px;
  --radius-input:         10px;

  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-light); }

img { max-width: 100%; height: auto; display: block; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.05rem; }

.text-muted  { color: var(--color-muted); }
.text-white  { color: var(--color-white); }
.text-center { text-align: center; }

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

/* === HEADER / NAV === */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  background: var(--color-white);
  border-bottom: 1px solid #e8edf4;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo svg {
  height: 32px;
  width: auto;
  fill: var(--color-primary);
}

.nav-logo-text {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  line-height: 1.2;
  white-space: nowrap;
}

/* Nav links with "/" separators */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
  margin: 0;
}

.nav-links li + li::before {
  content: '/';
  color: #c4cfe0;
  font-size: 0.9rem;
  padding: 0 0.6rem;
  font-weight: 300;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 4px 0;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--color-primary-light); }

/* Nav right: phone + book */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 700;
  border: 2px solid var(--color-primary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-phone:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-cta);
  color: var(--color-white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--color-cta-hover) !important; }

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-primary);
}

/* Push content below fixed header */
.header-offset { padding-top: 68px; }

/* === HERO ===
   Supports photo bg with overlay.
   Until real photos: fallback gradient.
   To add photo: set background-image inline on .hero element.
*/
.hero {
  position: relative;
  overflow: hidden;
  background-color: #001357; /* fallback dark for photo */
  background-image: linear-gradient(135deg, #001357 0%, #0042c8 100%);
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding: 96px 0 80px;
  text-align: center;
}

/* Dark overlay — always present; reduces opacity of photo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 19, 87, 0.68);
  pointer-events: none;
  z-index: 1;
}

/* When real photo is loaded, the gradient is hidden by the overlay */
.hero .container { position: relative; z-index: 2; }

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  max-width: 620px;
  margin: 0 auto 1.75rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.hero-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--color-white);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-2px); }

/* Primary — solid navy */
.btn-primary {
  background: var(--color-cta);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(0,31,146,0.3);
}
.btn-primary:hover {
  background: var(--color-cta-hover);
  color: var(--color-white);
  box-shadow: 0 10px 28px rgba(0,31,146,0.4);
}

/* Secondary — white outline (for use on dark/hero backgrounds) */
.btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: var(--color-white);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* Outline — navy outline (for use on white/light backgrounds) */
.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-sm { padding: 9px 20px; font-size: 0.875rem; }
.btn-lg { padding: 18px 42px; font-size: 1.1rem; }

/* === SECTIONS === */
.section {
  padding: 72px 0;
}

.section-white {
  background: var(--color-white);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  background: rgba(0,31,146,0.08);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

/* === DARK BLUE SECTION (Why Choose / Features) === */
.section-blue {
  background: #0a2463;   /* deep royal blue */
  color: var(--color-white);
  padding: 80px 0;
}

.section-blue h2,
.section-blue h3 {
  color: var(--color-white);
}

.section-blue p,
.section-blue li {
  color: rgba(255,255,255,0.88);
}

/* Two-column layout inside section-blue */
.section-blue-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.section-blue-inner .checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.section-blue-inner .checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.section-blue-inner .checklist li::before {
  content: '✓';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #7dd3fc;
  line-height: 24px;
  text-align: center;
}

/* Photo placeholder in section-blue */
.section-blue-photo {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

.section-blue-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* === CARDS (generic) === */
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(15,23,42,0.06);
}

/* === BRAND GRID (homepage) === */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.brand-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 8px 24px rgba(0,31,146,0.12);
  transform: translateY(-3px);
}

.brand-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.brand-card-list {
  font-size: 0.8rem;
  color: var(--color-muted);
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

/* === SERVICE CARDS === */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,31,146,0.1);
}

.service-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}
.service-card p { font-size: 0.875rem; color: var(--color-muted); margin: 0; }

/* === TRUST STRIP === */
.trust-strip {
  background: var(--color-primary);
  padding: 18px 0;
  color: var(--color-white);
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-item strong {
  font-size: 1.05rem;
  font-weight: 700;
}

/* === TESTIMONIALS === */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(15,23,42,0.05);
}

.t-stars { color: var(--color-accent); font-size: 1rem; letter-spacing: 2px; }
.t-text  { color: var(--color-dark); font-weight: 500; font-size: 0.95rem; line-height: 1.65; }
.t-author { font-weight: 700; color: var(--color-primary); font-size: 0.9rem; }
.t-author span { display: block; font-weight: 400; color: var(--color-muted); font-size: 0.8rem; }

/* === CITY CHIPS === */
.city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.city-chip {
  background: var(--color-white);
  border: 1px solid var(--color-border-card);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.city-chip:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* === CONTACT FORM === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-white);
  color: var(--color-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(11,82,255,0.1);
}

.form-group textarea { min-height: 120px; resize: vertical; }

/* === CTA SECTION (bottom of pages) === */
.cta-section {
  background: #0a2463;
  color: var(--color-white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay on CTA */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(11,82,255,0.25) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--color-white); }
.cta-section p {
  color: rgba(255,255,255,0.88);
  max-width: 540px;
  margin: 0 auto 2rem;
}

/* === STICKY MOBILE CALL BUTTON === */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 8888;
  background: var(--color-cta);
  color: var(--color-white);
  text-align: center;
  padding: 16px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0,31,146,0.45);
  letter-spacing: 0.01em;
}

/* === BREADCRUMBS === */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: var(--color-white); }
.breadcrumb-sep { color: rgba(255,255,255,0.35); }

/* === FOOTER — WHITE === */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 64px 0 28px;
  border-top: 1px solid #dbe4f1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #dbe4f1;
  margin-bottom: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.footer-logo svg { height: 28px; fill: var(--color-primary); }
.footer-logo-text {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.1em;
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--color-primary); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #94a3b8;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: var(--color-primary); }

/* === FAQ ACCORDION === */
.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* === UTILITIES === */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-mobile-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem;
    gap: 0.875rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  /* Hide "/" separators in mobile dropdown */
  .nav-links.open li + li::before {
    display: none;
  }

  .section-blue-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 72px 0 60px; }
  .hero-cta-row .btn { width: 100%; }
  .section { padding: 52px 0; }
  .sticky-call { display: block; }
  body { padding-bottom: 72px; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-items { flex-direction: column; gap: 1rem; }
  .nav-cta { font-size: 0.8rem; padding: 8px 14px; }
  .section-blue { padding: 56px 0; }
  .cta-section { padding: 60px 0; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
}
