/*
Theme Name: Baltimore–Harford County Maryland Roofing
Theme URI: https://baltimore-harfordcountymarylandroofing.com
Author: Baltimore–Harford County Maryland Roofing
Description: A lead-generation theme for roofing services in Northern Baltimore County and Harford County, Maryland. Responsive desktop + mobile design with local SEO optimization.
Version: 1.0
License: GPL v2 or later
Text Domain: baltimore-harford-roofing
*/

:root {
  --primary-color: #1a365d;
  --primary-dark:  #0f1a2e;
  --accent:        #c9a227;
  --accent-bright: #d4af37;
  --light-bg:      #f7fafc;
  --dark-section:  #2d3748;
  --text:          #1f2733;
  --muted:         #5a6678;
  --white:         #ffffff;
  --radius:        10px;
  --shadow:        0 4px 14px rgba(15,26,46,.10);
  --shadow-lg:     0 10px 30px rgba(15,26,46,.22);
  --maxw:          1200px;
  --tap-min:       44px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--primary-color); text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--primary-color); line-height: 1.25; font-weight: 700; }
h2 { font-size: 2rem; margin-bottom: .6rem; }
h3 { font-size: 1.3rem; margin-bottom: .5rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }

.section { padding: 72px 0; }
.section-light { background: var(--light-bg); }
.section-blue { background: var(--primary-color); color: #e8eef7; }
.section-blue h2, .section-blue h3,
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark { background: var(--primary-dark); color: #cdd6e6; }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 2px;
  font-size: .78rem; font-weight: 700; color: var(--accent);
  margin-bottom: .6rem;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted); }
.section-blue .section-head p, .section-dark .section-head p { color: #c3cee0; }

/* SEO hidden H1 */
.seo-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-weight: 700; cursor: pointer;
  padding: 14px 26px; border-radius: var(--radius); border: 2px solid transparent;
  font-size: 1rem; transition: transform .15s ease, box-shadow .15s ease, background .15s;
  text-align: center; line-height: 1.2;
  min-height: var(--tap-min);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #1a1a1a; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-bright); color: #1a1a1a; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary-color); }
.btn-lg { font-size: 1.15rem; padding: 16px 34px; }
.btn-block { display: block; width: 100%; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); box-shadow: var(--shadow); }

.phone-bar {
  background: var(--accent); color: #1a1a1a; font-weight: 700;
  text-align: center; padding: 7px 12px; font-size: .95rem;
}
.phone-bar a { color: #1a1a1a; padding: 4px 0; display: inline-block; }
.phone-placeholder {
  background: #1a1a1a; color: var(--accent-bright);
  padding: 1px 8px; border-radius: 5px; font-weight: 700;
  letter-spacing: .5px;
}

.header-main {
  display: flex; align-items: center;
  justify-content: space-between; padding: 12px 24px;
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; color: var(--primary-color); font-size: 1.02rem; }
.brand-text span { font-size: .72rem; color: var(--muted); letter-spacing: .5px; display: block; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
  font-weight: 600; color: var(--primary-color); padding: 6px 0; position: relative;
  min-height: var(--tap-min); display: inline-flex; align-items: center;
  transition: color .15s ease;
}
.main-nav a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 2px;
  height: 2px; background: var(--accent);
  transition: left .2s ease, right .2s ease; border-radius: 2px;
}
.main-nav a:hover::after, .main-nav .current_page_item::after,
.main-nav .current-menu-item::after { left: 0; right: 0; }
.main-nav a:hover, .main-nav .current_page_item a,
.main-nav .current-menu-item a { color: var(--accent); }
.nav-cta { margin-left: 4px; }
.nav-cta::after { display: none !important; }

