/*
Theme Name: Khalifa Bakers
Theme URI: https://khalifabakers.pk
Author: Khalifa Bakers
Author URI: https://khalifabakers.pk
Description: Custom theme for Khalifa Bakers - Traditional Bakery Since 1925
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Base Styles & Variables */
:root {
    --primary-red: #850000;
    --primary-gold: #fbbf24;
    --accent-gold: #d4af37;
    --dark-bg: #111111;
    --light-bg: #f9fafb;
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
    color: var(--primary-red);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gold);
    margin: 20px auto 0;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-red);
    color: var(--white);
    border: 1px solid var(--primary-red);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-gold {
    background-color: var(--primary-gold);
    color: var(--dark-bg);
    border-color: var(--primary-gold);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--primary-gold);
}

/* Header Styles */
header {
    background-color: var(--primary-red);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-gold);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-container {
    background-color: var(--white);
    padding: 5px 20px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 15px 15px;
    box-shadow: var(--shadow);
}

.logo-img {
    height: 70px;
    width: auto;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--white);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/images/khalifa-hero.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 40px;
    font-family: 'Playfair Display', serif;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--white);
}

/* Mobile Header Phone */
.mobile-phone-header {
    display: none;
    background: var(--gold);
    color: var(--dark-brown);
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0;
}

.wp-admin-bar .mobile-phone-header {
    margin-top: 32px;
}

.mobile-phone-header a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.floating-buttons {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* Moved to Left */
    z-index: 1000;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.call-btn {
    background-color: var(--primary-red);
    /* Changed from brown/white to red */
    color: white;
}

/* Scroll reveal classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://thekhalifabaker.site/wp-content/uploads/2025/12/generated_image_fc2b219e-9344-4888-9a65-da496fe96d15.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 180px 0 100px;
    margin-top: 70px;
    /* Offset for fixed header */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
}

.product-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-gold);
}

.product-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 30px;
    text-align: center;
}

.product-info h3 {
    margin-bottom: 15px;
    color: var(--primary-red);
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin: 15px 0;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-red);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: var(--shadow);
}

/* About Section (Fancy Typography) */
.about {
    background-color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-fancy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.about-ornament {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin: 20px 0;
    font-family: 'Playfair Display', serif;
}

.about-text p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
}

.about-signature {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-top: 40px;
}

/* Contact Section (Colorful & Better) */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.card-maroon {
    background: linear-gradient(135deg, var(--primary-red), #5d0000);
}

.card-gold {
    background: linear-gradient(135deg, var(--primary-gold), #b38600);
    color: var(--dark-bg);
}

.card-dark {
    background: linear-gradient(135deg, var(--dark-bg), #333);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-card h3 {
    color: inherit;
    margin-bottom: 10px;
}

.contact-card p,
.contact-card a {
    color: inherit;
    opacity: 0.9;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--gold);
    outline: none;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Footer (VIP & High Visibility) */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 80px 0 40px;
    border-top: 5px solid var(--primary-gold);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-links h3,
.footer-social h3 {
    color: var(--primary-gold);
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-gold);
    padding-left: 10px;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Variation Modal */
.variation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.variation-modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.variation-options {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.variation-btn {
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    transition: var(--transition);
}

.variation-btn:hover {
    border-color: var(--primary-gold);
    background: var(--light-bg);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--white);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f9f9f9;
}

.item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-qty button {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: none;
    cursor: pointer;
}

.cart-footer {
    padding: 30px;
    border-top: 1px solid #eee;
}

.total {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-red);
}

.proceed-btn {
    width: 100%;
}

/* Floating Elements */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-red);
    color: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.floating-cart:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-gold);
    color: var(--dark-bg);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        flex-direction: column;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-menu,
    .header-buttons {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-red);
        border-top: 1px solid var(--primary-gold);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        padding: 30px;
        z-index: 999;
    }

    .nav-menu.active a {
        color: var(--white);
        font-size: 1.2rem;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active li {
        margin: 0;
        margin-bottom: 15px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-phone-header {
        display: block;
    }

    .floating-buttons {
        display: flex;
    }

    .logo-img {
        height: 50px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links h3:after,
    .footer-social h3:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }

    /* Added responsive styles */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding: 150px 0 80px;
    }

    .logo-img {
        height: 45px;
    }
}