/* ==================================================
   GLOBAL ACCESSIBILITY & BASE STYLES
   ================================================== */

/* Gradient overlay utility */
.gradient-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    pointer-events: none;
}

/* Strong, visible focus outlines for ADA compliance */
:focus,
:focus-visible {
    outline: 3px solid #000;
    outline-offset: 3px;
}

/* White focus outline on dark backgrounds */
.navbar a:focus,
.navbar button:focus,
footer a:focus {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* Buttons */
button:focus,
.button:focus,
.btn:focus {
    outline: 3px solid #000;
    outline-offset: 3px;
}

/* Form fields */
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #000;
    outline-offset: 3px;
    background-color: #fff;
}

/* Remove Bootstrap glow */
*:focus {
    box-shadow: none !important;
}

/* Custom tabindex focus */
[tabindex]:focus {
    outline: 3px solid #000;
    outline-offset: 3px;
}

/* Base reset */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

.text-center {
    text-align: center;
}

.footer-badge {
    height: 40px;
    width: auto;
    display: inline-block;
    margin: 0 8px;
}

/* BLOG HERO  */
.blog-hero {
    background-image: url('../images/blog-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    padding: 120px 20px 80px;
    position: relative;

    /* Center everything */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.blog-hero .hero-content {
    position: relative;
    z-index: 2;

}

.blog-hero .text-overlay {
    display: inline-block;
    background: rgba(0,0,0,0.45);
    padding: 25px 35px;
    border-radius: 12px;
    max-width: 800px;
    margin: auto;
}

.blog-hero h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;

}

.blog-hero p {
    color: #e6e6e6;
    font-size: 20px;
    margin: 0;
}

/* Breadcrumbs */
.hero-breadcrumbs {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
}

.hero-breadcrumbs .breadcrumb {
    background: rgba(0,0,0,0.65);
    padding: 6px 12px;
    border-radius: 6px;
    margin: 0;
}

.hero-breadcrumbs .breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.hero-breadcrumbs .breadcrumb-item.active {
    color: #e6e6e6;
}


/* ============================
   BLOG LIST SECTION
   ============================ */
.blog-list-section {
    background: linear-gradient(to bottom left, #42f2f5, #29f00e);
    padding: 60px 20px;
}

/* ============================
   BLOG CARDS
   ============================ */
.blog-card {
    border-radius: 15px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.4);
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

/* Gradient overlay on card images */
.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    z-index: 1;
}

/* Card content */
.blog-card-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: white;

}

.blog-post-content .content-overlay-box {
    background: rgba(0,0,0,0.65);
    padding: 40px;
    border-radius: 12px;
    max-width: 900px;
    margin: auto;
    color: #fff;
}

/* FULL-WIDTH BG-1 SECTION ABOVE HERO */
.pre-hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 450px;
    width: 100%;
}


