/* ===== Clean 24 Pro - Home Page Styles ===== */

/* CSS Variables */
:root {
    --blue-dark: #0f2b4e;
    --blue-mid: #1a4f8b;
    --blue-primary: #0ea5e9;
    --blue-light: #7dd3fc;
    --blue-pale: #e0f2fe;
    --blue-bg: #f0f9ff;
    --accent-pink: #e11d48;
    --accent-pink-light: #fb7185;
    --white: #ffffff;
    --text-dark: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --line-green: #00b900;
    --shadow-soft: 0 4px 20px rgba(14, 165, 233, 0.12);
    --shadow-card: 0 8px 30px -8px rgba(15, 43, 78, 0.12);
    --shadow-hover: 0 20px 40px -12px rgba(15, 43, 78, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sarabun', sans-serif;
    background: var(--white);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Hero Section ===== */
.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-dark) 0%, #0c3d6e 50%, var(--blue-mid) 100%);
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.35;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 43, 78, 0.6) 0%,
        rgba(15, 43, 78, 0.4) 40%,
        rgba(14, 165, 233, 0.3) 100%
    );
    z-index: 1;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 20px 80px;
    color: var(--white);
}

/* Logo */
.home-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.home-logo-icon {
    font-size: 1.5rem;
}

.home-logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--white);
}

.home-logo-img {
    height: 200px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.home-logo-text.foot {
    font-size: 1.5rem;
    color: var(--white);
}

.logo-accent {
    color: var(--accent-pink);
    text-shadow: 0 0 20px rgba(225, 29, 72, 0.5);
}

/* Hero Title */
.home-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.5;
    color: var(--white);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.title-line-home {
    display: block;
}

.highlight-home {
    background: linear-gradient(135deg, var(--blue-light) 0%, #bae6fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 45px;
    font-weight: 300;
    line-height: 1.8;
}

/* Hero CTA Buttons */
.home-hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.home-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 60px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.home-cta-btn.primary {
    background: var(--white);
    color: var(--blue-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.home-cta-btn.primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: var(--blue-pale);
}

.home-cta-btn.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.home-cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* Pulse Animation */
.pulse-home {
    animation: pulseHome 2.5s infinite;
}

@keyframes pulseHome {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ===== Trust Section ===== */
.trust-section {
    padding: 80px 0;
    background: var(--white);
}

.home-section-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.title-brand {
    color: var(--blue-primary);
}

.home-section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 50px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 800px;
    margin: 40px auto 0;
}

.trust-item {
    text-align: center;
    padding: 35px 25px;
    border-radius: 20px;
    background: var(--blue-bg);
    border: 1px solid rgba(14, 165, 233, 0.1);
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--blue-primary);
}

.trust-icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
}

.trust-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 8px;
}

.trust-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ===== Services Section ===== */
.services-section {
    padding: 80px 0 100px;
    background: var(--blue-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-category-card {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: all 0.35s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.service-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

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

.service-category-card:hover::before {
    border-color: var(--blue-primary);
}

.svc-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.svc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-category-card:hover .svc-card-img img {
    transform: scale(1.08);
}

.svc-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 43, 78, 0.6) 100%);
}

.svc-emoji {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.svc-card-body {
    padding: 22px 20px 25px;
}

.svc-title-inline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.6;
    font-weight: 400;
}

.svc-title-inline strong {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--blue-dark);
    margin-right: 6px;
}

.svc-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue-primary);
    transition: all 0.3s ease;
}

.svc-card-link svg {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-category-card:hover .svc-card-link {
    color: var(--blue-mid);
}

.service-category-card:hover .svc-card-link svg {
    transform: translateX(6px);
}

/* ===== How It Works Section ===== */
.how-section {
    padding: 80px 0;
    background: var(--white);
}

.steps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
}

.step-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    width: 100%;
    max-width: 700px;
    padding: 15px 20px;
    background: var(--blue-bg);
    border-radius: 12px;
    gap: 20px;
}

.step-number {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-mid) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    flex-shrink: 0;
}

.step-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0px;
}

.step-connector {
    display: none;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 80px 0;
    background: var(--blue-bg);
}

.faq-list {
    max-width: 700px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(14, 165, 233, 0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--blue-primary);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Sarabun', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--blue-primary);
}

.faq-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--text-muted);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--blue-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 20px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    border-top: 1px solid var(--blue-pale);
    padding-top: 15px;
}

/* ===== CTA Section ===== */
.home-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--blue-dark) 0%, #0c3d6e 50%, var(--blue-mid) 100%);
    text-align: center;
}

.home-cta-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-brand {
    color: var(--blue-light);
}

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

.home-cta-big {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 60px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.home-cta-big.line {
    background: var(--line-green);
    color: var(--white);
}

.home-cta-big.line:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 185, 0, 0.5);
}

.home-cta-big.phone {
    background: var(--white);
    color: var(--blue-dark);
}

.home-cta-big.phone:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

/* ===== Footer ===== */
.home-footer {
    background: #081d36;
    padding: 60px 0 30px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.footer-website {
    font-size: 0.9rem;
    color: var(--blue-light);
}

.footer-contact-col h4,
.footer-address-col h4,
.footer-social-col h4 {
    font-size: 1rem;
    color: var(--blue-light);
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-contact-col p,
.footer-address-col p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.footer-contact-col a,
.footer-address-col a {
    color: var(--blue-light);
    transition: color 0.3s ease;
}

.footer-contact-col a:hover,
.footer-address-col a:hover {
    color: var(--white);
}

.footer-social-icons {
    display: flex;
    gap: 15px;
}

.social-icon-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    background: var(--blue-primary);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--blue-primary);
}

.footer-bottom-home {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ===== Floating Buttons ===== */
.floating-buttons-home {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn-home {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.float-btn-home.line {
    background: var(--line-green);
    color: white;
}

.float-btn-home.phone {
    background: var(--blue-primary);
    color: white;
}

.float-btn-home:hover {
    transform: translateY(-5px) scale(1.05);
}

.float-btn-home.line:hover {
    box-shadow: 0 8px 30px rgba(0, 185, 0, 0.5);
}

.float-btn-home.phone:hover {
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
}

/* ===== Animations ===== */
.fade-in-home {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-home.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-hero-content {
        padding: 80px 15px 60px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        gap: 15px;
    }

    .trust-item {
        padding: 20px 10px;
    }

    .trust-icon-wrap {
        width: 50px;
        height: 50px;
        margin: 0 auto 15px;
    }

    .trust-item h3 {
        font-size: 1rem;
    }

    .trust-item p {
        font-size: 0.85rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 50px auto 0;
    }

    .step-item {
        max-width: 100%;
        padding: 12px 15px;
        gap: 12px;
    }

    .step-content {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .step-content h3 {
        font-size: 0.95rem;
    }

    .step-content p {
        font-size: 0.85rem;
    }

    .step-number {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .home-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 30px;
    }

    .home-cta-big {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
        font-size: 1.05rem;
    }

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

    .footer-social-icons {
        justify-content: center;
    }

    .floating-buttons-home {
        bottom: 20px;
        right: 15px;
    }

    .float-btn-home {
        padding: 12px 16px;
    }

    .float-btn-home span {
        display: none;
    }

    .svc-card-img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .home-hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .home-section-title {
        font-size: 1.4rem;
        padding: 0 10px;
    }

    .services-grid {
        gap: 20px;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .trust-item {
        padding: 15px 8px;
    }
    
    .trust-icon-wrap {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    
    .trust-item h3 {
        font-size: 0.85rem;
    }
    
    .trust-item p {
        font-size: 0.75rem;
    }
}
