/* ===================================================
   EWF Fire Services — Shared Service Page Stylesheet
   =================================================== */

:root {
  --earth: #857347;
  --wind: #547a89;
  --fire: #a75312;
  --light-bg: #f9f9f9;
  --white: #ffffff;
  --text-dark: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.7;
}

/* ─── Header ─── */
header {
  background: var(--white);
  border-bottom: 2px solid var(--border-color);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header img.logo { height: 64px; width: auto; }
nav { display: flex; gap: 1.5rem; align-items: center; }
nav a {
  font-weight: 600;
  color: var(--wind);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}
nav a:hover { color: var(--fire); }
.phone-number { font-size: 0.95rem; color: var(--wind); font-weight: 600; margin-top: 0.5rem; }

/* ─── Buttons ─── */
.cta-button {
  display: inline-block;
  background: var(--fire);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(167, 83, 18, 0.35);
}
.cta-button:hover { background: #8b4410; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(167, 83, 18, 0.5); }

.cta-button-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.55);
  transition: all 0.3s ease;
}
.cta-button-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-2px); }

.cta-button-secondary {
  display: inline-block;
  background: transparent;
  color: var(--fire);
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--fire);
  transition: all 0.3s ease;
}
.cta-button-secondary:hover { background: var(--fire); color: var(--white); transform: translateY(-2px); }

/* ─── Service Page Hero ─── */
.page-hero {
  background: linear-gradient(135deg, #1a0f06 0%, #2d1a0a 50%, #3a200e 100%);
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
}
.page-hero-content { max-width: 820px; margin: 0 auto; }
.page-hero h1 { font-size: 2.75rem; font-weight: 700; margin-bottom: 1.25rem; line-height: 1.2; }
.page-hero p { font-size: 1.15rem; color: rgba(255,255,255,0.88); margin-bottom: 2.25rem; line-height: 1.7; }
.hero-cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Section Layout ─── */
.section-wide   { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem; }
.section-narrow { max-width: 900px;  margin: 0 auto; padding: 4rem 2rem; }
.bg-white { background: var(--white); }
.bg-light { background: var(--light-bg); }

.section-title        { font-size: 2rem; color: var(--fire); font-weight: 700; margin-bottom: 1rem; line-height: 1.3; }
.section-title-center { text-align: center; }
.section-lead  { font-size: 1.05rem; color: var(--text-light); margin-bottom: 2.5rem; line-height: 1.8; }
.body-text     { font-size: 1.05rem; line-height: 1.8; color: var(--text-dark); margin-bottom: 1.5rem; }
.standards-line { font-size: 0.98rem; color: var(--text-light); font-style: italic; margin-top: 0.5rem; }

/* ─── Highlight Box ─── */
.highlight-box {
  background: var(--white);
  border-left: 4px solid var(--fire);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 2rem;
  margin: 1.75rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.highlight-box p { font-size: 1.05rem; color: var(--text-dark); line-height: 1.8; margin: 0; }

/* ─── Service/Test Item Cards ─── */
.test-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.test-card {
  background: var(--light-bg);
  padding: 1.4rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.test-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); border-color: #c8917a; }
.test-card i    { font-size: 1.4rem; color: var(--fire); flex-shrink: 0; margin-top: 2px; }
.test-card span { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); line-height: 1.45; }

/* ─── Photo Grid ─── */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin: 2rem 0; }
.photo-grid img {
  width: 100%; height: 255px; object-fit: cover;
  border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); display: block;
}
.photo-grid-tall img { height: 340px; }
.photo-caption { font-size: 0.83rem; color: var(--text-light); margin-top: 0.45rem; font-style: italic; text-align: center; }

/* ─── Article Image (single full-width) ─── */
.article-image {
  width: 100%; max-width: 100%; height: auto;
  border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 2rem 0; display: block;
}