/* HERO WITH TEAL GRADIENT */
.blog-hero-gradient {
    background-image: linear-gradient(to bottom left, #42f2f5, green);
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* HERO CONTENT + OVERLAY (same pattern as before, just on .blog-hero-gradient) */
.blog-hero-gradient .hero-content {
    position: relative;
    z-index: 2;
}

.blog-hero-gradient .text-overlay {
    display: inline-block;
    background: rgba(0,0,0,0.65);
    padding: 25px 35px;
    border-radius: 12px;
    max-width: 800px;
    margin: auto;
}

.blog-hero-gradient h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
}

.blog-hero-gradient p {
    color: #e6e6e6;
    font-size: 20px;
    margin: 0;
}

/* BREADCRUMBS POSITIONING (reuse your existing styles) */
.hero-breadcrumbs {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
}

.hero-breadcrumbs .breadcrumb {
    background: rgba(0,0,0,0.65);
    padding: 6px 12px;
    border-radius: 6px;
    margin: 0;
}

.hero-breadcrumbs .breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.hero-breadcrumbs .breadcrumb-item.active {
    color: #e6e6e6;
}

/* CONTENT SECTION WITH TREEMD BACKGROUND */
.blog-post-content {
    background-image: url('../images/treemd.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px;
}

.blog-post-content .content-overlay-box {
    background: rgba(0,0,0,0.75);
    padding: 40px;
    border-radius: 12px;
    max-width: 900px;
    margin: auto;
    color: #fff;
}


/* ==================================================
   NAVBAR
   ================================================== */

.custom-nav {
    background: linear-gradient(to bottom right, green, #42f2f5);
    border-bottom: 2px solid black;
    padding: 8px 15px;
}

.navbar-nav {
    margin-left: auto;
    text-align: right;
}

.navbar-nav .nav-link {
    font-size: 18px;
    font-weight: bold;
    color: white !important;
    padding: 10px 15px;
}

.navbar-nav .nav-link:hover {
    color: black !important;
    background: rgba(255,255,255,0.3);
    border-radius: 8px;
}

/* Mobile toggler */
.navbar-toggler {
    border-color: white;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Mobile menu */
/* @media (max-width: 991px) {
    #rightNav {
        background: linear-gradient(to bottom right, green, #42f2f5);
        padding: 20px;
        border-radius: 0 0 10px 10px;
    } */

    .navbar-nav .nav-link {
        padding: 12px 0;
        font-size: 20px;
        text-align: right;
    }
}


/* ==================================================
   UNIFIED INTERIOR PAGE STRUCTURE
   (Gainesville + City Pages)
   ================================================== */

/* Shared background for general service/city pages */
.page-bg,
.serviceareas-bg,
.trenton-bg,
.bell-bg,
.newberry-bg,
.jonesville-bg,
.highsprings-bg,
.alachua-bg,
.emergency-bg,
.gainesville-bg {
    background-image: url('../images/treemd.webp');
    background-image: image-set(
        url('../images/treemd.webp') type('image/webp'),
        url('../images/treemd.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* Background for arborist‑related pages */
.whyremoval-bg,
.arborist-bg {
    background-image: url('../images/arborist-tree-services.webp');
    background-image: image-set(
        url('../images/arborist-tree-services.webp') type('image/webp'),
        url('../images/arborist-tree-services.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* Shared overlay */
.page-overlay {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
}

/* Shared content box */
.content-box {
    background: rgba(0,0,0,0.65);
    padding: 35px;
    border-radius: 12px;
    color: white;
    max-width: 900px;
    margin: auto;
    position: relative;
    z-index: 2;
}

/* Shared service list spacing */
.service-list li {
    margin-bottom: 12px;
}

/* Shared hero button */
.hero-btn {
    display: inline-block;
    background: #198754;
    color: #fff;
    padding: 12px 28px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid black;
    transition: 0.3s ease;
}

.hero-btn:hover {
    background-image: linear-gradient(to bottom right, green, #42f2f5);
    color: black;
}

/* Shared text links */
.service-text-link {
    color: white;
    text-decoration: underline;
}

.service-text-link:hover {
    text-decoration: none;
}

/* ==================================================
   HERO SECTION
   ================================================== */

.hero-section {
    background-image: url('../images/bg-1.webp');
    background-image: image-set(
        url('../images/bg-1.webp') type('image/webp'),
        url('../images/bg-1.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 40px 20px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.0);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 20px;
    color: #e6e6e6;
    margin-bottom: 15px;
}

.hero-areas {
    font-size: 18px;
    color: #dcdcdc;
    margin-bottom: 25px;
}


/* ==================================================
   WHY CHOOSE US (SECTION 3)
   ================================================== */

.why-section {
    background-image: url('../images/bg-2.webp');
    background-image: image-set(
        url('../images/bg-2.webp') type('image/webp'),
        url('../images/bg-2.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
    padding: 60px 20px;
}

.why-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.why-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.why-content h2 {
    color: #fff;
    font-weight: 800;
}

.why-content h4 {
    font-weight: bold;
}

.why-content p {
    font-size: 17px;
    line-height: 1.4;
}


/* ==================================================
   SERVICE AREAS SECTION (SECTION 6)
   ================================================== */

.service-areas-section {
    background-image: url('../images/bg-3.webp');
    background-image: image-set(
        url('../images/bg-3.webp') type('image/webp'),
        url('../images/bg-3.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
    padding: 60px 20px;
    color: white;
}

.service-areas-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.service-areas-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.service-areas-list {
    font-size: 20px;
    line-height: 1.6;
    font-weight: bold;
}


/* ==================================================
   REVIEW CAROUSEL (SECTION 4)
   ================================================== */

#fivestar-wrapper {
    background: linear-gradient(to right, #29f00e, #42f2f5) !important;
    padding: 40px 10%;
    min-height: 400px;
}

#fivestar {
    background: transparent !important;
}

#fivestar .carousel-inner,
#fivestar .carousel-item,
#fivestar .carousel-item.active,
#fivestar .carousel-item-next,
#fivestar .carousel-item-prev,
#fivestar.carousel,
#fivestar.carousel.slide {
    background: transparent !important;
}

#fivestar .carousel-item h2 {
    font-size: 26px;
    font-weight: bold;
}

#fivestar .carousel-item p {
    font-size: 18px;
    line-height: 1.4;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}


/* ==================================================
   CONTACT FORM (SECTION 5)
   ================================================== */

.contact {
    background: linear-gradient(to bottom left, #42f2f5, #29f00e);
    padding: 40px 0;
}

.contact input,
.contact textarea {
    border: 1px solid black;
    border-radius: 10px;
    font-weight: bold;
}

.contact button {
    background-color: green;
    border: 1px solid black;
    border-radius: 10px;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.4);
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact button:hover {
    background-image: linear-gradient(to bottom right, green, #42f2f5);
    color: black;
}


/* ==================================================
   SERVICES SECTION
   ================================================== */

.services {
    background: linear-gradient(to bottom, #29f00e, #b0f00e);
    padding: 40px 0;
}

.services h1 {
    margin-bottom: 20px;
}

.services h4 {
    font-size: 22px;
}

/* ==================================================
   SERVICE CARDS (Used on Gainesville Tree Services page)
   ================================================== */

.service-link {
    text-decoration: none;
    color: white !important;
}

.service-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 20px;
    transition: 0.3s ease;
    color: white;
}

.service-card h3,
.service-card p {
    color: white;
}

.service-card:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-4px);
}


/* ==================================================
   ABOUT / PDF CARDS SECTION
   ================================================== */

.bg-4 {
    background-image: url('../images/bg-4.webp');
    background-image: image-set(
        url('../images/bg-4.webp') type('image/webp'),
        url('../images/bg-4.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.city-service-section {
    position: relative;
    padding: 60px 0;
    z-index: 1;
}

.full-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: -1;
}

.city-service-section ul {
    padding-left: 0;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
}

/* ==================================================
   GENERIC BUTTON STYLE (Used for Call Now buttons)
   ================================================== */

.button {
    display: inline-block;
    background-color: green;
    border: 1px solid black;
    border-radius: 10px;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.35);
    padding: 12px 28px;
    font-size: 20px;
    font-weight: bold;
    color: white !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: 0.3s ease;
}

.button:hover {
    background-image: linear-gradient(to bottom right, green, #42f2f5);
    color: black !important;
}


/* ==================================================
   FOOTER
   ================================================== */

footer {
    background: linear-gradient(to bottom right, green, #42f2f5) !important;
    color: white !important;
    border-top: 2px solid black;
    padding: 20px 0;
}

footer a {
    color: white !important;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}


/* ==================================================
   SOCIAL MEDIA BAR
   ================================================== */

.icon-bar {
    position: fixed;
    top: 30%;
    transform: translateY(-30%);
    z-index: 999;
}

.icon-bar a {
    display: block;
    padding: 10px;
    font-size: 30px;
    color: white;
    background-image: linear-gradient(to bottom right, green, teal);
    border: 1px solid black;
    border-radius: 0 15px 15px 0;
    margin-bottom: 5px;
    transition: 0.3s ease;
}

.icon-bar a:hover {
    width: 200px;
    background-image: linear-gradient(to bottom right, green, #42f2f5);
    color: black;
}

.fa {
    width: 50px;
    height: 50px;
    padding: 10px;
    font-size: 30px;
    text-align: center;
    margin: 5px 5px 5px 0px;
    background-color: green;
    background-image: linear-gradient(to bottom right, green, teal);
    border: 1px solid black;
    border-radius: 0px 15px 15px 0px;
    transition: width 0.3s ease;
}

.fb-icon:hover,
.yt-icon:hover {
    width: 300px;
    background-image: linear-gradient(to bottom right, green, #42f2f5);
    color: black;
}


.page-bg,
.serviceareas-bg,
.trenton-bg,
.bell-bg,
.newberry-bg,
.jonesville-bg,
.highsprings-bg,
.alachua-bg,
.emergency-bg,
.gainesville-bg {
    background-image: url('../images/treemd.webp');
    background-image: image-set(
        url('../images/treemd.webp') type('image/webp'),
        url('../images/treemd.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.whyremoval-bg,
.arborist-bg {
    background-image: url('../images/arborist-tree-services.webp');
    background-image: image-set(
        url('../images/arborist-tree-services.webp') type('image/webp'),
        url('../images/arborist-tree-services.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* tldr */

.tldr-box {
    background: rgba(0, 0, 0, 0.1);
    border-left: 4px solid #2c7a2c;
    padding: 15px 20px;
    font-size: 1.1rem;
    text-align: left;
    border-radius: 4px;
    color: #ffffff;
}

.tldr-box strong {
    color: #ffffff;
}


/* ==================================================
   RESPONSIVE FIXES
   ================================================== */

@media (max-width: 768px) {

    #fivestar {
        padding: 20px;
    }

    .services h4 {
        font-size: 18px;
    }

    .icon-bar {
        top: 50%;
        transform: translateY(-50%);
    }

    .button {
        width: 80%;
    }

    .contact input,
    .contact textarea {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-areas {
        font-size: 16px;
    }
}
