/* =========================================
   RESPONSIVE CSS - PT Arthalaut Bumijasa
   Dedicated responsive rules for all breakpoints
   ========================================= */

/* --- Large Desktop (1400px+) --- */
@media (min-width: 1400px) {
    .container-1320 {
        max-width: 1320px;
    }
}

/* --- Desktop Large (1200px - 1399px) --- */
@media (max-width: 1399px) {
    .hero-title {
        font-size: 62px !important;
    }
    .hero-title .highlight {
        font-size: 72px !important;
    }
    .hero-desc {
        font-size: 20px;
    }
    .hero-stat-card {
        width: 360px;
        padding: 32px;
    }
}

/* --- Tablet / Laptop (992px - 1199px) --- */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 52px !important;
    }
    .hero-title .highlight {
        font-size: 60px !important;
    }
    .hero-desc {
        font-size: 18px;
        max-width: 480px;
    }
    .hero-stat-card {
        width: 320px;
        padding: 28px;
    }
    .hero-stat-item {
        height: 95px;
    }
    .hero-stat-number {
        font-size: 42px;
    }
    .hero-stat-title {
        font-size: 20px;
    }
}

/* --- Tablet (768px - 991px) --- */
@media (max-width: 991px) {
    /* Hero stacks vertically */
    .hero-area {
        height: auto !important;
        min-height: auto !important;
    }
    .hero-row {
        min-height: auto !important;
    }
    .hero-content-wrapper {
        position: relative !important;
        height: auto !important;
        padding-top: 100px;
        padding-bottom: 40px;
    }
    .hero-modern-content {
        padding-top: 20px !important;
        max-width: 100% !important;
    }
    .hero-right {
        display: none !important;
    }
    .hero-title {
        font-size: 44px !important;
    }
    .hero-title .highlight {
        font-size: 50px !important;
    }
    .hero-desc {
        font-size: 17px;
        max-width: 100%;
    }
    .hero-btn-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .hero-btn-primary,
    .hero-btn-secondary {
        height: 52px !important;
        padding: 0 24px !important;
        font-size: 14px !important;
    }

    /* Feature bar */
    .feature-bar-section {
        margin-top: 0 !important;
        padding: 24px 0;
    }
    .feature-bar {
        margin-top: 0 !important;
        padding: 20px;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px;
    }
    .feature-item {
        padding: 12px 8px;
    }
    .feature-icon {
        width: 48px !important;
        height: 48px !important;
    }
    .feature-icon i {
        font-size: 22px !important;
    }
    .feature-title {
        font-size: 15px !important;
    }
    .feature-desc {
        font-size: 13px !important;
    }

    /* About section */
    .about-section {
        padding: 60px 0;
    }
    .about-title {
        font-size: 38px !important;
    }

    /* Projects section */
    .project-section {
        padding: 60px 0;
    }
    .project-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Service cards */
    .services-section {
        padding: 60px 0;
    }
    .service-card {
        margin-bottom: 20px;
    }

    /* Equipment section */
    .equipment-section {
        padding: 60px 0;
    }
}

/* --- Mobile (576px - 767px) --- */
@media (max-width: 767px) {
    .hero-content-wrapper {
        padding-top: 80px;
        padding-bottom: 30px;
    }
    .hero-modern-content {
        padding-top: 10px !important;
    }
    .hero-mini-title {
        font-size: 14px !important;
    }
    .hero-title {
        font-size: 32px !important;
        line-height: 1 !important;
    }
    .hero-title .highlight {
        font-size: 36px !important;
    }
    .hero-desc {
        font-size: 15px;
        line-height: 1.6;
    }
    .hero-btn-group {
        flex-direction: column;
        gap: 12px;
    }
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        height: 48px !important;
        font-size: 13px !important;
    }

    /* Feature bar */
    .feature-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        padding: 16px;
    }
    .feature-item {
        padding: 10px 6px;
        min-height: auto !important;
    }
    .feature-icon {
        width: 40px !important;
        height: 40px !important;
    }
    .feature-icon i {
        font-size: 18px !important;
    }
    .feature-title {
        font-size: 13px !important;
    }
    .feature-desc {
        display: none !important;
    }

    /* About */
    .about-section {
        padding: 40px 0;
    }
    .about-title {
        font-size: 30px !important;
    }
    .about-col {
        margin-bottom: 24px;
    }

    /* Projects */
    .project-section {
        padding: 40px 0;
    }
    .project-grid {
        grid-template-columns: 1fr !important;
    }
    .project-card {
        margin-bottom: 16px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
    .footer-bottom-area {
        text-align: center;
    }

    /* Services */
    .services-section {
        padding: 40px 0;
    }

    /* Equipment */
    .equipment-section {
        padding: 40px 0;
    }

    /* Section headings */
    .section-heading h2 {
        font-size: 24px !important;
    }
    .section-heading p {
        font-size: 14px !important;
    }
}

