/* ==========================================================
   STYLE-COMPONENTS.CSS - จัดการ About, Footer และ Responsive
   ========================================================== */

/* --- About Section --- */
.about-section {
    padding: 90px 20px;
    background-color: #ffffff;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-side {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 85px; 
    gap: 12px;
    align-items: center;
}

.about-slider-box {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 16px;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.about-slides {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    flex-wrap: nowrap !important; 
    transition: transform 0.6s ease-in-out;
}

.about-slide {
    min-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    position: relative !important;
    opacity: 1 !important;
}

.about-main-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.exp-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #38bdf8;
    line-height: 1;
}

.exp-text {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 2px;
}

.about-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 380px;
    justify-content: space-between;
}

.thumb-item {
    width: 100%;
    height: calc((380px - 24px) / 4);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
    background: #e2e8f0;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item:hover {
    opacity: 0.9;
}

.thumb-item.active {
    border-color: #2563eb;
    opacity: 1;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.about-content-side h2 {
    font-size: 2.2rem;
    color: #0f172a;
    margin: 10px 0 15px 0;
    line-height: 1.3;
}

.about-lead {
    font-size: 1.05rem;
    color: #334155;
    margin-bottom: 25px;
}

.about-highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.h-item {
    display: flex;
    gap: 12px;
}

.h-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.h-info h4 {
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 2px;
}

.h-info p {
    font-size: 0.8rem;
    color: #64748b;
}

/* --- Footer Section (ปรับปรุงสัดส่วน 4 คอลัมน์สมส่วน) --- */
.footer-section {
    background-color: #0b1120;
    color: #94a3b8;
    padding: 70px 0 40px 0;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr 1.2fr;
    gap: 30px;
}

/* Brand Column */
.footer-brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}
.footer-brand-name .highlight {
    color: #38bdf8;
}
.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 15px 0 20px 0;
    color: #94a3b8;
}
.footer-socials {
    display: flex;
    gap: 12px;
}
.footer-socials a {
    width: 36px;
    height: 36px;
    background: #1e293b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.footer-socials a:hover {
    background: #0ea5e9;
    transform: translateY(-3px);
}

/* Headings & Links */
.footer-heading {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #0ea5e9;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-links li a i {
    font-size: 0.75rem;
    color: #0ea5e9;
}
.footer-links li a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* Contact List in Footer */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.f-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1e293b;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.f-contact-item:hover {
    background: #334155;
}
.fc-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
}
.phon-c { background-color: #0284c7; }
.line-c { background-color: #10b981; }
.facebook-c { background-color: #2563eb; }

.fc-text {
    display: flex;
    flex-direction: column;
}
.fc-text strong {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}
.fc-text span {
    color: #94a3b8;
    font-size: 0.78rem;
}

/* --- ส่วนแถบสงวนสิทธิ์เว็บไซต์ (Copyright Bar) --- */
.site-info-bottom {
    background-color: #070a13;
    color: #64748b;
    padding: 18px 0;
    font-size: 0.85rem;
    border-top: 1px solid #0f172a;
}
.developer-credit {
    font-size: 0.8rem;
    color: #64748b;
}

/* --- Responsive (หน้าจอมือถือ/แท็บเล็ต) --- */
@media (max-width: 992px) {
    .intro-container, .about-container, .fleet-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image-side {
        grid-template-columns: 1fr;
    }
    .about-thumbnails {
        flex-direction: row;
        height: auto;
    }
    .thumb-item {
        height: 65px;
    }
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .nav-menu {
        display: none; 
    }
    .menu-toggle {
        display: flex;
    }

    /* รองรับการกดเปิดเมนูมือถือ (.active) */
    .nav-menu.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 20px 25px 20px;
        align-items: flex-start;
        gap: 15px;
        z-index: 999;
    }
    .nav-menu.active .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .nav-menu.active .nav-links a {
        display: block;
        width: 100%;
        padding: 8px 0;
        font-size: 1rem;
        border-bottom: 1px solid #f1f5f9;
    }
    .nav-menu.active .btn-booking {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }

    .modal-content-box > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    .about-slider-box {
        height: 280px;
    }
    .modal-slider-container {
        height: 260px; 
    }
}

@media (max-width: 576px) {
    .site-info-bottom .footer-container {
        flex-direction: column;
        text-align: center;
    }
}