/* ============================================================
   ROOFERFOUND — SHARED STYLESHEET
   Professional Navy/Blue/White | Conversion-Optimized
   Target: Roofing Contractors, 35-60 yrs, Mobile-first
============================================================ */

/* === TOKENS === */
:root {
  --navy:        #0f2557;
  --navy-light:  #1a3a6e;
  --navy-deep:   #091940;
  --blue:        #2563eb;
  --blue-light:  #3b82f6;
  --blue-subtle: #eff6ff;
  --blue-border: #bfdbfe;
  --white:       #ffffff;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-300:    #cbd5e1;
  --gray-500:    #64748b;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --gray-900:    #0f172a;
  --green:       #059669;
  --green-light: #d1fae5;
  --amber:       #d97706;
  --red-light:   #fee2e2;
  --red:         #dc2626;
  --font:        'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.05);
  --shadow-xl:   0 24px 64px rgba(0,0,0,.12);
  --shadow-blue: 0 8px 28px rgba(37,99,235,.30);
  --nav-h:       72px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --section-pad: 96px;
  --max-w:       1200px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { font-family: var(--font); background: var(--white); color: var(--gray-700); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* === UTILITY === */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section { padding: var(--section-pad) 0; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-subtle); border: 1px solid var(--blue-border);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 18px;
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800; color: var(--gray-900); line-height: 1.18;
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem; color: var(--gray-500); line-height: 1.75;
  max-width: 620px;
}
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }
.text-blue { color: var(--blue); }
.text-navy { color: var(--navy); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.95rem; font-weight: 700; border-radius: var(--radius-md);
  padding: 13px 26px; transition: all 0.22s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; border: 2px solid var(--blue); }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.btn-navy { background: var(--navy); color: #fff; border: 2px solid var(--navy); }
.btn-navy:hover { background: var(--navy-light); border-color: var(--navy-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue-border); }
.btn-outline:hover { border-color: var(--blue); background: var(--blue-subtle); }
.btn-white { background: #fff; color: var(--navy); border: 2px solid #fff; }
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-white-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-white-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.btn-lg { padding: 15px 32px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* === NAVIGATION === */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 9000; background: #fff;
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.25s var(--ease);
}
#navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { display: flex; align-items: center; gap: 0; height: 100%; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 800; color: var(--gray-900);
  flex-shrink: 0; margin-right: 32px;
}
.nav-logo em { color: var(--blue); font-style: normal; }
.nav-logo svg { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  font-size: 0.88rem; font-weight: 600; color: var(--gray-600);
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color 0.18s, background 0.18s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--blue); background: var(--blue-subtle); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-wa {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 700; color: #25d366;
  background: #f0fdf4; border: 1.5px solid #bbf7d0;
  padding: 8px 16px; border-radius: var(--radius-md);
  transition: all 0.2s; white-space: nowrap;
}
.nav-wa:hover { background: #dcfce7; border-color: #25d366; transform: translateY(-1px); }
.nav-cta-btn {
  font-size: 0.85rem; font-weight: 700; color: #fff;
  background: var(--blue); padding: 10px 20px;
  border-radius: var(--radius-md); transition: all 0.2s; white-space: nowrap;
}
.nav-cta-btn:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: var(--shadow-blue); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--radius-sm); margin-left: 12px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--gray-700); border-radius: 4px; transition: all 0.25s var(--ease);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.nav-drawer {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg); z-index: 8999;
  padding: 16px 24px; flex-direction: column; gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-link { padding: 12px 16px; border-radius: var(--radius-sm); }
.nav-drawer .nav-wa { justify-content: center; margin-top: 8px; }
.nav-drawer .nav-cta-btn { text-align: center; padding: 12px; border-radius: var(--radius-md); }

