/* ============================================
   Gastronomy & Wine Page Styles
   ============================================ */

/* ============================================
   Intro Section
   ============================================ */

.gastro-intro {
    padding: 6.75rem 0 3.5rem 0;
}

.gastro-intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: start;
}

.gastro-intro__content {
    max-width: 540px;
}

.gastro-intro__title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-white);
    margin-bottom: var(--spacing-xl);
    line-height: 1.2;
}

.gastro-intro__text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.gastro-intro__text:last-child {
    margin-bottom: 0;
}

.gastro-intro__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gastro-intro__image picture,
.gastro-intro__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Legacy of Madeira Wine Section
   ============================================ */

.gastro-legacy {
    padding: 3.5rem 0;
}

.gastro-legacy__title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-white);
    margin-bottom: var(--spacing-3xl);
    line-height: 1.2;
}

.gastro-legacy__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
}

.gastro-legacy__card {
    display: flex;
    flex-direction: column;
}

.gastro-legacy__card-image {
    border-radius: var(--radius-lg);
    overflow: hidden;   
    margin-bottom: var(--spacing-xl);
}

.gastro-legacy__card-image picture,
.gastro-legacy__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gastro-legacy__card-title {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-white);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.gastro-legacy__card-text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.gastro-legacy__card-text:last-child {
    margin-bottom: 0;
}

/* ============================================
   Private Chef Section
   ============================================ */

.gastro-chef {
    padding: 3.5rem 0;
}

.gastro-chef__title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-white);
    margin-bottom: var(--spacing-3xl);
    line-height: 1.2;
}

.gastro-chef__block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
    margin-bottom: var(--spacing-4xl);
}

.gastro-chef__block:last-child {
    margin-bottom: 0;
}

.gastro-chef__block--reverse {
    direction: rtl;
}

.gastro-chef__block--reverse > * {
    direction: ltr;
}

.gastro-chef__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gastro-chef__image picture,
.gastro-chef__image img {
    width: 100%;
    height: auto;
    display: block;
}

.gastro-chef__subtitle {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-white);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.gastro-chef__text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.gastro-chef__text:last-child {
    margin-bottom: 0;
}

/* ============================================
   Authentic Dining Section
   ============================================ */

.gastro-authentic {
    padding: 3.5rem 0;
}

.gastro-authentic__title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-white);
    margin-bottom: var(--spacing-3xl);
    line-height: 1.2;
}

.gastro-authentic__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
}

.gastro-authentic__card {
    display: flex;
    flex-direction: column;
}

.gastro-authentic__card-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.gastro-authentic__card-image picture,
.gastro-authentic__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gastro-authentic__card-title {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-white);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.gastro-authentic__card-text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.gastro-authentic__card-text:last-child {
    margin-bottom: 0;
}

/* ============================================
   Signature Experiences Section
   ============================================ */

.gastro-signature {
    padding: 3.5rem 0;
}

.gastro-signature__title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-white);
    margin-bottom: var(--spacing-3xl);
    line-height: 1.2;
}

.gastro-signature__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.gastro-signature__card {
    display: flex;
    flex-direction: column;
}

.gastro-signature__card-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    width: 18rem;
    height: 13.75rem;
}

.gastro-signature__card-image picture,
.gastro-signature__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gastro-signature__card-text {
    color: #D8C49B;
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.75rem;
}

.gastro-signature__note {
    color: #D8C49B;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.75rem;
    margin-top: 2.75rem;
    max-width:  56.9375rem;
}

/* ============================================
   Gastronomy Meets Culture Section
   ============================================ */

.gastro-culture {
    padding: 3.5rem 0;
}

.gastro-culture__title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-white);
    margin-bottom: var(--spacing-xl);
    line-height: 1.2;
    text-align: center;
}

.gastro-culture__text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--spacing-md);
}

.gastro-culture__text:last-of-type {
    margin-bottom: var(--spacing-3xl);
}

.gastro-culture__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.gastro-culture__image picture,
.gastro-culture__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Sustainability Section
   ============================================ */

.gastro-sustainability {
    padding: 3.5rem 0;
}

.gastro-sustainability__title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-white);
    margin-bottom: var(--spacing-xl);
    line-height: 1.2;
}

