/* Roofing Southampton – page-only override to match approved mock */
.rs-main{
  color:#1b1f24;
}

.rs-main, 
.rs-main *{
  box-sizing:border-box;
}

.rs-container{
  width:min(1120px, calc(100% - 2rem));
  margin:0 auto;
}

/* Header – match mock (transparent over hero, white nav) */
header.fade-in{
  background: transparent !important;
}
header.fade-in .top-bar,
header.fade-in .header-main{
  background: transparent !important;
}
header.fade-in nav a{
  color:#fff !important;
}
header.fade-in .header-contact-icons a{
  color:#fff !important;
}
header.fade-in .header-icon-svg{
  stroke:#fff !important;
  fill:none;
}

/* When scrolled, force the header to the same solid colour as the homepage header */
header.header-scrolled,
header.header-scrolled .top-bar,
header.header-scrolled .header-main{
  background: var(--accent-color-1) !important;
  background-color: var(--accent-color-1) !important;
}

/* HERO */
.rs-hero{
  position:relative;
  min-height: 640px;
  padding: calc(var(--header-height) + 3rem) 0 3rem;
  background:
    linear-gradient(90deg, rgba(11,20,23,.86) 0%, rgba(11,20,23,.62) 52%, rgba(11,20,23,.35) 100%),
    linear-gradient(180deg, rgba(11,20,23,.52) 0%, rgba(11,20,23,.18) 60%, rgba(0,0,0,0) 100%),
    url("../media/images/service-10.webp");
  background-size: cover;
  background-position: center right;
}



/* Hero content vertical centring (applies to all service pages using page-roofing-southampton) */
.rs-hero{
  display:flex;
  align-items:center;
  padding: calc(var(--header-height) + 1.5rem) 0 2.5rem;
}

@media (max-width: 640px){
  .rs-hero{
    min-height: 560px;
    padding: calc(var(--header-height) + 1.25rem) 0 2rem;
  }
}

.rs-wrap{
  width:min(1120px, calc(100% - 2rem));
  margin:0 auto;
  max-width: 760px;
}

.rs-h1{
  margin:0 0 .9rem;
  color:#fff;
  text-transform:uppercase;
  letter-spacing:-.02em;
  line-height:1.02;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
}

.rs-lead{
  margin:0 0 1.25rem;
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  line-height:1.6;
  max-width: 60ch;
}

.rs-actions{
  display:flex;
  gap:.9rem;
  flex-wrap:wrap;
  margin:0 0 1.25rem;
}

.rs-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55em;
  padding:.75em 1.5em;
  font-family:var(--paragraph-font);
  font-size:.95rem;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  text-decoration:none !important;
  border-radius:6px;
  box-shadow:0 1px 2px rgba(0,0,0,.08);
  transition:background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
  cursor:pointer;
  border:1.5px solid transparent;
  line-height:1.3;
  white-space:nowrap;
}
.rs-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(0,0,0,.12);
}
.rs-btn i{ font-size:.9em; }

.rs-btn-primary{
  background-color:var(--accent-color-2);
  border-color:var(--accent-color-2);
  color:#0b1f24;
}
.rs-btn-primary:hover{
  background-color:var(--accent-color-3);
  border-color:var(--accent-color-3);
  color:#0b1f24;
}
.rs-btn-ghost{
  background-color:transparent;
  border-color:rgba(255,255,255,.75);
  color:#fff;
}
.rs-btn-ghost:hover{
  background-color:rgba(255,255,255,.12);
  border-color:#fff;
  color:#fff;
}
.rs-btn-outline{
  background: transparent;
  border-color: var(--accent-color-1);
  color:var(--accent-color-1);
}
.rs-btn-outline:hover{
  background-color:var(--accent-color-1);
  color:#fff;
}

