/*
Theme Name: Kroovelised
Theme URI: https://kroovel.com
Author: Chris Mason
Author URI: https://orangewidow.com
Description: Custom Gutenberg theme for Kroovel Ltd websites.
Version: 1.0
Text Domain: kroovelTags: custom-theme,
gutenberg,
seo-friendly,
fast
*/

/* --- Variables --- */
:root {
    --header-footer-bg: #222e36; /* Dark blue/charcoal for header and footer */
    --main-content-bg: #f3f2f6; /* Off-white for main content area */
    --text-color-dark: #333;    /* Dark text for off-white background */
    --text-color-light: #fff;   /* Light text for dark backgrounds */
    --link-color: #47b647;      /* Default link color Green */
    --link-hover-color: #ed751b; /* Link hover color Orange */
	--btn-bg-color: #47b647; /* Button background color Green */
	--btn-bg-hover-color: #259c37; /* Button background hover color darker Green */

    /* Define your max content width */
    --content-max-width: 1200px; /* Example max width for main content */
    --content-padding: 2rem;     /* Padding around main content */
    --header-height: 80px;       /* Approximate height for header */
}

/* Reset margins and paddings for common elements */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
}

/* --- Font Face Declarations --- */
@font-face {
	font-family: 'Gotham';
	src: url('fonts/Gotham-Book.woff2') format('woff2'),
		 url('fonts/Gotham-Book.woff') format('woff');
	font-weight: n;
	font-style: normal;
}

/* --- Global & Base Styles --- */
/* A more intuitive box-sizing model. */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    /* Smooth scrolling for anchor links */
    scroll-behavior: smooth;
    /* Prevents font size inflation on mobile devices */
    -webkit-text-size-adjust: 100%;
	font-size: 16px; /* This is the root font size */
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	font-size: 18px;
	font-weight: normal;
    line-height: 1.6;
    color: var(--text-color-dark);
	background-attachment: scroll; /* Default to static for mobile */
    background-color: var(--main-content-bg); /* Default background for entire page */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh; /* Ensure body covers viewport for background */
    display: flex;
    flex-direction: column; /* For sticky footer layout */
}

/* Make images responsive by default */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}
img.attachment-medium.wp-post-image {
	aspect-ratio: 300 / 158;
	height: auto;
}
/* PART 1 - Before Lazy Load */
img[data-lazyloaded]{
    opacity: 0;
}
/* PART 2 - Upon Lazy Load */
img.litespeed-loaded{
    -webkit-transition: opacity .5s linear 0.5s;
    -moz-transition: opacity .5s linear 0.5s;
    transition: opacity .5s linear 0.5s;
    opacity: 1;
}
/* Reserve space for the main slider image to prevent CLS */
.perf-slider__slide picture {
  display: block;
  aspect-ratio: 1009 / 399; /* The aspect ratio of your desktop images */
}


/* --- Typography --- */

h1, h2, h3, h4, h5, h6 {
    font-family: "Gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	font-size: 18px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #111;
}

h1 {
	font-size: 3.2rem;
}
h1, h1.page-title:not(.intro-box h1){
	font-size: 3.2rem;
    margin-top: 3rem;
}

h2 {
	font-size: 2.5rem;
    border-left: 5px solid var(--link-hover-color);
    padding-left: 15px;
    margin-top: 3rem;
}
h3 {
	font-size: 2.15rem;
    border-left: 4px solid var(--link-hover-color);
    padding-left: 15px;
    margin-top: 2.5rem;
}
h4 {
	font-size: 1.8rem;
    border-left: 3px solid var(--link-hover-color);
    padding-left: 15px;
    margin-top: 2.5rem;
}
h5 {
	font-size: 1.45rem;
    border-left: 2px solid var(--link-hover-color);
    padding-left: 15px;
    margin-top: 2rem;
}
h6 {
	font-size: 1.25rem;
    border-left: 1px solid var(--link-hover-color);
    padding-left: 15px;
    margin-top: 2rem;
}

.faq-section h2, .faq-section h3, .faq-section h4, .faq-section h5, .faq-section h6 {
	border-left: none !important;
	padding-left: 0;
}


p, .taxonomy-description {
    margin-bottom: 1.25rem;
	padding: 0 1.5rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
	text-decoration-color: var(--main-content-bg);
}

a:hover {
    color: var(--link-color);
    text-decoration: underline;
	text-decoration-color: var(--link-hover-color);
	text-decoration-thickness: 0.2rem;
    transition: text-decoration-color 0.2s ease-in-out;
}

strong, b {
    font-weight: bold;
}

em, i {
    font-style: italic;
}

ul, ol {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
	margin-left: 2rem;
    padding-left: 1.5rem; /* Indent lists */
	list-style: none;
}

li:not(.thumbnail-item, ul.spec-list li, .menu-item, ol.breadcrumbs li, .page_item) {
    margin-bottom: 0.75rem;
}

