@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Merriweather&display=swap');

body {
    background-color: #050011 !important;
    background-image: url('../images/bg.gif') !important;
    background-repeat: repeat !important;
    color: #ffffff !important;
}

#header {
    background-color: #050011 !important;
    background-image: url('/user/themes/quark/images/seamless_banner_v4.png') !important;
    background-position: left center !important;
    background-size: cover !important;
    position: relative !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    height: 220px !important;
    z-index: 100 !important;
    display: block !important;
    
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.9);
}

/* Common Logo Styles */
#header a.logo {
    display: flex !important;
    width: auto !important; /* FIXED */
    text-decoration: none !important;
    box-sizing: border-box !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    border-radius: 8px 8px 0 0 !important;
}

/* Main banner (has NO baked-in text, so we show HTML text) */
#header a.main-logo {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    text-align: left !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    margin-left: 0 !important; 
}

/* Shadow over the full width image to blend edges */


#header a.main-logo .logo-text-wrapper {
    display: block !important;
    text-align: left !important;
    z-index: 2;
    position: relative;
    padding: 0 !important; /* Removed 10px 20px padding */
    background: transparent !important; /* Removed dark backdrop */
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#body-wrapper .container {
    max-width: 100% !important;
}

#body-wrapper {
    background-color: transparent !important;
    max-width: 1450px !important;
    margin: 40px auto 40px auto !important;
    padding: 20px 80px 30px 80px !important;
    border-radius: 12px !important;
    border: 2px solid #3d2c52 !important;
    box-shadow:
        0 0 30px rgba(153, 102, 255, 0.4),
        inset 0 0 20px rgba(153, 102, 255, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.5) !important;
    text-align: center !important;
    box-sizing: border-box !important;
    backdrop-filter: blur(5px);
}

#body-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

#body-wrapper .container > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#body-wrapper img {
    margin: 0 auto;
    display: block;
    max-width: 100% !important;
    height: auto !important;
}

.logo-title {
    display: block !important;
    font-family: 'Cinzel Decorative', Algerian, Georgia, serif !important;
    font-size: 3.2rem !important;
    color: #EAEFEE;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1), 0 0 20px #9966FF !important;
    letter-spacing: 2px !important;
    margin-bottom: 5px !important;
    line-height: 1 !important;
}

.logo-subtitle {
    display: block !important;
    font-family: 'Merriweather', Georgia, "Times New Roman", serif !important;
    font-size: 1.2rem !important;
    color: #FFFFCC !important;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 1) !important;
    font-weight: bold !important;
    font-style: italic !important;
    line-height: 1 !important;
}

/* Glass buttons for menu links -> Updated to borderless style */
#header .dropmenu ul li a,
.header-dark #header:not(.scrolled) .dropmenu ul ul a {
    color: #FCFFFE !important;
    font-size: 0.85rem !important;
    margin: 2px 5px !important;
    padding: 6px 10px !important;
    font-family: 'Merriweather', Georgia, "Times New Roman", serif !important;
    background-color: transparent !important; /* Removed purple box */
    border: none !important; /* Removed purple border */
    box-shadow: none !important; /* Removed box shadow */
    text-decoration: none !important;
    border-radius: 0 !important;
    white-space: nowrap !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

/* Hover effect: Gold underline */
#header .dropmenu ul li a::after,
.header-dark #header:not(.scrolled) .dropmenu ul ul a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: #FFFF99; 
    transition: width 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(255, 255, 153, 0.8) !important;
}

#header .dropmenu ul li a:hover,
#header .dropmenu ul li a.active {
    background-color: transparent !important;
    color: #FFFF99 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

#header .dropmenu ul li a:hover::after,
#header .dropmenu ul li a.active::after {
    width: 80% !important;
}

/* --- Dropdown Logic --- */
section#header nav.dropmenu ul li ul,
#header nav.dropmenu ul li ul {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: rgba(20, 25, 30, 0.98) !important;
    border: 1px solid rgba(153, 102, 255, 0.3) !important;
    border-radius: 4px !important;
    padding: 8px 0 !important;
    min-width: 250px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8) !important;
    z-index: 1000 !important;
    flex-direction: column !important;
}

section#header nav.dropmenu ul li:hover > ul,
#header nav.dropmenu ul li:hover > ul {
    display: flex !important;
    animation: fadeInMenu 0.2s ease-in forwards !important;
}

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