/* TRUST */
.rs-trust{
  background: linear-gradient(180deg, #eef4f7, #ffffff);
  padding: 1.4rem 0 1.1rem;
}
.rs-trust-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.rs-trust-card{
  display:flex;
  align-items:center;
  gap:.9rem;
  padding: 1.05rem 1.1rem;
  border-radius: 1rem;
  background:#fff;
  border:1px solid #e5edf3;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.rs-trust-icon{
  width:42px;
  height:42px;
  border-radius:.85rem;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eef7f9;
  color:#0b1417;
  font-weight:900;
}
.rs-trust-title{
  font-weight:900;
  text-transform:uppercase;
  font-size:.95rem;
}
.rs-trust-sub{
  color:#3a4653;
  margin-top:.15rem;
  font-size:.95rem;
}

/* SERVICES */
.rs-services{
  padding: 2.6rem 0 2.25rem;
}
.rs-h2{
  margin:0 0 1.25rem;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing:-.01em;
  text-transform: uppercase;
}
.rs-grid,
.rs-cards-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.rs-card{
  background:#fff;
  border:1px solid #e6edf3;
  border-radius: 1.05rem;
  padding: 1.35rem;
  box-shadow: 0 12px 26px rgba(0,0,0,.05);
}
.rs-card h3{
  margin:0 0 .55rem;
  font-size:1.15rem;
  text-transform:uppercase;
}
.rs-card p{
  margin:0;
  color:#3a4653;
  line-height:1.6;
}
.rs-center{ margin-top: 1.25rem; }

/* IMAGE */
.rs-image{
  padding: 0 0 2.75rem;
}
.rs-image img{
  width:100%;
  height:auto;
  display:block;
  border-radius: 1.2rem;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

/* CTA */
.rs-cta{ padding: 0 0 3.25rem; }
.rs-cta-box{
  border-radius: 1.25rem;
  border:1px solid #e6edf3;
  background:#fff;
  padding: 1.6rem;
  box-shadow: 0 14px 34px rgba(0,0,0,.07);
}
.rs-copy{
  margin:0 0 1.1rem;
  color:#3a4653;
  line-height:1.6;
}

/* Responsive */
@media (max-width: 950px){
  .rs-trust-grid{ grid-template-columns: 1fr; }
  .rs-grid,
  .rs-cards-grid{ grid-template-columns: 1fr; }
  .rs-hero{
    background-position:center;
    padding: calc(var(--header-height) + 2.25rem) 0 2.5rem;
    min-height: 680px;
  }
}

/* REV1: Hero badges (replace bullets) */
.rs-badges{
  display:flex;
  gap:.6rem;
  flex-wrap:wrap;
  margin-top: .2rem;
}

.rs-badge{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.55rem .8rem;
  border-radius:999px;
  background: rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-weight:700;
  font-size:.95rem;
}

.rs-badge-ic{
  width:20px;
  height:20px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#1aa6b7;
  color:#0b1417;
  font-weight:900;
  line-height:1;
}

/* REV1: SEO section instead of big plain image */
.rs-seo{
  padding: 0 0 2.75rem;
  background:#ffffff;
}

.rs-seo-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.rs-seo-card{
  background:#ffffff;
  border:1px solid #e6edf3;
  border-radius: 1.05rem;
  padding: 1.35rem;
  box-shadow: 0 12px 26px rgba(0,0,0,.05);
}

.rs-faq{
  border-top: 1px solid #eef2f7;
  padding: .85rem 0;
}

.rs-faq:first-of-type{
  border-top: 0;
  padding-top: .25rem;
}

.rs-faq summary{
  cursor:pointer;
  font-weight:900;
  text-transform: uppercase;
  font-size: .95rem;
  list-style:none;
}

.rs-faq summary::-webkit-details-marker{
  display:none;
}

.rs-faq summary::after{
  content:"+";
  float:right;
  font-weight:900;
}

.rs-faq[open] summary::after{
  content:"–";
}

.rs-faq-body{
  color:#3a4653;
  margin-top:.6rem;
  line-height:1.6;
}

@media (max-width: 950px){
  .rs-seo-grid{
    grid-template-columns: 1fr;
  }
}

/* Related service page buttons – match home page teal button style */
.rs-related-links{
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  pointer-events: auto;
}

.rs-related-links a{
  display: inline-block !important;
  padding: .45em .95em !important;
  font-family: var(--paragraph-font, 'Ubuntu', sans-serif) !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-radius: 6px !important;
  border: 2px solid #24b6c4 !important;
  background: #24b6c4 !important;
  color: #fff !important;
  transition: all 0.2s !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  line-height: 1.4 !important;
}

.rs-related-links a:hover,
.rs-related-links a:focus{
  background: #1aa6b7 !important;
  border-color: #1aa6b7 !important;
  color: #fff !important;
}

.rs-related-links a:active{
  transform: translateY(1px);
}

/* FAQ call link – style as teal button */
.rs-faq-call{
  display: inline-block;
  margin-top: .5rem;
  padding: .45em .95em;
  font-family: var(--paragraph-font,'Ubuntu',sans-serif);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 6px;
  background: #24b6c4 !important;
  color: #fff !important;
  border: 2px solid #24b6c4 !important;
  transition: all 0.2s;
  opacity: 1 !important;
}
.rs-faq-call:hover{
  background: #1aa6b7 !important;
  border-color: #1aa6b7 !important;
  color: #fff !important;
}

/* REV6: Balance vertical spacing above/below services */
.rs-services{
  padding-top: 3.2rem;
  padding-bottom: 3.2rem;
}

.rs-trust{
  margin-bottom: 0;
}

.rs-related{
  margin-bottom: 1.2rem;
}


/* REV7: Correct spacing – increase top only, reset bottom */
.rs-services{
  padding-top: 4.2rem !important;
  padding-bottom: 2.6rem !important;
}


/* REV8: Proper vertical rhythm fix */
.rs-trust{
  padding-bottom: 2.2rem !important;
}

.rs-services{
  padding-top: 2.2rem !important;
  padding-bottom: 2.8rem !important;
}


/* REV9: Fix gap under related service pages */
.rs-related{
  margin-bottom: .6rem !important;
  padding-top: .9rem !important;
}

.rs-seo{
  padding-top: 1.25rem !important;
}

.rs-services{
  padding-bottom: 2.1rem !important;
}


/* REV10: Hard clamp spacing under related service buttons */
.rs-related{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.rs-services{
  padding-bottom: 1.4rem !important;
}

.rs-areas{
  margin-top: 1.4rem !important;
}


/* REV11: Even spacing above & below related service pages */
.rs-related{
  margin-top: 1.2rem !important;
  margin-bottom: 1.2rem !important;
  padding: 0 !important;
}

.rs-services{
  padding-bottom: 1.6rem !important;
}

.rs-areas{
  margin-top: 1.6rem !important;
}


/* REV12: Simple, stable spacing for related buttons (no stacking) */
.rs-services{
  padding-bottom: 0.75rem !important;
}

.rs-related{
  margin: 0.85rem 0 !important;   /* equal top/bottom */
  padding: 0 !important;
}

.rs-seo{
  padding-top: 0.75rem !important;
}


/* REV13: Increase top gap above related service pages by ~30% */
.rs-related{
  margin-top: 1.1rem !important;   /* was ~0.85rem */
  margin-bottom: 0.85rem !important;
}


/* REV14: Correct spacing source – services grid controls gap */
.rs-services-grid{
  margin-bottom: 2.1rem;
}

.rs-related{
  margin: 0.8rem 0;
  padding: 0;
}


/* REV15: Make related block touch divider evenly (no bottom gap) */
.rs-related{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}


/* SPACING: Related service pages label + buttons */
.rs-related-title{
  margin-bottom: .55rem;
}

.rs-related-links{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
}

.rs-related{
  margin-top: .4rem;
  margin-bottom: 1.1rem;
}

/* ==========================================================================
   Text break-up components (rolled out from Warsash prototype, April 2026)
   Used site-wide on location and service pages.
   ========================================================================== */

/* 3-up "why this area is different" info strip, sits above services grid */
.rs-factors{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
  margin:0 0 1.4rem;
  padding:1.15rem 1.25rem;
  background:#f7f9fb;
  border:1px solid #e6edf3;
  border-radius:14px;
}
.rs-factor{
  display:flex;
  gap:.8rem;
  align-items:flex-start;
}
.rs-factor-ic{
  flex:0 0 38px;
  width:38px;
  height:38px;
  background:#fff;
  border:1px solid #e4ebf0;
  border-radius:9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#24b6c4;
}
.rs-factor-ic svg{width:20px;height:20px;}
.rs-factor-title{
  font-family:var(--heading-font,'Roboto',sans-serif);
  font-weight:700;
  font-size:.95rem;
  line-height:1.25;
  margin:0 0 .15rem;
  color:#363f48;
}
.rs-factor-sub{
  font-family:var(--paragraph-font,'Ubuntu',sans-serif);
  font-size:.82rem;
  line-height:1.45;
  color:rgba(0,0,0,.62);
  margin:0;
}
@media (max-width:760px){
  .rs-factors{grid-template-columns:1fr;padding:1rem;gap:.85rem;}
}

/* Service card icons (small teal chip at top-left of each .rs-card) */
.rs-card .rs-card-ic{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  margin-bottom:.9rem;
  border-radius:10px;
  background:rgba(36,182,196,.12);
  color:#24b6c4;
}
.rs-card .rs-card-ic svg{width:22px;height:22px;}

/* Area pill row (replaces long "surrounding areas" sentence) */
.rs-area-pills{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  margin:.9rem 0 1.1rem;
}
.rs-area-pills a{
  display:inline-block;
  padding:.4em .85em;
  font-family:var(--paragraph-font,'Ubuntu',sans-serif);
  font-size:.82rem;
  color:#363f48;
  background:#f1f5f7;
  border:1px solid #e0e7ec;
  border-radius:999px;
  text-decoration:none;
  transition:all .15s ease;
}
.rs-area-pills a:hover{
  background:#24b6c4;
  border-color:#24b6c4;
  color:#fff;
}

