/* =====================================================
   NAOLIWIENI PIZZA & WINE - Main Stylesheet
   Premium Craft Pizzeria in Milanówek
   Typography: Playfair Display (headings), Inter (body)
   ===================================================== */

/* CSS Custom Properties */
:root {
    --olive-dark: #4a5d23;
    --olive: #6b8e23;
    --olive-light: #8fbc8f;
    --terracotta: #c75b39;
    --cream: #faf8f5;
    --cream-dark: #f5f0e8;
    --text-dark: #2c3e2d;
    --text-light: #5a6b5c;
    --white: #ffffff;
    --shadow: rgba(107, 142, 35, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 20px var(--shadow);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 1.5rem;
}

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

.nav-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

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

.nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    position: relative;
    z-index: 1002;
}

/* Mobile Menu Overlay */
.nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    box-shadow: none;
    border: none;
    pointer-events: none;
}

.nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-links li {
    width: auto;
    list-style: none;
}

.nav-links a {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    border: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--terracotta);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--terracotta);
    background: var(--cream);
}

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

/* Remove desktop hover underline for mobile */
.nav-links a::after {
    display: none;
}

/* =====================================================
   HERO SECTION - Mobile First
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 1.25rem 3rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(107, 142, 35, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(199, 91, 57, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    padding: 0 0.5rem;
}

.hero-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

h1.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--text-light);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 1.25rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    line-height: 1.5;
}

.hero-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
    line-height: 1.7;
}

/* =====================================================
   COUNTDOWN SECTION - Mobile First
   ===================================================== */
.countdown-section {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--shadow);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.countdown-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--olive);
    margin-bottom: 1rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: linear-gradient(145deg, var(--cream), var(--white));
    border-radius: 12px;
    padding: 0.75rem 1rem;
    min-width: 65px;
    box-shadow: 0 4px 15px var(--shadow);
    border: 1px solid rgba(107, 142, 35, 0.1);
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--terracotta);
    display: block;
}

.countdown-label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.countdown-opened {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--olive);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.8s backwards;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    max-width: 250px;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(199, 91, 57, 0.3);
}

.btn-primary:hover {
    background: #b54d2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 91, 57, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--olive);
    border: 2px solid var(--olive);
}

.btn-secondary:hover {
    background: var(--olive);
    color: var(--white);
    transform: translateY(-2px);
}

/* =====================================================
   SECTION STYLES - Mobile First
   ===================================================== */
section {
    padding: 3rem 1rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--terracotta);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* =====================================================
   MENU SECTION
   ===================================================== */
.menu-section {
    background: var(--white);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.menu-tab {
    padding: 0.75rem 2rem;
    border: 2px solid var(--olive);
    background: transparent;
    color: var(--olive);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.menu-tab.active,
.menu-tab:hover {
    background: var(--olive);
    color: var(--white);
}

.menu-content {
    display: none;
}

.menu-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.menu-item {
    background: var(--cream);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--shadow);
    border-color: rgba(107, 142, 35, 0.2);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.menu-item-title {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.menu-item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.menu-item-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--olive);
    white-space: nowrap;
}

.menu-item-badge {
    background: var(--terracotta);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.menu-item-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.menu-note {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--cream);
    border-radius: 12px;
    font-style: italic;
    color: var(--text-light);
}

.menu-note i {
    color: var(--terracotta);
    margin-right: 0.5rem;
}

/* =====================================================
   ABOUT SECTION - Mobile First
   ===================================================== */
.about-section {
    background: linear-gradient(135deg, var(--olive-dark) 0%, var(--olive) 100%);
    color: var(--white);
    padding: 3rem 1rem;
}

.about-section .section-title {
    color: var(--white);
    font-size: 1.75rem;
}

.about-section .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.7;
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    text-align: left;
}

.about-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(4px);
}

.about-icon {
    font-size: 1.75rem;
    color: var(--cream);
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card-content {
    flex: 1;
}

.about-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.about-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* =====================================================
   REVIEWS SECTION
   ===================================================== */
.reviews-section {
    background: var(--cream);
}

.reviews-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

.reviews-score {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--terracotta);
    line-height: 1;
}