/* ─── Trades Grid ─── */
.trades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.trade-item {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--white); padding: 1rem 1.25rem;
  border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
}
.trade-item i    { color: var(--fire); font-size: 1.2rem; flex-shrink: 0; }
.trade-item span { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); }

/* ─── Process Steps ─── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.process-step {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--light-bg); border-radius: 10px; border: 1px solid var(--border-color);
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: var(--fire); color: var(--white);
  border-radius: 50%; font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem;
}
.process-step h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.75rem; line-height: 1.4; }
.process-step p  { font-size: 0.93rem; color: var(--text-light); line-height: 1.65; }

/* ─── FAQ Accordion ─── */
.faq-list { margin-top: 2rem; }
details {
  background: var(--white); border: 1px solid var(--border-color);
  border-radius: 8px; margin-bottom: 0.85rem; overflow: hidden;
}
summary {
  padding: 1.2rem 1.5rem; font-size: 1rem; font-weight: 600; color: var(--text-dark);
  cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; align-items: center; transition: background 0.2s ease;
}
summary:hover { background: var(--light-bg); }
summary::after { content: '+'; color: var(--fire); font-size: 1.4rem; font-weight: 400; flex-shrink: 0; margin-left: 1rem; line-height: 1; }
details[open] summary::after { content: '−'; }
summary::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 1.5rem 1.2rem; font-size: 0.98rem; color: var(--text-light); line-height: 1.75; }

/* ─── Related Services ─── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.related-card {
  background: var(--light-bg); padding: 1.5rem 1.25rem; border-radius: 10px;
  border: 1px solid var(--border-color); text-align: center; text-decoration: none;
  color: var(--text-dark); transition: all 0.25s ease; display: block;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.09); border-color: #c8917a; }
.related-card i    { font-size: 1.85rem; color: var(--fire); margin-bottom: 0.75rem; display: block; }
.related-card span { font-size: 0.92rem; font-weight: 600; color: var(--text-dark); line-height: 1.4; }

/* ─── Final CTA ─── */
.final-cta-section { padding: 4rem 2rem; background: var(--light-bg); }
.cta-box {
  background: var(--white); border: 2px solid var(--fire); border-radius: 10px;
  padding: 3rem 2.5rem; text-align: center; max-width: 720px; margin: 0 auto;
}
.cta-box h2 { font-size: 1.8rem; color: var(--fire); font-weight: 700; margin-bottom: 1rem; }
.cta-box p  { font-size: 1.05rem; color: var(--text-dark); margin-bottom: 2rem; line-height: 1.75; }
.cta-group  { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ─── */
footer { background: #222; color: #ccc; padding: 2.5rem 2rem; text-align: center; }
footer p { margin: 0.5rem 0; font-size: 0.95rem; }
.footer-logos { display: flex; justify-content: center; align-items: center; gap: 2rem; margin: 1.5rem 0; flex-wrap: wrap; }
.footer-logos img { height: 60px; width: auto; object-fit: contain; opacity: 0.9; }
.footer-logos .asttbc-logo { filter: none; }
.footer-logos .nfpa-logo   { filter: brightness(0) invert(1); }
.footer-logos .ulc-logo    { filter: brightness(0) invert(1); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  header { flex-direction: column; text-align: center; }
  nav { flex-direction: column; gap: 1rem; margin-top: 1rem; }
  .page-hero { padding: 3.5rem 1.5rem; }
  .page-hero h1 { font-size: 1.95rem; }
  .page-hero p  { font-size: 1rem; }
  .section-title { font-size: 1.6rem; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid img { height: 220px; }
  .photo-grid-tall img { height: 260px; }
  .process-steps { grid-template-columns: 1fr; }
  .test-items-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-box { padding: 2rem 1.5rem; }
  .cta-box h2 { font-size: 1.5rem; }
  .footer-logos img { height: 50px; }
}

@media (max-width: 480px) {
  .test-items-grid { grid-template-columns: 1fr; }
  .trades-grid     { grid-template-columns: 1fr; }
}
