/* Cedar Restaurant Custom Styles */
/* This file contains additional custom styles that complement the Tailwind CSS framework */

/* Custom CSS variables for consistent theming */
:root {
    --cedar-charcoal: #2D2D2D;
    --cedar-charcoal-light: #3A3A3A;
    --cedar-coral: #E07A5F;
    --cedar-coral-dark: #C4624A;
    --cedar-cream: #F5F1EB;
    --cedar-warm: #E8E0D5;
    --cedar-white: #FFFFFF;
    --cedar-gray: #6B7280;
}

/* Base styles and resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--cedar-charcoal);
    background-color: var(--cedar-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--cedar-charcoal);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, var(--cedar-coral) 0%, var(--cedar-coral-dark) 100%);
    color: var(--cedar-white);
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(224, 122, 95, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(224, 122, 95, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--cedar-charcoal);
    border: 2px solid var(--cedar-charcoal);
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--cedar-charcoal);
    color: var(--cedar-white);
}

/* Navigation styles */
.navbar {
    background: rgba(245, 241, 235, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(224, 122, 95, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(245, 241, 235, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cedar-charcoal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--cedar-coral);
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.navbar-nav a {
    color: var(--cedar-charcoal);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cedar-coral);
    transition: width 0.3s ease;
}

.navbar-nav a:hover {
    color: var(--cedar-coral);
}

.navbar-nav a:hover::after {
    width: 100%;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--cedar-charcoal);
}

/* Hero section styles */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.85) 0%, rgba(45, 45, 45, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--cedar-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

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

/* Section styles */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--cedar-coral);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--cedar-charcoal);
    margin-bottom: 1.5rem;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--cedar-coral) 50%, transparent 100%);
    margin: 0 auto 2rem;
}

/* Menu card styles */
.menu-card {
    background: var(--cedar-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.menu-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.menu-card-content {
    padding: 1.5rem;
}

.menu-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cedar-charcoal);
    margin-bottom: 0.75rem;
}

.menu-card-description {
    color: var(--cedar-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.menu-card-price {
    color: var(--cedar-coral);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Gallery styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

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

/* Testimonial styles */
.testimonial-card {
    background: var(--cedar-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--cedar-coral);
    opacity: 0.2;
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    color: var(--cedar-charcoal-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--cedar-coral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cedar-white);
    font-weight: 700;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.testimonial-name {
    font-weight: 700;
    color: var(--cedar-charcoal);
}

.testimonial-role {
    color: var(--cedar-gray);
    font-size: 0.875rem;
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--cedar-charcoal);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--cedar-warm);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    background: var(--cedar-white);
}

.form-input:focus {
    outline: none;
    border-color: var(--cedar-coral);
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.1);
}

.form-input::placeholder {
    color: var(--cedar-gray);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* Success message */
.success-message {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
}

.success-message.show {
    display: block;
}

/* Footer styles */
.footer {
    background: var(--cedar-charcoal);
    color: var(--cedar-cream);
    padding: 4rem 0 2rem;
}

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

.footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cedar-white);
    margin-bottom: 1rem;
    display: block;
    text-decoration: none;
}

.footer-brand:hover {
    color: var(--cedar-coral);
}

.footer-description {
    color: rgba(245, 241, 235, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--cedar-white);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(245, 241, 235, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cedar-coral);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 241, 235, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: rgba(245, 241, 235, 0.5);
    font-size: 0.875rem;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(245, 241, 235, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        border-bottom: 2px solid var(--cedar-coral);
    }

    .navbar-nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        position: relative;
        width: 100%;
        height: 400px;
        margin-top: 2rem;
    }

    .section {
        padding: 4rem 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--cedar-coral);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid var(--cedar-charcoal);
    }
    
    .btn-secondary {
        border-width: 3px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .mobile-menu-btn,
    .hero-image,
    .gallery-item,
    .footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .menu-card,
    .testimonial-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
