/* ============================================================
   ATE UNIFIED THEME — Premium High-Tech Background & Site Theme
   Single source of truth for background, header, footer and
   glass-card styling across ALL pages.
   Load AFTER style.css and responsive.css:
   <link rel="stylesheet" href="css/theme.css">
   ============================================================ */

/* ---------- Full-page gradient background (Variant A) ----------
   Implemented as a fixed pseudo-element instead of
   background-attachment: fixed, which iOS Safari ignores. */
html {
    background: #0a1628; /* fallback */
    min-height: 100vh;
}

body {
    background: transparent;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(180deg,
        #0a1628 0%,
        #0d1b2a 15%,
        #1a3a5c 30%,
        #2d5a87 45%,
        #4a7ba7 55%,
        #7ea8c9 65%,
        #b8d4e8 78%,
        #e8f1f7 90%,
        #f5f8fa 100%);
    pointer-events: none;
}

/* Subtle geometric grid overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.5;
    pointer-events: none;
}

/* ---------- Content sections: transparent + glass containers ---------- */
.fitness-care-gym-area,
.section-padding,
.single-post-page,
.contact-section {
    background: transparent !important;
    position: relative;
}

.fitness-care-gym-area .container,
.section-padding .container,
.single-post-page .container,
.contact-section .container {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Location / light sections with glass effect */
section[style*="background: #f8f9fa"] {
    background: rgba(255, 255, 255, 0.7) !important;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

/* Inner banner with gradient overlay */
.inner-banner {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(26, 58, 92, 0.85) 100%) !important;
}

/* Breadcrumb */
.bread-cumb {
    background: rgba(13, 27, 42, 0.8) !important;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* ---------- Header ---------- */
.header {
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.95) 0%, rgba(13, 27, 42, 0.9) 100%) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header .menuzord-menu > li > a {
    color: #ffffff !important;
}

.header .menuzord-menu > li > a:hover,
.header .menuzord-menu > li > a.active {
    color: #7ea8c9 !important;
}

.header-top {
    background: rgba(5, 13, 24, 0.98) !important;
}

/* Header logo visibility on dark background */
.header .menuzord-brand img {
    filter: brightness(0) invert(1);
}

/* ---------- Mobile menu ---------- */
.menuzord-responsive .showhide,
.menuzord .showhide,
#menuzord .showhide,
.showhide {
    background: transparent !important;
    background-color: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    box-shadow: none !important;
}

.menuzord-responsive .showhide em,
.menuzord .showhide em,
.showhide em {
    background: #ffffff !important;
    background-color: #ffffff !important;
    height: 2px !important;
    margin: 4px 0 !important;
}

.header-menu-wrapper,
.header .header-menu-wrapper,
.header-v2 .header-menu-wrapper {
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.98) 0%, rgba(13, 27, 42, 0.95) 100%) !important;
    background-color: #0a1628 !important;
}

.menuzord-responsive .menuzord-menu,
.menuzord .menuzord-menu.menuzord-indented {
    background: rgba(10, 22, 40, 0.98) !important;
    background-color: #0a1628 !important;
}

.menuzord-responsive .menuzord-menu > li,
.menuzord .menuzord-menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.menuzord-responsive .menuzord-menu > li > a,
.menuzord .menuzord-menu > li > a {
    color: #ffffff !important;
    padding: 15px 20px !important;
}

.menuzord-responsive .menuzord-menu ul.dropdown,
.menuzord .menuzord-menu ul.dropdown {
    background: rgba(5, 13, 24, 0.98) !important;
    background-color: #050d18 !important;
}

@media (max-width: 992px) {
    .header,
    .header-v2,
    .header-menu-wrapper,
    .menuzord,
    #menuzord {
        background: #0a1628 !important;
        background-color: #0a1628 !important;
    }

    .header-top,
    .header .header-top {
        background: #050d18 !important;
        background-color: #050d18 !important;
    }

    .showhide,
    .menuzord .showhide {
        background: transparent !important;
        background-color: transparent !important;
    }
}

/* ---------- Revolution slider (homepage) ---------- */
.rev_slider_wrapper,
.rev_slider,
#slider1,
.tp-bgimg,
.forcefullwidth_wrapper_tp_banner {
    background: transparent !important;
}

.rev_slider_wrapper {
    position: relative;
}

/* Sections flow seamlessly over gradient */
section {
    margin: 0;
    background: transparent;
    position: relative;
}

