/* ===== JCW ENTERPRISES — DESIGN SYSTEM ===== */
/* Colors: Navy #0F2A47 | Safety Red #D32F2F | Warm Gray #F5F3F0 | Charcoal #1A1A1A | White #FFFFFF */

:root {
  --navy: #0F2A47;
  --navy-light: #1a3a5c;
  --navy-dark: #0a1f35;
  --red: #D32F2F;
  --red-dark: #b71c1c;
  --red-light: #ef5350;
  --warm-gray: #F5F3F0;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #6c757d;
  --gray-700: #495057;
  --charcoal: #1A1A1A;
  --white: #FFFFFF;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --transition: .3s ease;
  --max-width: 1200px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

/* ===== UTILITY ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.1rem; color: var(--gray-700); }
.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-cta { text-align: center; margin-top: 40px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211,47,47,.3);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

/* ===== ANNOUNCEMENT BAR ===== */
.announce {
  background: var(--navy-dark);
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  padding: 8px 0;
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}
.announce-divider { color: rgba(255,255,255,.3); }
.announce-phone { color: var(--white); font-weight: 600; }
.announce-phone:hover { color: var(--red-light); }

/* ===== HEADER ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}
.logo-link { flex-shrink: 0; display: flex; align-items: center; }
.logo-img { height: 168px; width: auto; }
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; }
.nav { display: flex; gap: 28px; }
.nav-link {
  font-size: .95rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: 8px 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--navy); }
.nav-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,42,71,.92) 0%, rgba(15,42,71,.75) 50%, rgba(15,42,71,.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px;
}
.hero-text { max-width: 640px; }
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(211,47,47,.15);
  border-radius: 20px;
  border: 1px solid rgba(211,47,47,.3);
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item { display: flex; flex-direction: column; }
.trust-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.trust-label {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}
.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.2);
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--warm-gray);
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}
.tb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
}
.tb-icon {
  width: 24px;
  height: 24px;
  color: var(--red);
  flex-shrink: 0;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red);
}
.service-icon {
  width: 56px;
  height: 56px;
  background: var(--warm-gray);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; color: var(--red); }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--gray-700); font-size: .95rem; margin-bottom: 16px; }
.service-link {
  font-weight: 700;
  font-size: .9rem;
  color: var(--red);
}
.service-link:hover { color: var(--red-dark); }

/* ===== IMAGE BREAK ===== */
.image-break {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.image-break-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}
.image-break-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,42,71,.72), rgba(15,42,71,.55));
}
.image-break-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}
.image-break-quote {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 16px;
}
.image-break-attr {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  font-style: italic;
}

/* ===== PRODUCTS PREVIEW ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
}
.product-card h3 { padding: 20px 24px 8px; }
.product-card p { padding: 0 24px 24px; color: var(--gray-700); font-size: .95rem; }

/* ===== ABOUT TEASER ===== */
.section-about-teaser { background: var(--warm-gray); }
.about-teaser-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: center;
}
.about-teaser-text h2 { margin-bottom: 20px; }
.about-teaser-text p { color: var(--gray-700); margin-bottom: 16px; }
.about-teaser-stats { display: flex; flex-direction: column; gap: 16px; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--red);
}
.stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: .85rem;
  color: var(--gray-700);
  margin-top: 8px;
}

/* ===== AREA TEASER ===== */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.area-card {
  background: var(--warm-gray);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  transition: all var(--transition);
}
.area-card:hover {
  border-color: var(--red);
  background: var(--white);
  transform: translateY(-3px);
}

/* ===== CTA FINAL ===== */
.section-cta-final {
  background: var(--navy);
  padding: 80px 0;
}
.cta-final-inner { text-align: center; }
.cta-final-inner h2 { color: var(--white); margin-bottom: 16px; }
.cta-final-inner p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 32px; }
.cta-final-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.7); padding: 60px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo { height: 48px; width: auto; margin-bottom: 16px; background: #fff; padding: 8px 16px; border-radius: 6px; }
.footer-tagline { font-size: .9rem; color: rgba(255,255,255,.6); font-style: italic; }
.footer-col h4 {
  color: var(--white);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer-col p { margin-bottom: 8px; font-size: .9rem; }
.footer-col a { color: rgba(255,255,255,.7); }
.footer-col a:hover { color: var(--red-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ===== SCROLL REVEAL ===== */
.reveal { transition: opacity .6s ease, transform .6s ease; }
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ===== PAGE HEADER (interior pages) ===== */
.page-header {
  position: relative;
  padding: 80px 0 60px;
  background: var(--navy);
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .15;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,42,71,.9), rgba(15,42,71,.95));
}
.page-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ===== INTERIOR CONTENT ===== */
.content-section { padding: 60px 0; }
.content-section h2 { margin-bottom: 20px; }
.content-section p { color: var(--gray-700); margin-bottom: 16px; }
.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.content-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.content-img img, .content-img .img-fill {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}
.img-fill { background-size: cover; background-position: center; }

/* ===== SERVICE AREA PAGE ===== */
.map-frame {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(211,47,47,.1), transparent 42%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(15,42,71,.04) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(15,42,71,.04) 38px 39px),
    linear-gradient(135deg, #f0f4f8, #e9eef3);
  border: 1px solid var(--gray-200);
}
.map-frame::after {
  content: "📍 Spokane · Coeur d'Alene · Inland NW";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; position: relative; z-index: 1; }

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: .9rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-textarea { min-height: 120px; resize: vertical; }
.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 24px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-info-item svg { width: 24px; height: 24px; color: var(--red-light); flex-shrink: 0; margin-top: 2px; }
.contact-info-item-label { font-size: .8rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; }
.contact-info-item-value { font-size: 1.05rem; color: var(--white); font-weight: 600; }
.contact-info-item-value a { color: var(--white); }
.contact-info-item-value a:hover { color: var(--red-light); }

/* ===== QR CODE MODAL (desktop tel: links) ===== */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.qr-modal-open { display: flex; }
.qr-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,42,71,.8);
  backdrop-filter: blur(4px);
}
.qr-modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px 32px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: qrModalIn .3s ease;
}
@keyframes qrModalIn {
  from { opacity: 0; transform: scale(.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.qr-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px 8px;
  transition: color var(--transition);
}
.qr-modal-close:hover { color: var(--navy); }
.qr-modal-box h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.qr-modal-phone {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 20px;
}
.qr-modal-code {
  display: inline-block;
  padding: 12px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  margin-bottom: 16px;
}
.qr-modal-code img { display: block; width: 240px; height: 240px; }
.qr-modal-hint {
  font-size: .9rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.qr-modal-btn { width: 100%; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--gray-200);
  }
  .nav.open .nav-link { padding: 8px 0; }
  .nav.open .nav-cta { display: inline-flex; margin-top: 8px; }
  .about-teaser-grid { grid-template-columns: 1fr; gap: 40px; }
  .content-grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .image-break-bg { background-attachment: scroll; }
  .hero { min-height: 540px; }
  .hero-trust { gap: 20px; }
  .trust-divider { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { flex-direction: column; gap: 12px; }
  .tb-item { font-size: .82rem; }
  .announce-inner { font-size: .78rem; gap: 8px; }
  .cta-final-buttons { flex-direction: column; }
  .cta-final-buttons .btn { width: 100%; }
}
