/* Redwood Bistro - Main Stylesheet */
/* Premium design with refined animations and visual polish */

:root {
    --color-red: #B3252A;
    --color-red-dark: #8E1E22;
    --color-green: #353E28;
    --color-cream: #F5F1E8;
    --color-cream-light: #FAF8F3;
    --color-cream-dark: #E5E0D5;
    --color-text: #2C2C2C;
    --color-text-light: #555555;
    --color-white: #FFFFFF;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 16px 48px rgba(0, 0, 0, 0.15);

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-cream);
}

body {
    font-family: 'Lora', Georgia, serif;
    background-color: var(--color-cream);
    color: var(--color-text);
    line-height: 1.8;
    font-size: 17px;
    overflow-x: hidden;
}

::selection {
    background-color: var(--color-red);
    color: var(--color-white);
}

/* ================================
   TYPOGRAPHY
   ================================ */

h1,
h2,
h3,
h4 {
    font-family: 'Sorts Mill Goudy', 'Goudy Old Style', Georgia, serif;
    font-weight: normal;
    line-height: 1.25;
    color: var(--color-text);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
}

p {
    margin-bottom: 18px;
    color: var(--color-text-light);
}

a {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-cream-dark);
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--color-text);
    border-color: var(--color-green);
}

/* ================================
   LAYOUT
   ================================ */

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ================================
   NAVIGATION - Premium floating nav
   ================================ */

.site-nav {
    background: var(--color-cream);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-smooth);
}

.site-nav.scrolled {
    padding: 16px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    border: none;
    transition: transform var(--transition-smooth);
}

.nav-logo:hover {
    transform: scale(1.02);
    border: none;
}

.nav-logo img {
    height: 80px;
    width: auto;
    transition: height var(--transition-smooth);
}

.site-nav.scrolled .nav-logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-family: 'Sorts Mill Goudy', 'Goudy Old Style', Georgia, serif;
    font-size: 1.1rem;
    color: var(--color-text);
    border: none;
    padding: 8px 0;
    position: relative;
    letter-spacing: 0.02em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-red);
    transition: all var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--color-text);
    border: none;
}

.nav-links a.active {
    color: var(--color-text);
}

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-text);
    padding: 8px;
    transition: color var(--transition-fast);
}

.nav-toggle:hover {
    color: var(--color-text);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-cream);
        flex-direction: column;
        padding: 32px 40px;
        gap: 20px;
        box-shadow: var(--shadow-medium);
    }

    .nav-links.open {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .nav-logo img {
        height: 60px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.1) 40%,
            rgba(0, 0, 0, 0.5) 100%);
    display: flex;
    align-items: flex-end;
}

.hero-text {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px 64px;
    color: var(--color-white);
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    color: var(--color-white);
    font-size: 4rem;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-family: 'Sorts Mill Goudy', 'Goudy Old Style', Georgia, serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--color-cream);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    opacity: 0.95;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero-overlay {
        padding: 40px 24px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }
}

/* ================================
   SECTIONS
   ================================ */

section {
    padding: 100px 0;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 16px;
    font-family: 'Lora', Georgia, serif;
    position: relative;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-red);
}

.section-alt {
    background: var(--color-cream-light);
}

.section-green {
    background: var(--color-green);
    color: var(--color-cream);
    position: relative;
    overflow: hidden;
}

.section-green::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.section-green h2,
.section-green h3,
.section-green p {
    color: var(--color-cream);
}

.section-green .section-label {
    color: var(--color-cream);
    opacity: 0.8;
}

.section-green .section-label::after {
    background: var(--color-cream);
    opacity: 0.5;
}

/* ================================
   CARDS - Elegant hover effects
   ================================ */

/* Featured grid: large card left, stacked cards right */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 40px;
}

