/**
 * Main CSS File
 * Component styles, utilities, and page-specific styles.
 */

/* --------------------------------------------------------------------------
 * Base Component Styles
 * -------------------------------------------------------------------------- */
/* Colors */
:root {
    --cc-primary: #a82e2e;
    /* Deep red extracted from Order Now button */
    --cc-primary-dark: #812222;
    --cc-secondary: #000000;
    --cc-secondary-light: #222222;
    --cc-text-main: #dddddd;
    --cc-text-light: #ffffff;
    --cc-white: #ffffff;
    --cc-black: #000000;
    --cc-border-color: #a82e2e;

    /* Typography */
    --cc-font-main: 'Open Sans',
        sans-serif;
    --cc-font-heading: 'Merriweather',
        'Georgia',
        serif;

    /* Spacing */
    --cc-spacing-xs: 0.5rem;
    --cc-spacing-sm: 1rem;
    --cc-spacing-md: 2rem;
    --cc-spacing-lg: 4rem;
    --cc-spacing-xl: 6rem;

    /* Layout */
    --cc-container-width: 1300px;
    --cc-border-radius: 25px;
    /* Rounded buttons */
    --cc-transition-speed: 0.3s;
}

body {
    background-color: var(--cc-black);
    color: var(--cc-text-main);
    font-family: var(--cc-font-main);
    line-height: 1.6;
}

.cc-btn {
    display: inline-block;
    padding: 0.6rem 2rem;
    font-family: var(--cc-font-main);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--cc-border-radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--cc-transition-speed) ease;
    border: 2px solid transparent;
    text-decoration: none;
}

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

.cc-btn-primary:hover {
    background-color: transparent;
    color: var(--cc-primary);
}

/* --------------------------------------------------------------------------
 * Header & Navigation (Refactored code)
 * -------------------------------------------------------------------------- */
.site-header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header-fixed.scrolled {
    background: #211e1b;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 80px;
    transition: height 0.3s cubic-bezier(0.78, 0.13, 0.15, 0.86);
}

.site-header-fixed.scrolled .header-container {
    height: 60px;
}

.site-branding {
    display: flex;
    align-items: center;
}

/* Base logo size for desktop */
.site-branding img {
    height: 85px;
    width: auto;
    transition: height 0.3s ease;
}

.site-header-fixed.scrolled .site-branding img {
    height: 60px;
}

.cc-header-nav-wrapper {
    display: flex;
    align-items: center;
}

.cc-main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.cc-main-nav li {
    margin: 0 10px;
}

.cc-main-nav a {
    color: #f5f5f5;
    font-weight: 700;
    font-size: 16px;
    font-family: var(--font-h1, serif);
    text-decoration: none;
    /* Impreza transparent header text */
    padding: 20px;
    transition: color 0.3s ease;
}

.cc-main-nav a:hover {
    color: #781515;
}

.site-header-fixed.scrolled .cc-main-nav a {
    color: #ccc4bc;
}

.site-header-fixed.scrolled .cc-main-nav a:hover {
    color: #ffffff;
}

.cc-header-actions {
    display: flex;
    align-items: center;
    margin-left: 20px;
    gap: 15px;
}

.order-btn {
    background: #e94141;
    color: #ffffff !important;
    font-size: 13px;
    font-family: var(--font-h1, serif);
    font-weight: 600;
    border-radius: 30px;
    padding: 9px 15px;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
    white-space: nowrap;
}

.order-btn:hover {
    box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.2);
}

.halal-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-top: 5px;
}

/* Mobile Toggle Hamburger */
.mobile-top-actions {
    display: none;
}

.cc-mobile-toggle {
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 28px;
    color: #f5f5f5;
    position: relative;
    z-index: 1005;
}

.cc-mobile-toggle::before {
    content: '\f0c9';
    /* FontAwesome bars icon */
    font-family: 'FontAwesome';
}

/* Overlay for Mobile Menu */
.header-overlay {
    display: none;
    position: fixed;
    z-index: 101;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(0, 0, 0, 0);
    transition: all 0.3s;
}

body.mobile-menu-active .header-overlay {
    display: block;
    visibility: visible;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999;
}

/* Override stray Impreza auto-generated mobile toggles and headers */
.w-nav-control,
.w-nav-icon,
body .l-header {
    display: none !important;
}

