/********** Custom CSS for Delight Rabbit Farm **********/

/*** Performance Optimizations ***/
section {
    contain-intrinsic-size: 100% 500px;
    content-visibility: auto;
}

img {
    content-visibility: auto;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

/*** Remove blur from service images on mobile ***/
.service-item img {
    filter: none !important;
}

.service-item:hover img {
    filter: none !important;
}

/* ==========================================================================
   Brand Logo System (Delight Rabbit Farm)
   ========================================================================== */
.navbar-brand {
    padding-top: 4px;
    padding-bottom: 4px;
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    text-decoration: none;
}

.navbar-brand picture {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.navbar-logo {
    height: 70px !important;
    width: auto !important;
    max-height: 70px !important;
    max-width: 90px !important;
    object-fit: contain !important;
    display: block !important;
    transition: height 0.3s ease, transform 0.2s ease;
}

.navbar-logo:hover {
    transform: scale(1.02);
}

/* Spinner Logo */
.spinner-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-logo {
    width: 90px;
    height: auto;
    object-fit: contain;
    display: block;
    animation: spinnerLogoPulse 1.6s ease-in-out infinite alternate;
}

@keyframes spinnerLogoPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.85;
    }
    100% {
        transform: scale(1.03);
        opacity: 1;
    }
}

/* Footer Logo Badge */
.footer-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.footer-logo-badge:hover {
    transform: scale(1.02);
}

.footer-logo {
    width: 130px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

/* Responsive Logo Adjustments */
@media (max-width: 991.98px) {
    .navbar-brand {
        padding: 4px 0;
    }
    .navbar-logo {
        height: 52px !important;
        max-height: 52px !important;
        max-width: 70px !important;
    }
}

@media (max-width: 767.98px) {
    .footer-logo {
        width: 110px !important;
    }
}

@media (max-width: 360px) {
    .navbar-logo {
        height: 44px !important;
        max-height: 44px !important;
        max-width: 60px !important;
    }
}

/*** Vibrant Hero Overlays ***/
#header-carousel .carousel-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(231, 185, 97, 0.55) 0%, rgba(24, 24, 24, 0.45) 60%, rgba(18, 18, 18, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

#header-carousel .carousel-item img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#header-carousel .carousel-item:hover img {
    transform: scale(1.05);
}

#header-carousel .carousel-caption {
    z-index: 2;
    background: transparent !important;
    padding-top: 140px;
}

#header-carousel .carousel-caption h5 {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

#header-carousel .carousel-caption h1 {
    color: #fff !important;
    text-shadow: 0 3px 12px rgba(0,0,0,0.5);
    letter-spacing: -0.5px;
}

#header-carousel .carousel-caption .btn-primary {
    box-shadow: 0 4px 15px rgba(231, 185, 97, 0.4);
    transition: all 0.3s ease;
}

#header-carousel .carousel-caption .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 185, 97, 0.6);
    background: #d4a348 !important;
    border-color: #d4a348 !important;
}

/*** Service Cards - Equal Height, No Distortion ***/
.service-item img {
    height: 220px;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.service-item {
    display: flex;
    flex-direction: column;
}

.service-item .position-relative {
    overflow: hidden;
}

/*** Hero Decorative Glow ***/
#header-carousel .carousel-caption::before {
    content: "";
    position: absolute;
    top: -40px; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 4px;
    background: #E7B961;
    z-index: -1;
    border-radius: 2px;
    opacity: 0.8;
}

/*** Navbar Disappear on Scroll ***/
.navbar {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                background 0.3s ease,
                box-shadow 0.3s ease !important;
    will-change: transform, opacity;
}

.navbar--hidden {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.navbar .navbar-nav .nav-link {
    padding: 22px 0 !important;
}

/*** Hero / Carousel Viewport Optimization ***/
#header-carousel,
#header-carousel .carousel-inner,
#header-carousel .carousel-item {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 520px;
}

#header-carousel .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    background: rgba(24, 24, 24, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-caption .row {
    width: 100%;
    margin: 0;
}

#header-carousel h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
    line-height: 1.25;
    font-weight: 700;
}

#header-carousel h5 {
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    letter-spacing: 0.5px;
}

#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .navbar {
        background: rgba(24, 24, 24, 0.92) !important;
        backdrop-filter: blur(8px);
    }

    #header-carousel h1 {
        font-size: clamp(1.65rem, 5vw, 2.3rem);
    }
}

@media (max-width: 767.98px) {
    #header-carousel .carousel-control-prev,
    #header-carousel .carousel-control-next {
        width: 8%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }
}

@media (max-width: 575.98px) {
    #header-carousel .carousel-item {
        min-height: 380px;
    }

    .carousel-caption {
        padding-top: 55px;
    }
}

/*** Floating WhatsApp Button ***/
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 45px;
    right: 115px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .whatsapp-float {
        bottom: 45px;
        right: 45px;
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

    .back-to-top {
        bottom: 115px;
    }
}

@media (max-width: 575.98px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        bottom: 85px;
        right: 20px;
    }
}

/*** Stats Counter ***/
#stats h2 {
    font-family: "Comic Relief", system-ui;
    font-weight: 700;
}

/*** Service Item Custom ***/
.service-item .btn-custom {
    background: var(--bs-primary);
    color: var(--bs-white);
    border: none;
}

.service-item .btn-custom:hover {
    background: var(--bs-dark);
    color: var(--bs-white);
}

.service-item .btn-custom::before {
    display: none;
}

