/* Main Page Styles - Home Page */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary-green);
    padding-top: 80px;
}

.hero-left {
    flex: 1.2;
    padding: 4rem 2rem;
    background: var(--primary-green);
    position: relative;
}

.hero-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20px 20px, rgba(168, 135, 26, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-title {
    font-family: 'Gilda Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: var(--very-dark-green);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--very-dark-green);
    line-height: 1.6;
}

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

.hero-right {
    flex: 0.8;
    position: relative;
    min-height: 100vh;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20px 20px, rgba(168, 135, 26, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.hero-image {
    width: 95%;
    height: 85vh;
    max-width: 600px;
    max-height: 900px;
    min-height: 500px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.image-overlay {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    color: var(--white);
    text-align: right;
    z-index: 2;
}

.logo-overlay {
    font-family: 'Gilda Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
}

.logo-overlay::after {
    content: 'NINETEEN';
    display: block;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

/* Welcome & Features Section */
.welcome-features-section {
    padding: 8rem 0 10rem 0;
    background: var(--primary-green);
    min-height: 120vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 6rem auto;
}

.welcome-text {
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.welcome-title {
    font-family: 'Gilda Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--very-dark-green);
}

.welcome-description {
    font-size: 1.1rem;
    color: var(--very-dark-green);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 4rem 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(2, 7, 2, 0.15);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(2, 7, 2, 0.2);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2.5rem;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.2rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-family: 'Gilda Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--very-dark-green);
    line-height: 1.3;
}

.feature-card p {
    margin-bottom: 2.5rem;
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 1.1rem;
    flex-grow: 1;
}

.feature-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: var(--very-dark-green);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(2, 7, 2, 0.2);
    margin-top: auto;
    text-align: center;
}

.feature-btn:hover {
    background: #A8871A;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 7, 2, 0.3);
}

.feature-btn i {
    font-size: 0.9rem;
}

/* Experience Section */
.experience-section {
    padding: 0;
    background: transparent;
    min-height: 100vh;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    min-height: 100vh;
    gap: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.experience-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1;
}

.experience-card:hover::before {
    background: rgba(0, 0, 0, 0.7);
}

.experience-card.drinks {
    background: url('photos/XIX.JPG') center/cover no-repeat;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.experience-card.food {
    background: url('photos/XIX_food.JPG') center/cover no-repeat;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.experience-card.mood {
    background: url('photos/XIX_dj.JPG') center/cover no-repeat;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.experience-content {
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.experience-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.experience-card:hover .experience-content {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile hover class for lighter touch responsiveness */
.experience-card.mobile-hover .experience-content {
    opacity: 1;
    transform: translateY(0);
}

.experience-card.mobile-hover::before {
    background: rgba(0, 0, 0, 0.7);
}

.experience-title {
    font-family: 'Gilda Display', serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--white);
    transition: all 0.3s ease;
}

.experience-card:hover .experience-title {
    transform: translateY(-10px);
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-left {
    max-width: 500px;
}

.contact-title {
    font-family: 'Gilda Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--very-dark-green);
}

.contact-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

.book-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--very-dark-green);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.book-now-btn:hover {
    background: #A8871A;
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
}

.connect-text {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-subtitle {
    font-family: 'Gilda Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--very-dark-green);
}

.contact-message {
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

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

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

.contact-item i {
    color: var(--gold);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.contact-item-content {
    flex: 1;
}

.contact-label {
    font-weight: 500;
    color: var(--very-dark-green);
    display: block;
    margin-bottom: 0.2rem;
}

.contact-value {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}

.map-container {
    background: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    background: var(--medium-gray);
}

.map-placeholder i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.map-placeholder p {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Design for Main Page */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

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

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        min-height: auto;
        padding-top: 100px;
        position: relative;
        overflow: visible;
    }

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(168, 135, 26, 0.05) 0%, rgba(168, 135, 26, 0.1) 100%);
        z-index: 0;
    }

    .hero-left {
        padding: 2rem 1rem;
        flex: none;
        position: relative;
        z-index: 1;
        animation: slideInFromLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hero-right {
        min-height: 400px;
        flex: none;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1;
        animation: slideInFromRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
        margin-bottom: 2rem;
        background: transparent;
        /* Remove the primary-green background */
    }

    .hero-right::before {
        display: none;
        /* Hide the pattern overlay on mobile */
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        position: relative;
        overflow: hidden;
        transform: translateY(0);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        min-height: 44px;
        cursor: pointer;
    }

    .btn-primary::before,
    .btn-secondary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .btn-primary:hover::before,
    .btn-secondary:hover::before {
        left: 100%;
    }

    .btn-primary:active,
    .btn-secondary:active {
        transform: translateY(2px) scale(0.98);
        transition: all 0.1s ease;
        background: #A8871A;
        color: var(--white);
        border-color: #A8871A;
    }

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

    .feature-card {
        padding: 2rem 1.5rem;
        min-height: auto;
        position: relative;
        overflow: hidden;
        transform: translateY(0);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(168, 135, 26, 0.05) 0%, rgba(168, 135, 26, 0.1) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 0;
    }

    .feature-card:hover::before {
        opacity: 1;
    }

    .feature-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 40px rgba(2, 7, 2, 0.25);
    }

    .feature-card h3 {
        font-size: 1.5rem;
        position: relative;
        z-index: 1;
        transition: all 0.3s ease;
    }

    .feature-card:hover h3 {
        transform: translateY(-2px);
        color: var(--gold);
    }

    .experience-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .experience-card {
        min-height: 300px;
        position: relative;
        overflow: hidden;
        transform: scale(1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .experience-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(168, 135, 26, 0.1) 0%, rgba(168, 135, 26, 0.2) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    .experience-card:hover::after {
        opacity: 1;
    }

    .experience-card:hover {
        transform: scale(1.02);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }

    .experience-content {
        padding: 1.5rem;
        position: relative;
        z-index: 2;
        transform: translateY(0);
        transition: all 0.3s ease;
    }

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

    .experience-title {
        font-size: 1.8rem;
        transition: all 0.3s ease;
    }

    .experience-card:hover .experience-title {
        transform: scale(1.05);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

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

    .contact-left {
        max-width: none;
    }

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

@media (max-width: 480px) {

    /* Prevent horizontal overflow on mobile */
    body,
    html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .hero {
        padding-top: 80px;
        position: relative;
        overflow: visible;
        width: 100%;
        max-width: 100vw;
    }

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(168, 135, 26, 0.08) 0%, rgba(168, 135, 26, 0.12) 100%);
        z-index: 0;
        animation: pulse 4s ease-in-out infinite;
    }

    .hero-left {
        padding: 1.5rem 0.5rem;
        position: relative;
        z-index: 1;
        animation: bounceIn 1s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hero-right {
        padding: 0.5rem;
        min-height: 350px;
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 1;
        animation: slideInFromRight 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
        background: transparent;
        /* Remove the primary-green background */
    }

    .hero-right::before {
        display: none;
        /* Hide the pattern overlay on mobile */
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        min-height: 44px;
        cursor: pointer;
    }

    .welcome-title {
        font-size: 2rem;
        line-height: 1.2;
    }

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

    .feature-card {
        padding: 1.5rem 1rem;
        position: relative;
        overflow: hidden;
        transform: translateY(0);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        animation: float 3s ease-in-out infinite;
    }

    .feature-card:nth-child(1) {
        animation-delay: 0s;
    }

    .feature-card:nth-child(2) {
        animation-delay: 0.5s;
    }

    .feature-card:nth-child(3) {
        animation-delay: 1s;
    }

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(168, 135, 26, 0.08) 0%, rgba(168, 135, 26, 0.15) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 0;
    }

    .feature-card:hover::before {
        opacity: 1;
    }

    .feature-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 15px 30px rgba(2, 7, 2, 0.2);
        animation-play-state: paused;
    }

    .feature-card h3 {
        font-size: 1.3rem;
        line-height: 1.3;
        position: relative;
        z-index: 1;
        transition: all 0.3s ease;
    }

    .feature-card:hover h3 {
        transform: translateY(-2px);
        color: var(--gold);
    }

    .feature-card p {
        font-size: 0.9rem;
        position: relative;
        z-index: 1;
    }

    .feature-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        position: relative;
        z-index: 1;
        transform: translateY(0);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .feature-btn:hover {
        transform: translateY(-2px) scale(1.05);
    }

    .feature-btn:active {
        transform: translateY(1px) scale(0.98);
    }

    .experience-card {
        min-height: 250px;
        position: relative;
        overflow: hidden;
        transform: scale(1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        animation: float 4s ease-in-out infinite;
    }

    .experience-card:nth-child(1) {
        animation-delay: 0s;
    }

    .experience-card:nth-child(2) {
        animation-delay: 1.5s;
    }

    .experience-card:nth-child(3) {
        animation-delay: 3s;
    }

    .experience-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(168, 135, 26, 0.15) 0%, rgba(168, 135, 26, 0.25) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    .experience-card:hover::after {
        opacity: 1;
    }

    .experience-card:hover {
        transform: scale(1.03);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
        animation-play-state: paused;
    }

    .experience-content {
        padding: 1rem;
        position: relative;
        z-index: 2;
        transform: translateY(0);
        transition: all 0.3s ease;
    }

    .experience-card:hover .experience-content {
        transform: translateY(-3px);
    }

    .experience-title {
        font-size: 1.5rem;
        transition: all 0.3s ease;
    }

    .experience-card:hover .experience-title {
        transform: scale(1.03);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .experience-description {
        font-size: 1rem;
        position: relative;
        z-index: 2;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .contact-description {
        font-size: 0.9rem;
    }
}

/* Hero Image Responsive Sizing */
@media (max-width: 1024px) {
    .hero-image {
        width: 100%;
        height: 70vh;
        min-height: 350px;
        max-height: 550px;
    }
}

@media (max-width: 768px) {
    .hero-image {
        width: 100%;
        height: 50vh;
        min-height: 350px;
        max-height: 450px;
        border-radius: 15px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
        transform: scale(1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: block;
        position: relative;
        background: url('photos/XIX_main.png') center/cover no-repeat, #f0f0f0;
        /* Fallback background image */
        border: 2px solid #ccc;
        /* Temporary border to see container */
    }

    .hero-image:hover {
        transform: scale(1.02) translateY(-5px);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    }

    .hero-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 15px;
        display: block;
        position: relative;
        z-index: 10;
        /* Ensure image is above other elements */
    }
}

@media (max-width: 480px) {
    .hero-image {
        height: 45vh;
        min-height: 300px;
        max-height: 600px;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
        transform: scale(1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: block;
        position: relative;
    }

    .hero-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
        display: block;
        position: relative;
        z-index: 10;
        /* Ensure image is above other elements */
    }

    .hero-image:hover {
        transform: scale(1.03) translateY(-3px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    /* Additional mobile overflow fixes */
    .hero-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 2rem 1rem;
    }

    .hero-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero-description {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Ensure all containers fit within viewport */
    .container {
        width: 100%;
        max-width: 100vw;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .features-grid {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .experience-grid {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
}