/*
Theme Name: template-template
Theme URI: https://template.1976.london
Author: Stuart Hunt
Description: Reusable one-page template for template builds
Version: 1.0
*/

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  background: #0c4ea3;
  /* Primary blue */
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
}

.rp-topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(8px);
  background: rgba(8, 44, 92, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.rp-topbar-inner {
  width: min(1200px, 96vw);
  margin: 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.rp-topbar-brand {
  color: #fff;
  text-decoration: none;
  font-family: "League Spartan", "Arial Black", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.rp-topbar-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.rp-topbar-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.09);
}

.rp-topbar-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

:root {
  --rp-panel-grad: linear-gradient(
    140deg,
    #0a4b8f 0%,
    #1367bf 60%,
    #2a86d9 100%
  );
  --rp-panel-border: 1px solid rgba(255, 255, 255, 0.28);
  --rp-panel-shadow: 0 14px 30px rgba(7, 39, 89, 0.28);
}

.rp-site-title-card {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto 1.2rem;
  background: var(--rp-panel-grad);
  border: var(--rp-panel-border);
  border-radius: 12px;
  padding: clamp(0.8rem, 1.5vw, 1.2rem) clamp(1rem, 2.2vw, 1.8rem);
  box-shadow: var(--rp-panel-shadow);
  position: relative;
  overflow: hidden;
}

.rp-site-title-card::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -35%;
  width: 28%;
  height: 160%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.32),
    rgba(255, 255, 255, 0)
  );
  transform: skewX(-20deg);
  pointer-events: none;
  animation: rp-title-sheen 1.2s ease-out 0.35s 1;
}

.rp-site-brand-row {
  position: relative;
  z-index: 2;
  margin-bottom: 0.4rem;
}

.rp-site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  font-family: "League Spartan", "Arial Black", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rp-site-logo:hover {
  background: rgba(255, 255, 255, 0.22);
}

.rp-site-title-main {
  margin: 0;
  font-family: "League Spartan", "Arial Black", sans-serif;
  font-size: clamp(2rem, 7vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: #fff;
  text-transform: uppercase;
  font-weight: 800;
}

.rp-site-title-main span {
  color: #1a1a1a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}

.rp-site-title-url {
  margin: 0.25rem 0 0;
  font-family: "Barlow Semi Condensed", Arial, sans-serif;
  font-size: clamp(1rem, 2.7vw, 2rem);
  line-height: 1;
  letter-spacing: 0.01em;
  font-weight: 700;
  color: #fff;
}

.rp-site-title-url::after {
  content: "";
  display: block;
  width: clamp(120px, 26vw, 300px);
  height: 3px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.4));
}

.rp-site-title-url span {
  color: #1a1a1a;
}

/* Main Container */
.rp-container {
  width: 96vw;
  margin: 2vh auto;
  background: rgba(255, 255, 255, 0.3);
  padding: 5%;
  border-radius: 8px;
}

/* Hero Card */
.rp-hero-card {
  background: var(--rp-panel-grad);
  border: var(--rp-panel-border);
  box-shadow: var(--rp-panel-shadow);
  padding: 5%;
  margin-bottom: 5%;
  border-radius: 12px;
  text-align: center;
}

/* Card Grid */
.rp-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5%;
}

/* Individual Cards */
.rp-card {
  background: var(--rp-panel-grad);
  border: var(--rp-panel-border);
  box-shadow: var(--rp-panel-shadow);
  padding: 10%;
  border-radius: 12px;
  min-height: 200px;
  overflow: hidden;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .rp-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .rp-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Card Sections */
.rp-card-top,
.rp-card-mid,
.rp-card-bottom {
  width: 100%;
}

/* Top and Middle are semi-transparent */
.rp-card-top,
.rp-card-mid {
  background: rgba(255, 255, 255, 0.3);
}

/* Bottom third is fully opaque */
.rp-card-bottom {
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  padding: 10%;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0 0 12px 12px;
}

.rp-card-bottom h3 {
  font-family: "League Spartan", "Arial Black", sans-serif;
  letter-spacing: 0.02em;
}

/* Lightbox Overlay */
.rp-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 37, 84, 0.78);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Lightbox Content (96% viewport frosted panel) */
.rp-lightbox-content {
  width: 96vw;
  height: 96vh;
  background: var(--rp-panel-grad);
  border-radius: 12px;
  padding: 2%;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 22px 48px rgba(15, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: rp-lightbox-pop 0.22s ease;
}

/* Lightbox Bottom Third (double frosty) */
.rp-lightbox-content .rp-bottom-third {
  background: rgba(255, 255, 255, 0.4);
  padding: 2%;
  border-radius: 0 0 12px 12px;
}

/* Close Button */
.rp-lightbox-close {
  position: absolute;
  top: 1%;
  right: 1%;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
}

.rp-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.46);
}