.gastro-sustainability__text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 56.8125rem;
}

/* ============================================
   Groups & Incentives Section
   ============================================ */

.gastro-groups {
    padding: 3.5rem 0 1.5rem 0;
}

.gastro-groups__title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-white);
    margin-bottom: var(--spacing-xl);
    line-height: 1.2;
}

.gastro-groups__text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 56.875rem;
    margin-bottom: var(--spacing-md);
}

.gastro-groups__text:last-child {
    margin-bottom: 0;
}

/* ============================================
   Sample Itinerary Section
   ============================================ */

.gastro-itinerary {
    padding: 3.5rem 0 5rem 0;
}

.gastro-itinerary__title {
    color: #FFF;
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 2.75rem;
    letter-spacing: -0.05rem;
    margin-bottom: 3.5rem;
}

.gastro-itinerary__table-wrapper {
    display: block;
}

.gastro-itinerary__table {
    width: 100%;
    border-collapse: collapse;
}

.gastro-itinerary__table thead th {
    color: var(--White, #FFF);
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.75rem;
    padding: var(--spacing-lg) var(--spacing-md);
    border-bottom: 1px solid #FEFEFE;
    text-align: left;
}

.gastro-itinerary__table thead th:first-child {
    padding-left: 0;
}

.gastro-itinerary__table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.gastro-itinerary__table tbody td {
    padding: var(--spacing-lg) var(--spacing-md);
    color: var(--secondary-500, #D8C49B);
    font-size: 1.125rem;
    font-weight: var(--font-weight-regular);
    border-bottom: 1px solid #FEFEFE;
    line-height: 1.75rem;
}

/* Mobile Accordion */
.gastro-itinerary__accordion {
    display: none;
}

.gastro-itinerary__accordion-item {
    position: relative;
}

/* Full-width border effect */
.gastro-itinerary__accordion-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background-color: var(--color-border-subtle);
}

.gastro-itinerary__accordion-item:last-child::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background-color: var(--color-border-subtle);
}

.gastro-itinerary__accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 2.75rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.gastro-itinerary__accordion-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-white);
}

