/* ==========================================================================
   LAYOUT
   --------------------------------------------------------------------------
   PURPOSE:
   This file controls GLOBAL STRUCTURE of the site.
   It answers: "How is the page arranged?"

   Layout styles deal with:
   - header positioning
   - footer structure
   - containers
   - navigation placement
   - responsive layout rules

   WHY THIS FILE EXISTS:
   - Keeps structure separate from design
   - Makes large-scale changes predictable
   - Prevents layout logic leaking into components

   RULES:
   - Focus on structure, not aesthetics
   - No button or card styling
   - No section-specific rules

   EXAMPLES OF WHAT BELONGS HERE:
   Header positioning
   Footer layout
   Nav structure
   Container widths
   Responsive breakpoints

   EXAMPLES OF WHAT DOES NOT BELONG HERE:
   Button colours
   Form fields
   Card shadows
   ACF section styling
   ========================================================================== */


.header {
  z-index: 9;
  width: 100%;
  background: #fff;
}

.home .header {
  position: absolute;
  z-index: 9;
  width: 100%;
  background: transparent;
}

 .navbar {
   padding: 12px 0px;
   border-radius: var(--radius-sm);
}



.headerbg.inner {
  background-color: var(--bg-light);
  background-image: url(images/header.png);
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: contain;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-black);
  padding: 1rem 0.5rem !important;
  margin: 0 0.5rem;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}
/* .home .nav-link {
  color: var(--brand-black);
} */

.nav-link:hover,
.current-menu-item a.nav-link {
   color: var(--brand-primary); 
  opacity: 1;
  text-decoration: none;
}

/* .home .nav-link:hover,
.home .current-menu-item a.nav-link {
   color: var(--brand-white); 

} */



.current-menu-item a.nav-link, .nav-link:focus, .nav-link:hover {
  background-image: url('../images/activemenu.png');
  background-repeat: no-repeat;
  background-position: left;
}

.navbar .nav-item:last-child a {
  /* text-transform: uppercase;
  background-color: transparent;
  padding: 7px 18px !important;
  color: var(--brand-white) !important;
  border: 2px solid var(--brand-primary);
  border-radius: var(--btn-radius); */
  margin-right: 23px;
}

.navbar .nav-item:last-child a:hover {
  /* background-color: var(--brand-primary);
  color: var(--brand-white) !important; */
}


.slick-dots li button:before {
  display: none;
}
.slick-dots {
  width: 100%;
  position: relative;
  bottom: -50px;
}

.slick-dots li {
  width: auto;
  padding-left: 0px!important;
  height: auto;
}
.slick-dots li button {
  width: 50px;
  height: 6px!important;
  border: 1px solid var(--brand-primary);
  border-radius: 50px;
  padding: 0px;
}

.slick-dots li.slick-active button {
  background-color: var(--brand-primary);
}

.service-grid-card {
    background: #fff;
    /* border: 1px solid #e5e5e5; */
    padding: 23px;
    color: inherit;
    font-weight: 300!important;
    background-image: url(../images/dots-1.png);
    background-repeat: no-repeat;
    background-position: bottom right;
}

.service-grid-card__media img {
    display: block;
    width: 100%;
    aspect-ratio: 1.2 / 1;
    object-fit: cover;
}

.service-grid-card__content {
    padding-top: 16px;
}

.service-grid-card--cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Reviews Stat Card */
.layout-reviews-stat-card .reviews-stat-card {
  background: #d10f13; /* your red */
  border-radius: 18px;
  padding: 35px 53px;
  color: #fff;
  overflow: hidden;
}

.herotext h1 {
  text-wrap: balance;
  color: #000000;
  font-size: 2rem;
}

/* Left */




.layout-reviews-stat-card .reviews-stat-content {
  opacity: 0.95;
}

.layout-reviews-stat-card .reviews-stat-content ul {
  margin: 0;
  padding-left: 1.1rem;
}




/* Right */
.layout-reviews-stat-card .reviews-google-logo {
  width: 72px;
  height: auto;
}

