/*
Theme Name: Nine Yards Bell Tents
Theme URI: 
Author: Simon Evans @ karno.is, Keshi Bouri @ keshi.co.uk
Author URI: 
Description: A block theme for the new NYBT website. 2025
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nine-yards-bell-tents
Tags: 
*/

/* HEADER */

  /* LOGO */
  .logo {
    text-align: center!important; /* Center the logo within its container */
  }

.logo-no-hero {
  width: 148px;
  height: 148px;
  z-index: 100;
  visibility: visible;
}
  /* MENU */
  .menu-group {
  position: fixed!important; 
  top: 10vh!important;
  right: 5vw!important;
  z-index: 1000!important;
        }

.main-menu {
z-index: 1000!important;    
  }

  .wp-block-navigation__responsive-container-close svg, .wp-block-navigation__responsive-container-open svg {
      width: 2em;
      height: 2em;
  }
  
  .wp-block-navigation__responsive-dialog {

  z-index: 1000!important;  
  }




/* HERO */
.my-cover{
justify-content: center!important;
}

.cover-copy{
  justify-content: center;
    padding-top: 4rem!important;
    padding-right: 60%;
    padding-left: 5%;
    margin:auto;
    
  }

.wp-block-cover__inner-container{
height:100vh!important;
}

.hero-title{
line-height: 1.2em;
font-size: 3rem;
}

.hero-excerpt p{
  font-size: 1.5rem!important;
  font-weight: 400;
}

.hero-excerpt p:first-child{
  font-weight:600;
}


.page-slideshow-readmore-btn{
  cursor: pointer;
}


/* PRODUCT HACKS */

.info-accordion {
padding: 2em 0em;
}

#castletown-booking{
    display: none;
}
#douglas-booking{
    display: none;
}


/* SCROLL ARROWS */
 .scroll-button {
position: fixed;
bottom: 5px;
left: 50%!important;
transform: translateX(-50%);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
        }
        
.backToTop{
float:none;
width: 90vw;
z-index: 1;
cursor: pointer;
}


/* CATEGORY HACKS */
.wp-block-term-description p {
  margin-bottom: 1em;
}



/*FEATURED PRODUCT*/

/*.featured-product{
position: relative;
top: -75vh;
z-index: 1;
width: 30vw
}
*/


/* WP BOOKING SYSTEM*/
.wpbs-container[data-columns="2"] {
width: 100%;
grid-template-columns: 1fr !important;
}
.wpbs-container[data-columns="2"] .wpbs-calendars .wpbs-calendar {
    width: 100% !important;
    margin-bottom: 20px;
}

.wpbs-container .wpbs-calendars .wpbs-calendar {
background-color: transparent!important;
border: 1px solid black!important;
}

.wpbs-container .wpbs-calendar-header{
background-color: transparent!important;

}

.wpbs-form-selected-dates{
padding: 0.5rem;
border: 1px solid black !important;
margin-bottom: 1rem!important;
}
.wpbs-form-selected-dates>div:nth-child(1){
box-sizing: border-box;

}

.wpbs-form-field-label {
  margin-bottom: 0.5em;
}

.wpbs-form-selected-date .wpbs-form-field-label{
 font-weight: 600; 
}



.wpbs-form-field-input input, select{
  padding: 0.5em;
  font-size: 1rem;
}

.full-blue{
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  left: 0;
  right: 0;
    margin-block-end: 0px!important;
}

.wpbs-form-submit-button button{

background-color: #e10f14;
color: white;
font-size: 1.5rem;
border-radius: 12px;
border: 0;
padding: 0.5em 2em 0.5em 2em;
}

.wpbs-form-submit-button button:hover{
  background-color: #000000;
}

/* ===================================
   PAYMENT CONFIRMATION FORM STYLING
   (Scoped to .balance-form only)
   =================================== */

/* Main container */
.balance-form .wpbs-payment-confirmation {
  font-family: inherit;
  background-color: white;
  padding: 1rem;
}

.balance-form .wpbs-payment-confirmation-inner {
  padding: 0;
}

/* Pricing Table - matching booking form style */
.balance-form .wpbs-pricing-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid black;
  margin-bottom: 1rem;
  background-color: transparent;
}

