/* ============================================================
   ROOF REPLACEMENT LANDING PAGES - Page-Specific Styles
   Extends main.css design system (uses existing custom properties)
   BEM naming with rr- prefix
   ============================================================ */


/* ==========================================================
   1. PPC HEADER (Slim, no navigation - Variants B/C)
   HTML: .rr-ppc-header > .container > (.rr-ppc-header__logo + .rr-ppc-header__phone)
   ========================================================== */

.rr-ppc-header {
  background: var(--color-primary);
  height: 60px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

.rr-ppc-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rr-ppc-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.rr-ppc-header__logo img {
  max-height: 40px;
  width: auto;
}

.rr-ppc-header__phone {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition);
}

.rr-ppc-header__phone:hover {
  color: var(--color-accent-hover);
}

.rr-ppc-header__phone svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}


/* ==========================================================
   2. SHARED SECTION TITLE & INTRO (reusable across sections)
   HTML: .rr-section__title / .rr-section__intro
   ========================================================== */

.rr-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.rr-section__title span {
  color: var(--color-accent);
}

.rr-section__intro {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-gray-700);
}

/* Light variants for dark-bg sections (solution, calculator) */
.rr-section__title--light {
  color: var(--color-white);
}

.rr-section__intro--light {
  color: var(--color-white);
  opacity: 0.85;
}


/* ==========================================================
   3. HERO SECTION
   HTML: .rr-hero[style=bg-image] > .rr-hero__overlay + .container > .rr-hero__content
   Background-image is INLINE on .rr-hero; overlay is a child div
   ========================================================== */

.rr-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 0 5rem;
  overflow: hidden;
}

.rr-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 27, 51, 0.85) 0%,
    rgba(27, 42, 74, 0.75) 100%
  );
  z-index: 1;
}

.rr-hero .container {
  position: relative;
  z-index: 2;
}

.rr-hero__content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.rr-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.rr-hero__title span {
  color: var(--color-accent);
}

.rr-hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--color-white);
  opacity: 0.9;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.rr-hero__cta {
  margin-bottom: 0.75rem;
}

.rr-hero__doubt {
  font-size: 0.8125rem;
  color: var(--color-white);
  opacity: 0.6;
  margin-top: 0.5rem;
}

/* --- Trust Badges Row --- */

.rr-hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 2.5rem;
}

.rr-hero__trust-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0 1.25rem;
  white-space: nowrap;
}

/* Gold vertical separator between badges */
.rr-hero__trust-badge:not(:last-child) {
  border-right: 1px solid var(--color-accent);
}

.rr-hero__trust-badge:first-child {
  padding-left: 0;
}

.rr-hero__trust-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--color-accent);
}

.rr-hero__trust-badge span {
  opacity: 0.9;
}


/* ==========================================================
   4. CHECKLIST / PROBLEM AWARENESS SECTION
   HTML: .rr-checklist > .container > (.rr-section__title + .rr-section__intro
         + .rr-checklist__grid > .rr-checklist__item*6 + .rr-checklist__closing)
   ========================================================== */

.rr-checklist {
  background: var(--color-offwhite);
  padding: 5rem 0;
}

.rr-checklist__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.rr-checklist__item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
}

.rr-checklist__item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.rr-checklist__thumb {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rr-checklist__thumb svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-accent);
}

.rr-checklist__text {
  flex: 1;
}

.rr-checklist__text h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.rr-checklist__text p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700);
  margin: 0;
}

/* --- Closing CTA area --- */

.rr-checklist__closing {
  max-width: 720px;
  margin: 3rem auto 0;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-gray-700);
}

.rr-checklist__closing p {
  margin-bottom: 1.5rem;
}

.rr-checklist__closing strong {
  color: var(--color-primary);
  font-weight: 600;
}


/* ==========================================================
   5. CALCULATOR SECTION
   HTML: .rr-calculator > .container > (.rr-section__title + .rr-section__intro
         + #roofing-calculator + .rr-calculator__bridge)
   ========================================================== */