li:not(.thumbnail-item, ul.spec-list li, .menu-item, ol.breadcrumbs li, .page_item){
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

li:not(.thumbnail-item, ul.spec-list li, .menu-item, ol.breadcrumbs li, .page_item, ul.detailed-child-list li)::before {
    content: '';/*\279C*/
    position: absolute;
    left: 0;
    top: 0.5rem;
	width: 10px;
	height: 10px;
	border: 2px solid var(--link-color);
	border-radius: 50%;
}

blockquote {
    border-left: 4px solid #ccc;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #555;
}

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    background-color: #f8f9fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

pre {
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

hr.wp-block-separator {
	background-color: #e0e0e0 !important;
	border-color: #e0e0e0 !important;
}


/* --- Forms & Buttons --- */

input, button, textarea, select {
    font: inherit; /* Ensure form elements inherit body font */
    margin: 0;
}

button, input[type="button"], input[type="submit"], input[type="reset"] {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
}

button:hover, input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover {
    background-color: #0056b3;
}

button:active, input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active {
    transform: scale(0.98);
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999; /* Ensure it's on top */
    background-color: var(--link-color);
    color: var(--text-color-light);
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
}

.skip-to-content:focus {
    position: static;
    width: auto;
    height: auto;
}

/* --- Shrinking Header Styles --- */

/* Style for the main header element */
.site-header {
    background-color: var(--header-footer-bg);
    color: var(--text-color-light);
    padding: 0 var(--content-padding); /* Padding for the full-width header */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Subtle shadow for depth */
    transition: padding 0.3s ease-in-out;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* We target the logo image to control its size */
.site-header .site-logo img {
    transition: max-height 0.3s ease-in-out;
    /* Set an initial max-height for the logo */
    max-height: 64px;
	height: auto; 
}

.site-header.shrunken,
.site-header.shrunken .header-inner {
    min-height: 0 !important;
}

.site-header.shrunken .site-logo img {
    /* Set a smaller max-height for the logo in the shrunken state (50% of original) */
    max-height: 32px;
    height: auto;
}

.site-header.shrunken .site-logo-subhead {
    transition: font-size 0.3s ease-in-out;
	font-size: 0.675rem;
}

.site-header.shrunken .site-logo {
    transition: padding 0.3s ease-in-out;
    padding: 0.5rem 0;
}

.site-header.shrunken .main-navigation li a {
    padding: 0.25rem 0;
    transition: padding 0.3s ease-in-out;
}

/* If you have the admin bar, we need to adjust the header's top position */
.admin-bar .site-header {
    top: 32px;
}

/* --- Header Styling --- */
.header-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--header-height); /* Ensure minimum height */
    padding: 0 var(--content-padding); /* <--- AMENDED: Added padding here for inner content */
}

.site-logo {
    /* Styles for your logo (e.g., img, h1 with text) */
    margin: 0; /* Remove default margins */
    padding: 1rem 0;
    max-width: 100%; /* Ensures the image doesn't overflow its parent container */
    height: auto;    /* Maintains the aspect ratio of the image */
    display: block;  /* Helps prevent extra space below the image, especially if it's in a block-level element */
    transition: padding 0.3s ease-in-out;
}

.site-logo a {
    color: var(--text-color-light);
    text-decoration: none;
    font-size: 1.8rem; /* Example font size for logo text */
    font-weight: bold;
}

.site-logo-subhead {
    color: var(--text-color-light);
    text-decoration: none;
	text-align: center;
    font-size: 1.325rem; /* Example font size for logo text */
    font-weight: bold;
    margin: 0;
    padding: 0;
	transition: font-size 0.3s ease-in-out;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem; /* Space between menu items */
}

.main-navigation li a {
    color: var(--text-color-light);
	font-size: 1.3rem;
    font-family: "Gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    transition: color 0.3s ease-in-out;
    transition: padding 0.5s ease-in-out;
	text-decoration-color: var(--header-footer-bg);
	text-underline-offset: 0.2rem;
}

.main-navigation li a:hover,
.main-navigation li a:focus {
    color: var(--link-color); /* Highlight on hover/focus */
    text-decoration: underline;
	text-decoration-color: var(--link-hover-color);
	text-decoration-thickness: 0.2rem;
    transition: text-decoration-color 0.3s ease-in-out;
	text-underline-offset: 0.2rem;
}

/* --- CTA --- */

#sticky-form-container {
    /* --- Positioning --- */
    position: -webkit-sticky; /* For Safari */
    position: sticky;
	top: 124px;
    left: 0;
    width: 100%;
    z-index: 100; /* Lower than header (101), higher than content. */

    /* --- Appearance --- */
    background-color: var(--main-content-bg);
    /* A soft shadow adds depth and separation from the content below. */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 1rem 2rem 1.65rem 2rem; /* More padding for a cleaner look */
    box-sizing: border-box;

    /* --- The Fade Effect --- */
    -webkit-mask-image: linear-gradient(to bottom, black 83%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 83%, transparent 100%);
}


#sticky-form-container.shrunken {
	top: 62px !important;
}



/* Adjust header for the admin bar */
body.admin-bar header.site-header {
    top: 32px;
}

#mini-cta-desktop-form {
    max-width: 1200px; /* Or your site's main content width */
    margin: 0 auto; /* This centers the form area */
}

#mini-cta-desktop-form #initial-fields,
#mini-cta-desktop-form #extra-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end; /* Aligns labels/inputs nicely */
    justify-content: center;
    gap: 1.25rem; /* A bit more space between fields */
}

#sticky-form-container .cta-label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #444;
    font-weight: 500;
}

#sticky-form-container .cta-input {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px 12px;
    margin-top: 6px;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    transition: all 0.2s ease-in-out;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

/* Style for when a user clicks into or hovers over an input */
#sticky-form-container .cta-input:focus,
#sticky-form-container .cta-input:hover {
    outline: none;
    border-color: var(--link-color); /* Use the site's green accent color */
    box-shadow: 0 0 0 3px rgba(45, 183, 66, 0.15);
}

#sticky-form-container button {
    background-color: var(--link-color);
    color: var(--text-color-light);
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 44px; /* Matches the approximate height of the inputs for alignment */
    line-height: 44px;
}

#sticky-form-container button:hover {
    background-color: #259c37; /* A slightly darker green for hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#sticky-form-container button:active {
    transform: translateY(0);
    box-shadow: none;
}

#result {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--link-color);
    padding-top: 1.5rem;
    margin-bottom: 0;
}

    /* --- General Form Layouts --- */
    #mini-cta-desktop-form, #mini-cta-mobile-form {
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
    }
    #mini-cta-desktop-form #initial-fields,
    #mini-cta-desktop-form #extra-fields {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: center;
        gap: 1.25rem;
    }
    
    /* --- Styles from original kroovel-forms.css --- */
    #get-a-quote-form, #contact-form {
        max-width: 800px;
        width: 100%;
        text-align: left;
        margin: 2rem auto;
        padding: 0 1rem;
        box-sizing: border-box;
    }
     #get-a-quote-form #initial-fields, #contact-form #initial-fields {
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap; /* Allow items to wrap */
        justify-content: space-between;
        gap: 1.5rem; /* This now acts as row and column gap */
    }

    /* --- Labels & Inputs --- */
    .cta-label {
        display: flex;
        flex-direction: column;
        font-size: 16px;
        color: #333;
        font-weight: 500;
        text-align: left;
    }
    /* Specific styles for two-column layout on Quote/Contact forms */
    #get-a-quote-form .cta-label, #contact-form .cta-label {
        flex: 1 1 calc(50% - 1rem); /* Two columns with space in between */
        box-sizing: border-box;
    }
    /* Make the message textarea and submit wrapper full-width */
    #contact-form label[for="message"],
    #get-a-quote-form .submit-wrapper, 
    #contact-form .submit-wrapper {
        flex-basis: 100%;
    }

    .cta-label {
        display: flex;
        flex-direction: column;
        font-size: 16px;
        color: #333;
        font-weight: 500;
        text-align: left;
    }
    .cta-input {
        padding: 10px 12px;
        margin-top: 6px;
        font-size: 15px;
        border: 1px solid #ccc !important;
        border-radius: 5px !important;
        background-color: #f9f9f9;
        color: #333;
        transition: all 0.2s ease-in-out;
        box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    }
    textarea.cta-input {
        min-height: 150px;
        resize: vertical;
    }
    .cta-input:focus, .cta-input:hover {
        outline: none;
        border-color: var(--link-color) !important;
        box-shadow: 0 0 0 3px rgba(45, 183, 66, 0.15);
    }
    .input-error {
        border-color: #d9534f !important;
        background-color: #fff2f1;
    }
    .input-error:focus {
        box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.2);
    }

    /* --- Buttons --- */
    #sticky-form-container button, #get-a-quote-form button, #contact-form button {
        background-color: var(--link-color);
        color: #ffffff;
        font-weight: bold;
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 0 24px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.2s ease;
        height: 44px;
        line-height: 44px;
    }
    #sticky-form-container button:hover, #get-a-quote-form button:hover, #contact-form button:hover {
        background-color: #259c37;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    #get-a-quote-form .submit-wrapper, #contact-form .submit-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }
    #get-a-quote-form button, #contact-form button {
        width: 70%;
        max-width: 400px;
    }
    
    /* --- Result Messages & Animation --- */
    @keyframes blurIn {
        from { filter: blur(5px); opacity: 0; }
        to { filter: blur(0); opacity: 1; }
    }
    #result, #result-whatsapp {
        text-align: center;
        font-weight: bold;
        font-size: 1.5em;
        animation: blurIn 1.5s ease-out;
    }
    #sticky-form-container #result, #sticky-form-container #result-whatsapp {
        color: var(--link-color);
        padding-top: 1.5rem;
    }
    #get-a-quote-form + #result, #contact-form + #result {
        color: #08591C;
        margin-top: 1.5rem;
    }

    /* --- Mobile & Checkbox Styles --- */
    .styled-checkbox, .styled-checkbox2 {
        display: inline-flex;
        align-items: center;
        cursor: pointer;
        gap: 0.5em;
        user-select: none;
        position: relative;
    }
    .styled-checkbox input[type="checkbox"], .styled-checkbox2 input[type="checkbox"] {
        opacity: 0 !important;
        position: absolute !important;
        width: 0 !important;
        height: 0 !important;
    }
    .styled-checkbox .checkmark, .styled-checkbox2 .checkmark2 {
        width: 24px;
        height: 24px;
        background-color: #fff;
        border: 2px solid #08591C;
        border-radius: 4px;
        display: inline-block;
        box-sizing: border-box;
        position: relative;
        transition: background 0.2s ease;
    }
    .styled-checkbox input[type="checkbox"]:checked + .checkmark::after, .styled-checkbox2 input[type="checkbox"]:checked + .checkmark2::after {
        content: '';
        position: absolute;
        left: 6px;
        top: 2px;
        width: 8px;
        height: 14px;
        border: solid #08591C;
        border-width: 0 3px 3px 0;
        transform: rotate(45deg);
    }
    .styled-checkbox .label-text, .styled-checkbox2 .label-text {
        color: #444;
        font-size: 0.9em;
    }
    .tall {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
		padding: 0.5rem;
    }
    .half {
        flex: 1;
        display: flex;
        justify-content: center;
        width: 100%;
    }

