@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Outfit:wght@300;400;600&display=swap');

:root {
    --primary-color: #d35400;
    --secondary-color: #2c3e50;
    --accent-color: #f39c12;
    --text-color: #333;
    --bg-color: #fdfcfb;
    --navbar-bg: rgba(255, 255, 255, 0.9);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

/* --- Common Components --- */
h1,
h2,
h3 {
    margin-bottom: 20px;
    line-height: 1.2;
}

p {
    margin-bottom: 20px;
    color: #555;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    /* Match secondary button border */
    line-height: normal;
    /* Fix button vs link line-height issues */
    white-space: nowrap;
    min-width: 250px;
    /* Standardize width for desktop balance */
}

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

.btn-primary:hover,
.dropdown.open .btn-primary {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(211, 84, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white !important;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* --- DropdownStyles --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 180px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    color: var(--secondary-color);
    padding: 15px 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px solid #eee;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #fff5eb;
    color: var(--primary-color);
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after,
.dropdown.open .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.lobster {
    font-family: 'Lobster', cursive;
}

.logo {
    font-family: 'Lobster', cursive;
    font-size: 2.8rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
    padding: 10px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    background: url('assets/the-spice-kitchen-home-banner.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: stretch;
    /* Ensure children can have same height */
}

/* --- Main Content --- */
.main-content {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* --- Responsive Media Queries --- */

/* For Tablets and smaller Desktops */
@media screen and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* For Mobile Devices (max-width: 900px as per user preference) */
@media screen and (max-width: 900px) {
    .navbar {
        padding: 0 5%;
    }

    .logo {
        font-size: 2.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-link.active::after {
        display: none;
    }

    /* Hamburger to X Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hero Responsive */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        align-items: center;
    }

    .dropdown {
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

/* For Extra Small Devices */
@media screen and (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .main-content {
        padding: 50px 5%;
    }
}