@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800&display=swap');

:root {
    /* ธีม: Clean White & Navy Premium */
    --bg-main: #ffffff;       
    --bg-alt: #f8f9fa;        
    --bg-card: #ffffff;
    --accent-navy: #0a192f;   /* กรมท่าเข้ม */
    --accent-gold: #fbbf24;   /* เหลืองทอง */
    --accent-green: #06C755;  /* เขียว Line */
    --text-main: #333333;     
    --text-muted: #6c757d;    
    --line-color: #06C755;
    --shadow-card: 0 5px 20px rgba(0,0,0,0.08);
}

body { font-family: 'Prompt', sans-serif; color: var(--text-main); line-height: 1.6; background-color: var(--bg-main); overflow-x: hidden; }
html { scroll-behavior: smooth; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--accent-navy); }

/* --- Navbar --- */
.navbar { background: rgba(10, 25, 47, 0.95); backdrop-filter: blur(10px); padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); transition: all 0.3s; }
.navbar-brand { color: white !important; font-weight: 800; font-size: 1.4rem; }
.nav-link { color: rgba(255, 255, 255, 0.8) !important; font-weight: 600; margin: 0 10px; font-size: 0.95rem; }
.nav-link:hover, .nav-link.active { color: var(--accent-gold) !important; }
.btn-nav-promo { background-color: var(--accent-gold) !important; color: var(--accent-navy) !important; font-weight: 700; border-radius: 50px; padding: 6px 20px; font-size: 0.9rem; box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4); border: 2px solid var(--accent-gold); transition: all 0.3s; }
.btn-nav-promo:hover { background-color: transparent !important; color: var(--accent-gold) !important; transform: translateY(-2px); }
.navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important; }