.rr-calculator {
  background: linear-gradient(135deg, #1B2A4A 0%, #0F1B33 100%);
  padding: 5rem 0;
}

/* Title & intro inherit dark-on-light colors by default.
   Override to white when inside dark-background sections. */
.rr-calculator .rr-section__title,
.rr-final-cta .rr-section__title {
  color: var(--color-white);
}

.rr-calculator .rr-section__intro,
.rr-final-cta .rr-section__intro {
  color: var(--color-white);
  opacity: 0.85;
}

.rr-calculator #roofing-calculator {
  margin-top: 2.5rem;
}

.rr-calculator__bridge {
  max-width: 640px;
  margin: 2.5rem auto 0;
  text-align: center;
}

.rr-calculator__bridge p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-white);
  opacity: 0.85;
  margin: 0;
}


/* ==========================================================
   6. COST OF DELAY SECTION
   HTML: .rr-delay > .container > (.rr-section__title + .rr-section__intro
         + .rr-delay__timeline > .rr-delay__stage*N + .rr-delay__stat
         + .rr-delay__callout + CTA)
   ========================================================== */

.rr-delay {
  background: var(--color-offwhite);
  padding: 5rem 0;
}

/* --- Timeline --- */

.rr-delay__timeline {
  max-width: 680px;
  margin: 0 auto 3rem;
  position: relative;
  padding-left: 21px;
}

/* Vertical gold line */
.rr-delay__timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.rr-delay__stage {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 0;
  position: relative;
}

/* Marker dot */
.rr-delay__marker {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  z-index: 1;
  position: relative;
  box-shadow: 0 0 0 5px var(--color-offwhite), 0 0 0 7px var(--color-accent);
}

.rr-delay__card {
  flex: 1;
  padding-top: 0.25rem;
}

.rr-delay__label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gray-500);
  margin-bottom: 0.375rem;
}

.rr-delay__cost {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
  line-height: 1.3;
}

.rr-delay__desc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700);
  margin-top: 0.375rem;
}

/* Danger modifier: red cost */
.rr-delay__stage--danger .rr-delay__cost {
  color: #B91C1C;
}

/* --- Stat callout (plain text) --- */

.rr-delay__stat {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-primary);
}

/* --- Insurance Callout Box --- */

.rr-delay__callout {
  background: var(--color-primary-dark);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 2rem 2.25rem;
  margin: 0 auto 2.5rem;
  max-width: 680px;
}

.rr-delay__callout-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