/* Mobile Breakpoint (match Impreza 899px) */
@media (max-width: 899px) {
    .site-header-fixed {
        background: rgba(0, 0, 0, 0.6);
    }

    .mobile-top-actions {
        display: block;
        margin-left: auto;
    }

    .site-branding img {
        height: 75px;
    }

    .cc-header-nav-wrapper {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: #211e1b;
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.15);
        z-index: 1001;
        overflow-y: auto;
    }

    body.mobile-menu-active .cc-header-nav-wrapper {
        right: 0;
    }

    .cc-main-nav {
        display: block !important;
        width: 100%;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .cc-main-nav ul {
        flex-direction: column;
        width: 100%;
        margin: 0 0 30px 0 !important;
        padding: 0 !important;
        display: flex !important;
        background: transparent !important;
    }

    .cc-main-nav li {
        margin: 0 0 15px 0 !important;
        background: transparent !important;
    }

    .cc-main-nav a {
        font-size: 18px;
        padding: 0;
        color: #ccc4bc;
    }

    .cc-header-actions {
        display: flex !important;
        margin-left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .mobile-social-links {
        display: flex;
        gap: 20px;
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .mobile-social-links a {
        color: #f5f5f5;
        font-size: 22px;
        transition: color 0.3s ease;
    }

    .mobile-social-links a:hover {
        color: #e94141;
    }
}

@media (max-width: 600px) {
    .site-branding img {
        height: 90px;
    }

    .site-header-fixed.scrolled .site-branding img {
        height: 90px;
    }

    .site-header-fixed .header-container {
        height: auto;
        padding: 10px 1.5rem;
    }

    .site-header-fixed.scrolled .header-container {
        height: auto;
    }
}


/* --------------------------------------------------------------------------
 * Hero Section
 * -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Dark overlay as requested by user */
    z-index: -1;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
}

.hero-content {
    text-align: left;
    color: var(--cc-white);
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-family: var(--cc-font-heading);
    margin-bottom: var(--cc-spacing-xs);
    color: var(--cc-white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 0 var(--cc-spacing-md) 0;
    font-family: var(--cc-font-heading);
}

.hero-buttons {
    display: flex;
    gap: var(--cc-spacing-sm);
    justify-content: flex-start;
}

/* --------------------------------------------------------------------------
 * Section Styles & Patterns
 * -------------------------------------------------------------------------- */
.section-pattern {
    background-color: rgba(30, 10, 10, 0.95);
    /* Deeper dark red/brown tint */
    background-image: url('../media/ajrak-bg.png');
    /* User requested ajrak-bg.png */
    background-repeat: repeat;
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    color: var(--cc-text-light);
}

.section-dark-bg {
    position: relative;
    padding: var(--cc-spacing-xl) 0;
    overflow: hidden;
}

.gallery-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.4);
    z-index: -1;
    transform: scale(1.1);
    /* Hide blurred edges */
}

.ambience-container {
    display: flex;
    align-items: center;
    gap: var(--cc-spacing-lg);
    flex-wrap: wrap;
}

.ambience-text-col,
.ambience-img-col {
    flex: 1;
    min-width: 300px;
}

.ambience-text-col h2 {
    font-size: 3.5rem;
    font-family: var(--cc-font-heading);
    line-height: 1.1;
    margin-bottom: var(--cc-spacing-md);
}

.ambience-img-col img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.gallery-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.gallery-grid-3 img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.9);
}

/* --------------------------------------------------------------------------
 * Stats Section (Custom Bars)
 * -------------------------------------------------------------------------- */
.stats-container {
    max-width: 900px;
    margin: 0 auto;
}

.stats-heading {
    text-align: center;
    font-size: 3rem;
    font-family: var(--cc-font-heading);
    margin-bottom: var(--cc-spacing-lg);
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

span.stat-number {
    color: white;
}

.stat-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
}

.stat-label {
    font-family: var(--cc-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 700;
}

.stat-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: var(--cc-primary);
    border-radius: 4px;
    transform-origin: left;
    transition: transform 1.5s ease-out;
}

/* --------------------------------------------------------------------------
 * Footer
 * -------------------------------------------------------------------------- */
.site-footer {
    background: var(--cc-secondary);
    color: var(--cc-text-light);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--cc-spacing-lg);
}

.footer-widget h3 {
    color: var(--cc-white);
    margin-bottom: var(--cc-spacing-sm);
    font-size: 1.25rem;
}

.site-info {
    background: var(--cc-black);
    padding: var(--cc-spacing-sm) 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
 * Mobile Responsiveness
 * -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        color: var(--cc-text-main);
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--cc-white);
        padding: var(--cc-spacing-sm);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .header-actions {
        display: none;
    }

    section.l-section.wpb_row.us_custom_a518f36e {
        padding-left: 40px !important;
    }
}