/* 
   Project: Premium AC Cleaning Landing Page (WordPress Developer Test)
   Aesthetics: Fresh Blue, White, Trustworthy, Modern UI
   Target: PageSpeed Mobile 85+
*/

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;700&display=swap');

:root {
    --primary-blue: #007bff;
    --light-blue: #e3f2fd;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --white: #ffffff;
    --green-success: #28a745;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Kanit', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    background: #f8f9fa;
    -webkit-font-smoothing: antialiased;
}

/* --- RESET & HIDE THEME ELEMENTS --- */
/* ซ่อน Header และ Footer เดิมของ WordPress เพื่อให้เป็น Landing Page ที่คลีนที่สุด */
header#site-header, footer#site-footer, .site-header, .site-footer:not(.custom-footer) {
    display: none !important;
}

.nav-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0;
    margin-top: 80px;
}

.ac-landing-page {
    overflow-x: hidden;
}

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

/* --- HERO SECTION --- */
#ac-hero {
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, var(--light-blue) 0%, #ffffff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#ac-hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

#ac-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.btn-main {
    background: var(--primary-blue);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    width: 100%;
    max-width: 320px;
    transition: background 0.3s, color 0.3s;
}

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

/* --- TRUST SIGNALS --- */
.trust-icons {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
    background: white;
    margin-top: -40px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.trust-item {
    text-align: center;
    flex: 1;
}

.trust-item div {
    font-weight: 700;
    margin-bottom: 5px;
}

.trust-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- PRICING TABLE --- */
.price-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}

.price-card {
    background: white;
    padding: 40px 30px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.price-card.promo {
    border: 3px solid var(--primary-blue);
    transform: scale(1.05);
    z-index: 2;
}

.promo-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffc107;
    color: #000;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
}

.price-header {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.price-value span { font-size: 1.5rem; }

.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.price-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.price-features li:last-child { border: none; }

@media (min-width: 992px) {
    .price-grid { grid-template-columns: repeat(3, 1fr); }
}

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

.service-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 col on mobile */
    gap: 20px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-blue);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--primary-blue);
}

/* --- FORM --- */
#booking-form {
    background: var(--primary-blue);
    color: white;
    border-radius: 40px;
    padding: 60px 40px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0,123,255,0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

input[type="text"], input[type="tel"] {
    width: 100%;
    padding: 18px;
    border-radius: 15px;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    color: var(--text-dark);
}

.btn-submit {
    display: block;
    width: 100%;
    background: white;
    color: var(--primary-blue);
    padding: 20px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background: #ffffff !important; /* คงพื้นหลังขาวไว้ */
    color: #0056b3 !important; /* ปรับตัวหนังสือให้เป็นสีน้ำเงินเข้มขึ้นเพื่อให้ชัดเจน */
}

/* --- STICKY CTA (Mobile) --- */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.btn-sticky {
    padding: 0 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    height: 50px; /* บังคับให้สูงเท่าไอคอน LINE */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    transition: all 0.3s ease;
}

.line-btn { 
    background: transparent; 
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.1));
    flex: 0 0 60px; 
    transition: transform 0.3s ease;
}

.line-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.call-btn { 
    background: #007bff; /* สีน้ำเงินมาตรฐานที่สดใส */
    color: white !important; 
    flex: 1; 
    margin-left: 15px;
    border-radius: 50px !important; 
    box-shadow: 0 10px 20px rgba(0,123,255,0.2);
    border: 2px solid white;
    transition: all 0.3s ease;
    /* Header Mobile Fixes */
    .hide-mobile { display: none; }
    .nav-header { padding: 10px 0; }
    .logo { font-size: 1.1rem; }
}

.call-btn:hover {
    background: #0056b3 !important; /* ปรับให้เข้มขึ้นเพียงเล็กน้อยพอให้ดูมีมิติ */
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,123,255,0.3);
    color: white !important; /* บังคับให้ตัวหนังสือยังเป็นสีขาวชัดเจน */
}

/* --- DESKTOP ADJUSTMENTS --- */
@media (min-width: 768px) {
    #ac-hero { padding: 140px 20px 100px; }
    .hero-cta-group { flex-direction: row; justify-content: center; }
    .service-grid { 
        display: grid !important; 
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important; 
    }
    .service-card { 
        text-align: center; 
        margin-bottom: 0 !important;
    } 
    /* True Floating Widget */
    .sticky-footer { 
        display: flex !important;
        width: auto !important;
        left: auto !important;
        right: 40px !important;
        bottom: 40px !important;
        padding: 0 !important;
        background: transparent !important; /* ลบพื้นหลังออก */
        box-shadow: none !important; /* ลบเงาที่กล่องออก */
        border: none !important;
    }
}