.layout-reviews-stat-card .reviews-stat-number {
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 900;
  line-height: 1;
  margin: 0 0 10px 0;
  font-family: var(--font-heading);
}

.layout-reviews-stat-card .reviews-stat-label {
  font-size: 12px;
  /* letter-spacing: 0.08em; */
  text-transform: uppercase;
  /* opacity: 0.9; */
  line-height: 1.1;
  font-weight: 700;
  font-family: var(--font-heading);
}

.why-sos__right {
  aspect-ratio: 1 / 1;
}

.newsindex {
    padding: 23px;
    background-color: var(--brand-accent);
}

/* Wrapper */
.feature-pills{
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

 .rightimg img {
  /* border-top-right-radius: 0px; */
}

 .leftimg img, .leftbr {
  /* border-top-left-radius: 0px; */
}

.testimonial-content {
    /* padding: 30px; */
    background-color: #f8f8f8;
    border-radius: var(--radius-sm);
}

.testimonial-content i {
    color: #b0c839;
    font-size: 18px;
}

/* little triangle / speech-bubble tail */
.testimonial-content::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 36px; /* adjust horizontal position */
  width: 28px;
  height: 28px;
  background: #f7f7f7;
  transform: rotate(45deg);
}

/* .testimonial-wrapper blockquote {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--brand-black); /* Pulls #231f20 from tokens */

/* Ensure the author name matches the heading font */
.testimonial-author p {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: capitalize;
}


.giant-slick--reviews {
  margin: 0 -12px;
}

.giant-slick--reviews .review-slide {
  padding: 0 12px;
}

.giant-slick--reviews .testimonial-content {
  height: 100%;
}


.giant-slick--reviews .slick-track {
  display: flex !important;
}

.giant-slick--reviews .slick-slide {
  height: inherit !important;
}

.giant-slick--reviews .slick-slide > div {
  height: 100%;
}

.giant-slick--reviews .review-slide {
  padding: 0 12px;
  height: 100%;
}

.giant-slick--reviews .testimonial-content {
  height: 100%;
  background: #f7f7f7;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

.testimonial-excerpt {
  margin-bottom: 0;
}


.testimonial-excerpt.is-expanded {
  display: block;
  overflow: visible;
}


.testimonial-toggle {
  font-size: 0.9rem!important;
  font-weight: 600!important;
  text-decoration: underline!important;
}
/* push author to bottom */
.giant-slick--reviews .testimonial-author {
  margin-top: auto;
}


.giant-slick--reviews .slick-track {
  display: flex !important;
}

.giant-slick--reviews .slick-slide {
  height: inherit !important;
}

.giant-slick--reviews .slick-slide > div {
  height: 100%;
}

.giant-slick--reviews .review-slide {
  height: 100%;
}

.giant-slick--reviews .testimonial-content {
  height: 100%;
}

.testimonial-excerpt.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-excerpt.is-expanded {
  display: block;
  overflow: visible;
}

.testimonial-toggle {
  text-decoration: none;
  margin-top: .75rem;
}

.page-header-wrapper {
  background-color: var(--brand-grey);
}

.service-card {
    min-height: 200px;
    display: block;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50%;
    border-bottom-right-radius: 23px;
    height: 100%;
    text-decoration: none!important;
}

.greenline {
  width: 100%;
  height: 1px;
  background-color: var(--brand-primary);

}

/* Navy Overlay - #16163b at 70% opacity */
.service-card__overlay {
    position: absolute;
    inset: 0;
    background-color: rgb(22 22 59 / 40%);
    z-index: 1;
    transition: background-color 0.3s ease;
    border-bottom-right-radius: 23px;
}

.service-card:hover .service-card__overlay {
    background-color: rgba(22, 22, 59, 0.5); /* Image becomes clearer on hover */
}

a.rpi-name {
  font-weight: 700;
}
h1.page-title {
    text-wrap: balance;
}
/* Content Container */
.service-card__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pushes text to bottom */
    padding: 30px;
     /* Must match .service-card min-height */
}