/* --- CTA End --- */

/* --- Call to Action Phone Number Styling (Absolute Position) --- */

.phone-button-container_home {
  /* This is the key: it pulls the container UPWARDS, visually
     placing it over the bottom of the header or top of the content.
     Adjust the -30px value until it sits exactly where you want it. */
  margin-top: 5rem;
  margin-bottom: -5rem;

  /* This ensures the button inside can be centered and sits on top */
  position: relative;
  z-index: 20; /* Higher than the header's z-index if necessary */
  text-align: center; /* This centers the button horizontally */
}

/* This is the main container for the link */
.custom_phone_head_home {
  /* Takes the element out of the normal document flow */
  position: absolute;
  
  /* Center the container horizontally */
  left: 50%;
  transform: translateX(-50%);
  
  /* Position it at the bottom of the parent container */
  bottom: 20px; /* Adjust this value to control the space from the bottom */
  
  /* Ensure it has a width and the inner link can be centered */
  width: 100%;
  text-align: center;
  
  /* Make sure it sits on top of other elements if they overlap */
  z-index: 10;
}

/* --- The rest of your styling for the <a> tag remains the same --- */
.custom_phone_head_home a {
  display: inline-flex;
  align-items: center;
  background-color: var(--link-color);
  color: var(--text-color-light);
  padding: 0.5rem 1.2rem 0.6rem 1rem;
  margin: 0 1rem 0.25rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Add a default subtle shadow */
}

.custom_phone_head_home a:hover {
  background-color: #259c37;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.custom_phone_head_home a svg {
  margin-right: 10px;
}

.custom_phone_head_home a span {
  white-space: nowrap;
}

.phone-button-container_content {
  /* This ensures the button inside can be centered and sits on top */
  position: relative;
  z-index: 20; /* Higher than the header's z-index if necessary */
  text-align: center; /* This centers the button horizontally */
}

/* This is the main container for the link */
.custom_phone_head_content {
  /* Ensure it has a width and the inner link can be centered */
  width: 100%;
  text-align: center;
  
  /* Make sure it sits on top of other elements if they overlap */
  z-index: 10;
}

/* --- The rest of your styling for the <a> tag remains the same --- */
.custom_phone_head_content a {
  display: inline-flex;
  align-items: center;
  background-color: var(--link-color);
  color: var(--text-color-light);
  padding: 0.5rem 1.2rem 0.6rem 1rem;
  margin: 0 1rem 0.25rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Add a default subtle shadow */
}

.custom_phone_head_content a:hover {
  background-color: #259c37;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.custom_phone_head_content a svg {
  margin-right: 10px;
}

.custom_phone_head_content a span {
  white-space: nowrap;
}

/* =============================================================================
   KROOVEL: CUSTOM GUTENBERG BUTTON STYLES
   ============================================================================= */

/* --- Default Button State --- */
.wp-block-buttons {
	margin: 3rem;
}
.wp-block-button__link {
    /* Color & Appearance */
    background-color: var(--btn-bg-color); /* This uses your theme's main green color */
    color: var(--text-color-light) !important; /* Ensures text is always white */
    
    /* Sizing & Spacing */
    padding: 0.70rem 1.5rem 0.75rem 1.5rem;
    
    /* Shape & Font */
    border-radius: 1.5rem;
    text-decoration: none !important; /* Overrides any default link underline */
    font-size: 1.5rem; /* Adjusted slightly for better general use */
    font-weight: 600;
    
    /* Effects & Transitions */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    
    /* Fix for Gutenberg defaults */
    border: none;
}

/* --- Hover State --- */
.wp-block-button__link:hover {
    /* Darker green on hover */
    background-color: var(--btn-bg-hover-color); 
    
    /* Keeps text white on hover */
    color: var(--text-color-light) !important; 
    
    /* "Lift" effect on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* --- BREADCRUMB STYLING --- */

/* * 1. The Main Flexbox Container 
 * This targets your parent <div class="breadcrumb-phone-bar">
*/
.breadcrumb-phone-bar {
  display: flex;                  /* Activates Flexbox */
  flex-wrap: wrap;                /* Allows items to wrap onto the next line */
  justify-content: space-between;   /* Pushes children to opposite ends (left & right) */
  align-items: center;            /* Vertically aligns the breadcrumbs and button */
  gap: 1.5rem;                    /* Adds space between items, especially when they wrap */
  padding: 0.75rem 1.5rem;        /* Adds some spacing around the whole bar */
  border-bottom: 1px solid #e0e0e0; /* A subtle line for visual separation */
}


/* * 2. The Breadcrumbs Wrapper
 * Targets <div class="breadcrumbs-wrapper">
*/
.breadcrumb-phone-bar .breadcrumbs-wrapper {
  flex-grow: 1; /* Allows the breadcrumbs to take up the available space on the left */
}

/* Cleanup for the breadcrumb list itself to remove default browser styles */
.breadcrumb-phone-bar .breadcrumbs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Allows individual breadcrumb links to wrap if needed */
}

