/* ATX Commercial Roof — lead referral network */
:root {
  --navy: #0c2340;
  --navy-mid: #163a5f;
  --steel: #2a4a6a;
  --accent: #c45c26;
  --accent-hover: #a84a1c;
  --sky: #e8f0f7;
  --muted: #5a6a7a;
  --border: #d4dde6;
  --white: #ffffff;
  --text: #1a2332;
  --ok: #1b6b3a;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(12, 35, 64, 0.08);
  --max: 1100px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-mid); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); margin-top: 0; }
h1 { font-size: clamp(1.75rem, 4vw, 2.35rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.5rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* Banner / disclaimer */
.site-banner {
  background: var(--navy);
  color: #dce6f0;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.45rem 1rem;
}
.site-banner strong { color: #fff; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.75rem 0; flex-wrap: wrap;
}
.logo {
  display: flex; flex-direction: column; text-decoration: none; color: var(--navy);
}
.logo-mark { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo-mark span { color: var(--accent); }
.logo-sub { font-size: 0.7rem; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }

.nav-toggle {
  display: none; background: var(--navy); color: #fff; border: 0;
  padding: 0.5rem 0.85rem; border-radius: var(--radius); font-size: 0.9rem; cursor: pointer;
}
.nav { display: flex; align-items: center; gap: 0.15rem 1rem; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--steel); font-size: 0.92rem; font-weight: 500;
  padding: 0.25rem 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .btn-nav {
  background: var(--accent); color: #fff !important; padding: 0.45rem 0.9rem;
  border-radius: var(--radius); font-weight: 600;
}
.nav .btn-nav:hover { background: var(--accent-hover); }

/* Hero */
.hero {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 55%, var(--steel) 100%);
  color: #e8eef5;
  padding: 3rem 0 3.25rem;
}
.hero h1 { color: #fff; }
.hero p { color: #c5d3e3; max-width: 38rem; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-note {
  margin-top: 1.25rem; font-size: 0.85rem; color: #9bb0c7;
  border-left: 3px solid var(--accent); padding-left: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.7rem 1.2rem; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-secondary:hover { border-color: #fff; color: #fff; }
.btn-outline {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { display: block; text-align: center; width: 100%; }

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--sky); }
.section-lead { color: var(--muted); max-width: 40rem; margin-bottom: 1.75rem; }
.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.5rem;
}

/* Cards / grid */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.35rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card a.card-link {
  display: inline-block; margin-top: 0.75rem; font-weight: 600; text-decoration: none;
  color: var(--accent);
}
.card a.card-link:hover { text-decoration: underline; }

.price-card {
  border-top: 4px solid var(--navy);
  display: flex; flex-direction: column;
}
.price-card.featured { border-top-color: var(--accent); }
.price-card .price {
  font-size: 1.5rem; font-weight: 800; color: var(--navy); margin: 0.5rem 0;
}
.price-card .price span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.price-card ul { flex: 1; }

/* Cities list */
.city-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.65rem;
  list-style: none; padding: 0; margin: 0 0 1rem;
}
.city-list li {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.65rem 0.85rem; margin: 0; font-weight: 600; color: var(--navy); text-align: center;
}

/* Forms */
.form-card { max-width: 560px; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--navy); }
input, select, textarea {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--border);
  border-radius: var(--radius); font: inherit; margin-bottom: 1rem; background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.consent {
  display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.85rem;
  color: var(--muted); margin-bottom: 1rem;
}
.consent input { width: auto; margin: 0.2rem 0 0; flex-shrink: 0; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
table {
  width: 100%; border-collapse: collapse; font-size: 0.95rem; background: #fff;
}
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
th { background: var(--navy); color: #fff; font-weight: 600; }
tr:nth-child(even) td { background: #f7fafc; }

/* CTA strip */
.cta-strip {
  background: var(--navy); color: #dce6f0; padding: 2.5rem 0; text-align: center;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { max-width: 36rem; margin: 0 auto 1.25rem; }

/* Footer */
.site-footer {
  background: #081828; color: #9bb0c7; padding: 2.5rem 0 1.5rem; font-size: 0.9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.site-footer a { color: #b8c9da; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem;
  font-size: 0.8rem; color: #7a8fa3;
}
.footer-legal p { margin-bottom: 0.5rem; }

/* Page hero (inner) */
.page-hero {
  background: var(--sky); border-bottom: 1px solid var(--border);
  padding: 2rem 0 1.75rem;
}
.page-hero p { color: var(--muted); max-width: 40rem; margin-bottom: 0; }
.breadcrumb {
  font-size: 0.8rem; color: var(--muted); margin-bottom: 0.65rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.prose { max-width: 42rem; }
.prose h2 { margin-top: 2rem; }
.disclaimer-box {
  background: #fff8f0; border: 1px solid #e8d0b8; border-radius: var(--radius);
  padding: 1rem 1.15rem; font-size: 0.9rem; color: #5a4030; margin: 1.5rem 0;
}

/* Responsive */
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2.keep-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    padding: 0.5rem 0 0.75rem; gap: 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
  .nav .btn-nav { text-align: center; margin-top: 0.5rem; border: none; }
}
@media (max-width: 500px) {
  .grid-2.keep-2 { grid-template-columns: 1fr; }
  .hero { padding: 2.25rem 0; }
}