/* --- Hero Section --- */
.hero-section { position: relative; padding-top: 160px; padding-bottom: 100px; overflow: hidden; background-color: var(--accent-navy); z-index: 1; }
.hero-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(10, 25, 47, 0.92) 0%, rgba(10, 25, 47, 0.75) 100%); z-index: -1; }
.hero-content { position: relative; z-index: 2; }
.company-badge { border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); border-radius: 50px; padding: 5px 15px; display: inline-flex; align-items: center; color: white; font-weight: 600; font-size: 0.85rem; margin-bottom: 20px; }
.company-badge i { color: var(--accent-gold); margin-right: 8px; }
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 15px; color: white; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.text-highlight { color: var(--accent-gold); }
.hero-desc { font-size: 1.1rem; color: rgba(255, 255, 255, 0.95); margin-bottom: 30px; font-weight: 300; max-width: 600px; }
.btn-hero-call { background-color: var(--accent-gold); color: var(--accent-navy) !important; border-radius: 50px; padding: 10px 30px; font-weight: 700; font-size: 1rem; border: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s; box-shadow: 0 5px 20px rgba(251, 197, 49, 0.3); }
.btn-hero-call:hover { transform: translateY(-3px); background-color: #ffeaa7; }
.btn-hero-line { background-color: var(--accent-green); color: white !important; border-radius: 50px; padding: 10px 30px; font-weight: 700; font-size: 1rem; border: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s; box-shadow: 0 5px 20px rgba(6, 199, 85, 0.3); }
.btn-hero-line:hover { transform: translateY(-3px); background-color: #00da00; }
.guarantee-box { margin-top: 35px; display: flex; gap: 25px; color: rgba(255,255,255,0.9); }
.guarantee-item { display: flex; align-items: center; gap: 10px; }
.guarantee-item i { font-size: 1.8rem; color: var(--accent-gold); }
.guarantee-item div { line-height: 1.2; font-size: 0.85rem; }
.guarantee-item strong { color: white; display: block; font-size: 0.95rem; }

/* --- Promo Card --- */
.promo-card { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.2); border-top: 4px solid var(--accent-gold); border-radius: 15px; padding: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); position: relative; overflow: hidden; color: white; }
.promo-label { background-color: var(--accent-gold); color: var(--accent-navy); font-weight: 800; padding: 5px 12px; border-radius: 4px; display: inline-block; margin-bottom: 15px; font-size: 0.8rem; letter-spacing: 1px; }
.promo-title-real { font-size: 1.4rem; font-weight: 700; margin-bottom: 5px; color: white; }
.promo-sub { color: rgba(255,255,255,0.8); margin-bottom: 15px; font-size: 0.95rem; }
.price-big { font-size: 4rem; font-weight: 800; color: var(--accent-gold); line-height: 0.9; }
.price-unit { font-size: 1.1rem; color: white; font-weight: 500; }
.price-old { color: rgba(255,255,255,0.6); font-size: 1rem; text-decoration: line-through; margin-right: 8px; }
.price-alert { color: #ff6b6b; font-weight: 700; font-size: 0.95rem; }
.btn-promo-action { background-color: var(--accent-green); color: white; width: 100%; padding: 12px; border-radius: 50px; font-weight: 800; font-size: 1.1rem; border: none; margin-top: 20px; display: flex; justify-content: center; align-items: center; gap: 8px; transition: all 0.3s; box-shadow: 0 5px 20px rgba(0, 195, 0, 0.2); }
.btn-promo-action:hover { background-color: #00da00; transform: translateY(-3px); }

/* --- Services --- */
.services-section { background-color: var(--bg-main); padding: 80px 0; }
.section-title-divider { width: 60px; height: 4px; background: var(--accent-gold); border-radius: 2px; margin: 15px auto 0; }
.feature-card { background-color: white; border: none; border-radius: 20px; padding: 40px 30px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); height: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; border-bottom: 5px solid transparent; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(10, 25, 47, 0.15); border-bottom-color: var(--accent-gold); }
.icon-circle { width: 80px; height: 80px; background: var(--accent-navy); color: var(--accent-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin-bottom: 25px; transition: all 0.4s ease; box-shadow: 0 8px 20px rgba(10, 25, 47, 0.3); }
.feature-card:hover .icon-circle { transform: rotateY(180deg); background: var(--accent-gold); color: var(--accent-navy); }
.feature-card h4 { font-weight: 800; margin-bottom: 15px; color: var(--accent-navy); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; flex-grow: 1; margin-bottom: 25px; line-height: 1.6; }
.btn-service-action { background-color: var(--accent-navy); color: white !important; border: none; border-radius: 50px; padding: 10px 35px; font-size: 0.95rem; font-weight: 700; text-decoration: none; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 5px 15px rgba(10, 25, 47, 0.2); width: 80%; justify-content: center; }
.btn-service-action:hover { background-color: var(--accent-gold); color: var(--accent-navy) !important; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4); }
.btn-service-action i { transition: transform 0.3s; }
.btn-service-action:hover i { transform: translateX(5px); }

/* --- Portfolio (3D + Ribbon) --- */
.portfolio-section { position: relative; overflow: hidden; padding-bottom: 80px; }
.portfolio-item { background: #ffffff; border-radius: 15px; overflow: hidden; position: relative; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); border: 2px solid transparent; height: 100%; }
.portfolio-item:hover { transform: translateY(-12px); box-shadow: 0 25px 50px rgba(10, 25, 47, 0.25); border-color: var(--accent-gold); }
.portfolio-img-wrapper { height: 220px; overflow: hidden; position: relative; }
.portfolio-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.portfolio-item:hover .portfolio-img-wrapper img { transform: scale(1.15) rotate(1deg); }

/* RIBBON BADGE (โบว์ติดมุมขวา) */
.portfolio-badge { position: absolute; top: 20px; right: -32px; transform: rotate(45deg); background-color: var(--accent-gold); color: var(--accent-navy); width: 130px; text-align: center; padding: 7px 0; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); border: 2px solid #ffffff; z-index: 2; }

.portfolio-content { padding: 25px; background: white; position: relative; z-index: 2; }
.portfolio-content h5 { color: var(--accent-navy); font-weight: 800; font-size: 1.2rem; margin-bottom: 5px; transition: color 0.3s; }
.portfolio-item:hover .portfolio-content h5 { color: var(--accent-gold); }
.portfolio-desc-short { font-size: 0.9rem; color: var(--text-muted); display: -webkit-box; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.btn-view-more { display: inline-flex; align-items: center; justify-content: center; padding: 10px 30px; font-size: 1rem; font-weight: 700; color: var(--accent-navy); background: transparent; border: 2px solid var(--accent-navy); border-radius: 50px; text-decoration: none; transition: all 0.4s ease; position: relative; overflow: hidden; z-index: 1; margin: 0; letter-spacing: 1px; }
.btn-view-more::before { content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%; background: var(--accent-navy); z-index: -1; transition: all 0.4s ease; border-radius: 50px; }
.btn-view-more:hover::before { width: 100%; }
.btn-view-more:hover { color: white; box-shadow: 0 0 25px rgba(10, 25, 47, 0.4); transform: scale(1.05); }
.btn-view-more i { margin-left: 8px; transition: transform 0.3s; }
.btn-view-more:hover i { transform: translateX(5px); }

/* --- About Section --- */
.about-section { background-color: var(--accent-navy); color: white; position: relative; padding: 60px 0; }
.about-section h2, .about-section h4, .about-section h6 { color: white !important; }
.about-section p, .about-section small { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.about-img { border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.3); border: 3px solid var(--accent-gold); }
.about-icon-small { width: 40px; height: 40px; background: var(--accent-gold); color: var(--accent-navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 12px; font-size: 1.1rem; }

/* --- Contact Section --- */
.contact-section { background-color: var(--bg-alt); position: relative; padding: 40px 0; }
.contact-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 20%), radial-gradient(circle at 90% 80%, rgba(251, 191, 36, 0.05) 0%, transparent 20%); pointer-events: none; }
.contact-card-box { background: white; border-radius: 12px; overflow: hidden; height: 100%; box-shadow: var(--shadow-card); transition: transform 0.3s; border: 1px solid #e9ecef; display: flex; flex-direction: column; }
.contact-card-box:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(10, 25, 47, 0.1); border-color: var(--accent-gold); }
.card-header-custom { background: var(--accent-navy); color: white; padding: 10px; font-weight: 600; text-align: center; border-bottom: 3px solid var(--accent-gold); font-size: 1rem; }
.card-body-custom { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.info-row { display: flex; align-items: flex-start; margin-bottom: 12px; }
.info-row:last-child { margin-bottom: 0; }
.info-icon { width: 32px; height: 32px; background: rgba(10, 25, 47, 0.1); color: var(--accent-navy); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; margin-right: 10px; flex-shrink: 0; }
.info-text small { font-size: 0.8rem; }
.info-text span, .info-text a { font-size: 0.9rem; }

/* Contact Buttons (NEW FIXED) */
.contact-btn-wrapper { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.btn-contact-card-call, .btn-contact-card-line { display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px 20px; border-radius: 50px; font-size: 1.1rem; font-weight: 700; text-decoration: none !important; transition: all 0.3s ease; border: none; position: relative; overflow: hidden; }
/* ปุ่มโทรสีทอง */
.btn-contact-card-call { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color: #0a192f !important; box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4); }
/* ปุ่มไลน์สีเขียว */
.btn-contact-card-line { background: linear-gradient(135deg, #06C755 0%, #00b900 100%); color: #ffffff !important; box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4); }
.btn-contact-card-call:hover, .btn-contact-card-line:hover { transform: translateY(-3px); filter: brightness(1.1); }
.btn-contact-card-call i, .btn-contact-card-line i { font-size: 1.4rem; margin-right: 10px; }

/* Floating Button */
.floating-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.float-item { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; text-decoration: none; box-shadow: 0 3px 8px rgba(0,0,0,0.3); transition: all 0.3s; }
.float-item:hover { transform: scale(1.1); color: white; }
.btn-line-float { background: #06C755; }
.btn-phone-float { background: var(--accent-gold); color: var(--accent-navy) !important; }
.btn-email-float { background: #ea4335; font-size: 18px; }
.btn-top-float { background: var(--accent-navy); font-size: 18px; border: 1px solid rgba(255,255,255,0.2); opacity: 0; visibility: hidden; transition: all 0.3s; }
.btn-top-float.show { opacity: 1; visibility: visible; }

/* Footer */
footer { background: var(--accent-navy); color: rgba(255,255,255,0.6); padding: 20px 0; font-size: 0.85rem; }

/* Page Header */
.page-header { background-color: var(--accent-navy); padding: 120px 0 60px; text-align: center; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.8) 100%); z-index: 1; }
.page-header-content { position: relative; z-index: 2; }
.page-title { font-size: 3rem; font-weight: 800; color: white; margin-bottom: 10px; }
.breadcrumb-custom { justify-content: center; }
.breadcrumb-custom .breadcrumb-item, .breadcrumb-custom .breadcrumb-item a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; }
.breadcrumb-custom .breadcrumb-item.active { color: var(--accent-gold); }

/* Modal Carousel */
.modal-carousel-wrapper { background: #000; position: relative; height: 350px; display: flex; align-items: center; justify-content: center; }
.modal-carousel-img { width: 100%; height: 350px; object-fit: contain; }
.modal-desc-box { padding: 30px; background: white; }
.modal-tag { color: var(--accent-gold); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 10px; display: block; }
.modal-desc-text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.portfolio-modal .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
.portfolio-modal .modal-header { background: var(--accent-navy); color: white; border-bottom: 3px solid var(--accent-gold); }

/* Responsive */
@media (max-width: 991px) {
    .hero-title { font-size: 2.8rem; }
    .hero-section { text-align: center; }
    .hero-desc { margin: 0 auto 30px; }
    .guarantee-box { justify-content: center; margin-bottom: 40px; }
    .promo-card { margin-top: 30px; }
}

/* --- Service Image Circle (ดีไซน์รูปวงกลมแทนไอคอน) --- */
.service-img-circle {
    width: 120px;           /* ขนาดวงกลม */
    height: 120px;
    border-radius: 50%;     /* ทำเป็นวงกลม */
    overflow: hidden;       /* ตัดส่วนเกินรูปออก */
    margin: 0 auto 25px;    /* จัดกึ่งกลาง */
    border: 4px solid var(--accent-gold); /* ขอบสีทอง */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* เงา */
    position: relative;
    transition: all 0.4s ease;
}

.service-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* ให้รูปเต็มวงกลมพอดี */
    transition: transform 0.5s ease;
}

/* เอฟเฟกต์ตอนชี้เมาส์ */
.feature-card:hover .service-img-circle {
    border-color: var(--accent-navy); /* เปลี่ยนสีขอบ */
    transform: translateY(-5px);
}

.feature-card:hover .service-img-circle img {
    transform: scale(1.15); /* รูปขยายเข้า */
}

/* --- Testimonials Section (รีวิวลูกค้า) --- */
.testimonial-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--accent-gold);
}
.testimonial-quote-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    right: 20px;
}
.testimonial-stars {
    color: #ffc107;
    margin-bottom: 15px;
}
.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.client-info {
    display: flex;
    align-items: center;
}
.client-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--accent-gold);
}
.client-details h6 {
    margin: 0;
    font-weight: 700;
    color: var(--accent-navy);
    font-size: 1rem;
}
.client-details small {
    color: #888;
    font-size: 0.85rem;
}
/* --- FAQ Styles --- */
.accordion-button:not(.collapsed) {
    background-color: var(--accent-navy);
    color: #fff;
    box-shadow: none;
}
.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1); /* เปลี่ยนลูกศรเป็นสีขาว */
}
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

