/* ============================================
   ROOF REPAIR CONSULTATION — Campaign Landing Page
   Prefix: rrc-
   Standalone CSS (no homepage-v2.css dependency)
   ============================================ */

:root {
  --rrc-green: #77E806;
  --rrc-green-hover: #65c905;
  --rrc-dark: #1a1a1a;
  --rrc-darker: #111111;
  --rrc-gray-100: #f5f5f5;
  --rrc-gray-200: #e5e5e5;
  --rrc-gray-400: #999999;
  --rrc-gray-500: #777777;
  --rrc-gray-600: #555555;
  --rrc-gray-800: #333333;
  --rrc-white: #ffffff;
  --rrc-red: #ff4444;
  --rrc-radius: 12px;
  --rrc-radius-sm: 8px;
  --rrc-shadow: 0 4px 24px rgba(0,0,0,0.12);
  --rrc-shadow-lg: 0 12px 48px rgba(0,0,0,0.2);
  --rrc-container: 1120px;
  --rrc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.rrc-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--rrc-white);
  background: var(--rrc-darker);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

.rrc-container {
  max-width: var(--rrc-container);
  margin: 0 auto;
  padding: 0 24px;
}

.rrc-green { color: var(--rrc-green); }

/* Light section variant — white/cream bg with dark text */
.rrc-light {
  background: #f8f8f8 !important;
  color: var(--rrc-dark) !important;
}
.rrc-light h2,
.rrc-light h3,
.rrc-light strong {
  color: var(--rrc-dark) !important;
}
.rrc-light p {
  color: var(--rrc-gray-600) !important;
}
.rrc-light .rrc-green {
  color: var(--rrc-green) !important;
}

/* Hide WP admin bar and CF7 junk */
body.rrc-page #wpadminbar,
body.rrc-page .grecaptcha-badge { display: none !important; }

/* ============================================
   HEADER — Minimal, logo + phone
   ============================================ */
.rrc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17,17,17,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px 0;
}

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

.rrc-logo img {
  height: 36px;
  width: auto;
}

.rrc-header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rrc-green);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--rrc-transition);
}
.rrc-header-phone:hover { color: var(--rrc-white); }

.rrc-header-phone svg { flex-shrink: 0; stroke: var(--rrc-green); }

/* ============================================
   HERO — Split layout, form on right
   ============================================ */
.rrc-hero {
  position: relative;
  padding: 120px 0 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.rrc-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rrc-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.rrc-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(25,25,25,0.65);
}

.rrc-hero .rrc-container { position: relative; z-index: 1; }

.rrc-hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

.rrc-hero-copy h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.rrc-hero-sub {
  font-size: 1.15rem;
  color: var(--rrc-gray-200);
  margin-bottom: 16px;
  line-height: 1.7;
  max-width: 520px;
}

.rrc-hero-sub em {
  color: var(--rrc-white);
  font-style: italic;
}

.rrc-hero-sub strong {
  color: var(--rrc-green);
}

.rrc-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
}

.rrc-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--rrc-gray-200);
  font-weight: 500;
}

.rrc-trust-icon { font-size: 1.1rem; }

/* ============================================
   FORM CARD
   ============================================ */
.rrc-form-card {
  background: var(--rrc-white);
  border-radius: var(--rrc-radius);
  padding: 36px 32px;
  box-shadow: var(--rrc-shadow-lg);
  color: var(--rrc-dark);
}

.rrc-form-header {
  text-align: center;
  margin-bottom: 24px;
}

.rrc-form-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--rrc-dark);
  margin-bottom: 6px;
}

.rrc-form-header p {
  font-size: 0.9rem;
  color: var(--rrc-gray-600);
}

.rrc-form { display: flex; flex-direction: column; gap: 14px; }

