/* US Contractor Network — navy + green on light gray (recovered design) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #1e3a5f;
  --navy-dark: #152d4d;
  --navy-light: #254a78;
  --green: #22c55e;
  --green-dark: #16a34a;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --orange: #f97316;
  --red: #b91c1c;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--gray-50); color: var(--gray-800); font-size: 17px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; min-height: 64px; flex-wrap: wrap; gap: 8px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.5px; color: var(--white); }
.logo-icon { width: 36px; height: 36px; background: var(--green); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; font-weight: 900; color: var(--white); text-align: center; }
.logo span { color: var(--green); }
nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
nav a { color: rgba(255,255,255,0.88); padding: 8px 13px; border-radius: 6px; font-size: 0.95rem; font-weight: 500; }
nav a:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.nav-cta { background: var(--green) !important; color: var(--white) !important; font-weight: 700 !important; }
.nav-cta:hover { background: var(--green-dark) !important; }
.header-phone { color: var(--white); font-weight: 700; font-size: 0.95rem; padding: 8px 6px; }

.notice-bar { background: linear-gradient(90deg, #fff8f0 0%, #fff3e0 100%); border-bottom: 2px solid var(--orange); padding: 12px 24px; text-align: center; }
.notice-bar p { font-size: 0.92rem; color: #92400e; max-width: 820px; margin: 0 auto; }
.notice-bar strong { color: var(--orange); }
.notice-bar a { color: var(--navy); font-weight: 700; text-decoration: underline; }

.hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%); color: var(--white); padding: 64px 24px 72px; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.4); color: var(--green); padding: 6px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 900; line-height: 1.15; margin-bottom: 16px; }
.hero p { font-size: 1.12rem; color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 auto 32px; }
.search-box { background: var(--white); border-radius: 16px; padding: 20px 24px; max-width: 760px; margin: 0 auto; box-shadow: 0 8px 40px rgba(0,0,0,0.25); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search-box select, .search-box input { flex: 1; min-width: 160px; padding: 12px 16px; border: 2px solid var(--gray-200); border-radius: 10px; font-size: 1rem; color: var(--gray-800); background: var(--gray-50); outline: none; }
.search-box select:focus, .search-box input:focus { border-color: var(--navy); }
.search-btn { background: var(--green); color: var(--white); border: none; padding: 12px 28px; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.search-btn:hover { background: var(--green-dark); }

.stats-bar { background: var(--navy-dark); color: var(--white); padding: 16px 24px; }
.stats-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.stat-item { display: flex; align-items: center; gap: 8px; padding: 8px 22px; font-size: 0.92rem; font-weight: 600; border-right: 1px solid rgba(255,255,255,0.15); text-align: center; }
.stat-item:last-child { border-right: none; }
.stat-num { color: var(--green); font-size: 1.1rem; font-weight: 800; }

.section { padding: 56px 24px; }
.section-alt { background: var(--gray-100); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 32px; }
.section-header h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.section-header p { color: var(--gray-600); }
.view-all { display: inline-flex; align-items: center; gap: 6px; color: var(--green-dark); font-weight: 700; margin-top: 6px; }
.view-all:hover { text-decoration: underline; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--white); border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.07); overflow: hidden; border: 1px solid var(--gray-200); display: flex; flex-direction: column; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.card-specialty { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 10px; text-transform: uppercase; background: var(--gray-100); color: var(--gray-600); text-align: center; }
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.card h3 a:hover { color: var(--green-dark); text-decoration: underline; }
.card-location { color: var(--gray-600); font-size: 0.88rem; margin-bottom: 8px; }
.card-license { color: var(--gray-400); font-size: 0.8rem; margin-bottom: 8px; }
.card-phone { font-size: 0.98rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.card-phone a:hover { color: var(--green-dark); }
.card-website { font-size: 0.85rem; margin-bottom: 6px; }
.card-website a { color: var(--green-dark); }
.card-website a:hover { text-decoration: underline; }
.card-footer { border-top: 1px solid var(--gray-200); padding: 12px 20px; background: var(--gray-50); display: flex; gap: 10px; }
.view-btn { flex: 1; display: block; text-align: center; background: var(--white); border: 2px solid var(--navy); color: var(--navy); padding: 8px 10px; border-radius: 8px; font-size: 0.88rem; font-weight: 700; }
.view-btn:hover { background: var(--navy); color: var(--white); }
.claim-btn { flex: 1; display: block; text-align: center; background: var(--navy); color: var(--white); padding: 10px; border-radius: 8px; font-size: 0.88rem; font-weight: 700; }
.claim-btn:hover { background: var(--navy-light); }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step { text-align: center; padding: 28px 20px; background: var(--white); border-radius: 14px; border: 1px solid var(--gray-200); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.step-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; text-align: center; }
.step h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; }

.cta-banner { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: var(--white); text-align: center; padding: 60px 24px; }
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 26px; font-size: 1.05rem; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: var(--white); padding: 14px 32px; border-radius: 10px; font-size: 1rem; font-weight: 700; text-align: center; }
.cta-btn:hover { background: var(--green-dark); }

.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { background: var(--white); border: 2px solid var(--gray-200); border-radius: 100px; padding: 9px 18px; font-weight: 600; font-size: 0.93rem; color: var(--navy); text-align: center; }
.chip:hover { border-color: var(--green); color: var(--green-dark); }
.chip small { color: var(--gray-400); font-weight: 500; }

.toolbar { background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; padding: 18px 20px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.toolbar input, .toolbar select { padding: 11px 14px; border: 2px solid var(--gray-200); border-radius: 10px; font-size: 0.98rem; color: var(--gray-800); background: var(--gray-50); outline: none; }
.toolbar input:focus, .toolbar select:focus { border-color: var(--navy); }
.toolbar input { flex: 2; min-width: 200px; }
.toolbar select { flex: 1; min-width: 160px; }
.results-count { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 16px; text-align: center; }
.pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 28px 0 8px; flex-wrap: wrap; }
.pager button { background: var(--navy); color: var(--white); border: none; padding: 10px 22px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.pager button:disabled { background: var(--gray-200); color: var(--gray-400); cursor: default; }
.pager .page-info { color: var(--gray-600); font-weight: 600; }
.loading { text-align: center; color: var(--gray-600); padding: 40px 0; font-size: 1.05rem; }
.error-box { background: #fef2f2; border: 1px solid #fecaca; color: var(--red); border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; text-align: center; }
.success-box { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; text-align: center; }
.hidden { display: none !important; }

/* Listing detail */
.listing-hero { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 36px; margin-bottom: 24px; text-align: center; }
.listing-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); color: var(--navy); font-weight: 900; margin-bottom: 8px; }
.listing-hero .sub { color: var(--gray-600); font-size: 1.05rem; }
.banner-unclaimed { background: var(--orange); color: var(--white); border-radius: 10px; padding: 12px 18px; font-weight: 700; text-align: center; margin-bottom: 24px; }
.banner-claimed { background: var(--green); color: var(--white); border-radius: 10px; padding: 12px 18px; font-weight: 700; text-align: center; margin-bottom: 24px; }
.panel { background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; padding: 26px 30px; margin-bottom: 24px; }
.panel h2 { color: var(--navy); font-size: 1.25rem; margin-bottom: 14px; text-align: center; }
.panel dl { display: grid; grid-template-columns: 190px 1fr; gap: 8px 18px; }
.panel dt { font-weight: 700; color: var(--gray-600); }
.panel dd { color: var(--gray-800); }
.panel p { margin-bottom: 10px; }
.big-call { display: block; text-align: center; background: var(--green); color: var(--white); font-size: 1.2rem; font-weight: 800; padding: 16px; border-radius: 12px; margin: 18px 0; }
.big-call:hover { background: var(--green-dark); }

