/* ============================================
   Cafe Yerushalmi — Classic & Elegant Styles
   Color Palette: Deep Navy (#1a2744) + Warm Gold (#c9a84c)
   ============================================ */

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

:root {
    --navy: #1a2744;
    --navy-light: #243556;
    --navy-dark: #111b30;
    --gold: #c9a84c;
    --gold-light: #d4b96a;
    --gold-dark: #b8943f;
    --cream: #f8f6f0;
    --cream-dark: #efece4;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #5a5a5a;
    --text-light: #f8f6f0;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lora', 'Times New Roman', serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;
    --transition: 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(26, 39, 68, 0.08);
    --shadow-md: 0 8px 30px rgba(26, 39, 68, 0.12);
    --shadow-lg: 0 20px 60px rgba(26, 39, 68, 0.15);
}

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

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

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

/* ---------- Section Labels & Titles ---------- */
.section-label {
    font-family: var(--font-accent);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 24px;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-accent);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all var(--transition);
}

.btn--gold {
    background: var(--gold);
    color: var(--navy-dark);
    border: 2px solid var(--gold);
}

.btn--gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

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

.navbar.scrolled {
    background: rgba(26, 39, 68, 0.97);
    padding: 14px 0;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.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;
    gap: 12px;
}

.logo-letter {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-accent);
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-link--cta {
    background: var(--gold);
    color: var(--navy-dark);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: var(--gold-light);
    color: var(--navy-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
}

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

.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger: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;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(17, 27, 48, 0.88) 0%,
        rgba(26, 39, 68, 0.75) 50%,
        rgba(26, 39, 68, 0.65) 100%
    );
}

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

.hero-tagline {
    font-family: var(--font-accent);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-title em {
    font-style: italic;
    color: var(--gold);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 40px;
}

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

.hero-divider {
    display: flex;
    justify-content: center;
    opacity: 0.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-text {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

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

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

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

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

.about-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--gold);
    border-radius: 4px;
    z-index: -1;
}

.about-content {
    padding: 20px 0;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-signature {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(201, 168, 76, 0.3);
}

.signature-text {
    font-family: var(--font-accent);
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-style: italic;
}

.signature-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy);
    font-weight: 500;
    margin-top: 4px;
}

/* ---------- Features Section ---------- */
.features {
    padding: 120px 0;
    background: var(--navy);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.features-header {
    text-align: center;
    margin-bottom: 72px;
}

.features-header .section-label {
    color: var(--gold);
}

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

.feature-card {
    text-align: center;
    padding: 40px 24px;
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 4px;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: rgba(201, 168, 76, 0.4);
    background: rgba(201, 168, 76, 0.05);
    transform: translateY(-4px);
}

.feature-icon {
    margin-bottom: 24px;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 12px;
}

.feature-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

/* ---------- Menu Section ---------- */
.menu {
    padding: 120px 0;
    background: var(--cream);
}

.menu-header {
    text-align: center;
    margin-bottom: 48px;
}

.menu-intro {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.8;
}

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.menu-tab {
    font-family: var(--font-accent);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 12px 28px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all var(--transition);
}

.menu-tab:hover {
    color: var(--navy);
    border-color: rgba(26, 39, 68, 0.2);
}

.menu-tab.active {
    color: var(--navy);
    background: var(--navy);
    border-color: var(--navy);
}

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

.menu-item {
    padding: 32px;
    background: var(--white);
    border-radius: 4px;
    border: 1px solid rgba(26, 39, 68, 0.06);
    transition: all var(--transition);
}

.menu-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-2px);
}

.menu-item-header {
    /* always visible */
}

.menu-item-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 8px;
}

.menu-item-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.menu-footer {
    text-align: center;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.menu-footer p {
    font-family: var(--font-accent);
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-style: italic;
}

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

.gallery-header {
    text-align: center;
    margin-bottom: 56px;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 39, 68, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

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

.gallery-item-overlay span {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--white);
    letter-spacing: 0.05em;
}

.gallery-item--large {
    grid-column: span 5;
    grid-row: span 2;
}

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

.gallery-item:not(.gallery-item--large) {
    grid-column: span 3;
}

/* ---------- Testimonial Section ---------- */
.testimonial {
    padding: 120px 0;
    background: var(--navy);
    position: relative;
}

.testimonial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.testimonial-quote {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.2;
}

.testimonial-text {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    font-style: italic;
    color: var(--white);
    line-height: 1.8;
    margin-bottom: 32px;
}

.testimonial-source {
    font-family: var(--font-accent);
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 0.1em;
}

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

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

.contact-intro {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 48px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 50%;
}

.contact-label {
    font-family: var(--font-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.contact-link {
    font-size: 1rem;
    color: var(--navy);
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
    transition: all var(--transition);
}

.contact-link:hover {
    color: var(--gold-dark);
    border-color: var(--gold);
}

/* ---------- Contact Form ---------- */
.contact-form-wrap {
    background: var(--white);
    padding: 48px;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(26, 39, 68, 0.06);
}

.form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 32px;
}

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

.form-label {
    display: block;
    font-family: var(--font-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--cream);
    border: 1px solid rgba(26, 39, 68, 0.12);
    border-radius: 4px;
    transition: all var(--transition);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

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

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

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    margin: 0 auto 20px;
}

.form-success h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.form-success p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- Map Section ---------- */
.map-section {
    background: var(--navy-dark);
}

.map-container {
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--navy), var(--gold), var(--navy));
    z-index: 1;
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-letter {
    font-size: 1.75rem;
}

.footer-logo .logo-text {
    font-size: 1.1rem;
}

.footer-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    max-width: 300px;
}

.footer-heading {
    font-family: var(--font-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.footer-links ul,
.hours-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

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

.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.9375rem;
}

.hours-list .day {
    color: rgba(255, 255, 255, 0.5);
}

.hours-list .time {
    color: var(--white);
    font-weight: 500;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.35);
}

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

.footer-phone,
.footer-email {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-phone:hover,
.footer-email:hover {
    color: var(--gold);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.2);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 48px;
    }
    
    .contact-grid {
        gap: 48px;
    }
    
    .gallery-grid {
        grid-template-rows: repeat(3, 240px);
    }
    
    .gallery-item--large {
        grid-column: span 7;
        grid-row: span 1;
    }
    
    .gallery-item--wide {
        grid-column: span 5;
    }
    
    .gallery-item:not(.gallery-item--large):not(.gallery-item--wide) {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--navy-dark);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-link--cta {
        padding: 12px 28px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        height: 400px;
    }
    
    .about-image-accent {
        top: -12px;
        left: -12px;
        right: 12px;
        bottom: 12px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 32px 24px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item--large,
    .gallery-item--wide,
    .gallery-item:not(.gallery-item--large):not(.gallery-item--wide) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrap {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .features,
    .menu,
    .gallery,
    .testimonial,
    .contact {
        padding: 80px 0;
    }
    
    .menu-categories {
        gap: 6px;
    }
    
    .menu-tab {
        padding: 10px 18px;
        font-size: 0.8125rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
