/* ==========================================================================
   Gatos Restaurant — True Apple Minimalist Editorial Design (styles.css)
   No Toy Boxes • Pure Typography • Edge-to-Edge Translucent Navigation
   ========================================================================== */

:root {
    --bg-color: #1c1d22;
    --bg-section-alt: #23242b;
    --panel-bg: #272830;
    --primary-color: #ff453a;
    --primary-hover: #ff5e54;
    --secondary-color: #2c2d35;
    --accent-color: #ff453a;

    --white: #ffffff;
    --text-color: #ffffff;
    --text-secondary: #f0f0f5;
    --text-muted: #d1d1d8;
    --hairline: rgba(255, 255, 255, 0.18);

    --font-primary: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Heebo', 'Assistant', sans-serif;
    --font-secondary: 'Playfair Display', -apple-system, 'Heebo', serif;

    --ease-apple: cubic-bezier(0.25, 1, 0.5, 1);
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Sleek Subtle Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #000000;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.65;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    letter-spacing: -0.025em;
    font-weight: 700;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* ── Apple Minimalist Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    min-height: 42px;
    border-radius: 980px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: scale(1.02);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-outline:hover {
    background-color: var(--white);
    color: #000000;
    border-color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 16px;
}

.btn-ghost:hover {
    color: var(--white);
}

/* Section Typography */
.section-kicker {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.divider {
    display: none; /* Removed dated underline bars for clean Apple typography */
}

h2 span, h3 span, .section-header span, .about-text span {
    color: var(--primary-color);
}

/* ── Apple.com Edge-to-Edge Translucent Header ───────────────────────── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(28, 29, 34, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: background-color 0.3s ease, padding 0.3s ease;
    padding: 10px 0;
}

header.scrolled {
    background: rgba(28, 29, 34, 0.88);
    border-bottom-color: rgba(255, 255, 255, 0.16);
}

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

.header-right, .header-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    justify-content: flex-start;
}

.header-left {
    justify-content: flex-end;
}

.logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 44px !important;
    border-radius: 6px;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

.logo img:hover {
    opacity: 0.85;
}

/* ── Open Cinematic Hero (Softened Vignette so Marina View Shines) ─── */
.hero {
    min-height: 84vh;
    min-height: 84dvh;
    background-size: cover;
    background-position: center 42%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 70px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Soft radial vignette localized behind center text, keeping marina water & sky bright */
    background:
        radial-gradient(ellipse 58% 48% at 50% 52%, rgba(14, 15, 20, 0.58) 0%, rgba(14, 15, 20, 0.16) 65%, rgba(14, 15, 20, 0.04) 100%),
        linear-gradient(180deg, rgba(14, 15, 20, 0.38) 0%, transparent 26%, transparent 74%, #16171c 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 780px;
    padding: 0;
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.8);
}

.hero-brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 14px;
}

.hero-brand-main {
    display: block;
    font-size: clamp(3.8rem, 8.2vw, 6.4rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.035em;
    margin-bottom: 6px;
}

.hero-brand-sub {
    display: block;
    font-size: clamp(1.55rem, 3.2vw, 2.45rem);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.hero-kicker {
    font-size: clamp(1.05rem, 1.9vw, 1.28rem);
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #f5f5f7;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.hero-buttons .btn {
    padding: 13px 34px;
    font-size: 1.05rem;
}

/* ── About Section — Clean Editorial Split (No Card Box) ─────────────── */
.about {
    padding: 140px 0;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--hairline);
}

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

.about-text {
    text-align: right;
}

.about-text h2 {
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--white);
}

.about-text .about-lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.55;
}

.about-text p {
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

/* Clean Typographic Specs Row (Replaces Toy Chips) */
.about-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--hairline);
}

.spec-item strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.spec-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
    line-height: 1.4;
}

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

.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* ── Apple Directory Footer (Clean Columns, No Boxes) ────────────────── */
.footer {
    background-color: #17181c;
    border-top: 1px solid var(--hairline);
    color: var(--white);
    padding: 80px 0 36px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-info h3 {
    font-size: 1.8rem !important;
    font-family: var(--font-primary) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px !important;
    color: var(--white);
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: 380px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--text-secondary);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

.footer-contact h4, .footer-hours h4 {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--white);
    margin-bottom: 18px;
}

.footer-contact ul, .footer-hours ul {
    list-style: none;
}

.footer-contact ul li, .footer-hours ul li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-contact ul li i {
    color: var(--text-muted);
    width: 18px;
}

.footer-hours ul li {
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-hours ul li span {
    color: var(--white);
    font-weight: 500;
}

.footer-bottom {
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.84rem;
}

.footer-bottom p {
    width: 100%;
    text-align: center;
}

.footer-bottom a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    margin: 0 6px;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--white) !important;
    text-decoration: underline !important;
}

/* ── Clean Modal System ──────────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background: #25262e;
    margin: 4% auto;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    width: 92%;
    max-width: 680px;
    position: relative;
    transform: translateY(16px);
    transition: transform 0.35s var(--ease-apple);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal, .close-menu-modal {
    color: var(--text-secondary);
    position: absolute;
    top: 20px;
    left: 24px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover, .close-menu-modal:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 1.85rem;
    font-weight: 700;
}

/* ── Responsive Layout ───────────────────────────────────────────────── */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

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

    header {
        padding: 7px 0;
    }

    .nav-container {
        padding: 0 12px;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
    }

    .logo {
        flex: 0 0 auto;
        order: 0;
        margin-bottom: 0;
    }

    .logo img {
        height: 29px !important;
        max-width: 118px;
        border-radius: 5px;
    }

    .header-right, .header-left {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 6px;
    }

    /* On mobile hero already has primary "הזמנת שולחן", keep navbar ultra-clean with לתפריט + משלוחים */
    .header-left .btn-primary {
        display: none;
    }

    header .btn {
        font-size: 0.78rem;
        padding: 6px 12px;
        min-height: 31px;
        font-weight: 600;
    }

    header .btn-ghost {
        background: var(--primary-color);
        border: 1px solid var(--primary-color);
        color: #ffffff;
    }

    .hero {
        min-height: 78vh;
        min-height: 78dvh;
        padding: 76px 14px 34px;
    }

    /* Two side-by-side buttons in Hero even on mobile */
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        max-width: 100%;
    }

    .hero-buttons .btn {
        width: auto;
        flex: 1 1 0;
        min-width: 125px;
        padding: 11px 18px;
        font-size: 0.95rem;
    }

    .about {
        padding: 64px 0;
    }

    .about-specs {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 26px;
        padding-top: 22px;
        text-align: center;
    }

    .spec-item {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 12px 6px;
    }

    .spec-item strong {
        font-size: 0.94rem;
    }

    .spec-item span {
        font-size: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