.balance-form .wpbs-pricing-table th,
.balance-form .wpbs-pricing-table td {
  padding: 0.5em;
  text-align: left;
  border: 1px solid black;
  font-size: 1rem;
}

.balance-form .wpbs-pricing-table thead th {
  font-weight: 600;
  background-color: transparent;
}

/* Line item styling */
.balance-form .wpbs-pricing-table .wpbs-line-item-total td {
  font-weight: 600;
}

.balance-form .wpbs-pricing-table .wpbs-line-item-quantity {
  color: #666;
}

.balance-form .wpbs-pricing-table .wpbs-line-item-description {
  display: block;
  font-size: 0.875rem;
  color: #555;
  margin-top: 0.25em;
}

.balance-form .wpbs-pricing-table .wpbs-line-item-bold {
  font-weight: 600;
}

/* Price styling */
.balance-form .wpbs-pricing-table .wpbs-price {
  white-space: nowrap;
}

.balance-form .wpbs-pricing-table .wpbs-price-currency {
  font-size: 0.875rem;
  color: #666;
}

/* Part payments rows */
.balance-form .wpbs-pricing-table .wpbs-line-item-part-payments td {
  color: #555;
  font-style: italic;
}

/* Discount row */
.balance-form .wpbs-pricing-table .wpbs-pricing-table-discount .wpbs-price {
  color: #2e7d32;
}

/* Test mode notice */
.balance-form .wpbs-payment-test-mode-enabled {
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  padding: 0.75em 1em;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border-radius: 4px;
  line-height: 1.5;
}

/* Stripe Payment Form Section */
.balance-form .wpbs-payment-confirmation-stripe-form {
  padding: 1rem;
  border: 1px solid black;
  margin-bottom: 1rem;
  background-color: transparent;
}

.balance-form .wpbs-payment-confirmation-stripe-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5em;
}

.balance-form .wpbs-payment-confirmation-stripe-form .wpbs-payment-confirmation-stripe-input {
  width: 100%;
  padding: 0.5em;
  font-size: 1rem;
  border: 1px solid black;
  margin-bottom: 1rem;
  box-sizing: border-box;
  background-color: #f5f5f5;
}

/* Stripe Payment Element */
.balance-form #wpbs-stripe-payment-element {
  margin-bottom: 1rem;
}

/* Stripe Error Messages */
.balance-form #wpbs-stripe-card-errors.wpbs-stripe-error {
  color: #e10f14;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Book & Pay Button - matching .wpbs-form-submit-button button */
.balance-form #wpbs-stripe-card-button {
  background-color: #e10f14;
  color: white;
  font-size: 1.5rem;
  border-radius: 12px;
  border: 0;
  padding: 0.5em 2em;
  cursor: pointer;
  display: inline-block;
  width: auto;
  transition: background-color 0.3s ease;
}

.balance-form #wpbs-stripe-card-button:hover {
  background-color: #000000;
}

.balance-form #wpbs-stripe-card-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Powered by Stripe */
.balance-form .wpbs-stripe-powered-by {
  margin-top: 1rem;
  text-align: center;
}

.balance-form .wpbs-stripe-powered-by img {
  max-height: 24px;
  opacity: 0.7;
}

/* Loading overlay styling */
.balance-form .wpbs-payment-confirmation-inner .wpbs-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

/* Create separation between order details and payment section */
.balance-form .wpbs-payment-confirmation {
  background-color: #CDDFE4;
  padding: 1rem;
}

.balance-form .wpbs-pricing-table,
.balance-form .wpbs-pricing-table th,
.balance-form .wpbs-pricing-table td {
  background-color: white;
  border: 1px solid #cccccc !important;
}

.balance-form .wpbs-pricing-table {
  margin-bottom: 0;
}

.balance-form .wpbs-payment-confirmation-stripe-form {
  background-color: white;
  margin-top: 1.5rem;
  padding: 1.5rem !important;
  border: 1px solid #cccccc !important;
}

.balance-form .wpbs-payment-confirmation-stripe-form .wpbs-payment-confirmation-stripe-input {
  border: 1px solid #cccccc !important;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
  .balance-form .wpbs-pricing-table th,
  .balance-form .wpbs-pricing-table td {
    padding: 0.5em 0.25em;
    font-size: 0.9rem;
  }
  
  .balance-form .wpbs-payment-confirmation-stripe-form {
    padding: 0.75rem;
  }
  
  .balance-form #wpbs-stripe-card-button {
    width: 100%;
    text-align: center;
  }
}
/* FURTHER INFO */

