/* Single stylesheet for the whole site.
   - :root variables hold the recurring brand values.
   - Unscoped rules below are shared across every page (header/footer/nav,
     plus a few base components reused with minor overrides: .page-hero,
     .btn-gold/.btn-outline, .section-heading).
   - Each page's own rules are nested under its body.page-* class to keep
     same-named classes (e.g. .page-hero, .cta-bar) from colliding across pages. */

:root {
  --navy: #1a3a5c;
  --blue: #2c5f8a;
  --gold: #e8a020;
  --hairline: #ddd;
  --text-muted: #555;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; color: #222; background: #fff; }
a { text-decoration: none; color: inherit; }
.site { max-width: 960px; margin: 0 auto; background: #fff; border: 0.5px solid var(--hairline); }

/* GOLD BAR */
.gold-bar { background: var(--gold); padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.gold-bar .site-name { color: var(--navy); font-size: 11px; font-weight: 700; white-space: nowrap; }
.gold-bar .phones { display: flex; align-items: center; gap: 16px; flex: 1; justify-content: center; flex-wrap: wrap; }
.gold-bar .phone-block { text-align: center; }
.gold-bar .phone-label { color: var(--navy); font-size: 9px; font-weight: 600; margin-bottom: 1px; }
.gold-bar .phone-number { color: var(--navy); font-size: 28px; font-weight: 700; letter-spacing: 1px; text-decoration: none; display: block; }
.gold-bar .divider { color: var(--navy); font-size: 28px; opacity: 0.4; }
.gold-bar .serving { color: var(--navy); font-size: 11px; font-weight: 700; white-space: nowrap; text-align: right; }

/* THIN LINE */
.blue-line { background: var(--blue); height: 4px; }

/* NAV */
.nav-bar { background: var(--blue); display: flex; flex-wrap: wrap; }
.nav-bar a { color: #fff; padding: 10px 16px; font-size: 13px; border-right: 0.5px solid rgba(255,255,255,0.15); text-decoration: none; }
.nav-bar a:hover { background: rgba(255,255,255,0.1); }

/* FOOTER */
.footer { background: var(--navy); color: #fff; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-left { font-size: 13px; opacity: 0.8; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: #fff; font-size: 13px; opacity: 0.7; }

@media (max-width: 600px) {
  .gold-bar { padding: 8px 12px; gap: 4px; }
  .gold-bar .site-name { font-size: 10px; min-width: 80px; }
  .gold-bar .serving { font-size: 10px; min-width: 80px; }
  .gold-bar .phone-number { font-size: 18px; letter-spacing: 0; }
  .gold-bar .divider { font-size: 18px; }
  .gold-bar .phones { gap: 8px; }
  .nav-bar a { font-size: 11px; padding: 8px 10px; }
  .footer { flex-direction: column; text-align: center; gap: 8px; }
}

@media (max-width: 400px) {
  .gold-bar .site-name, .gold-bar .serving { display: none; }
  .gold-bar .phone-number { font-size: 16px; }
  .nav-bar a { font-size: 10px; padding: 7px 8px; }
}

/* ============ Shared base components (used by multiple pages, small per-page overrides below) ============ */

/* base .page-hero: matches contact.php/himco.php as-is; about.php overrides below */
.page-hero { background: var(--navy); color: #fff; padding: 40px 32px; }
.page-hero h1 { font-size: 26px; font-weight: 500; margin-bottom: 10px; }
.page-hero p { font-size: 15px; opacity: 0.85; line-height: 1.7; max-width: 600px; }

/* base buttons: matches himco.php/security-tips.php as-is; about.php/index.php override below */
.btn-gold { background: var(--gold); color: var(--navy); border-radius: 4px; font-weight: 500; padding: 11px 28px; font-size: 14px; display: inline-block; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); border-radius: 4px; padding: 11px 28px; font-size: 14px; display: inline-block; }

/* base "section heading with gold underline" — used by about/contact/himco/security-tips */
.section-heading { font-weight: 500; color: var(--navy); padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; font-size: 16px; margin-bottom: 16px; }

/* ============ about.php ============ */
body.page-about {
  .page-hero { padding: 48px 32px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero p { max-width: 640px; line-height: 1.8; }
  .btn-gold, .btn-outline { padding: 10px 22px; }
  .section-heading { margin-bottom: 14px; }

  .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 0.5px solid var(--hairline); }
  .stat-box { padding: 28px 24px; text-align: center; border-right: 0.5px solid var(--hairline); background: #f5f5f5; }
  .stat-box:last-child { border-right: none; }
  .stat-num { font-size: 36px; font-weight: 500; color: var(--navy); }
  .stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
  .intro-section { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 0.5px solid var(--hairline); }
  .intro-col { padding: 32px 28px; border-right: 0.5px solid var(--hairline); }
  .intro-col:last-child { border-right: none; }
  .intro-col p { font-size: 13px; color: var(--text-muted); line-height: 1.85; }
  .quote-banner { background: var(--blue); color: #fff; padding: 28px 32px; text-align: center; border-bottom: 0.5px solid var(--hairline); }
  .quote-banner blockquote { font-size: 17px; font-style: italic; opacity: 0.95; margin-bottom: 10px; max-width: 700px; margin-left: auto; margin-right: auto; line-height: 1.7; }
  .quote-banner cite { font-size: 13px; opacity: 0.7; }
  .values-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 0.5px solid var(--hairline); }
  .value-card { padding: 24px; border-right: 0.5px solid var(--hairline); }
  .value-card:last-child { border-right: none; }
  .value-icon { width: 40px; height: 40px; background: var(--gold); border-radius: 4px; margin-bottom: 12px; }
  .value-card h3 { font-size: 14px; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
  .value-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
  .area-section { padding: 32px 28px; border-bottom: 0.5px solid var(--hairline); }
  .area-section p { font-size: 13px; color: var(--text-muted); line-height: 1.85; }
  .placeholder-img { background: #e8eef4; border: 0.5px solid var(--hairline); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #888; font-size: 13px; width: 100%; margin-top: 16px; }
  .cta-bar { background: var(--navy); color: #fff; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
  .cta-bar p { font-size: 15px; opacity: 0.9; }

  @media (max-width: 650px) {
    .intro-section, .stat-row, .values-grid { grid-template-columns: 1fr; }
    .intro-col, .value-card, .stat-box { border-right: none; border-bottom: 0.5px solid var(--hairline); }
  }
}

/* ============ contact.php ============ */
body.page-contact {
  .info-col .section-heading, .form-col .section-heading { margin-bottom: 20px; }

  .main-grid { display: grid; grid-template-columns: 1fr 1.4fr; border-bottom: 0.5px solid var(--hairline); }
  .info-col { padding: 32px 28px; border-right: 0.5px solid var(--hairline); }
  .info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
  .info-icon { width: 36px; height: 36px; background: var(--navy); border-radius: 4px; flex-shrink: 0; }
  .info-text { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
  .info-text strong { display: block; color: #222; font-weight: 500; font-size: 14px; margin-bottom: 2px; }
  .info-text a { color: var(--blue); }
  .emergency-box { background: #faeeda; border: 0.5px solid var(--gold); border-radius: 8px; padding: 14px 16px; margin-top: 8px; }
  .emergency-box strong { display: block; margin-bottom: 4px; color: #633806; font-size: 13px; }
  .emergency-box p { font-size: 13px; color: #854f0b; line-height: 1.6; }
  .form-col { padding: 32px 28px; }
  .form-group { margin-bottom: 16px; }
  .form-group label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
  .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; font-family: Arial, sans-serif; background: #fff; color: #222; }
  .form-group textarea { height: 110px; resize: vertical; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .submit-btn { width: 100%; background: var(--navy); color: #fff; border: none; padding: 12px; border-radius: 6px; font-size: 15px; font-weight: 500; cursor: pointer; font-family: Arial, sans-serif; }
  .form-note { font-size: 12px; color: #888; margin-top: 10px; text-align: center; }
  .hours-section { border-bottom: 0.5px solid var(--hairline); padding: 28px; }
  .hours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
  .hours-card { background: #f5f5f5; border: 0.5px solid var(--hairline); border-radius: 8px; padding: 14px 16px; }
  .hours-card .day { font-size: 13px; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
  .hours-card .time { font-size: 13px; color: var(--text-muted); }
  .hours-card.emerg { background: #faeeda; border-color: var(--gold); }
  .hours-card.emerg .day { color: #633806; }
  .hours-card.emerg .time { color: #854f0b; }
  .area-bar { background: var(--blue); color: #fff; padding: 20px 28px; border-bottom: 0.5px solid var(--hairline); }
  .area-bar p { font-size: 14px; opacity: 0.95; line-height: 1.6; }

  @media (max-width: 650px) {
    .main-grid { grid-template-columns: 1fr; }
    .info-col { border-right: none; border-bottom: 0.5px solid var(--hairline); }
    .form-row { grid-template-columns: 1fr; }
  }
}

/* ============ himco.php ============ */
body.page-himco {
  .page-hero p { max-width: 680px; }
  .section-heading { margin-bottom: 14px; }

  .story-banner { background: var(--blue); color: #fff; padding: 20px 32px; }
  .story-banner strong { display: block; font-size: 15px; margin-bottom: 4px; }
  .story-banner p { font-size: 14px; line-height: 1.7; opacity: 0.95; }
  .warning-box { padding: 20px 28px; background: #faeeda; border-bottom: 0.5px solid var(--hairline); }
  .warning-box p { font-size: 13px; color: #854f0b; line-height: 1.8; }
  .warning-box p + p { margin-top: 16px; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 0.5px solid var(--hairline); }
  .col-block { padding: 28px; border-right: 0.5px solid var(--hairline); }
  .col-block:last-child { border-right: none; }
  .col-block ul { list-style: none; font-size: 13px; color: var(--text-muted); line-height: 1.95; }
  .col-block ul li::before { content: "• "; color: var(--gold); }
  .col-block ul li.note { font-size: 12px; font-style: italic; margin-top: 4px; }
  .col-block ul li.note::before { content: "* "; color: var(--gold); }
  .weld-callout { margin-top: 16px; background: #e6f1fb; border: 0.5px solid #b5d4f4; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #0c447c; line-height: 1.7; }
  .weld-callout strong { display: block; margin-bottom: 4px; }
  .common-issues { padding: 28px; border-bottom: 0.5px solid var(--hairline); }
  .issues-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
  .issue-card { background: #f5f5f5; border: 0.5px solid var(--hairline); border-radius: 6px; padding: 14px; }
  .issue-card h3 { font-size: 13px; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
  .issue-card p { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
  .issue-card .tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 3px; margin-bottom: 6px; font-weight: 600; }
  .tag-repair { background: #e6f1fb; color: #185fa5; }
  .tag-replace { background: #faeeda; color: #854f0b; }
  .tag-assess { background: #eaf3de; color: #3b6d11; }
  .cta-banner { background: var(--blue); color: #fff; padding: 28px; text-align: center; }
  .cta-banner h2 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
  .cta-banner p { font-size: 14px; opacity: 0.9; margin-bottom: 16px; }
}

/* ============ security-tips.php ============ */
body.page-security-tips {
  .section-heading { font-size: 18px; }

  .hero-small { background: var(--navy); padding: 32px 28px; text-align: center; color: #fff; }
  .hero-small h1 { font-size: 26px; font-weight: 500; margin-bottom: 8px; }
  .hero-small p { font-size: 14px; opacity: 0.85; }
  .content { padding: 32px 28px; }
  .tips-section { margin-bottom: 36px; }
  .tips-section ol { padding-left: 20px; }
  .tips-section ol li { font-size: 14px; line-height: 1.8; color: #333; padding: 4px 0; border-bottom: 0.5px solid #f0f0f0; }
  .tips-section ol li:last-child { border-bottom: none; }
  .cta-banner { background: var(--blue); color: #fff; padding: 28px; text-align: center; }
  .cta-banner h2 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
  .cta-banner p { font-size: 14px; opacity: 0.9; margin-bottom: 16px; }
}

/* ============ index.php ============ */
body.page-index {
  .btn-gold { padding: 8px 16px; font-size: 12px; }

  .hero { position: relative; width: 100%; overflow: hidden; }
  .hero-bg { width: 100%; height: auto; display: block; object-fit: cover; object-position: center bottom; }
  .hero-logo { position: absolute; left: 50%; transform: translateX(-50%); z-index: 3; width: 42%; max-width: 400px; min-width: 180px; top: -4%; }
  .hero-bottom { position: absolute; bottom: 0; left: 0; right: 0; z-index: 4; padding: 10px 16px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 8px; background: linear-gradient(transparent, rgba(10,30,60,0.65)); }
  .sky-nav { position: absolute; top: 6%; left: 12px; z-index: 10; display: flex; gap: 8px; }
  .sky-btn { font-size: 13px; font-weight: 800; padding: 8px 18px; border-radius: 4px; display: inline-block; box-shadow: 0 3px 12px rgba(0,0,0,0.5); cursor: pointer; }
  .licensed-bar { background: var(--navy); padding: 6px 16px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
  .licensed-bar span { font-size: 11px; }
  .services-row { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 0.5px solid var(--hairline); }
  .service-col { padding: 14px; border-right: 0.5px solid var(--hairline); }
  .service-col:last-child { border-right: none; }
  .service-col h2 { font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
  .service-col ul { list-style: none; font-size: 11px; color: var(--text-muted); line-height: 1.8; }
  .service-col ul li::before { content: "• "; color: var(--gold); }
  .testi-banner { background: var(--blue); color: #fff; padding: 16px 20px; text-align: center; }
  .testi-banner blockquote { font-size: 13px; font-style: italic; margin-bottom: 4px; }
  .testi-banner cite { font-size: 11px; opacity: 0.7; }

  @media (max-width: 600px) {
    .hero-logo { width: 55%; top: -2%; }
    .sky-btn { font-size: 11px; padding: 6px 12px; }
    .services-row { grid-template-columns: 1fr; }
    .service-col { border-right: none; border-bottom: 0.5px solid var(--hairline); }
    .service-col:last-child { border-bottom: none; }
    .licensed-bar { gap: 10px; }
    .licensed-bar span { font-size: 10px; }
    .hero-bottom p { font-size: 11px; }
    .btn-gold { font-size: 11px; padding: 6px 12px; }
  }
  @media (max-width: 400px) {
    .hero-logo { width: 65%; }
  }
}
