/* ==========================================================================
   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: var(--brand-primary);

}

.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; */
}


/* 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: #fff;
  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;
}

/* 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;
}
.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;
}



/* 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;
}


/* 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: #f0eeed; */
  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: 0.75rem 0rem !important;}
.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 li::marker {
display: none;
}

  #content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  
  /* Vertical Centering: This keeps the bullet aligned with the first line */
  top: 10px; 
  
  /* Sizing */
  width: 9px;
  height: 3px;
  
  /* Image Setup */
  background-image: url('../images/bullet.png');
  background-size: auto;
  background-repeat: no-repeat;
  display: inline-block;
}
  #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;
}

  #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 */
}

/* ==========================================================================
   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(--brand-primary);
  color: var(--text-light);
}

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: 900;
    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.75rem;margin-right: 0px;padding-right: 0px!important;padding: 0.75rem 0rem !important;}

 .navbar {
   padding: 23px 20px;
   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-image: url(../images/ctabg.png);
    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.1rem;
}


.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);
  }
} 