/* Friendly industrial polish layer
   Purpose: make the site warmer, easier to read, and more action-focused without changing the core layout. */
:root {
  --navy: #12304f;
  --blue: #1f5f9f;
  --blue-mid: #2873b8;
  --blue-light: #3d85c6;
  --sky: #f1f5f9;
  --sky-mid: #f7fafc;
  --steel: #7da1bf;
  --warm: #f6efe5;
  --warm-card: #fffaf3;
  --accent-warm: #c9822b;
  --text: #132f4c;
  --text-mid: #314f6d;
  --text-dim: #55708c;
  --radius: 10px;
  --radius-lg: 16px;
  --font-display: 'Inter', 'Source Sans 3', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Inter', Arial, sans-serif;
}

html { font-size: 17px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.68;
  background: var(--sky-mid);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

p, li, label, input, textarea, select, button { font-family: var(--font-body); }
p { font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem); }

.header { background: rgba(255,255,255,0.98); }
.header-inner { min-height: 76px; }
nav a {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
}
.header nav a[href$='contact.html'],
.header nav a[href='pages/contact.html'] {
  background: var(--blue);
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 8px 22px rgba(31,95,159,.20);
}
.header nav a[href$='contact.html']:hover,
.header nav a[href='pages/contact.html']:hover { background: var(--blue-mid); }

.hero-overlay, .page-hero::before {
  background: linear-gradient(100deg, rgba(11,36,68,0.82) 38%, rgba(11,36,68,0.28) 100%) !important;
}
.hero h1, .page-hero h1, .section-title, h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  text-transform: none !important;
}
.hero h1, .page-hero h1 {
  line-height: 1.07;
  max-width: 760px;
}
.hero p, .page-hero-sub {
  color: rgba(255,255,255,.90) !important;
  font-weight: 500;
  max-width: 620px;
}
.hero-eyebrow {
  font-family: var(--font-body) !important;
  letter-spacing: .08em !important;
  color: #d7e7f5 !important;
}

.btn, .btn-primary, .btn-ghost, .btn-learn, .btn-submit, .btn-estimate, .btn-cta, .footer-cta-btn, .back-banner-btn {
  font-family: var(--font-body) !important;
  border-radius: 999px !important;
  letter-spacing: 0 !important;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  text-transform: none !important;
  font-weight: 800 !important;
}
.btn-primary, .btn-submit, .btn-estimate, .btn-cta, .footer-cta-btn { background: var(--blue) !important; }
.btn-primary:hover, .btn-submit:hover, .btn-estimate:hover, .btn-cta:hover, .footer-cta-btn:hover { background: var(--blue-mid) !important; }
.btn-ghost, .btn-outline { backdrop-filter: blur(2px); }

.service-card, .product-card, .intro-card, .form-card, .contact-card, .stat, .why-card, .gallery-item {
  border-radius: var(--radius-lg) !important;
}
.product-card, .service-card, .intro-card, .form-card, .contact-card, .why-card {
  box-shadow: 0 10px 28px rgba(19,47,76,.10) !important;
}

.section-title { font-size: clamp(2rem, 1.5rem + 2vw, 3rem) !important; }
.section-title span, .hero h1 span, .page-hero h1 span { color: var(--blue-light) !important; }

/* Preserve each page's intended structural section background.
   The previous global light-background override caused white CTA copy to disappear. */
.stats-bar, .intro-strip, .contact-strip, .cta-section {
  /* page-specific stylesheet owns the background */
}
.stat-label, .product-price span, .form-section-label {
  letter-spacing: .04em !important;
}

/* Keep technical/product information easy to scan. */
.product-title, .product-card h3, .service-card h3 { line-height: 1.22; }
.product-desc, .service-card p { color: var(--text-mid); }
.product-price { border-radius: 999px; }

/* Older-reader/mobile friendliness */
@media (max-width: 768px) {
  html { font-size: 18px; }
  .container { padding-left: 22px !important; padding-right: 22px !important; }
  .hero, .page-hero { min-height: 420px !important; }
  .hero h1, .page-hero h1 { font-size: clamp(2.5rem, 12vw, 3.6rem) !important; }
  nav a { font-size: 1.05rem; padding: 12px 14px; }
  .hero-btns, .btn-row { gap: 12px; }
  .btn, .btn-primary, .btn-ghost, .btn-learn, .btn-submit { width: 100%; }
}

/* Sitewide quick-contact bar for visitors who just want help. */
.friendly-contact-bar {
  background: #fff;
  border-bottom: 1px solid rgba(19,47,76,.08);
  box-shadow: 0 6px 18px rgba(19,47,76,.06);
}
.friendly-contact-bar .friendly-contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text-mid);
  font-weight: 700;
}
.friendly-contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.friendly-contact-actions a {
  color: var(--blue);
  background: #eef5fb;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
}
@media (max-width: 760px) {
  .friendly-contact-bar .friendly-contact-inner { padding: 10px 22px; flex-direction: column; align-items: flex-start; }
}

/* FAQ blocks added for SEO/AI readability. */
.friendly-faq {
  background: #fff;
  padding: 72px 0;
}
.friendly-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.friendly-faq-item {
  background: var(--warm-card);
  border: 1px solid rgba(19,47,76,.08);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.friendly-faq-item h3 { font-size: 1.2rem; margin-bottom: 8px; }
@media (max-width: 900px) { .friendly-faq-grid { grid-template-columns: 1fr; } }

/* Avoid hiding text in busy photos. */
.hero-content, .page-hero-content, .page-hero .container { text-shadow: 0 2px 12px rgba(0,0,0,.18); }


/* ── PRE-PUBLISH MOBILE NAV COMPATIBILITY ──
   Page scripts open the menu with .open. Neutralize the older drawer transform
   from main.css so the page-level mobile menu works consistently. */
@media (max-width: 960px) {
  .mobile-nav {
    top: 76px !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    transition: none !important;
  }
}
