/* ---
   Black & Bean - Urban Cafe Style
   Author: Gemini Code Assist
   Version: 1.0
--- */

/* 1. Variables & Global Resets
-------------------------------------------------- */
:root {
    --color-black: #121212;
    --color-gray: #2C2C2C;
    --color-white: #F8F8F8;
    --color-gold: #C9A86A;
    --color-text: #EAEAEA;
    --font-primary: 'Heebo', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --header-height: 80px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-black);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 2. Accessibility & Utility Classes
-------------------------------------------------- */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-gold);
    color: var(--color-black);
    padding: 10px 15px;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 10px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: var(--color-white);
}

/* 3. Typography & Basic Elements
-------------------------------------------------- */
h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 4. Buttons
-------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: var(--font-secondary);
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-black);
    border-color: var(--color-gold);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: transparent;
    color: var(--color-gold);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--color-white);
    color: var(--color-black);
}

/* 5. Header & Navigation
-------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 1px;
}

.nav-links {
    display: none; /* Mobile first */
    list-style: none;
}

.nav-links a {
    color: var(--color-text);
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 15px;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a:focus::after {
    width: calc(100% - 30px);
}

.btn-whatsapp {
    display: none; /* Mobile first */
    background-color: var(--color-gold);
    color: var(--color-black);
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-family: var(--font-secondary);
    transition: all 0.3s ease;
}
.btn-whatsapp:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Styles */
.nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    gap: 2rem;
}
.nav-links.mobile-active li a {
    font-size: 1.5rem;
}

/* 6. Sections
-------------------------------------------------- */
section {
    padding: 6rem 0;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1554118811-1e0d58224f24?q=80&w=1900&auto=format&fit=crop') no-repeat center center/cover;
    padding-top: var(--header-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18,18,18,1) 0%, rgba(18,18,18,0.5) 60%, rgba(18,18,18,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-family: var(--font-secondary);
    color: #ccc;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Demo Notice Section */
.demo-notice {
    background-color: var(--color-gold);
    color: var(--color-black);
    text-align: center;
    padding: 1rem 0;
    font-weight: 500;
}
.demo-notice p {
    margin: 0;
}
.demo-notice a {
    color: var(--color-black);
    font-weight: 700;
    text-decoration: underline;
}
.demo-notice a:hover {
    color: #000;
}

/* Our Coffee Section */
.our-coffee-section {
    background-color: var(--color-black);
}
.coffee-cards-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
.coffee-card {
    background-color: var(--color-gray);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.coffee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.card-icon svg {
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}
.card-title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}
.card-text {
    color: #aaa;
}

/* Menu Section */
.menu-section {
    background-color: var(--color-gray);
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.menu-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.menu-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.menu-item:hover img {
    transform: scale(1.1);
}
.item-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.item-details h3 {
    font-size: 1.2rem;
    color: var(--color-white);
    margin: 0;
}
.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gold);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
.about-image img {
    border-radius: 8px;
}
.about-text .section-title {
    text-align: right;
}
.about-text p {
    margin-bottom: 2rem;
    color: #bbb;
}
.about-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.about-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gold);
    font-weight: 500;
}
.about-features svg {
    stroke: var(--color-gold);
}

/* Gallery Section */
.gallery-section {
    background-color: var(--color-gray);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
}
.gallery-item img {
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Our Philosophy Section */
.philosophy-section {
    background-color: var(--color-black);
}
.philosophy-content {
    max-width: 800px; /* Adjust as needed for readability */
    margin: 0 auto;
    text-align: center;
    color: #bbb; /* Slightly lighter than default text for contrast */
}
.philosophy-content p {
    margin-bottom: 1.5rem;
}
/* Working Zone Section */
.working-zone-section {
    background: url('https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?q=80&w=1200&auto=format&fit=crop') no-repeat center center/cover;
    padding: 8rem 0;
}
.glass-effect {
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
}
.glass-effect .section-title {
    font-family: var(--font-secondary);
}
.glass-effect p {
    max-width: 700px;
    margin: 0 auto;
    color: #ddd;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.testimonial-card {
    background-color: var(--color-gray);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-gold);
}
.stars {
    color: var(--color-gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.quote {
    font-style: italic;
    margin-bottom: 1rem;
    color: #ccc;
}
cite {
    font-weight: 700;
    color: var(--color-white);
    font-style: normal;
}

/* Contact Section */
.contact-section {
    background-color: var(--color-gray);
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    background-color: var(--color-black);
    padding: 3rem;
    border-radius: 8px;
}
.contact-info h3 {
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}
.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.contact-info a {
    color: var(--color-text);
}
.contact-info a:hover {
    color: var(--color-gold);
}
.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #aaa;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--color-gray);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--color-text);
    font-family: var(--font-primary);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}
.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    display: none;
    margin-top: 5px;
}
.form-group.invalid .error-message {
    display: block;
}
.form-group.invalid input, .form-group.invalid textarea {
    border-color: #ff6b6b;
}

/* 7. Footer
-------------------------------------------------- */
.main-footer {
    background-color: var(--color-black);
    padding-top: 4rem;
    font-size: 0.9rem;
    color: #aaa;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
}
.footer-section h4 {
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
}
.footer-section a {
    color: #aaa;
}
.footer-section a:hover {
    color: var(--color-gold);
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.social-icons a svg {
    transition: stroke 0.3s ease;
}
.social-icons a:hover svg {
    stroke: var(--color-gold);
}
.weblite-logo {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-white) !important;
}
.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--color-gray);
}

/* 8. Media Queries (Desktop First)
-------------------------------------------------- */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 0.5rem;
    }
    .btn-whatsapp {
        display: block;
    }
    .mobile-menu-toggle {
        display: none;
    }
    .hero-title {
        font-size: 4rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
    .coffee-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .about-container {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
    }
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        text-align: right;
    }
    .social-icons {
        justify-content: flex-end;
    }
}