.fourseasons-philosophy-quality-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #F8F8F8;
}

.philosophy-section {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px 0;
    /* tighter section spacing */
    /* tighter spacing between sections */
    background: #F8F8F8;
    margin: 0;
}

/* sections already separated by padding; no extra margin needed */

.philosophy-section .container {
    width: 100%;
    /* Unified block (no gap) like the reference design */
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    /* remove side gutters (no white space outside) */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    /* make both columns same height */
    border-radius: 0;
    overflow: hidden;
    /* ensure content+image touch with shared rounded corners */
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
    /* softer shadow to reduce “gap” feel */
}

.philosophy-section.text-left .section-content {
    order: 1;
}

.philosophy-section.text-left .section-image {
    order: 2;
}

.philosophy-section.text-right .section-content {
    order: 2;
}

.philosophy-section.text-right .section-image {
    order: 1;
}

/* Text Content */
.section-content {
    background: #FFFFFF;
    padding: 48px 44px;
    border-radius: 0;
    box-shadow: none;
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Keep same rectangle size as image */
    flex: 1 1 960px;
    max-width: none;
    aspect-ratio: 960 / 500;
}

.section-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #555452, #8D8B88, #555452);
}

.section-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #8D8B88;
    margin-bottom: 14px;
    line-height: 1.2;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.section-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #2B2B2B;
    line-height: 1.65;
    margin-bottom: 22px;
    max-width: 62ch;
}

.section-text p {
    margin-bottom: 14px;
}

.section-text p:last-child {
    margin-bottom: 0;
}

/* Button */
.section-button {
    display: inline-block;
    background: #555452;
    color: #FFFFFF;
    padding: 14px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
    position: relative;
    overflow: hidden;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    /* prevent stretching */
}

.section-button::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;
}

.section-button:hover::before {
    left: 100%;
}

.section-button:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    color: #FFFFFF;
    text-decoration: none;
}

/* Image */
.section-image {
    position: relative;
    width: 100%;
    max-width: none;
    aspect-ratio: 960 / 500;
    /* ensure rectangle (960x500) */
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: #EDEDED;
    flex: 1 1 960px;
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.section-image:hover img {
    transform: scale(1.02);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #CCCCCC;
    border-radius: 18px;
    position: relative;
    z-index: 2;
}

.image-placeholder span {
    font-size: 48px;
    font-weight: bold;
    color: #999999;
    opacity: 0.5;
}

/* Animation classes */
.philosophy-section {
    /* Default: always visible (avoid "missing image" when JS doesn't run) */
    opacity: 1;
    transform: none;
}

/* Progressive enhancement: only animate if JS enables it */
.fs-pq-anim .philosophy-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.fs-pq-anim .philosophy-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .section-content {
        padding: 44px 40px;
    }

    .section-title {
        font-size: 40px;
    }

    .section-text {
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .section-content {
        padding: 40px 34px;
    }

    .section-title {
        font-size: 34px;
    }

    .section-text {
        font-size: 16px;
    }

    .section-button {
        padding: 13px 16px;
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .section-content {
        padding: 36px 28px;
    }

    .section-title {
        font-size: 30px;
        margin-bottom: 18px;
    }

    .section-text {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .section-button {
        padding: 12px 15px;
        font-size: 12px;
    }
}

@media (max-width: 752px) {
    .philosophy-section {
        min-height: auto;
        padding: 18px 0;
    }

    .philosophy-section .container {
        flex-direction: column;
        gap: 18px;
        padding: 0 20px;
        max-width: 100%;
        border-radius: 0;
        overflow: visible;
        box-shadow: none;
    }

    /* Mobile: Image always on top, text always below */
    .philosophy-section.text-left .section-content,
    .philosophy-section.text-right .section-content {
        order: 2;
    }

    .philosophy-section.text-left .section-image,
    .philosophy-section.text-right .section-image {
        order: 1;
    }

    .section-content {
        padding: 26px 18px;
        text-align: left;
        height: auto;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        background: #FFFFFF;
        position: relative;
        max-width: 960px;
        width: 100%;
        aspect-ratio: auto;
        /* allow content to size naturally on mobile */
    }

    .section-content::before {
        display: none;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 25px;
        text-align: left;
        line-height: 1.2;
        font-weight: 700;
    }

    .section-text {
        font-size: 17px;
        margin-bottom: 35px;
        text-align: left;
        line-height: 1.6;
        color: #333333;
    }

    .section-image {
        width: 100%;
        max-width: 960px;
        aspect-ratio: 960 / 500;
        /* keep rectangle on mobile */
        height: auto;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 0;
        overflow: hidden;
        justify-self: stretch;
    }

    .section-button {
        padding: 16px 30px;
        font-size: 15px;
        width: fit-content;
        text-align: center;
        display: inline-block;
        border-radius: 999px;
        font-weight: 600;
        text-transform: none;
        letter-spacing: 0;
    }
}

@media (max-width: 640px) {
    .philosophy-section {
        padding: 18px 0;
    }

    .philosophy-section .container {
        padding: 0 18px;
    }

    .section-content {
        padding: 35px 22px;
        border-radius: 0;
    }

    .section-content::before {
        display: none;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 22px;
    }

    .section-text {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .section-image {
        height: 280px;
        border-radius: 0;
    }

    .section-button {
        padding: 15px 25px;
        font-size: 14px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .philosophy-section {
        padding: 16px 0;
    }

    .philosophy-section .container {
        padding: 0 15px;
    }

    .section-content {
        padding: 30px 20px;
        border-radius: 0;
    }

    .section-content::before {
        display: none;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .section-text {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .section-image {
        height: 250px;
        border-radius: 0;
    }

    .section-button {
        padding: 14px 22px;
        font-size: 13px;
        border-radius: 5px;
    }
}

@media (max-width: 400px) {
    .philosophy-section {
        padding: 14px 0;
    }

    .philosophy-section .container {
        padding: 0 12px;
    }

    .section-content {
        padding: 25px 18px;
        border-radius: 0;
    }

    .section-content::before {
        display: none;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .section-text {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .section-image {
        height: 220px;
        border-radius: 0;
    }

    .section-button {
        padding: 13px 20px;
        font-size: 12px;
        border-radius: 4px;
    }
}

@media (max-width: 360px) {
    .philosophy-section {
        padding: 12px 0;
    }

    .philosophy-section .container {
        padding: 0 10px;
    }

    .section-content {
        padding: 22px 15px;
        border-radius: 0;
    }

    .section-content::before {
        display: none;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .section-text {
        font-size: 13px;
        margin-bottom: 22px;
    }

    .section-image {
        height: 200px;
        border-radius: 0;
    }

    .section-button {
        padding: 12px 18px;
        font-size: 11px;
        border-radius: 3px;
    }
}

@media (max-width: 320px) {
    .philosophy-section {
        padding: 12px 0;
    }

    .philosophy-section .container {
        padding: 0 8px;
    }

    .section-content {
        padding: 20px 12px;
        border-radius: 0;
    }

    .section-content::before {
        display: none;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .section-text {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .section-image {
        height: 180px;
        border-radius: 0;
    }

    .section-button {
        padding: 11px 16px;
        font-size: 10px;
        border-radius: 2px;
    }
}