.card-featured {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-featured p {
    font-size: 1rem;
    line-height: 1.8;
}

.menu-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-cards .card {
    padding: 28px 36px;
}

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

    .card-featured {
        order: 2;
    }

    .menu-cards {
        order: 1;
    }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.card {
    background: var(--color-white);
    padding: 36px;
    border-left: 4px solid var(--color-green);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(179, 37, 42, 0.06);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.card:hover {
    border-color: var(--color-red);
}

.card:hover::before {
    opacity: 1;
}

.card h3,
.card p {
    position: relative;
    z-index: 1;
}

.card h3 {
    margin-bottom: 10px;
    transition: color var(--transition-fast);
}

.card:hover h3 {
    color: var(--color-text);
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.7;
}

.card-arrow {
    position: absolute;
    right: 28px;
    bottom: 28px;
    font-size: 1.4rem;
    color: var(--color-red);
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-smooth);
}

.card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ================================
   MENU STYLING
   ================================ */

.menu-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
    padding: 20px 0;
    position: sticky;
    top: 100px;
    z-index: 100;
}

.menu-nav a {
    font-family: 'Sorts Mill Goudy', 'Goudy Old Style', Georgia, serif;
    font-size: 0.9rem;
    padding: 8px 18px;
    border: 1px solid var(--color-green);
    border-radius: 0;
    background: var(--color-cream-light);
    color: var(--color-green);
    transition: all var(--transition-smooth);
    letter-spacing: 0.03em;
}

.menu-nav a:hover {
    background: var(--color-green);
    color: var(--color-cream);
    border-color: var(--color-green);
}

.menu-section {
    margin-bottom: 80px;
    scroll-margin-top: 180px;
}

.menu-section h2 {
    display: inline-block;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--color-red);
    margin-bottom: 40px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-cream-dark);
    transition: all var(--transition-fast);
}

.menu-item:hover {
    padding-left: 12px;
    background: linear-gradient(90deg, rgba(53, 62, 40, 0.06), transparent);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-info {
    flex: 1;
    padding-right: 32px;
}

.menu-item h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    transition: color var(--transition-fast);
}

.menu-item:hover h4 {
    color: var(--color-text);
}

.menu-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--color-text-light);
    line-height: 1.6;
}

.menu-item .price {
    font-family: 'Sorts Mill Goudy', 'Goudy Old Style', Georgia, serif;
    font-size: 1.15rem;
    color: var(--color-red);
    white-space: nowrap;
    font-weight: normal;
}

/* Menu category divider */
.menu-divider {
    display: flex;
    align-items: center;
    margin: 48px 0 32px;
}

.menu-divider::before,
.menu-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-cream-dark);
}

.menu-divider span {
    padding: 0 20px;
    font-family: 'Sorts Mill Goudy', 'Goudy Old Style', Georgia, serif;
    font-size: 0.9rem;
    color: var(--color-text-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ================================
   QUOTE BLOCK
   ================================ */

.quote-block {
    text-align: center;
    padding: 100px 40px;
    background: var(--color-cream-light);
    position: relative;
}

.quote-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-cream-dark), transparent);
}

.quote-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-cream-dark), transparent);
}

.quote-block blockquote {
    font-family: 'Sorts Mill Goudy', 'Goudy Old Style', Georgia, serif;
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--color-text);
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

.quote-block blockquote::before {
    content: '"';
    position: absolute;
    left: -40px;
    top: -20px;
    font-size: 6rem;
    color: var(--color-red);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-author {
    margin-top: 28px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

/* ================================
   INFO GRID
   ================================ */

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 40px;
}

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

.info-card {
    background: var(--color-white);
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-red);
}

.info-card h3 {
    margin-bottom: 20px;
    color: var(--color-text);
}

.hours-table {
    width: 100%;
}

.hours-table tr td {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-cream);
}

.hours-table tr:last-child td {
    border-bottom: none;
}

.hours-table tr td:last-child {
    text-align: right;
    font-family: 'Sorts Mill Goudy', 'Goudy Old Style', Georgia, serif;
}

.closed {
    opacity: 0.5;
}

/* ================================
   ABOUT PAGE - Chef section
   ================================ */

.chef-section {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 60px;
}

@media (max-width: 800px) {
    .chef-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.chef-image-wrapper {
    position: relative;
    z-index: 1;
}

.chef-image-wrapper::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    right: -16px;
    bottom: -16px;
    border: 2px solid var(--color-red);
    z-index: -1;
}

