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

:root {
    --accent: #00b050;
    --yellow: #fecd42;
    --dark: #111;
    --text: #333;
    --text-light: #666;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Noto Sans Thai', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s;
}

.header.scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
}

.header.in-hero {
    background: transparent;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo-img {
    height: 70px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
}

.header.scrolled .nav-links a {
    color: var(--dark);
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

.header.scrolled .mobile-menu-btn span {
    background: var(--dark);
}

/* Hero */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.hero-caption-content {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-body {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    line-height: 1.8;
    font-weight: 300;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.hero-btn:hover {
    background: #fff;
    color: var(--dark);
}

.hero-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-pagination .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.hero-pagination .dot.active {
    background: #fff;
}

/* Sections */
.section {
    padding: 0 0 80px;
}

.section-dark {
    background: var(--dark);
}

.section-spacer {
    height: 98px;
}

/* Typography */
.text-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.text-body {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.text-accent {
    color: var(--accent);
}

.text-white {
    color: #fff;
}

.text-yellow {
    color: var(--yellow);
}

.align-left {
    text-align: left;
}

.align-center {
    text-align: center;
}

/* Grid 3 columns */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

/* Site Button */
.site-btn {
    display: inline-block;
    padding: 14px 48px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
}

.site-btn.dark {
    background: var(--dark);
    color: var(--yellow);
}

.site-btn.yellow {
    background: var(--yellow);
    color: var(--dark);
}

.site-btn:hover {
    opacity: 0.85;
}

/* Gallery Grid */
.gallery-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    text-align: center;
}

.gallery-thumb {
    width: 100%;
    padding-bottom: 100%;
    background-size: cover;
    background-position: center;
    margin-bottom: 16px;
}

.gallery-caption h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}

.gallery-caption p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Carousel */
.carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.carousel-viewport {
    overflow: hidden;
    margin: 0 60px;
}

.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex-shrink: 0;
    width: calc(25% - 12px);
    aspect-ratio: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255,255,255,0.3);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Video */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 40px 40px 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 32px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 12px;
}

.footer-col p {
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.footer-address {
    font-size: 0.75rem;
    margin-top: 8px;
}

.footer-col h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: var(--dark);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: opacity 0.2s;
}

.social-icon:hover {
    opacity: 0.7;
}

.social-icon.facebook { color: #1877f3; }
.social-icon.instagram { color: #e4405f; }
.social-icon.line { color: #06c755; }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.footer-bottom {
    max-width: 1100px;
    margin: 24px auto 0;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--dark);
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .text-title {
        font-size: 1.6rem;
    }

    .grid-3,
    .gallery-grid-3 {
        grid-template-columns: 1fr;
    }

    .carousel-item {
        width: calc(50% - 8px);
    }

    .carousel-viewport {
        margin: 0 50px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

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

    .container {
        padding: 0 20px;
    }

    .nav {
        padding: 0 20px;
    }
}