section#header nav.dropmenu ul li ul li a,
#header nav.dropmenu ul li ul li a {
    display: block !important;
    padding: 10px 15px !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
    color: #E0E0E0 !important;
    text-shadow: none !important;
}

section#header nav.dropmenu ul li ul li a::after,
#header nav.dropmenu ul li ul li a::after {
    display: none !important;
}

section#header nav.dropmenu ul li ul li a:hover,
#header nav.dropmenu ul li ul li a:hover {
    background-color: rgba(153, 102, 255, 0.15) !important;
    color: #FFFF99 !important;
}

section#header nav.dropmenu ul li,
#header nav.dropmenu ul li {
    position: relative !important;
}

/* Desktop layout (>= 840px) */
@media (min-width: 840px) {
    #header .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
    }
    
    #header .navbar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 1700px !important;
        margin: 0 auto !important;
        padding: 0 40px !important;
    }

    #header .navbar-center.logo {
        flex: 0 1 auto !important;
        display: flex !important;
        align-items: center !important;
        height: auto !important;
        width: auto !important; 
        padding-left: 0 !important;
    }

    #header .navbar-section.desktop-menu {
        flex: 1 1 0 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        height: auto !important;
        width: auto !important;
    }

    #header .dropmenu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: auto !important;
    }

    #header .dropmenu>ul {
        display: flex !important;
        justify-content: flex-end !important;
        gap: 15px !important;
    }
}


/* Wide Desktop layout fix */
@media (min-width: 1200px) {
    #header a.main-logo {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    text-align: left !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    margin-left: 0 !important; 
}
}

/* Standard Desktop layout */
@media (min-width: 840px) and (max-width: 1199px) {
    #header a.main-logo {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    text-align: left !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    margin-left: 0 !important; 
}
}

/* Tablet layout intermediate fix (600px - 839px) */
@media (min-width: 600px) and (max-width: 839px) {
    #header a.main-logo {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    text-align: left !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    margin-left: 0 !important; 
}
}

/* Mobile layout (< 600px) */
@media (max-width: 599px) {
    .logo-title {
        font-size: 2rem !important;
    }

    .logo-subtitle {
        font-size: 1rem !important;
    }

    #header a.main-logo {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    text-align: left !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    margin-left: 0 !important; 
}

    /* Force EVERYTHING in the header to be full width with no horizontal gaps */
    #header,
    #header .container,
    #header .navbar,
    #header .navbar-section {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #body-wrapper {
        margin: 20px auto 20px auto !important;
        padding: 5px 20px 20px 20px !important; /* Reduce inner padding to pull text up */
    }

    #start {
        margin: 0 !important;
        padding: 0 !important;
    }

    #header .container {
        padding: 0 !important; /* Let banner touch screen edges */
        width: 100% !important;
        max-width: 100% !important;
    }

    #header a.logo {
    display: flex !important;
    width: auto !important; /* FIXED */
    text-decoration: none !important;
    box-sizing: border-box !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    border-radius: 8px 8px 0 0 !important;
}

    /* Force hide desktop menu structures */
    #header .navbar-section.desktop-menu,
    #header .dropmenu,
    nav.dropmenu,
    .desktop-menu {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Ensure hamburger menu button is clickable and top level */
    .mobile-menu {
        display: block !important;
        z-index: 9999 !important;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    /* Ensure overlay functions correctly */
    .mobile-container,
    .overlay {
        z-index: 9998 !important;
    }
}

/* --- Mobile Menu Overrides --- */
div.overlay, #overlay {
    background-color: #05080c !important; /* opaque dark background */
    opacity: 0 !important; 
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

div.overlay.open, #overlay.open {
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-menu .logo-text-wrapper,
#overlay .logo-text-wrapper,
#overlay .mobile-logo {
    display: none !important; 
    visibility: hidden !important;
}

/* Legacy typography mapping */
h1,
h2,
h3,
h4,
h5 {
    font-family: 'Cinzel Decorative', Algerian, Georgia, serif !important;
    color: #EAEFEE;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    margin-bottom: 20px !important;
}

h2 {
    font-weight: normal;
}

p,
body,
td,
li {
    font-family: 'Merriweather', Georgia, "Times New Roman", serif !important;
    color: #FCFFFE !important;
    line-height: 1.8 !important;
}

a,
a:link,
a:visited {
    color: #FFCCFF !important;
}

