/* ============================================
   Freedom Bar & Grill — Custom Styles
   Classic & Elegant | Emerald + Cream Palette
   ============================================ */

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

:root {
    --emerald-50:  #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --emerald-950: #022c22;

    --cream-50:  #fefdf8;
    --cream-100: #fdf9ed;
    --cream-200: #faf3e0;
    --cream-300: #f5e9cc;
    --cream-400: #eddbb0;
    --cream-500: #e0c88a;
    --cream-600: #c9a85e;
    --cream-700: #a68542;

    --stone-50:  #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --stone-950: #0c0a09;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:  'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg:  0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
    --shadow-xl:  0 24px 60px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --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(--stone-800);
    background-color: var(--cream-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* --- Accessibility --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--emerald-800);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 16px;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9375rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: var(--emerald-700);
    color: #fff;
    border-color: var(--emerald-700);
}
.btn-primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--stone-800);
    border-color: var(--stone-300);
}
.btn-secondary:hover {
    border-color: var(--emerald-600);
    color: var(--emerald-700);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

/* --- Section Shared --- */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 16px;
    position: relative;
    padding-left: 28px;
}
.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: var(--emerald-600);
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--stone-900);
    margin-bottom: 20px;
}

.section-sub {
    font-size: 1.125rem;
    color: var(--stone-600);
    max-width: 600px;
    line-height: 1.8;
}

.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow var(--transition);
}

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

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--stone-900);
}
.brand-icon {
    color: var(--emerald-700);
}

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

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--stone-600);
    transition: color var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald-600);
    transition: width var(--transition);
}
.nav-links a:hover {
    color: var(--emerald-700);
}
.nav-links a::after:hover {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}
.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 2px;
    background: var(--stone-700);
    border-radius: 2px;
    transition: all var(--transition);
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--stone-700);
    border-radius: 2px;
    transition: all var(--transition);
}
.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

.mobile-toggle.active .hamburger { background: transparent; }
.mobile-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.mobile-toggle.active .hamburger::after  { top: 0; transform: rotate(-45deg); }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--stone-950);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/33097102/pexels-photo-33097102.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(2, 44, 34, 0.92) 0%,
        rgba(6, 78, 59, 0.85) 40%,
        rgba(28, 25, 23, 0.9) 100%
    );
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--cream-300);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}
.hero-badge svg { color: var(--cream-400); }

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 24px;
}

.text-emerald {
    color: var(--emerald-400);
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--stone-300);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
}

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

.hero-actions .btn-primary {
    background: var(--emerald-600);
    border-color: var(--emerald-600);
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}
.hero-actions .btn-primary:hover {
    background: var(--emerald-500);
    border-color: var(--emerald-500);
}

.hero-actions .btn-secondary {
    border-color: rgba(255,255,255,0.25);
    color: #fff;
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}
.hero-actions .btn-secondary:hover {
    border-color: var(--emerald-400);
    color: var(--emerald-400);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition);
}
.stat-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.stat-icon {
    color: var(--emerald-400);
    margin-bottom: 12px;
}

.stat-label {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
}

/* --- About --- */
.about {
    background: var(--cream-50);
}

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

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--emerald-100);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.6;
}

.about-content .lead {
    font-size: 1.125rem;
    color: var(--stone-700);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--stone-600);
    line-height: 1.85;
    margin-bottom: 28px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--stone-700);
}
.about-feature svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* --- Menu --- */
.section-dark {
    background: var(--stone-900);
}

.section-title-light { color: #fff; }
.section-sub-light { color: var(--stone-400); }
.section-label-light { color: var(--emerald-400); }
.section-label-light::before { background: var(--emerald-500); }

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

.menu-category {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition);
}
.menu-category:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.menu-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.menu-cat-icon {
    color: var(--emerald-400);
    background: rgba(16, 185, 129, 0.12);
    border-radius: var(--radius-sm);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-category-header h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

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

.menu-items li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--cream-100);
}

.menu-item-desc {
    font-size: 0.875rem;
    color: var(--stone-400);
    line-height: 1.6;
}

.menu-note {
    font-size: 0.875rem;
    color: var(--stone-500);
    font-style: italic;
}

/* --- Gallery --- */
.gallery {
    background: var(--cream-100);
}

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

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}
.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.gallery-item--large {
    grid-column: span 7;
}
.gallery-item--large img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.gallery-item:not(.gallery-item--large) img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gallery-item--wide {
    grid-column: span 12;
}
.gallery-item--wide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* --- Visit --- */
.visit {
    background: var(--cream-50);
}

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

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 36px 0;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    transition: all var(--transition);
    text-decoration: none;
}
.contact-card:hover {
    border-color: var(--emerald-400);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact-card-icon {
    color: var(--emerald-700);
    background: var(--emerald-50);
    border-radius: var(--radius-sm);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-card-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--stone-400);
}

.contact-card-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--stone-800);
    line-height: 1.5;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 480px;
}

/* --- Footer --- */
.footer {
    background: var(--stone-950);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 64px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.footer-logo-icon { color: var(--emerald-500); }

.footer-desc {
    font-size: 0.9375rem;
    color: var(--stone-500);
    line-height: 1.8;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--stone-400);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--emerald-400); }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--stone-400);
    line-height: 1.6;
}
.footer-contact svg {
    color: var(--emerald-500);
    flex-shrink: 0;
    margin-top: 3px;
}
.footer-contact a {
    color: var(--stone-400);
    transition: color var(--transition);
}
.footer-contact a:hover { color: var(--emerald-400); }

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--stone-600);
}

/* --- Mobile Menu --- */
@media (max-width: 900px) {
    .mobile-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(254, 253, 248, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links li {
        border-bottom: 1px solid var(--stone-200);
    }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a {
        display: block;
        padding: 16px 0;
        font-size: 1rem;
    }
    .nav-links a::after { display: none; }
    .nav-links .btn {
        margin-top: 8px;
        justify-content: center;
    }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-stats { max-width: 400px; }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-image-wrap img { height: 360px; }
    .menu-grid { grid-template-columns: 1fr; }
    .gallery-item--large { grid-column: span 12; }
    .gallery-item:not(.gallery-item--large) { grid-column: span 6; }
    .gallery-item--wide { grid-column: span 12; }
    .visit-grid { grid-template-columns: 1fr; gap: 40px; }
    .visit-map { min-height: 320px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
    .section { padding: 72px 0; }
    .hero { padding: 100px 0 64px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-stats { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .gallery-item--large img,
    .gallery-item:not(.gallery-item--large) img,
    .gallery-item--wide img { height: 220px; }
    .menu-category { padding: 24px; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