.rrc-field input,
.rrc-field select {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  border: 2px solid var(--rrc-gray-200);
  border-radius: var(--rrc-radius-sm);
  background: var(--rrc-white);
  color: var(--rrc-dark);
  transition: border-color var(--rrc-transition), box-shadow var(--rrc-transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.rrc-field input:focus,
.rrc-field select:focus {
  border-color: var(--rrc-green);
  box-shadow: 0 0 0 3px rgba(119,232,6,0.15);
}

.rrc-field input.rrc-error,
.rrc-field select.rrc-error {
  border-color: var(--rrc-red);
  box-shadow: 0 0 0 3px rgba(255,68,68,0.1);
}

.rrc-field select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.rrc-field select option[value=""][disabled] {
  color: var(--rrc-gray-400);
}

.rrc-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.rrc-submit-btn {
  width: 100%;
  padding: 16px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rrc-dark);
  background: var(--rrc-green);
  border: none;
  border-radius: var(--rrc-radius-sm);
  cursor: pointer;
  transition: all var(--rrc-transition);
  margin-top: 4px;
}

.rrc-submit-btn:hover {
  background: var(--rrc-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(119,232,6,0.3);
}

.rrc-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.rrc-form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--rrc-gray-500);
  margin-top: 4px;
}

/* Thank You */
.rrc-thank-you {
  text-align: center;
  padding: 20px 0;
}
.rrc-ty-icon { font-size: 3rem; margin-bottom: 16px; }
.rrc-thank-you h3 { font-size: 1.5rem; font-weight: 700; color: var(--rrc-dark); margin-bottom: 12px; }
.rrc-thank-you p { font-size: 1rem; color: var(--rrc-gray-600); margin-bottom: 20px; }
.rrc-ty-phone {
  display: inline-block;
  color: var(--rrc-green-hover);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
}

/* ============================================
   TRUST BAR
   ============================================ */
.rrc-trust-bar {
  background: #ffffff !important;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 28px 0;
}

.rrc-trust-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.rrc-tb-item {
  text-align: center;
}
.rrc-tb-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #2b8a0e !important;
  line-height: 1.2;
}
.rrc-tb-item span {
  font-size: 0.82rem;
  color: var(--rrc-gray-600) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.rrc-tb-divider {
  width: 1px;
  height: 40px;
  background: rgba(0,0,0,0.1);
}

/* ============================================
   DIFFERENTIATION SECTION
   ============================================ */
.rrc-diff {
  padding: 80px 0;
  background: var(--rrc-darker);
}

.rrc-section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.rrc-section-sub {
  text-align: center;
  color: var(--rrc-gray-400);
  font-size: 1.1rem;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.rrc-diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.rrc-diff-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--rrc-radius);
  padding: 36px 28px;
  transition: all var(--rrc-transition);
}

.rrc-diff-card:hover {
  border-color: rgba(119,232,6,0.2);
  background: rgba(255,255,255,0.06);
  transform: translateY(-4px);
}

.rrc-diff-icon { margin-bottom: 20px; }

.rrc-diff-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--rrc-white);
}

.rrc-diff-card p {
  font-size: 0.92rem;
  color: var(--rrc-gray-400);
  line-height: 1.7;
}

/* ============================================
   PROOF / PHOTO SECTIONS
   ============================================ */
.rrc-proof {
  padding: 80px 0;
  background: var(--rrc-dark);
}

.rrc-proof.rrc-light .rrc-proof-caption {
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--rrc-green) !important;
}

.rrc-proof.rrc-light .rrc-inline-cta {
  color: #2b8a0e !important;
}
.rrc-proof.rrc-light .rrc-inline-cta:hover {
  color: var(--rrc-dark) !important;
}

.rrc-proof-alt {
  background: var(--rrc-darker);
}

.rrc-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.rrc-proof-reverse {
  direction: rtl;
}
.rrc-proof-reverse > * {
  direction: ltr;
}

.rrc-proof-image {
  position: relative;
  border-radius: var(--rrc-radius);
  overflow: hidden;
}

.rrc-proof-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: var(--rrc-radius);
}

.rrc-proof-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rrc-green);
  font-style: italic;
}

.rrc-proof-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.rrc-proof-content p {
  font-size: 1rem;
  color: var(--rrc-gray-200);
  margin-bottom: 16px;
  line-height: 1.7;
}

.rrc-proof-content strong {
  color: var(--rrc-white);
}

.rrc-inline-cta {
  display: inline-block;
  color: var(--rrc-green);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  margin-top: 8px;
  transition: color var(--rrc-transition);
}
.rrc-inline-cta:hover { color: var(--rrc-white); }

/* ============================================
   PROCESS STEPS
   ============================================ */
.rrc-process {
  padding: 80px 0;
  background: var(--rrc-dark);
  border-top: none;
}