.service-card__title {
    /* font-family: var(--font-heading); */
    font-weight: 700;
    /* font-size: 1.25rem; */
    color: #ffffff !important;
    /* margin-bottom: 15px; */
    /* line-height: 1.2; */
    max-width: 80%; /* Keeps text from hitting the edge */
    text-decoration: none;
}

.service-card__arrow img {
    width: 20px;
    height: auto;
    filter: brightness(0) invert(1); /* Forces arrow to white if it's a dark PNG */
}

.team_hero_box {

    display: flex;
    align-items: center;
  padding: 0px 30px;
}

.footer-card {
  
/* margin: 0 10px; */            /* Ensures it doesn't touch the screen edges on mobile */
}

.footer-form {
    /* background-color: var(--brand-accent); */
    /* background-image: url(../images/ctashape2.png); */
    /* background-position: bottom; */
    background-repeat: no-repeat;
    /* background-size: 400px; */
    /* padding: 30px; */
    /* border-radius: var(--radius-sm); */
    /* background: #F8F6EB; */
    /* background: linear-gradient(180deg, rgba(248, 246, 235, 1) 0%, rgba(248, 246, 235, 1) 43%, rgba(45, 44, 77, 1) 43%, rgba(22, 22, 59, 1) 99%); */
}

.footer-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: #fff;
}


.herobgshape {
  position: absolute;
  top: unset;
  right: 0;
  width: auto;
  max-width: 100%;
  height: 75%;
  z-index: 0;
  width: 100%;
  bottom: 0;
}


.footer-left * {
  color: var(--brand-primary);
}

.footer-right * {
  color: #fff;
}

/* Pill */
.feature-pill{
  /* display: flex; */
  /* align-items: center; */
  /* gap: 1rem; */
  /* padding: 1rem 1.25rem; */
  /* border-radius: 999px; */
  /* border: 2px solid rgba(212, 15, 22, 0.15); */ /* SOS red but soft */
  /* background: #fff; */
  /* box-shadow: 0px 0px 10px 3px #d40f1626; */
}

/* Icon */
.feature-pill__icon{
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
}
.feature-pill__icon img{
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}

/* Text */
.feature-pill__text{
  /* font-weight: 700; */
  font-size: 1rem;
  line-height: 1.2;
  color: #111;
}
#content li::marker {
    font-size: 1rem;
    line-height: 1;
    /* position: relative; */
}

/* Layout: Icon Features Grid */
.layout-icon-feature-grid .icon-feature__icon, .layout-icon-feature-vertical .icon-feature-vertical__icon{
  width: 50px;
  height: auto;
  flex: 0 0 auto;
}

.layout-icon-feature-grid .icon-feature__icon i{
  font-size: 28px;
  color: #fff;
  line-height: 1;
}

.layout-icon-feature-grid .icon-feature__img{
  /* width: 34px; */
  /* height: 34px; */
  object-fit: contain;
}

/* tighten prose inside the feature text */
.layout-icon-feature-grid .icon-feature__text > *:last-child{
  margin-bottom: 0;
}

/* spacing / alignment tweaks to match screenshot */
.layout-icon-feature-grid .icon-feature__content {
  max-width: 520px;
}

.layout-icon-feature-vertical .icon-feature-vertical__content{
  max-width: 700px;
}


.team_hero_container {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Change to 'fixed' for a parallax effect */
    min-height: 500px; /* Adjust based on how much of the team you want to see */
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 100px 0;
}

/* The Navy Overlay */
.team-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 22, 59, 0.75); /* Your brand navy #16163b */
    z-index: 1;
}

/* Ensure content stays above overlay */
.team-hero__container {
    position: relative;
    z-index: 2;
}
.team-hero__content * {
  color: #fff;
}

.team-hero__content {
  z-index: 2;
}



/* Mobile nav */
.mobilenav {
  background-color: var(--footer-bg); 
  z-index: 99999;
  padding: 3rem;
  width: 100%!important;
}

.modal-dialog {
    margin: 1rem;
}