/* Raw <p> tags inside callout (no wrapper class) */
.rr-delay__callout p {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.rr-delay__callout p:last-child {
  margin-bottom: 0;
}

/* --- Inflation Callout Variant --- */

.rr-delay__callout--inflation {
  background: linear-gradient(135deg, #1B2A4A 0%, #0F1B33 100%);
  border-left-color: #B91C1C;
}

.rr-delay__callout--inflation .rr-delay__callout-title {
  color: #F87171;
}

.rr-delay__inflation-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.rr-delay__inflation-card {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.rr-delay__inflation-card--now {
  background: rgba(212, 160, 23, 0.15);
  border: 1.5px solid var(--color-accent);
}

.rr-delay__inflation-card--later {
  background: rgba(185, 28, 28, 0.15);
  border: 1.5px solid #B91C1C;
}

.rr-delay__inflation-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.rr-delay__inflation-amount {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
}

.rr-delay__inflation-card--now .rr-delay__inflation-amount {
  color: var(--color-accent);
}

.rr-delay__inflation-card--later .rr-delay__inflation-amount {
  color: #F87171;
}

.rr-delay__inflation-note {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.375rem;
  line-height: 1.4;
}

@media (max-width: 575.98px) {
  .rr-delay__inflation-compare {
    grid-template-columns: 1fr;
  }
  .rr-delay__inflation-amount {
    font-size: 1.5rem;
  }
}

/* --- Centered CTA --- */

.rr-delay .text-center {
  text-align: center;
  margin-top: 2rem;
}


/* ==========================================================
   7. SOCIAL PROOF SECTION
   HTML: .rr-social > .container > (.rr-section__title
         + .rr-social__testimonials > .rr-social__testimonial*3
         + .rr-social__gallery-title + .rr-social__gallery > .rr-social__project*3
         + .rr-social__stats > .rr-social__stat*3)
   ========================================================== */

.rr-social {
  background: var(--color-white);
  padding: 5rem 0;
}

/* --- Testimonial Cards --- */

.rr-social__testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
}

.rr-social__testimonial {
  background: var(--color-offwhite);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.rr-social__testimonial:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.rr-social__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.rr-social__stars svg {
  width: 18px;
  height: 18px;
  fill: #F59E0B;
}

.rr-social__quote {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray-700);
  font-style: italic;
  margin: 0 0 1.25rem;
  border: none;
  padding: 0;
}

.rr-social__cite {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  font-style: normal;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.rr-social__project-type {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-gray-500);
}

/* --- Gallery Title --- */

.rr-social__gallery-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  text-align: center;
  margin: 4rem 0 2rem;
  color: var(--color-primary);
}

/* --- Project Gallery Grid --- */

.rr-social__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.rr-social__project {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-white);
  transition: box-shadow var(--transition), transform var(--transition);
}

.rr-social__project:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.rr-social__project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.rr-social__project-img {
  position: relative;
  overflow: hidden;
}

.rr-social__project-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.rr-social__project-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 27, 51, 0.75);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.rr-social__project-info {
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1rem;
  align-items: center;
}

.rr-social__project-city {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9375rem;
}

.rr-social__project-material {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-gray-500);
}

.rr-social__project-time {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-gray-500);
}

/* --- Stats Bar --- */

.rr-social__stats {
  background: linear-gradient(135deg, #1B2A4A 0%, #0F1B33 100%);
  padding: 3rem 2rem;
  margin-top: 4rem;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.rr-social__stat {
  text-align: center;
}

.rr-social__stat-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--color-accent);
  line-height: 1.2;
}

.rr-social__stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-white);
  opacity: 0.8;
  margin-top: 0.25rem;
}


/* ==========================================================
   8. LV HOMES SOLUTION SECTION
   HTML: .rr-solution > .container > (.rr-section__title--light + .rr-section__intro--light
         + .rr-solution__steps > .rr-solution__step*3
         + .rr-solution__grid > .rr-solution__diff*6)
   ========================================================== */

.rr-solution {
  background: linear-gradient(135deg, #1B2A4A 0%, #0F1B33 100%);
  padding: 5rem 0;
}

/* --- 3-Step Process --- */

.rr-solution__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.rr-solution__step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.rr-solution__step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.rr-solution__step h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.rr-solution__step p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-white);
  opacity: 0.8;
  line-height: 1.6;
  margin: 0;
}

/* --- Differentiators Grid --- */

.rr-solution__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

/* Flat structure: svg > h4 > p directly inside .rr-solution__diff */
.rr-solution__diff {
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background var(--transition), border-color var(--transition);
}

.rr-solution__diff:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.rr-solution__diff svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-accent);
  margin-bottom: 0.75rem;
  display: block;
}

.rr-solution__diff h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.rr-solution__diff p {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-white);
  opacity: 0.7;
  line-height: 1.6;
  margin: 0;
}


/* ==========================================================
   9. FAQ SECTION (Bootstrap Accordion Override)
   HTML: .rr-faq > .container > (.rr-section__title
         + .accordion > .accordion-item*N)
   ========================================================== */

.rr-faq {
  background: var(--color-offwhite);
  padding: 5rem 0;
}

