/*
Theme Name: JBS Tree Experts Custom
Author: Keith Picinic
Description: Custom lightweight theme built from scratch.
Version: 1.0
*/

/* Core Reset & Variables */
/* Core Reset & Variables */
:root {
    --primary-green: #34d330;    
    --top-bar-green: #30a52d;
    --dark-bg: #090e03;          
    --card-bg: #0d1405;          
    --text-white: #ffffff;
    --text-gray: #a5a8a2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* TOP BAR STYLING */
.top-bar {
    background-color: var(--top-bar-green);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-bar-social a {
    color: var(--text-white);
    text-decoration: none;
    margin-left: 5px;
}

/* MAIN NAVIGATION STYLING */
.main-nav {
    background-color: var(--dark-bg);
    padding: 15px 0;
    border-bottom: 1px solid #141f07;
}

.main-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: var(--primary-green);
    font-size: 24px;
    font-weight: 800;
}

.logo h2 span {
    color: var(--text-white);
}

/* Fixing the WordPress Menu Bullets & Layout */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--primary-green);
}

/* CTA BUTTON */
.btn-estimate {
    background-color: var(--primary-green);
    color: var(--text-white);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
    transition: background 0.3s ease;
}

.btn-estimate:hover {
    background-color: #5c8328;
}
/* HERO SECTION STYLING */
.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    color: var(--text-white);
}

.hero-title .highlight-green {
    color: var(--primary-green);
}

.hero-subtitle {
    font-size: 16px;
    color: #fff;
    max-width: 480px;
    margin-bottom: 35px;
    line-height: 1.5;
}

/* Styled Google Badge Row */
.google-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-flex;
}

.google-badge .g-logo {
    color: #ffffff;
    font-weight: bold;
    background: #4285F4;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    font-size: 12px;
}

.google-badge .stars {
    color: #ffb703; /* Gold/Orange stars */
    font-size: 18px;
    letter-spacing: 2px;
}

.google-badge .rating-text {
    font-size: 13px;
    color: var(--text-white);
}
/* SERVICES GRID STYLING */
.services-section {
    padding: 80px 0;
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px; /* Slightly wider gap to match larger cards */
}

/* Card Container Styling */
.service-card {
    background-color: var(--card-bg);
    border: 1px solid #1c2b0b;
    padding: 0 0 35px 0; /* Expanded bottom padding */
    text-align: center;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; 
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
}

