:root {
    --primary-color: #c08b5c;     /* Warm Coffee */
    --primary-hover: #a67246;     /* Darker Coffee */
    --secondary-color: #2c2121;   /* Dark Roast */
    --accent-color: #e6ccb2;      /* Latte Base */
    --text-dark: #1f1a1a;
    --text-light: #fdfbf7;
    --text-muted: #665a5a;
    --bg-light: #fffaf5;
    --bg-card: #ffffff;
    --bg-dark: #110e0e;
    --transition: all 0.3s ease-in-out;
    --shadow-soft: 0 10px 30px rgba(44, 33, 33, 0.05);
    --shadow-hover: 0 15px 40px rgba(192, 139, 92, 0.2);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Utility Classes */
.section {
    padding: 100px 5%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(192, 139, 92, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 139, 92, 0.4);
}

.text-primary {
    color: var(--primary-color);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--secondary-color);
}

/* ---------------- Navbar Styles ---------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: var(--bg-card);
    padding: 1rem 0;
    box-shadow: var(--shadow-soft);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a,
.navbar.scrolled .hamburger .bar {
    color: var(--secondary-color);
}

.navbar.scrolled .hamburger .bar {
    background-color: var(--secondary-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo span {
    display: flex;
    flex-direction: column;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: var(--transition);
}

/* ---------------- Home Section ---------------- */
.home-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    overflow: hidden;
}

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

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(17, 14, 14, 0.8), rgba(17, 14, 14, 0.5));
}

.home-content {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    max-width: 800px;
}

.home-content h1 {
    font-size: 4.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0.9;
}

.home-buttons {
    display: flex;
    gap: 15px;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive basics for Header/Home */
@media (max-width: 991px) {
    .home-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

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

    .nav-links a {
        color: var(--secondary-color);
        font-size: 1.2rem;
    }

    .home-content h1 {
        font-size: 2.8rem;
    }
    
    .home-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        text-align: center;
    }
}

/* ---------------- About Section ---------------- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text > p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.vision-box, .specialty-box {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.vision-box:hover, .specialty-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.vision-box i, .specialty-box i {
    font-size: 2rem;
    margin-top: 5px;
}

.vision-box h4, .specialty-box h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.vision-box p, .specialty-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.about-image {
    position: relative;
}

.about-image .main-img {
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    width: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 2rem;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    box-shadow: var(--shadow-hover);
    border: 8px solid var(--bg-light);
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
}

.experience-badge .text {
    font-size: 0.85rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

@media (max-width: 991px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        padding: 0 20px;
    }
    
    .experience-badge {
        bottom: -20px;
        left: 0;
    }
}

/* ---------------- Menu Section ---------------- */
.menu-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.menu-btn {
    padding: 8px 24px;
    border-radius: 30px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.menu-btn.active, .menu-btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-item-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.menu-item-header h4 {
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.menu-item-header .price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.menu-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.order-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: var(--bg-card);
    padding: 8px;
    border-radius: 30px;
    border: 1px solid #eaeaea;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--accent-color);
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.qty {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Floating Cart */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    padding: 15px 25px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.floating-cart.hidden {
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.cart-info i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ---------------- Gallery Section ---------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 15px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 33, 33, 0.4);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

.main-img {
    grid-column: span 2;
    grid-row: span 2;
}

.tall-img {
    grid-row: span 2;
}

.wide-img {
    grid-column: span 2;
}

@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
    }

    .main-img {
        grid-column: span 3;
        grid-row: span 1;
        height: 300px;
    }

    .tall-img, .wide-img {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }

    .wide-img {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .main-img, .tall-img, .wide-img, .gallery-item {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }
}

/* ---------------- Contact Section ---------------- */
.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-item h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-muted);
}

.social-links-contact {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}

.social-links-contact a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links-contact a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.input-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(192, 139, 92, 0.2);
}

.contact-form .btn {
    width: 100%;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    background-color: #eee;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 991px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ---------------- Footer ---------------- */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 5% 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: inline-flex;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: rgba(255,255,255,0.7);
}

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

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
}

.newsletter-form button {
    padding: 10px 20px;
    border: none;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-hover);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}
