/* =====================================================
   Reliant Theme - Custom CSS
   Brand: Humble Help
   Colors: #EE9630 (Orange), #FFF4CE (Cream), White, #2D3436 (Charcoal)
   ===================================================== */

/* =====================================================
   CSS Custom Properties (Brand Colors)
   ===================================================== */
:root {
    /* Brand Colors */
    --hh-orange: #EE9630;
    --hh-orange-hover: #d9852a;
    --hh-orange-light: rgba(238, 150, 48, 0.1);
    --hh-cream: #FFF4CE;
    --hh-cream-dark: #f5e6b8;
    --hh-charcoal: #2D3436;
    --hh-charcoal-light: #3d4446;
    
    /* Extended Palette */
    --hh-white: #ffffff;
    --hh-offwhite: #fafafa;
    --hh-gray-100: #f8f9fa;
    --hh-gray-200: #e9ecef;
    --hh-gray-300: #dee2e6;
    --hh-gray-600: #6c757d;
    --hh-gray-800: #343a40;
    
    /* Shadows */
    --hh-shadow-sm: 0 2px 8px rgba(45, 52, 54, 0.08);
    --hh-shadow: 0 4px 16px rgba(45, 52, 54, 0.1);
    --hh-shadow-lg: 0 8px 32px rgba(45, 52, 54, 0.12);
    --hh-shadow-xl: 0 16px 48px rgba(45, 52, 54, 0.15);
    
    /* Border Radius */
    --hh-radius-sm: 8px;
    --hh-radius: 12px;
    --hh-radius-lg: 16px;
    --hh-radius-xl: 24px;
    --hh-radius-pill: 9999px;
    
    /* Transitions */
    --hh-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --hh-transition-fast: all 0.15s ease;
}

/* =====================================================
   Global Styles
   ===================================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--hh-charcoal);
    background-color: var(--hh-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings with Playfair Display */
h1, h2, h3, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--hh-charcoal);
    letter-spacing: -0.02em;
}

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

/* =====================================================
   Button Styles
   ===================================================== */
.btn {
    border-radius: var(--hh-radius-pill);
    font-weight: 500;
    transition: var(--hh-transition);
    padding: 0.625rem 1.5rem;
}

.btn-primary {
    background-color: var(--hh-orange);
    border-color: var(--hh-orange);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--hh-orange-hover);
    border-color: var(--hh-orange-hover);
    transform: translateY(-2px);
    box-shadow: var(--hh-shadow);
}

.btn-outline-primary {
    color: var(--hh-orange);
    border-color: var(--hh-orange);
}

.btn-outline-primary:hover {
    background-color: var(--hh-orange);
    border-color: var(--hh-orange);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--hh-charcoal);
    border-color: white;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* =====================================================
   Card Styles
   ===================================================== */
.card {
    border: none;
    border-radius: var(--hh-radius);
    box-shadow: var(--hh-shadow-sm);
    transition: var(--hh-transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hh-shadow-lg);
}

.card-img-top {
    border-radius: var(--hh-radius) var(--hh-radius) 0 0;
}

/* Product Cards */
.product-card {
    border-radius: var(--hh-radius);
    overflow: hidden;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* =====================================================
   Navigation Styles
   ===================================================== */
.navbar {
    background: white;
    box-shadow: var(--hh-shadow-sm);
    transition: var(--hh-transition);
}

.navbar.sticky {
    box-shadow: var(--hh-shadow);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--hh-charcoal) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--hh-charcoal) !important;
    transition: var(--hh-transition);
    padding: 0.5rem 1rem !important;
    border-radius: var(--hh-radius-sm);
}

.nav-link:hover {
    color: var(--hh-orange) !important;
    background: var(--hh-orange-light);
}

.nav-link.active {
    color: var(--hh-orange) !important;
}

/* =====================================================
   Hero Section Styles
   ===================================================== */
.hero-video {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.hero-video .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 52, 54, 0.85) 0%, rgba(238, 150, 48, 0.4) 100%);
    z-index: -1;
}

.hero-video .content {
    position: relative;
    z-index: 1;
}

/* Hero Badge */
.hero-badge {
    background: var(--hh-orange);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--hh-radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* =====================================================
   Section Backgrounds
   ===================================================== */
.bg-cream {
    background-color: var(--hh-cream) !important;
}

.bg-charcoal {
    background-color: var(--hh-charcoal) !important;
    color: white;
}

.bg-orange {
    background-color: var(--hh-orange) !important;
    color: white;
}

/* =====================================================
   Badge Styles
   ===================================================== */
.badge {
    border-radius: var(--hh-radius-pill);
    font-weight: 500;
    padding: 0.5em 1em;
}

.badge.bg-orange {
    background-color: var(--hh-orange) !important;
    color: white;
}

/* =====================================================
   Form Styles
   ===================================================== */
.form-control {
    border-radius: var(--hh-radius);
    border: 1px solid var(--hh-gray-300);
    padding: 0.75rem 1rem;
    transition: var(--hh-transition);
}

.form-control:focus {
    border-color: var(--hh-orange);
    box-shadow: 0 0 0 3px var(--hh-orange-light);
}

.form-select {
    border-radius: var(--hh-radius);
    border: 1px solid var(--hh-gray-300);
}

.form-select:focus {
    border-color: var(--hh-orange);
    box-shadow: 0 0 0 3px var(--hh-orange-light);
}

/* =====================================================
   Input Group Styles
   ===================================================== */
.input-group .btn {
    border-radius: 0 var(--hh-radius-pill) var(--hh-radius-pill) 0;
}

.input-group .form-control {
    border-radius: var(--hh-radius-pill) 0 0 var(--hh-radius-pill);
}

/* =====================================================
   Product Grid & Carousel
   ===================================================== */
.product-carousel .card {
    margin: 0 0.75rem;
}

.product-carousel .owl-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    background: var(--hh-orange) !important;
    color: white !important;
    border: none;
    transition: var(--hh-transition);
}