.rr-faq .accordion {
  max-width: 820px;
  margin: 2.5rem auto 0;
}

.rr-faq .accordion-item {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.rr-faq .accordion-item:last-child {
  margin-bottom: 0;
}

.rr-faq .accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--color-primary);
  background: var(--color-white);
  padding: 1.25rem 1.5rem;
  box-shadow: none;
  border: none;
  transition: color var(--transition), background var(--transition);
}

.rr-faq .accordion-button:not(.collapsed) {
  color: var(--color-accent);
  background: var(--color-white);
  box-shadow: none;
}

/* Override Bootstrap blue focus ring with gold */
.rr-faq .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.25);
  border-color: var(--color-accent);
}

/* Gold-tinted chevron */
.rr-faq .accordion-button::after {
  filter: sepia(1) saturate(3) brightness(0.85) hue-rotate(10deg);
  transition: transform var(--transition);
}

.rr-faq .accordion-body {
  font-family: var(--font-body);
  font-size: 0.9625rem;
  line-height: 1.7;
  color: var(--color-gray-700);
  padding: 0 1.5rem 1.5rem;
}


/* ==========================================================
   10. FINAL CTA SECTION
   HTML: .rr-final-cta > .container > (.rr-final-cta__text
         + .rr-final-cta__actions + .rr-final-cta__phone + .rr-final-cta__doubt)
   ========================================================== */

.rr-final-cta {
  background: linear-gradient(135deg, #0F1B33 0%, #1B2A4A 100%);
  padding: 4.5rem 0;
  text-align: center;
}

.rr-final-cta__text {
  max-width: 620px;
  margin: 0 auto 2rem;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
}

.rr-final-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.rr-final-cta__phone {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.25rem;
}

.rr-final-cta__phone a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.rr-final-cta__phone a:hover {
  color: var(--color-accent-hover);
}

.rr-final-cta__doubt {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-white);
  opacity: 0.6;
  margin-top: 0.75rem;
}


/* ==========================================================
   11. SHARED BUTTON ENHANCEMENT
   .btn-primary-custom is defined in main.css; these are
   page-level enhancements for the rr- context only
   ========================================================== */

.rr-hero__cta.btn-primary-custom,
.rr-checklist__closing .btn-primary-custom,
.rr-delay .btn-primary-custom,
.rr-final-cta__actions .btn-primary-custom {
  font-size: 1.0625rem;
  padding: 0.875rem 2.25rem;
  letter-spacing: 0.25px;
}


/* ==========================================================
   12. UTILITY CLASSES
   ========================================================== */

.text-center {
  text-align: center;
}


/* ==========================================================
   RESPONSIVE - Tablet (max-width: 991.98px)
   ========================================================== */