.gastro-itinerary__accordion-toggle {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gastro-itinerary__accordion-icon {
    font-size: 1.5rem;
    color: var(--color-text-white);
    flex-shrink: 0;
    transition: transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gastro-itinerary__accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.gastro-itinerary__accordion-item.is-open .gastro-itinerary__accordion-content {
    max-height: 600px;
    padding-bottom: var(--spacing-lg);
}

.gastro-itinerary__accordion-item.is-open .gastro-itinerary__accordion-icon {
    transform: rotate(180deg);
}

.gastro-itinerary__accordion-content p {
    font-size: 1.125rem;
    font-weight: var(--font-weight-regular);
    line-height: 1.75rem;
    color: #D8C49B;
}

.gastro-itinerary__note {
    color: #D8C49B;
    font-size: 1.125rem;
    font-weight: var(--font-weight-regular);
    line-height: 1.75rem;
    margin-top: 2.75rem;
}

/* ============================================
   CTA Section
   ============================================ */

.gastro-cta {
    background-color: rgba(216, 196, 155, 1);
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.gastro-cta__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-xl);
}

.gastro-cta__text {
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
    color: var(--color-primary-dark);
    line-height: 1.7;
}

.gastro-cta__buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 1024px) {
    .gastro-intro__grid,
    .gastro-legacy__grid,
    .gastro-chef__block,
    .gastro-authentic__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .gastro-intro__content {
        max-width: 100%;
    }

    .gastro-itinerary__note {
        margin-top: 1.5rem;
    }
    
    .gastro-intro__image {
        order: -1;
    }
    
    .gastro-chef__block--reverse {
        direction: ltr;
    }
    
    .gastro-chef__image {
        order: -1;
    }
    
    .gastro-signature__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gastro-culture__title {
        text-align: left;
    }

    .gastro-culture__text {
        text-align: left;
    }
    .gastro-signature__card-image {
        height: 16rem;
        width: 100%;
    }

    .gastro-culture__image {
        border-radius: 0;
        height: 16rem;
    }

    .gastro-culture__image img, .gastro-culture__image picture {
        height: 100%;
        width: 100%;
        display: block;
        object-fit: cover;
    }

    .gastro-intro,
    .gastro-legacy,
    .gastro-chef,
    .gastro-authentic,
    .gastro-signature,
    .gastro-culture,
    .gastro-sustainability,
    .gastro-groups,
    .gastro-itinerary {
        padding: var(--spacing-3xl) 0;
    }
    
    .gastro-intro__title,
    .gastro-legacy__title,
    .gastro-chef__title,
    .gastro-authentic__title,
    .gastro-signature__title,
    .gastro-culture__title,
    .gastro-sustainability__title,
    .gastro-groups__title,
    .gastro-itinerary__title {
        font-size: 2rem;
    }

    .gastro-authentic {
        padding: 2.75rem 0 2rem 0;
    }

    .gastro-signature {
        padding: 2.75rem 0 2rem 0;
    }

    .gastro-culture {
        padding: 2.75rem 0 0 0;
    }

    .gastro-groups {
        padding: 2.75rem 0;
    }

    .gastro-itinerary {
        padding: 0 0 5rem 0;
    }
    
    .gastro-legacy__card-title,
    .gastro-chef__subtitle,
    .gastro-authentic__card-title {
        font-size: 1.5rem;
    }

    .gastro-chef {
        padding: 2.75rem 0 2rem 0;
    }

    .gastro-legacy {
        padding: 2.75rem 0 2rem 0;
    }

    .gastro-sustainability {
        padding: 2.75rem 0 2rem 0;
    }
    
    .gastro-signature__grid {
        grid-template-columns: 1fr;
        margin-left: auto;
        margin-right: auto;
    }

    .gastro-intro {
        padding: 2.75rem 0 0 0;
    }

    .gastro-legacy__title {
        margin-bottom: 2.75rem;
    }

    .gastro-intro__title {
        font-size: 2rem;
        font-weight: 700;
        line-height: 2.5rem;
        letter-spacing: -0.04rem;
    }

    .gastro-intro__text {
        font-size: 1.125rem;
        font-weight: 400;
        line-height: 1.75rem;
    }

    .gastro-intro__image {
        height: 16rem;
        border-radius: 0;
        width: 100vw;
    }

    .gastro-intro__grid {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 2.75rem;
    }

    .gastro-intro__image img, .gastro-intro__image picture {
        height: 100%;
        width: 100%;
        display: block;
        object-fit: cover;
    }

    .gastro-legacy__card-title {
        color: #F7F2E5;
        font-size: 1.75rem;
        font-weight: 700;
        line-height: 2.25rem;
        letter-spacing: -0.035rem;
    }

    .gastro-legacy__card-image {
        margin-bottom: 1.5rem;
    }

    .gastro-legacy__card-text {
        color: #D8C49B;
        font-size: 1.125rem;
        font-weight: 400;
        line-height: 1.75rem;
    }
    
    .gastro-itinerary__title {
        color: #FFF;
        font-size: 2rem;
        font-weight: var(--font-weight-bold);
        line-height: 2.5rem;
        letter-spacing: -0.04rem;
        padding-bottom: 1.5rem;
        margin: 0;
    }

    .gastro-itinerary__accordion-title {
        color: #FFF;
        font-size: 1.75rem;
        font-weight: var(--font-weight-bold);
        line-height: 2.25rem;
        letter-spacing: -0.035rem;
    }

    .gastro-itinerary__accordion-content {
        color: #D8C49B;
        font-size: 1.125rem;
        font-weight: var(--font-weight-regular);
        line-height: 1.75rem;
    }
    
    .gastro-itinerary__note {
        color: #D8C49B;
        font-size: 1.125rem;
        font-weight: var(--font-weight-regular);
        line-height: 1.75rem;
    }

    .gastro-itinerary__table-wrapper {
        display: none;
    }
    
    .gastro-itinerary__accordion {
        display: block;
    }
    
    .gastro-cta {
        padding: var(--spacing-3xl) var(--spacing-lg);
    }
    
    .gastro-cta__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .gastro-cta__buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

