/* ============================================
   Riley's Roofing — Complete Responsive CSS
   Fixed: Hero gap + Topbar mobile + Footer
   ============================================ */

:root {
  --rr-green: #93c912;
  --rr-green-dark: #6fa100;
  --rr-black: #050607;
  --rr-charcoal: #111417;
  --rr-gray: #f4f4f4;
  --rr-text: #ffffff;
  --rr-muted: #d9d9d9;
  --rr-border: #d9d9d9;
  --rr-max: 1180px;
  --rr-font-head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --rr-font-body: 'Inter', 'Roboto', Arial, sans-serif;
}

/* Reset */
.rr-page * { box-sizing: border-box; margin: 0; padding: 0; }
.rr-page { font-family: var(--rr-font-body); color: #111; background: #fff; line-height: 1.4; width: 100%; overflow-x: hidden; }
.rr-page a { text-decoration: none; }
.rr-container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ── TOP BAR ── */
.rr-topbar { background: var(--rr-green); color: #050607; text-transform: uppercase; font-weight: 900; font-size: 12px; letter-spacing: .4px; }
.rr-topbar-inner { height: 36px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.rr-topbar a { color: #050607; text-decoration: none; font-weight: 900; }

/* ── HEADER ── */
.rr-header { background: #050607; border-bottom: 1px solid rgba(255,255,255,.12); position: sticky; top: 0; z-index: 100; }
.rr-header-inner { height: 82px; display: flex; align-items: center; gap: 20px; }
.rr-logo img { width: 150px; height: auto; display: block; }
.rr-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; white-space: nowrap; flex-wrap: nowrap; }
.rr-nav a { color: #fff; text-decoration: none; text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
.rr-nav a:hover { color: var(--rr-green); }
.rr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 5px; text-decoration: none; text-transform: uppercase; font-weight: 900; letter-spacing: .3px; min-height: 44px; padding: 0 22px; transition: .2s ease; font-size: 12px; cursor: pointer; border: none; }
.rr-btn-primary { background: linear-gradient(#a6dc1d, #75ad07); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.rr-btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.rr-btn-outline { color: #fff; border: 2px solid rgba(255,255,255,.78); background: rgba(0,0,0,.3); }
.rr-header-cta { white-space: nowrap; font-size: 12px; padding: 0 18px; }
.rr-menu-toggle { display: none; background: none; color: #fff; border: 0; font-size: 28px; cursor: pointer; }

/* ── HERO ── */
.rr-hero { position: relative; min-height: 480px; background: #07090b; overflow: hidden; }
.rr-hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.82) 38%, rgba(0,0,0,.28) 63%, rgba(0,0,0,.05) 100%),
    url('https://cms-staginglink3.com/riley-roofing/v1/wp-content/themes/twentytwentyfive/assets/images/hero-roof-house.jpeg') center bottom/cover no-repeat;
}
/* ✅ FIX: gap badha diya taake text aur form chipkein na */
.rr-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
  min-height: 480px;
  padding: 48px 0;
}
.rr-eyebrow, .rr-section-kicker { text-transform: uppercase; color: var(--rr-green); font-weight: 900; letter-spacing: .6px; font-size: 13px; }
.rr-hero h1 { font-family: var(--rr-font-head); font-size: 52px; line-height: .96; margin: 8px 0 16px; color: #fff; text-transform: uppercase; letter-spacing: -1px; }
.rr-hero h1 span { color: var(--rr-green); }
.rr-hero-text { color: #ccc; font-size: 16px; max-width: 480px; line-height: 1.5; }
.rr-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0 14px; }
.rr-trust-line { color: #fff; font-size: 13px; }

/* ── LEAD CARD ── */
.rr-lead-card { background: #050607; border: 2px solid var(--rr-green); box-shadow: 0 8px 25px rgba(0,0,0,.45); padding: 22px 20px; width: 100%; max-width: 400px; margin-left: auto; text-align: center; box-sizing: border-box; overflow: hidden; }
.rr-lead-card h2 { font-family: var(--rr-font-head); font-size: 26px; line-height: 1.05; margin: 0; color: #fff; text-transform: uppercase; }
.rr-lead-card h2 span { color: var(--rr-green); }
.rr-lead-card > p { margin: 6px 0 14px; color: #fff; font-weight: 800; font-size: 14px; }
.rr-lead-card input,
.rr-lead-card select,
.rr-form input,
.rr-form select { width: 100%; height: 42px; margin-bottom: 8px; border: 0; border-radius: 3px; padding: 0 13px; font-size: 13px; background: #fff; box-sizing: border-box; font-family: var(--rr-font-body); }
.rr-lead-card input[type=submit],
.rr-lead-card button,
.rr-form button { width: 100%; height: 50px; border: 0; border-radius: 4px; background: linear-gradient(#a6dc1d, #75ad07); color: #fff; text-transform: uppercase; font-weight: 900; font-size: 14px; cursor: pointer; box-sizing: border-box; letter-spacing: .3px; }
.rr-lead-card small { display: block; margin-top: 8px; color: #aaa; font-size: 11px; }

/* ── PROOF STRIP ── */
.rr-proof-strip { background: #fff; border-bottom: 1px solid #ddd; }
.rr-proof-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.rr-proof { min-height: 90px; padding: 18px 14px; text-align: center; border-right: 1px solid #ddd; }
.rr-proof:last-child { border-right: 0; }
.rr-proof span { display: block; color: var(--rr-green); font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.rr-proof strong { display: block; text-transform: uppercase; font-weight: 900; font-size: 12px; margin-bottom: 2px; }
.rr-proof p { font-size: 11px; margin: 3px auto 0; max-width: 160px; color: #555; }

/* ── DARK SECTION / SERVICES ── */
.rr-dark-section { background: linear-gradient(#11161a, #080a0c); color: #fff; }
.rr-services-section { padding: 32px 0 40px; }
.rr-section-kicker { text-align: center; margin: 0 0 4px; font-size: 12px; }
.rr-services-section h2,
.rr-process-section h2 { font-family: var(--rr-font-head); text-align: center; text-transform: uppercase; font-size: 28px; line-height: 1; margin: 0 0 24px; letter-spacing: .3px; }

/* Services Grid */
.rr-services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.rr-service-card { position: relative; background: #fff; color: #111; border: 1px solid #d2d2d2; border-radius: 6px; overflow: hidden; }
.rr-service-card img { width: 100%; height: 110px; object-fit: cover; display: block; }
.rr-service-icon { position: absolute; top: 82px; left: 14px; width: 44px; height: 44px; border-radius: 999px; background: var(--rr-green); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 18px; border: 4px solid #fff; }
.rr-service-card h3 { margin: 36px 12px 5px; text-transform: uppercase; font-weight: 900; font-size: 14px; }
.rr-service-card p { margin: 0 12px 10px; font-size: 12px; min-height: 48px; line-height: 1.4; color: #444; }
.rr-service-card a { display: block; margin: 0 12px 14px; color: var(--rr-green-dark); text-transform: uppercase; font-weight: 900; font-size: 11px; }

/* ── REVIEWS + PROJECTS ── */
.rr-reviews-projects { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; border-top: 1px solid rgba(255,255,255,.2); margin-top: 30px; padding-top: 24px; }
.align-left { text-align: left !important; }
.rr-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rr-review-grid blockquote { background: #f6f6f6; color: #111; border-radius: 6px; margin: 0; padding: 12px; font-size: 11px; line-height: 1.4; }
.rr-review-grid div { color: var(--rr-green); font-weight: 900; font-size: 18px !important; letter-spacing: 2px; }
.rr-review-grid span { float: right; color: #b5b5b5; font-size: 13px !important; letter-spacing: 0; }
.rr-review-grid p { margin: 6px 0; }
.rr-review-grid cite { font-style: normal; font-weight: 900; font-size: 11px; }
.rr-google-link { color: #93c912 !important; text-transform: uppercase; text-decoration: none; font-weight: 900; font-size: 12px; display: inline-block; margin-top: 14px; }
.rr-project-link { color: #fff; text-transform: uppercase; text-decoration: none; font-weight: 900; font-size: 11px; display: inline-block; margin-top: 14px; }

/* Project Card */
.rr-project-card { position: relative; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; overflow: hidden; height: 180px; }
.rr-project-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rr-before, .rr-after { position: absolute; bottom: 10px; background: var(--rr-green); color: #050607; text-transform: uppercase; font-weight: 900; padding: 4px 8px; border-radius: 3px; font-size: 10px; }
.rr-before { left: 10px; }
.rr-after { right: 10px; }
.rr-slider-control { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 999px; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; }

/* ── PROCESS ── */
.rr-process-section { background: #fff; padding: 28px 0; }
.rr-process-section h2 { color: #111; position: relative; }
.rr-process-section h2 span { color: var(--rr-green); }
.rr-process-section h2::before,
.rr-process-section h2::after { content: ""; position: absolute; top: 50%; width: 18%; border-top: 3px dashed var(--rr-green); }
.rr-process-section h2::before { left: 0; }
.rr-process-section h2::after { right: 0; }
.rr-process-grid { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr; align-items: center; gap: 8px; }
.rr-step { display: grid; grid-template-columns: 66px 22px 1fr; column-gap: 8px; align-items: center; }
.rr-step-icon { grid-row: 1/3; width: 60px; height: 60px; border-radius: 999px; border: 4px solid #111; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.rr-step b { width: 22px; height: 22px; border-radius: 999px; background: var(--rr-green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.rr-step h3 { margin: 0; text-transform: uppercase; font-size: 13px; font-weight: 900; }
.rr-step p { grid-column: 3; margin: 2px 0 0; font-size: 11px; color: #555; }
.rr-arrow { text-align: center; font-weight: 900; font-size: 18px; color: #999; }

/* ── CALLOUT BAND ── */
.rr-callout-band { background: #fff; padding: 0 0 16px; }
.rr-callout-grid { display: grid; grid-template-columns: 1fr 1fr; }
.rr-callout { display: flex; align-items: center; gap: 18px; padding: 20px 26px; color: #fff; min-height: 90px; }
.rr-callout span { font-size: 40px; border: 4px solid rgba(255,255,255,.85); border-radius: 999px; width: 68px; height: 68px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.rr-callout h2 { font-family: var(--rr-font-head); text-transform: uppercase; font-size: 24px; margin: 0; text-align: left; }
.rr-callout p { margin: 3px 0 0; font-size: 13px; }
.rr-callout-green { background: linear-gradient(90deg, #88c00d, #a5dc1b); border-radius: 8px 0 0 8px; }
.rr-callout-dark { background: #090b0d; border-radius: 0 8px 8px 0; }

/* ================================================
   TABLET — max 1024px
   ================================================ */
@media (max-width: 1024px) {
  .rr-container { padding: 0 24px; }
  .rr-hero-grid { grid-template-columns: 1fr 360px !important; gap: 32px !important; }
  .rr-hero h1 { font-size: 40px; }
}

/* ================================================
   MOBILE — max 768px
   ================================================ */
@media (max-width: 768px) {
  .rr-container { padding: 0 16px; }

  /* ✅ Topbar — SARI 3 lines dikhao, column mein */
  .rr-topbar-inner {
    height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6px 16px;
    gap: 3px;
    font-size: 10px;
    text-align: center;
  }
  .rr-top-phone { font-size: 13px; font-weight: 900; }

  /* Header */
  .rr-header-inner { height: auto; min-height: 64px; flex-wrap: wrap; padding: 10px 0; }
  .rr-logo img { width: 120px; }
  .rr-menu-toggle { display: block; margin-left: auto; }
  .rr-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0 16px;
    margin: 0;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .rr-nav.is-open { display: flex; }
  .rr-nav a { padding: 10px 0; font-size: 13px; width: 100%; border-bottom: 1px solid rgba(255,255,255,.06); }
  .rr-header-cta { display: none; }

  /* Hero — stack vertically */
  .rr-hero { min-height: auto; }
  .rr-hero-bg {
    background:
      linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.70) 100%),
      url('https://cms-staginglink3.com/riley-roofing/v1/wp-content/themes/twentytwentyfive/assets/images/hero-roof-house.jpeg') center bottom/cover no-repeat;
  }
  .rr-hero-grid { grid-template-columns: 1fr !important; gap: 28px !important; padding: 36px 0 40px !important; min-height: auto !important; }
  .rr-hero h1 { font-size: 34px; letter-spacing: -.5px; }
  .rr-hero-text { font-size: 14px; max-width: 100%; }
  .rr-hero-actions { flex-direction: column; gap: 10px; }
  .rr-hero-actions .rr-btn { width: 100%; justify-content: center; }
  .rr-lead-card { max-width: 100%; margin: 0; }

  /* Proof */
  .rr-proof-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .rr-proof { border-right: 0 !important; border-bottom: 1px solid #ddd; }
  .rr-proof:nth-child(odd) { border-right: 1px solid #ddd !important; }
  .rr-proof:last-child { grid-column: span 2; border-bottom: 0; }

  /* Services */
  .rr-services-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Reviews + Projects */
  .rr-reviews-projects { grid-template-columns: 1fr !important; }
  .rr-review-grid { grid-template-columns: 1fr !important; }

  /* Process */
  .rr-process-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .rr-arrow { display: none; }
  .rr-process-section h2::before,
  .rr-process-section h2::after { display: none; }
  .rr-step { margin-bottom: 14px; }

  /* Callout */
  .rr-callout-grid { grid-template-columns: 1fr !important; gap: 10px; padding: 0 16px 16px; }
  .rr-callout-green { border-radius: 8px; }
  .rr-callout-dark { border-radius: 8px; }
  .rr-callout { padding: 18px; }
  .rr-callout span { width: 56px; height: 56px; font-size: 30px; }
  .rr-callout h2 { font-size: 20px; }

  /* Footer */
  footer > div:first-child { padding: 24px 16px 16px !important; }
  footer > div:first-child > div:first-child { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  footer > div:first-child > div:first-child > div:first-child { grid-column: span 2; }
}

/* ================================================
   SMALL MOBILE — max 480px
   ================================================ */
@media (max-width: 480px) {
  .rr-container { padding: 0 14px; }

  /* Hero */
  .rr-hero h1 { font-size: 28px; }
  .rr-eyebrow { font-size: 11px; }
  .rr-hero-text { font-size: 13px; }
  .rr-lead-card { padding: 18px 14px; }
  .rr-lead-card h2 { font-size: 20px; }

  /* Services 1 col */
  .rr-services-grid { grid-template-columns: 1fr !important; }

  /* Proof 1 col */
  .rr-proof-grid { grid-template-columns: 1fr !important; }
  .rr-proof:nth-child(odd) { border-right: 0 !important; }
  .rr-proof:last-child { grid-column: span 1 !important; }
  .rr-proof { border-right: 0 !important; border-bottom: 1px solid #ddd; }

  /* Callout */
  .rr-callout { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rr-callout span { width: 48px; height: 48px; font-size: 24px; border-width: 3px; }
  .rr-callout h2 { font-size: 18px; }
  .rr-callout p { font-size: 12px; }

  /* Footer single column */
  footer > div:first-child > div:first-child { grid-template-columns: 1fr !important; }
  footer > div:first-child > div:first-child > div:first-child { grid-column: span 1 !important; }
  footer > div:first-child { padding: 20px 14px 14px !important; }
}

/* ================================================
   iPhone SE — 375px
   ================================================ */
@media (max-width: 375px) {
  .rr-hero h1 { font-size: 24px; }
  .rr-lead-card h2 { font-size: 18px; }
  .rr-form input, .rr-form select { height: 40px; font-size: 12px; }
  .rr-form button { height: 46px; font-size: 13px; }
  .rr-topbar-inner { font-size: 9px; }
  .rr-top-phone { font-size: 12px; }
}