.breadcrumb-phone-bar .breadcrumbs li {
  margin-right: 0.5em; /* Space between breadcrumb items */
}


/* * 3. Phone Button Styling 
 * Targets the button and its containers
*/
.phone-button-container-inline {
  display: flex;         /* Activates flexbox layout */
  align-items: center;   /* Vertically centers the buttons */
  gap: 10px;             /* Adds a 10px space between the buttons (adjust as needed) */
  flex-wrap: wrap;       /* Allows buttons to wrap to the next line on very small screens */
}

/* This styles the actual <a> tag to look like a button */
.breadcrumb-phone-bar .custom_phone_head a {
  display: inline-flex;
  align-items: center;
  background-color: var(--link-color);
  color: var(--text-color-light);
  padding: 0.5rem 1.2rem 0.6rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap; /* Prevents the button text from wrapping */
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.breadcrumb-phone-bar .custom_phone_head a:hover {
  background-color: #259c37;
  transform: translateY(-2px); /* Slight lift on hover */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.breadcrumb-phone-bar .custom_phone_head a svg {
  margin-right: 8px; /* Space between icon and number */
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0 2rem;
    margin: 1rem 0 0.75rem 0;
    font-size: 1rem;
}

.breadcrumbs a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
	text-decoration-color: var(--main-content-bg);
	text-underline-offset: 0.2rem;
}

.breadcrumbs a:hover {
    color: var(--link-color);
    text-decoration: underline;
	text-decoration-color: var(--link-hover-color);
	text-decoration-thickness: 0.15rem;
    transition: text-decoration-color 0.3s ease-in-out;
	text-underline-offset: 0.2rem;
}

.breadcrumbs .separator {
    color: var(--text-color-dark);
}

.breadcrumbs .bread-current {
    color: var(--text-color-dark);
    font-weight: bold;
}

/* --- Main Content Area --- */
.site-main, .container {
	width: 100%;
    flex-grow: 1; /* Allows main content to expand and push footer down */
    position: relative; /* For z-index stacking with background */
    z-index: 1; /* Ensure content is above the body background */
    max-width: var(--content-max-width); /* <--- AMENDED: Constrain main content width */
    margin: 0 auto; /* <--- AMENDED: Center the main content */
    background-color: var(--main-content-bg); /* <--- AMENDED: Explicit background for content area */
    /*box-shadow: 0 0 15px rgba(0,0,0,0.05); /* Subtle shadow for depth on content block */
    min-height: calc(100vh - var(--header-height) - 150px);
}

.main-content-wrapper {
    padding: 0 var(--content-padding) 2rem var(--content-padding);
    background-color: transparent; /* <--- AMENDED: Main content area already has the background */    /*background-color: var(--main-content-bg); /* Explicit background for content area */
    box-shadow: none; /* <--- AMENDED: Removed shadow if site-main has one */
    min-height: calc(100vh - var(--header-height) - 150px); /* Adjust min-height as needed */    /*box-shadow: 0 0 15px rgba(0,0,0,0.05); /* Subtle shadow for depth */
    /* This calc is a rough estimate to ensure content pushes footer down properly.
       You may need to fine-tune based on your actual header/footer heights. */
}

.page-title {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-color-dark);
}

.intro-box {
	background-color: var(--header-footer-bg);
	padding: 2.2rem 3.5rem 1.5rem 3.5rem;
	margin: -3rem 0 3rem 0;
	border-top-right-radius: 5rem;
	border-bottom-left-radius: 5rem;
}

article.intro-box {
	margin: 0rem 0 3rem 0 !important;
}

.single-post .page-intro {
	background-color: var(--header-footer-bg);
	padding: 2.2rem 5rem 1.5rem 5rem;
	margin: -3rem 0 3rem 0;
}

.faq-section {
	background-color: var(--header-footer-bg);
	padding: 2.2rem 3.5rem 3.5rem 3.5rem;
	margin: 3rem 0;
	border-top-right-radius: 5rem;
	border-bottom-left-radius: 5rem;
}

.intro-box h1 {
	color: var(--text-color-light);
	font-size: 3.5rem;
	font-weight: bold;
	line-height: 5rem;
}

.faq-section h2 {
	color: var(--text-color-light);
	font-size: 2.8rem;
	text-decoration: none;
	font-weight: bold;
	line-height: 5rem;
	padding: 0;
	margin: 0 !important;
}

.faq-section h2::after {
    content: '';
    display: block;
    height: 0.3rem;
    background-color: var(--link-hover-color);
    width: 15%;
    margin-left: 0 !important;
    margin-right: auto !important;
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
}

h3.faq-question {
	color: var(--text-color-light);
	font-size: 2.15rem;
	text-decoration: none;
	font-weight: bold;
	line-height: 3rem;
	padding: 2.5rem 1rem 0 1rem;
	margin: 1rem 0 !important;
}

/* --- Vehicle Filter dropbox --- */

.make-filter {
    /* Optional styling for the filter container */
}

#make-filter-dropdown {
    /* Style your dropdown */
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.intro-box .title-underline {
    border: none;
    height: 0.3rem;
    background-color: var(--link-hover-color);
    width: 15%;
    margin-left: 0 !important;
    margin-right: auto !important;
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
}

.intro-box p, .single-post p.page-intro {
	color: var(--text-color-light);
	font-size: 1.5em;
	font-weight: normal;
}

.faq-answer {
	color: var(--text-color-light);
	font-size: 1.25em;
	font-weight: normal;
	padding: 0 1.5rem;
}

.grid-item-excerpt-subtle {
	font-size: 0.85em;
	margin-top: 0;
}

.location-context {
    color: var(--text-color-light);
	margin-top: -2.5rem !important;
    padding: 0 0 2.2rem 4rem !important;
    font-style: italic;
	background-color: var(--header-footer-bg);
}

/*
======================================================
NEW - Horizontal Scrolling Product Gallery
======================================================
*/

/* Wrapper for the featured image */
.product-gallery-featured {
    max-width: 900px; /* Set a max-width for the large image */
    margin: 0 auto 1.5rem auto; /* Center it and add space below */
}

/* The featured image itself */
#main-gallery-image {
    width: 100%;
    height: auto; /* This ensures the aspect ratio is always correct and never stretched */
    display: block;
    border-radius: 4px;
}