/* Expanded Image Frame Styling */
.service-image-wrapper {
    width: 100%;
    height: 240px; /* Increased from 180px to make the pictures bigger */
    overflow: hidden;
    margin-bottom: 25px;
    border-bottom: 1px solid #1c2b0b;
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Fun hover effect: Zoom the picture slightly when hovering the card */
.service-card:hover .service-image-wrapper img {
    transform: scale(1.05);
}

/* Card Heading - Bigger and bolder */
.service-card h3 {
    font-size: 18px; /* Increased from 16px */
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    color: var(--text-white);
    padding: 0 25px;
    min-height: 48px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Description Text - Larger for readability */
.service-card p {
    font-size: 14px; /* Increased from 13px */
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 0 25px;
    flex-grow: 1; 
}

/* Service Link / Button Styling */
.service-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px; /* Increased slightly */
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #ffffff;
}

/* Responsive Fix: Stack cards neatly on tablets/mobile screens */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
/* WHY CHOOSE US STYLING */
.about-section {
    padding: 90px 0;
    background-color: var(--dark-bg);
}

.about-container {
    max-width: 850px; /* Restricts content width slightly to match the layout image */
    margin: 0 auto;
}

.about-tagline {
    color: var(--primary-green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.about-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    color: var(--text-white);
}

.about-text {
    font-size: 14px;
    color: var(--text-white);
    line-height: 1.7;
    letter-spacing: 0.5px;
    margin-bottom: 35px;
    font-weight: 600; /* Makes the uppercase text block clear and readable */
}

/* Slimmer text button variant */
.btn-about {
    background-color: var(--primary-green);
    color: var(--text-white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    display: inline-block;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}

.btn-about:hover {
    background-color: #5c8328;
}
/* TESTIMONIALS STYLING */
.reviews-section {
    padding: 80px 0;
    background-color: #050802; /* Extra deep dark background for subtle section contrast */
    text-align: center;
}

.reviews-heading {
    color: var(--primary-green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 45px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    text-align: left;
    margin-bottom: 35px;
}

/* Individual Review Card */
.review-card {
    background-color: transparent;
    border: 1px solid #1c2b0b;
    padding: 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.review-stars {
    color: var(--primary-green); /* Green stars matching the layout template */
    font-size: 18px;
    letter-spacing: 2px;
}

.review-g-logo {
    color: #4285F4;
    font-weight: bold;
    font-family: 'Arial Black', sans-serif;
    font-size: 16px;
}

.review-text {
    font-size: 14px;
    color: var(--text-white);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.review-author {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: bold;
}

/* Layout Dots Accent */
.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.reviews-dots .dot {
    width: 8px;
    height: 8px;
    background-color: #253318;
    border-radius: 50%;
    display: inline-block;
}

.reviews-dots .dot.active {
    background-color: var(--primary-green);
}

/* Tablet/Mobile Responsive */
@media (max-width: 992px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
/* ESTIMATE SECTION STYLING */
.estimate-section {
    padding: 90px 0;
    background-color: #070c03; /* Forest dark green background mix */
    border-bottom: 1px solid #142209;
}

.estimate-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr; /* Custom asymmetric column spacing */
    gap: 40px;
    align-items: start;
}

/* Common Header Styles for Columns */
.estimate-col .column-tagline {
    color: var(--primary-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.estimate-col h3 {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--text-white);
}

/* Left Column: Towns Layout */
.towns-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.towns-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.towns-grid li {
    font-size: 13px;
    color: #cdd1ca;
    margin-bottom: 12px;
    font-weight: bold;
}

.btn-outline-towns {
    display: inline-block;
    border: 1px solid #364e1c;
    color: var(--text-white);
    text-decoration: none;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.btn-outline-towns:hover {
    border-color: var(--primary-green);
}

/* Middle Column: Form Styles */
.form-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: -15px;
    margin-bottom: 25px;
}

.custom-estimate-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.custom-estimate-form input,
.custom-estimate-form select {
    background-color: #0b1204;
    border: 1px solid #203310;
    color: var(--text-white);
    padding: 12px 15px;
    font-size: 13px;
    border-radius: 4px;
    width: 100%;
}

.custom-estimate-form input::placeholder {
    color: #5d6357;
}

.custom-estimate-form select {
    appearance: none;
    color: #5d6357;
}

/* Drag & Drop File upload container */
.file-upload-zone {
    border: 1px dashed #2d4718;
    background-color: #0b1204;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

.file-upload-zone .upload-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 5px;
}

.file-upload-zone p {
    font-size: 12px;
    color: #5d6357;
}

.file-upload-zone p span {
    color: var(--text-gray);
}

.btn-submit-form {
    background-color: var(--primary-green);
    color: var(--text-white);
    border: none;
    padding: 14px;
    font-weight: bold;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

.btn-submit-form:hover {
    background-color: #5c8328;
}

/* Right Column: CTA Features Block */
.features-card {
    background-color: #0d1607;
    border: 1px solid #1c2e10;
    padding: 25px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.features-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-card li {
    font-size: 14px;
    color: var(--text-white);
    font-weight: bold;
    margin-bottom: 12px;
}

.features-card li:last-child {
    margin-bottom: 0;
}

.phone-cta-card {
    background-color: #17240c;
    border: 1px solid #2d4718;
    padding: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-icon-circle {
    width: 45px;
    height: 45px;
    background-color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.phone-cta-text {
    display: flex;
    flex-direction: column;
}

.cta-phone-num {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-white);
    text-decoration: none;
    line-height: 1.1;
}

.phone-cta-text span {
    font-size: 11px;
    color: var(--text-gray);
}

/* Tablet & Mobile Layout Adjustment */
@media (max-width: 992px) {
    .estimate-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
/* FIX: Custom Vector/CSS Upload Box Replacement */
.upload-icon-box {
    width: 32px;
    height: 24px;
    border: 2px solid #5d6357;
    border-radius: 3px;
    margin: 0 auto 10px auto;
    position: relative;
}
.upload-icon-box::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 4px;
    width: 10px;
    height: 4px;
    background-color: #5d6357;
    border-radius: 2px 2px 0 0;
}

/* FOOTER GENERAL STYLING */
.site-footer {
    background-color: #040602;
    padding: 70px 0 0 0;
    border-top: 1px solid #101a07;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-col h4 {
    color: var(--primary-green);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
}
.footer-col h4 span {
    color: var(--text-white);
}

.footer-col h5 {
    color: var(--text-white);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: var(--primary-green);
}

.footer-socials a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: bold;
    margin-right: 15px;
}

/* FOOTER BOTTOM STRIP */
.footer-bottom {
    border-top: 1px solid #0f1706;
    padding: 20px 0;
    background-color: #020301;
    font-size: 12px;
    color: #5d6357;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal a {
    color: #5d6357;
    text-decoration: none;
}
.footer-legal a:hover {
    color: var(--text-gray);
}

/* Responsive Grid Breakdown */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
/* FOOTER CONTACT ICON FIXES */
.footer-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-contact-row p {
    margin: 0;
}

/* Custom Minimal CSS Phone Icon */
.footer-icon-phone {
    width: 14px;
    height: 14px;
    border: 2px solid #5d6357;
    border-radius: 3px;
    display: inline-block;
    position: relative;
    transform: rotate(-15deg);
}
.footer-icon-phone::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 2px;
    width: 4px;
    height: 4px;
    background-color: #5d6357;
    border-radius: 50%;
}

/* Custom Minimal CSS Envelope Icon */
.footer-icon-email {
    width: 16px;
    height: 12px;
    border: 2px solid #5d6357;
    border-radius: 2px;
    display: inline-block;
    position: relative;
}
.footer-icon-email::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 2px;
    width: 8px;
    height: 4px;
    border-left: 2px solid #5d6357;
    border-bottom: 2px solid #5d6357;
    transform: rotate(-45deg);
}
/* SOCIAL ICONS STYLING */
.top-bar-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: var(--text-white) !important;
    font-size: 11px;
    text-decoration: none;
    transition: background-color 0.3s, border-color 0.3s;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--text-white);
}

/* Footer Variant */
.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icon-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #1c2b0b;
    background-color: var(--card-bg);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.3s, color 0.3s;
}

.social-icon-footer:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}
/* Main navigation */
.navigation {
    position: relative;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu > li > a {
    display: block;
    padding: 20px 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    color: #78a936;
}

/* Dropdown arrow */
.nav-menu > li.menu-item-has-children > a::after {
    content: "\25BE";
    display: inline-block;
    margin-left: 7px;
    font-size: 11px;
    vertical-align: middle;
}

/* Second-level dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;

    width: 230px;
    margin: 0;
    padding: 8px 0;
    list-style: none;

    background: #0b1705;
    border-top: 3px solid #78a936;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

/* Display dropdown on hover or keyboard focus */
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 12px 18px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}

.nav-menu .sub-menu li:last-child a {
    border-bottom: none;
}

.nav-menu .sub-menu li a:hover,
.nav-menu .sub-menu li.current-menu-item > a {
    color: #ffffff;
    background: #78a936;
    padding-left: 23px;
}

/* Prevent theme styles from adding bullets */
.nav-menu,
.nav-menu ul,
.nav-menu li {
    list-style: none !important;
}
.jbs-gallery-page {
    width: 100%;
    padding: 70px 20px;
    background: #f4f5f1;
}

.jbs-gallery-page,
.jbs-gallery-page * {
    box-sizing: border-box;
}

.gallery-intro,
.gallery-section,
.video-section,
.gallery-cta {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-intro {
    max-width: 850px;
    margin-bottom: 55px;
    text-align: center;
}

.section-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #5c7c36;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.4;
    text-transform: uppercase;
}

.gallery-intro h1,
.section-heading h2,
.gallery-cta h2 {
    margin: 0 0 18px;
    color: #151a14;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    line-height: 1.1;
}

.gallery-intro h1 {
    font-size: clamp(42px, 6vw, 70px);
}

.gallery-intro p,
.section-heading p,
.gallery-cta p {
    margin: 0;
    color: #5b6259;
    font-size: 17px;
    line-height: 1.75;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading h2,
.gallery-cta h2 {
    font-size: clamp(32px, 4vw, 48px);
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.gallery-item {
    position: relative;
    display: block;
    min-height: 280px;
    overflow: hidden;
    border-radius: 4px;
    background: #1b211a;

}

.gallery-item:nth-child(1),
.gallery-item:nth-child(8) {
    grid-column: span 2;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.gallery-item:hover img {
    opacity: 0.74;
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    color: #151010;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-align: right;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.video-section {
    margin-top: 95px;
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.video-card {
    overflow: hidden;
    border-radius: 5px;
    background: #434141;
    box-shadow: 0 12px 35px rgba(20, 30, 19, 0.12);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card-content {
    padding: 24px 25px 28px;
}

.video-card-content h3 {
    margin: 0 0 10px;
    color: #182017 !important;
    font-size: 22px;
    line-height: 1.25;
}

.video-card-content p {
    margin: 0;
    color: #61685f !important;
    font-size: 15px;
    line-height: 1.65;
}

.gallery-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 90px;
    padding: 48px 52px;
    border-radius: 5px;
    background: #172017;
    box-shadow: 0 15px 40px rgba(20, 30, 19, 0.18);
}

.gallery-cta > div {
    max-width: 720px;
}

.gallery-cta h2 {
    color: #fff;
}

.gallery-cta p {
    color: rgba(255, 255, 255, 0.72);
}

.gallery-cta-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 27px;
    border: 2px solid #8db45d;
    border-radius: 2px;
    background: #8db45d;
    color: #10160f !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease;
}

.gallery-cta-button:hover {
    background: transparent;
    color: #fff !important;
}

@media (max-width: 1024px) {
    .photo-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(8) {
        grid-column: span 1;
    }
}

@media (max-width: 767px) {
    .jbs-gallery-page {
        padding: 50px 16px;
    }

    .gallery-intro {
        margin-bottom: 40px;
    }

    .photo-gallery-grid,
    .video-gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        min-height: 260px;
    }

    .gallery-item img {
        min-height: 260px;
    }

    .video-section {
        margin-top: 65px;
    }

    .gallery-cta {
        display: block;
        margin-top: 65px;
        padding: 36px 25px;
    }

    .gallery-cta-button {
        width: 100%;
        margin-top: 25px;
    }
}
.jbs-gallery-page {
    width: 100%;
    padding: 70px 20px;
    background: #3b3f30;
}

.jbs-gallery-page,
.jbs-gallery-page * {
    box-sizing: border-box;
}

.gallery-intro,
.gallery-section,
.video-section {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-intro {
    max-width: 800px;
    margin-bottom: 55px;
    text-align: center;
}

.section-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #668c3d;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-intro h1,
.section-heading h2 {
    margin: 0 0 16px;
    color: #182017;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.1;
}

.gallery-intro h1 {
    font-size: clamp(40px, 6vw, 64px);
}

.section-heading h2 {
    font-size: clamp(32px, 4vw, 46px);
}

.gallery-intro p,
.section-heading p {
    margin: 0;
    color: #5c6359;
    font-size: 17px;
    line-height: 1.7;
}

.section-heading {
    margin-bottom: 28px;
}

/* Three equal columns */

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* Every photo box is the same size */

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 5px;
    background: #1b211a;
   
}

/* Crop photos neatly into equal thumbnails */

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-item::after {
    content: "View Photo";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 18px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0)
    );
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-align: right;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    opacity: 0.78;
    transform: scale(1.06);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Videos */

.video-section {
    margin-top: 90px;
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.video-card {
    overflow: hidden;
    border-radius: 5px;
    background: #423c3c;
    box-shadow: 0 10px 30px rgba(20, 30, 19, 0.14);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Tablet */

@media (max-width: 900px) {
    .photo-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-item {
        height: 280px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .jbs-gallery-page {
        padding: 50px 15px;
    }

    .photo-gallery-grid,
    .video-gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 275px;
    }

    .video-section {
        margin-top: 65px;
    }
}
/* ==========================================
   MOBILE & TABLET RESPONSIVE STYLES
   ========================================== */

@media (max-width: 768px) {
    /* 1. TOP BAR FIXES */
    .top-bar {
        font-size: 11px;
        padding: 5px 0;
    }
    .top-bar-container {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    .top-bar-contact {
        justify-content: center;
        gap: 8px;
    }

    /* 2. MAIN NAV & LOGO FIXES */
    .main-nav {
        padding: 10px 0;
    }
    .main-nav-container {
        flex-wrap: wrap;
        gap: 10px;
    }


    /* Hide standard nav menu on mobile (opens via mobile toggle) */
    .navigation {
        display: none; 
        width: 100%;
        order: 3;
    }
    .navigation.active {
        display: block;
    }
    .nav-menu {
        flex-direction: column;
        gap: 12px;
        padding: 15px 0 5px 0;
        text-align: center;
        border-top: 1px solid #1c2b0b;
        margin-top: 10px;
    }

    /* Mobile Menu Toggle Button */
    .menu-toggle {
        display: block;
        background: none;
        border: 1px solid var(--primary-green);
        color: var(--text-white);
        font-size: 18px;
        padding: 5px 10px;
        border-radius: 4px;
        cursor: pointer;
    }

    .btn-estimate {
        padding: 8px 14px;
        font-size: 12px;
    }

    /* 3. HERO SECTION FIXES */
    .hero {
        padding: 50px 0 !important;
        min-height: auto !important;
        text-align: center;
    }
    .hero-container {
        flex-direction: column;
    }
    .hero-title {
        font-size: 26px !important; /* Scaled down for mobile screens */
        margin-bottom: 15px;
    }
    .hero-subtitle {
        font-size: 14px;
        margin: 0 auto 20px auto;
    }
    .google-badge {
        margin: 0 auto;
        font-size: 11px;
    }

    /* 4. CONTENT SECTIONS */
    .about-title {
        font-size: 26px;
    }
    .about-text {
        font-size: 12px;
    }
    
    .towns-grid {
        flex-direction: column;
        gap: 0;
    }
}

/* Hide hamburger toggle on desktop screens */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}
/* HERO VIDEO BACKGROUND STYLING */
.hero-video-section {
    position: relative;
    padding: 140px 0;
    min-height: 550px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Forces video to fill section like background-cover */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Dark Overlay on top of Video */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Ensure content floats above video and overlay */
.hero-video-section .hero-container {
    position: relative;
    z-index: 3;
}