/* Default: dark sticky bar everywhere */
#header .header-body{
  background: #222222 !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

/* Home only: transparent bar */
#header.is-home .header-body{
  background: transparent !important;
}

/* Force main menu visible on desktop even if Bootstrap collapse is present */
@media (min-width: 992px){
  #header .header-nav-main,
  #header .header-nav-main.collapse{
    display: block !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #header .header-nav-main.collapse:not(.show){
    display: block !important;
  }

  #header .header-nav-main nav{
    display: block !important;
  }
}


.section,
.horizontal-section,
[data-section],
.home-section,
.about-section {
  min-width: 100vw !important;
  width: 100vw !important;
  flex: 0 0 100vw !important;
}

/* Prevent container bleed */
body,
html {
  overflow-x: hidden !important;
}

/* Remove accidental margins on slides */
.section > .container,
.section > .container-fluid {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (min-width: 1200px){
  .vw-xl-75{ width: 75vw !important; }
}

:root{ --headerH: 80px; } /* adjust if needed */

#work{
  height: calc(100vh - var(--headerH));
  padding-top: var(--headerH);
  overflow: hidden;
}

#work .portfolio-list{
  max-height: calc(100vh - var(--headerH) - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ABOUT SECTION BACKGROUND */
#about {
  background-image: url("../img/site/about/about-back.jpg");
  background-size: cover;        /* fills entire section */
  background-position: center;   /* keeps it centred */
  background-repeat: no-repeat;  /* prevents tiling */
  background-attachment: scroll; /* keeps normal scroll behaviour */
}



/* Ensure About slide is full height on desktop */
@media (min-width: 992px){
  #about,
  #about .row{
    min-height: 100vh;
  }

  /* Desktop background image panel */
  #about .about-side-bg{
    height: 100%;
    min-height: 100vh;
    width: 100%;
    background-image: url("../img/site/about/side.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Optional: match your rounded style */
    border-radius: 16px;  /* tweak or remove */
    overflow: hidden;
  }
}

@media (min-width: 992px){
  #about .about-side-bg{
    position: relative;
    height: 100%;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    border-radius: 16px; /* optional */
  }

  #about .about-side-bg .about-slide{
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: aboutFade 12s infinite;
    will-change: opacity;
  }

  /* Set your slideshow images here */
  #about .about-side-bg .s1{ background-image: url("../img/site/about/side-1.jpg"); animation-delay: 0s; }
  #about .about-side-bg .s2{ background-image: url("../img/site/about/side-2.jpg"); animation-delay: 4s; }
  #about .about-side-bg .s3{ background-image: url("../img/site/about/side-3.jpg"); animation-delay: 8s; }

  /* Cross-fade timing (12s total / 3 slides = 4s each) */
  @keyframes aboutFade{
    0%   { opacity: 0; }
    8%   { opacity: 1; }
    33%  { opacity: 1; }
    41%  { opacity: 0; }
    100% { opacity: 0; }
  }
}

/* ===============================
   SERVICES BACKGROUND PANELS
================================ */

/* Shared behaviour */
#services .service-bg{
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* Individual images */
#services .granite-bg{
  background-image: url("../img/site/services/granite.jpg");
}

#services .marble-bg{
  background-image: url("../img/site/services/marble.jpg");
}

#services .quartz-bg{
  background-image: url("../img/site/services/quartz.jpg");
}

/* Dark overlay for readability */
#services .service-bg::before{
  content:'';
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.3);
  z-index:0;
}

/* Keep text ABOVE overlay */
#services .service-bg > div{
  position:relative;
  z-index:1;
}

/* Mobile: reduce height so it doesn't feel massive */
@media(max-width:991px){
  #services .service-bg{
    min-height:60vh;
  }
}

/* ===============================
   REVIEWS SLIDE - TWO ROW LAYOUT
================================ */

#reviews .reviews-layout{
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Reviews: left/right padding only */
#reviews .reviews-feed{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Space between reviews and instagram header */
#reviews .reviews-row{
  margin-bottom: 32px;
}

/* Instagram pinned to bottom */
#reviews .instagram-row{
  margin-top: auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

/* Remove any stray gutters that can create side gaps */
#reviews .instagram-row .container,
#reviews .instagram-row .container-fluid,
#reviews .instagram-row .row,
#reviews .instagram-row [class*="col"]{
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Mobile padding tweak */
@media (max-width: 991px){
  #reviews .reviews-feed{
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  #reviews .reviews-row{
    margin-bottom: 20px;
  }
}

#reviews .reviews-layout{
  padding-top: 100px; /* adjust if needed */
}

#reviews .reviews-row{
  padding-top: var(--headerH);
}

/* CONTACT slide uses same background as ABOUT */

