/* ===================================
   undevreau - Catering Website Styles
   Design: Dark Obsidian with Metallic Gold
   =================================== */

/* Google Fonts — matching banner typography */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Cinzel:wght@400;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* CSS Custom Properties (Variables) */
:root {
    --bg-main: #0A0F11;       /* Matched to banner background */
    --bg-card: #141C20;       /* Card background - slightly lighter */
    --text-main: #F3F4F6;     /* Soft white - text principal */
    --accent-orange: #C9A84C; /* Metallic Gold - matching banner */
    --accent-gold-light: #F2C94C; /* Bright gold highlight */
    --accent-gold-dark: #A67C2E;  /* Deep gold shadow */
    --border: #1E2A30;        /* Subtle borders */
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.3;
    color: var(--text-main);
    background: var(--bg-main);
}

/* Header removed — banner image used instead */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Responsive logo */
@media (max-width: 600px) {
    .site-logo {
        max-width: 100%;
    }
}

/* Navigation */
nav {
    background: var(--bg-main);
    box-shadow: 0 2px 10px rgba(217, 119, 6, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

nav a {
    color: var(--accent-orange);
    text-decoration: none;
    padding: 0.5rem 2rem;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    border-radius: 25px;
    border: 2px solid transparent;
}

nav a:hover, nav a.active {
    background: var(--accent-orange);
    color: var(--bg-main);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
    border-color: var(--accent-orange);
}

/* Sections */
.section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    color: var(--accent-orange);
    background: linear-gradient(135deg, var(--accent-gold-dark) 0%, var(--accent-gold-light) 50%, var(--accent-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: none;
}

/* Hero Banner */
.hero-banner {
    width: 100%;
    margin-bottom: 3rem;
    line-height: 0; /* removes gap under inline image */
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 850px;
    object-fit: cover;
    object-position: center top;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.social-links a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.social-icon {
    font-size: 1.5rem;
}

/* Gallery / Platouri */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.platter-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--border);
}

.platter-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(217, 119, 6, 0.3), 0 0 30px rgba(217, 119, 6, 0.15);
    border-color: var(--accent-orange);
}

.platter-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent-orange);
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid var(--border);
}

.platter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.9) contrast(1.1);
}

.platter-image.emoji {
    background: var(--bg-main);
}

.platter-info {
    padding: 1.0rem;
}

.platter-info h3 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.platter-info p {
    color: #9CA3AF;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
}

.platter-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.75rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent-gold-dark) 0%, var(--accent-gold-light) 50%, var(--accent-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact Form */
.contact-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-orange);
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--bg-main);
    color: var(--text-main);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #6B7280;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Footer */
footer {
    background: var(--bg-main);
    color: #9CA3AF;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 2px solid var(--accent-orange);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* ===================================
   Responsive Design — Mobile First
   =================================== */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .hero-banner-img {
        max-height: 420px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .platter-image {
        height: 200px;
    }

    .platter-info p {
        font-size: 0.95rem;
    }

    .contact-section {
        padding: 2rem 1.5rem;
    }
}

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {
    /* Base */
    body {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Header */
    header {
        padding: 1.25rem 0;
    }

    h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    /* Hero */
    .hero-banner {
        margin-bottom: 1.5rem;
    }

    .hero-banner-img {
        max-height: none; /* full image visible on mobile */
    }

    /* Section spacing */
    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.3rem;
        letter-spacing: 1px;
        margin-bottom: 1.25rem;
    }

    /* Gallery — single column on mobile */
    .gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .platter-card {
        border-radius: 14px;
    }

    /* Taller image on single column so it looks good */
    .platter-image {
        height: 220px;
    }

    .platter-info {
        padding: 0.9rem;
    }

    .platter-info h3 {
        font-size: 1.05rem;
    }

    .platter-info p {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .platter-price {
        font-size: 1.25rem;
        margin-top: 0.5rem;
    }

    /* Contact form */
    .contact-section {
        padding: 1.5rem 1rem;
        border-radius: 14px;
        margin: 0 4px;
    }

    .form-group {
        margin-bottom: 1.1rem;
    }

    input, textarea {
        font-size: 16px; /* prevents iOS zoom on focus */
        padding: 0.65rem 0.75rem;
    }

    .whatsapp-btn {
        font-size: 1rem;
        padding: 0.85rem 1.5rem;
        border-radius: 40px;
    }

    /* Footer */
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }

    .social-links {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ── Small phones (≤ 380px) ── */
@media (max-width: 380px) {
    h1 {
        font-size: 1.35rem;
    }

    .platter-image {
        height: 190px;
    }
}

/* ===================================
   Category Filter Bar
   =================================== */

.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-main);
    padding: 0.6rem 1.6rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 1px;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.2);
}

