/* style.css */
/*
 Theme Name:   Parker Roofing Child
 Template:     socius-theme-advantage
 Version:      1.0
*/

/* ─── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #c0392b;
  --red-dark:   #a93226;
  --black:      #1c1c1c;      /* true near-black — matches Parker site */
  --black-mid:  #2a2a2a;      /* slightly lighter black for secondary dark sections */
  --gray-dark:  #333333;
  --gray-mid:   #666666;
  --gray-light: #f5f5f5;
  --border:     #e0e0e0;
  --white:      #ffffff;
  --max-w:      1200px;
  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Open Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--gray-dark); font-size: 16px; line-height: 1.7; background: var(--white); }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ─── UTILITY BAR ────────────────────────────────────────────── */
.utility-bar {
  background: var(--black);
  color: #aaa;
  font-family: var(--font-head);
  font-size: 13px;
  padding: 7px 0;
}
.utility-bar .container { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
.utility-bar a { color: #aaa; }
.utility-bar a:hover { color: var(--white); text-decoration: none; }
.utility-bar .phone-util { color: var(--white); font-weight: 700; font-size: 14px; }

/* ─── HEADER ─────────────────────────────────────────────────── */
/*
 * WORDPRESS NOTE:
 * In standalone HTML this header is sticky (position: sticky; top: 0).
 * When bolted into WordPress via get_header() / get_footer(), this entire
 * <header> block is replaced by the theme's own header, which is already
 * sticky on the live site — so stickiness is fully preserved.
 */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo img { height: 60px; width: auto; }

/* .primary-nav ul { list-style: none; display: flex; gap: 4px; align-items: center; }
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--black);
  border-radius: 3px;
  transition: color .2s, background .2s;
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.current > a { color: var(--red); text-decoration: none; background: rgba(192,57,43,0.06); }

.primary-nav .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-top: 3px solid var(--red);
  z-index: 200;
}
.primary-nav .dropdown li a {
  display: block;
  padding: 10px 18px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--black);
  border-bottom: 1px solid #f0f0f0;
  transition: color .15s, padding-left .15s;
}
.primary-nav .dropdown li a:hover { color: var(--red); padding-left: 24px; text-decoration: none; }
.primary-nav > ul > li:hover .dropdown { display: block; }

.nav-cta { background: var(--red); color: var(--white) !important; padding: 10px 20px !important; border-radius: 4px; transition: background .2s !important; }
.nav-cta:hover { background: var(--red-dark) !important; color: var(--white) !important; } */

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 14px 30px;
  border-radius: 4px;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--red-dark); color: var(--white); text-decoration: none; transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 12px 28px;
  border-radius: 4px;
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); color: var(--white); text-decoration: none; }

/* ─── HERO / PAGE BANNER ─────────────────────────────────────── */
.page-hero {
  position: relative;
  background-color: var(--black);
  background-image:
    linear-gradient(to right, rgba(28,28,28,0.93) 42%, rgba(28,28,28,0.55) 100%),
    url('https://parkerroof.com/wp-content/uploads/2021/08/bigstock-Modest-Midwestern-House-with-T-307112899-1340x807.jpg');
  background-size: cover;
  background-position: center 40%;
  padding: 80px 0 72px;
  color: var(--white);
}
.page-hero .container { position: relative; z-index: 1; }
.hero-breadcrumb {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.hero-breadcrumb a { color: rgba(255,255,255,0.55); }
.hero-breadcrumb a:hover { color: var(--white); text-decoration: none; }
.hero-breadcrumb span { color: rgba(255,255,255,0.9); }

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 46px);
  color: var(--white);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  max-width: 620px;
}
.page-hero h1 em { font-style: normal; color: #e87b6e; }
.page-hero .hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-trust { display: flex; gap: 18px; margin-top: 40px; flex-wrap: wrap; align-items: center; }
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,0.8);
}
.trust-badge::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: var(--red);
  border-radius: 50%;
  font-size: 11px;
  color: var(--white);
  flex-shrink: 0;
}

