/* ============================
   LOADER
   ============================ */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #0EB4C1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================
   BASE / RESET
   ============================ */
html {
    box-sizing: border-box;
    height: 100%;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    font-family: "Open Sans", sans-serif;
    color: #222;
}

a:focus,
button:focus,
input:focus {
    outline: 2px solid #DE2E54;
    outline-offset: 3px;
    border-radius: 3px;
}

.container {
    max-width: 1160px;
    padding-left: 30px;
    padding-right: 30px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================
   BUTTON (reusable)
   ============================ */
.btn {
    display: inline-flex;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #FFF;
    font-family: "Kanit", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 150%;
    letter-spacing: 2px;
    text-transform: uppercase;
    background-color: #DE2E54;
    border-radius: 8px;
    border: 2px solid #DE2E54;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    background: #FFF;
    color: #DE2E54;
}

.btn:active {
    opacity: 0.6;
    background: #DE2E54;
    color: #FFF;
}

/* ============================
   HEADER
   ============================ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header img {
    display: block;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
}

.nav-ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-ul li {
    padding-left: 32px;
}

.nav-li {
    text-decoration: none;
    color: #222;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-li:hover {
    color: #DE2E54;
}

.nav-li:active {
    opacity: 0.6;
}

/* Hamburger menu button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #222;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================
   HERO SECTION
   ============================ */
.hero-section {
    background: #0EB4C1;
    margin-top: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 29px;
}

.hero-text h1 {
    color: #FFF;
    font-family: "Kanit", sans-serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 120%;
    max-width: 580px;
    margin-top: 0;
    margin-bottom: 8px;
}

.hero-text p {
    color: #FFF;
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
    margin: 0 0 48px 0;
    max-width: 520px;
}

.hero-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ============================
   SERVICES SECTION
   ============================ */
.services h2 {
    text-align: center;
    margin-top: 120px;
    margin-bottom: 56px;
    color: #000;
    font-family: "Kanit", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 120%;
}

.service-card {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
}

.service-img {
    margin-right: 64px;
    flex-shrink: 0;
}

.service-info {
    max-width: 600px;
}

.service-info h3 {
    color: #222;
    font-family: "Kanit", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 120%;
    margin-top: 0;
    margin-bottom: 12px;
}

.service-info p {
    margin-top: 0;
    color: #444;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
}

.service-btn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 120px;
}

/* ============================
   FOOTER CTA
   ============================ */
.footer-cta {
    background: #0EB4C1;
}

.footer-cta h2 {
    margin-top: 0;
    color: #FFF;
    font-family: "Kanit", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 120%;
    text-align: center;
    padding-top: 60px;
}

.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-bottom: 76px;
    padding-top: 40px;
    font-family: "Kanit", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-button {
    text-decoration: none;
    display: flex;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 2px solid #FFF;
    color: #FFF;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer-button:hover {
    border-color: #DE2E54;
    background: #DE2E54;
}

.footer-button:active {
    opacity: 0.6;
}

/* ============================
   FOOTER BOTTOM
   ============================ */
.footer-bottom {
    background: #222;
}

.footer-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
}

.footer-logo a img {
    display: block;
}

.footer-nav-ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.footer-nav-li {
    text-decoration: none;
    color: #FFF;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 150%;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.footer-nav-li:hover {
    color: #DE2E54;
}

.footer-nav-li:active {
    opacity: 0.6;
}

/* ============================
   RESPONSIVE - TABLET (768px)
   ============================ */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-text {
        order: 1;
        margin-bottom: 30px;
    }

    .hero-text h1 {
        max-width: 100%;
    }

    .hero-text p {
        max-width: 100%;
    }

    .hero-image {
        order: 2;
    }

    .hero-image img {
        max-width: 350px;
    }

    .service-card {
        flex-direction: column;
        text-align: center;
        margin-bottom: 50px;
    }

    .service-img {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .service-info {
        max-width: 100%;
    }

    .services h2 {
        margin-top: 60px;
        margin-bottom: 40px;
    }

    .service-btn-wrapper {
        margin-bottom: 60px;
    }

    .footer-final {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-nav-ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

/* ============================
   RESPONSIVE - MOBILE (576px)
   ============================ */
@media (max-width: 768px) {
    /* Hamburger visible */
    .hamburger {
        display: flex;
    }

    .nav-button {
        display: none;
    }

    .navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 105;
    }

    .navigation.active {
        left: 0;
    }

    .nav-ul {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .nav-ul li {
        padding-left: 0;
    }

    .nav-li {
        font-size: 18px;
    }

    /* Hero */
    .hero-text h1 {
        font-size: 26px;
    }

    .hero-text p {
        font-size: 15px;
    }

    .hero-image img {
        max-width: 280px;
    }

    /* Services */
    .services h2 {
        font-size: 28px;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .service-img img {
        width: 150px;
        height: 150px;
    }

    .service-info h3 {
        font-size: 20px;
    }

    .service-info p {
        font-size: 14px;
    }

    .service-btn-wrapper {
        margin-bottom: 40px;
    }

    /* Footer */
    .footer-cta h2 {
        font-size: 26px;
        padding-top: 40px;
    }

    .footer-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding-top: 24px;
        padding-bottom: 50px;
    }

    .footer-button {
        width: 100%;
        max-width: 280px;
    }

    .footer-nav-ul {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ============================
   RESPONSIVE - SMALL MOBILE (400px)
   ============================ */
@media (max-width: 400px) {
    .hero-text h1 {
        font-size: 22px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .hero-image img {
        max-width: 220px;
    }

    .header-container {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .header img {
        width: 140px;
        height: auto;
    }
}
