:root {
    --dark-blue: #00223B;
    /* Base font size scales with viewport */
    font-size: clamp(12px, 1vw, 16px);
}

/* HK Gothic fonts from local fonts folder */
@font-face {
    font-family: 'HK Gothic';
    src: url('fonts/hk-gothic/HK Gothic Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'HK Gothic';
    src: url('fonts/hk-gothic/HK Gothic SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

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

body {
    font-family: 'HK Gothic', sans-serif;
    font-weight: 600;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #FFFFFF;
    height: 900vh;
    font-size: clamp(14px, 1.2vw, 16px);
}

body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile-break {
    display: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: clamp(0.75rem, 0.78vw, 1.5rem) 0;
}

.container {
    max-width: none;
    margin: 0;
    padding: 0 clamp(20px, 3.65vw, 70px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: clamp(40px, 4.17vw, 80px);
    width: clamp(116px, 12.08vw, 232px);
    max-width: 100%;
    object-fit: contain;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    width: clamp(20px, 1.56vw, 30px);
    height: clamp(2px, 0.16vw, 3px);
    background: var(--dark-blue);
    transition: all 0.3s ease;
}

/* Frame Base */
.why-frame {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 100vh;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* Frame 1: Hero (White) */
.why-frame-1 {
    background: #FFFFFF;
    z-index: 100;
}

.why-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: clamp(15px, 1.56vw, 30px);
    position: absolute;
    width: clamp(300px, 41vw, 787px);
    max-width: calc(100% - clamp(40px, 7.29vw, 140px));
    left: clamp(20px, 3.65vw, 70px);
    top: calc(50% - clamp(92px, 9.58vw, 184px));
}

.why-main-title {
    width: 100%;
    max-width: clamp(300px, 41vw, 787px);
    font-family: 'HK Gothic', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: clamp(36px, 6.25vw, 120px);
    line-height: 110%;
    display: block;
    letter-spacing: clamp(-5px, -0.52vw, -10px);
    color: #000E19;
    margin: 0;
}

.why-title-line2 {
    white-space: nowrap;
}

.why-subtitle {
    width: 100%;
    max-width: clamp(280px, 28.7vw, 551px);
    font-family: 'HK Gothic', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: clamp(14px, 1.04vw, 20px);
    line-height: clamp(24px, 2.08vw, 40px);
    display: flex;
    align-items: center;
    color: #7D7D7D;
    letter-spacing: clamp(0.5px, 0.05vw, 1px);
}

.why-hero-image {
    position: absolute;
    width: clamp(300px, 67.71vw, 1300px);
    max-width: 100%;
    height: clamp(300px, 60.94vw, 1170px);
    right: 0px;
    bottom: 0px;
}

.why-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
}

/* Frame 2: Features (Dark) - Sticky Layout */
.why-frame-2 {
    background: #000E19;
    z-index: 200;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    min-height: auto;
}

.why-intro-text {
    position: absolute;
    width: clamp(300px, 41.04vw, 788px);
    max-width: calc(100% - clamp(40px, 7.29vw, 140px));
    left: clamp(20px, 3.65vw, 70px);
    top: clamp(80px, 7.81vw, 150px);
}

.why-intro-text p {
    font-family: 'HK Gothic', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(24px, 2.5vw, 48px);
    line-height: clamp(36px, 3.75vw, 72px);
    display: flex;
    align-items: center;
    letter-spacing: clamp(-1.2px, -0.13vw, -2.4px);
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.why-features-list {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.04vw, 20px);
    position: absolute;
    width: clamp(300px, 46.88vw, 900px);
    max-width: calc(100% - clamp(40px, 7.29vw, 140px));
    right: clamp(20px, 3.65vw, 70px);
    top: clamp(80px, 7.81vw, 150px);
    padding-bottom: clamp(150px, 15.63vw, 300px);
    will-change: transform;
}

.why-feature-item {
    width: 100%;
    max-width: clamp(300px, 46.88vw, 900px);
    height: auto;
    min-height: clamp(150px, 13.02vw, 250px);
    background: #0F1D27;
    border-radius: clamp(8px, 0.83vw, 16px);
    border: 1px solid rgba(14, 14, 14, 0.05);
    position: relative;
    padding: clamp(15px, 1.56vw, 30px);
    box-sizing: border-box;
}

.feature-number {
    position: absolute;
    width: clamp(40px, 4.12vw, 79px);
    height: clamp(36px, 3.75vw, 72px);
    left: clamp(20px, 2.34vw, 45px);
    top: clamp(15px, 1.56vw, 30px);
    font-family: 'HK Gothic', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: clamp(30px, 3.13vw, 60px);
    line-height: clamp(43px, 4.48vw, 86px);
    display: flex;
    align-items: center;
    letter-spacing: clamp(-1.2px, -0.13vw, -2.4px);
    color: #FFFFFF;
}

.feature-content {
    position: absolute;
    left: clamp(100px, 10.42vw, 200px);
    top: 0;
    right: clamp(20px, 2.08vw, 40px);
}

.feature-content h3 {
    position: absolute;
    width: 100%;
    max-width: clamp(200px, 52.08vw, 1000px);
    height: auto;
    min-height: clamp(40px, 4.17vw, 80px);
    left: 0;
    top: clamp(12px, 1.3vw, 25px);
    font-family: 'HK Gothic', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: clamp(18px, 1.67vw, 32px);
    line-height: clamp(24px, 2.5vw, 48px);
    display: flex;
    align-items: center;
    letter-spacing: clamp(-0.64px, -0.07vw, -1.28px);
    color: #FFFFFF;
    margin: 0;
}

.feature-content p {
    position: absolute;
    width: 100%;
    max-width: clamp(200px, 28.65vw, 550px);
    height: auto;
    min-height: clamp(50px, 5.21vw, 100px);
    left: 0.2px;
    top: clamp(55px, 5.68vw, 109px);
    font-family: 'HK Gothic', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(12px, 0.73vw, 14px);
    line-height: clamp(20px, 1.67vw, 32px);
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Frame 3: Philosophy (Gray) */
.why-frame-3 {
    background: #546B7C;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
}

.why-philosophy-content {
    max-width: clamp(600px, 72.92vw, 1400px);
    width: 100%;
    z-index: 2;
}

.why-tag {
    display: inline-block;
    padding: clamp(5px, 0.52vw, 10px) clamp(10px, 1.04vw, 20px);
    border: 1px solid #FFFFFF;
    border-radius: clamp(10px, 1.04vw, 20px);
    font-size: clamp(10px, 0.73vw, 14px);
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: clamp(0.5px, 0.05vw, 1px);
    margin-bottom: clamp(20px, 2.08vw, 40px);
    text-transform: uppercase;
    background: transparent;
}

.why-philosophy-title {
    font-family: 'HK Gothic', sans-serif;
    font-size: clamp(32px, 3.75vw, 72px);
    font-weight: 600;
    line-height: clamp(48px, 5.42vw, 104px);
    letter-spacing: clamp(-1.5px, -0.16vw, -3px);
    color: #FFFFFF;
    margin-bottom: clamp(20px, 2.08vw, 40px);
}

.why-consultation-btn {
    padding: clamp(12px, 1.2vw, 23px) clamp(17px, 1.77vw, 34px);
    background: #FFFFFF;
    color: #000E19;
    border: 1px solid #E6E9EB;
    border-radius: clamp(6px, 0.63vw, 12px);
    font-size: clamp(14px, 0.94vw, 18px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: clamp(5px, 0.52vw, 10px);
}

.why-consultation-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.why-philosophy-graphic {
    width: clamp(300px, 41.67vw, 800px);
    max-width: 100%;
    height: clamp(300px, 41.67vw, 800px);
    position: absolute;
    right: 0px;
    bottom: 0;
    z-index: 1;
}

.why-philosophy-graphic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
}

/* Frame 4: Contact (Building BG) */
.why-frame-4 {
    background: url('assets/building3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 400;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(40px, 4.17vw, 80px) clamp(4%, 8%, 8%) clamp(30px, 3.13vw, 60px);
}

.why-contact-wrapper {
    text-align: center;
    max-width: clamp(600px, 62.5vw, 1200px);
    width: 100%;
}

.why-contact-title {
    font-family: 'HK Gothic', sans-serif;
    font-size: clamp(32px, 5vw, 96px);
    font-weight: 520;
    line-height: 1;
    letter-spacing: clamp(-6px, -0.63vw, -12px);
    color: #FFFFFF;
    margin: clamp(-5px, -0.52vw, -10px) 0 clamp(5px, 0.52vw, 10px);
    white-space: nowrap;
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

.why-contact-description {
    font-family: 'HK Gothic', sans-serif;
    font-size: clamp(14px, 0.94vw, 18px);
    font-weight: 500;
    line-height: clamp(20px, 1.56vw, 30px);
    color: #FFFFFF;
    margin: 0 auto clamp(24px, 2.5vw, 48px);
    max-width: clamp(550px, 57.29vw, 1100px);
    text-align: center;
    margin-right: clamp(25px, 2.6vw, 50px);
    word-spacing: clamp(0.1em, 0.1vw, 0.2em);
}

.why-contact-form {
    background: #FFFFFF;
    backdrop-filter: blur(2.5px);
    padding: clamp(14px, 1.46vw, 28px);
    border-radius: clamp(16px, 1.67vw, 32px);
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.67vw, 32px);
    border: 1px solid #E6E9EB;
    margin: 0 auto;
    width: 100%;
    max-width: clamp(400px, 41.67vw, 800px);
    min-height: clamp(200px, 20.16vw, 387px);
    height: auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 1.67vw, 32px);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.why-contact-form input,
.why-contact-form textarea {
    width: 100%;
    padding: clamp(6px, 0.63vw, 12px) 0;
    border: none;
    border-bottom: 1px solid #E6E9EB;
    border-radius: 0;
    font-family: 'HK Gothic', sans-serif;
    font-size: clamp(12px, 0.73vw, 14px);
    font-weight: 500;
    color: #000000;
    background: transparent;
    outline: none;
}

.why-contact-form input:focus,
.why-contact-form textarea:focus {
    border-bottom-color: #00223B;
}

.why-contact-form input::placeholder,
.why-contact-form textarea::placeholder {
    color: #C7C7C7;
}

.why-contact-form textarea {
    min-height: 40px;
    resize: vertical;
    grid-column: 1 / -1;
}

.why-contact-form button {
    padding: clamp(12px, 1.2vw, 23px) clamp(17px, 1.77vw, 34px);
    background: #00223B;
    color: #FFFFFF;
    border: none;
    border-radius: clamp(6px, 0.63vw, 12px);
    font-family: 'HK Gothic', sans-serif;
    font-size: clamp(14px, 0.94vw, 18px);
    font-weight: 700;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: clamp(10px, 1.04vw, 20px);
}

.why-contact-form button:hover {
    background: #003a5f;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {

    .why-hero-content,
    .why-intro-text,
    .why-features-list {
        position: relative;
        width: 100%;
        max-width: 100%;
        left: auto;
        right: auto;
        top: auto;
    }

    .why-frame-2 {
        padding: clamp(40px, 4.17vw, 80px) clamp(20px, 3.65vw, 70px);
    }

    .why-feature-item {
        margin-bottom: clamp(20px, 2.08vw, 40px);
    }

    .feature-content {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        padding-left: clamp(100px, 10.42vw, 200px);
        padding-top: clamp(15px, 1.56vw, 30px);
    }

    .why-philosophy-graphic {
        position: relative;
        margin: clamp(20px, 2.08vw, 40px) auto;
    }
}

@media (max-width: 768px) {
    /* Keep body height driven by the main CSS (900vh) for scrolling logic */
    /* REMOVED: body height/overflow resets */

    /* REMOVED: .why-frame reset - let them be fixed/absolute as per desktop CSS */

    /* FRAME 1: HERO */
    .why-frame-1 {
        /* Keep flex for vertical stacking of content inside the fixed frame */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* Balanced top positioning */
        padding-top: 120px !important;
        padding-bottom: 20px !important;
    }

    .why-hero-content {
        position: relative;
        /* Relative to the flex container */
        top: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        transform: none !important;
        margin-bottom: 20px;
    }

    .why-main-title {
        font-size: 52px;
        line-height: 1.1;
        white-space: normal;
        margin-bottom: 20px;
    }

    .why-title-line2 {
        white-space: nowrap !important;
        display: block;
        /* Ensure it takes its own line if needed, or inline-block */
    }

    .why-subtitle {
        font-size: 16px;
        line-height: 1.5;
        max-width: 100%;
    }

    .why-hero-image {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        margin-top: 40px;
        transform: none !important;
    }

    .why-hero-image img {
        position: relative;
        max-height: 50vh;
        object-position: bottom right;
    }

    /* FRAME 2: FEATURES (DARK) */
    .why-frame-2 {
        background: #000E19;
        /* Remove padding that might conflict with absolute positioning */
        padding: 0 !important;
    }

    .why-intro-text {
        position: absolute;
        top: 90px;
        left: 20px;
        width: calc(100% - 40px);
        max-width: 100%;
        margin-bottom: 0;
        height: auto;
        z-index: 1;
    }

    .why-intro-text p {
        font-size: 18px !important;
        line-height: 1.4 !important;
        letter-spacing: -0.5px !important;
    }

    .why-features-list {
        position: absolute;
        top: 300px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: 100%;
        padding: 20px 0 200px 0;
        /* Removed horizontal padding so full-width items touch edges */
        gap: 20px;
        z-index: 5;
        background: #000E19;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    }

    .why-feature-item {
        margin-bottom: 0;
        min-height: auto;
        padding: 30px 24px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }

    .feature-number {
        position: relative;
        top: auto;
        left: auto;
        font-size: 40px;
        line-height: 1;
        margin-bottom: 0;
        width: auto;
        height: auto;
        letter-spacing: -1px;
    }

    .feature-content {
        position: relative;
        left: auto;
        top: auto;
        right: auto;
        padding: 0;
    }

    .feature-content h3 {
        position: relative;
        top: auto;
        min-height: auto;
        font-size: 20px;
        margin-bottom: 12px;
        letter-spacing: normal;
    }

    .feature-content p {
        position: relative;
        top: auto;
        left: auto;
        min-height: auto;
        font-size: 13px;
        /* Reduced for longer apparent line length */
        line-height: 1.5;
        max-width: 100%;
        /* Ensure full width usage */
        width: 100%;
    }

    /* FRAME 3: PHILOSOPHY */
    .why-frame-3 {
        flex-direction: column;
        padding: 80px 20px !important;
        text-align: center;
        background: #546B7C;
        /* Match color from user update if needed, strictly styles.css has #546B7C */
    }

    .why-philosophy-content {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* Left align text on mobile looks better or center? Image has left aligned text */
        text-align: left;
    }

    .why-philosophy-title {
        font-size: 23px;
        line-height: 1.3;
        letter-spacing: -0.5px;
        text-align: justify;
    }

    .why-consultation-btn {
        width: auto;
        margin-top: 10px;
    }

    .why-philosophy-graphic {
        position: relative;
        width: 100%;
        height: auto;
        margin-top: -30px;
        /* Pull image higher */
        margin-right: -20px;
    }

    /* FRAME 4: CONTACT */
    .why-frame-4 {
        padding: 50px 20px;
        min-height: 100vh;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        background-size: cover !important;
        background-position: center !important;
        overflow-y: auto !important;
    }

    .why-contact-wrapper {
        text-align: center;
        width: 100%;
    }

    .why-contact-wrapper .why-tag {
        margin: 0 auto 20px;
        font-size: 11px;
        padding: 5px 15px;
    }

    .mobile-break {
        display: block;
    }

    .why-contact-title {
        white-space: normal;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 15px;
        letter-spacing: 1px;
        /* Increased letter spacing as requested */
    }

    .why-contact-description {
        margin: 0 auto 25px auto;
        font-size: 13px;
        line-height: 1.5;
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
        text-align: center;
        /* Ensure centered */
    }

    .why-contact-description br {
        display: none;
        /* Hide desktop line breaks */
    }

    .why-contact-form {
        padding: 15px 15px;
        border-radius: 12px;
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }

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

    .why-contact-form input,
    .why-contact-form textarea {
        padding: 8px 0;
        font-size: 12px;
    }

    .why-contact-form textarea {
        min-height: 50px !important;
    }

    .why-contact-form button {
        margin-top: 5px;
        padding: 12px;
    }
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

.toast {
    background: #FFFFFF;
    color: #333;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid #00223B;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #27ae60;
}

.toast.error {
    border-left-color: #e74c3c;
}

.toast-icon {
    font-size: 20px;
    font-weight: bold;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Toast Adjustments */
@media (max-width: 768px) {
    .toast-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
        pointer-events: none;
        /* Allow clicks pass through */
    }

    .toast {
        min-width: 0;
        width: 100%;
        padding: 12px 16px;
        pointer-events: auto;
        /* Enable clicks on toast */
    }
}