.rrc-process.rrc-light {
  border-top: 1px solid rgba(0,0,0,0.06);
}

.rrc-process.rrc-light .rrc-step-num {
  background: var(--rrc-green);
  color: var(--rrc-dark);
}

.rrc-process.rrc-light .rrc-step-arrow {
  color: #2b8a0e;
}

.rrc-process.rrc-light .rrc-section-sub {
  color: var(--rrc-gray-500) !important;
}

.rrc-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.rrc-step {
  text-align: center;
  flex: 1;
  max-width: 280px;
}

.rrc-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rrc-green);
  color: var(--rrc-dark);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.rrc-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.rrc-step p {
  font-size: 0.9rem;
  color: var(--rrc-gray-400);
  line-height: 1.6;
}

.rrc-step-arrow {
  color: var(--rrc-green);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 14px;
  flex-shrink: 0;
}

/* ============================================
   FINAL CTA
   ============================================ */
.rrc-final-cta {
  padding: 80px 0;
  background: var(--rrc-green);
  text-align: center;
}

.rrc-final-cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--rrc-dark) !important;
}

.rrc-final-cta > .rrc-container > p {
  color: var(--rrc-gray-800) !important;
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.rrc-final-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.rrc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--rrc-radius-sm);
  transition: all var(--rrc-transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.rrc-btn-primary {
  background: var(--rrc-dark);
  color: var(--rrc-white);
}
.rrc-btn-primary:hover {
  background: var(--rrc-gray-800);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.rrc-btn-outline {
  background: transparent;
  color: var(--rrc-dark);
  border-color: rgba(0,0,0,0.2);
}
.rrc-btn-outline:hover {
  border-color: var(--rrc-dark);
  color: var(--rrc-dark);
}

.rrc-btn-lg { padding: 18px 36px; font-size: 1.1rem; }

.rrc-final-note {
  margin-top: 28px;
  font-size: 0.85rem;
  color: rgba(0,0,0,0.5);
}

/* ============================================
   FOOTER — Minimal
   ============================================ */
.rrc-footer {
  padding: 28px 0;
  background: var(--rrc-darker);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.rrc-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.rrc-footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.5;
}

.rrc-footer p {
  font-size: 0.78rem;
  color: var(--rrc-gray-500);
}

.rrc-footer a {
  color: var(--rrc-gray-500);
  text-decoration: none;
}
.rrc-footer a:hover { color: var(--rrc-gray-200); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .rrc-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .rrc-hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .rrc-hero-copy h1 {
    font-size: 2.2rem;
    text-align: center;
  }

  .rrc-hero-sub {
    text-align: center;
    max-width: none;
  }

  .rrc-trust-row {
    justify-content: center;
  }

  .rrc-form-card {
    max-width: 480px;
    margin: 0 auto;
  }

  .rrc-diff-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .rrc-proof-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .rrc-proof-reverse {
    direction: ltr;
  }

  .rrc-proof-content h2 {
    font-size: 1.7rem;
  }

  .rrc-steps {
    flex-direction: column;
    align-items: center;
  }

  .rrc-step-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  .rrc-section-title {
    font-size: 1.8rem;
  }

  .rrc-final-cta h2 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .rrc-container { padding: 0 16px; }

  .rrc-hero-copy h1 { font-size: 1.8rem; }

  .rrc-hero-sub { font-size: 1rem; }

  .rrc-form-card { padding: 28px 20px; }

  .rrc-trust-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .rrc-trust-bar-inner {
    gap: 20px;
  }

  .rrc-tb-divider { display: none; }

  .rrc-tb-item strong { font-size: 1.3rem; }

  .rrc-proof-image img { height: 280px; }

  .rrc-proof-content h2 { font-size: 1.5rem; }

  .rrc-final-cta h2 { font-size: 1.6rem; }

  .rrc-btn-lg { padding: 14px 24px; font-size: 1rem; }

  .rrc-final-buttons {
    flex-direction: column;
    align-items: center;
  }

  .rrc-header-phone span { display: none; }
}

/* ============================================
   ANIMATIONS — Subtle fade-in on scroll
   ============================================ */
.rrc-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.rrc-animate.rrc-visible {
  opacity: 1;
  transform: translateY(0);
}