/*** Gallery Lightbox ***/
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    transition: transform 0.5s ease, filter 0.5s ease;
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.gallery-item::after {
    content: attr(data-title);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(24, 24, 24, 0.8));
    color: white;
    padding: 20px 15px 15px;
    font-family: "Comic Relief", system-ui;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/*** Lightbox Modal ***/
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: "Comic Relief", system-ui;
    font-size: 1.2rem;
    text-align: center;
    max-width: 80%;
}

/*** Breed Cards ***/
.breed-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.breed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.breed-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.breed-card:hover img {
    transform: scale(1.05);
}

.breed-card-body {
    padding: 25px;
}

.breed-card .badge-placeholder {
    background: #e7b961;
    color: #fff;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    display: block;
    width: fit-content;
    margin: 0 auto;
    text-align: center;
}

.breed-specs {
    margin-top: 15px;
}

.breed-specs .spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.breed-specs .spec-row:last-child {
    border-bottom: none;
}

.breed-specs .spec-label {
    color: #666;
    font-family: "Open Sans", sans-serif;
}

.breed-specs .spec-value {
    font-weight: 600;
    color: #181818;
    font-family: "Open Sans", sans-serif;
}

/*** Smooth Scroll ***/
html {
    scroll-behavior: smooth;
}

/*** Form Validation Styles ***/
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: #e7b961;
    box-shadow: 0 0 0 0.25rem rgba(231, 185, 97, 0.25);
}

/*** Admin Banner ***/
.admin-banner {
    background: #fff3e0;
    color: #e7b961;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-family: "Comic Relief", system-ui;
    border-bottom: 2px solid #e7b961;
}

/*** Placeholder Image Styling ***/
.placeholder-img {
    background: linear-gradient(45deg, #f5eee7 25%, transparent 25%),
                linear-gradient(-45deg, #f5eee7 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #f5eee7 75%),
                linear-gradient(-45deg, transparent 75%, #f5eee7 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/*** Card Animations ***/
.wow {
    visibility: hidden;
}

.wow.animated {
    visibility: visible;
}

/*** Dropdown Menu Animation ***/
.dropdown-menu {
    animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*** Focus States for Accessibility ***/
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #e7b961;
    outline-offset: 2px;
}

/*** Loading State for Buttons ***/
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/*** Print Styles ***/
@media print {
    .navbar,
    .whatsapp-float,
    .back-to-top,
    .newsletter,
    .footer,
    .copyright {
        display: none !important;
    }
}

/*** Service Dedicated Pages UI/UX ***/
.service-hero-header {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 520px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.service-hero-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(231, 185, 97, 0.50) 0%, rgba(24, 24, 24, 0.55) 55%, rgba(18, 18, 18, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

.service-hero-header .container {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.service-hero-header h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
    line-height: 1.25;
    font-weight: 700;
    color: #fff !important;
    text-shadow: 0 3px 12px rgba(0,0,0,0.5);
    letter-spacing: -0.5px;
}

.service-hero-header p {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.6;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    max-width: 680px;
}

.service-hero-header .btn-primary {
    box-shadow: 0 4px 15px rgba(231, 185, 97, 0.4);
    transition: all 0.3s ease;
}

.service-hero-header .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 185, 97, 0.6);
    background: #d4a348 !important;
    border-color: #d4a348 !important;
}

.breadcrumb-custom {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 22px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    margin-bottom: 22px;
}

.breadcrumb-custom a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-custom a:hover {
    color: #e7b961;
}

.breadcrumb-custom .separator {
    color: #e7b961;
    margin: 0 10px;
    font-size: 0.85rem;
}

.breadcrumb-custom .active-page {
    color: #e7b961;
    font-weight: 600;
    font-size: 0.9rem;
}

.service-badge-pill {
    display: inline-block;
    background: rgba(231, 185, 97, 0.18);
    color: #e7b961;
    border: 1px solid rgba(231, 185, 97, 0.4);
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.feature-check-list {
    list-style: none;
    padding-left: 0;
}

.feature-check-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    color: #444;
    font-size: 0.98rem;
    line-height: 1.6;
}

.feature-check-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: #e7b961;
    font-size: 1.15rem;
}

.service-highlight-box {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    padding: 28px;
    height: 100%;
}

.service-highlight-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(231, 185, 97, 0.18);
    border-color: rgba(231, 185, 97, 0.4);
}

.spec-badge {
    background: #fbf7f0;
    border: 1px solid rgba(231, 185, 97, 0.25);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.spec-badge:hover {
    background: #ffffff;
    border-color: #e7b961;
    box-shadow: 0 4px 15px rgba(231, 185, 97, 0.15);
}

.process-step-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.process-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.process-step-number {
    width: 52px;
    height: 52px;
    line-height: 52px;
    text-align: center;
    background: #e7b961;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 50%;
    margin-bottom: 22px;
    box-shadow: 0 4px 12px rgba(231, 185, 97, 0.4);
}

.accordion-service .accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
    background: #ffffff;
}

.accordion-service .accordion-button {
    font-family: "Comic Relief", system-ui;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 18px 24px;
    background-color: #ffffff;
    color: #181818;
    box-shadow: none !important;
}

.accordion-service .accordion-button:not(.collapsed) {
    background-color: #fbf7f0;
    color: #d4a348;
}

.accordion-service .accordion-button::after {
    filter: invert(0.2);
}

.accordion-service .accordion-body {
    padding: 20px 24px;
    color: #555;
    line-height: 1.7;
    background-color: #ffffff;
}

.other-service-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.other-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
    border-color: rgba(231, 185, 97, 0.3);
}

.other-service-card img {
    height: 190px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.other-service-card:hover img {
    transform: scale(1.04);
}

.service-detail-img {
    height: 380px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991.98px) {
    .service-hero-header {
        padding-top: 110px;
        min-height: 380px;
    }
    .service-detail-img {
        height: 280px;
    }
}
