/* 
 * Premium Multipurpose Service Theme - Grayic Style Overhaul
 * Author: Antigravity
 * License: Private
 */

/* =========================================
   1. Design System & Variables
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Fan Club / Membership Palette */
    --primary-color: #C67B3F;
    /* Warm Orange - Buttons, CTAs, Highlights */
    --secondary-color: #a66634;
    /* Darker Orange for Hover */
    --accent-color: #F6EBD8;
    /* Warm Ivory - Main Background, Cards */
    --tertiary-color: #E8D8C3;
    /* Soft Sand - Alternate Sections, Borders */

    /* Functional Colors */
    --body-bg: #F6EBD8;
    --card-bg: #F6EBD8;
    --section-alt: #E8D8C3;
    --text-main: #3D2D1E;
    /* Darker warm tone for readability */
    --text-muted: #7A634E;
    /* Muted warm tone */
    --border-color: #E8D8C3;
    --success-color: #8B9D77;
    /* Sage-like success color to match warm theme */
    --warning-color: #E2A76F;

    /* Typography - Clean & Editorial */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;

    /* Modern Tokens */
    --border-radius-sm: 0.5rem;
    --border-radius-lg: 1.25rem;
    --border-radius-xl: 2rem;

    --shadow-sm: 0 2px 4px rgba(61, 45, 30, 0.05);
    --shadow-md: 0 4px 12px rgba(61, 45, 30, 0.08);
    --shadow-lg: 0 10px 25px rgba(61, 45, 30, 0.1);
    --shadow-hover: 0 20px 35px rgba(61, 45, 30, 0.12);

    --glass-bg: rgba(246, 235, 216, 0.8);
    --glass-border: rgba(232, 216, 195, 0.5);

    --section-padding: 7rem 0;
}

/* Dark Mode Variables */
[data-bs-theme="dark"] {
    --body-bg: #0F172A;
    /* Slate 900 */
    --card-bg: #1E293B;
    /* Slate 800 */
    --text-main: #F1F5F9;
    /* Slate 100 */
    --text-muted: #94A3B8;
    /* Slate 400 */
    --border-color: #334155;
    /* Slate 700 */
    --section-alt: #1E293B;
    /* Match card bg or slightly different */
    --accent-color: #1E293B;
    --tertiary-color: #334155;

    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}



/* =========================================
   2. Global Resets & Typography
   ========================================= */
body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--body-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.025em;
    /* Tighter heading tracking */
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* =========================================
   3. Utility Classes
   ========================================= */
.text-primary-brand {
    color: #b36b33 !important;
    /* Slightly darker for better accessibility on light backgrounds */
}

