/*
Theme Name: Emergency Board-Up
Theme URI: https://emergencyboardupshoreview.com
Author: Emergency Board-Up North Metro MN
Description: Custom HTML5 WordPress theme for emergency board-up microsites. Blueprint layout with Rank Math SEO integration, mobile-first design, and conversion-optimized structure.
Version: 1.0.0
License: Proprietary
Text Domain: emergencyboardup
Tags: business, local-seo, mobile-first, html5, semantic
*/

/* ── Design Tokens ─────────────────────────────── */
:root {
  --navy:    #0f2744;
  --navy2:   #1a3a5c;
  --navy3:   #0a1e38;
  --red:     #c8390a;
  --red2:    #e04010;
  --yellow:  #f5c842;
  --yellow2: #ffd95a;
  --light:   #f4f6f9;
  --border:  #d8e0ea;
  --text:    #1c1c1e;
  --muted:   #52606d;
  --white:   #fff;
  --max:     1100px;
  --radius:  8px;
  --radius2: 14px;
  --nav-h:   64px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── WordPress Required ────────────────────────── */
.alignleft  { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--muted); text-align: center; padding: 4px 0; }
.sticky { background: var(--light); }
.bypostauthor { }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; height: auto; left: 6px; top: 6px; width: auto; z-index: 100000; background: var(--yellow); color: var(--navy); font-weight: 700; padding: 8px 16px; border-radius: 4px; }

/* ── Skip Link ─────────────────────────────────── */
.skip-link { position: absolute; left: -9999px; top: 4px; background: var(--yellow); color: var(--navy); font-weight: 700; padding: 8px 16px; border-radius: 4px; z-index: 9999; }
.skip-link:focus { left: 4px; }

/* ── Layout Utilities ──────────────────────────── */
.wrap        { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section     { padding: 72px 0; }
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; color: var(--red); }
.section-head  { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.section-sub   { font-size: 1.05rem; color: var(--muted); max-width: 640px; margin-bottom: 40px; }

/* ── Buttons ───────────────────────────────────── */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: var(--white); font-weight: 700; font-size: 1rem; padding: 14px 28px; border-radius: var(--radius); border: none; cursor: pointer; transition: background .2s, transform .1s; text-decoration: none; }
.btn-primary:hover { background: var(--red2); transform: translateY(-1px); color: var(--white); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--navy); font-weight: 700; font-size: 1rem; padding: 13px 27px; border-radius: var(--radius); border: 2px solid var(--navy); cursor: pointer; transition: .2s; text-decoration: none; }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ── Grids ─────────────────────────────────────── */
.grid-2 { display: grid; gap: 32px; }
.grid-3 { display: grid; gap: 24px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius2); padding: 28px; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.09); }
@media (min-width: 600px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ── Header / Nav ──────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 500; background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-branding { flex-shrink: 0; }
.site-title { color: var(--white); font-size: 1.1rem; font-weight: 800; line-height: 1.2; }
.site-title a { color: inherit; }
.site-title span { color: var(--yellow); }
.site-description { font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.6); }
#site-navigation .nav-menu { display: none; gap: 4px; }
#site-navigation .nav-menu li { list-style: none; }
#site-navigation .nav-menu a { color: rgba(255,255,255,.88); font-size: .9rem; font-weight: 600; padding: 8px 12px; border-radius: 6px; transition: .18s; white-space: nowrap; display: block; }
#site-navigation .nav-menu a:hover,
#site-navigation .nav-menu .current-menu-item > a,
#site-navigation .nav-menu .current-page-ancestor > a { color: var(--white); background: rgba(255,255,255,.1); }
.nav-cta { display: none; }
.menu-toggle { background: none; border: none; cursor: pointer; padding: 8px; color: var(--white); flex-shrink: 0; }
.menu-toggle svg { width: 24px; height: 24px; display: block; }
@media (min-width: 900px) {
  #site-navigation .nav-menu { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Mobile drawer */
.mobile-nav-drawer { display: none; position: fixed; inset: var(--nav-h) 0 0 0; background: var(--navy3); z-index: 499; overflow-y: auto; padding: 24px 20px 40px; }
.mobile-nav-drawer.is-open { display: block; }
.mobile-nav-drawer a { display: block; color: rgba(255,255,255,.9); font-size: 1.1rem; font-weight: 600; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-nav-drawer .mobile-cta { margin-top: 24px; background: var(--red); color: var(--white); border-radius: var(--radius); padding: 16px; text-align: center; font-weight: 700; font-size: 1.1rem; border-bottom: none; }

/* ── Trust Bar ─────────────────────────────────── */
.trust-bar { background: var(--yellow); padding: 14px 0; }
.trust-bar-inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: center; align-items: center; }
.trust-bar-item { font-size: .88rem; font-weight: 700; color: var(--navy3); display: flex; align-items: center; gap: 6px; }

/* ── Hero (Homepage) ───────────────────────────── */
.hero { background: linear-gradient(135deg, var(--navy3) 0%, var(--navy2) 100%); color: var(--white); padding: 80px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E"); }
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hero-badge { display: inline-block; background: var(--red); color: var(--white); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.12; margin-bottom: 20px; max-width: 720px; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 580px; margin-bottom: 36px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: rgba(255,255,255,.78); font-weight: 600; }

/* ── Page Hero (inner pages) ───────────────────── */
.page-hero { background: var(--navy); color: var(--white); padding: 56px 0 48px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 10px; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 580px; }
.breadcrumb-wrap { font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.breadcrumb-wrap a { color: rgba(255,255,255,.7); text-decoration: underline; }

/* ── Services ──────────────────────────────────── */
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius2); padding: 28px; transition: box-shadow .2s, transform .2s; }
.service-card:hover { box-shadow: 0 6px 32px rgba(0,0,0,.1); transform: translateY(-3px); }
.service-icon { font-size: 2rem; margin-bottom: 12px; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.service-card p { font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* ── Why Us ────────────────────────────────────── */
.why-grid { display: grid; gap: 28px; }
.why-item { text-align: center; padding: 28px 20px; }
.why-num { font-size: 2.8rem; font-weight: 900; color: var(--red); line-height: 1; margin-bottom: 6px; }
.why-item h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.why-item p { font-size: .88rem; color: var(--muted); }
@media (min-width: 600px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Areas ─────────────────────────────────────── */
.areas-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.area-chip { background: var(--light); border: 1px solid var(--border); border-radius: 20px; padding: 7px 18px; font-size: .88rem; font-weight: 600; color: var(--navy2); }

/* ── FAQ ───────────────────────────────────────── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--white); transition: background .18s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '＋'; font-size: 1.2rem; flex-shrink: 0; transition: transform .2s; color: var(--red); }
.faq-item[open] summary { background: var(--light); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 20px 20px; font-size: .95rem; color: var(--muted); line-height: 1.65; }

/* ── CTA Section ───────────────────────────────── */
.cta-section { background: var(--navy2); color: var(--white); text-align: center; padding: 80px 20px; }
.cta-section h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; margin-bottom: 14px; }
.cta-section p { font-size: 1.05rem; color: rgba(255,255,255,.82); max-width: 520px; margin: 0 auto 32px; }

/* ── Forms ─────────────────────────────────────── */
.form-wrap { max-width: 600px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .88rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea,
input[type="text"], input[type="email"], input[type="tel"],
select, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 1rem; font-family: var(--font); color: var(--text); background: var(--white); transition: border-color .18s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); }
.form-group textarea, textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 8px; }
/* WPForms & CF7 overrides */
.wpcf7-form .wpcf7-submit,
.wpforms-submit { background: var(--red); color: var(--white); font-weight: 700; font-size: 1rem; padding: 14px 28px; border-radius: var(--radius); border: none; cursor: pointer; width: 100%; transition: background .2s; }
.wpcf7-form .wpcf7-submit:hover,
.wpforms-submit:hover { background: var(--red2); }

/* ── Estimate Split ────────────────────────────── */
.estimate-split { display: grid; gap: 48px; }
@media (min-width: 900px) { .estimate-split { grid-template-columns: 1fr 1fr; align-items: start; } }
.sidebar-card { background: var(--navy); color: var(--white); border-radius: var(--radius2); padding: 32px; position: sticky; top: calc(var(--nav-h) + 24px); }
.sidebar-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 16px; color: var(--yellow); }
.sidebar-card ul { list-style: none; margin-bottom: 24px; }
.sidebar-card li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; }
.sidebar-card li::before { content: '✓'; color: var(--yellow); font-weight: 800; flex-shrink: 0; }
.sidebar-cta { display: block; background: var(--red); color: var(--white); text-align: center; font-weight: 800; font-size: 1.1rem; padding: 16px; border-radius: var(--radius); margin-top: 16px; }
.sidebar-cta:hover { background: var(--red2); color: var(--white); }