.product-carousel .owl-nav button:hover {
    background: var(--hh-orange-hover) !important;
    transform: scale(1.1);
}

.product-carousel .owl-dots .owl-dot.active span {
    background: var(--hh-orange);
}

/* =====================================================
   Footer Styles
   ===================================================== */
footer.footer {
    background: var(--hh-charcoal);
    color: white;
}

footer.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--hh-transition);
}

footer.footer a:hover {
    color: var(--hh-orange);
}

footer.footer .h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* =====================================================
   Animation Enhancements
   ===================================================== */
[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover animations */
.hover-lift {
    transition: var(--hh-transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

.hover-scale {
    transition: var(--hh-transition);
}

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

/* =====================================================
   Utility Classes
   ===================================================== */
.rounded-brand {
    border-radius: var(--hh-radius) !important;
}

.rounded-brand-lg {
    border-radius: var(--hh-radius-lg) !important;
}

.shadow-brand {
    box-shadow: var(--hh-shadow) !important;
}

.shadow-brand-lg {
    box-shadow: var(--hh-shadow-lg) !important;
}

.text-orange {
    color: var(--hh-orange) !important;
}

.text-cream {
    color: var(--hh-cream) !important;
}

/* =====================================================
   Responsive Adjustments
   ===================================================== */
@media (max-width: 768px) {
    .hero-video {
        min-height: 80vh;
    }
    
    h1, .display-1, .display-2, .display-3 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 576px) {
    .hero-video {
        min-height: 70vh;
    }
    
    h1, .display-1, .display-2, .display-3 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* =====================================================
   Logo Styles
   ===================================================== */
.logo-default,
.logo-sticky,
.logo-default-dark,
.logo-default-dark-sticky {
    max-height: 40px;
    width: auto;
}

.logo-sticky { display: none; }
.logo-default-dark { display: none; }
.logo-default-dark-sticky { display: none; }

div.sticky .logo-sticky { display: block; }
div.sticky .logo-default { display: none; }
div.sticky .logo-default-dark { display: none; }
div.sticky .logo-default-dark-sticky { display: none; }

[data-bs-theme="dark"] .logo-default-dark { display: block; }
[data-bs-theme="dark"] .logo-default { display: none; }

/* =====================================================
   Premium Slider Customization
   ===================================================== */
.premium-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--hh-radius-lg);
}

.premium-slider .slide {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.premium-slider .slide-content {
    position: relative;
    z-index: 2;
}

.premium-slider .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.premium-slider .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 52, 54, 0.7) 0%, rgba(238, 150, 48, 0.3) 100%);
    z-index: 1;
}

/* =====================================================
   Testimonial Section
   ===================================================== */
.testimonial-card {
    background: white;
    border-radius: var(--hh-radius);
    padding: 2rem;
    box-shadow: var(--hh-shadow-sm);
    transition: var(--hh-transition);
}

.testimonial-card:hover {
    box-shadow: var(--hh-shadow);
    transform: translateY(-4px);
}

.testimonial-card .quote-icon {
    color: var(--hh-orange);
    font-size: 2rem;
    opacity: 0.3;
}

.testimonial-card .author-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--hh-orange);
}

/* =====================================================
   Feature Icons
   ===================================================== */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--hh-orange-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--hh-orange);
}

/* =====================================================
   Newsletter Section
   ===================================================== */
.newsletter-section {
    background: var(--hh-cream);
    border-radius: var(--hh-radius-xl);
    padding: 4rem 2rem;
}

.newsletter-section .form-control {
    border-radius: var(--hh-radius-pill) 0 0 var(--hh-radius-pill);
}

.newsletter-section .btn {
    border-radius: 0 var(--hh-radius-pill) var(--hh-radius-pill) 0;
}

/* =====================================================
   Section Spacing
   ===================================================== */
section {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
}

/* =====================================================
   Custom Scrollbar
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--hh-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--hh-gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hh-gray-600);
}

/* =====================================================
   Selection Color
   ===================================================== */
::selection {
    background: var(--hh-orange);
    color: white;
}

::-moz-selection {
    background: var(--hh-orange);
    color: white;
}

/* =====================================================
   Video Play State
   ===================================================== */
.hero-video .position-absolute.overflow-hidden.play {
    /* Add visual indicator when video is playing */
}

.hero-video video {
    transition: opacity 0.3s ease;
}
