/* Owasso Roofing Pros — professional redesign. Mobile-first. System font stack. No frameworks. */
:root {
  --slate: #0f2a43;
  --slate-dark: #0a1c30;
  --slate-light: #1a3a5c;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --amber-soft: #fef3c7;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --radius: 12px;
  --maxw: 1140px;
  --shadow-sm: 0 1px 3px rgba(15, 42, 67, .08);
  --shadow-md: 0 6px 20px rgba(15, 42, 67, .10);
  --shadow-lg: 0 12px 32px rgba(15, 42, 67, .14);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.0625rem;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  /* mobile: clear the fixed sticky-call bar (~62px + 16px breathing room) */
  padding-bottom: 5rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1d5aa8; }
a:hover { color: var(--amber-dark); }
h1, h2, h3 { color: var(--slate); line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; margin-top: 0; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
/* readable measure for body copy; heroes and centered one-liners keep their own widths */
main p { max-width: 70ch; }
.hero p, .page-hero p { max-width: none; }
main .stats-note { max-width: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.25rem 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--slate); color: #dbe4ee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #c3d2e4; }

/* ---------- header ---------- */
.site-header {
  background: var(--slate);
  color: var(--white);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.22);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1.25rem; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: .2px; line-height: 1.15; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand small { display: block; font-weight: 500; font-size: .7rem; color: #a9bdd4; letter-spacing: .5px; }
.site-nav { display: none; align-items: center; }
.site-nav > a, .nav-drop-btn {
  color: #dbe4ee; text-decoration: none; margin-left: 1.3rem; font-size: .98rem; font-weight: 600;
  background: none; border: none; cursor: pointer; font-family: inherit; padding: .4rem 0;
}
.site-nav > a:hover, .site-nav > a[aria-current="page"], .nav-drop-btn:hover { color: var(--amber); }
.nav-drop { position: relative; margin-left: 1.3rem; }
.nav-drop-btn { margin-left: 0; display: inline-flex; align-items: center; gap: .3rem; }
.nav-drop-btn::after { content: "▾"; font-size: .8em; color: var(--amber); }
.nav-drop-menu {
  display: none; position: absolute; top: calc(100% + .55rem); left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 300px; padding: .6rem; list-style: none; margin: 0; z-index: 60;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu::before { content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: #fff; }
.nav-drop-menu a { display: block; color: var(--ink); text-decoration: none; padding: .6rem .9rem; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.nav-drop-menu a:hover { background: var(--gray-100); color: var(--slate); }
.header-phone {
  display: none; background: var(--amber); color: #1a1a1a !important; font-weight: 800; text-decoration: none;
  padding: .6rem 1.2rem; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 8px rgba(245,158,11,.4);
  transition: transform .15s ease, background .15s ease;
}
.header-phone:hover { background: var(--amber-dark); color: #000 !important; transform: translateY(-1px); }
.nav-toggle { background: rgba(255,255,255,.08); border: 1px solid #33507a; color: #fff; border-radius: 8px; padding: .45rem .7rem; font-size: 1.1rem; cursor: pointer; }
.mobile-nav { display: none; background: var(--slate-dark); padding: .5rem 1.25rem 1rem; max-height: 70vh; overflow-y: auto; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; color: #dbe4ee; text-decoration: none; padding: .65rem 0; border-top: 1px solid #22395a; font-weight: 500; }
.mobile-nav a:hover { color: var(--amber); }
.mobile-nav .mobile-nav-head { color: var(--amber); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; padding: .9rem 0 .2rem; border-top: 1px solid #22395a; }

/* ---------- hero (homepage) ---------- */
.hero { position: relative; overflow: hidden; background: var(--slate-dark); color: #fff; padding: 4.5rem 0 3.5rem; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,28,48,.45) 0%, rgba(10,28,48,.78) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: 2.15rem; max-width: 16em; }
.hero-kicker { color: var(--amber); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: .82rem; margin: 0 0 .8rem; }
.hero .lead { color: #e2eaf4; font-size: 1.18rem; max-width: 40rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.hero-trust { color: #b7c7db; font-size: .93rem; margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.hero-trust span::before { content: "✓ "; color: var(--amber); font-weight: 800; }
.hero-service { color: #9fb2c9; font-size: .9rem; margin-top: 1rem; }

/* ---------- page hero (service pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--slate) 0%, var(--slate-light) 100%); color: #fff; padding: 3rem 0; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; top: -40px; right: -40px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.22) 0%, transparent 70%); }
.page-hero h1 { color: #fff; position: relative; }
.page-hero .lead { color: #d7e2f0; max-width: 44rem; position: relative; }
.page-hero .hero-ctas { position: relative; }
.breadcrumb { font-size: .87rem; color: var(--muted); padding: 1.1rem 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber-dark); }

/* ---------- trust bar + stats ---------- */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.trust-bar .container { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; }
.trust-bar span { font-size: .93rem; font-weight: 600; color: var(--slate); display: flex; align-items: center; gap: .55rem; }
.trust-bar span::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; flex: none; border-radius: 50%; background: #e8f7ee; color: #15803d; font-weight: 800; font-size: .85rem; }
.stats-strip { background: var(--slate); color: #fff; padding: 2.25rem 0; }
.stats-strip .container { display: grid; grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--amber); line-height: 1.1; }
.stat-label { color: #b7c7db; font-size: .92rem; margin-top: .3rem; }
.stats-note { text-align: center; color: #7e93ad; font-size: .8rem; margin-top: 1.25rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; padding: .9rem 1.7rem;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer; font-size: 1.03rem; line-height: 1.3;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--amber); color: #1a1a1a; box-shadow: 0 4px 14px rgba(245,158,11,.35); }
.btn-primary:hover { background: var(--amber-dark); color: #000; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(245,158,11,.45); }
.btn-secondary { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.7); }
.btn-secondary:hover { background: rgba(255,255,255,.18); color: #fff; transform: translateY(-2px); }
.btn-on-light { color: var(--slate); border-color: var(--slate); border-radius: 999px; }
.btn-on-light:hover { background: var(--slate); color: #fff; transform: translateY(-2px); }

/* ---------- content blocks ---------- */
.lead { font-size: 1.15rem; }
.cta-band { background: linear-gradient(135deg, var(--slate) 0%, var(--slate-light) 100%); color: #fff; text-align: center; padding: 3.5rem 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 420px; height: 200px; background: radial-gradient(ellipse, rgba(245,158,11,.18) 0%, transparent 70%); }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #d7e2f0; max-width: 40rem; margin-left: auto; margin-right: auto; position: relative; }
.cta-band .hero-ctas { justify-content: center; position: relative; }
.services-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.75rem; }
.service-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column; overflow: hidden;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card h3 { margin-top: 0; font-size: 1.15rem; }
.service-card h3 a { color: var(--slate); text-decoration: none; }
.service-card h3 a:hover { color: var(--amber-dark); }
.service-card p { flex: 1; }
.service-card p:last-child { margin-bottom: 0; }
.service-thumb {
  display: block; width: calc(100% + 3.2rem); max-width: none; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
  margin: -1.6rem -1.6rem 1.1rem;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-link { font-weight: 700; color: var(--amber-dark); text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 0; position: relative; }
.steps li {
  counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.35rem 4rem; position: relative; margin-bottom: 1rem; box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step); position: absolute; left: 1.15rem; top: 1.2rem; width: 2.1rem; height: 2.1rem;
  border-radius: 50%; background: var(--amber); color: #1a1a1a; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.steps li::after { content: ""; position: absolute; left: 2.18rem; top: 100%; width: 2px; height: 1rem; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps strong { display: block; color: var(--slate); margin-bottom: .25rem; font-size: 1.05rem; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: .45rem 0 .45rem 2rem; position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: .45rem; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: #e8f7ee; color: #15803d; font-weight: 800; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center;
}
.disclaimer { background: var(--amber-soft); border-left: 4px solid var(--amber); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: .94rem; color: #57534e; }
.figure { margin: 2rem 0; }
.figure img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); width: 100%; }
.figure figcaption { font-size: .87rem; color: var(--muted); margin-top: .55rem; }

/* ---------- feature rows (text + image) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; margin: 3rem 0; }
.feature-row .feature-media { order: -1; } /* mobile: media stacks above text */
.feature-media img { width: 100%; }
.feature-text > :first-child { margin-top: 0; }

/* ---------- content images ---------- */
.content-img { max-width: 800px; width: 100%; margin: 2rem auto; border-radius: 12px; display: block; }

/* ---------- checkmark lists ---------- */
ul.check-list { list-style: none; padding: 0; margin: 1.75rem 0; }
ul.check-list li { position: relative; padding-left: 2.2rem; margin-bottom: 1rem; line-height: 1.75; }
ul.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: .22rem; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: #e8f7ee; color: #15803d; font-weight: 800; font-size: .85rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: var(--slate); border-radius: 16px; padding: 2.5rem 2rem; text-align: center;
  margin: 3rem 0; box-shadow: var(--shadow-md);
}
.cta-banner h3 { color: var(--slate); margin-bottom: .5rem; font-size: 1.35rem; }
.cta-banner p { color: #42300a; max-width: 44rem; margin: 0 auto 1.6rem; }
.cta-banner .btn { background: var(--slate); color: #fff; border-color: var(--slate); }
.cta-banner .btn:hover { background: var(--slate-dark); color: #fff; transform: translateY(-2px); }

/* ---------- quote split (form + image/bullets) ---------- */
.quote-split { display: grid; grid-template-columns: 1fr; gap: 3rem; margin: 3rem 0; align-items: start; }
.quote-split .quote-form { margin-top: 0; border-radius: 16px; }
.quote-split .form-field input,
.quote-split .form-field select,
.quote-split .form-field textarea { width: 100%; padding: .8rem; border-radius: 8px; border: 1px solid var(--line); }
.quote-split .form-field label { font-weight: 600; }
.quote-split label .required { color: #b91c1c; font-weight: 700; margin-left: .2rem; }
.quote-split label:has(+ :is(input, select, textarea)[required])::after { content: " *"; color: #b91c1c; font-weight: 700; }
.quote-side img { border-radius: var(--radius); box-shadow: var(--shadow-md); margin-bottom: 1.5rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.75rem 0; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; background: #fff; }
caption { text-align: left; font-weight: 700; color: var(--slate); padding: 1rem 1.1rem; background: var(--gray-100); caption-side: top; font-size: 1.02rem; }
th, td { text-align: left; padding: .85rem 1.1rem; border-top: 1px solid var(--line); vertical-align: top; }
th { background: var(--slate); color: #fff; font-weight: 700; white-space: nowrap; }
tbody tr:nth-child(even) td { background: var(--gray-50); }
tbody tr:hover td { background: #eef4fb; }

/* ---------- FAQ accordion ---------- */
.faq-list { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-item { border-bottom: 1px solid var(--line); background: #fff; }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%; text-align: left; background: #fff; border: none; padding: 1.1rem 1.25rem;
  font-size: 1.03rem; font-weight: 700; color: var(--slate); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: inherit;
  transition: background .15s ease;
}
.faq-question:hover { background: var(--gray-50); }
.faq-question::after {
  content: "+"; font-size: 1.35rem; color: var(--amber-dark); flex: none; width: 1.9rem; height: 1.9rem;
  border-radius: 50%; background: var(--amber-soft); display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.faq-question[aria-expanded="true"]::after { content: "–"; transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 1.25rem 1.25rem; color: var(--ink); }
.faq-answer.open { display: block; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- forms ---------- */
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; margin-top: 1.5rem; box-shadow: var(--shadow-md); }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.form-field label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--slate); font-size: .94rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: .8rem .95rem; border: 1px solid #b9c7da; border-radius: 8px; font-size: 1rem; font-family: inherit; background: var(--gray-50);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--amber); border-color: var(--amber); background: #fff; }
.form-field input[aria-invalid="true"] { border-color: #c0392b; }
/* clip-based (not off-screen) so it can never create horizontal overflow */
.form-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-note { margin-top: 1rem; font-size: .95rem; color: var(--muted); }
.form-error { color: #a93226; font-weight: 700; margin-top: .8rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--slate-dark); color: #a9bdd4; padding: 3.5rem 0 4rem; font-size: .94rem; }
.footer-grid { display: grid; gap: 2.25rem; grid-template-columns: 1fr; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 1rem; }
.site-footer a { color: #c9d8ea; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-brand p { margin-bottom: .8rem; }
.footer-brand .brand { margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-phone { font-size: 1.25rem; font-weight: 800; color: #fff !important; }
.footer-bottom { border-top: 1px solid #1d3554; margin-top: 2.5rem; padding-top: 1.4rem; font-size: .84rem; color: #7e93ad; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }

/* ---------- sticky mobile call bar ---------- */
.sticky-call { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; background: var(--slate); border-top: 2px solid var(--amber); box-shadow: 0 -4px 16px rgba(0,0,0,.2); }
.sticky-call a { flex: 1; text-align: center; color: #fff; text-decoration: none; font-weight: 800; padding: 1rem .5rem; font-size: 1.02rem; }
.sticky-call a:first-child { background: var(--amber); color: #1a1a1a; }

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  h1 { font-size: 2.5rem; }
  .hero { padding: 6rem 0 4.5rem; }
  .hero h1 { font-size: 2.9rem; }
  h2 { font-size: 1.8rem; }
  .site-nav { display: flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
  .header-phone { display: inline-block; }
  .trust-bar .container { grid-template-columns: repeat(4, 1fr); }
  .stats-strip .container { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-full { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .site-footer { padding-bottom: 3rem; }
  .sticky-call { display: none; }
  body { padding-bottom: 0; } /* sticky bar is hidden, no clearance needed */
  .section { padding: 4rem 0; }
}
@media (min-width: 820px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .feature-row .feature-media { order: 0; }
  .feature-row--flip .feature-media { order: -1; }
  .quote-split { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 4.75rem 0; }
}