/* ─── SECTION LABELS ─────────────────────────────────────────── */
.section-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 18px;
}
.section-title span { color: var(--red); }

/* ─── SIGNS SECTION ──────────────────────────────────────────── */
.signs-section { padding: 72px 0; background: var(--white); }
.signs-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.signs-text p { color: var(--gray-mid); margin-bottom: 20px; font-size: 15.5px; }
.signs-text .btn-primary { margin-top: 10px; }

.signs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sign-card {
  background: var(--gray-light);
  border-left: 4px solid var(--red);
  padding: 18px 16px;
  border-radius: 0 4px 4px 0;
}
.sign-card h4 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 6px;
}
.sign-card p { font-size: 13px; color: var(--gray-mid); line-height: 1.55; }

/* ─── PHOTO + TEXT SPLIT ROWS ────────────────────────────────── */
.split-section { padding: 72px 0; background: var(--gray-light); }
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 4px;
}
.split-row:last-child { margin-bottom: 0; }
.split-row.reverse { direction: rtl; }
.split-row.reverse > * { direction: ltr; }

.split-image { min-height: 360px; overflow: hidden; }
.split-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.split-image .img-placeholder { width: 100%; height: 100%; min-height: 360px; }

.split-content {
  background: var(--white);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-content h3 {
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
  line-height: 1.25;
}
.split-content p { color: var(--gray-mid); font-size: 15px; margin-bottom: 14px; line-height: 1.7; }
.split-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}
.split-content ul li {
  padding: 7px 0 7px 22px;
  position: relative;
  font-size: 14.5px;
  color: var(--gray-dark);
  border-bottom: 1px solid var(--border);
}
.split-content ul li:first-child { border-top: 1px solid var(--border); }
.split-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* ─── WHAT WE REPAIR ─────────────────────────────────────────── */
.repair-types { padding: 72px 0; background: var(--black); color: var(--white); }
.repair-types .section-title { color: var(--white); }
.repair-types .section-label { color: #e87b6e; }
.repair-types-intro { color: rgba(255,255,255,0.72); font-size: 15.5px; max-width: 680px; margin-bottom: 44px; }

.repair-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.repair-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 4px solid var(--red);
  padding: 28px 24px;
  border-radius: 0 0 6px 6px;
  transition: background .2s;
}
.repair-card:hover { background: rgba(255,255,255,0.09); }
.repair-card h3 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.repair-card p { font-size: 13.5px; color: rgba(255,255,255,0.65); line-height: 1.65; }

/* ─── PROCESS ────────────────────────────────────────────────── */
.process-section { padding: 72px 0; background: var(--gray-light); }
.process-header { text-align: center; margin-bottom: 52px; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 34px;
  left: calc(12.5% + 1px);
  right: calc(12.5% + 1px);
  height: 2px;
  background: var(--red);
  z-index: 0;
}
.process-step { text-align: center; padding: 0 16px; position: relative; z-index: 1; }
.step-num {
  width: 68px; height: 68px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 4px solid var(--gray-light);
  box-shadow: 0 0 0 3px var(--red);
}
.process-step h4 { font-family: var(--font-head); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--black); margin-bottom: 8px; }
.process-step p { font-size: 13px; color: var(--gray-mid); line-height: 1.55; }

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-section { padding: 72px 0; background: var(--white); }
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
.faq-sidebar h2 { margin-bottom: 16px; }
.faq-sidebar p { color: var(--gray-mid); font-size: 15px; margin-bottom: 28px; }

