/* ============================================
   KYLE'S — Café & Bar, Peekskill, NY
   Bold Editorial Design System
   Colors: Teal (#0d7377) + Slate Grey (#2d3748)
   Fonts: Lora (serif headlines) + Inter (sans body)
============================================ */

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

:root {
    --color-teal:        #0d7377;
    --color-teal-dark:   #095c5f;
    --color-teal-light:  #14a3a8;
    --color-teal-pale:   #e6f5f6;
    --color-slate:       #2d3748;
    --color-slate-light: #4a5568;
    --color-slate-pale:  #f7fafc;
    --color-cream:       #faf8f5;
    --color-white:       #ffffff;
    --color-text:        #1a202c;
    --color-text-muted:  #718096;
    --color-border:      #e2e8f0;
    
    --font-serif:  'Lora', Georgia, 'Times New Roman', serif;
    --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

a:hover {
    color: var(--color-teal-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ---------- Typography ---------- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-teal);
    margin-bottom: var(--space-sm);
}

.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-slate);
    margin-bottom: var(--space-md);
}

.text-accent {
    color: var(--color-teal);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-teal);
    color: var(--color-white);
    border-color: var(--color-teal);
}

.btn-primary:hover {
    background-color: var(--color-teal-dark);
    border-color: var(--color-teal-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 115, 119, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-teal);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--color-slate);
}

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-teal);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-teal-pale);
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
}

.nav-menu a:hover {
    color: var(--color-teal);
    background-color: var(--color-teal-pale);
}

.nav-cta {
    background-color: var(--color-teal) !important;
    color: var(--color-white) !important;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background-color: var(--color-teal-dark) !important;
    color: var(--color-white) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    align-items: center;
    justify-content: center;
}

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

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background-color: var(--color-slate);
    transition: all var(--transition);
}

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

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

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

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

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(160deg, var(--color-slate) 0%, #1a3a3c 50%, var(--color-teal-dark) 100%);
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--color-white) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--color-white) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    padding: var(--space-xl) var(--space-md);
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-teal-light);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.headline-line {
    display: block;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.headline-line:nth-child(1) { animation-delay: 0.15s; }
.headline-line:nth-child(2) { animation-delay: 0.3s; }
.headline-line:nth-child(3) { animation-delay: 0.45s; }
.headline-line:nth-child(4) { animation-delay: 0.6s; }
.headline-line:nth-child(5) { animation-delay: 0.75s; }

.headline-accent {
    color: var(--color-teal-light);
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin: 0 auto var(--space-lg);
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.9s;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1.05s;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ---------- About ---------- */
.about {
    padding: var(--space-3xl) 0;
    background-color: var(--color-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image-wrap:hover img {
    transform: scale(1.03);
}

.about-content {
    padding: var(--space-md) 0;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-slate-light);
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-teal);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--color-border);
}

/* ---------- Menu ---------- */
.menu {
    padding: var(--space-3xl) 0;
    background-color: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.menu-tab {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    background: transparent;
    color: var(--color-slate-light);
    cursor: pointer;
    transition: all var(--transition);
}

.menu-tab:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
}

.menu-tab.active {
    background-color: var(--color-teal);
    border-color: var(--color-teal);
    color: var(--color-white);
}

.menu-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.menu-panel.active {
    display: block;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.menu-item {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.menu-item:hover {
    border-color: var(--color-teal);
    box-shadow: 0 8px 30px rgba(13, 115, 119, 0.08);
    transform: translateY(-2px);
}

.menu-item-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.menu-item-name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-slate);
}

.menu-item-origin {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-teal);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.menu-item-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.menu-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: var(--space-lg);
    font-style: italic;
}

/* ---------- Gallery ---------- */
.gallery {
    padding: var(--space-3xl) 0;
    background-color: var(--color-cream);
}

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

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

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

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

.gallery-item--wide {
    grid-column: span 8;
    aspect-ratio: 16 / 9;
}

.gallery-item--tall {
    grid-column: span 4;
    aspect-ratio: 3 / 4;
}

.gallery-item:not(.gallery-item--wide):not(.gallery-item--tall) {
    aspect-ratio: 1 / 1;
}

/* ---------- Visit ---------- */
.visit {
    padding: var(--space-3xl) 0;
    background-color: var(--color-white);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.visit-info {
    padding: var(--space-lg) 0;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.visit-icon {
    width: 28px;
    height: 28px;
    color: var(--color-teal);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.visit-detail h3 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
}

.visit-detail p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-slate);
}

.visit-detail a {
    color: var(--color-teal);
    text-decoration: none;
}

.visit-detail a:hover {
    text-decoration: underline;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    min-height: 450px;
}

/* ---------- Contact ---------- */
.contact {
    padding: var(--space-3xl) 0;
    background: linear-gradient(160deg, var(--color-slate) 0%, var(--color-teal-dark) 100%);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact-text {
    padding: var(--space-lg) 0;
}

.contact-text .section-headline {
    color: var(--color-white);
}

.contact-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
}

.contact-form {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-slate-light);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text);
    background-color: var(--color-slate-pale);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-teal);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--color-teal-pale);
    border-radius: var(--radius-sm);
    color: var(--color-teal-dark);
    font-size: 0.9rem;
    margin-top: var(--space-sm);
}

.form-success svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--color-slate);
    color: rgba(255, 255, 255, 0.6);
    padding: var(--space-2xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-teal-light);
    margin-bottom: var(--space-sm);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0.25rem;
}

.footer-contact a {
    color: var(--color-teal-light);
    text-decoration: none;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding-top: var(--space-md);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .gallery-item--wide  { grid-column: span 12; }
    .gallery-item--tall  { grid-column: span 6;  }
}

@media (max-width: 768px) {
    :root {
        --space-3xl: 5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(250, 248, 245, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: var(--space-lg);
        transform: translateX(100%);
        transition: transform var(--transition);
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 1rem;
        border-radius: var(--radius-sm);
    }

    .nav-cta {
        margin-left: 0 !important;
        text-align: center;
        margin-top: var(--space-sm);
    }

    .hero-headline {
        font-size: clamp(1.75rem, 7vw, 2.75rem);
    }

    .about-grid,
    .visit-grid,
    .contact-inner {
        grid-template-columns: 1fr;
    }

    .about-image-wrap {
        order: -1;
    }

    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

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

    .gallery-item--wide,
    .gallery-item--tall,
    .gallery-item:not(.gallery-item--wide):not(.gallery-item--tall) {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .menu-tabs {
        gap: 0.375rem;
    }

    .menu-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}