.rp-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rp-contact-content {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  padding: 1.2rem;
}

.rp-contact-intro {
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.rp-form-grid {
  display: grid;
  gap: 1rem;
}

.rp-form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rp-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rp-form-field label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rp-contact-form input,
.rp-contact-form select,
.rp-contact-form textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  font-size: 1rem;
}

.rp-contact-form input:focus,
.rp-contact-form select:focus,
.rp-contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.rp-contact-form button {
  margin-top: 0.5rem;
  padding: 0.95rem 1.2rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.rp-contact-form button:hover {
  background: #000;
  transform: translateY(-1px);
}

.rp-container {
  width: 96vw;
  max-width: 1200px;
  min-height: 96vh;
  margin: 20px auto;
  padding: 2rem 0 4rem 0;
  background: transparent;
}

.rp-hero-card {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

.rp-hero-subtitle {
  margin-bottom: 0.9rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rp-hero-actions {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.rp-hero-button {
  display: inline-block;
  text-decoration: none;
  background: #1a1a1a;
  color: #fff;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.rp-hero-button:hover {
  background: #000;
  transform: translateY(-1px);
}

.rp-hero-button-alt {
  background: rgba(255, 255, 255, 0.16);
}

.rp-hero-button-alt:hover {
  background: rgba(255, 255, 255, 0.26);
}

.rp-form-status {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
}

.rp-form-status-success {
  background: rgba(20, 120, 20, 0.85);
  color: #fff;
}

.rp-form-status-error {
  background: rgba(160, 20, 20, 0.9);
  color: #fff;
}

.rp-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1040px;
  margin: 2rem auto 0;
}

.rp-card {
  width: 45%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 600px) {
  .rp-card {
    width: 100%;
  }
}

.rp-card-placeholder.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.rp-card-placeholder.gallery div {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

.rp-card-placeholder.contact {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 2rem;
  opacity: 0.8;
}

.rp-card-content {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 140px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px 10px 0 0;
}

.rp-card-placeholder.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 100%;
  height: 120px;
}

.rp-card-placeholder.gallery div {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

.rp-card-thumb-grid {
  width: 100%;
  height: 120px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  opacity: 1;
  font-size: 0;
}

.rp-card-thumb {
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.rp-card-thumb.is-empty {
  background: rgba(255, 255, 255, 0.4);
}

.rp-card-placeholder.rp-card-single-thumb {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.rp-card-placeholder.rp-card-single-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.38) 100%
  );
}

.rp-card-placeholder.rp-card-single-thumb span {
  position: relative;
  z-index: 1;
}

.rp-card-placeholder.rp-card-single-thumb.is-empty {
  background: rgba(255, 255, 255, 0.25);
}

.rp-card-placeholder.contact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-size: 2rem;
  opacity: 0.8;
  gap: 0.5rem;
  text-align: center;
}

.rp-card-placeholder.faq,
.rp-card-placeholder.reviews {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.rp-card-bottom {
  margin-top: auto;
}

.rp-copy-block {
  width: 100%;
  max-width: 1040px;
  margin: 1.5rem auto 0;
  background: var(--rp-panel-grad);
  border: var(--rp-panel-border);
  box-shadow: var(--rp-panel-shadow);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
}

.rp-copy-block h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

.rp-copy-block p {
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.95);
}

.rp-reg-lookup-form {
  margin-top: 0.85rem;
}

.rp-reg-lookup-form label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.rp-reg-lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.rp-reg-lookup-row input {
  width: 100%;
  padding: 0.82rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  font-size: 1rem;
}

.rp-reg-lookup-row button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-weight: 700;
  padding: 0.78rem 1rem;
  cursor: pointer;
}

.rp-reg-lookup-row button:hover {
  background: #000;
}

.rp-reg-feedback {
  margin-top: 0.55rem;
  margin-bottom: 0;
  min-height: 1.2rem;
  font-size: 0.95rem;
}

.rp-checkatrade-cta {
  width: 100%;
  max-width: 1040px;
  margin: 1.75rem auto 0;
  text-align: center;
  background: var(--rp-panel-grad);
  border: var(--rp-panel-border);
  box-shadow: var(--rp-panel-shadow);
  border-radius: 14px;
  padding: 1.6rem 1.2rem;
}

.rp-checkatrade-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.2rem;
}