/* The thumbnail strip container */
.product-gallery-thumbnails {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* The list that holds the thumbnails */
.product-gallery-thumbnails .thumbnails-list {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

/* Each individual thumbnail item */
.product-gallery-thumbnails .thumbnail-item {
    display: inline-block;
    margin-right: 0.75rem;
    vertical-align: top;
}

/* The thumbnail image itself */
.product-gallery-thumbnails .thumbnail-item img {
    width: 110px;
    height: 85px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Active and hover states for thumbnails */
.product-gallery-thumbnails .thumbnail-item.is-active img {
    border-color: var(--link-hover-color);
    box-shadow: 0 0px 12px rgba(237, 117, 27, 1);
}
.product-gallery-thumbnails .thumbnail-item:not(.is-active) img:hover {
    border-color: var(--link-color);
    box-shadow: 0 0px 12px rgba(71, 182, 71, 1);
}

/* Hide the Gutenberg figcaption on thumbnails */
.wp-block-gallery figcaption {
    display: none !important;
}

/*
=========================================
CUSTOM SCROLLBAR STYLING
=========================================
*/

/* --- For Firefox --- */
.product-gallery-thumbnails {
  scrollbar-width: auto; /* Options are 'auto', 'thin', or 'none' */
  scrollbar-color: var(--header-footer-bg) #e0e0e0; /* thumb color, track color */
}


/* --- For Chrome, Safari, Edge, and other WebKit browsers --- */

/* 1. Set the size and background of the entire scrollbar area */
.product-gallery-thumbnails::-webkit-scrollbar {
  height: 14px; /* Makes the scrollbar 'bigger' and easier to grab */
}

/* 2. Style the "track" (the rail the bar slides on) */
.product-gallery-thumbnails::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

/* 3. Style the draggable "thumb" (the bar itself) */
.product-gallery-thumbnails::-webkit-scrollbar-thumb {
  background-color: var(--header-footer-bg); /* Use your theme's color */
  border-radius: 10px;
  border: 3px solid #f1f1f1; /* Creates a nice padding effect */
}

/* 4. Style the thumb on hover for better interactivity */
.product-gallery-thumbnails::-webkit-scrollbar-thumb:hover {
  background-color: #555; /* A slightly darker color on hover */
}

/* 5. Style the arrow buttons (Note: these are not always visible depending on OS) */
.product-gallery-thumbnails::-webkit-scrollbar-button {
    background: var(--header-footer-bg);
}

/* --- Product Gallery container --- */
article.single-post h1 {
	color: var(--text-color-light);
	font-size: 3.5rem;
	font-weight: bold;
	line-height: 5rem;
	background-color: var(--header-footer-bg);
	padding: 2.2rem 3.5rem 3.5rem 3.5rem;
	margin: 0 0 0 0;
	border-top-right-radius: 5rem;
}
article.single-post h1::after {
    content: '';
    display: block;
    height: 0.3rem;
    background-color: var(--link-hover-color);
    width: 15%;
    margin-left: 0;
    margin-right: auto;
    margin-top: 1rem;
    margin-bottom: 0;
}
.product-gallery {
	background-color: var(--header-footer-bg);
	padding: 2.2rem 3.5rem 2.5rem 3.5rem;
	margin: -3rem 0 3rem 0;
	border-bottom-left-radius: 5rem;
}

/* --- Image styling --- */
figure.wp-block-image {
	background-color: var(--header-footer-bg);
	padding: 2.2rem 2.2rem 0 2.2rem;
	margin: 3rem auto;
	border-radius: 1rem;
}
figure.nobox{
	background-color: transparent !important;
}
figure.nobox figcaption {
	color: var(--text-color-dark)
}

.wp-block-image {
    display: table;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.wp-block-image figcaption {
    text-align: center;
	color: var(--text-color-light);
	font-size: 1.5em;
	font-weight: normal;
}

/* --- Aircraft Specifications Styling --- */

/* The main container for the specs section */
.aircraft-specs {
    margin: 3rem auto; /* Adds vertical space to separate it from other content */
    padding: 2rem;
    background-color: #ffffff; /* A clean white background to lift it off the page */
    border: 1px solid #e9e9e9;
    border-radius: 8px; /* Softly rounded corners */
    box-shadow: 0 5px 20px rgba(0,0,0,0.06); /* A subtle shadow for depth */
}

/* The list container, using flexbox for alignment */
.aircraft-specs .spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;       /* Allows items to wrap onto the next line on smaller screens */
    justify-content: center; /* Center the items horizontally */
    gap: 1.5rem;           /* Consistent spacing between all items */
}

/* Each individual spec item (e.g., Passengers, Speed) */
.aircraft-specs .spec-list li {
    flex-basis: 200px;  /* Each item will try to be at least 200px wide */
    flex-grow: 1;       /* Allows items to grow and fill available space */
    text-align: center;
    padding: 1.25rem 1rem;
    background-color: var(--main-content-bg); /* Uses your theme's off-white color */
    border-radius: 6px;
    border-left: 4px solid var(--link-color); /* Uses your theme's green accent color */
    margin-bottom: 0;   /* Overrides the default li margin */
    transition: all 0.2s ease-in-out;
}

.aircraft-specs .spec-list li:hover {
    transform: translateY(-3px); /* A subtle lift effect on hover */
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-left-color: var(--link-hover-color); /* Uses your theme's orange on hover */
}

/* The label for each spec (e.g., "Passengers:") */
.aircraft-specs .spec-list li strong {
    display: block;
    font-size: 0.9rem;
    color: #555;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* The value for each spec (e.g., "8") */
.aircraft-specs .spec-list li span {
    display: block;
    font-family: 'Gotham', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--header-footer-bg); /* Uses your theme's dark blue/charcoal */
    line-height: 1.2;
}

/* --- taxonomy --- */
.taxonomy-archive-content {
	margin-bottom: 2.5rem;
}

/* --- Archive Vehicle(land) page styling --- */
/* Styling for the Vehicle Archive Page */

.archive-header {
    margin-bottom: 2rem;
}

.parent-category-group {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--header-footer-bg);
    border-bottom: 1px solid #e5e7eb; /* Keeping this for visual separation */


	border-top-right-radius: 3rem;
	border-bottom-left-radius: 3rem;

}

.category-header-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* User's Custom Title Styles */
.category-header-flex-container h2, .category-header-flex-container-locations h2 {
    margin: 0;
}

.category-header-flex-container h2 a, .category-header-flex-container-locations h2 a {
    color: var(--text-color-light);
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.2; /* Adjusted for better wrapping potential */
    text-decoration: underline;
    text-decoration-color: var(--header-footer-bg);
    text-decoration-thickness: 0.2rem;
    text-underline-offset: 0.5rem;
    word-break: break-word; /* Ensures long words can wrap */
}

.category-header-flex-container h2 a:hover, .category-header-flex-container-locations h2 a:hover {
    color: var(--link-color);
    text-decoration-color: var(--link-hover-color);
    transition: text-decoration-color 0.2s ease-in-out;
}


.category-info {
    flex-basis: 45%; /* Adjusted basis */
    flex-shrink: 0;
    min-width: 500px; /* User's width for desktop */
}

.category-description {
    font-size: 1.2rem;
    color: var(--text-color-light);
    line-height: 1.5;
    margin-top: 1.5rem;
}

.vehicle-image-scroller {
    overflow: hidden;
    flex-grow: 1;
    min-width: 0;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    padding: 10px 0;
}

.vehicle-image-scroller.is-centered {
    display: flex;
    justify-content: center;
    -webkit-mask: none;
    mask: none;
    padding: 0;
}

.vehicle-image-row {
    display: flex;
    flex-wrap: nowrap;
    padding: 10px 0;
}

.vehicle-image-row.is-scrolling {
    animation: scroll-left var(--scroll-duration, 60s) linear infinite;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.vehicle-thumbnail-link {
    flex-shrink: 0;
    position: relative;
    border: 2px solid transparent;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
    margin-right: 1rem;
}

.vehicle-image-scroller:hover .vehicle-image-row.is-scrolling {
    animation-play-state: paused;
}

.vehicle-thumbnail-link:hover {
    transform: scale(1.15);
    z-index: 10;
    border-color: var(--link-color);
    box-shadow: 0 0px 12px rgba(71, 182, 71, 1);
}

.vehicle-thumbnail-link img {
    display: block;
    height: 120px;
    width: auto;
    min-width: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/* --- Vehicle drop down --- */
.archive-header-flex, .archive-header-flex-locations {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem; /* Adjust as needed */
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
}

.archive-header-flex h1, archive-header-flex-locations h1 {
    margin-bottom: 0; /* Remove default bottom margin from h1 */
}

.make-filter {
	margin-top: 2rem;
}

#make-filter-dropdown {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--header-footer-bg);
    color: var(--text-color-light);
    border-radius: 6px;
    border: 2px solid var(--header-footer-bg);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.25rem;
    font-family: inherit;
    min-width: 260px;
    width: 100%;
    box-sizing: border-box;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23c5a575" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 1em 1em;
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

/* --- 6. Interactive States (Hover & Focus) --- */
#make-filter-dropdown:hover {
    border-color: var(--link-color); /* A gold/bronze color for a luxury feel on hover. */
}

/* Style for when the dropdown is clicked or tabbed to. */
#make-filter-dropdown:focus {
    border-color: var(--link-color);
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    outline: none;
}

/* Style the options within the dropdown menu (Note: support is limited on some browsers) */
#make-filter-dropdown option {
    background-color: var(--header-footer-bg);
    var(--text-color-light);
}

/* --- CSS for the brand logo grid --- */
.brand-logo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Responsive grid */
	gap: 20px; /* Space between logos */
	padding: 20px 0;
	list-style: none;
	margin: 0;
}
.brand-logo-grid-item a {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 15px;
	height: 100%;
	box-sizing: border-box;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-logo-grid-item a:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 15px rgba(0,0,0,0.07);
}
.brand-logo-grid-item img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
	max-height: 80px; /* Adjust max height as needed */
}