.chef-image {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

.chef-info h3 {
    color: var(--color-red);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.chef-info h2 {
    margin-bottom: 20px;
}

/* ================================
   COFFEE BLENDS
   ================================ */

.blend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 48px;
}

.blend-card {
    background: var(--color-white);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: all var(--transition-smooth);
    overflow: hidden;
}

.blend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-green);
}

.blend-card h3 {
    color: var(--color-green);
    margin-bottom: 12px;
}

.blend-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ================================
   FOOTER - Premium dark footer
   ================================ */

footer {
    padding: 80px 0;
    text-align: center;
    background: var(--color-green);
    color: var(--color-cream);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-green-light), transparent);
}

.footer-logo {
    max-width: 140px;
    margin-bottom: 32px;
    opacity: 0.9;
    filter: brightness(0) invert(1);
    transition: opacity var(--transition-fast);
}

.footer-logo:hover {
    opacity: 1;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--color-cream);
    border: none;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--color-cream);
}

footer p {
    font-size: 0.85rem;
    color: var(--color-cream);
    opacity: 0.6;
    margin-bottom: 0;
}

footer a {
    color: var(--color-cream);
    border-color: rgba(255, 255, 255, 0.3);
}

footer a:hover {
    color: var(--color-white);
    border-color: var(--color-white);
}

.footer-credit {
    border: none;
    font-weight: normal;
    transition: font-weight var(--transition-fast);
}

.footer-credit:hover {
    font-weight: 600;
    border: none;
}

/* ================================
   UTILITY CLASSES
   ================================ */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-lg {
    margin-bottom: 48px;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-text);
}

/* ================================
   BUTTONS - Premium styling
   ================================ */

.btn {
    display: inline-block;
    font-family: 'Sorts Mill Goudy', 'Goudy Old Style', Georgia, serif;
    font-size: 1.05rem;
    padding: 16px 40px;
    background: var(--color-red);
    color: var(--color-white);
    border: 2px solid var(--color-red);
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-red-dark);
    transition: left var(--transition-smooth);
    z-index: -1;
}

.btn:hover {
    border-color: var(--color-green);
    color: var(--color-white);
}

.btn:hover::before {
    left: 0;
}

.btn-outline {
    background: transparent;
    color: var(--color-green);
}

.btn-outline:hover {
    background: var(--color-green);
    color: var(--color-white);
}

.btn-light {
    background: var(--color-cream);
    color: var(--color-green);
    border-color: var(--color-cream);
}

.btn-light:hover {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-green);
}

/* ================================
   PAGE HEADER (for inner pages)
   ================================ */

.page-header {
    background: var(--color-cream-light);
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--color-cream-dark);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto;
    color: var(--color-text-light);
}

/* ================================
   ANIMATIONS
   ================================ */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grids */
.card-grid .card:nth-child(1) {
    transition-delay: 0s;
}

.card-grid .card:nth-child(2) {
    transition-delay: 0.1s;
}

.card-grid .card:nth-child(3) {
    transition-delay: 0.2s;
}

.card-grid .card:nth-child(4) {
    transition-delay: 0.3s;
}

.card-grid .card:nth-child(5) {
    transition-delay: 0.4s;
}

.card-grid .card:nth-child(6) {
    transition-delay: 0.5s;
}

/* ================================
   RESPONSIVE FINE-TUNING
   ================================ */

@media (max-width: 600px) {
    section {
        padding: 64px 0;
    }

    .container,
    .container-narrow,
    .container-wide {
        padding: 0 24px;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .quote-block blockquote {
        font-size: 1.4rem;
    }

    .page-header {
        padding: 60px 0 48px;
    }

    .page-header h1 {
        font-size: 2.25rem;
    }

    .menu-nav {
        top: 76px;
    }

    .menu-section {
        scroll-margin-top: 150px;
    }
}

/* ================================
   FLOATING WHATSAPP BUTTON
   ================================ */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    background: var(--color-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(179, 37, 42, 0.3);
    z-index: 999;
    border: none;
    transition: all var(--transition-smooth);
}

.whatsapp-float:hover {
    background: var(--color-red-dark);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(142, 30, 34, 0.4);
    border: none;
}

.whatsapp-float i {
    font-size: 24px;
    color: var(--color-cream);
}

@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }

    .whatsapp-float i {
        font-size: 22px;
    }
}