@media (max-width: 991.98px) {

  /* Hero */
  .rr-hero {
    min-height: auto;
    padding: 4.5rem 0 3.5rem;
  }

  /* Checklist */
  .rr-checklist__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonials */
  .rr-social__testimonials {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Gallery */
  .rr-social__gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats */
  .rr-social__stats {
    gap: 2.5rem;
  }

  /* Solution */
  .rr-solution__steps {
    gap: 1.5rem;
  }

  .rr-solution__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================
   RESPONSIVE - Mobile (max-width: 767.98px)
   ========================================================== */

@media (max-width: 767.98px) {

  /* PPC Header */
  .rr-ppc-header__phone {
    font-size: 0.9rem;
  }

  /* Hero */
  .rr-hero {
    padding: 3rem 0 2.5rem;
  }

  .rr-hero__trust {
    gap: 0.5rem;
    margin-top: 2rem;
  }

  .rr-hero__trust-badge {
    padding: 0 0.75rem;
    font-size: 0.75rem;
  }

  /* Section spacing */
  .rr-checklist,
  .rr-calculator,
  .rr-delay,
  .rr-social,
  .rr-solution,
  .rr-faq {
    padding: 3.5rem 0;
  }

  .rr-final-cta {
    padding: 3rem 0;
  }

  /* Section titles */
  .rr-section__intro {
    margin-bottom: 2rem;
  }

  /* Checklist */
  .rr-checklist__grid {
    grid-template-columns: 1fr;
  }

  /* Timeline */
  .rr-delay__stage {
    gap: 1rem;
  }

  .rr-delay__cost {
    font-size: 1.25rem;
  }

  .rr-delay__callout {
    padding: 1.5rem;
  }

  /* Testimonials */
  .rr-social__testimonials {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .rr-social__gallery {
    grid-template-columns: 1fr;
  }

  .rr-social__stats {
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
    gap: 2rem;
  }

  .rr-social__stat-number {
    font-size: 2rem;
  }

  /* Solution */
  .rr-solution__steps {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
  }

  .rr-solution__step {
    padding: 1.5rem;
  }

  .rr-solution__grid {
    grid-template-columns: 1fr;
  }

  /* Gallery images */
  .rr-social__project-img img {
    height: 160px;
  }

  /* FAQ */
  .rr-faq .accordion-button {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }

  .rr-faq .accordion-body {
    padding: 0 1.25rem 1.25rem;
  }
}


/* ==========================================================
   RESPONSIVE - Small Mobile (max-width: 575.98px)
   ========================================================== */

@media (max-width: 575.98px) {

  /* Hero */
  .rr-hero__cta.btn-primary-custom {
    display: block;
    text-align: center;
    width: 100%;
  }

  .rr-hero__trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .rr-hero__trust-badge {
    border-right: none !important;
    padding: 0;
  }

  /* Checklist */
  .rr-checklist__item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .rr-checklist__text h3 {
    text-align: center;
  }

  /* Stats */
  .rr-social__stats {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }

  /* Timeline */
  .rr-delay__marker {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  /* Final CTA */
  .rr-final-cta__actions .btn-primary-custom {
    width: 100%;
    text-align: center;
  }
}


/* ==========================================================
   RESPONSIVE - Tiny (max-width: 399.98px)
   ========================================================== */

@media (max-width: 399.98px) {

  /* Hero */
  .rr-hero {
    padding: 2.5rem 0 2rem;
  }

  /* Section spacing */
  .rr-checklist,
  .rr-calculator,
  .rr-delay,
  .rr-social,
  .rr-solution,
  .rr-faq {
    padding: 3rem 0;
  }

  /* Timeline */
  .rr-delay__timeline::before {
    left: 16px;
  }

  .rr-delay__marker {
    width: 32px;
    height: 32px;
    min-width: 32px;
    box-shadow: 0 0 0 4px var(--color-offwhite), 0 0 0 6px var(--color-accent);
  }

  .rr-delay__stage {
    gap: 0.75rem;
  }

  /* Solution diff cards stack content */
  .rr-solution__diff {
    padding: 1.25rem;
  }

  /* Testimonials */
  .rr-social__testimonial {
    padding: 1.5rem;
  }

  /* Gallery images: stack before/after */
  .rr-social__project-images {
    grid-template-columns: 1fr;
  }

  .rr-social__project-img img {
    height: 180px;
  }

  /* FAQ */
  .rr-faq .accordion-button {
    font-size: 0.9375rem;
    padding: 0.875rem 1rem;
  }

  .rr-faq .accordion-body {
    font-size: 0.9rem;
    padding: 0 1rem 1rem;
  }
}


/* ==========================================================
   PRINT STYLES
   ========================================================== */

@media print {
  .rr-ppc-header,
  .rr-final-cta__actions,
  .rr-hero__cta,
  .rr-checklist__closing .btn-primary-custom,
  .rr-delay .btn-primary-custom {
    display: none;
  }

  .rr-hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .rr-hero__overlay {
    background: rgba(15, 27, 51, 0.95);
  }

  .rr-social__stats {
    break-inside: avoid;
  }
}
