@import url(mainstyle.css);

* {
    font-family: var(--primefont);
}

a {
    color: inherit;
    text-decoration: none;
}

header {
    transition: 0.2s ease;
    z-index: 1050;
}

header.position-absolute {
    z-index: 1050;
}

.banner-bg,
#banner-slider,
.splide {
    position: relative;
    z-index: 1;
}

header.fix {
    background-color: var(--body-bg) !important;
    position: fixed !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 992px) {
    header.fix .nav-link {
        color: var(--head-text);
    }
}

.nav-link {
    color: var(--nav-text);
    font-weight: 500;
}

.nav-item.active .nav-link,
.nav-item:hover .nav-link,
.nav-item .nav-link:focus,
.social-icon a:hover {
    color: var(--prime-text) !important;
}

@media (max-width: 991px) {
    .offcanvas-body {
        background-color: var(--alt-bg) !important;
    }
    .nav-link {
        color: var(--head-text);
    }
}

::placeholder {
    color: var(--input-text) !important;
    opacity: 0.5 !important;
}

#banner-slider {
    min-height: 900px;
}

.slide-1 {
    background: linear-gradient(170deg, rgb(10 10 10), rgba(106, 129, 75, 0.35)),
        url('https://images.unsplash.com/photo-1522968941782-e27ac665baa3?w=1920&q=80') no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 900px;
}

.slide-2 {
    background: linear-gradient(170deg, rgb(10 10 10), rgba(106, 129, 75, 0.35)),
        url('https://images.unsplash.com/photo-1568359415705-47e98104af04?w=1920&q=80') no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 900px;
}

.slide-3 {
    background: linear-gradient(170deg, rgb(10 10 10), rgba(106, 129, 75, 0.35)),
        url('https://images.unsplash.com/photo-1568359415705-47e98104af04?w=1920&q=80') no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 900px;
}

@media (max-width: 768px) {
    #banner-slider,
    .testimonial-container {
        min-height: 550px;
    }

    .slide-1,
    .slide-2,
    .slide-3,
    .testimonial-slide-1,
    .testimonial-slide-2,
    .testimonial-slide-3 {
        min-height: 550px;
    }

    .fs-10 {
        font-size: 30px !important;
    }

    .about-banner-section,
    .service-banner-section,
    .products-banner-section,
    .contact-banner-section {
        min-height: 520px !important;
    }

    .splide__arrow {
        display: none;
    }

    .theme-btn {
        width: 52px;
        height: 42px;
    }
}

.theme-btn {
    background-color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #324413 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    position: relative;
    z-index: 1051;
    pointer-events: auto;
    cursor: pointer;
}

.theme-btn i {
    color: #485d24 !important;
}

.theme-btn:hover {
    background-color: #f0f4e8 !important;
    border-color: #81b12b !important;
}

header.fix .theme-btn {
    background-color: #ffffff !important;
    border-color: var(--prime-border) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-dravenquill-theme="dark"] .theme-btn {
    background-color: #1a1a1a !important;
    border-color: #a4b97e !important;
}

[data-dravenquill-theme="dark"] .theme-btn i {
    color: #f5d76e !important;
}

[data-dravenquill-theme="dark"] .theme-btn:hover {
    background-color: #2a2a2a !important;
}

@media (max-width: 420px) {
    .brand-logo {
        font-size: 1.5rem;
    }
}

.splide-container {
    max-width: 720px;
}

.splide__arrow {
    background: transparent;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    opacity: 0.95;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.splide__arrow svg {
    fill: #fff;
}

.card-img-box {
    position: relative;
    overflow: hidden;
}

.card-img-box img {
    display: block;
    transition: all 0.4s ease;
}

.card-img-box .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.card-img-box:hover .overlay {
    opacity: 1;
}

.head-content {
    margin: auto;
    text-align: center;
    max-width: 1000px;
    width: 100%;
}

.counter-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(72, 93, 36, 0.75)),
        url('https://images.unsplash.com/photo-1551434678-e076c223a692?w=1920&q=80') no-repeat;
    background-size: cover;
    background-position: center center;
    min-height: 318px;
    display: flex;
    align-items: center;
}

.counter-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.spot-content {
    position: relative;
}

.decor-img {
    position: absolute;
    right: 0;
    top: 0;
    opacity: 0.08;
    font-size: 180px;
    color: var(--prime-text);
    pointer-events: none;
}

.testimonial-container {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(72, 93, 36, 0.5)),
        url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=1920&q=80') no-repeat;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.testimonial-img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    outline: 2px solid var(--prime-border);
    outline-offset: 2px;
    overflow: hidden;
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.star-rating {
    display: inline-block;
    font-size: 1.5rem;
}

.star {
    position: relative;
    display: inline-block;
    color: #ccc;
}

.star:before {
    content: '★';
    position: absolute;
    left: 0;
    width: 0;
    overflow: hidden;
    color: gold;
}

.star.filled:before {
    width: 100%;
}

.gallery-img {
    overflow: hidden;
}

.gallery-img img {
    transition: transform 0.6s ease, filter 0.4s ease;
    height: 150px;
}

.gallery-img:hover img {
    transform: scale(1.1);
}

@media (min-width: 768px) {
    .search-btn {
        padding: 20px 32px;
    }
    .gallery-img img {
        height: 300px;
    }
}

.form-control:focus {
    box-shadow: none;
    border: 1px solid var(--light-border);
}

.input-text::placeholder {
    font-weight: 500;
}

#backtotop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 50px !important;
    min-width: unset;
    height: 50px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

#backtotop.show {
    visibility: visible;
}

.offcanvas .btn-close {
    background: unset !important;
}

.about-banner-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(72, 93, 36, 0.6)),
        url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?w=1920&q=80') no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 550px;
}

.service-banner-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(72, 93, 36, 0.6)),
        url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?w=1920&q=80') no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 550px;
}

.products-banner-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(72, 93, 36, 0.6)),
        url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1920&q=80') no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 550px;
}

.contact-banner-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(72, 93, 36, 0.6)),
        url('https://images.unsplash.com/photo-1423666639043-f560e1bc27a7?w=1920&q=80') no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 550px;
}

.banner-content {
    max-width: 720px;
}

.service-icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--prime-bg);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.service-icon-box i {
    font-size: 2rem;
    color: var(--white-text);
}

.story-card .image-container img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
}

.contact-info-card {
    border-left: 4px solid var(--prime-border);
}

/* Contact section: ensure readable text on cards in both themes */
#contact .card-alt-bg .para-text,
#contact .card-alt-bg .head-text {
    color: var(--head-text) !important;
}

#contact .card-alt-bg .para-text a.prime-text {
    color: var(--prime-text) !important;
}

[data-dravenquill-theme="dark"] #contact .prime-btn {
    background-color: #81b12b !important;
    border-color: #81b12b !important;
    color: #ffffff !important;
}

[data-dravenquill-theme="dark"] #contact .prime-btn:hover {
    background-color: #587e12 !important;
    border-color: #587e12 !important;
}

.social-icons a {
    color: var(--white-text);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--prime-text);
}

.team-container .card-body {
    border-top: 3px solid var(--prime-border);
}

.product-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    background-color: var(--prime-bg);
    color: var(--white-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-placeholder {
    min-height: 350px;
    background: linear-gradient(135deg, #a4b97e 0%, #485d24 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
}
