/**
 * style2.css - Samsung-skeleton CSS
 * ใช้ class names เดียวกับ Samsung Thailand
 * แต่เขียน CSS ใหม่ให้ clean + lightweight
 */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'SamsungOne', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: #252525;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary, #1428a0);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--secondary, #0d1d7a);
}

/* ===== SKIP TO CONTENT (Accessibility - เหมือน Samsung) ===== */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    font-size: 14px;
}

.skip-to-content:focus {
    top: 0;
}

/* ===== HEADER / GNB (Global Navigation Bar - เหมือน Samsung) ===== */
.gnb-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    height: 56px;
    transition: box-shadow 0.3s;
}

.gnb-header--scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gnb-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gnb-header__logo a {
    display: flex;
    align-items: center;
    color: #000;
    font-weight: 700;
    font-size: 20px;
}

.gnb-header__logo img {
    height: 32px;
    width: auto;
}

.gnb-header__logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.gnb-header__nav {
    display: flex;
    align-items: center;
}

.gnb-header__menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.gnb-header__menu-item {
    position: relative;
}

.gnb-header__menu-link {
    display: block;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #252525;
    letter-spacing: -0.2px;
    transition: color 0.2s;
    white-space: nowrap;
}

.gnb-header__menu-link:hover {
    color: var(--primary);
}

.gnb-header__menu-link--active {
    color: var(--primary);
    font-weight: 700;
}

/* Hamburger (Mobile) */
.gnb-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.gnb-header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #252525;
    transition: transform 0.3s, opacity 0.3s;
}

/* ===== MAIN CONTENT ===== */
main#content {
    /* sticky header ไม่ต้อง margin-top */
}

/* ===== HERO / FULL-BLEED SECTION (เหมือน Samsung: feature-benefit-full-bleed) ===== */
.feature-benefit-full-bleed {
    position: relative;
    width: 100%;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #f6f6f6;
    contain: layout style paint;
}

.feature-benefit-full-bleed__inner {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 64px;
    display: flex;
    align-items: center;
    gap: 48px;
}

.feature-benefit-full-bleed__img {
    flex: 1;
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border-radius: 16px;
    background: #f0f0f0;
}

.feature-benefit-full-bleed__img img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    aspect-ratio: 7 / 3;
    object-fit: cover;
}

.feature-benefit-full-bleed__text {
    flex: 1;
    max-width: 560px;
}

.feature-benefit-full-bleed__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: #000;
}

.feature-benefit-full-bleed__desc {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 32px;
}

/* ===== FEATURE BANNER (เหมือน Samsung: feature-benefit-banner) ===== */
.feature-benefit-banner {
    padding: 80px 0;
    background: #fff;
}

.feature-benefit-banner:nth-child(even) {
    background: #f9f9f9;
}

.feature-benefit-banner__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
    display: flex;
    align-items: center;
    gap: 64px;
}

.feature-benefit-banner--reverse .feature-benefit-banner__inner {
    flex-direction: row-reverse;
}

.feature-benefit-banner__img-wrap {
    flex: 1;
    max-width: 50%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #f0f0f0;
}

.feature-benefit-banner__img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.feature-benefit-banner__text-wrap {
    flex: 1;
    max-width: 50%;
}

.feature-benefit-banner__title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    color: #000;
}

.feature-benefit-banner__desc {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 24px;
}

/* ===== TEXT-ONLY SECTION (เหมือน Samsung: feature-benefit-text-only) ===== */
.feature-benefit-text-only {
    padding: 80px 0;
    text-align: center;
    background: #fff;
}

.feature-benefit-text-only__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.feature-benefit-text-only__title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #000;
}

.feature-benefit-text-only__desc {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.feature-benefit-text-only__desc p {
    margin-bottom: 16px;
}

/* ===== CTA SECTION ===== */
.feature-benefit-cta {
    padding: 100px 0;
    text-align: center;
    background: var(--primary);
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}

.feature-benefit-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.feature-benefit-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

.feature-benefit-cta__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.feature-benefit-cta__desc {
    font-size: 18px;
    margin-bottom: 32px;
    color: rgba(255,255,255,0.9);
}

/* ===== GALLERY SECTION ===== */
.feature-benefit-gallery {
    padding: 80px 0;
    background: #f9f9f9;
}

.feature-benefit-gallery__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
}