.offcanvas-header {
  padding: 0px;
}
  .mobilenav .menu-item a {color: var(--brand-white);padding-left: 0px!important;margin-left: 0px;font-size: 1.5rem;margin-right: 0px;padding-right: 0px!important;padding: 0rem 0rem !important;text-transform: uppercase;text-align: left;}
.mobilenav .menu-item a:hover, .mobilenav .current-menu-item a.nav-link {
  background-image: unset!important;
  color: var(--brand-white);
}
.mobilenav .btn-primary {
  font-size: 1rem;
}
.hamburger .hamburger-inner,
.hamburger .hamburger-inner::before,
.hamburger .hamburger-inner::after {
  background-color: var(--brand-secondary);
  border-radius: 5px;
}
button.hamburger.is-active .hamburger-inner,
button.hamburger.is-active .hamburger-inner::before,
button.hamburger.is-active .hamburger-inner::after {
  background-color: var(--brand-white);
}

/* Floating mobile phone icon */
.tel-mob {
  position: fixed;
  bottom: 10px;
  left: 14px;
  height: 49px;
  width: 49px;
  background-color: #afafaf;
  border-radius: 50%;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  display: flex;
  box-shadow: 0px 0px 10px rgb(0 0 0 / 20%);
}


  #content ul {
  /* list-style: none; */ /* Hide the default browser bullets */
  padding-left: 0;   /* Reset padding so we can control it */
  margin-left: 0;
  margin-bottom: 1.5rem;
  list-style-position: inside;
}

  #content ul li {
  position: relative;
  padding-left: 1.5rem; /* Create a 'gutter' for the image to sit in */
  /* list-style: none; */    /* Double-check bullets are off */
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   HERO / GLOBAL LAYOUT
   ========================================================================== */
.hero {
  height: 100dvh !important;
  background-size: cover;
  background-position: 50%;
}

.hero-fullscreen {
  min-height: 100vh;
  min-height: 100svh;
  /* min-height: calc(100svh - var(--header-height)); */
}


.herotext {/* max-width: 100% !important; */}
.heroshape {min-width: 125%;left: -26px!important;max-height: 53vh;/* display: none; */}
.custom-shape-clip {
    position: relative;
    width: 100%;
    /* Create the mask */
    -webkit-mask-image: url('../images/heroshape.png');
    mask-image: url('../images/heroshape.png');
    
    /* Ensure the mask covers the area properly */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;

    /* Maintain aspect ratio to match your shape */
    aspect-ratio: 1 / 1; 
    overflow: hidden;
}

.custom-shape-clip img, 
.custom-shape-clip video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* 
==========================================================================
      FOOTER
========================================================================== 
*/

footer {
  background-color: var(--footer-bg);
  color: var(--text-light);
}
.layout-form-footer {
   background-color: var(--footer-bg);
}
footer .footer-card {
  /* background-color: var(--brand-accent); */
  /* border-radius: var(--radius-sm); */
  /* padding: 30px 60px; */
}

footer a:hover {color: var(--brand-white);}

footer .current-menu-item a.nav-link {
  color: var(--brand-accent) !important;
}