/* === PAGE HERO (shared inner pages) === */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: calc(var(--nav-h) + 72px) 0 72px;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .section-tag { color: #93c5fd; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
.page-hero .section-title { color: #fff; }
.page-hero .section-sub { color: rgba(255,255,255,.75); margin: 0 auto; }

/* === STATS BAR === */
.stats-bar { background: var(--navy); padding: 48px 0; }
.stats-bar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
}
.stat-item { text-align: center; padding: 0 24px; position: relative; }
.stat-item + .stat-item::before {
  content: ''; position: absolute; left: 0; top: 10%;
  height: 80%; width: 1px; background: rgba(255,255,255,.12);
}
.stat-num {
  font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800;
  color: #fff; letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: 0.83rem; color: rgba(255,255,255,.65); font-weight: 500; line-height: 1.4; }

/* === CARDS === */
.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 32px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-border); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.card-desc { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; }

/* === FEATURE LIST === */
.feature-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--gray-600); line-height: 1.5;
}
.feature-list li::before {
  content: '✓'; color: var(--green); font-weight: 800; font-size: 0.85rem;
  flex-shrink: 0; margin-top: 1px;
  width: 20px; height: 20px; background: var(--green-light);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
}

/* === TESTIMONIAL CARD === */
.testimonial-card {
  background: var(--gray-50); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--gray-200);
  transition: box-shadow 0.25s, transform 0.25s;
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.tc-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; margin-bottom: 14px; }
.tc-text { font-size: 0.97rem; color: var(--gray-700); line-height: 1.75; margin-bottom: 22px; font-style: italic; }
.tc-author { display: flex; align-items: center; gap: 12px; }
.tc-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.tc-name { font-size: 0.93rem; font-weight: 700; color: var(--gray-900); }
.tc-role { font-size: 0.78rem; color: var(--gray-500); }

/* === CTA BANNER === */
.cta-banner { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); padding: 80px 0; }
.cta-banner-inner { text-align: center; }
.cta-banner .section-title { color: #fff; }
.cta-banner .section-sub { color: rgba(255,255,255,.75); margin: 0 auto 36px; }
.cta-banner-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-guarantee {
  margin-top: 20px; font-size: 0.82rem; color: rgba(255,255,255,.55);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* === FOOTER === */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.65); padding: 72px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px; margin-bottom: 56px;
}
.footer-brand .nav-logo { color: #fff; margin-bottom: 14px; }
.footer-tagline { font-size: 0.87rem; line-height: 1.65; max-width: 260px; color: rgba(255,255,255,.5); }
.footer-col-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block; font-size: 0.87rem; color: rgba(255,255,255,.5);
  margin-bottom: 10px; transition: color 0.18s;
}
.footer-col a:hover { color: var(--blue-light); }
.footer-wa-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.87rem; font-weight: 600; color: #4ade80 !important;
}
.footer-wa-link:hover { color: #86efac !important; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 0.82rem;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,.4); transition: color 0.18s; }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* === REVEAL ANIMATION === */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === GRID HELPERS === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* === BADGE === */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; padding: 4px 12px;
  border-radius: 100px; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-green { background: var(--green-light); color: var(--green); }
.badge-red { background: var(--red-light); color: var(--red); }
.badge-blue { background: var(--blue-subtle); color: var(--blue); }

/* === FORM ELEMENTS === */
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-group label { font-size: 0.83rem; font-weight: 600; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md); font-size: 0.93rem; font-family: var(--font);
  color: var(--gray-900); background: var(--gray-50);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); background: #fff;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray-300); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  width: 100%; padding: 15px; background: var(--blue); color: #fff;
  border: none; border-radius: var(--radius-md); font-size: 1rem; font-weight: 700;
  font-family: var(--font); cursor: pointer; transition: all 0.22s; margin-top: 4px;
}
.form-submit:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.form-success {
  display: none; margin-top: 16px; padding: 18px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: var(--radius-md); font-size: 0.92rem; color: #15803d; line-height: 1.6;
}
.form-error {
  display: none; margin-top: 16px; padding: 14px;
  background: var(--red-light); border: 1px solid #fca5a5;
  border-radius: var(--radius-md); font-size: 0.9rem; color: var(--red);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .wrap { padding: 0 20px; }
  .nav-links, .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item + .stat-item::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-banner-btns { flex-direction: column; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
  .page-hero { padding-top: calc(var(--nav-h) + 48px); }
}
@media (max-width: 480px) {
  .stats-bar-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
