/* =============================================
   New York Steak House Phuket — Styles
   ============================================= */

/* --- CSS Variables --- */
:root {
    --color-primary: #C41E24;
    --color-primary-dark: #9A1519;
    --color-primary-light: #E8363D;
    --color-gold: #D4A853;
    --color-gold-light: #E8C97A;
    --color-dark: #0F0F0F;
    --color-dark-alt: #1A1A1A;
    --color-dark-card: #141414;
    --color-text: #F5F0EB;
    --color-text-muted: #A09A93;
    --color-text-dark: #2D2926;
    --color-bg-light: #FAF8F5;
    --color-bg-section: #F3EFE9;
    --color-border: rgba(212, 168, 83, 0.2);
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
    --radius: 8px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .logo-img { height: 40px; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.nav-link:hover { color: var(--color-gold); }

.nav-link--cta {
    background: var(--color-primary);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
}

.nav-link--cta:hover {
    background: var(--color-primary-dark);
    color: white;
    transform: translateY(-1px);
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    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 Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('Pic/Restaurant/1.jpg') center/cover no-repeat fixed;
    text-align: center;
    color: var(--color-text);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 15, 15, 0.7) 0%,
        rgba(15, 15, 15, 0.5) 40%,
        rgba(15, 15, 15, 0.6) 70%,
        rgba(15, 15, 15, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 24px;
    animation: fadeInUp 1.2s ease-out;
}

.hero-logo {
    width: 140px;
    height: auto;
    margin: 0 auto 24px;
    filter: brightness(1.1);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 24px;
}

.hero-tagline {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.6;
}

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

.hero-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.badge-divider { color: var(--color-gold); }

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-gold);
    animation: bounce 2s infinite;
    z-index: 2;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 36, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid rgba(245, 240, 235, 0.3);
}

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

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

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.section-header--light .section-tag { color: var(--color-gold); }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

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

.title-accent {
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 0 auto 20px;
    border-radius: 2px;
}

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

.section-header--light .section-desc { color: rgba(245, 240, 235, 0.7); }

/* --- About Section --- */
.about {
    padding: 120px 0;
    background: var(--color-bg-light);
}

.about-content {
    max-width: 820px;
    margin: 0 auto 56px;
    text-align: center;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.about-lead {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-text-dark);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-text p { margin-bottom: 16px; color: #5A534D; }

.about-features {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    flex: 0 1 200px;
}

.feature-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: rgba(196, 30, 36, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.feature h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.feature p {
    font-size: 0.9rem;
    color: var(--color-text-muted) !important;
    margin-bottom: 0 !important;
}

.about-images {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 20px;
    height: 480px;
}

.about-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

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

/* --- Dishes Section --- */
.dishes {
    padding: 120px 0;
    background: var(--color-dark);
}

.dishes-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dish-card {
    background: var(--color-dark-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.dish-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 168, 83, 0.2);
}

.dish-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.dish-card--featured .dish-img { height: 400px; }
.dish-card--featured .dish-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}
.dish-card--featured h3 { font-size: 1.8rem; }
.dish-card--featured p { font-size: 1.05rem; }

.dish-img {
    height: 260px;
    overflow: hidden;
}

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

.dish-card:hover .dish-img img { transform: scale(1.08); }

.dish-info { padding: 24px; }

.dish-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 8px;
}

.dish-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.dish-info p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --- Parallax Break --- */
.parallax-break {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('Pic/Food/Screenshot 2026-05-25 134901.jpg') center/cover no-repeat fixed;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.75);
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.parallax-content blockquote p {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-style: italic;
    color: var(--color-text);
    line-height: 1.4;
    margin-bottom: 16px;
}

.parallax-content cite {
    font-style: normal;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
}

/* --- Gallery Section --- */
.gallery {
    padding: 120px 0;
    background: var(--color-bg-section);
}

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

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

.gallery-item--wide {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 15, 15, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-overlay span {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 600;
}

/* --- Ambiance Section --- */
.ambiance {
    padding: 120px 0;
    background: var(--color-dark-alt);
}

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

.ambiance-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.ambiance-item--large {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

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

.ambiance-item:hover img { transform: scale(1.08); }

.ambiance-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 15, 15, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.ambiance-item:hover .ambiance-overlay { opacity: 1; }

.ambiance-overlay span {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 600;
}

/* --- Contact Section --- */
.contact {
    padding: 120px 0;
    background: var(--color-bg-light);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(196, 30, 36, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.contact-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.contact-card a {
    color: var(--color-primary);
    font-weight: 500;
}

.contact-card a:hover { color: var(--color-primary-dark); }

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

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
}

/* --- Footer --- */
.footer {
    background: var(--color-dark);
    color: var(--color-text);
    padding: 80px 0 0;
}

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

.footer-logo {
    width: 80px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-text);
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

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

.footer-contact p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(196, 30, 36, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-img { transform: scale(1); }

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 2rem;
    padding: 16px;
    transition: var(--transition);
    z-index: 2001;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
}

.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); font-size: 2.5rem; }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); font-size: 2.5rem; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--color-gold); }

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
    .about-images {
        height: 380px;
    }

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

    .dish-card--featured {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }

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

    .gallery-item--wide,
    .ambiance-item--large {
        grid-column: span 2;
    }

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

    .contact-map { min-height: 350px; }
    .contact-map iframe { min-height: 350px; }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
    html { scroll-padding-top: 70px; }

    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 4px;
        transition: right 0.4s ease;
        align-items: stretch;
    }

    .nav-menu.active { right: 0; }

    .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .nav-link:hover { background: rgba(255, 255, 255, 0.05); }

    .nav-link--cta {
        text-align: center;
        margin-top: 16px;
    }

    .hero { background-attachment: scroll; }
    .parallax-break { background-attachment: scroll; }

    .hero-logo { width: 100px; }

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

    .btn { padding: 12px 28px; font-size: 0.85rem; }

    .about, .dishes, .gallery, .ambiance, .contact { padding: 80px 0; }

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

    .about-features { gap: 32px; }

    .about-images {
        grid-template-columns: 1fr 1fr;
        height: 300px;
    }

    .dishes-showcase {
        grid-template-columns: 1fr;
    }

    .dish-card--featured {
        grid-template-columns: 1fr;
    }

    .dish-card--featured .dish-img { height: 280px; }
    .dish-card--featured .dish-info { padding: 24px; }
    .dish-card--featured h3 { font-size: 1.4rem; }

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

    .gallery-item--wide,
    .ambiance-item--large {
        grid-column: span 2;
    }

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

    .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .hero-badge {
        flex-direction: column;
        gap: 8px;
    }

    .badge-divider { display: none; }

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

    .gallery-item--wide,
    .ambiance-item--large {
        grid-column: span 2;
        aspect-ratio: 16 / 9;
    }

    .parallax-break { height: 300px; }

    .dish-img { height: 220px; }
}