.footer-nav a {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 300;
    font-family: var(--font-heading);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.footer-nav a:hover {
opacity: 0.8;
}

#copy-foot {font-size: 0.7rem;color: var(--brand-white);/* text-align: center; */}

.footerlogo { max-width: 70px !important; }


/* services */
.service-icon-wrap img {
    width: 75px;
}
.prose > *:last-child{
  margin-bottom: 0;
}


/* store locator */

.store-columns{
  column-count: 4;
  column-gap: 3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.prose ul {
  padding-left: 1rem;
  list-style-position: outside;
}

.prose ul li {
margin-bottom: 0.5rem;}

.store-columns li{
  break-inside: avoid;
  margin: 0 0 .65rem 0;
}

.store-link{
  display: block;
  text-transform: uppercase;
  font-weight: 700!important;
  font-size: 0.85rem;
  color: #111;
  text-decoration: none;
}

.store-link:hover{
  text-decoration: underline;
}


/* news index */

.news-pagination .page-numbers {
  display: flex;
  gap: 10px;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.news-pagination .page-numbers li a,
.news-pagination .page-numbers li span {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  text-decoration: none;
}

.news-pagination .page-numbers li .current {
  font-weight: 700;
}


/* Responsive */
@media (max-width: 991.98px){
  .store-columns{ column-count: 2; }
}
@media (max-width: 575.98px){
  .store-columns{ column-count: 1; }
}


/* ==========================================================================
   RESPONSIVE BREAKPOINTS + CONTAINER WIDTH
   ========================================================================== */
@media (min-width: 992px) {

  .tel-mob { display: none; }
  .hamburger {/* display: none !important; */}
  #desktopmenu { display: flex !important; }

  .abbox { padding: 100px; }
  img.footerlogo { max-width: 100% !important; }

  
.herotext {/* max-width: 86% !important; */}
.heroshape {min-width: 865px!important;left: -50px!important;max-height: unset;}

.footerlogo { max-width: 150px !important; }
.service-icon-wrap img {
    width: auto;
}
  .mobilenav .menu-item a {color: var(--brand-white);padding-left: 0px!important;margin-left: 0px;font-size: 2.5rem;margin-right: 0px;padding-right: 0px!important;padding: 0rem 0rem !important;text-transform: uppercase;}

 .navbar {
   padding: 23px 0px;
   border-radius: var(--radius-sm);
}
.service-card {
    min-height: 400px;
    display: block;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50%;
    border-bottom-right-radius: 50px;
    height: 100%;
    text-decoration: none!important;
}
.team_hero_box {
    min-height: 800px;
  }
  
 .rightimg img {
  /* border-top-right-radius: 200px; */
}

 .leftimg img, .leftbr {
  /* border-top-left-radius: 200px; */
}

  .footer-form {
    /* background-color: var(--brand-accent); */
    /* background-position: right; */
    /* background-repeat: no-repeat; */
    /* background-size: 57%; */
    /* padding: 79px 80px; */
    /* border-radius: var(--radius-sm); */
}
.herotext h1 {
  text-wrap: balance;
  color: #fff;
  font-size: 3.75rem;
}

.herotext h4 {
color: var(--brand-primary);
}
  
  

.feature-pills{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.layout-reviews-stat-card .reviews-stat-card {
  background: #d10f13; /* your red */
  border-radius: 18px;
  padding: 73px 85px;
  color: #fff;
  overflow: hidden;
}
  .layout-reviews-stat-card .reviews-google-logo {
    width: auto;
    height: auto;
}
.layout-icon-feature-grid .icon-feature__icon, .layout-icon-feature-vertical .icon-feature-vertical__icon{
  width: auto;
  height: auto;
  flex: 0 0 auto;

}

.herobgshape {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  max-width: 60%!important;
  height: 100%;
  z-index: 0;
  bottom: unset;
}
.layout-reviews-stat-card .reviews-stat-label {
  font-size: 17px;
  /* letter-spacing: 0.08em; */
  text-transform: uppercase;
  /* opacity: 0.9; */
  line-height: 1.1;
  font-weight: 700;
  font-family: var(--font-heading);
}


.service-card__overlay {
    position: absolute;
    inset: 0;
    background-color: rgb(22 22 59 / 40%);
    z-index: 1;
    transition: background-color 0.3s ease;
    border-bottom-right-radius: 50px;
}

  
}

@media (min-width: 1600px) {
  .container {/* max-width: 1600px; */}
  .navbar {
    /* max-width: 1600px; */
    /* margin: 0 auto; */
  }

  .herotext {/* max-width: 49% !important; */}
  .heroshape {min-width: 850px!important;}
  
}


/* ==========================================================================
   CONTAINER GUTTERS
   ========================================================================== */
.container,
.container-fluid {
  --bs-gutter-x: var(--container-gutter);
}

@media (max-width: 991.98px) {
  .container,
  .container-fluid {
    --bs-gutter-x: var(--container-gutter-mobile);
  }
} 