/* ============================================
   CROWS NEST BAR & GRILL — STYLESHEET
   ============================================ */

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

:root {
    --forest-dark: #0D2818;
    --forest: #1B4332;
    --forest-mid: #2D6A4F;
    --forest-light: #40916C;
    --forest-pale: #52B788;
    --gold: #D4A84B;
    --gold-light: #E8C97A;
    --gold-pale: #F5E6C0;
    --cream: #FAF8F5;
    --cream-dark: #F0EDE8;
    --warm-white: #FEFCF9;
    --text-dark: #1A1A1A;
    --text-mid: #3D3D3D;
    --text-light: #6B6B6B;
    --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.08);
    --shadow-md: 0 4px 20px rgba(27, 67, 50, 0.12);
    --shadow-lg: 0 8px 40px rgba(27, 67, 50, 0.16);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'DM Serif Display', Georgia, serif;
    line-height: 1.2;
    color: var(--forest-dark);
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(250, 248, 245, 0.97);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    color: var(--forest);
    font-weight: 400;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--forest);
}

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

.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--forest);
    color: var(--cream) !important;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}

.nav-phone::after {
    display: none !important;
}

.nav-phone:hover {
    background: var(--forest-mid) !important;
    color: var(--cream) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--forest);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 40, 24, 0.88) 0%,
        rgba(27, 67, 50, 0.82) 40%,
        rgba(45, 106, 79, 0.72) 100%
    );
}

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

.hero-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(212, 168, 75, 0.15);
    border: 1px solid rgba(212, 168, 75, 0.3);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--cream);
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-headline em {
    color: var(--gold);
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(250, 248, 245, 0.8);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
}

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

.hero-details {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(250, 248, 245, 0.7);
    font-size: 0.9rem;
}

.hero-detail svg {
    color: var(--gold);
    flex-shrink: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(250, 248, 245, 0.5);
    animation: float 2s ease-in-out infinite;
    transition: var(--transition);
}

.hero-scroll:hover {
    color: var(--gold);
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--forest-dark);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 168, 75, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--cream);
    border: 2px solid rgba(250, 248, 245, 0.4);
}

.btn-secondary:hover {
    border-color: var(--cream);
    background: rgba(250, 248, 245, 0.1);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--forest-light);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 16px;
    color: var(--forest-dark);
}

.section-lead {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.lead {
    font-size: 1.1rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background: var(--warm-white);
}

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

.about-images {
    position: relative;
    height: 600px;
}

.about-img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 80%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-float {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 50%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--warm-white);
}

.about-img-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    top: -20px;
    right: 30%;
    width: 80px;
    height: 80px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.2;
}

.about-text .section-tag {
    margin-bottom: 12px;
}

.about-text .section-title {
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    gap: 16px;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(212, 168, 75, 0.12);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-feature h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--forest-dark);
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

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

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

.menu-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.menu-card-img {
    height: 220px;
    overflow: hidden;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.menu-card-body {
    padding: 28px;
}

.menu-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(212, 168, 75, 0.12);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.menu-card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--forest-dark);
}

.menu-card-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.menu-list li {
    position: relative;
    padding: 6px 0 6px 20px;
    font-size: 0.9rem;
    color: var(--text-mid);
}

.menu-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    background: var(--forest-pale);
    border-radius: 50%;
}

.menu-cta {
    text-align: center;
    padding: 40px;
    background: var(--forest);
    border-radius: var(--radius-xl);
}

.menu-cta p {
    color: rgba(250, 248, 245, 0.8);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.menu-cta .btn-primary {
    background: var(--gold);
    color: var(--forest-dark);
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    background: var(--forest);
    padding: 80px 0;
}

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

.feature-card {
    text-align: center;
    padding: 32px 20px;
    background: rgba(250, 248, 245, 0.06);
    border: 1px solid rgba(250, 248, 245, 0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(250, 248, 245, 0.1);
    transform: translateY(-4px);
}

.feature-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(212, 168, 75, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.feature-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.85rem;
    color: rgba(250, 248, 245, 0.6);
    line-height: 1.6;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    background: var(--warm-white);
}

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

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

.gallery-item-wide {
    grid-column: span 2;
    grid-row: span 2;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 40, 24, 0.5) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1;
    color: var(--cream);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   VISIT / CONTACT
   ============================================ */
.visit {
    background: var(--cream);
}

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

.visit-detail {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.visit-detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(212, 168, 75, 0.12);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.visit-detail h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--forest-dark);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.visit-detail p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.visit-detail a {
    color: var(--forest-mid);
    font-weight: 600;
    transition: var(--transition);
}

.visit-detail a:hover {
    color: var(--gold);
}

.visit-map {
    margin-top: 8px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Contact Form */
.visit-form-wrapper {
    position: sticky;
    top: 100px;
}

.visit-form-card {
    background: var(--warm-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.visit-form-card h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.visit-form-card > p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 28px;
    line-height: 1.6;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--forest-light);
    background: var(--warm-white);
    box-shadow: 0 0 0 4px rgba(64, 145, 108, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    margin: 0 auto 16px;
}

.form-success h4 {
    font-size: 1.4rem;
    color: var(--forest-dark);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-form.hidden {
    display: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--forest-dark);
    padding: 64px 0 0;
}

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

.footer-brand p {
    color: rgba(250, 248, 245, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: rgba(250, 248, 245, 0.6);
    font-size: 0.9rem;
    padding: 6px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--cream);
    padding-left: 8px;
}

.footer-contact p {
    color: rgba(250, 248, 245, 0.6);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(250, 248, 245, 0.6);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(250, 248, 245, 0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: rgba(250, 248, 245, 0.4);
    font-size: 0.8rem;
}

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 248, 245, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(27, 67, 50, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-phone {
        justify-content: center;
    }
    
    .hero-content {
        padding: 100px 24px 60px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-details {
        flex-direction: column;
        gap: 12px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        height: 400px;
        order: -1;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-item-wide {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .visit-form-wrapper {
        sticky: unset;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 64px 0;
    }
    
    .about-images {
        height: 300px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item-wide {
        grid-column: span 1;
    }
    
    .visit-form-card {
        padding: 24px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .menu-card,
    .feature-card,
    .gallery-item {
        will-change: transform;
    }
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Scroll reveal — only for below-fold, progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
