/* ========================================
   Martini Monday's NYC — Styles
   Palette: Terracotta + Sand
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --terracotta: #C0603C;
    --terracotta-dark: #A84E2E;
    --terracotta-light: #D4806A;
    --sand: #F5E6D3;
    --sand-light: #FBF5EE;
    --sand-dark: #E8D5C0;
    --cream: #FFF9F4;
    --brown: #5C3A28;
    --brown-light: #7A5240;
    --text: #3D2B1F;
    --text-light: #6B5344;
    --text-muted: #9A8070;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(92, 58, 40, 0.06);
    --shadow-md: 0 4px 20px rgba(92, 58, 40, 0.10);
    --shadow-lg: 0 8px 40px rgba(92, 58, 40, 0.14);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Nunito', 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

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

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

.section-tag {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 20px;
}

.section-sub {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-small {
    padding: 10px 22px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(251, 245, 238, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(192, 96, 60, 0.08);
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(251, 245, 238, 0.96);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brown);
    text-decoration: none;
    flex-shrink: 0;
}

.logo:hover {
    color: var(--terracotta);
}

.logo-light {
    color: var(--white);
}

.logo-light:hover {
    color: var(--sand);
}

.logo-icon {
    color: var(--terracotta);
}

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

.nav a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all var(--transition);
}

.nav a:hover {
    color: var(--terracotta);
    background: rgba(192, 96, 60, 0.08);
}

.header-cta {
    display: flex;
}

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

.mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--brown);
    border-radius: 2px;
    transition: all var(--transition);
}

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

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

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

/* --- Mobile Nav --- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(251, 245, 238, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--brown);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.mobile-nav-link:hover {
    color: var(--terracotta);
    background: rgba(192, 96, 60, 0.08);
}

/* --- 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(
        to bottom,
        rgba(61, 43, 31, 0.55) 0%,
        rgba(61, 43, 31, 0.45) 50%,
        rgba(61, 43, 31, 0.70) 100%
    );
}

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

.hero-tag {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
}

.hero-headline {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    color: var(--white);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s 0.4s forwards;
}

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

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(245, 230, 211, 0.85);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeUp 0.8s 0.6s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s 0.8s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(245, 230, 211, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

.hero-scroll svg {
    opacity: 0.6;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

.about-images {
    position: relative;
}

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

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

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

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -30px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--cream);
}

.about-img-secondary img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--terracotta);
    color: var(--white);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: var(--shadow-md);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    padding: 10px;
}

.about-badge svg {
    width: 20px;
    height: 20px;
}

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

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

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
}

.about-feature svg {
    color: var(--terracotta);
    flex-shrink: 0;
}

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

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 40px 0 48px;
}

.menu-cat {
    padding: 10px 24px;
    border: 2px solid var(--sand-dark);
    border-radius: 50px;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
}

.menu-cat:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
}

.menu-cat.active {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--white);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.menu-item {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

.menu-item-img {
    overflow: hidden;
    height: 180px;
}

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

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

.menu-item-body {
    padding: 20px;
    flex: 1;
}

.menu-item-body h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--brown);
}

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

.menu-item[data-category] {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 16px;
    margin-top: 48px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

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

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

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

/* --- Hours --- */
.hours {
    padding: 100px 0;
    background: var(--sand-light);
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}

.hours-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.hours-card:hover {
    box-shadow: var(--shadow-md);
}

.hours-card-icon {
    width: 56px;
    height: 56px;
    background: var(--sand);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    margin-bottom: 20px;
}

.hours-card h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

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

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--sand-dark);
    font-size: 0.95rem;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list .day {
    font-weight: 700;
    color: var(--text);
}

.hours-list .time {
    color: var(--text-light);
}

.address {
    font-style: normal;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.contact-row svg {
    color: var(--terracotta);
    flex-shrink: 0;
}

.contact-row a {
    color: var(--text-light);
}

.contact-row a:hover {
    color: var(--terracotta);
}

.hours-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 12px 16px;
    background: var(--sand-light);
    border-radius: var(--radius-sm);
}

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

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

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

.contact-detail svg {
    color: var(--terracotta);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--brown);
    margin-bottom: 4px;
}

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

.contact-detail a {
    color: var(--text-light);
}

.contact-detail a:hover {
    color: var(--terracotta);
}

.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--sand-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--sand-light);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(192, 96, 60, 0.1);
}

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

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #E8F5E9;
    border-radius: var(--radius-sm);
    color: #2E7D32;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 16px;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    flex-shrink: 0;
    color: #2E7D32;
}

/* --- Map --- */
.map-section {
    height: 380px;
    filter: saturate(0.7) contrast(1.05);
}

.map-section iframe {
    width: 100%;
    height: 100%;
}

/* --- Footer --- */
.footer {
    background: var(--brown);
    color: var(--sand);
    padding: 64px 0 0;
}

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

.footer-brand p {
    color: rgba(245, 230, 211, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sand-dark);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(245, 230, 211, 0.7);
    font-size: 0.92rem;
    transition: color var(--transition);
}

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

.footer-links address {
    font-style: normal;
    color: rgba(245, 230, 211, 0.7);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.footer-links p {
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.footer-links a {
    color: rgba(245, 230, 211, 0.7);
}

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

.footer-social p {
    color: rgba(245, 230, 211, 0.7);
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(245, 230, 211, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sand);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--terracotta);
    color: var(--white);
    transform: translateY(-2px);
}

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

.footer-bottom p {
    color: rgba(245, 230, 211, 0.5);
    font-size: 0.85rem;
}

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

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .gallery-grid {
        grid-template-rows: repeat(2, 180px);
    }
}

@media (max-width: 768px) {
    .nav,
    .header-cta {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-content {
        padding: 100px 20px 60px;
    }
    
    .hero-headline {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-img-secondary {
        right: 0;
        bottom: -30px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(4, 160px);
    }
    
    .gallery-item--wide {
        grid-column: span 2;
    }
    
    .gallery-item--tall {
        grid-row: span 1;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .menu-categories {
        gap: 6px;
    }
    
    .menu-cat {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item--wide {
        grid-column: span 1;
    }
    
    .gallery-item img {
        height: 220px;
    }
    
    .hours-card,
    .contact-form-wrap {
        padding: 24px;
    }
}