.bg-primary-brand {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.text-secondary-brand {
    color: var(--accent-color) !important;
}

.text-theme {
    color: var(--text-main) !important;
}

.btn-white {
    background-color: #ffffff;
    color: #3D2D1E;
    border: 1px solid #E8D8C3;
}

[data-bs-theme="dark"] .btn-white {
    background-color: var(--card-bg);
    color: var(--text-main);
    border-color: var(--border-color);
}

/* Responsive Backgrounds */
.bg-main-theme {
    background-color: var(--body-bg) !important;
}

.bg-card-theme {
    background-color: var(--card-bg) !important;
}

.bg-section-alt {
    background-color: var(--section-alt) !important;
}

.bg-soft-sand {
    background-color: var(--section-alt) !important;
}

.bg-glass {
    background-color: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.backdrop-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-brand {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white !important;
}

.section-padding {
    padding: var(--section-padding);
}

/* Glassmorphism Card */
.card {
    border: 1px solid var(--border-color) !important;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover {
    box-shadow: var(--shadow-sm);
}

.card-hover:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    background-color: var(--card-bg);
}

.shadow-soft {
    box-shadow: var(--shadow-lg);
}

.container-header-footer {
    width: 100%;
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
    margin-right: auto;
    margin-left: auto;
}

/* =========================================
   4. Header & Navigation (Floating Glass)
   ========================================= */
.navbar {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0;
    box-shadow: var(--shadow-sm);
}

/* ===== Navbar Alignment Fix ===== */
.navbar .container-header-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    color: var(--text-main);
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 0.5rem 1rem !important;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

#theme-toggle {
    padding: 0.5rem !important;
}

.navbar .vr-separator {
    width: 1px;
    height: 24px;
    background-color: var(--border-color);
    margin: 0 0.5rem;
}



/* =========================================
   5. Hero Section (Modern)
   ========================================= */
.hero-section {
    padding: 7.5rem 0 3rem;
    /* Reduced padding for more compact header section */
    position: relative;
    overflow: hidden;
    background-image: url('../images/hero1.jfif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(246, 235, 216, 0.7);
    /* Matching --accent-color @ 70% opacity */
    z-index: 0;
}

[data-bs-theme="dark"] .hero-section::before {
    background: rgba(15, 23, 42, 0.7);
    /* Matching dark mode --body-bg @ 70% opacity */
}

.hero-section>.container {
    position: relative;
    z-index: 1;
}

/* Background blob decoration */
.hero-bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(198, 123, 63, 0.1) 0%, rgba(246, 235, 216, 0) 70%);
    top: -200px;
    right: -100px;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

[data-bs-theme="dark"] .hero-bg-blob {
    background: radial-gradient(circle, rgba(198, 123, 63, 0.2) 0%, rgba(61, 45, 30, 0) 70%);
}


.hero-section p {
    font-weight: 600 !important;
}

/* Universal Hover Dropdowns */
.navbar .nav-item.dropdown:hover>.dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.navbar .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.navbar .nav-item.dropdown:hover>.dropdown-menu {
    pointer-events: auto;
}

/* Specific adjustments for Mobile/Offcanvas Dropdowns */
@media (max-width: 991.98px) {
    .offcanvas .navbar-nav .dropdown-menu {
        position: relative !important;
        transform: none !important;
        box-shadow: none !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease-in-out;
        opacity: 0 !important;
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        margin: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .offcanvas .navbar-nav .nav-item.dropdown:hover>.dropdown-menu {
        max-height: 500px;
        opacity: 1 !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

.hero-title {
    font-size: 3.75rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section .btn-lg {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }

    .hero-section .d-flex.flex-wrap {
        gap: 0.5rem !important;
    }
}

/* =========================================
   6. Components
   ========================================= */
/* Buttons */
.btn {
    border-radius: 2rem;
    /* Pill shape standard */
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.btn-primary-custom:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(198, 123, 63, 0.4);
    color: white;
}

.btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline-secondary:hover {
    background-color: var(--body-bg);
    border-color: var(--text-main);
    color: var(--text-main);
}

/* Icon Box */
.icon-box {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    /* Soft square */
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    padding: 5rem 0 3rem;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.footer h5 {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-link {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Inputs */
.form-control,
.form-select {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    background-color: var(--card-bg);
    color: var(--text-main);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* ===== Desktop Flex Only ===== */
@media (min-width: 992px) {
    .offcanvas-body {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-nav {
        flex-direction: row;
        align-items: center;
        margin-bottom: 0 !important;
    }

    .offcanvas-body .d-flex {
        flex-direction: row !important;
        align-items: center;
    }
}

/* ===== Mobile Polish ===== */
@media (max-width: 991.98px) {
    .offcanvas {
        width: 85%;
        max-width: 360px;
    }

    .offcanvas-body {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .offcanvas-body .btn {
        width: 100%;
    }
}

/* Dashboard Sidebar Layout */
#wrapper {
    overflow-x: hidden;
}

#sidebar-wrapper {
    min-height: 100vh;
    width: 16.5rem;
    margin-left: -16.5rem;
    transition: margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    position: relative;
    z-index: 1050;
    overflow-x: hidden;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

#sidebar-wrapper .list-group-item {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 0.85rem 1.25rem;
    font-weight: 500;
    border-radius: 0.75rem;
    margin: 0.2rem 0.75rem;
    transition: all 0.2s ease;
    width: auto;
    white-space: nowrap;
}

#sidebar-wrapper .list-group-item:hover,
#sidebar-wrapper .list-group-item.active {
    background-color: rgba(198, 123, 63, 0.1);
    color: var(--primary-color);
}

#page-content-wrapper {
    min-width: 100vw;
}

/* Sidebar Toggle Desktop Behavior */
@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    body.sb-sidenav-toggled #sidebar-wrapper {
        margin-left: -16.5rem;
    }
}

/* Sidebar Toggle Mobile Behavior */
@media (max-width: 767.98px) {
    #sidebar-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        margin-left: -16.5rem;
        box-shadow: none;
    }

    body.sb-sidenav-toggled #sidebar-wrapper {
        margin-left: 0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
    }
}

/* Sidebar Backdrop */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

body.sb-sidenav-toggled .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
}


/* =========================================
   7. New Section Styles
   ========================================= */
/* Accordion Customization */
.accordion-button:not(.collapsed) {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.accordion-button::after {
    filter: sepia(100%) saturate(300%) brightness(70%) hue-rotate(330deg);
    /* Adjust to match primary color */
}

[data-bs-theme="dark"] .accordion-button::after {
    filter: invert(1) brightness(2);
}

/* Premium Text & Accents */
.ls-1 {
    letter-spacing: 0.1em;
}

.premium-text {
    opacity: 0.8;
}

/* Line Clamp Utility */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

/* Float Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Wave Divider Fill */
.wave-divider .shape-fill {
    fill: var(--body-bg);
}

/* Testimonial Quote Icon */
.bi-quote {
    opacity: 0.2;
}

.card-hover:hover .bi-quote {
    opacity: 0.5;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Gallery Item Hover */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(30, 29, 39, 0.8) 0%, rgba(30, 29, 39, 0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item .bg-gradient {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Comparison Table Styling */
.table th {
    font-family: var(--font-heading);
}

[data-bs-theme="dark"] .table {
    color: var(--text-main);
}

[data-bs-theme="dark"] .table-borderless> :not(caption)>*>* {
    border-color: var(--border-color);
}

.table .bi-check-circle-fill {
    font-size: 1.25rem;
}

/* Newsletter Section Glass Effect */
.bg-white.bg-opacity-10 {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Newsletter Section Alignment */
.newsletter-form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form-container .form-control {
    border-radius: 2rem !important;
    text-align: center;
}

.newsletter-form-container .btn {
    border-radius: 2rem !important;
}

@media (min-width: 576px) {
    .newsletter-form-container {
        flex-direction: row;
        gap: 0;
        max-width: 100%;
    }

    .newsletter-form-container .form-control {
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        text-align: left;
    }

    .newsletter-form-container .btn {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }
}

/* Standardized Social Buttons */
.social-btn-circle {
    width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.social-btn-circle i {
    font-size: 1rem !important;
    line-height: 1 !important;
}

/* ===== Offcanvas Height Fix ===== */
.offcanvas-body {
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
}

@media (max-width: 991.98px) {
    .offcanvas {
        height: 100vh !important;
        max-height: 100vh !important;
    }

    .offcanvas-body {
        max-height: calc(100vh - 60px) !important;
    }
}

/* ===== Desktop Flex Only ===== */
@media (min-width: 992px) {
    .offcanvas-body {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-nav {
        flex-direction: row;
        align-items: center;
        margin-bottom: 0 !important;
    }

    .offcanvas-body .d-flex {
        flex-direction: row !important;
        align-items: center;
    }
}

/* ===== Mobile Polish ===== */
@media (max-width: 991.98px) {
    .offcanvas {
        width: 85%;
        max-width: 360px;
    }

    .offcanvas-body {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .offcanvas-body .btn {
        width: 100%;
    }
}

/* Apply position: absolute only for hamburger menu dropdowns */
.offcanvas .navbar-nav .dropdown-menu {
    position: absolute !important;
}

/* =========================================
   8. Milestone Roadmap (Unique Section)
   ========================================= */
.roadmap-wrapper {
    position: relative;
    padding: 2rem 0;
}

.roadmap-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--border-color);
    z-index: 0;
    transform: translateY(-50%);
    border-radius: 2px;
}

.milestone-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    height: 100%;
}

.milestone-dot {
    width: 24px;
    height: 24px;
    background: var(--border-color);
    border-radius: 50%;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid var(--body-bg);
    z-index: 2;
}

.milestone-card.active .milestone-dot {
    background: var(--primary-color);
}

.milestone-card.current {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.milestone-card.current .milestone-dot {
    background: var(--primary-color);
}

/* Team Section Enhancements */
.team-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.card-hover:hover .team-photo {
    transform: scale(1.1);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.milestone-date {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

/* Vertical Roadmap for Mobile */
@media (max-width: 991px) {
    .roadmap-line {
        top: 0;
        left: 20px;
        width: 4px;
        height: 100%;
        transform: none;
    }

    .milestone-dot {
        top: 2rem;
        left: -32px;
        transform: none;
    }

    .roadmap-wrapper {
        padding-left: 3rem;
    }

    .milestone-card {
        margin-bottom: 1.5rem;
    }

    .milestone-card.current {
        transform: translateX(10px);
    }
}

/* Accessibility & Pulse */
.pulse {
    box-shadow: 0 0 0 rgba(198, 123, 63, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(198, 123, 63, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(198, 123, 63, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(198, 123, 63, 0);
    }
}