#contact{
  background-image: url("../img/site/about/about-back.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===============================
   CONTACT SLIDE FINAL ALIGNMENT
================================ */

/* Give both columns the same starting height from top */
#contact .contact-info-col,
#contact .contact-form-col{
  padding-top: 140px;
  box-sizing: border-box;
}

/* Push form slightly lower for visual balance */
#contact .contact-form-col{
  padding-top: 150px;
}

/* Mobile: reset offsets */
@media(max-width:991px){
  #contact .contact-info-col,
  #contact .contact-form-col{
    padding-top: 40px;
  }
}

/* CONTACT: align feature-box icon + text vertically */
#contact .feature-box.feature-box-style-2{
  display: flex !important;
  align-items: center !important;
}

/* Ensure icon block doesn't sit higher than text */
#contact .feature-box.feature-box-style-2 .feature-box-icon{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 0 !important;
  line-height: 1 !important;
}

/* Remove extra top/bottom spacing that makes text look high */
#contact .feature-box.feature-box-style-2 .feature-box-info{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Tighten the title + paragraph so they center nicely with the icon */
#contact .feature-box.feature-box-style-2 .feature-box-info h4{
  margin: 0 0 4px 0 !important;
}

#contact .feature-box.feature-box-style-2 .feature-box-info p{
  margin: 0 !important;
}

/* HOME slide hero text ONLY */

@media (max-width: 991px){
  #home .custom-hero p{
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  #home .custom-hero h1{
    font-size: 3.1rem !important;
    line-height: 1.2;
	  text-align: center;
  }
}

@media (min-width: 992px){
	
	 #home .custom-hero h1{
   
	  text-align: center;
  }
	
  #home .custom-hero p{
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 991px){
  section:not(#home) h1{
    font-size: 3.1rem !important;
    line-height: 1.15;
  }
}

/* Mobile only: center headings + paragraphs on all slides
   except Home, Why, and Reviews */
@media (max-width: 991px){
  section:not(#home):not(#why):not(#reviews) h1,
  section:not(#home):not(#why):not(#reviews) h2,
  section:not(#home):not(#why):not(#reviews) p{
    text-align: center;
  }
}

/* Mobile only: DO NOT center the feature-box text on Contact */
@media (max-width: 991px){
  #contact .feature-box h4,
  #contact .feature-box p{
    text-align: left !important;
  }
}


  /* Ensure common grid wrappers don’t fight scrolling */
  #work .work-grid,
  #work .portfolio-list{
    max-height: none !important;
    overflow: visible !important;
  }

/* MOBILE: Work slide should NOT be a 100vh scroll box.
   Make it a normal tall section + 1-column portfolio. */
@media (max-width: 991px){
  #work{
    height: auto !important;
    min-height: 100vh;
    padding-top: 0 !important;
    overflow: visible !important;
  }

  /* If using Bootstrap columns for portfolio items */
  #work .portfolio-list > [class*="col"]{
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* If using the CSS grid version */
  #work .work-grid{
    grid-template-columns: 1fr !important;
  }

  /* Optional: nicer phone padding */
  #work .container,
  #work .container-fluid,
  #work .work-grid{
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Mobile only: make all H2 2rem */
@media (max-width: 991px){
  h2{
    font-size: 2rem !important;
    line-height: 1.2;
  }
}

/* Mobile: reduce header offset for Reviews slide */
@media (max-width: 991px){
  #reviews .reviews-row{
    padding-top: 40px !important;
  }
	
	#reviews .reviews-row{
  padding-top: 20px !important;
}
}
	
/* MOBILE: disable horizontal layout and allow normal vertical flow */
@media (max-width: 991px){

  body{
    overflow-x: hidden !important;
  }

  section{
    height: auto !important;
    min-height: auto !important;
    width: 100% !important;
  }

}

/* ===================================
   MOBILE DROPDOWN MENU (clean reset)
   - full width
   - centered items
   - 16px
   - white text
   - full #222222 background
=================================== */
@media (max-width: 991px){

  /* Make the dropdown (nav.collapse) break out to full viewport width */
  #header .header-nav-main nav.collapse,
  #header .header-nav-main nav.collapse.show,
  #header .header-nav-main nav.collapsing{
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 12px 0 !important;
    background: #222222 !important;
    border: 0 !important;
    box-shadow: none !important;
    z-index: 999999 !important;
  }

  /* Ensure the parent isn’t clipping */
  #header .header-nav,
  #header .header-nav-main{
    position: static !important;
    overflow: visible !important;
    background: transparent !important;
  }

  /* UL full width and centered */
  #header .header-nav-main nav > ul{
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }

  /* LI full width */
  #header .header-nav-main nav > ul > li{
    width: 100% !important;
    margin: 0 !important;
  }

  /* Links: full width, centered, white, 16px */
  #header .header-nav-main nav > ul > li > a{
    display: block !important;
    width: 100% !important;
    padding: 14px 0 !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    color: #fff !important;
    background: transparent !important;
  }

  /* Your visible text lives in spans */
  #header .header-nav-main nav > ul > li > a span{
    color: #fff !important;
    white-space: nowrap !important;
  }

  /* Kill the hover underline effect inside the mobile dropdown */
  #header .header-nav-main nav > ul > li > a .hvr-underline-from-center:before{
    display: none !important;
  }
}

