/* ============================================
   Legacy Roofing & Exteriors — Global Styles
   Fast, clean, conversion-optimized
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2744;
  --navy-light: #2a3a5c;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --orange-light: #fed7aa;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --green: #16a34a;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Typography ---- */
h1 { font-size: 2.5rem; line-height: 1.15; font-weight: 800; color: var(--navy); }
h2 { font-size: 2rem; line-height: 1.2; font-weight: 700; color: var(--navy); }
h3 { font-size: 1.35rem; line-height: 1.3; font-weight: 600; color: var(--navy); }
p  { font-size: 1.05rem; color: var(--gray-700); }

/* ---- Layout ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3, .section--navy p { color: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.text-center { text-align: center; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

/* ---- Header / Nav ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
}
.site-logo {
  height: 88px;
  max-height: 88px;
  width: auto;
  display: block;
}
.hero-logo {
  height: 110px;
  width: auto;
  display: block;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.header__nav { display: flex; gap: 28px; align-items: center; }
.header__nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color .2s;
}
.header__nav a:hover, .header__nav a.active { color: var(--orange); }

.header__cta {
  display: inline-block;
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s;
}
.header__cta:hover { background: var(--orange-dark); }

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}
.header__hamburger span {
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: .2s;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-align: center;
}
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn--outline:hover { background: var(--orange); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--gray-100); }
.btn--large { padding: 18px 40px; font-size: 1.15rem; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top right, var(--white) 49%, transparent 51%);
}
.hero h1 { color: var(--white); font-size: 2.8rem; margin-bottom: 16px; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.2rem; margin-bottom: 28px; max-width: 560px; }
.hero .badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--orange-light);
  margin-bottom: 20px;
}

/* ---- Lead Form ---- */
.lead-form {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  max-width: 400px;
}
.lead-form h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 6px; }
.lead-form .lead-form__sub { color: var(--gray-600); font-size: .9rem; margin-bottom: 20px; }

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: .95rem;
  margin-bottom: 12px;
  font-family: inherit;
  transition: border-color .2s;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.lead-form button {
  width: 100%;
  padding: 14px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.lead-form button:hover { background: var(--orange-dark); }
.lead-form .trust-line {
  text-align: center;
  font-size: .8rem;
  color: var(--gray-600);
  margin-top: 10px;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 56px; height: 56px;
  background: var(--orange-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: var(--orange);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; color: var(--gray-600); }

/* ---- Trust Bar ---- */
.trust-bar {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}
.trust-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-700);
}
.trust-bar__item .icon { color: var(--green); font-size: 1.1rem; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); font-size: 2rem; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 28px; }

/* ---- FAQ ---- */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--orange); font-weight: 700; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .faq-answer { padding: 0 22px 18px; color: var(--gray-600); font-size: .98rem; line-height: 1.7; }

/* ---- Reviews ---- */
.review-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.review-card .stars { color: #f59e0b; font-size: 1.2rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-card p { font-style: italic; color: var(--gray-700); margin-bottom: 14px; font-size: .98rem; }
.review-card .reviewer { font-weight: 600; color: var(--navy); font-size: .9rem; }

/* ---- Checklist ---- */
.checklist li {
  padding: 8px 0;
  font-size: 1.02rem;
  color: var(--gray-700);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checklist li::before {
  content: '\2713';
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Neighborhood ---- */
.neighborhood-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.neighborhood-tags span {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
}

/* ---- Image Placeholder ---- */
.img-placeholder {
  background: var(--gray-200);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: .9rem;
  font-weight: 500;
  min-height: 260px;
}

/* ---- Footer ---- */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 60px 0 30px;
}
.footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 16px; }
.footer a { color: var(--gray-300); transition: color .2s; }
.footer a:hover { color: var(--orange); }
.footer ul li { margin-bottom: 8px; font-size: .95rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: .85rem;
  color: var(--gray-600);
}

/* ---- Sticky Mobile CTA ---- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0,0,0,.15);
}
.mobile-cta a { color: var(--white); display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---- Page Header (inner pages) ---- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,.85); font-size: 1.15rem; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 60px 0 70px; }
  .hero h1 { font-size: 2.1rem; }
  .lead-form { max-width: 100%; margin-top: 30px; }
  .site-logo { height: 72px; max-height: 72px; }
  .hero-logo { height: 90px; }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
  }
  .header__hamburger { display: flex; }
  .mobile-cta { display: block; }
  body { padding-bottom: 56px; }
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .trust-bar__inner { gap: 20px; }
  .site-logo { height: 60px; max-height: 60px; }
  .hero-logo { height: 72px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.75rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1.05rem; }
  .lead-form { padding: 24px; }
}