/* Forms */
.form-wrap { max-width: 620px; margin: 0 auto; background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 34px 36px; }
.form-wrap h1, .form-wrap h2 { color: var(--navy); text-align: center; margin-bottom: 10px; }
.form-wrap .lede { text-align: center; color: var(--gray-600); margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 2px solid var(--gray-200); border-radius: 10px; font-size: 1rem; background: var(--gray-50); color: var(--gray-800); outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); }
.field .hint { font-size: 0.85rem; color: var(--gray-400); margin-top: 4px; }
.submit-btn { width: 100%; background: var(--green); color: var(--white); border: none; padding: 14px; border-radius: 10px; font-size: 1.05rem; font-weight: 800; cursor: pointer; }
.submit-btn:hover { background: var(--green-dark); }
.submit-btn:disabled { background: var(--gray-200); color: var(--gray-400); cursor: default; }
.alt-link { text-align: center; margin-top: 18px; color: var(--gray-600); }
.alt-link a { color: var(--green-dark); font-weight: 700; }
.alt-link a:hover { text-decoration: underline; }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 40px 44px; }
.legal h1 { color: var(--navy); margin-bottom: 6px; text-align: center; }
.legal .updated { text-align: center; color: var(--gray-400); margin-bottom: 28px; }
.legal h2 { color: var(--navy); font-size: 1.15rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--gray-800); margin-bottom: 8px; }
.legal ul { padding-left: 22px; }

footer { background: var(--navy-dark); color: rgba(255,255,255,0.72); padding: 46px 24px 24px; margin-top: 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 38px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-top: 12px; }
.footer-col h4 { color: var(--white); font-weight: 700; margin-bottom: 14px; font-size: 0.92rem; }
.footer-col a { display: block; font-size: 0.88rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 0.84rem; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: var(--green); }
.dbpr-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: var(--green); padding: 4px 12px; border-radius: 100px; font-size: 0.78rem; font-weight: 700; text-align: center; }

@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .panel dl { grid-template-columns: 1fr; }
  .panel dt { margin-top: 8px; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .search-box { flex-direction: column; }
  .search-btn { width: 100%; }
  .form-wrap { padding: 26px 20px; }
}