/* --- Vehicle grid --- */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
	margin-bottom: 2.5rem;
}
.vehicle-grid-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 5px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.vehicle-grid-item a:hover {
    transform: scale(1.05);
    z-index: 10;
    border-color: var(--link-color);
    box-shadow: 0 0px 12px rgba(71, 182, 71, 1);
}
.vehicle-grid-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.vehicle-grid-item .placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #f0f0f0;
}
.vehicle-grid-title {
    font-size: 1.2rem;
    padding: 15px;
    margin: 0;
    text-align: center;
    background-color: #f9f9f9;
}
.vehicle-image {
	overflow: hidden;
}
.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* cover or contain */
}

/* --- Login page --- */
body.login, #wp-auth-check {
	background-color: var(--header-footer-bg) !important;
}

#loginform {
	background-color: var(--main-content-bg) !important;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.login label {
	color: var(--text-color-dark) !important;
	font-weight: bold !important;
}

.login #backtoblog a,
.login #nav a {
	color: var(--link-color) !important;
}

.login #backtoblog a:hover,
.login #nav a:hover {
	color: var(--link-hover-color) !important;
}

.login .dashicons-translation {
	color: var(--text-color-light) !important;
}

#login h1 a {
	margin: 0;
	padding: 0 !important;
}

.login-tagline {
	color: var(--text-color-light);
	text-decoration: none;
	font-size: 1.2rem; /* Example font size for logo text */
	font-weight: bold;
	margin: -20px auto 0 auto;
	padding: 0;
	width: 100%;
	text-align: center;
}

/* =============================================================================
   KROOVEL REVIEW STYLING
   ========================================================================== */