.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; min-height: var(--tap-min); min-width: var(--tap-min); }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--primary-color); margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ---- Hero ---- */
.hero { background: linear-gradient(160deg, var(--primary-color), var(--primary-dark)); color: #fff; padding: 60px 0 64px; }
.hero .container { display: grid; gap: 36px; }

@media (min-width: 769px) {
  .hero .container { grid-template-columns: 1fr 1fr; align-items: center; }
  .hero-copy { order: 1; }
  .hero-video { order: 2; }
}

.hero-badge {
  display: inline-flex; gap: 8px; align-items: center; background: rgba(212,175,55,.16);
  color: var(--accent-bright); padding: 6px 14px; border-radius: 30px;
  font-weight: 700; font-size: .85rem; margin-bottom: 14px;
}
.hero h2 { color: #fff; font-size: 2.4rem; margin-bottom: 14px; }
.hero h2 .gold { color: var(--accent-bright); }
.hero p.lead { font-size: 1.15rem; color: #d7e0ef; max-width: 560px; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }

.video-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: #000;
}
.video-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.video-caption { color: #c3cee0; font-size: .88rem; margin-top: 10px; text-align: center; }

/* ---- Trust badges ---- */
.trust-band { background: var(--white); border-bottom: 1px solid #e6ebf2; }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; padding: 30px 0; text-align: center; }
.trust-item .ic { font-size: 1.7rem; display: block; margin-bottom: 2px; }
.trust-item strong { display: block; color: var(--primary-color); font-size: 1rem; }
.trust-item span { color: var(--muted); font-size: .85rem; }

/* ---- Cards ---- */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; }
.card-body p { color: var(--muted); flex: 1; font-size: .95rem; }
.card-body .btn { margin-top: 14px; align-self: flex-start; }

/* ---- Two-column ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.two-col ul { margin: 0 0 1rem 1.1rem; }
.two-col ul li { margin-bottom: .45rem; }
.checklist { list-style: none; margin-left: 0 !important; }
.checklist li { padding-left: 26px; position: relative; }
.checklist li::before { content: "\2714"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---- Gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 0; }
.gallery img { width: 100%; height: 240px; object-fit: cover; transition: transform .35s ease; }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: linear-gradient(transparent, rgba(15,26,46,.88)); color: #fff; font-size: .88rem; font-weight: 600; }

/* ---- Locations ---- */
.loc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.loc-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.loc-card h3 { font-size: 1.35rem; }
.area-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.area-tags span { background: var(--light-bg); border: 1px solid #e1e8f1; color: var(--primary-color); padding: 5px 11px; border-radius: 20px; font-size: .82rem; font-weight: 600; transition: background .15s, border-color .15s; }
.area-tags span:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.popular-searches { margin-top: 12px; font-size: .9rem; }
.popular-searches a { color: var(--muted); transition: color .15s; }
.popular-searches a:hover { color: var(--accent); }

.city-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.city-block h3 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; }
.city-block p { color: var(--muted); font-size: .93rem; }
.city-block a { font-weight: 600; color: var(--accent); transition: color .15s; }
.city-block a:hover { color: var(--accent-bright); }

.callout { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; padding: 38px 28px; max-width: 760px; margin: 0 auto; border-top: 4px solid var(--accent); }

/* ---- Lead form ---- */
.lead-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 32px; }
.lead-card h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; color: var(--primary-color); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #ccd4e0; border-radius: 8px; font-size: 1rem; font-family: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; min-height: var(--tap-min); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,162,39,.25); }
.field .req { color: #c0392b; }
.form-fallback { text-align: center; margin-top: 16px; color: var(--muted); font-size: .95rem; }

/* ---- FAQ ---- */
.faq-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--primary-color); list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: var(--tap-min); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); flex-shrink: 0; padding-left: 10px; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .ans { padding: 0 22px 20px; color: var(--muted); line-height: 1.6; }

/* ---- Citations ---- */
.citation-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.citation-item { background: var(--white); border-radius: 8px; padding: 18px 14px; text-align: center; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.citation-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.citation-name { font-weight: 700; color: var(--primary-color); font-size: .92rem; }
.citation-type { color: var(--muted); font-size: .78rem; margin-top: 4px; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.step { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 22px; position: relative; transition: transform .15s, box-shadow .15s; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.step .num { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-color); color: var(--accent-bright); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }

/* ---- CTA band ---- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .btn { margin: 8px 6px 0; }

/* ---- Footer ---- */
.site-footer { background: var(--primary-dark); color: #aab6cc; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.site-footer a { color: #aab6cc; transition: color .15s; }
.site-footer a:hover { color: var(--accent-bright); }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.footer-brand p { font-size: .9rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid #25314a; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* ---- Sticky mobile call bar ---- */
.sticky-call { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: var(--primary-color); padding: 12px 16px; text-align: center; box-shadow: 0 -3px 12px rgba(0,0,0,.35); }
.sticky-call a { color: #fff; font-weight: 700; font-size: 1.05rem; display: block; padding: 4px 0; letter-spacing: .3px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .cards, .gallery { grid-template-columns: repeat(2,1fr); }
  .citation-grid { grid-template-columns: repeat(3,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h2 { font-size: 2.1rem; }
  .section { padding: 56px 0; }
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 14px 24px 22px; gap: 6px; box-shadow: var(--shadow-lg); max-height: 80vh; overflow-y: auto; }
  .main-nav.active { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid #f0f2f6; }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .header-main { position: relative; padding: 10px 20px; }
  .hero { padding: 40px 0 48px; }
  .hero .container { grid-template-columns: 1fr; gap: 24px; }
  .hero h2 { font-size: 1.8rem; }
  .hero p.lead { font-size: 1rem; }
  .two-col, .loc-cards, .city-grid, .form-grid { grid-template-columns: 1fr; gap: 24px; }
  .trust-grid { grid-template-columns: repeat(2,1fr); gap: 10px; padding: 20px 0; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery img { height: 180px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .citation-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 1.5rem; }
  .container { padding: 0 18px; }
  .sticky-call { display: block; }
  body { padding-bottom: 58px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .phone-bar { font-size: .88rem; padding: 6px 10px; }
  .btn-lg { padding: 14px 24px; font-size: 1.05rem; }
}

@media (max-width: 480px) {
  .hero h2 { font-size: 1.5rem; }
  .gallery { grid-template-columns: 1fr; }
  .citation-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .card img { height: 170px; }
  .gallery img { height: 200px; }
  .lead-card { padding: 22px; }
  .form-grid { gap: 14px; }
}