/*
Theme Name: Velvet Bean Coffee
Theme URI: https://velvetbean.ph
Author: Velvet Bean Coffee Co.
Author URI: https://velvetbean.ph
Description: A modern, elegant coffee shop landing page theme with Gutenberg block support
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: velvet-bean
*/

/* Base Styles */
:root {
    --coffee-black: #0D0D0D;
    --coffee-brown: #1A1512;
    --caramel: #C4A77D;
    --amber: #8B6914;
    --cream: #F5F0E8;
    --taupe: #A89F94;
    --light-cream: #E8DCC4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--coffee-black);
    color: var(--cream);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Gutenberg Block Styles */
.wp-block-group {
    padding: 60px 20px;
}

@media (min-width: 1024px) {
    .wp-block-group {
        padding: 120px 40px;
    }
}

/* Hero Section */
.wp-block-velvet-bean-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--coffee-brown);
}

.wp-block-velvet-bean-hero .hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--coffee-black), rgba(13, 13, 13, 0.8), transparent);
    z-index: 1;
}

.wp-block-velvet-bean-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 40px 60px;
    width: 100%;
}

/* Navigation */
.wp-block-velvet-bean-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.wp-block-velvet-bean-nav .nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.wp-block-velvet-bean-nav .nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.wp-block-velvet-bean-nav .nav-logo-icon {
    font-size: 28px;
}

.wp-block-velvet-bean-nav .nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: #F5F0E8;
    letter-spacing: 0.5px;
}

.wp-block-velvet-bean-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.wp-block-velvet-bean-nav .nav-link {
    color: #A89F94;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.wp-block-velvet-bean-nav .nav-link:hover {
    color: #F5F0E8;
}

.wp-block-velvet-bean-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C4A77D;
    transition: width 0.3s ease;
}

.wp-block-velvet-bean-nav .nav-link:hover::after {
    width: 100%;
}

.wp-block-velvet-bean-nav .book-now-btn {
    padding: 10px 24px;
    background: #C4A77D;
    color: #0D0D0D;
    font-weight: 500;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-block-velvet-bean-nav .book-now-btn:hover {
    background: #E8DCC4;
    transform: scale(1.05);
}

/* Mobile Menu Button */
.wp-block-velvet-bean-nav .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #F5F0E8;
    padding: 8px;
    cursor: pointer;
}

.wp-block-velvet-bean-nav .mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu */
.wp-block-velvet-bean-nav .mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .wp-block-velvet-bean-nav .nav-menu {
        display: none;
    }
    
    .wp-block-velvet-bean-nav .mobile-menu-btn {
        display: block;
    }
    
    .wp-block-velvet-bean-nav .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(13, 13, 13, 0.98);
        z-index: 200;
        transform: translateX(100%);
        transition: transform 0.5s ease;
    }
    
    .wp-block-velvet-bean-nav .mobile-menu.active {
        transform: translateX(0);
    }
    
    .wp-block-velvet-bean-nav .mobile-menu-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        gap: 32px;
    }
    
    .wp-block-velvet-bean-nav .mobile-link {
        font-size: 24px;
        font-family: 'Playfair Display', serif;
        color: #F5F0E8;
        text-decoration: none;
    }
    
    .wp-block-velvet-bean-nav .mobile-close-btn {
        position: absolute;
        top: 24px;
        right: 24px;
        background: none;
        border: none;
        color: #F5F0E8;
        font-size: 28px;
        cursor: pointer;
    }
}

.wp-block-velvet-bean-nav.scrolled {
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Coffee Cards */
.wp-block-velvet-bean-card {
    background-color: var(--coffee-brown);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.5s ease;
}

.wp-block-velvet-bean-card:hover {
    transform: translateY(-8px);
    border-color: rgba(196, 167, 125, 0.3);
    box-shadow: 0 20px 40px rgba(196, 167, 125, 0.1);
}

/* Collection Cards */
.wp-block-velvet-bean-collection {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.wp-block-velvet-bean-collection img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.wp-block-velvet-bean-collection:hover img {
    transform: scale(1.1);
}

.wp-block-velvet-bean-collection .collection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--coffee-black), rgba(26, 21, 18, 0.4), transparent);
}

/* Testimonial Cards */
.wp-block-velvet-bean-testimonial {
    background-color: var(--coffee-brown);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
}

/* Buttons */
.wp-block-velvet-bean-button {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--caramel);
    color: var(--coffee-black);
    font-weight: 500;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-block-velvet-bean-button:hover {
    background-color: var(--light-cream);
    transform: scale(1.05);
}

.wp-block-velvet-bean-button-outline {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid var(--caramel);
    color: var(--caramel);
    font-weight: 500;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-block-velvet-bean-button-outline:hover {
    background-color: var(--caramel);
    color: var(--coffee-black);
}

/* Form Styles */
.wp-block-velvet-bean-form input,
.wp-block-velvet-bean-form select,
.wp-block-velvet-bean-form textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(13, 13, 13, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--cream);
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.3s ease;
}

.wp-block-velvet-bean-form input:focus,
.wp-block-velvet-bean-form select:focus,
.wp-block-velvet-bean-form textarea:focus {
    outline: none;
    border-color: var(--caramel);
}

.wp-block-velvet-bean-form input::placeholder {
    color: var(--taupe);
}

/* Booking Modal */
.wp-block-velvet-bean-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.wp-block-velvet-bean-modal.active {
    display: block;
}

.wp-block-velvet-bean-modal .modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(5px);
}

.wp-block-velvet-bean-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--coffee-brown);
    border: 1px solid rgba(196, 167, 125, 0.2);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Responsive Grid */
@media (min-width: 768px) {
    .wp-block-columns-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    
    .wp-block-columns-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--coffee-black);
}

::-webkit-scrollbar-thumb {
    background: var(--caramel);
    border-radius: 4px;
}

/* Gutenberg Pattern Container */
.wp-block-velvet-bean-pattern {
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section Styles */
.vb-hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: #1A1512;
}

.vb-hero .vb-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 40px 60px;
}

.vb-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.vb-hero-content {
    padding-top: 20px;
}

.vb-hero-image {
    display: block;
}

.vb-hero-image img {
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
}

/* Responsive Hero */
@media (max-width: 1024px) {
    .vb-hero-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .vb-hero-content {
        padding-top: 0;
    }
    
    .vb-hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .vb-hero-content div {
        justify-content: center;
    }
    
    .vb-hero-image {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .vb-hero .vb-container {
        padding: 100px 20px 40px;
    }
    
    .vb-hero h1 {
        font-size: 48px !important;
    }
    
    .vb-hero-content p:first-of-type {
        font-size: 16px !important;
    }
    
    .vb-hero-content p:nth-of-type(2) {
        font-size: 16px !important;
    }
}