a:hover,
a:active {
    color: #FFFFCC !important;
    text-decoration: underline !important;
}

.cat-left img,
.cat-right img,
.gallery-entry .image-wrap img,
.testimony-images img {
    border: 1px solid #FFF !important;
    border-radius: 8px !important;
}

.cat-entry-descr-descr {
    border: 2px solid #2c2331 !important;
    background: #281f2e !important;
    border-radius: 5px !important;
    padding: 10px !important;
}

.cat-entry-label {
    color: #b1a3dd !important;
}

.cat-entry-value {
    color: #eeddcc !important;
}

.news-date,
.litter-title,
.testimony-signature {
    font-family: Georgia, "Times New Roman", serif !important;
    color: #9966FF !important;
}

/* Custom Footer */
.custom-footer {
    background-color: #05080c !important; /* Matches mobile menu dark background */
    border-top: 2px solid #FFD700 !important; /* Gold accent line */
    padding: 60px 0 20px 0 !important;
    color: #EAEFEE;
}

.custom-footer h4 {
    color: #FFD700 !important;
    margin-bottom: 20px !important;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.custom-footer .footer-logo {
    font-size: 1.8rem !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1), 0 0 10px #9966FF !important;
}

.custom-footer .footer-links ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.custom-footer .footer-links li {
    margin-bottom: 10px !important;
}

.custom-footer .footer-links a {
    color: #EAEFEE;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.custom-footer .footer-links a:hover {
    color: #FFD700 !important;
}

.custom-footer .footer-contact i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

.custom-footer .footer-copyright {
    margin-top: 40px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    font-size: 0.9rem;
    color: #888;
}

@media (max-width: 840px) {
    .custom-footer .column {
        margin-bottom: 30px;
        text-align: center !important;
    }
}

/* Services Page Tiles */
.services-grid {
    display: flex !important;
    gap: 30px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-top: 40px !important;
}

.service-tile {
    background: rgba(40, 31, 46, 0.8) !important;
    border: 2px solid #3d2c52 !important;
    border-radius: 12px !important;
    padding: 30px 20px !important;
    width: 250px !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    backdrop-filter: blur(5px) !important;
}

.service-tile:hover {
    transform: translateY(-8px) !important;
    border-color: #9966FF !important;
    box-shadow: 0 8px 25px rgba(153, 102, 255, 0.4) !important;
    background: rgba(50, 40, 60, 0.95) !important;
}

.service-tile i {
    font-size: 3rem !important;
    color: #EAEFEE;
    margin-bottom: 20px !important;
    transition: color 0.3s ease !important;
}

.service-tile:hover i {
    color: #FFFF99 !important;
    text-shadow: 0 0 15px rgba(255, 255, 153, 0.6) !important;
}

.service-tile h3 {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    color: #FFFF99 !important;
    font-size: 1.5rem !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8) !important;
}

.service-tile p {
    color: #EAEFEE;
    font-size: 0.95rem !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Alignment toggle for strictly left-aligned text on the Breed page */
.page-breed-left #body-wrapper {
    text-align: left !important;
}

.page-breed-left #body-wrapper h1,
.page-breed-left #body-wrapper h2,
.page-breed-left #body-wrapper h3,
.page-breed-left #body-wrapper h4,
.page-breed-left #body-wrapper h5,
.page-breed-left #body-wrapper h6 {
    text-align: center !important;
}

/* Center Logo on viewports under desktop */
@media (max-width: 1024px) {
    #header .navbar {
        justify-content: center !important;
    }
    #header .navbar-center.logo {
        margin: 0 auto !important;
    }
}


/* Enhancing visibility of Kings/Queens descriptions on mobile viewports */
@media (max-width: 839px) {
    .cat-entry {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .cat-entry-image {
        width: 100% !important;
        text-align: center !important;
    }

    .cat-entry-descr {
        width: 100% !important;
        background: rgba(40, 31, 46, 0.9) !important;
        padding: 20px !important;
        border-radius: 8px !important;
        margin: 15px 0 0 0 !important;
        border: 1px solid #3d2c52 !important;
        box-sizing: border-box !important;
        float: none !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
    }

    .cat-entry-descr * {
        color: #eeddcc !important; 
    }
    
    .cat-name {
        color: #ffd700 !important;
        text-align: center !important;
        margin-bottom: 10px !important;
    }
    
    .cat-entry-label {
        color: #b1a3dd !important;
    }
}
