/* HOI Crane & Lift - Components Part 2 */

/* ===== ABOUT SECTION ===== */
.about-section { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.about-image img { width: 100%; height: 500px; object-fit: cover; border-radius: var(--radius-lg); }
.about-rating {
    position: absolute; bottom: 20px; right: 20px;
    background: var(--primary); border-radius: var(--radius-lg);
    padding: 20px 28px; text-align: center;
}
.about-rating-number { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: var(--dark); }
.about-rating-label { font-size: 0.8rem; font-weight: 600; color: var(--dark-2); }
.about-rating-avatars { display: flex; margin-bottom: 8px; justify-content: center; }
.about-rating-avatars span {
    width: 32px; height: 32px; border-radius: 50%; background: var(--dark-3);
    border: 2px solid var(--primary); margin-left: -8px; display: inline-block;
}
.about-text h2 { margin-bottom: 24px; }
.about-text .lead { font-size: 1.05rem; font-weight: 600; color: var(--dark); margin-bottom: 16px; line-height: 1.6; }
.about-text p { margin-bottom: 16px; }

/* ===== BANNER / CTA SECTION ===== */
.banner-section {
    position: relative; padding: 120px 0; overflow: hidden;
    background: var(--dark);
}
.banner-bg { position: absolute; inset: 0; }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.banner-bg::after { content:''; position:absolute; inset:0; background:rgba(0,0,0,0.4); }
.banner-content { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.banner-text { max-width: 550px; }
.banner-text h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.banner-text p { color: rgba(255,255,255,0.8); }
.banner-card {
    background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
    border-radius: var(--radius-lg); padding: 20px; min-width: 280px;
    border: 1px solid rgba(255,255,255,0.2);
}
.banner-card img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; }
.banner-card p { color: var(--white); font-weight: 600; font-size: 1rem; }

/* ===== PROJECTS SECTION ===== */
.projects-section { padding: 100px 0; }
.projects-header { display: flex; align-items: flex-start; gap: 40px; margin-bottom: 50px; }
.projects-header-text { max-width: 600px; }
.projects-header-text p { margin-top: 16px; color: var(--text); }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-card { border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card-image { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-lg); }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-card-image img { transform: scale(1.05); }
.project-card-info { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; }
.project-card-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--dark); }
.project-card-location { font-size: 0.8rem; color: var(--text-light); display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.project-card-location svg { color: var(--primary); }
.project-arrow {
    width: 40px; height: 40px; border-radius: 50%; background: var(--primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: var(--transition);
}
.project-card:hover .project-arrow { transform: rotate(-45deg); }

/* ===== TESTIMONIALS ===== */
.testimonials-section { padding: 100px 0; background: var(--light); text-align: center; position: relative; overflow: hidden; }
.testimonials-section::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 600px; height: 400px; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 400" opacity="0.05"><rect x="50" y="50" width="200" height="300" fill="none" stroke="%23333" stroke-width="2"/><rect x="350" y="50" width="200" height="300" fill="none" stroke="%23333" stroke-width="2"/></svg>') no-repeat center;
}
.testimonial-logo { margin: 0 auto 32px; }
.testimonial-logo svg { width: 60px; height: 60px; }
.testimonial-quote {
    font-family: var(--font-heading); font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 600; color: var(--dark); max-width: 750px; margin: 0 auto 40px;
    line-height: 1.4; font-style: italic;
}
.testimonial-author { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.testimonial-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; margin: 0 auto; background: var(--border); }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 700; color: var(--dark); font-size: 1rem; }
.testimonial-role { font-size: 0.85rem; color: var(--text-light); }