/* Main container for a list of reviews */
.kroovel-reviews-container {
    display: grid;
    /* Creates a responsive grid of columns between 320px and 1fr wide */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.kroovel-reviews-widget {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* The summary text: "Rated 4.9 out of 5..." */
.kroovel-reviews-summary {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.kroovel-reviews-summary__text {
    font-size: 1.1em;
    color: #3c4043;
    margin: 0;
}

/* Individual Review Card */
.kroovel-review-card {
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 20px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Header section with avatar and author info */
.kroovel-review-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.kroovel-review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.kroovel-review-card__author-info {
    display: flex;
    flex-direction: column;
}

.kroovel-review-card__author-name {
    font-weight: 600;
    color: #202124;
}

.kroovel-review-card__date {
    font-size: 0.9em;
    color: #5f6368;
}

/* The star rating container */
.kroovel-review-card__rating {
    display: flex; /* Makes stars appear horizontally */
    margin-bottom: 12px;
}

/* The star SVG icon */
.kroovel-review-card__rating svg {
    fill: #F9BC05; /* Google's gold/yellow for stars */
}

/* The main review comment text */
.kroovel-review-card__comment {
    color: #3c4043;
    line-height: 1.6;
    margin: 0;
    /* Ensures the comment takes up available space before the reply */
    flex-grow: 1; 
}

/* The owner's reply section */
.kroovel-review-card__reply {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.95em;
}

.kroovel-review-card__reply-author {
    font-weight: 600;
    color: #202124;
    display: block;
    margin-bottom: 8px;
}

.kroovel-review-card__reply-text {
    color: #5f6368;
    line-height: 1.5;
    margin: 0;
}

/* Title for the associated reviews section */
.kroovel-associated-reviews__title {
    text-align: center;
    margin-bottom: 24px;
}
/* Styling for truncated text and "Read More" */
.kroovel-review-card__comment-wrapper {
    position: relative;
    flex-grow: 1; /* Helps align buttons in cards of different heights */
    display: flex;
    flex-direction: column;
}

.kroovel-review-card__comment--truncated {
    max-height: 80px; /* Adjust this value to show more/less text */
    overflow: hidden;
    position: relative;
    margin-bottom: 0 !important;
}

/* Fading effect for truncated text */
.kroovel-review-card__comment--truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

.kroovel-review-card__read-more {
    color: #5f6368;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    margin-top: 8px;
    align-self: flex-start; /* Aligns button to the left */
}

.kroovel-review-card__read-more:hover {
    text-decoration: underline;
}

/* Styling for the summary Google Logo */
.kroovel-reviews-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Styling for the "View All Reviews" button */
.kroovel-reviews__view-all-link {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    margin: 24px auto 0;
    padding: 12px 24px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    text-decoration: none;
    color: #3c4043;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
}

.kroovel-reviews__view-all-link:hover {
    background-color: #f8f9fa;
    border-color: #cdd1d5;
}



/* --- Footer Styling --- */
.site-footer {
    background-color: var(--header-footer-bg); /* Full width background */
    color: var(--text-color-light);
    padding: var(--content-padding) var(--content-padding) 0  var(--content-padding); /* Full-width padding */
    margin-top: auto;
    width: 100%; /* <--- ADDED: Ensure it spans full width */
}

.footer-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Stack elements vertically on mobile */
    align-items: center; /* Center items for single column */
    gap: 1.5rem; /* Space between sections in footer */
}

.footer-nav ul,
.social-icons ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

.footer-nav li a,
.social-icons li a {
    color: var(--text-color-light);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease-in-out;
	text-decoration-color: var(--header-footer-bg);
	text-underline-offset: 0.2rem;
}

.footer-nav li a {
    font-family: "Gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.footer-nav li a:hover,
.footer-nav li a:focus,
.social-icons li a:hover,
.social-icons li a:focus {
    color: var(--link-color); /* Highlight on hover/focus */
    text-decoration: underline;
	text-decoration-color: var(--link-hover-color);
	text-decoration-thickness: 0.2rem;
    transition: text-decoration-color 0.3s ease-in-out;
	text-underline-offset: 0.2rem;
}

.footer-rights {
    font-family: "Gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/*
==========================================================================
 Final Gallery Styles
==========================================================================
*/
.wp-block-gallery {
    background-color: var(--header-footer-bg);
    padding: 1rem;
    border-radius: 1rem;
    margin-top: 2em;
    margin-bottom: 2em;
}

.wp-block-gallery .wp-block-image {
    padding: 2.5rem;
}

/*
=========================================
RESPONSIVE MOBILE NAVIGATION
=========================================
*/

/* --- The Button Container --- */
/* This is the clickable area */
.mobile-nav-toggle {
    display: none; /* Still hidden by default on desktop */
    position: relative; /* Establishes a positioning context for the icon */
    z-index: 1000;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    border-radius: 5px;
}

.mobile-nav-toggle:hover {
    background-color: var(--link-color);
    outline: none;
}

.mobile-nav-toggle:focus {
    background-color: none;
    outline: none;
}

/* --- Hide the secondary mobile menu on desktop by default --- */
.mobile-secondary-nav {
    display: none;
}

/* --- The Icon Itself (The 3 Lines) --- */
/* This is the middle bar AND the anchor for the other two */
.hamburger-inner {
    /* Perfectly center this anchor element in the button */
    position: absolute;
    width: 30px;
    height: 3px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--text-color-light);
    border-radius: 4px;
    transition: background-color 0.1s 0.2s ease-in-out;
}

/* Create the top and bottom bars as pseudo-elements */
.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-color-light);
    border-radius: 4px;
    transition: transform 0.2s ease-in-out;
}

/* Position the top bar UP from the middle anchor */
.hamburger-inner::before {
    transform: translateY(-10px);
}

/* Position the bottom bar DOWN from the middle anchor */
.hamburger-inner::after {
    transform: translateY(10px);
}


/* --- The 'X' Animation --- */
/* 1. When active, make the middle bar invisible */
.mobile-nav-toggle.is-active .hamburger-inner {
    background-color: transparent;
    transition-delay: 0s;
}

/* 2. Move the top bar down to the center and rotate it */
.mobile-nav-toggle.is-active .hamburger-inner::before {
    transform: translateY(0) rotate(45deg);
}

/* 3. Move the bottom bar up to the center and rotate it */
.mobile-nav-toggle.is-active .hamburger-inner::after {
    transform: translateY(0) rotate(-45deg);
}


/* --- Responsive Adjustments (Mobile Specific) --- */
@media (max-width: 420px) {
	.intro-box {
		padding: 2.2rem 1rem 1rem 1rem !important;
		border-top-right-radius: 3rem;
		border-bottom-left-radius: 3rem;
	}
	h1 {
		font-size: 2.8rem !important;
		line-height: 3.3rem !important;
		margin-bottom: 20px;
		margin-top: 26px;
	}
	h2 {
		font-size: 2rem !important;
		line-height: 2.6rem !important;
	}
	.single-post p.page-intro {
		padding: 38px 20px 0px 20px !important;
	}
	p {
		padding: 0px 10px !important;
	}
	.wp-block-list {
		margin: 24px 0px !important;
	}
	.wp-block-image {
		padding: 1.2rem !important;
	}
	.faq-section {
		padding: 0.75rem !important;
	}
	.faq-question {
		padding: 20px 8px 0px 8px !important;
	}
	.faq-answer {
		padding: 0px 6px !important;
	}
	.wp-element-caption {
		margin: 12px 0px 0px 0px !important;
		line-height: 1.2 !important;
	}
	.faq-section {
		padding-bottom: 24px !important;
		border-top-right-radius: 3rem;
		border-bottom-left-radius: 3rem;
	}
	.faq-section h2 {
		font-size: 2.4rem;
		line-height: 4rem;
	}
	.footer-inner {
		padding-top: 10px !important;
	}
	.breadcrumb-phone-bar {
		padding-top: 0px !important;
	}
	.single-post h1 {
		padding: 1rem !important;
		border-top-right-radius: 3rem;
		border-bottom-left-radius: 3rem;
		font-size: 2.8rem !important;
	}
	.product-gallery {
		padding: 1.5rem 1.5rem 2.2rem 1.5rem !important;
	}
	.product-gallery-featured {
		margin-bottom: 12px !important;
	}
}
@media (max-width: 767px) {
    .header-inner,
    .main-content-wrapper,
    .footer-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }

	.header-inner {
		height: 60px !important;
		min-height: 60px !important;
		max-height: 60px !important;
		padding: 0px 20px !important;
	}

    .admin-bar .site-header {
        top: 46px;
    }

    .site-logo a {
        font-size: 1.5rem;
    }

    .main-navigation ul {
        gap: 0.25rem !important;
    }

	.intro-box {
		padding: 2.2rem 1.5rem 1.5rem 1.5rem;
	}

    h1.page-title {
        font-size: 2.25rem;
		line-height: 2.65rem;
    }

    .category-header-flex-container, .category-header-flex-container-locations {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .category-info {
        width: 100%;
        min-width: 0; /* This is the fix: It removes the minimum width constraint on mobile */
    }

    /* Optional: Reduce title font size on mobile for better aesthetics */
    .category-header-flex-container h2 a, .category-header-flex-container-locations h2 a {
        font-size: 2.5rem;
    }

  .breadcrumb-phone-bar {
    /* On mobile, stack them vertically and center them */
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
  }

    .vehicle-image-scroller {
        width: 100%;
    }

	#sticky-form-container {
		padding: 0.5rem 1rem 1rem 1rem !important;
	}

	#sticky-form-container.shrunken {
		top: 60px !important;
	}

	#mini-cta-desktop-form #initial-fields, #mini-cta-desktop-form #extra-fields {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
	}
	#mini-cta-desktop-form .cta-label {
		width: 100%;
	}
	#mini-cta-desktop-form button {
		width: 100%;
		margin-top: 0.25rem;
	}
	#sticky-form-container .cta-input {
		margin: 0px !important;
		padding: 4px 6px !important;
	}

    .footer-nav ul,
    .social-icons ul {
        flex-direction: column; /* Stack footer menu/social vertically */
        align-items: center;
        gap: 0.5rem;
    }
    /* Apply shrunken styles directly */
    .site-header .site-logo img {
        max-height: 32px;
    }

    .site-header .site-logo-subhead {
        font-size: 0.6rem;
    }

    .site-header .site-logo {
        padding: 0.5rem 0;
    }

    #sticky-form-container {
        top: 60px !important;
		transition: none !important;
    }

    /* Disable the transitions to prevent animations */
    .site-header,
    .site-header .site-logo img,
    .site-header .site-logo-subhead,
    .site-header .site-logo {
        transition: none !important;
    }
	#menu-header-menu {
		padding: 60px 20px 20px 20px !important;
	}
	#menu-header-menu li a, .mobile-secondary-nav ul a {
		padding: 4px 0px !important;
	}
	.mobile-secondary-nav {
		margin: 0px !important;
		padding: 0px !important;
	}
	.mobile-secondary-nav ul {
		padding: 0px 20px !important;
	}
}