/* ---------- Footer ---------- */
.footer-area {
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.98) 0%, #050d18 100%) !important;
    border-top: 1px solid rgba(0, 120, 215, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.footer-bottom-area {
    background: #050d18 !important;
}

.footer-bottom-logo img {
    height: 45px !important;
    filter: brightness(0) invert(1);
    opacity: 0.9 !important;
}

/* ---------- Cards & content boxes ---------- */
.single-item,
.package-list,
.faq-item,
.single-blog-post,
.single-blog-post .content {
    background: transparent !important;
    border-radius: 8px;
}

table {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
}

.section-title h1,
.section-title h2 {
    color: #0d1b2a;
}

a:hover {
    transition: all 0.3s ease;
}

/* ---------- Unified accent color (green) ----------
   Overrides the legacy lime #a6c311 from the original template. */
.thm-btn {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thm-btn:hover {
    background: linear-gradient(135deg, #2fc251 0%, #28a745 100%) !important;
    transform: translateY(-1px);
}

.color-green {
    color: #28a745 !important;
}

/* ---------- Page transitions ---------- */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 100%);
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

.page-transition-logo {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.8s ease-in-out 0.3s;
}

.page-transition.active .page-transition-logo {
    opacity: 1;
}

.page-transition-logo img {
    height: 120px;
    filter: brightness(0) invert(1);
}

body {
    opacity: 0;
    animation: pageEnter 1s ease-in-out forwards;
    animation-delay: 0.1s;
}

@keyframes pageEnter {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE (shared)
   ============================================================ */

/* Touch-friendly tap targets */
@media (max-width: 992px) {
    a, button, .thm-btn, input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .header-top .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .header-top .contact-info {
        text-align: center;
        float: none !important;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .header-top .contact-info li {
        font-size: 12px !important;
    }

    .header-top .social {
        float: none !important;
        text-align: center;
        margin-top: 8px;
    }

    .inner-banner h2 {
        font-size: 28px !important;
    }

    .bread-cumb ul {
        font-size: 13px;
    }

    .footer-area .row {
        text-align: center;
    }

    .footer-area .col-lg-4 {
        margin-bottom: 30px;
    }

    .footer-area .quick-links,
    .footer-area .contact {
        text-align: left;
        max-width: 320px;
        margin: 0 auto;
    }

    .footer-bottom .clearfix {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-bottom .pull-left,
    .footer-bottom .pull-right {
        float: none !important;
        text-align: center;
    }

    .footer-bottom .pull-left {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .footer-bottom .copy-right p {
        font-size: 12px;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    .fitness-care-gym-area .container,
    .section-padding .container,
    .single-post-page .container,
    .contact-section .container {
        padding: 20px !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        border-radius: 10px !important;
    }

    .inner-banner {
        padding: 25px 0 !important;
        min-height: auto !important;
    }

    .inner-banner h2 {
        font-size: 24px !important;
        line-height: 1.3;
    }

    .bread-cumb {
        padding: 8px 0 !important;
    }

    .bread-cumb ul li {
        font-size: 12px !important;
    }

    section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    h1 { font-size: 24px !important; }
    h2 { font-size: 22px !important; }
    h3 { font-size: 20px !important; }

    .section-title h1 {
        font-size: 22px !important;
    }

    .img-holder img {
        border-radius: 8px !important;
    }

    .footer-area {
        padding: 30px 0 !important;
    }

    .footer-area .container {
        background: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .footer-area .single-footer-widget {
        margin-bottom: 25px;
    }

    .footer-area .footer-logo img {
        max-height: 45px !important;
    }

    .footer-bottom-area {
        padding: 15px 0 !important;
    }

    .thm-btn,
    a[style*="text-transform: uppercase"] {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    body {
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    div[style*="backdrop-filter"][style*="padding: 50px"] {
        padding: 25px !important;
    }

    div[style*="backdrop-filter"][style*="padding: 40px"] {
        padding: 20px !important;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .fitness-care-gym-area .container,
    .section-padding .container,
    .single-post-page .container,
    .contact-section .container {
        padding: 15px !important;
        border-radius: 8px !important;
    }

    .inner-banner h2 {
        font-size: 20px !important;
    }

    h1 { font-size: 20px !important; }
    h2 { font-size: 18px !important; }
    h3 { font-size: 17px !important; }

    p {
        font-size: 14px;
        line-height: 1.6;
    }

    .footer-bottom .pull-left {
        gap: 8px !important;
    }

    .footer-bottom-logo img {
        height: 35px !important;
    }
}
