/* =============== Base Styles =============== */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary-color: #00b900;
    --text-color: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --bg-color: #f5f7fb;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* =============== Container =============== */

.main-area {
    background-color: var(--bg-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============== Section Styling =============== */

.section {
    padding: 64px 0;
}

.section-header {
    margin-bottom: 48px;
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =============== Hero Section =============== */

.hero-service {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.95;
    line-height: 1.6;
}

/* =============== Buttons =============== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

.btn-line {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 185, 0, 0.25);
}

.btn-line:hover {
    background-color: #009500;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 185, 0, 0.35);
}

.btn-outline {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-light);
}

/* =============== Service Tabs =============== */

.service-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.service-tab-btn {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.service-tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* =============== Tab Content =============== */

.service-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.service-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============== Packages Grid =============== */

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-category {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.service-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-light);
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-title i {
    font-size: 1.5rem;
}

/* =============== Package Items =============== */

.package-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.package-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--primary-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.package-item:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(29, 78, 216, 0.1));
    transform: translateX(4px);
}

.package-info {
    flex: 1;
}

.btu-range {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btu-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

.btu-values {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.package-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-left: 16px;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.price-currency {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* =============== Features Section =============== */

.section-features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-color);
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin: 0 auto 20px;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.feature-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =============== CTA Section =============== */

.section-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* =============== Responsive Design =============== */

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .hero-service {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .service-tabs {
        gap: 8px;
    }

    .service-tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-category {
        padding: 24px;
    }

    .package-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .package-price {
        margin-left: 0;
        margin-top: 12px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .section {
        padding: 32px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .service-tab-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .btu-label {
        font-size: 0.9rem;
    }

    .btu-values {
        font-size: 0.8rem;
    }

    .price-amount {
        font-size: 1.5rem;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }
}

/* =============== Animations =============== */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-category {
    animation: slideIn 0.5s ease;
}

.feature-card {
    animation: slideIn 0.5s ease;
}

/* =============== Utility Classes =============== */

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

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

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

.bg-primary {
    background-color: var(--primary-color);
}

.bg-light {
    background-color: var(--bg-color);
}

.rounded {
    border-radius: 8px;
}

.shadow {
    box-shadow: var(--shadow-md);
}

.gap-small {
    gap: 12px;
}

.gap-medium {
    gap: 24px;
}

.gap-large {
    gap: 32px;
}

/* =============== Base Layout =============== */

        .main-area {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            color: #1f2933;
            background-color: #f5f7fb;
        }

        /* Container พื้นฐาน */
        .container {
            width: 100%;
            max-width: 1120px;
            margin: 0 auto;
            padding: 0 16px;
        }

        /* Section spacing */
        .section {
            padding: 64px 0;
        }

        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 12px;
            color: #111827;
        }

        .section-subtitle {
            text-align: center;
            color: #6b7280;
            max-width: 640px;
            margin: 0 auto 32px;
            font-size: 0.95rem;
        }

        /* ปุ่ม */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 20px;
            border-radius: 999px;
            border: 1px solid transparent;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
            white-space: nowrap;
        }

        .btn-primary {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            color: #ffffff;
            box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
        }

        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
        }

        .btn-outline {
            background-color: #ffffff;
            color: #2563eb;
            border-color: #2563eb;
        }

        .btn-outline:hover {
            background-color: #2563eb;
            color: #ffffff;
        }

        .btn-full {
            width: 100%;
        }

        .btn-line {
            background-color: #00b900;
            color: #ffffff;
            border-color: #00b900;
        }

        .btn-line:hover {
            background-color: #029b00;
            border-color: #029b00;
        }

        /* =============== HERO (Home) =============== */

        .hero-home {
            padding: 72px 0 64px;
            background: radial-gradient(circle at top left, #dbeafe 0, #f5f7fb 45%, #ecfdf5 100%);
        }

        .hero-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
            align-items: center;
            gap: 40px;
        }

        .hero-text h1 {
            font-size: 2.2rem;
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 16px;
        }

        .hero-text p {
            color: #4b5563;
            font-size: 0.98rem;
            line-height: 1.6;
            max-width: 520px;
        }

        .hero-actions {
            margin-top: 24px;
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .hero-image {
            text-align: right;
        }

        .hero-image img {
            max-width: 100%;
            height: auto;
            border-radius: 24px;
            box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
            object-fit: cover;
        }

        /* =============== CLIENT TYPES =============== */

        .section-clients {
            background-color: #ffffff;
        }

        .client-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 20px;
            margin-top: 28px;
        }

        .client-card {
            background-color: #f9fafb;
            border-radius: 18px;
            padding: 18px 16px;
            border: 1px solid #e5e7eb;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .client-card h3 {
            font-size: 1rem;
            font-weight: 700;
            color: #111827;
        }

        .client-card p {
            font-size: 0.9rem;
            color: #6b7280;
        }

        /* =============== PACKAGES =============== */

        .section-packages {
            background-color: #f9fafb;
        }

        .package-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 24px;
            margin-top: 32px;
        }

        .package-card {
            background-color: #ffffff;
            border-radius: 20px;
            padding: 24px 22px;
            border: 1px solid #e5e7eb;
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .package-highlight {
            border-color: #2563eb;
            box-shadow: 0 14px 35px rgba(37, 99, 235, 0.18);
            position: relative;
        }

        .package-highlight::before {
            content: "ยอดนิยม";
            position: absolute;
            top: 14px;
            right: 18px;
            background: linear-gradient(135deg, #f97316, #ea580c);
            color: #ffffff;
            font-size: 0.75rem;
            padding: 4px 10px;
            border-radius: 999px;
            font-weight: 600;
        }

        .package-card h3 {
            font-size: 1.2rem;
            font-weight: 700;
            color: #111827;
        }

        .package-tag {
            font-size: 0.9rem;
            color: #2563eb;
            font-weight: 500;
        }

        .package-list {
            padding-left: 18px;
            margin: 10px 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .package-list li {
            font-size: 0.9rem;
            color: #4b5563;
        }

        .package-price {
            margin-top: 8px;
            font-size: 0.95rem;
            color: #374151;
        }

        .package-price strong {
            font-size: 1rem;
            color: #111827;
        }

        .package-price .note {
            display: block;
            font-size: 0.8rem;
            color: #9ca3af;
            margin-top: 4px;
        }

        /* =============== PROCESS =============== */

        .section-process {
            background-color: #ffffff;
        }

        .process-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 20px;
            margin-top: 32px;
        }

        .process-step {
            background-color: #f9fafb;
            border-radius: 18px;
            padding: 18px 16px 20px;
            border: 1px solid #e5e7eb;
            position: relative;
            padding-top: 32px;
        }

        .step-number {
            position: absolute;
            top: 10px;
            left: 14px;
            width: 24px;
            height: 24px;
            border-radius: 999px;
            background-color: #2563eb;
            color: #ffffff;
            font-size: 0.8rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
        }

        .process-step h3 {
            font-size: 0.98rem;
            font-weight: 700;
            color: #111827;
            margin-bottom: 6px;
        }

        .process-step p {
            font-size: 0.9rem;
            color: #6b7280;
        }

        /* =============== BENEFITS =============== */

        .section-benefits {
            background-color: #f3f4f6;
        }

        .benefit-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 20px;
            margin-top: 28px;
        }

        .benefit-item {
            background-color: #ffffff;
            border-radius: 18px;
            padding: 18px 16px;
            border: 1px solid #e5e7eb;
        }

        .benefit-item h3 {
            font-size: 1rem;
            font-weight: 700;
            color: #111827;
            margin-bottom: 6px;
        }

        .benefit-item p {
            font-size: 0.9rem;
            color: #6b7280;
        }

        /* =============== CONTACT + FORM =============== */

        .section-contact {
            background-color: #ffffff;
        }

        .contact-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
            gap: 28px;
            margin-top: 24px;
        }

        .quote-form {
            background-color: #f9fafb;
            border-radius: 20px;
            padding: 20px 18px;
            border: 1px solid #e5e7eb;
        }

        .form-row {
            margin-bottom: 14px;
        }

        .form-row label {
            display: block;
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 5px;
            color: #374151;
        }

        .form-row input,
        .form-row select,
        .form-row textarea {
            width: 100%;
            border-radius: 10px;
            border: 1px solid #d1d5db;
            padding: 8px 10px;
            font-size: 0.9rem;
            outline: none;
            background-color: #ffffff;
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }

        .form-row input:focus,
        .form-row select:focus,
        .form-row textarea:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
        }

        .form-row textarea {
            resize: vertical;
        }

        .contact-extra {
            background-color: #f9fafb;
            border-radius: 20px;
            padding: 20px 18px;
            border: 1px solid #e5e7eb;
        }

        .contact-extra h3 {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 8px;
            color: #111827;
        }

        .contact-extra p {
            font-size: 0.96rem;
            color: #4b5563;
            margin-bottom: 12px;
        }

        /* =============== Responsive =============== */

        @media (max-width: 992px) {
            .hero-grid {
                grid-template-columns: minmax(0, 1fr);
                text-align: left;
            }

            .hero-image {
                text-align: center;
                order: -1;
            }

            .hero-text h1 {
                font-size: 1.8rem;
            }

            .client-grid,
            .package-grid,
            .process-grid,
            .benefit-grid,
            .contact-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 640px) {
            .section {
                padding: 42px 0;
            }

            .hero-home {
                padding: 48px 0 40px;
            }

            .hero-text h1 {
                font-size: 1.6rem;
            }

            .hero-actions {
                flex-direction: column;
                align-items: stretch;
            }

            .client-grid,
            .package-grid,
            .process-grid,
            .benefit-grid,
            .contact-grid {
                grid-template-columns: minmax(0, 1fr);
            }

            .package-card,
            .process-step,
            .benefit-item,
            .quote-form,
            .contact-extra {
                border-radius: 16px;
            }
        }