/* COFFEA Cafe - Modern Custom CSS Stylesheet & Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Theme Colors */
    --coffea-primary: #006B68;
    --coffea-primary-hover: #005B58;
    --coffea-dark: #004E4C;
    --coffea-dark-deep: #003B39;
    --coffea-accent: #F2B544;
    --coffea-accent-hover: #DFA333;
    --coffea-cream: #F7F3EA;
    --coffea-white: #FFFDFC;
    --coffea-muted: #D9E8E5;
    --coffea-muted-light: #EEF3F0;
    
    /* Text Hierarchy */
    --text-primary: #242424;
    --text-secondary: #67645F;
    --text-muted: #817E78;
    --text-on-brand: #FFFDFC;
    
    /* Borders & Overlays */
    --border-light: #D8DDD9;
    --border-brand: rgba(0, 107, 104, 0.22);
    --overlay-dark: rgba(0, 55, 53, 0.62);
    --overlay-soft: rgba(0, 55, 53, 0.32);
    
    /* Legacy variables mapping for backward compatibility */
    --bg-dark: var(--coffea-cream);
    --bg-card: var(--coffea-white);
    --bg-card-hover: var(--coffea-muted-light);
    --primary: var(--coffea-primary);
    --primary-hover: var(--coffea-primary-hover);
    --accent: var(--coffea-accent);
    --text-main: var(--text-secondary);
    --border-color: var(--border-light);

    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--coffea-cream);
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

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

a:hover {
    color: var(--coffea-primary-hover);
}

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

/* Layout Wrapper */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

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

/* Navigation Header */
.header {
    background-color: rgba(247, 243, 234, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 107, 104, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--coffea-primary);
}

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

.nav-link {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 16px;
    color: var(--text-secondary);
}

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

.nav-cta {
    background-color: var(--coffea-primary);
    color: var(--text-on-brand);
    font-family: var(--font-head);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    background-color: var(--coffea-primary-hover);
    color: var(--text-on-brand);
    transform: translateY(-2px);
}

/* Hamburger Menu (Mobile) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--overlay-dark) 0%, var(--coffea-dark) 100%);
    text-align: center;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.hero-subtitle {
    font-family: var(--font-head);
    color: var(--coffea-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-block;
    border-bottom: 2px solid var(--coffea-accent);
    padding-bottom: 4px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: var(--text-on-brand);
}

.hero-title span {
    background: linear-gradient(135deg, #ffffff 40%, var(--coffea-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 18px;
    color: var(--coffea-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--coffea-primary);
    color: var(--text-on-brand);
}

.btn-primary:hover {
    background-color: var(--coffea-primary-hover);
    color: var(--text-on-brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    border-color: var(--coffea-primary-hover);
    background-color: var(--coffea-primary);
    color: var(--text-on-brand);
    transform: translateY(-2px);
}

/* Secondary Button on Dark (Hero Section) */
.hero .btn-secondary {
    color: var(--text-on-brand);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero .btn-secondary:hover {
    border-color: var(--coffea-accent);
    color: var(--coffea-accent);
    background-color: rgba(255, 253, 252, 0.1);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-subtitle {
    color: var(--coffea-primary);
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--coffea-dark);
}

/* Cards Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.card {
    background-color: var(--coffea-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 107, 104, 0.32);
    background-color: var(--coffea-white);
    box-shadow: var(--shadow-lg);
}

.card-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card-desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
}

/* Menu Page Styles */
.menu-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.menu-nav-btn {
    background-color: var(--coffea-white);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 10px 20px;
    font-family: var(--font-head);
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-nav-btn:hover, .menu-nav-btn.active {
    background-color: var(--coffea-primary);
    color: var(--text-on-brand);
    border-color: var(--coffea-primary);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

.menu-item {
    background-color: var(--coffea-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
}

.menu-item:hover {
    border-color: rgba(0, 107, 104, 0.32);
    background-color: var(--coffea-white);
}

.menu-item-details {
    flex: 1;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.menu-item-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.menu-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--coffea-primary);
    font-family: var(--font-head);
}

.menu-item-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.menu-item-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.badge-veg {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.25);
}

.badge-nonveg {
    background-color: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.25);
}

.badge-best {
    background-color: rgba(242, 181, 68, 0.15);
    color: #b27a00;
    border: 1px solid rgba(242, 181, 68, 0.35);
}

/* Contact / Reservation Forms */
.reservation-box {
    background-color: var(--coffea-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 700px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--coffea-dark);
}

.form-control {
    background-color: var(--coffea-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--coffea-primary);
    box-shadow: 0 0 0 2px rgba(0, 107, 104, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2367645f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Footer & NAP Consistency */
.footer {
    background-color: var(--coffea-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 80px 0 40px;
    font-size: 14px;
    color: var(--coffea-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.footer-column-title {
    font-family: var(--font-head);
    font-size: 18px;
    color: var(--text-on-brand);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--coffea-muted);
}

.footer-links a:hover {
    color: var(--coffea-accent);
}

.footer-nap-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nap-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-nap-list svg {
    margin-top: 3px;
    flex-shrink: 0;
    color: var(--coffea-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Flash Messages */
.flash-message {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-weight: 500;
}

.flash-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.25);
}

.flash-error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.25);
}

/* Responsive Mobile Improvements */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Can be enhanced with JS if hamburger is toggled */
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 40px;
    }
}

/* Gallery Styles */
.gallery-filter-btn {
    background-color: var(--coffea-white);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 10px 24px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-filter-btn:hover, .gallery-filter-btn.active {
    background-color: var(--coffea-primary);
    color: var(--text-on-brand);
    border-color: var(--coffea-primary);
    box-shadow: var(--shadow-sm);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.gallery-card {
    background-color: var(--coffea-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    border: 1px solid var(--border-light);
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 107, 104, 0.2);
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: var(--coffea-muted-light);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    pointer-events: none;
}

.gallery-badge {
    background-color: rgba(0, 107, 104, 0.9);
    color: var(--text-on-brand);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 0.8px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-info {
    padding: 20px 24px;
}

.gallery-caption {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}