.filter-btn.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--bg-main);
    box-shadow: 0 4px 18px rgba(217, 119, 6, 0.45);
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .filter-bar {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    .filter-btn {
        padding: 0.5rem 1.1rem;
        font-size: 0.85rem;
    }
}

/* ===================================
   Lightbox – Full-size image viewer
   =================================== */

/* Clickable image area */
.platter-image {
    cursor: zoom-in;
}

.platter-image img {
    transition: transform 0.35s ease, filter 0.35s ease;
}

.platter-image:hover img {
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.1);
}

/* Clickable description area */
.platter-info {
    cursor: zoom-in;
    transition: background 0.2s ease;
}

.platter-info:hover {
    background: rgba(217, 119, 6, 0.06);
}

/* Hint label shown on info hover */
.platter-info::after {
    content: '🔍 Vezi foto';
    display: block;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--accent-orange);
    opacity: 0;
    transition: opacity 0.2s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.platter-info:hover::after {
    opacity: 0.7;
}

/* Overlay */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.93);
    align-items: center;
    justify-content: center;
    animation: lbFadeIn 0.25s ease;
}
#lightbox.active {
    display: flex;
}
@keyframes lbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Inner wrapper */
#lightbox-inner {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Image */
#lightbox-img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(217, 119, 6, 0.2);
    animation: lbImgIn 0.3s ease;
}
@keyframes lbImgIn {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* Caption */
#lightbox-caption {
    color: var(--text-main);
    font-size: 1rem;
    margin-top: 1rem;
    text-align: center;
    opacity: 0.75;
    letter-spacing: 0.5px;
}

/* Close button */
#lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    line-height: 1;
    padding: 0.2rem 0.5rem;
}
#lightbox-close:hover {
    opacity: 1;
    transform: scale(1.2) rotate(90deg);
}

/* Prev / Next arrows */
#lightbox-prev,
#lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(217, 119, 6, 0.15);
    border: 2px solid rgba(217, 119, 6, 0.3);
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    z-index: 10000;
    line-height: 1;
}
#lightbox-prev { left: 1.2rem; }
#lightbox-next { right: 1.2rem; }
#lightbox-prev:hover,
#lightbox-next:hover {
    background: rgba(217, 119, 6, 0.4);
    border-color: var(--accent-orange);
    transform: translateY(-50%) scale(1.1);
}

/* Counter pill */
#lightbox-counter {
    position: fixed;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(217, 119, 6, 0.2);
    border: 1px solid rgba(217, 119, 6, 0.35);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    z-index: 10000;
    letter-spacing: 1px;
}

/* ── Lightbox mobile ── */
@media (max-width: 600px) {
    #lightbox-inner {
        max-width: 98vw;
    }

    #lightbox-img {
        max-height: 70vh;
        border-radius: 6px;
    }

    /* Move arrows to bottom on mobile for easier thumb reach */
    #lightbox-prev,
    #lightbox-next {
        top: auto;
        bottom: 1.5rem;
        transform: none;
        font-size: 1.4rem;
        padding: 0.6rem 1.1rem;
        border-radius: 50px;
    }

    #lightbox-prev { left: 1.5rem; }
    #lightbox-next { right: 1.5rem; }

    #lightbox-prev:hover,
    #lightbox-next:hover {
        transform: scale(1.05);
    }

    #lightbox-caption {
        font-size: 0.88rem;
        margin-top: 0.6rem;
    }

    #lightbox-close {
        font-size: 1.8rem;
        top: -2.5rem;
        /* Larger tap target */
        padding: 0.4rem 0.8rem;
    }
}