.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  text-align: left; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  color: var(--black); text-transform: uppercase; letter-spacing: .3px;
}
.faq-question:hover { color: var(--red); }
.faq-toggle {
  width: 24px; height: 24px;
  background: var(--red); border-radius: 50%;
  color: var(--white); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform .25s; line-height: 1;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { padding: 0 0 20px; color: var(--gray-mid); font-size: 14.5px; line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ─── CTA BAND ───────────────────────────────────────────────── */
.cta-band { background: var(--red); padding: 52px 0; text-align: center; color: var(--white); }
.cta-band h2 { font-family: var(--font-head); font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin-bottom: 10px; color: var(--white); }
.cta-band p { font-size: 16px; color: rgba(255,255,255,0.85); margin-bottom: 28px; max-width: 580px; margin-left: auto; margin-right: auto; }
.btn-white {
  display: inline-block;
  background: var(--white); color: var(--red);
  font-family: var(--font-head); font-weight: 800; font-size: 14px;
  text-transform: uppercase; letter-spacing: .6px;
  padding: 14px 34px; border-radius: 4px;
  transition: background .2s, transform .15s;
}
.btn-white:hover { background: #f5e9e8; text-decoration: none; transform: translateY(-1px); }
.phone-cta { display: block; margin-top: 18px; font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--white); letter-spacing: .5px; }
.phone-cta:hover { text-decoration: none; opacity: .85; color: #fff; }

/* ─── WARRANTY BAND ──────────────────────────────────────────── */
.warranty-band { background: var(--black-mid); padding: 52px 0; color: var(--white); }
.warranty-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.warranty-text .section-label { color: #e87b6e; }
.warranty-text h2 { font-family: var(--font-head); font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; color: var(--white); margin-bottom: 8px; }
.warranty-text p { color: rgba(255,255,255,0.72); max-width: 520px; }
.warranty-badges { display: flex; gap: 20px; flex-wrap: wrap; }
.warranty-badge { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.13); padding: 16px 20px; border-radius: 6px; text-align: center; min-width: 120px; }
.warranty-badge .wb-num { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--white); line-height: 1; }
.warranty-badge .wb-label { font-family: var(--font-head); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,0.55); margin-top: 4px; }

/* ─── REVIEWS ────────────────────────────────────────────────── */
.reviews-section { padding: 72px 0; background: var(--gray-light); }
.reviews-header { text-align: center; margin-bottom: 44px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: var(--white); padding: 28px 26px; border-radius: 6px; border-top: 4px solid var(--red); }
.review-stars { color: #f0a500; font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.review-card p { font-size: 14px; color: var(--gray-mid); line-height: 1.65; font-style: italic; margin-bottom: 18px; }
.review-author { font-family: var(--font-head); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--black); }

/* ─── RELATED SERVICES ───────────────────────────────────────── */
.related-section { padding: 72px 0; background: var(--white); }
.related-header { text-align: center; margin-bottom: 44px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-card {
  background: var(--gray-light);
  border-bottom: 4px solid var(--border);
  padding: 28px 22px;
  border-radius: 4px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: block;
  color: var(--black);
}
.related-card:hover { border-color: var(--red); box-shadow: 0 6px 24px rgba(0,0,0,0.08); transform: translateY(-3px); text-decoration: none; color: var(--black); }
.related-card h4 { font-family: var(--font-head); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; color: var(--black); }
.related-card p { font-size: 13px; color: var(--gray-mid); line-height: 1.5; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer { background: var(--black); color: rgba(255,255,255,0.6); padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .footer-logo { height: 52px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-head); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--white); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.58); font-size: 13.5px; transition: color .15s; }
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }
.footer-contact p { font-size: 13.5px; line-height: 1.8; }
.footer-contact a { color: rgba(255,255,255,0.58); }
.footer-contact a:hover { color: var(--white); }
.footer-phone { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--white) !important; margin-top: 6px; display: inline-block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--white); text-decoration: none; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .repair-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-steps::before { display: none; }
  .split-row { grid-template-columns: 1fr; }
  .split-row.reverse { direction: ltr; }
}
@media (max-width: 768px) {
  .primary-nav { display: none; }
  .signs-layout { grid-template-columns: 1fr; }
  .signs-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .repair-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .warranty-inner { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .split-content { padding: 32px 24px; }
}

@media (min-width: 992px) {
    a[href^="tel"] {
        pointer-events: auto!important;
    }
}
