/* Riverside Plumbing & Repairs — standalone demo */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Source+Serif+4:ital,opsz,wght@0,8..60,600;0,8..60,700&display=swap");

:root {
  --rp-blue: #1e5a8e;
  --rp-blue-dark: #164a73;
  --rp-blue-light: #e8f1f8;
  --rp-grey-50: #f7f9fb;
  --rp-grey-100: #eef2f6;
  --rp-grey-200: #dce3eb;
  --rp-grey-600: #5c6b7a;
  --rp-grey-800: #2d3740;
  --rp-white: #ffffff;
  --rp-shadow: 0 4px 24px rgba(30, 90, 142, 0.08);
  --rp-radius: 10px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--rp-grey-800);
  background: var(--rp-white);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}

.rp-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .rp-container { padding: 0 1.75rem; }
}

/* Header */
.rp-header {
  background: var(--rp-white);
  border-bottom: 1px solid var(--rp-grey-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.rp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.rp-logo {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rp-blue);
  text-decoration: none;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .rp-logo { font-size: 1.2rem; }
}

.rp-nav-phone {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--rp-blue);
  text-decoration: none;
  white-space: nowrap;
}

.rp-nav-phone:hover { text-decoration: underline; }

/* Hero */
.rp-hero {
  background: linear-gradient(180deg, var(--rp-blue-light) 0%, var(--rp-white) 100%);
  padding: 2rem 0 2.5rem;
}

@media (min-width: 768px) {
  .rp-hero { padding: 2.5rem 0 3rem; }
}

.rp-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .rp-hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
  }
}

.rp-hero-copy h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.65rem, 3.8vw, 2.45rem);
  line-height: 1.18;
  color: var(--rp-grey-800);
  margin: 0 0 1rem;
}

.rp-hero-sub {
  font-size: 1.05rem;
  color: var(--rp-grey-600);
  margin: 0 0 1.5rem;
  max-width: 38ch;
}

.rp-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rp-hero-image-wrap {
  border-radius: var(--rp-radius);
  overflow: hidden;
  box-shadow: var(--rp-shadow);
  border: 1px solid var(--rp-grey-200);
}

.rp-hero-image-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Trust */
.rp-trust {
  background: var(--rp-grey-50);
  border-top: 1px solid var(--rp-grey-200);
  border-bottom: 1px solid var(--rp-grey-200);
  padding: 1.5rem 0;
}

.rp-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .rp-trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.rp-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
}

.rp-trust-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--rp-white);
  border: 1px solid var(--rp-grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rp-blue);
}

.rp-trust-item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rp-grey-800);
}

.rp-trust-item span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--rp-grey-600);
  margin-top: 0.15rem;
  line-height: 1.4;
}

/* Buttons */
.rp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.rp-btn-primary {
  background: var(--rp-blue);
  color: var(--rp-white);
  box-shadow: var(--rp-shadow);
}

.rp-btn-primary:hover { background: var(--rp-blue-dark); }

.rp-btn-outline {
  background: var(--rp-white);
  color: var(--rp-blue);
  border: 2px solid var(--rp-blue);
}

.rp-btn-outline:hover { background: var(--rp-blue-light); }

/* Sections */
/* Full-width “on the job” visual */
.rp-standout {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rp-grey-200);
  border-bottom: 1px solid var(--rp-grey-200);
}

.rp-standout img {
  width: 100%;
  max-height: min(52vh, 420px);
  object-fit: cover;
  aspect-ratio: 21 / 9;
}

@media (max-width: 640px) {
  .rp-standout img {
    max-height: 280px;
    aspect-ratio: 16 / 9;
  }
}

/* Full-width image + caption */
.rp-caption-visual {
  margin: 0;
  padding: 2rem 0 0;
  background: var(--rp-grey-50);
  border-bottom: 1px solid var(--rp-grey-200);
}

.rp-caption-visual-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.rp-caption-visual-img {
  overflow: hidden;
  border-radius: 0 0 var(--rp-radius) var(--rp-radius);
}

@media (min-width: 768px) {
  .rp-caption-visual-inner {
    padding: 0 1.75rem;
  }

  .rp-caption-visual-img {
    border-radius: var(--rp-radius);
    box-shadow: var(--rp-shadow);
  }
}