.rp-checkatrade-cta h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}

.rp-checkatrade-cta p {
  margin-bottom: 1rem;
}

.rp-checkatrade-button {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.rp-checkatrade-button:hover {
  background: #000;
}

.rp-reviews-content {
  max-width: 960px;
  margin: 0 auto;
}

.rp-reviews-summary {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.rp-reviews-rating {
  font-size: 1.15rem;
  font-weight: 700;
}

.rp-reviews-rating span {
  font-size: 0.95rem;
  font-weight: 400;
}

.rp-reviews-carousel-shell {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 1rem;
}

.rp-reviews-carousel-note {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.9rem;
}

.rp-reviews-fallback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.rp-review-item {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
}

.rp-review-item h3 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.rp-lightbox-content {
  max-width: 1200px;
  width: 96vw;
  margin: 0 auto;
}

.rp-lightbox-inner {
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  line-height: 1.6;
  padding: 2.5rem 1rem 1.25rem;
}

.rp-lightbox-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  font-family: "League Spartan", "Arial Black", sans-serif;
}

.rp-lightbox-inner p {
  margin-bottom: 0.9rem;
}

.rp-gallery-content {
  max-width: 980px;
  margin: 0 auto;
}

.rp-gallery-intro {
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.rp-gallery-shell {
  position: relative;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  padding: 0.9rem;
}

.rp-gallery-viewport {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  aspect-ratio: 4 / 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rp-gallery-viewport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.rp-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.rp-gallery-prev {
  left: 1.25rem;
}

.rp-gallery-next {
  right: 1.25rem;
}

.rp-gallery-meta {
  margin: 0.8rem 0 0.65rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.rp-gallery-meta p {
  margin: 0;
  font-weight: 700;
}

.rp-gallery-meta span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

.rp-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.55rem;
}

.rp-gallery-thumb {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: transparent;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.rp-gallery-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.rp-gallery-thumb.is-active {
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.rp-faq-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #fff;
}

.rp-faq-content p {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.rp-faq-content p + h3 {
  margin-top: 1.9rem;
}

.rp-site-footer {
  position: fixed;
  bottom: 1.2rem;
  z-index: 1000;
}

.rp-site-footer-left {
  left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rp-site-footer-right {
  right: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.rp-github-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
  transition: all 0.24s ease;
}

.rp-github-link:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.rp-github-icon {
  width: 26px;
  height: 26px;
}

.rp-theme-toggle {
  width: 52px;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: #0c4ea3;
  color: #fff;
  font-family: "League Spartan", "Arial Black", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  box-shadow: 0 8px 18px rgba(5, 36, 82, 0.3);
}

.rp-theme-toggle:hover {
  transform: translateY(-2px);
  background: #1d78d1;
}

.rp-theme-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

body.rp-theme-white {
  background: #ffffff;
  color: #1f2f45;
}

body.rp-theme-white .rp-site-title-card,
body.rp-theme-white .rp-hero-card,
body.rp-theme-white .rp-card,
body.rp-theme-white .rp-copy-block,
body.rp-theme-white .rp-checkatrade-cta,
body.rp-theme-white .rp-lightbox-content {
  background: linear-gradient(140deg, #ffffff 0%, #f8fbff 56%, #eef4ff 100%);
  border: 1px solid rgba(39, 78, 128, 0.2);
  box-shadow: 0 14px 30px rgba(24, 47, 80, 0.12);
}

body.rp-theme-white .rp-site-title-main,
body.rp-theme-white .rp-hero-card h1,
body.rp-theme-white .rp-card-bottom h3,
body.rp-theme-white .rp-copy-block h2,
body.rp-theme-white .rp-checkatrade-cta h2,
body.rp-theme-white .rp-lightbox-inner h2 {
  color: #1a2e4a;
}

body.rp-theme-white .rp-site-title-main span,
body.rp-theme-white .rp-site-title-url span {
  color: #245ea8;
}

body.rp-theme-white .rp-site-title-url,
body.rp-theme-white .rp-hero-card p,
body.rp-theme-white .rp-copy-block p,
body.rp-theme-white .rp-checkatrade-cta p,
body.rp-theme-white .rp-card-bottom p,
body.rp-theme-white .rp-gallery-intro,
body.rp-theme-white .rp-lightbox-inner,
body.rp-theme-white .rp-gallery-meta span,
body.rp-theme-white .rp-faq-content p {
  color: #324a68;
}

body.rp-theme-white .rp-card-content {
  background: rgba(36, 94, 168, 0.06);
}

body.rp-theme-white .rp-card-bottom {
  background: rgba(36, 94, 168, 0.09);
  border-top: 1px solid rgba(36, 94, 168, 0.2);
}

body.rp-theme-white .rp-lightbox {
  background: rgba(244, 248, 255, 0.94);
}

body.rp-theme-white .rp-contact-content,
body.rp-theme-white .rp-gallery-shell,
body.rp-theme-white .rp-gallery-viewport,
body.rp-theme-white .rp-reviews-summary,
body.rp-theme-white .rp-reviews-carousel-shell,
body.rp-theme-white .rp-faq-content p {
  background: rgba(36, 94, 168, 0.07);
  border: 1px solid rgba(36, 94, 168, 0.18);
}

body.rp-theme-white .rp-review-item {
  background: #fff;
  color: #16283f;
}

body.rp-theme-white .rp-gallery-nav {
  background: rgba(36, 94, 168, 0.9);
  border-color: rgba(36, 94, 168, 0.9);
  color: #fff;
}

body.rp-theme-white .rp-gallery-thumb {
  border-color: rgba(36, 94, 168, 0.2);
}

body.rp-theme-white .rp-gallery-thumb.is-active {
  border-color: rgba(36, 94, 168, 0.72);
}

body.rp-theme-white .rp-github-link,
body.rp-theme-white .rp-social-link {
  background: rgba(36, 94, 168, 0.1);
  border: 1px solid rgba(36, 94, 168, 0.3);
  color: #1f4f8d;
}

body.rp-theme-white .rp-github-link:hover,
body.rp-theme-white .rp-social-link:hover {
  background: rgba(36, 94, 168, 0.16);
  border-color: rgba(36, 94, 168, 0.52);
}

.rp-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
  transition: all 0.24s ease;
}

.rp-social-link:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.rp-social-icon {
  width: 26px;
  height: 26px;
}

.rp-page-shell {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  background: var(--rp-panel-grad);
  border: var(--rp-panel-border);
  box-shadow: var(--rp-panel-shadow);
  border-radius: 12px;
  padding: 1.5rem;
}

.rp-page-title {
  margin: 0 0 0.8rem;
  font-family: "League Spartan", "Arial Black", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.rp-page-actions {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 0.95rem;
}

.rp-page-back,
.rp-page-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 0.36rem 0.72rem;
}

.rp-page-back:hover,
.rp-page-home:hover {
  background: rgba(255, 255, 255, 0.2);
}

.rp-page-content {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
}

.rp-page-content h2 {
  margin: 1rem 0 0.45rem;
}

.rp-page-content ul {
  padding-left: 1.2rem;
}

.rp-page-content li + li {
  margin-top: 0.3rem;
}

.rp-signin-test-form {
  margin-top: 1rem;
}

.rp-signin-note {
  margin: 0.55rem 0 0;
  opacity: 0.9;
}

.rp-seo-tool {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.18);
}

.rp-seo-tool h2 {
  margin: 0 0 0.55rem;
}

.rp-seo-tool-form {
  margin-top: 0.75rem;
}

.rp-seo-tool-form button {
  margin-top: 0.7rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #1a1a1a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.rp-seo-tool-form button:hover {
  background: #000;
}

.rp-seo-output {
  margin-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.9rem;
}

.rp-seo-output p {
  margin: 0 0 0.45rem;
}

.rp-seo-keywords-wrap {
  margin-top: 0.45rem;
}

.rp-seo-keywords {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rp-seo-keyword-chip {
  display: inline-flex;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

body.rp-theme-white .rp-site-logo {
  border-color: rgba(39, 78, 128, 0.25);
  background: rgba(36, 94, 168, 0.08);
  color: #1f4f8d;
  box-shadow: inset 0 0 0 1px rgba(36, 94, 168, 0.12);
}

body.rp-theme-white .rp-topbar {
  background: rgba(248, 251, 255, 0.82);
  border-bottom-color: rgba(36, 94, 168, 0.2);
}

body.rp-theme-white .rp-topbar-brand,
body.rp-theme-white .rp-topbar-link,
body.rp-theme-white .rp-page-back,
body.rp-theme-white .rp-page-home {
  color: #1f4f8d;
}

body.rp-theme-white .rp-topbar-link,
body.rp-theme-white .rp-page-back,
body.rp-theme-white .rp-page-home {
  border-color: rgba(36, 94, 168, 0.3);
  background: rgba(36, 94, 168, 0.1);
}

body.rp-theme-white .rp-topbar-link:hover,
body.rp-theme-white .rp-page-back:hover,
body.rp-theme-white .rp-page-home:hover {
  background: rgba(36, 94, 168, 0.18);
}

body.rp-theme-white .rp-reg-lookup-row button {
  background: #245ea8;
}

body.rp-theme-white .rp-reg-lookup-row button:hover {
  background: #1f4f8d;
}

body.rp-theme-white .rp-page-content,
body.rp-theme-white .rp-reg-feedback {
  color: #324a68;
}

body.rp-theme-white .rp-seo-tool {
  border-color: rgba(36, 94, 168, 0.24);
  background: rgba(36, 94, 168, 0.06);
}

body.rp-theme-white .rp-seo-output {
  border-top-color: rgba(36, 94, 168, 0.2);
}

body.rp-theme-white .rp-seo-tool-form button {
  background: #245ea8;
}

body.rp-theme-white .rp-seo-tool-form button:hover {
  background: #1f4f8d;
}

body.rp-theme-white .rp-seo-keyword-chip {
  border-color: rgba(36, 94, 168, 0.3);
  background: rgba(36, 94, 168, 0.1);
}

@keyframes rp-lightbox-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rp-title-sheen {
  from {
    left: -35%;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  to {
    left: 120%;
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .rp-topbar-inner {
    min-height: 52px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 0.45rem 0;
  }

  .rp-topbar-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .rp-topbar-link {
    font-size: 0.84rem;
  }

  .rp-container {
    padding: 1rem 0 3rem;
  }

  .rp-site-title-card {
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
  }

  .rp-card-grid {
    gap: 1rem;
    margin-top: 1.2rem;
  }

  .rp-card {
    padding: 6%;
  }

  .rp-reg-lookup-row {
    grid-template-columns: 1fr;
  }

  .rp-hero-card {
    padding: 1.2rem;
  }

  .rp-lightbox-content {
    width: 98vw;
    height: 98vh;
    padding: 0.75rem;
  }

  .rp-lightbox {
    background: rgba(7, 44, 96, 0.9);
  }

  .rp-lightbox-inner {
    padding: 2.75rem 0.25rem 1rem;
  }

  .rp-gallery-shell {
    padding: 0.65rem;
  }

  .rp-gallery-viewport {
    aspect-ratio: 4 / 3;
  }

  .rp-gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }

  .rp-gallery-prev {
    left: 0.55rem;
  }

  .rp-gallery-next {
    right: 0.55rem;
  }

  .rp-gallery-meta {
    justify-content: flex-end;
    align-items: center;
    gap: 0;
  }

  .rp-gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rp-faq-content p {
    padding: 0.8rem 0.85rem;
  }

  .rp-form-grid-2 {
    grid-template-columns: 1fr;
  }

  .rp-copy-block,
  .rp-checkatrade-cta {
    padding: 1rem;
  }

  .rp-reviews-fallback-grid {
    grid-template-columns: 1fr;
  }
}