.reviews-stars {
    color: #ffc107;
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

.reviews-count {
    color: var(--text-light);
    font-size: 0.85rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.review-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background: var(--olive);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
}

.review-author {
    font-weight: 600;
    color: var(--text-dark);
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.review-stars {
    color: #ffc107;
    margin-bottom: 0.75rem;
}

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

/* =====================================================
   CONTACT SECTION - Mobile First
   ===================================================== */
.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: var(--cream);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--olive);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--terracotta);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--olive);
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.hours-table td {
    padding: 0.25rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.hours-table td:first-child {
    font-weight: 500;
    color: var(--text-dark);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
    min-height: 280px;
    height: 280px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =====================================================
   SOCIAL SECTION
   ===================================================== */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--cream);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--olive);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.text-link {
    color: var(--terracotta);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid rgba(199, 91, 57, 0.3);
    transition: all 0.3s ease;
}

.text-link:hover {
    background: rgba(199, 91, 57, 0.1);
    border-bottom-color: var(--terracotta);
}

/* =====================================================
   FOOTER - Mobile First
   ===================================================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
}

.footer-logo {
    max-width: 120px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-text a {
    color: var(--olive-light);
    text-decoration: none;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* =====================================================
   TABLET AND UP (min-width: 768px)
   ===================================================== */
@media (min-width: 768px) {
    section {
        padding: 4rem 2rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero {
        padding: 120px 2rem 4rem;
    }

    .hero-logo {
        max-width: 260px;
    }

    h1.hero-tagline {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }

    .btn {
        width: auto;
        max-width: none;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .countdown-section {
        padding: 2rem;
    }

    .countdown-title {
        font-size: 1.5rem;
    }

    .countdown {
        gap: 1rem;
    }

    .countdown-item {
        min-width: 90px;
        padding: 1.25rem 1.5rem;
    }

    .countdown-number {
        font-size: 2.25rem;
    }

    .countdown-label {
        font-size: 0.8rem;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .menu-item {
        padding: 1.5rem;
        border-radius: 16px;
    }

    /* About section - 2 columns on tablet */
    .about-section {
        padding: 4rem 2rem;
    }

    .about-section .section-title {
        font-size: 2rem;
    }

    .about-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        margin-top: 2.5rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .reviews-score {
        font-size: 3.5rem;
    }

    .reviews-stars {
        font-size: 1.4rem;
    }

    .contact-info {
        gap: 1.75rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .map-container {
        min-height: 350px;
        height: 350px;
    }
}

/* =====================================================
   DESKTOP (min-width: 1024px)
   ===================================================== */
@media (min-width: 1024px) {
    section {
        padding: 5rem 2rem;
    }

    .section-header {
        margin-bottom: 3.5rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .nav-links {
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        backdrop-filter: none;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        opacity: 1;
        visibility: visible;
        transform: none;
        gap: 2.5rem;
        padding: 0;
        box-shadow: none;
        pointer-events: auto;
    }

    .nav-links a {
        font-family: 'Inter', sans-serif;
        font-size: 0.95rem;
        font-weight: 500;
        padding: 0.5rem 0;
    }

    .nav-links a::after {
        display: block;
        left: 0;
        transform: none;
    }

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

    .nav-toggle {
        display: none;
    }

    .hero-logo {
        max-width: 300px;
    }

    h1.hero-tagline {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .countdown-item {
        min-width: 100px;
        padding: 1.5rem 2rem;
    }

    .countdown-number {
        font-size: 2.5rem;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }

    /* About section - 2x2 grid on desktop */
    .about-section {
        padding: 5rem 2rem;
    }

    .about-section .section-title {
        font-size: 2.25rem;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .about-card {
        padding: 1.75rem;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .about-card:hover {
        transform: translateY(-5px);
    }

    .about-icon {
        width: 65px;
        height: 65px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .about-card h3 {
        font-size: 1.2rem;
    }

    .about-card p {
        font-size: 0.9rem;
    }

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

    .contact-info {
        gap: 2rem;
    }

    .map-container {
        min-height: 100%;
        height: auto;
    }

    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .reviews-score {
        font-size: 4rem;
    }
}

/* =====================================================
   LARGE DESKTOP (min-width: 1280px)
   ===================================================== */
@media (min-width: 1280px) {
    section {
        padding: 6rem 2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .hero-logo {
        max-width: 320px;
    }

    h1.hero-tagline {
        font-size: 1.75rem;
    }

    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .about-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .about-card {
        padding: 2rem 1.25rem;
    }

    .about-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .about-card h3 {
        font-size: 1.15rem;
    }
}