.full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    left: 0;
    right: 0;
    margin-block-start: 0px!important;
  }

  .top-div-full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    left: 0;
    right: 0;
   
  }

/* FAQs */
.brown-bg  {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  left: 0;
  right: 0;
  margin-block-start: 0px!important;
}

.brown-bg>div:nth-child(1){
padding: 80px!important;
}

.brown-accordion >.accordion-item>label.accordion-header {
background-color: #E0C9AA!important;
border: 1px solid black !important;
}

.brown-accordion >.accordion-item>.accordion-content {
background-color: #E0C9AA!important;
border: 1px solid black !important;
}

/* ABOUT PAGE */


/* Dark overlay */
.overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25); /* Black overlay with 50% opacity */
}

.dark-title{
  z-index: 1000;
  position: relative;
}
/* fixing Google reviews */
/* Target only the Google Reviews container with ID testimonial-fix */
#testimonial-fix .wp-gr {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Force the slider content to respect the container width */
#testimonial-fix .wp-gr .grw-content {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  position: relative !important; /* Keep position relative */
  left: auto !important; /* Reset any absolute positioning */
  right: auto !important; /* Reset any absolute positioning */
}


/* FULL CONTACT FORM */

.contact-form {
  max-width: 1000px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.contact-form .form-title {
  color: #333;
  font-size: 28px;
  margin-bottom: 40px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

/* Row styling */
.contact-form .form-row {
  margin-bottom: 0;
  display: flex;
  gap: 15px;
}

/* Column layout for inputs */
.contact-form .form-column {
  flex: 1;
}

/* Input field styling */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: .75rem;
  border: 1px solid #ccc;
  border-radius: 0;
  box-sizing: border-box;
  font-size: 16px;
  margin-top: .5rem;

}

/* Message area styling - ensure it's full width */
.contact-form .message-row {
  display: block;
  width: 100%;
}

.contact-form textarea {
  height: 25vh;
  resize: none;
  border: 1px solid #ccc;
  width: 100%;
}

/* Captcha Styling */
.contact-form .captcha-row {
  margin-top: .5rem;
}

/* Submit button styling */
.contact-form .submit-row {
  justify-content: flex-start;
  margin-top: .75rem;
}

.contact-form input[type="submit"] {
  background-color: #d23836;
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: normal;
  cursor: pointer;
  border-radius: 8px;
  text-transform: uppercase;
}

.contact-form input[type="submit"]:hover {
  background-color: #000000;
}


/* DYNAMIC QUERY LOOP */

/* Category Pages Grid Layout */

.category-pages-grid {
  display: grid;
  gap: 2rem;
  margin: 0% 5%;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Define grid columns based on the columns class */
.category-pages-grid.columns-1 {
  grid-template-columns: 1fr;
}
.category-pages-grid.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}
.category-pages-grid.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}
.category-pages-grid.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}
.category-pages-grid.columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.page-grid-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-featured-image {
  width: 100%;
  height: 15rem; /* Changed from 240px */
  overflow: hidden;
  margin-bottom: 1rem;
}

