/*
Theme Name: Columbus Roofing Quotes
Theme URI: https://columbusroofingquotes.com
Author: Columbus Roofing Quotes
Description: Pay-per-call / lead-generation theme for roofing quotes in Columbus, Ohio. Includes a home page, a form-only "Free Roof Inspection" landing page, and a Privacy Policy page. Set your tracking number, lead email, and form endpoint under Appearance > Customize > Columbus Roofing Quotes.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: columbus-roofing-quotes
*/

:root {
  --red: #f32e05;
  --red-dark: #c92400;
  --black: #000000;
  --ink: #111418;
  --text: #333a42;
  --muted: #6b7380;
  --bg-soft: #f5f5f5;
  --white: #ffffff;
  --border: #e3e5e8;
  --max: 1140px;
  --radius: 10px;
  --font-head: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-slab: "Roboto Slab", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title .eyebrow {
  display: block; font-family: var(--font-slab); color: var(--red);
  font-size: 1rem; letter-spacing: .04em; margin-bottom: 8px;
}
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons — pill style from the source brand */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 100px;
  font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .03em;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  font-family: var(--font-head); line-height: 1.2; text-align: center;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover, .btn-red:focus { background: var(--black); color: var(--white); }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover, .btn-white:focus { background: var(--black); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover, .btn-outline:focus { background: var(--white); color: var(--black); }
.btn-lg { font-size: 1.2rem; padding: 18px 40px; }

/* Ad label */
.ad-banner {
  background: #1b1b1b; color: #a9a9a9; font-size: 11px; text-align: center;
  padding: 3px 10px; letter-spacing: .05em; text-transform: uppercase;
}

/* Top bar */
.top-bar { background: var(--red); color: var(--white); }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; flex-wrap: wrap; }
.top-bar .tb-note { font-size: 14px; font-weight: 500; }
.top-bar .tb-actions { display: flex; gap: 10px; align-items: center; }
.top-bar .btn { padding: 8px 18px; font-size: 13px; }

/* Header */
.site-header { background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { flex: 0 0 auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text .l1 { font-family: var(--font-slab); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.logo-text .l2 { font-weight: 700; font-size: .78rem; letter-spacing: .22em; color: var(--red); text-transform: uppercase; }
.custom-logo { max-height: 64px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 10px 14px; color: var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 500; border-radius: 6px;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--red); }
.nav-toggle {
  display: none; background: var(--red); color: var(--white); border: 0; border-radius: 6px;
  width: 46px; height: 42px; font-size: 22px; cursor: pointer;
}
.header-call { white-space: nowrap; }

/* Hero */
.hero {
  position: relative; color: var(--white); background-size: cover; background-position: center;
  padding: 120px 0 130px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.hero .container { position: relative; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; max-width: 760px; }
.hero .hero-sub { font-family: var(--font-slab); color: var(--white); font-size: 1.4rem; font-weight: 400; margin-bottom: 18px; }
.hero-list { list-style: none; padding: 0; margin: 0 0 32px; }
.hero-list li { padding-left: 32px; position: relative; font-size: 1.12rem; margin-bottom: 8px; }
.hero-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: var(--white); font-size: 13px; display: grid; place-items: center; font-weight: 700;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-consent { font-size: 12px; color: #cfd2d6; margin-top: 16px; max-width: 640px; }
.hero-consent a { color: #fff; }

/* Intro */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.intro-grid img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.15); }
.intro-grid h2 { margin-bottom: 20px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 30px 24px;
  box-shadow: 0 6px 22px rgba(0,0,0,.07); border-top: 4px solid var(--red);
  display: flex; flex-direction: column;
}
.service-card .icon {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(243,46,5,.1);
  display: grid; place-items: center; margin-bottom: 16px; color: var(--red);
}
.service-card h3 { font-size: 1.15rem; }
.service-card p { font-size: .95rem; color: var(--muted); flex: 1; }
.service-card .card-link { font-weight: 600; text-decoration: none; font-size: .95rem; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-item { display: flex; gap: 18px; }
.why-item .num {
  flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--red); color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-family: var(--font-slab); font-size: 1.2rem;
}
.why-item p { color: var(--muted); font-size: .97rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: 34px 28px; text-align: center; box-shadow: 0 6px 22px rgba(0,0,0,.07); }
.step .step-num {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; border: 3px solid var(--red);
  color: var(--red); display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; font-family: var(--font-slab);
}
.step p { color: var(--muted); }

/* Areas */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.area {
  background: var(--black); color: var(--white); border-radius: 100px; padding: 14px 20px;
  text-align: center; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.area svg { color: var(--red); flex: 0 0 auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0; }
.contact-list li { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; font-size: 1.05rem; }
.contact-list .ci {
  width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: 0 0 auto;
}
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 600; }

/* CTA band (rounded red band from source) */
.cta-band-wrap { padding: 70px 0; }
.cta-band {
  background: var(--red); color: var(--white); border-radius: 100px; padding: 46px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.cta-band p { margin: 0; max-width: 640px; color: #ffe9e3; }
.cta-band .cta-actions { display: flex; flex-direction: column; gap: 12px; flex: 0 0 auto; }

/* Quote form */
.quote-box {
  background: var(--white); border-radius: var(--radius); padding: 36px; color: var(--text);
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
}
.quote-box h2, .quote-box h3 { margin-bottom: 6px; }
.quote-box .qb-sub { color: var(--muted); margin-bottom: 22px; }
.quote-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form .field { margin-bottom: 16px; }
.quote-form label { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.quote-form input[type=text], .quote-form input[type=email], .quote-form input[type=tel],
.quote-form select, .quote-form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #cfd3d8; border-radius: 6px; font: inherit; font-size: 1rem;
  background: #fff; color: var(--ink);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 2px solid var(--red); border-color: var(--red); }
.quote-form textarea { min-height: 110px; resize: vertical; }
.quote-form .radio-row { display: flex; gap: 20px; }
.quote-form .radio-row label { font-weight: 400; display: flex; gap: 6px; align-items: center; }
.quote-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); line-height: 1.5; margin: 6px 0 18px; }
.quote-form .consent label { font-weight: 400; font-size: 12px; color: var(--muted); margin: 0; }
.quote-form .consent input { margin-top: 3px; flex: 0 0 auto; }
.quote-form .hp { position: absolute; left: -9999px; }
.quote-form button { width: 100%; font-size: 1.15rem; }
.form-message { padding: 14px 16px; border-radius: 6px; margin-bottom: 18px; font-weight: 500; }
.form-message:empty { display: none; }
.form-message.success { background: #e7f6ec; color: #1d6b3a; }
.form-message.error { background: #fdeceb; color: #a1260f; }

/* Landing page */
.lp-hero { padding: 90px 0; }
.lp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lp-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.trust-row span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-radius: 100px; padding: 6px 14px; font-size: 14px; }
.lp-call { margin-top: 26px; }
.lp-call .or { display: block; font-size: 14px; color: #cfd2d6; margin-bottom: 8px; }

/* Legal pages */
.page-hero { background: var(--black); color: var(--white); padding: 60px 0; text-align: center; }
.page-hero h1 { color: var(--white); margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
.legal-content { max-width: 820px; margin: 0 auto; padding: 60px 0 80px; }
.legal-content h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal-content .updated-date { color: var(--muted); font-style: italic; }
.legal-content ul { padding-left: 1.2em; }
.legal-content li { margin-bottom: .5em; }

/* Footer */
.site-footer { background: var(--black); color: #c9cdd2; padding: 70px 0 0; font-size: .95rem; }
.footer-top { text-align: center; margin-bottom: 50px; }
.footer-top h2 { color: var(--white); font-size: clamp(1.4rem, 2.6vw, 2rem); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 46px; }
.site-footer h3 { color: var(--red); font-size: 1.2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #c9cdd2; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .logo .l1 { color: var(--white); }
.footer-about p { margin-top: 16px; }
.footer-disclosure { border-top: 1px solid #2a2a2a; padding: 26px 0; font-size: 12.5px; color: #8d939a; }
.footer-disclosure a { color: #c9cdd2; text-decoration: underline; }
.footer-bottom { background: var(--red); color: var(--white); text-align: center; padding: 14px 0; font-size: 14px; }

/* Sticky call surfaces */
.mobile-call-bar { display: none; }
.to-top {
  position: fixed; right: 20px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; text-decoration: none;
  font-size: 20px; box-shadow: 0 6px 18px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* Landing page: form-only */
#quote-form { scroll-margin-top: 110px; }
.crq-landing .site-header .container { justify-content: center; }
.footer-contact { text-align: center; padding: 0 0 26px; font-size: .95rem; }
.footer-contact strong { color: var(--white); }
.crq-landing .to-top { display: none; }
.crq-landing .footer-top { margin-bottom: 24px; }

/* Responsive */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { border-radius: 40px; flex-direction: column; text-align: center; padding: 46px 30px; }
  .cta-band p { margin: 0 auto; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-call { display: none; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .main-nav a { color: var(--white); padding: 14px 20px; border-radius: 0; }
  .main-nav a:hover { background: var(--red); color: var(--white); }
  .site-header .container { position: relative; }
  .intro-grid, .contact-grid, .lp-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 16px; padding-bottom: 62px; }
  .section { padding: 56px 0; }
  .hero { padding: 80px 0 90px; }
  .top-bar .tb-note { display: none; }
  .top-bar .container { justify-content: center; }
  .top-bar .btn { font-size: 12px; padding: 7px 12px; }
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .quote-form .row { grid-template-columns: 1fr; }
  .quote-box { padding: 26px 20px; }
  .lp-hero { padding: 56px 0; }
  .mobile-call-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--red); text-align: center; box-shadow: 0 -4px 14px rgba(0,0,0,.2);
  }
  .mobile-call-bar a { display: block; color: #fff; font-weight: 700; padding: 16px; text-decoration: none; font-size: 1.05rem; }
  .to-top { bottom: 80px; }
}
