/* ===================================
   TERRAZZA ITALIA - RESTAURANT WEBSITE
   =================================== */

:root {
    --gold: #C9A961;
    --dark-gold: #B4954D;
    --cream: #F5F1E8;
    --dark-cream: #E8E0D0;
    --brown: #4A3F35;
    --dark-brown: #2D2822;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--cream);
    color: var(--brown);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(245, 241, 232, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px var(--shadow);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(245, 241, 232, 0.98);
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 70px;
    width: auto;
    display: block;
}

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

.nav-link {
    color: var(--brown);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

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

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

.nav-link.btn-reserve {
    background: var(--gold);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 30px;
}

.nav-link.btn-reserve::after {
    display: none;
}

.nav-link.btn-reserve:hover {
    background: var(--dark-gold);
    color: var(--white);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    transition: all 0.3s ease;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 63, 53, 0.8) 0%, rgba(45, 40, 34, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-icon {
    margin-bottom: 30px;
}

.hero-icon img {
    display: block;
    margin: 0 auto;
}

.hero-logo-image {
    height: 120px;
    width: auto;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 80px;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--gold);
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--white);
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--cream);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.3);
}

.btn-primary:hover {
    background: var(--dark-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--brown);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 50px;
    background: var(--gold);
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

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

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   ABOUT SECTION
   =================================== */

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

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

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: 20px;
}

.title-divider {
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin-bottom: 30px;
}

.about-description {
    font-size: 16px;
    line-height: 1.9;
    color: var(--brown);
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.feature-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 15px;
    color: var(--brown);
    line-height: 1.7;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 20px 60px var(--shadow-dark);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--gold);
    z-index: -1;
    border-radius: 10px;
}

.image-frame img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.image-frame:hover img {
    transform: scale(1.05);
}

/* ===================================
   LOCATION BANNER
   =================================== */

.location-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.parallax-section {
    position: relative;
}

.parallax-bg {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: calc(100% + 100px);
    background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: translateY(0);
}

.parallax-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 40, 34, 0.7);
}

.location-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.location-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 20px;
}

.location-content p {
    font-size: 18px;
    color: var(--cream);
    letter-spacing: 1px;
}

/* ===================================
   MENU SECTION
   =================================== */

.menu-section {
    padding: 120px 0;
    background: var(--white);
}

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

.section-subtitle {
    font-size: 16px;
    color: var(--brown);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Category Navigation */
.category-nav {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: var(--white);
    padding: 20px 0;
    margin: 40px 0;
    border-top: 1px solid var(--dark-cream);
    border-bottom: 1px solid var(--dark-cream);
    box-shadow: 0 2px 10px var(--shadow);
}

.category-nav-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    --fade-left-opacity: 0;
    --fade-right-opacity: 0;
}

/* Gradient fade indicators for scrollable content */
.category-nav-container::before,
.category-nav-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.category-nav-container::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
    opacity: var(--fade-left-opacity);
}

.category-nav-container::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
    opacity: var(--fade-right-opacity);
}

.category-nav-link {
    padding: 10px 20px;
    text-decoration: none;
    color: var(--brown);
    font-size: 14px;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: var(--cream);
    white-space: nowrap;
}

.category-nav-link:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

.category-nav-link.active {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 3px 10px rgba(201, 169, 97, 0.3);
}

.menu-category {
    margin-bottom: 100px;
}

.category-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 600;
    color: var(--gold);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gold);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.menu-item {
    background: var(--cream);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px var(--shadow);
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-dark);
}

.menu-item-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.menu-item-content {
    padding: 30px;
}

.menu-item-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: 10px;
}

.menu-item-description {
    font-size: 14px;
    color: var(--brown);
    line-height: 1.7;
    margin-bottom: 20px;
    min-height: 65px;
}

.menu-item-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
}

.menu-item-price small {
    font-size: 18px;
    font-weight: 500;
}

/* Drinks Grid */
.drinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.drink-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--dark-cream);
}

.drink-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--brown);
}

.drink-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--gold) 0%, transparent 100%);
    margin: 0 20px;
}

.drink-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
}

.drink-price small {
    font-size: 14px;
}

/* ===================================
   GALLERY SECTION
   =================================== */

.gallery {
    padding: 120px 0;
    background: var(--cream);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 5px 20px var(--shadow);
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.3), rgba(74, 63, 53, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ===================================
   RESERVATION SECTION
   =================================== */

.reservation {
    padding: 120px 0;
    background: var(--white);
}

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

.operating-hours {
    margin-top: 40px;
    padding: 40px;
    background: var(--cream);
    border-radius: 15px;
}

.operating-hours h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 25px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--dark-cream);
}

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

.day {
    font-weight: 600;
    color: var(--brown);
}

.time {
    color: var(--brown);
}

.reservation-form {
    background: var(--cream);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 40px var(--shadow);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--dark-cream);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    background: var(--white);
    color: var(--brown);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

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

.reservation-form .btn {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

/* ===================================
   CONTACT SECTION
   =================================== */

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

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

.contact-items {
    margin-top: 40px;
    display: grid;
    gap: 30px;
}

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

.contact-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-details h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 5px;
}

.contact-details p {
    font-size: 15px;
    color: var(--brown);
    line-height: 1.7;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: var(--white);
    margin-top: 30px;
}

.btn-whatsapp:hover {
    background: #20BD5A;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #4285F4;
    color: var(--white);
    margin-top: 15px;
}

.btn-directions:hover {
    background: #3367D6;
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
}

.map-placeholder {
    width: 100%;
    height: 500px;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--dark-brown);
    padding: 60px 0 30px;
    color: var(--cream);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

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

.footer-logo-image {
    height: 100px;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 30px;
}

.social-link {
    color: var(--cream);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(245, 241, 232, 0.1);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--cream);
    margin: 5px 0;
}

.footer-credit {
    font-size: 12px;
    opacity: 0.8;
}

.footer-credit a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ===================================
   WHATSAPP FLOATING BUTTON
   =================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.6);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .about-content,
    .reservation-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-title {
        font-size: 60px;
    }

    .section-title {
        font-size: 48px;
    }
}

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

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .logo-image {
        height: 55px;
    }

    .hero-logo-image {
        height: 100px;
    }

    .footer-logo-image {
        height: 75px;
    }

    .hero-title {
        font-size: 48px;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 40px;
    }

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

    .category-nav {
        top: 70px;
        padding: 15px 0;
    }

    .category-nav-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        gap: 8px;
        padding: 0 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-nav-container::-webkit-scrollbar {
        display: none;
    }

    .category-nav-link {
        padding: 8px 15px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .drinks-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .reservation-form {
        padding: 30px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-logo-image {
        height: 60px;
    }

    .location-content h2 {
        font-size: 36px;
    }

    .location-content p {
        font-size: 16px;
    }

    .location-banner {
        padding: 60px 0;
    }

    .parallax-bg {
        background-attachment: scroll;
        top: 0;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .logo-image {
        height: 50px;
    }

    .hero-logo-image {
        height: 90px;
    }

    .footer-logo-image {
        height: 65px;
    }

    .location-banner {
        padding: 40px 0;
    }

    .location-content h2 {
        font-size: 28px;
    }

    .location-content p {
        font-size: 14px;
    }

    .

    .section-title {
        font-size: 32px;
    }

    .category-title {
        font-size: 32px;
    }

    .category-nav-container {
        padding: 0 10px;
    }

    .category-nav-link {
        padding: 6px 12px;
        font-size: 12px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}