/* ===== BLOG / ARTICLES SECTION ===== */
.blog-section { padding: 100px 0; background: var(--light); }
.blog-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 50px; }
.blog-header h2 { max-width: 400px; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
    background: var(--white); border-radius: var(--radius-lg);
    overflow: hidden; transition: var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card-image { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article-card:hover .article-card-image img { transform: scale(1.05); }
.article-category {
    position: absolute; top: 16px; left: 16px; padding: 6px 14px;
    background: var(--primary); color: var(--dark); border-radius: 50px;
    font-size: 0.75rem; font-weight: 600;
}
.article-card-body { padding: 24px; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--text-light); margin-bottom: 12px; }
.article-meta .author { color: var(--primary-dark); font-weight: 600; }
.article-card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.35; }
.article-card-body h3 a:hover { color: var(--primary-dark); }
.article-card-body .excerpt { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* ===== PAGE HEADER (Vian style) ===== */
.page-header {
    position: relative; padding: 180px 0 70px; text-align: center; overflow: hidden; background: var(--dark);
}
.page-header-bg {
    position: absolute; inset: 0; z-index: 0;
}
.page-header-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-header-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.65) 100%);
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: var(--white); font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 16px; }
.page-header-breadcrumb {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 0.85rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px;
}
.page-header-breadcrumb a { color: rgba(255,255,255,0.7); }
.page-header-breadcrumb a:hover { color: var(--primary); }
.page-header-breadcrumb .dot { font-size: 0.5rem; }

/* ===== ARTICLE DETAIL META ===== */
.article-detail-meta {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    flex-wrap: wrap; margin-top: 20px;
}
.meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.meta-item svg { opacity: 0.7; }
.meta-category {
    padding: 4px 14px; background: var(--primary); color: var(--dark);
    border-radius: 50px; font-size: 0.75rem; font-weight: 600;
}

/* ===== ARTICLE DETAIL LAYOUT ===== */
.article-detail-layout {
    display: grid; grid-template-columns: 1fr 320px; gap: 50px; align-items: start;
}
.article-excerpt-box {
    background: var(--light); border-left: 4px solid var(--primary);
    padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 32px; font-size: 0.95rem; line-height: 1.7;
}
.article-sidebar { position: sticky; top: 100px; }
.sidebar-widget {
    background: var(--light); border-radius: var(--radius-lg);
    padding: 24px; margin-bottom: 20px;
}
.sidebar-widget h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--dark); }
.share-buttons { display: flex; gap: 10px; }
.share-btn {
    width: 42px; height: 42px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: var(--white); transition: var(--transition);
}
.share-facebook { background: #1877f2; }
.share-twitter { background: #1a1a1a; }
.share-whatsapp { background: #25d366; }
.share-linkedin { background: #0077b5; }
.share-btn:hover { transform: translateY(-3px); opacity: 0.9; }
.article-tags-sidebar { display: flex; gap: 8px; flex-wrap: wrap; }
.sidebar-categories { list-style: none; }
.sidebar-categories li { border-bottom: 1px solid var(--border); }
.sidebar-categories li:last-child { border: none; }
.sidebar-categories a {
    display: flex; justify-content: space-between; padding: 10px 0;
    font-size: 0.9rem; color: var(--text);
}
.sidebar-categories a:hover { color: var(--primary-dark); }
.sidebar-categories span { color: var(--text-light); font-size: 0.8rem; }

/* ===== ARTICLES LISTING PAGE ===== */
.articles-page { padding: 60px 0 80px; }
.articles-filter { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 20px; border-radius: 50px; font-size: 0.85rem;
    font-weight: 500; border: 1px solid var(--border); background: var(--white);
    color: var(--text); cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--dark); font-weight: 600; }
.article-detail-page { padding: 120px 0 80px; }
.article-detail-header { max-width: 800px; margin: 0 auto 40px; text-align: center; }
.article-detail-header h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 20px; }
.article-detail-image { max-width: 900px; margin: 0 auto 40px; border-radius: var(--radius-lg); overflow: hidden; }
.article-detail-image img { width: 100%; height: auto; }
.article-detail-content { max-width: 800px; margin: 0 auto; }
.article-detail-content h2 { font-size: 1.5rem; margin: 32px 0 16px; }
.article-detail-content h3 { font-size: 1.25rem; margin: 24px 0 12px; }
.article-detail-content p { margin-bottom: 16px; line-height: 1.8; }
.article-detail-content ul, .article-detail-content ol { margin: 16px 0; padding-left: 24px; }
.article-detail-content li { margin-bottom: 8px; line-height: 1.7; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0; padding-top: 24px; border-top: 1px solid var(--border); }
.article-tag { padding: 6px 14px; background: var(--light); border-radius: 50px; font-size: 0.8rem; color: var(--text); }
.related-articles { padding: 60px 0; background: var(--light); }
.related-articles h2 { text-align: center; margin-bottom: 40px; }

/* ===== FAQ SECTION ===== */
.faq-section { padding: 100px 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.faq-text h2 { margin-bottom: 16px; }
.faq-text p { color: var(--text); }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 0; cursor: pointer; width: 100%; background: none; border: none;
    font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600;
    color: var(--dark); text-align: left;
}
.faq-icon { width: 24px; height: 24px; flex-shrink: 0; position: relative; }
.faq-icon::before, .faq-icon::after {
    content: ''; position: absolute; background: var(--dark);
    transition: var(--transition); top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-item.active .faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding: 0 0 20px; color: var(--text); line-height: 1.7; font-size: 0.9rem; }

/* ===== FOOTER CTA MARQUEE ===== */
.footer-cta {
    padding: 40px 0; background: var(--dark); overflow: hidden;
}
.footer-cta-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.footer-cta-content h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2rem); }
.footer-cta-content p { color: rgba(255,255,255,0.6); margin-top: 8px; }