/* ── Footer ────────────────────────────────────── */
.site-footer { background: var(--navy3); color: rgba(255,255,255,.75); padding: 56px 0 32px; }
.footer-grid { display: grid; gap: 40px; margin-bottom: 48px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-brand span { color: var(--yellow); }
.footer-desc { font-size: .88rem; line-height: 1.65; max-width: 260px; }
.footer-col h4 { color: var(--white); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: .88rem; color: rgba(255,255,255,.65); transition: .18s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: .8rem; color: rgba(255,255,255,.45); }
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--white); }

/* ── Mobile Sticky Bar ─────────────────────────── */
.mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 600; height: 60px; }
.mbar-call { flex: 1; background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: .92rem; font-weight: 800; text-decoration: none; letter-spacing: .01em; }
.mbar-call:hover { background: var(--red2); color: var(--white); }
.mbar-quote { flex: 1; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: .92rem; font-weight: 700; text-decoration: none; }
.mbar-quote:hover { background: var(--navy2); color: var(--white); }
@media (min-width: 900px) { .mobile-bar { display: none; } }
body { padding-bottom: 60px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* ── Entry Content (posts/pages) ───────────────── */
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 { color: var(--navy); font-weight: 700; margin: 1.5em 0 .5em; line-height: 1.25; }
.entry-content p { margin-bottom: 1em; color: var(--muted); line-height: 1.75; }
.entry-content ul, .entry-content ol { margin: 0 0 1em 1.5em; }
.entry-content li { margin-bottom: .4em; color: var(--muted); }
.entry-content a { color: var(--navy); text-decoration: underline; }
.entry-content a:hover { color: var(--red); }
.entry-content blockquote { border-left: 4px solid var(--yellow); padding: 12px 20px; margin: 1.5em 0; background: var(--light); border-radius: 0 var(--radius) var(--radius) 0; }
.entry-content img { border-radius: var(--radius); margin: 1em 0; }

/* ── Rank Math Breadcrumbs ─────────────────────── */
.rank-math-breadcrumb { font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.rank-math-breadcrumb a { color: rgba(255,255,255,.7); text-decoration: underline; }
.rank-math-breadcrumb .separator { margin: 0 6px; }

/* ── Widgets ───────────────────────────────────── */
.widget { margin-bottom: 32px; }
.widget-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