/* --- Media Query for Tablet & Mobile --- */

/* These styles will apply to any screen 992px wide or smaller */
@media (max-width: 992px) {
    .site-header, .site-footer {
        padding: 0; /* Remove full-width padding as .site-wrapper takes care of it */
    }

    .header-inner, .footer-inner {
        padding: 0 var(--content-padding); /* Apply padding inside the inner elements */
    }

    /* Show the hamburger button */
    .mobile-nav-toggle {
        display: block;
    }

    /* Hide the original desktop navigation menu */
    .main-navigation ul {
        display: none;
    }

    /* Style the slide-out panel (which is the .main-navigation wrapper) */
    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 999;
        width: 300px;
        max-width: 80%;
        height: 100vh;
        background-color: var(--header-footer-bg);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        
        /* Hide it off-screen by default */
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

	.main-navigation ul li {
		margin: 0 !important;
	}

    /* When the menu is open, slide it into view */
    .main-navigation.is-open {
        transform: translateX(0);
    }

    /* Re-style the UL inside the slide-out panel */
    .main-navigation.is-open ul {
        display: flex; /* Make it visible again */
        flex-direction: column;
        padding: 2rem 2rem 2rem 2rem;
        align-items: flex-start;
        gap: 1rem;
    }
	.main-navigation.is-open .menu-header-menu-container ul {
        padding: 10rem 2rem 2rem 2rem;
    }


        #get-a-quote-form, #contact-form {
            width: 90%;
        }
        #get-a-quote-form .cta-label, #contact-form .cta-label {
            flex-basis: 100% !important;
        }

        /* --- New Collapsible Sticky Form Logic --- */
        #sticky-form-container {
			padding: 0.5rem 1rem 1rem 1rem !important;
            overflow: hidden; /* Prevent content from overflowing during transition */
            /* Add transition for the mask-image property */
            transition: -webkit-mask-image 0.5s ease-in-out, mask-image 0.5s ease-in-out;
        }

        /* Change the fade effect when the form is expanded */
        #sticky-form-container.form-expanded {
            -webkit-mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
            mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
        }

        #mini-cta-desktop-form #initial-fields, 
        #mini-cta-desktop-form #extra-fields,
        #mini-cta-mobile-form #initial-fields,
        #mini-cta-mobile-form #extra-fields {
            flex-direction: column;
            align-items: stretch;
            gap: 0; /* Set gap to 0 and manage with margin on expanded items */
        }

        /* Set transition on all children that will be animated */
        #sticky-form-container .cta-label,
        #sticky-form-container #initial-fields button,
        #sticky-form-container #initial-fields .tall { /* Added .tall to transitions */
            transition: max-height 0.5s ease-in-out, transform 0.5s ease-in-out, opacity 0.4s ease-in-out, margin 0.5s ease-in-out, padding 0.5s ease-in-out;
        }

        /* Hide all fields and the button initially, except the first label */
        #sticky-form-container .cta-label:not(:first-of-type),
        #sticky-form-container #initial-fields button,
        #sticky-form-container #initial-fields .tall { /* Added .tall to hide it */
            opacity: 0;
            transform: translateX(-50px);
            max-height: 0;
            padding-top: 0;
            padding-bottom: 0;
            margin-top: 0;
            margin-bottom: 0;
            overflow: hidden;
        }

        /* When the form is expanded, slide in the other fields */
        #sticky-form-container.form-expanded .cta-label:not(:first-of-type),
        #sticky-form-container.form-expanded #initial-fields button,
        #sticky-form-container.form-expanded #initial-fields .tall { /* Added .tall to show it */
            opacity: 1;
            transform: translateX(0);
            max-height: 100px; /* A value large enough to show the element */
            margin-top: 0.25rem; /* Restore vertical gap */
        }
        
        #mini-cta-desktop-form .cta-label,
        #mini-cta-mobile-form .cta-label {
            width: 100%;
        }
        #mini-cta-desktop-form button,
        #mini-cta-mobile-form button {
            width: 100%;
			margin-top: 0.5rem;
        }

	/*
	=========================================
	STYLING FOR SECONDARY MOBILE MENU
	=========================================
	*/

	/* When the slide-out panel has the 'is-open' class, make the secondary menu visible */
	.main-navigation.is-open .mobile-secondary-nav {
		display: block;
	}

	/* Wrapper for the secondary menu */
	.mobile-secondary-nav {
		margin-top: 0.5rem; /* Space above the secondary menu */
		padding-top: 0.5rem; /* Space below the dividing line */
	}

	/* The list and items themselves */
	.mobile-secondary-nav ul {
		list-style: none;
		padding: 0;
		margin: 0;
		display: flex;
		flex-direction: column;
		gap: 0.75rem;
	}

	.mobile-secondary-nav ul.mobile-secondary-menu {
		padding: 0 2rem;
	}

	/* Style the links to be slightly smaller */
	.mobile-secondary-nav li a {
		/* 1. Turn the link into a flex container */
		display: inline-flex;
		
		/* 2. Vertically align the icon and text to the middle */
		align-items: center;
		
		/* 3. Add a small space between the icon and the text */
		gap: 0.5em; /* Adjust this value for more/less space */
	}
	.mobile-secondary-nav li a  .phone-icon {
		/* Using 'em' makes the icon size relative to the link's font size */
		width: 1.1em;
		height: 1.1em;
	}
    /* Apply shrunken styles directly */
    .site-header .site-logo img {
        max-height: 32px;
    }

    .site-header .site-logo-subhead {
        font-size: 0.6rem;
    }

    .site-header .site-logo {
        padding: 0.5rem 0;
    }

    #sticky-form-container {
        top: 60px !important;
		transition: none !important;
    }

    /* Disable the transitions to prevent animations */
    .site-header,
    .site-header .site-logo img,
    .site-header .site-logo-subhead,
    .site-header .site-logo {
        transition: none !important;
    }
}