/* =============================================
   The Pink Tomato — Café & Bar
   Classic & Elegant · Forest Green + Off-White
   ============================================= */

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

:root {
    --forest: #2E4A2E;
    --forest-light: #4A6741;
    --forest-dark: #1E331E;
    --cream: #F5F0E8;
    --cream-light: #FAF7F2;
    --cream-dark: #E8E0D0;
    --warm-white: #FDFCFA;
    --charcoal: #2C2C2C;
    --text-dark: #1A1A1A;
    --text-mid: #4A4A4A;
    --text-light: #6B6B6B;
    --pink-accent: #C45B5B;
    --pink-soft: #D4807A;
    --gold: #B8935A;
    --gold-light: #D4AF72;

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lora', 'Palatino Linotype', Palatino, Georgia, serif;

    --shadow-sm: 0 1px 3px rgba(46, 74, 46, 0.08);
    --shadow-md: 0 4px 16px rgba(46, 74, 46, 0.10);
    --shadow-lg: 0 8px 32px rgba(46, 74, 46, 0.12);
    --shadow-xl: 0 16px 48px rgba(46, 74, 46, 0.14);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--cream-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--forest-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--pink-accent);
}

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

/* =============================================
   HEADER
   ============================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-dark);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--forest);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.logo-icon {
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-list a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-mid);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    letter-spacing: 0.01em;
}

.nav-list a:hover {
    color: var(--forest);
    background: rgba(74, 103, 65, 0.08);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.nav-toggle:hover {
    background: rgba(74, 103, 65, 0.08);
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--forest);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--forest);
    left: 0;
    transition: all var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--forest-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(30, 51, 30, 0.70) 0%,
        rgba(46, 74, 46, 0.60) 50%,
        rgba(30, 51, 30, 0.80) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding: 120px 24px 80px;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--forest);
    color: #FFFFFF;
    border-color: var(--forest);
}

.btn-primary:hover {
    background: var(--forest-light);
    border-color: var(--forest-light);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1rem;
}

/* =============================================
   SECTION LABELS & TITLES
   ============================================= */
.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pink-accent);
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* =============================================
   WELCOME
   ============================================= */
.welcome {
    padding: 120px 0;
    background: var(--cream-light);
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.welcome-text p {
    color: var(--text-mid);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.welcome-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

/* =============================================
   ABOUT
   ============================================= */
.about {
    padding: 120px 0;
    background: var(--forest);
    color: #FFFFFF;
}

.about .section-label {
    color: var(--gold-light);
}

.about .section-title {
    color: #FFFFFF;
}

.about-content {
    max-width: 800px;
}

.about-content p {
    color: rgba(255, 255, 255, 0.80);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.about-divider {
    margin: 32px 0;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
    padding-top: 56px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

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

.value-icon {
    color: var(--gold-light);
    margin-bottom: 16px;
}

.value-item h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.value-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* =============================================
   MENU
   ============================================= */
.menu {
    padding: 120px 0;
    background: var(--cream);
}

.menu-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.menu-header .section-title {
    margin-bottom: 16px;
}

.menu-intro {
    color: var(--text-mid);
    font-size: 1.05rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.menu-category {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--cream-dark);
    transition: all var(--transition);
}

.menu-category:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.category-icon {
    color: var(--forest-light);
    margin-bottom: 20px;
}

.menu-category h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--cream-dark);
}

.menu-list {
    list-style: none;
}

.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(232, 224, 208, 0.6);
}

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

.item-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.item-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: right;
    flex-shrink: 0;
    line-height: 1.4;
}

.menu-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 48px;
    font-style: italic;
}

/* =============================================
   GALLERY
   ============================================= */
.gallery {
    padding: 120px 0;
    background: var(--cream-light);
}

.gallery-header {
    text-align: center;
    margin-bottom: 56px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

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

.gallery-item:nth-child(1) { grid-column: 1 / 6; grid-row: 1 / 2; }
.gallery-item:nth-child(2) { grid-column: 6 / 9; grid-row: 1 / 2; }
.gallery-item:nth-child(3) { grid-column: 9 / 13; grid-row: 1 / 2; }
.gallery-item:nth-child(4) { grid-column: 1 / 5; grid-row: 2 / 3; }
.gallery-item:nth-child(5) { grid-column: 5 / 8; grid-row: 2 / 3; }
.gallery-item:nth-child(6) { grid-column: 8 / 13; grid-row: 2 / 3; }

/* =============================================
   HOURS
   ============================================= */
.hours {
    padding: 120px 0;
    background: var(--cream);
}

.hours-content {
    max-width: 960px;
    margin: 0 auto;
}

.hours-content > .section-label,
.hours-content > .section-title {
    text-align: center;
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 56px;
}

.hours-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--cream-dark);
}

.hours-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 24px;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--cream-dark);
    font-size: 0.95rem;
}

.hours-list li:last-child {
    border-bottom: none;
}

.day {
    color: var(--text-dark);
    font-weight: 500;
}

.time {
    color: var(--text-mid);
}

.hours-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.contact-info {
    font-style: normal;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 24px;
}

.contact-info p {
    margin-bottom: 4px;
}

.contact-info .phone a {
    color: var(--forest-light);
    font-weight: 500;
}

.map-placeholder {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
    padding: 120px 0;
    background: var(--forest-dark);
    color: #FFFFFF;
}

.contact-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.contact .section-label {
    color: var(--gold-light);
}

.contact .section-title {
    color: #FFFFFF;
    margin-bottom: 16px;
}

.contact-intro {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

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

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition);
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-light);
    background: rgba(255, 255, 255, 0.12);
}

.form-group select {
    color: rgba(255, 255, 255, 0.80);
}

.form-group select option {
    background: var(--forest-dark);
    color: #FFFFFF;
}

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

.form-note {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

.form-note a {
    color: var(--gold-light);
}

.form-success {
    text-align: center;
    padding: 48px 24px;
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: #FFFFFF;
    margin: 16px 0 8px;
}

.form-success p {
    color: rgba(255, 255, 255, 0.70);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.60);
    padding: 64px 0 32px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

.footer-brand .logo {
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 6px;
    line-height: 1.6;
}

.footer-brand a {
    color: var(--gold-light);
}

.footer-brand a:hover {
    color: #FFFFFF;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.60);
    font-size: 0.9rem;
    padding: 4px 0;
}

.footer-nav a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
    font-size: 0.85rem;
}

/* =============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

/* Fallback: always visible if JS is disabled or reduced motion preferred */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:nth-child(1) { grid-column: 1 / 7; }
    .gallery-item:nth-child(2) { grid-column: 7 / 13; }
    .gallery-item:nth-child(3) { grid-column: 1 / 5; }
    .gallery-item:nth-child(4) { grid-column: 5 / 13; }
    .gallery-item:nth-child(5) { grid-column: 1 / 7; }
    .gallery-item:nth-child(6) { grid-column: 7 / 13; }
}

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

    .nav-list {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 247, 242, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--cream-dark);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }

    .nav-list.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-list a {
        padding: 12px 16px;
        font-size: 1rem;
        width: 100%;
    }

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

    .welcome-image {
        order: -1;
    }

    .about-values {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 4px;
    }

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

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6) {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-item:nth-child(1) img,
    .gallery-item:nth-child(4) img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 100px 20px 60px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .welcome,
    .about,
    .menu,
    .gallery,
    .hours,
    .contact {
        padding: 80px 0;
    }

    .hours-card {
        padding: 28px;
    }

    .menu-category {
        padding: 28px 24px;
    }

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

    .gallery-item img {
        height: 260px;
    }
}