/* MOBILE MENU — full width, centered items, white text, dark background */
@media (max-width: 991px){

  /* Make the dropdown panel full-bleed (no off-screen) */
  #header .header-nav-main nav.collapse,
  #header .header-nav-main nav.collapse.show,
  #header .header-nav-main nav.collapsing{
    width: 100vw !important;
    margin-left: calc(50% - 95vw) !important; /* key: full width aligned to viewport */
    margin-right: 0 !important;

    background: #222222 !important;
    border: 0 !important;
    box-shadow: none !important;

    padding: 12px 0 !important;
  }

  /* Ensure the UL truly uses full width */
  #header .header-nav-main nav > ul{
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }

  #header .header-nav-main nav > ul > li{
    width: 100% !important;
    margin: 0 !important;
  }

  /* Links: centered, 16px, white */
  #header .header-nav-main nav > ul > li > a{
    display: block !important;
    width: 100% !important;
    padding: 14px 0 !important;
    font-size: 18px !important;
	  font-weight: 500 !important;
    text-align: center !important;

    color: #fff !important;
    background: transparent !important;
  }

  /* Your visible text is inside spans */
  #header .header-nav-main nav > ul > li > a span{
    color: #fff !important;
    white-space: nowrap !important;
  }

  /* Remove the underline animation artifact in dropdown */
  #header .hvr-underline-from-center:before{
    display: none !important;
  }

  /* Kill any “mystery white strip” backgrounds from wrappers */
  #header .header-nav,
  #header .header-nav-main,
  #header .header-nav-main nav,
  #header .nav,
  #header .nav-pills{
    background: transparent !important;
  }
}

/* MOBILE: give dropdown menu breathing room under header */
@media (max-width: 991px){
  #header .header-nav-main nav.collapse,
  #header .header-nav-main nav.collapse.show,
  #header .header-nav-main nav.collapsing{
    padding-top: 65px !important;   /* increase this if needed */
    padding-bottom: 16px !important;
  }

  
}

@media (max-width: 991px){
  #header .header-nav-main nav > ul > li:first-child > a{
    padding-top: 20px !important;
  }
}

/* MOBILE: stop internal scrolling inside the dropdown menu */
@media (max-width: 991px){

  #header .header-nav-main nav.collapse,
  #header .header-nav-main nav.collapse.show,
  #header .header-nav-main nav.collapsing{
    max-height: none !important;     /* kill any theme max-height */
    height: auto !important;         /* ensure it grows to content */
    overflow: visible !important;    /* kill internal scroll */
  }

  /* Reduce wasted vertical space so all links fit comfortably */
  #header .header-nav-main nav.collapse,
  #header .header-nav-main nav.collapse.show,
  #header .header-nav-main nav.collapsing{
    padding-top: 45px !important;    /* was 65px */
    padding-bottom: 16px !important;
  }
}

/* MOBILE: stabilise Bootstrap dropdown collapse (removes flashing) */
@media (max-width: 991px){

  /* Apply identical styling in ALL 3 states */
  #header .header-nav-main nav.collapse,
  #header .header-nav-main nav.collapse.show,
  #header .header-nav-main nav.collapsing{
    background: #222222 !important;

    /* keep your tuned centering values the same in all states */
    width: 100vw !important;
    /* KEEP your working margin-left value here: */
    /* margin-left: calc(50% - 50vw) !important;  <-- or your adjusted version */
    /* If you already adjusted it, paste the exact value below: */
    margin-left: calc(50% - 95vw) !important;

    border: 0 !important;
    box-shadow: none !important;

    max-height: none !important;
    overflow: hidden !important; /* prevents weird scrollbars during animation */
  }

  /* Kill the height animation that causes the blink */
  #header .header-nav-main nav.collapsing{
    transition: none !important;
  }

  /* Also remove transition on the collapse element just in case */
  #header .header-nav-main nav.collapse{
    transition: none !important;
  }
}

/* Mobile: prevent anchor titles hiding under fixed header */
@media (max-width: 991px){
  section{
    scroll-margin-top: 30px; /* adjust if needed */
  }
}