/* ============================================
   The Refuge Bar & Grill — Styles
   Palette: Plum (#4A1942) + Amber (#C8956C)
   Fonts: Playfair Display + Lato
   ============================================ */

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

:root {
    --plum-900: #1a0a18;
    --plum-800: #2d1028;
    --plum-700: #4A1942;
    --plum-600: #5e2156;
    --plum-500: #7a2d70;
    --plum-100: #f5e6f0;
    --plum-50:  #fdf2f8;

    --amber-600: #a8744a;
    --amber-500: #C8956C;
    --amber-400: #d4a57e;
    --amber-300: #e0b896;
    --amber-200: #f0d8c4;
    --amber-100: #faf0ea;

    --cream: #faf8f5;
    --warm-white: #fefcf9;
    --text-dark: #1a1214;
    --text-body: #3d2a32;
    --text-muted: #7a6268;
    --text-light: #f5e6f0;

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

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

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

    --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(--text-body);
    background-color: var(--warm-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--plum-600);
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-500);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--plum-700);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--amber-500);
    color: var(--plum-900);
    border-color: var(--amber-500);
}

.btn-primary:hover {
    background: var(--amber-400);
    border-color: var(--amber-400);
    color: var(--plum-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 10, 24, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 149, 108, 0.15);
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(26, 10, 24, 0.97);
    box-shadow: var(--shadow-lg);
}

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

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

.logo-mark {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    color: var(--amber-500);
    border: 2px solid var(--amber-500);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

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

.logo-secondary {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--amber-400);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Nav */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.main-nav a {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(245, 230, 240, 0.8);
    text-decoration: none;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.main-nav a:hover {
    color: var(--amber-400);
    background: rgba(200, 149, 108, 0.08);
}

.nav-cta {
    margin-left: 8px;
    color: var(--amber-500) !important;
    border: 1px solid rgba(200, 149, 108, 0.3);
    border-radius: var(--radius-sm) !important;
}

.nav-cta:hover {
    background: rgba(200, 149, 108, 0.15) !important;
    color: var(--amber-400) !important;
}

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

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--plum-900);
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 10, 24, 0.70) 0%,
        rgba(74, 25, 66, 0.60) 50%,
        rgba(26, 10, 24, 0.85) 100%
    );
}

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

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--amber-400);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--text-light);
    margin-bottom: 24px;
}

.hero-headline br {
    display: none;
}

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

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

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(245, 230, 240, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ---------- Section Divider ---------- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: var(--amber-500);
    opacity: 0.5;
}

/* ---------- About ---------- */
.about {
    padding: 100px 0;
    background: var(--warm-white);
}

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

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

.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 .section-title {
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-body);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-item svg {
    color: var(--amber-500);
    flex-shrink: 0;
}

/* ---------- Menu ---------- */
.menu {
    padding: 100px 0;
    background: var(--plum-700);
}

.menu .section-title {
    color: var(--text-light);
}

.menu .section-subtitle {
    color: rgba(245, 230, 240, 0.65);
}

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

.menu-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(200, 149, 108, 0.2);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition);
}

.menu-card:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(200, 149, 108, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.menu-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(200, 149, 108, 0.15);
    color: var(--amber-400);
    margin-bottom: 20px;
}

.menu-card-title {
    font-size: 1.35rem;
    color: var(--amber-300);
    margin-bottom: 20px;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.menu-item-name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 2px;
}

.menu-item-desc {
    display: block;
    font-size: 0.88rem;
    color: rgba(245, 230, 240, 0.55);
    font-weight: 300;
}

.menu-note {
    margin-top: 40px;
    font-size: 0.88rem;
    color: rgba(245, 230, 240, 0.45);
    font-style: italic;
}

/* ---------- Drinks ---------- */
.drinks {
    padding: 100px 0;
    background: var(--cream);
}

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

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

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

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

.drinks-content .section-title {
    margin-bottom: 20px;
}

.drinks-content > p {
    color: var(--text-body);
    font-size: 1.05rem;
    margin-bottom: 36px;
}

.drinks-categories {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.drink-category h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--plum-700);
    margin-bottom: 6px;
}

.drink-category p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- Gallery ---------- */
.gallery {
    padding: 100px 0;
    background: var(--warm-white);
}

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

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 5/4;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

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

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

/* ---------- Visit ---------- */
.visit {
    padding: 100px 0;
    background: var(--plum-800);
}

.visit .section-title {
    color: var(--text-light);
}

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

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 40px;
}

.visit-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.visit-detail svg {
    color: var(--amber-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.visit-detail p {
    font-size: 0.95rem;
    color: rgba(245, 230, 240, 0.7);
    line-height: 1.7;
}

.visit-detail a {
    color: var(--amber-400);
}

.visit-detail a:hover {
    color: var(--amber-300);
    text-decoration: underline;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.map-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.map-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(26, 10, 24, 0.55);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    transition: background var(--transition);
}

.map-link:hover .map-overlay {
    background: rgba(26, 10, 24, 0.75);
}

/* ---------- Contact ---------- */
.contact {
    padding: 100px 0;
    background: var(--cream);
}

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

.contact-content .section-title {
    margin-bottom: 20px;
}

.contact-content > p {
    color: var(--text-body);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-direct-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--plum-700);
    padding: 12px 20px;
    border: 1px solid var(--amber-200);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.contact-direct-item:hover {
    background: var(--amber-100);
    border-color: var(--amber-400);
    color: var(--plum-700);
    text-decoration: none;
}

.contact-direct-item svg {
    color: var(--amber-500);
}

/* Form */
.contact-form-wrap {
    background: var(--warm-white);
    border: 1px solid rgba(74, 25, 66, 0.08);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--plum-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--cream);
    border: 1px solid rgba(74, 25, 66, 0.15);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(200, 149, 108, 0.15);
    background: var(--warm-white);
}

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

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

.form-success {
    margin-top: 16px;
    padding: 16px 20px;
    background: rgba(74, 25, 66, 0.06);
    border: 1px solid rgba(74, 25, 66, 0.12);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--plum-700);
    text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--plum-900);
    padding: 64px 0 32px;
    border-top: 1px solid rgba(200, 149, 108, 0.15);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .logo-mark {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
}

.footer-brand .logo-primary {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
}

.footer-brand .logo-secondary {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    color: var(--amber-400);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: block;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
}

.footer-nav a {
    padding: 6px 14px;
    font-size: 0.85rem;
    color: rgba(245, 230, 240, 0.6);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.footer-nav a:hover {
    color: var(--amber-400);
    background: rgba(200, 149, 108, 0.08);
}

.footer-contact {
    font-size: 0.9rem;
    color: rgba(245, 230, 240, 0.5);
    line-height: 1.8;
}

.footer-contact a {
    color: var(--amber-400);
}

.footer-contact a:hover {
    color: var(--amber-300);
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(200, 149, 108, 0.1);
    font-size: 0.82rem;
    color: rgba(245, 230, 240, 0.35);
    width: 100%;
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid,
    .drinks-layout,
    .visit-grid,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrap,
    .drinks-image {
        max-height: 480px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--plum-900);
        padding: 96px 32px 32px;
        transition: right var(--transition);
        box-shadow: var(--shadow-xl);
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .main-nav a {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .nav-cta {
        margin-left: 0 !important;
        text-align: center;
        margin-top: 12px;
    }

    .hero-headline br {
        display: block;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .contact-form-wrap {
        padding: 24px;
    }
}

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

    .header-inner {
        height: 64px;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .logo-primary {
        font-size: 1rem;
    }

    .hero-content {
        padding: 100px 20px 60px;
    }
}

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}
