/* JGL Contracting — single stylesheet
   Mobile-first, system fonts (no CLS), CSS variables for easy rebranding when logo arrives. */

:root {
  --brand: #0f3460;
  --brand-dark: #0a2547;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-band: #f1f5f9;
  --border: #e2e8f0;
  --success: #15803d;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --radius: 8px;
  --radius-lg: 14px;
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 16px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Layout helpers */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-band { background: var(--bg-band); }
.section-dark { background: var(--brand); color: #fff; }
.section-dark a { color: #fff; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 12px;
}

/* Typography */
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 16px; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw + 0.5rem, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 16px; color: var(--ink-soft); }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark p { color: #fff; }
.section-dark p { color: #cbd5e1; }
.muted { color: var(--ink-muted); font-size: 0.95rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand); color: #fff; }
.btn-on-dark { background: var(--accent); color: #fff; }
.btn-on-dark:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.08rem; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: var(--maxw); margin: 0 auto;
  gap: 16px;
}
.brand-link { display: flex; align-items: center; color: var(--brand); text-decoration: none; }
.brand-link:hover { text-decoration: none; }
.brand-logo-img { height: 84px; width: auto; max-width: 260px; object-fit: contain; display: block; }

.nav-toggle {
  background: transparent; border: 0; padding: 8px; cursor: pointer; color: var(--ink); display: none;
}
.nav-toggle svg { width: 28px; height: 28px; }

.primary-nav { display: flex; align-items: center; gap: 8px; }
.primary-nav a { color: var(--ink-soft); padding: 8px 14px; font-weight: 500; border-radius: 6px; }
.primary-nav a:hover { background: var(--bg-soft); color: var(--brand); text-decoration: none; }
.primary-nav a.active { color: var(--brand); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--brand); text-decoration: none; font-size: 1.05rem;
}
.header-phone:hover { color: var(--accent-dark); text-decoration: none; }
.header-phone svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: #fff;
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1600&q=70");
  background-size: cover; background-position: center;
  opacity: 0.18;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 880px; margin-bottom: 20px; }
.hero p { color: #e2e8f0; font-size: 1.2rem; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-trust { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 24px 32px; color: #cbd5e1; font-size: 0.95rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* Sub-hero for inner pages */
.page-hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: #fff; padding: 56px 0 48px;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #cbd5e1; max-width: 720px; font-size: 1.1rem; margin-bottom: 0; }
.breadcrumb { color: #94a3b8; font-size: 0.9rem; margin-bottom: 16px; }
.breadcrumb a { color: #cbd5e1; }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Service cards */
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; text-decoration: none; color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: block;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); text-decoration: none; }
.service-card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(249, 115, 22, 0.12); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 18px;
}
.service-card-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); margin-bottom: 12px; font-size: 0.97rem; }
.service-card-link { color: var(--brand); font-weight: 600; font-size: 0.95rem; }

/* City cards */
.city-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; text-decoration: none; color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex; align-items: center; gap: 14px;
}
.city-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); text-decoration: none; }
.city-card svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }
.city-card strong { color: var(--ink); font-size: 1.05rem; display: block; }
.city-card span { color: var(--ink-muted); font-size: 0.9rem; }

/* Trust strip */
.trust-strip { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.trust-item { display: flex; gap: 16px; align-items: flex-start; }
.trust-item-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  background: var(--brand); color: #fff; display: grid; place-items: center;
}
.trust-item-icon svg { width: 22px; height: 22px; }
.trust-item h3 { margin-bottom: 4px; font-size: 1.1rem; }
.trust-item p { margin-bottom: 0; font-size: 0.97rem; }

/* Content prose for service/city/about pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; color: var(--ink-soft); }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: var(--radius); margin: 24px 0; }

/* Two-column with sidebar */
.layout-with-aside { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .layout-with-aside { grid-template-columns: minmax(0, 1fr) 300px; }
}
.aside-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky; top: 100px;
}
.aside-card h3 { margin-bottom: 12px; font-size: 1.05rem; }
.aside-card p { font-size: 0.95rem; }
.aside-phone {
  display: block; font-size: 1.4rem; font-weight: 700; color: var(--brand);
  text-decoration: none; margin: 14px 0;
}
.aside-card .btn { width: 100%; text-align: center; }

/* Hero image / inline image */
.hero-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

/* Reviews placeholder (Honos integration hook) */
.reviews-placeholder {
  background: var(--bg-soft); border: 1px dashed var(--border);
  border-radius: var(--radius-lg); padding: 40px 24px; text-align: center;
}
.reviews-placeholder .stars { color: var(--accent); font-size: 1.6rem; letter-spacing: 4px; margin-bottom: 8px; }
.reviews-placeholder p { margin: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: #fff; padding: 56px 0;
}
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #cbd5e1; margin: 0; }
.cta-band .btn { white-space: nowrap; }

/* Contact form */
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-form .form-row { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 640px) { .contact-form .form-row.two-col { grid-template-columns: 1fr 1fr; } }
.contact-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .btn { width: 100%; padding: 16px; }
.form-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 16px; border-radius: var(--radius); margin-bottom: 16px; display: none; }
.form-success.show { display: block; }

/* Contact info block */
.contact-info { display: grid; gap: 22px; }
.contact-info .info-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .info-row svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-info h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-info p { margin: 0; color: var(--ink-soft); }
.contact-info a { color: var(--brand); font-weight: 600; }

.map-embed {
  width: 100%; height: 380px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}

/* Footer */
.site-footer {
  background: var(--ink); color: #cbd5e1; padding: 56px 0 24px;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 36px;
}
.footer-col h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; font-size: 0.95rem; }
.footer-nap { font-style: normal; font-size: 0.95rem; line-height: 1.65; }
.footer-nap strong { color: #fff; display: block; font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.footer-nap a { color: #cbd5e1; }
.footer-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.85rem; color: #94a3b8;
}

/* Responsive: nav collapses */
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 12px 20px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px 14px; }
  .header-cta .btn { display: none; }
}

@media (max-width: 520px) {
  .header-phone span.phone-label { display: none; }
  .brand-logo-img { height: 60px; max-width: 180px; }
  .section { padding: 48px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-trust { gap: 14px 22px; font-size: 0.9rem; }
}

/* Print: NAP-friendly */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-actions, .cta-band, .contact-form, .map-embed { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
