/*
Theme Name: Chomolungma Cuisine
Theme URI: https://github.com/chomolungmacuisine
Author: Antigravity
Author URI: https://github.com/antigravity
Description: A premium, modern WordPress starter theme for Chomolungma Cuisine Restaurant, fully compatible with Elementor Page Builder and Revolution Slider. It includes custom Elementor widgets, Google Reviews integration, and dynamic Custom Post Types for restaurant menus.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chomocuisine
Tags: custom-menu, featured-images, full-width-template, translation-ready, food-and-drink

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool.
*/

/* ==========================================================================
   Design System & Custom Properties
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #f38d16;
    --color-primary-hover: #d67509;
    --color-primary-light: #fff2e3;
    --color-dark: #111111;
    --color-dark-light: #1c1c1c;
    --color-bg-cream: #fdf8f4;
    --color-bg-white: #ffffff;
    --color-text-dark: #1c1c1c;
    --color-text-body: #555555;
    --color-text-light: #888888;
    --color-border: #eceae6;
    --color-star: #ffb400;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Borders & Shadows */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-pill: 9999px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Base resets & typography
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-body);
    background-color: var(--color-bg-white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.5em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-hover);
}

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

/* Base utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Button styles matching mockup */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--border-radius-pill);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-bg-white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

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

.btn-white {
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
}

.btn-white:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    transform: translateY(-2px);
}

/* Elementor Full Width Compatibility */
.elementor-template-full-width .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.site-header {
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    transition: all 0.3s ease;
}

.site-header .custom-logo {
    filter: brightness(0.0) invert(1);
    max-width: 190px;
}

/* Sticky header state — applied by JS after scrolling past .parallax-header-section */
.site-header--sticky {
    position: fixed;
    top: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 14px 0;
    z-index: 1000;
}

.site-header--sticky .site-branding a,
.site-header--sticky .site-branding .site-title a {
    color: var(--color-text-dark);
}

.site-header--sticky .custom-logo {
    filter: none;
}

.site-header--sticky .main-navigation a {
    color: var(--color-text-dark);
    opacity: 1;
}

.site-header--sticky .main-navigation a:hover {
    color: var(--color-primary);
}

.site-header--sticky .menu-toggle .icon-bar {
    background-color: var(--color-text-dark);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-branding h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.site-branding a {
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Nav Menu */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation a {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    padding: 12px 15px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    color: var(--color-primary);
    opacity: 1;
}

.btn-header {
    padding: 10px 24px;
    font-size: 14px;
}

/* Responsive hamburger menu style */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle .icon-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-text-light);
    padding-top: 80px;
    font-family: var(--font-body);
}

.footer-container-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 1200px !important;
}

.footer-logo h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-widget-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

/* Widget styling support inside footer columns */
.footer-widget-col .widget {
    margin-bottom: 25px;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.footer-widget-col .widget:last-child {
    margin-bottom: 0;
}

.footer-widget-col .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-widget-col .widget ul a,
.footer-widget-col .widget ul li {
    color: #a8a8a8;
    font-size: 14px;
    transition: color 0.3s ease, padding 0.3s ease;
}

.footer-widget-col .widget ul a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-widget-col .widget .widgettitle,
.footer-widget-col .widget h2,
.footer-widget-col .widget h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
    font-family: var(--font-heading);
}

.footer-widget-col .widget .widgettitle::after,
.footer-widget-col .widget h2::after,
.footer-widget-col .widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu-links a {
    color: #a8a8a8;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-menu-links a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-details li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    color: #a8a8a8;
}

.footer-contact-details li .footer-contact-icon {
    color: var(--color-primary);
    width: 18px;
    height: 18px;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact-details li .footer-contact-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-contact-details .detail-text {
    line-height: 1.5;
}

.site-info {
    padding: 24px 0;
    background-color: #0b0b0b;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px !important;
}

.footer-bottom-flex p {
    margin: 0;
}

.footer-bottom-links a {
    color: #666;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Responsive Header/Footer
   ========================================================================== */
@media (max-width: 991px) {
    .footer-container-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .site-header {
        position: relative;
        background-color: var(--color-dark);
        padding: 16px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--color-dark);
        padding: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        gap: 15px;
        z-index: 999;
    }

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

    .btn-header {
        display: none;
        /* Hide button on mobile or place inside toggled menu */
    }

    .footer-container-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links a {
        margin: 0 10px;
    }
}

/* ==========================================================================
   Parallax Header Styles
   ========================================================================== */
.parallax-header-section {
    position: relative;
    height: 520px;
    min-height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    z-index: 1;
}

.parallax-header-section .parallax-background {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: calc(100% + 120px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    will-change: transform;
}

.parallax-header-section .parallax-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.75) 0%, rgba(17, 17, 17, 0.5) 50%, rgba(17, 17, 17, 0.8) 100%);
    z-index: 2;
}

.parallax-header-section .parallax-header-content {
    position: relative;
    z-index: 3;
    padding-top: 100px;
    /* offset space for absolute navbar */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.parallax-header-section .parallax-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.parallax-header-section .parallax-header-divider {
    display: block;
    width: 36px;
    height: 3px;
    background-color: var(--color-primary);
    margin-bottom: 12px;
    border-radius: 2px;
}

.parallax-header-section .parallax-breadcrumbs {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.parallax-header-section .parallax-breadcrumbs a {
    color: #ffffff;
    opacity: 0.85;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.parallax-header-section .parallax-breadcrumbs a:hover {
    color: var(--color-primary);
    opacity: 1;
}

.parallax-header-section .parallax-breadcrumbs .breadcrumb-separator {
    margin: 0 10px;
    font-style: normal;
    color: var(--color-primary);
    font-weight: bold;
}

.parallax-header-section .parallax-breadcrumbs .breadcrumb-current {
    color: #ffffff;
    opacity: 0.95;
}

.parallax-header-section .parallax-page-title {
    font-family: var(--font-heading);
    font-size: 58px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.parallax-header-section .parallax-page-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustment for Parallax Header */
@media (max-width: 767px) {
    .parallax-header-section {
        height: 360px;
        min-height: 320px;
    }

    .parallax-header-section .parallax-header-content {
        padding-top: 40px;
        /* Site header absolute position might be relative on mobile */
    }

    .parallax-header-section .parallax-page-title {
        font-size: 36px;
    }

    .parallax-header-section .parallax-page-subtitle {
        font-size: 15px;
    }
}