.page-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-content-wrap {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem; /* Changed from 20px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #333;
}

.page-excerpt {
  color: #555;
  font-size: 0.9375rem; /* Changed from 15px */
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.book-now-link {
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #333;
  padding-bottom: 0.125rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  margin-top: auto;
}

.book-now-link:hover {
  color: #777;
  border-color: #777;
}

 

/* Pagination Styles */
.pagination-container {
  margin-top: 2rem;
  text-align: center;
}

.pagination-container .page-numbers {
  padding: 0.3125rem 0.625rem;
  margin: 0 0.1875rem;
  border: 1px solid #ddd;
  text-decoration: none;
}

.pagination-container .page-numbers.current {
  background-color: #f5f5f5;
}
/* TS & CS */
  /* LIST */
/* Make sure all nested ordered lists use numbers, not bullets */
ol ol {
  list-style-type: decimal !important;
}

/* If you specifically want the 1.1, 1.2 format for sublists */
ol {
  counter-reset: item;
}

ol > li {
  counter-increment: item;
}

ol ol > li {
  display: block;
}

ol ol > li:before {
  content: counters(item, ".") ". ";
  margin-left: -20px;
}

/* Fix indentation and margins */
ol ol {
  margin-top: 5px;
  margin-bottom: 5px;
}

/* Remove default bullets if they still appear */
ol ol {
  list-style: none !important;
}

/* FOOTER ITEMS */

  /* Position the footer logo and back to top section */
  footer.wp-block-template-part{
  margin-top:0!important;
  }
  
.footer-logo-btt {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  position: relative;
}

/* Logo positioning - align with menu */
.footer-logo-btt figure:first-child {
  margin-left: 5%; /* Adjust this value to match your menu left edge */
  margin-top: 10px; /* Adjust to align top with arrow tip */
}

/* Center the back to top section */
.backToTop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ensure the arrow is properly positioned */
.backToTop figure {
  display: flex;
  justify-content: center;
  margin: 0!important;
}
.credit-menu li{
  border-right: 1px solid white!important;
  padding-left:2rem!important;
  padding-right:2rem!important;
  }
  
  .credit-menu li:last-child {
border: 0!important;
    }
      
  .copyright {
  border-right: 1px solid white!important;
  padding-left:2rem!important;
  padding-right:2rem!important;
  }

  
/* FOOTER (SMALL) CONTACT FORM */

.small-contact-form {
  width: 100%;
  margin: 0 auto;
}

/* Field container styling */
.small-contact-form .form-field {
  margin-bottom: 1.25rem; /* Changed from fixed pixels to rem */
  width: 100%;
}

/* Label styling */
.small-contact-form label {
  display: block;
  font-size: 1rem; /* Changed from fixed pixels to rem */
  color: white;
}

/* Input field styling - equal width for all fields */
.small-contact-form input[type="text"],
.small-contact-form input[type="email"],
.small-contact-form textarea {
  width: 100%;
  padding: 0.625rem; /* Changed from fixed pixels to rem */
  border: 0.0625rem solid #ccc; /* Changed from fixed pixels to rem */
  border-radius: 0;
  box-sizing: border-box;
  font-size: 1rem; /* Changed from fixed pixels to rem */
}

/* Message area styling */
.small-contact-form textarea {
  height: 9.375rem; /* Changed from fixed pixels to rem */
  resize: none;
  font-family: "Poppins, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif"!important; 
}

/* Submit button styling */
.small-contact-form .form-submit {
  margin-top: 1.5625rem; /* Changed from fixed pixels to rem */
}

.small-contact-form input[type="submit"] {
  background-color: #d23836;
  color: white;
  border: none;
  padding: 0.75rem 2.5rem; /* Changed from fixed pixels to rem */
  font-size: 1rem; /* Changed from fixed pixels to rem */
  cursor: pointer;
  border-radius: 12px;
  text-transform: uppercase;
}

.small-contact-form input[type="submit"]:hover {
  background-color: #2C2E35;
}

.basic-contact-form  .wpcf7-response-output{
  color: white;
  }

/* PATTERNS AND OTHER COMPONENTS */

/* Grid Layout for Sitemap */
.site-html-sitemap {
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1.875rem;
}

/* Place headings and their corresponding lists in the correct grid areas */
.site-html-sitemap h2:nth-of-type(1) {
  grid-column: 1;
  grid-row: 1;
}

.site-html-sitemap .wp-block-page-list {
  grid-column: 1;
  grid-row: 2;
}

.site-html-sitemap h2:nth-of-type(2) {
  grid-column: 2;
  grid-row: 1;
}

.site-html-sitemap .wp-block-latest-posts {
  grid-column: 2;
  grid-row: 2;
}

.site-html-sitemap h2:nth-of-type(3) {
  grid-column: 3;
  grid-row: 1;
}

.site-html-sitemap .wp-block-categories {
  grid-column: 3;
  grid-row: 2;
}

/* Ensure headings are aligned properly */
.site-html-sitemap h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  height: 2.5rem; /* 40px converted to rem */
  display: flex;
  align-items: center; /* Vertically center the text within the height */
}