.feature-benefit-gallery__title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

.feature-benefit-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-benefit-gallery__item img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s;
}

.feature-benefit-gallery__item img:hover {
    transform: scale(1.03);
}

/* ===== CTA BUTTON (เหมือน Samsung: .cta) ===== */
.cta {
    display: inline-block;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 28px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.2px;
}

.cta--contained {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
}

.cta--contained:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.cta--contained.cta--emphasis {
    background: #000;
    border-color: #000;
    color: #fff;
}

.cta--contained.cta--emphasis:hover {
    background: #333;
    border-color: #333;
}

.cta--outlined {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta--outlined:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== FOOTER (เหมือน Samsung) ===== */
.footer {
    background: #000;
    color: #fff;
    padding: 60px 0 30px;
}

.footer__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
}

.footer__top {
    display: flex;
    gap: 64px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer__brand {
    flex: 2;
}

.footer__brand-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer__brand-desc {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
}

.footer__links {
    flex: 1;
}

.footer__links-title,
.footer__social-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer__links-list {
    list-style: none;
}

.footer__links-list li {
    margin-bottom: 10px;
}

.footer__links-list a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.2s;
}

.footer__links-list a:hover {
    color: #fff;
}

.footer__social {
    flex: 1;
}

.footer__social-links {
    display: flex;
    gap: 16px;
}

.footer__social-links a {
    color: #aaa;
    transition: color 0.2s;
}

.footer__social-links a:hover {
    color: #fff;
}

.footer__bottom {
    padding-top: 24px;
    text-align: center;
}

.footer__copyright {
    font-size: 12px;
    color: #666;
}

/* ===== RESPONSIVE (เหมือน Samsung breakpoints) ===== */
@media (max-width: 1024px) {
    .feature-benefit-full-bleed__inner {
        padding: 60px 40px;
        flex-direction: column;
    }

    .feature-benefit-full-bleed__title {
        font-size: 36px;
    }

    .feature-benefit-banner__inner {
        padding: 0 40px;
        gap: 40px;
    }

    .feature-benefit-banner__title {
        font-size: 28px;
    }

    .footer__top {
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .gnb-header__nav {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 8999;
        padding: 24px;
    }

    .gnb-header__nav--open {
        display: block;
    }

    .gnb-header__menu {
        flex-direction: column;
    }

    .gnb-header__menu-link {
        padding: 16px 0;
        font-size: 18px;
        border-bottom: 1px solid #eee;
    }

    .gnb-header__hamburger {
        display: flex;
    }

    .feature-benefit-full-bleed {
        min-height: auto;
    }

    .feature-benefit-full-bleed__inner {
        padding: 40px 20px;
        flex-direction: column;
    }

    .feature-benefit-full-bleed__title {
        font-size: 28px;
    }

    .feature-benefit-full-bleed__desc {
        font-size: 16px;
    }

    .feature-benefit-banner__inner {
        flex-direction: column !important;
        padding: 0 20px;
        gap: 24px;
    }

    .feature-benefit-banner__img-wrap,
    .feature-benefit-banner__text-wrap {
        max-width: 100%;
    }

    .feature-benefit-banner__title {
        font-size: 24px;
    }

    .feature-benefit-text-only__title {
        font-size: 24px;
    }

    .feature-benefit-cta__title {
        font-size: 24px;
    }

    .feature-benefit-gallery__inner {
        padding: 0 20px;
    }

    .footer__inner {
        padding: 0 20px;
    }

    .gnb-header__inner {
        padding: 0 16px;
    }

    main#content {
        margin-top: 56px;
    }
}

@media (max-width: 480px) {
    .feature-benefit-full-bleed__title {
        font-size: 24px;
    }

    .feature-benefit-banner {
        padding: 48px 0;
    }

    .feature-benefit-text-only {
        padding: 48px 0;
    }

    .cta {
        padding: 10px 24px;
        font-size: 13px;
    }
}