/* ==============================================
   FIX RESPONSIVE (แก้ปัญหาหน้าจอหด/ปุ่มล้น)
=============================================== */

/* 1. จัดการโลโก้ด้านบนไม่ให้ดันขอบจอ */
@media (max-width: 767px) {
    .navbar-brand {
        font-size: 1.1rem !important; /* ลดขนาดฟอนต์บนมือถือ */
        max-width: 75%; /* บังคับไม่ให้กว้างเกินไปจนดันปุ่มเมนู (แฮมเบอร์เกอร์) */
        white-space: nowrap; 
        overflow: hidden;
        text-overflow: ellipsis; /* ถ้ายาวไปให้แสดงเป็น ... */
    }
}

/* 2. จัดการปุ่มโทร/ไลน์ด้านล่าง ให้พอดีจอเป๊ะๆ */
.mobile-bottom-bar {
    /* เว้นระยะซ้ายขวา 10px และเผื่อพื้นที่ด้านล่างสำหรับมือถือรุ่นใหม่ (iPhone ขีดล่าง) */
    padding: 10px 10px calc(env(safe-area-inset-bottom, 0px) + 10px) 10px !important;
    background: rgba(255, 255, 255, 0.98) !important; /* พื้นหลังขาวใสๆ ดูกลืนไปกับเว็บ */
}

.btn-mobile-action {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important; /* ลดฟอนต์ปุ่มนิดนึงไม่ให้ตกบรรทัด */
    padding: 12px 5px !important; /* เพิ่มความสูงให้กดง่าย */
    white-space: nowrap !important;
    border-radius: 50px !important;
}