/* Style the lists */
.site-html-sitemap .wp-block-page-list,
.site-html-sitemap .wp-block-latest-posts,
.site-html-sitemap .wp-block-categories {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* Add some spacing between list items */
.site-html-sitemap .wp-block-page-list li,
.site-html-sitemap .wp-block-latest-posts li,
.site-html-sitemap .wp-block-categories li {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

ul .children {
  padding-top: .5rem;
  margin-top: .5rem;
}
/* Style nested items (for hierarchical pages) */
.site-html-sitemap .wp-block-page-list ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  border-left: 1px solid #f0f0f0;
}


/* -----------------MEDIA QUERIES---------------------------*/

@media (max-width: 480px) { 
  .category-pages-grid {
      grid-template-columns: 1fr !important;
      gap: 1rem;
  }
  
  .page-title {
      font-size: 1.125rem;
  }
}

@media screen and (max-width: 768px){

  /* Hero Area */

   /* Add a colored overlay - change the color to your preference */
.wp-block-cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 46, 53, 0.4); /* Deep blue tint with 40% opacity */
  z-index: 1; /* Position it above the image but below the content */
  pointer-events: none; /* Allow clicks to pass through */
}
  
  .menu-group {
  position: fixed!important; 
  top: 10px!important;
  right: 10px!important;
  z-index: 1!important;
  }
  
  .header-row{
  margin-top: 10px!important;
  }

  .cover-copy{
    padding: 0px!important;
    padding-top: 4rem!important;
    margin:auto;
    width:70vw;
    }
    
    .hero-title {
    font-size: 1.5em!important;
    }
    
    .hero-excerpt p{
      font-size: 1rem!important;

    }
    
      
    .scroll-button, .backToTop{
    Display: none!important;
     }
  
  h1 {
    font-size: 2rem;
  }
  #modal-1-content{
      padding-top:30%;
      z-index: 1001!important;
  }
  .brown-bg>div:nth-child(1){
  padding: 5%!important;
  }
  
  
  .footer-logo-btt {
      justify-content: center;
    }
    
  .footer-logo-btt > figure:first-child {
  position: relative;
  margin: 0 5%!important;
    }
  
  .footer-menu, .mobile-menu{
    display: none!important;
  }
     
   .copyright {
    border-right: 1px solid white!important;
    padding: 0rem .5rem!important;
    }

    .contact-form .form-row {
      flex-direction: column;
      gap: 10px;}


  nav.credit-menu{
  padding-left: 1em;
  }
   ul.credit-menu{
    --navigation-layout-direction: column!important;
    --navigation-layout-align: flex-start!important;
   }
   .credit-menu li{
    padding: 0rem!important;
    border: 0!important;
 }

    /* Further Info */

    .wp-block-columns{
      margin-top: 0!important;
    }
    .info-columns .wp-block-column{
      margin-top: 0!important;
      padding: 0!important;
    }
    
    .wp-block-column{
      margin-top: 3rem!important;
    }

    /* Small contact form for larger screens with the first two fields side by side */
    .small-contact-form {
        display: flex;
        flex-wrap: wrap;
        gap: 1.25rem; /* Gap between elements */
    }
    
    .small-contact-form .form-field:nth-child(1),
    .small-contact-form .form-field:nth-child(2) {
        flex: 1;
        min-width: 45%;
        margin-bottom: 0rem;
    }

    /* Full Contact Form */

    .full-blue{
      padding: 5% 5% 0% 5%;
    }
    
    /* Reduce space specifically between the name/email fields and textarea */
    .small-contact-form .form-field:nth-child(3) {
        margin-top: 0rem!important;
        margin-bottom: 0;
    }
    
    .small-contact-form .form-field:nth-child(3),
    .small-contact-form .form-submit {
        width: 100%;
    }

    /* Query Grid */
   
 /* Convert grid to scrollable row */
 .category-pages-grid {
  display: flex !important; /* Override grid display */
  grid-template-columns: none !important; /* Remove grid columns */
  flex-wrap: nowrap !important; /* Prevent wrapping */
  overflow-x: auto; /* Enable horizontal scrolling */
  gap: 1rem; /* Reduce gap for mobile */
  padding-bottom: 1rem; /* Space for scrollbar */
  scroll-snap-type: x mandatory; /* Improve scroll behavior */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Hide scrollbar but keep functionality */
.category-pages-grid::-webkit-scrollbar {
  height: 0;
  width: 0;
  background: transparent;
}

/* Style individual items in the row */
.category-pages-grid > * {
  flex: 0 0 80%; /* Each item takes 80% of screen width */
  min-width: 250px; /* Minimum width */
  max-width: 350px; /* Maximum width */
  scroll-snap-align: start; /* Snap to start of each item */
}

/* Adjust featured image height for mobile */
.page-featured-image {
  height: 10rem; /* Slightly smaller on mobile */
}

/* Add scroll indicator */
.category-pages-grid:after {
  content: "";
  flex: 0 0 1rem; /* Create space at the end */
}

/* Site Map */

.site-html-sitemap {
  grid-template-columns: 1fr;
}

.site-html-sitemap h2:nth-of-type(1),
.site-html-sitemap h2:nth-of-type(2),
.site-html-sitemap h2:nth-of-type(3),
.site-html-sitemap .wp-block-page-list,
.site-html-sitemap .wp-block-latest-posts,
.site-html-sitemap .wp-block-categories {
  grid-column: 1;
}

.site-html-sitemap h2:nth-of-type(1) { grid-row: 1; }
.site-html-sitemap .wp-block-page-list { grid-row: 2; }
.site-html-sitemap h2:nth-of-type(2) { grid-row: 3; }
.site-html-sitemap .wp-block-latest-posts { grid-row: 4; }
.site-html-sitemap h2:nth-of-type(3) { grid-row: 5; }
.site-html-sitemap .wp-block-categories { grid-row: 6; }

.site-html-sitemap {
  grid-template-columns: 1fr;
}

.site-html-sitemap h2:nth-of-type(1),
.site-html-sitemap h2:nth-of-type(2),
.site-html-sitemap h2:nth-of-type(3),
.site-html-sitemap .wp-block-page-list,
.site-html-sitemap .wp-block-latest-posts,
.site-html-sitemap .wp-block-categories {
  grid-column: 1;
}

.site-html-sitemap h2:nth-of-type(1) { grid-row: 1; }
.site-html-sitemap .wp-block-page-list { grid-row: 2; }
.site-html-sitemap h2:nth-of-type(2) { grid-row: 3; }
.site-html-sitemap .wp-block-latest-posts { grid-row: 4; }
.site-html-sitemap h2:nth-of-type(3) { grid-row: 5; }
.site-html-sitemap .wp-block-categories { grid-row: 6; }

/* Google Reviews */

.reduce-title{
  font-size: 2em!important;
}

   /* Adjust review size on smaller screens */
   #testimonial-fix .wp-gr .grw-review {
    flex: 0 0 90% !important;
    min-width: 250px !important;
    max-width: 500px !important;
  }
  
  /* Fix the Google badge position - these are global */
  .wp-gr .wp-google-badge-fixed {
    position: fixed !important;
    right: 10px !important;
    bottom: 10px !important;
    max-width: 100px !important;
    z-index: 100 !important;
  }
  
  .wp-gr .wp-google-badge_left-fixed {
    position: fixed !important;
    left: 10px !important;
    bottom: 10px !important;
    max-width: 100px !important;
    z-index: 100 !important;
  }
  
  /* Ensure parent container respects device width */
  #testimonial-fix.is-nowrap {
    flex-wrap: wrap !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #testimonial-fix .wp-gr .grw-btns {
    display: none !important;
  }

  #testimonial-bg{
    padding-bottom: 160px !important;
  }

}


@media screen and (min-width: 769px) and (max-width: 1024px){

  .wp-block-cover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 46, 53, 0.4); /* Deep blue tint with 40% opacity */
    z-index: 1; /* Position it above the image but below the content */
    pointer-events: none; /* Allow clicks to pass through */
  }
    
  .menu-group {
    position: fixed!important; 
    top: 10px!important;
    right: 10px!important;
    z-index: 1!important;
    }
    
  .header-row{
    margin-top: 10px!important;
    }
  
  .cover-copy{
      padding: 0px!important;
      padding-top: 8rem!important;
      margin:auto;
      width:60vw;
      }
      
  .hero-title {
      font-size: 2.5em!important;
      }
      
  .hero-excerpt p{
        font-size: 1.75rem!important;
  
      }
  
  
  .credit-menu li {
        padding: 0!important;
        padding: 0rem 1rem 0rem 1rem!important;

     }

  .copyright{
      padding: 0!important;
      padding-right: 1rem!important;


     }
  .scroll-button, .backToTop{
      Display: none!important;
       }

}