/* ===== FOOTER ===== */
.footer-main {
    padding: 80px 0 40px; background: var(--dark-2);
    background-image: linear-gradient(rgba(26,26,26,0.95), rgba(26,26,26,0.95));
    color: rgba(255,255,255,0.7);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; margin-bottom: 20px; color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2); display: flex;
    align-items: center; justify-content: center; color: rgba(255,255,255,0.6);
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: var(--dark); }
.footer-title { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-contact { list-style: none; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-contact li svg { flex-shrink: 0; color: var(--primary); margin-top: 2px; }
.footer-contact a { color: rgba(255,255,255,0.6); }
.footer-contact a:hover { color: var(--primary); }
.footer-bottom { padding: 20px 0; background: var(--dark); border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--primary); }

/* ===== BACK TO TOP & WHATSAPP ===== */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
    border-radius: 50%; background: var(--dark); color: var(--white); border: none;
    cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; z-index: 90;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary); color: var(--dark); transform: translateY(-3px); }
.whatsapp-float {
    position: fixed; bottom: 90px; right: 30px; width: 56px; height: 56px;
    border-radius: 50%; background: #25d366; display: flex;
    align-items: center; justify-content: center; z-index: 90;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4); transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ===== BREADCRUMBS ===== */
.breadcrumb-list { display: flex; align-items: center; gap: 8px; list-style: none; flex-wrap: wrap; }
.breadcrumb-item { font-size: 0.85rem; }
.breadcrumb-item a { color: var(--text-light); }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--dark); font-weight: 500; }
.breadcrumb-separator { color: var(--text-light); display: flex; }

/* ===== PAGINATION ===== */
.pagination { margin-top: 50px; }
.pagination-list { display: flex; align-items: center; justify-content: center; gap: 8px; list-style: none; }
.pagination-link {
    display: flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 16px; border-radius: 50px;
    border: 1px solid var(--border); font-size: 0.9rem; font-weight: 500;
    color: var(--text); transition: var(--transition);
}
.pagination-link:hover, .pagination-link.active { background: var(--primary); border-color: var(--primary); color: var(--dark); font-weight: 600; }

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

/* ===== 404 PAGE ===== */
.error-page { padding: 200px 0 100px; text-align: center; }
.error-code { font-size: 8rem; font-weight: 900; color: var(--primary); line-height: 1; }
.error-page h2 { margin: 16px 0; }
.error-page p { color: var(--text); margin-bottom: 32px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .faq-grid { grid-template-columns: 1fr; }
    .projects-header { flex-direction: column; }
    .article-detail-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}
@media (max-width: 768px) {
    .main-nav, .header-phone { display: none; }
    .mobile-toggle { display: flex; }
    .header-actions .btn-header { display: none; }
    .hero { min-height: 85vh; padding-bottom: 40px; }
    .hero-inner { flex-direction: column; align-items: flex-start; }
    .hero-title { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .stats-section { margin-top: -40px; }
    .services-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-image img { height: 350px; }
    .projects-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .blog-header { flex-direction: column; gap: 16px; align-items: flex-start; }
    .banner-content { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-cta-inner { flex-direction: column; gap: 16px; text-align: center; }
    .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
    .hero-subtitle { font-size: 0.9rem; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 2rem; }
    .stat-card { padding: 28px 20px; }
    .articles-filter { gap: 8px; }
    .filter-btn { padding: 6px 14px; font-size: 0.8rem; }
}