.rp-caption-visual-img img {
  width: 100%;
  max-height: min(48vh, 400px);
  object-fit: cover;
  aspect-ratio: 16 / 9;
  display: block;
}

.rp-caption-visual-text {
  margin: 0;
  padding: 1.25rem 1.25rem 2rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--rp-grey-800);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.45;
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .rp-caption-visual-text {
    padding: 1.5rem 1.75rem 2.5rem;
    font-size: 1.125rem;
  }
}

.rp-section { padding: 2.75rem 0; }

@media (min-width: 768px) {
  .rp-section { padding: 3.5rem 0; }
}

.rp-section-alt { background: var(--rp-grey-50); }

.rp-section h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 700;
  color: var(--rp-grey-800);
  margin: 0 0 0.5rem;
}

.rp-section-intro {
  color: var(--rp-grey-600);
  margin: 0 0 1.75rem;
  max-width: 52ch;
}

/* Services with images */
.rp-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .rp-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .rp-services-grid { grid-template-columns: repeat(3, 1fr); }
}

.rp-service-card {
  background: var(--rp-white);
  border: 1px solid var(--rp-grey-200);
  border-radius: var(--rp-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.rp-service-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.rp-service-card-body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.rp-service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--rp-grey-800);
}

.rp-service-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--rp-grey-600);
  line-height: 1.5;
}

/* About split */
.rp-about-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .rp-about-split {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.rp-about-image {
  border-radius: var(--rp-radius);
  overflow: hidden;
  border: 1px solid var(--rp-grey-200);
  box-shadow: var(--rp-shadow);
}

.rp-about-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.rp-about-text p {
  margin: 0 0 1rem;
  color: var(--rp-grey-600);
}

.rp-about-text p:last-child { margin-bottom: 0; }

/* Reviews */
.rp-reviews-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .rp-reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

.rp-review-card {
  background: var(--rp-white);
  border: 1px solid var(--rp-grey-200);
  border-radius: var(--rp-radius);
  padding: 1.35rem;
}

.rp-review-stars {
  color: #c9a227;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.rp-review-text {
  font-size: 0.95rem;
  color: var(--rp-grey-800);
  font-style: italic;
  margin: 0 0 1rem;
  line-height: 1.55;
}

.rp-review-meta {
  font-size: 0.8rem;
  color: var(--rp-grey-600);
}

/* Form */
.rp-form-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.rp-form {
  background: var(--rp-white);
  border: 1px solid var(--rp-grey-200);
  border-radius: var(--rp-radius);
  padding: 1.75rem;
  box-shadow: var(--rp-shadow);
}

.rp-field { margin-bottom: 1rem; }

.rp-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rp-grey-800);
  margin-bottom: 0.35rem;
}

.rp-field input,
.rp-field textarea,
.rp-field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--rp-grey-200);
  border-radius: 6px;
  background: var(--rp-grey-50);
}

.rp-field input:focus,
.rp-field textarea:focus,
.rp-field select:focus {
  outline: 2px solid var(--rp-blue);
  outline-offset: 1px;
  border-color: var(--rp-blue);
  background: var(--rp-white);
}

.rp-field textarea {
  min-height: 120px;
  resize: vertical;
}

.rp-form-note {
  font-size: 0.8rem;
  color: var(--rp-grey-600);
  margin-top: 1rem;
}

/* Footer */
.rp-footer-main {
  background: var(--rp-grey-800);
  color: #e2e8f0;
  padding: 2.5rem 0 2rem;
}

.rp-footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .rp-footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
}

.rp-footer-main h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rp-white);
  margin: 0 0 0.75rem;
}

.rp-footer-main p,
.rp-footer-main li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #b8c5d1;
  margin: 0;
}

.rp-footer-main ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rp-footer-main li { margin-bottom: 0.4rem; }

.rp-footer-main a {
  color: #e8f1f8;
  text-decoration: none;
}

.rp-footer-main a:hover { text-decoration: underline; }

.rp-demo-strip {
  background: var(--rp-grey-100);
  border-top: 1px solid var(--rp-grey-200);
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--rp-grey-600);
}

.rp-demo-strip a {
  color: var(--rp-blue);
  font-weight: 500;
  text-decoration: none;
}

.rp-demo-strip a:hover { text-decoration: underline; }

.rp-demo-strip .rp-sep {
  margin: 0 0.5rem;
  color: var(--rp-grey-200);
}

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