/* --- Small Mobile (under 576px) --- */
@media (max-width: 575px) {
    .hero-title {
        font-size: 26px !important;
    }
    .hero-title .highlight {
        font-size: 30px !important;
    }
    .hero-btn-primary,
    .hero-btn-secondary {
        font-size: 12px !important;
        padding: 0 16px !important;
    }
    .feature-bar {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px;
        padding: 12px;
    }
    .feature-item {
        padding: 8px 4px;
    }
    .feature-icon {
        width: 34px !important;
        height: 34px !important;
    }
    .feature-icon i {
        font-size: 15px !important;
    }
    .feature-title {
        font-size: 12px !important;
    }
}

/* =========================================
   HOMEPAGE REBUILD - RESPONSIVE ENHANCEMENTS
   Matches the new components from the UI Spec
========================================= */

/* --- Large Desktop Navigation container --- */
@media (min-width: 1400px) {
    .hero-features-bar {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* --- Tablet (768px - 991px) --- */
@media (max-width: 991px) {
    .hero-features-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Mobile (576px - 767px) --- */
@media (max-width: 767px) {
    .hero-features-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-area .footer-bottom-area .footer-bottom-inner {
        height: auto;
        padding: 14px 0;
        justify-content: center;
        text-align: center;
    }
}

/* --- Small Mobile (under 576px) --- */
@media (max-width: 575px) {
    .hero-features-bar {
        grid-template-columns: 1fr;
    }
    .footer-newsletter form {
        flex-direction: column;
    }
    .footer-newsletter button {
        width: 100%;
    }
}

/* ==========================================================
   FOOTER ENHANCEMENT (UI Spec)
   ========================================================== */
.footer-area .footer-col h5 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.footer-area .footer-col ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 11px;
    color: #b7b7b7;
    font-size: 14px;
    line-height: 1.7;
}

.footer-area .footer-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: #ffc732;
    font-size: 14px;
    text-align: center;
}

/* Newsletter form */
.newsletter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.newsletter-form input {
    flex: 1 1 auto;
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}
.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}
.newsletter-form input:focus {
    border-color: #ffc732;
}
.newsletter-form button {
    flex: 0 0 44px;
    height: 42px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #b4121b, #e53935);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.3s ease, transform 0.3s ease;
}
.newsletter-form button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Footer call block */
.footer-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-phone small {
    display: block;
    color: #b7b7b7;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-phone strong {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

/* Footer bottom bar (dark red) */
.footer-area .footer-bottom-area {
    background: linear-gradient(135deg, #851018 0%, #8f1018 100%);
}
.footer-area .footer-bottom-area .footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding: 0;
}
.footer-area .footer-bottom-area .copywrite-text {
    padding: 0;
}
.footer-area .footer-bottom-area .copywrite-text p {
    color: rgba(255, 255, 255, 0.9);
}

.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 950;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #851018 0%, #8f1018 100%);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.38), 0 2px 5px rgba(94, 0, 0, 0.45);
    color: #fff;
    font-size: 17px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.back-to-top.visible {
    color: #fff;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
    background: linear-gradient(145deg, #8f1018 0%, #a3131c 100%);
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.42), 0 2px 6px rgba(94, 0, 0, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .footer-area .footer-bottom-area .footer-bottom-inner {
        min-height: 48px;
        height: auto;
        padding: 7px 0;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
    }

    .back-to-top {
        right: 12px;
        bottom: 12px;
        width: 42px;
        height: 42px;
    }
}

/* Footer responsive */
@media (max-width: 1199px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}
@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px;
    }
}
@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
