/*
Theme Name: Antigravity Coffee
Theme URI: https://example.com
Author: Antigravity
Description: A premium, luxury coffee bar & bistro theme with dark aesthetics.
Version: 1.0.0
Text Domain: antigravity-coffee
*/

/* ==========================================================================
   Variables & Design Tokens
   ========================================================================== */
:root {
    /* Colors */
    --bg-primary: #121212;
    --bg-secondary: #1a1a1a;
    --bg-dark-walnut: #2e2622;

    --accent-gold: #c9a24d;
    --accent-gold-light: #e0b860;
    --text-cream: #f5f2ec;
    --text-body: #a8a8a8;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
    --transition-speed: 0.3s;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-cream);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 4rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
    color: var(--accent-gold);
}

p {
    margin-bottom: 20px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gold {
    color: var(--accent-gold);
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    transition: all var(--transition-speed);
    cursor: pointer;
    background: transparent;
}

.btn:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-gold-light);
    border-color: var(--accent-gold-light);
}

.section-padding {
    padding: 100px 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color var(--transition-speed), padding var(--transition-speed);
    background: transparent;
    /* Start transparent */
}

.site-header.scrolled {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.site-header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-cream);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-cream);
    position: relative;
    padding-bottom: 5px;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width var(--transition-speed);
}

.main-navigation a:hover::after,
.main-navigation a:focus::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    color: var(--text-cream);
    font-size: 24px;
    cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--bg-secondary);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-widget h4 {
    color: var(--text-cream);
    margin-bottom: 25px;
    font-size: 1.25rem;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #666;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .mobile-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        padding: 20px;
        transform: translateY(-150%);
        transition: transform var(--transition-speed);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .main-navigation.active {
        transform: translateY(0);
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* ==========================================================================
   Homepage Sections
   ========================================================================== */

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Use a dark coffee bean background or espresso shot */
    background: url('https://images.unsplash.com/photo-1497935586351-b67a49e012bf?ixlib=rb-1.2.1&auto=format&fit=crop&w=1951&q=80') no-repeat center center/cover;
    margin-top: -80px;
    /* Counteract header height */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 18, 0.7);
    /* Dark overlay */
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    color: var(--text-cream);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 300;
    color: rgba(245, 242, 236, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.separator-line {
    width: 60px;
    height: 2px;
    background: var(--accent-gold);
    margin: 20px 0;
}

.separator-line.centered {
    margin: 20px auto;
}

.about-text h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.text-link {
    display: inline-block;
    color: var(--accent-gold);
    margin-top: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Menu Section */
.bg-secondary {
    background-color: var(--bg-secondary);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.menu-card {
    background: var(--bg-primary);
    padding: 30px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-gold);
}

.menu-card h4 {
    color: var(--text-cream);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.menu-card .price {
    display: block;
    color: var(--accent-gold);
    font-weight: 700;
    margin-top: 15px;
    font-size: 1.1rem;
}

.mt-50 {
    margin-top: 50px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-box {
    padding: 30px;
}

.feature-icon {
    font-size: 40px;
    color: var(--accent-gold);
    margin-bottom: 25px;
}

.feature-box h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* Testimonials */
.testimonial-item {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    line-height: 1.4;
    margin: 30px 0;
}

.stars {
    margin-bottom: 20px;
    font-size: 14px;
    letter-spacing: 2px;
}

/* Reservation Section */
.reservation-section {
    position: relative;
    padding: 120px 0;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1559339352-11d035aa65de?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
}

.reservation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.9));
}

.reservation-content {
    position: relative;
    z-index: 2;
}

.reservation-form-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.or-divider {
    font-family: var(--font-heading);
    font-style: italic;
    color: #666;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 1s;
    animation-fill-mode: both;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .reservation-form-wrapper {
        flex-direction: column;
    }
}