/* =========================================================
   ICT / FPT RESPONSIVE

   Purpose:
   - Centralize ICT / FPT responsive overrides.

   Dependencies:
   - hero.css
   - equipment.css
   - ict.css
   - spareparts.css
   - support.css
   - equipment-detail.css
   - sparepart-detail.css
   - navbar-ictfpt.css
========================================================= */

/* Service hero */
@media (max-width: 1000px) {
    .ict-fpt-hero { min-height: auto; }
    .ict-fpt-hero-inner { grid-template-columns: 1fr; gap: 50px; padding: 70px 0; }
    .ict-fpt-hero-content { max-width: 760px; }
    .ict-fpt-hero-showcase { min-height: 500px; }
    .ict-fpt-hero-machine { min-height: 360px; }
}

@media (max-width: 600px) {
    .ict-fpt-hero-inner { width: min(100% - 36px, 1400px); gap: 35px; padding: 55px 0; }
    .ict-fpt-hero-title { font-size: clamp(2.6rem, 12vw, 4rem); }
    .ict-fpt-hero-description { margin-top: 22px; font-size: .95rem; line-height: 1.65; }
    .ict-fpt-hero-actions { margin-top: 28px; flex-direction: column; align-items: stretch; }
    .ict-fpt-hero-button { width: 100%; }
    .ict-fpt-hero-showcase { min-height: 430px; align-items: stretch; }
    .ict-fpt-hero-machine { min-height: 270px; }
    .ict-fpt-machine-image { max-height: 280px; }
    .ict-fpt-hero-machine-info { padding: 0; }
    .ict-fpt-machine-model { font-size: 1.7rem; }
}

/* Equipment */
@media (max-width: 850px) {
    .ict-fpt-equipment { padding: 85px 0 95px; }
    .ict-fpt-equipment-inner { width: min(100% - 40px, 1200px); }
    .ict-fpt-equipment-heading { margin-bottom: 55px; }
    .ict-fpt-equipment-grid { grid-template-columns: 1fr; }
    .ict-fpt-equipment-card { min-height: 460px; }
}

@media (max-width: 600px) {
    .ict-fpt-equipment { padding: 70px 0 80px; }
    .ict-fpt-equipment-inner { width: min(100% - 30px, 1200px); }
    .ict-fpt-equipment-card { min-height: 420px; border-radius: 14px; }
    .ict-fpt-equipment-image { height: 230px; padding: 20px; }
    .ict-fpt-equipment-card-info { padding: 5px 22px 25px; }
    .ict-fpt-equipment-card-model { font-size: 1.3rem; }
}

/* Brands */
@media (max-width: 700px) {
    .ict-fpt-brands { padding: 55px 0; }
    .ict-fpt-brands-inner { width: min(100% - 36px, 1200px); flex-direction: column; align-items: stretch; gap: 30px; }
    .ict-fpt-brands-heading { max-width: none; text-align: center; }
    .ict-fpt-brand-list { justify-content: center; }
    .ict-fpt-brand-item { width: min(220px, 100%); }
}

/* Spare parts */
@media (max-width: 950px) {
    .ict-fpt-spareparts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .ict-fpt-spareparts { padding: 80px 0 90px; }
    .ict-fpt-spareparts-inner { width: min(100% - 40px, 1200px); }
    .ict-fpt-spareparts-controls { flex-direction: column; align-items: stretch; }
    .ict-fpt-spareparts-filter select { width: 100%; }
    .ict-fpt-spareparts-grid { grid-template-columns: 1fr; }
}

/* Support */
@media (max-width: 1000px) {
    .ict-fpt-support-inner { width: min(100% - 48px, 760px); }
    .ict-fpt-support-grid { grid-template-columns: 1fr; }
    .ict-fpt-support-card { min-height: auto; }
}

@media (max-width: 680px) {
    .ict-fpt-support { padding: 80px 0; }
    .ict-fpt-support-inner { width: calc(100% - 32px); }
    .ict-fpt-support-heading { margin-bottom: 32px; }
    .ict-fpt-support-heading h2 { font-size: 2rem; }
    .ict-fpt-support-card { padding: 24px; }
    .ict-fpt-support-cta { flex-direction: column; align-items: flex-start; gap: 26px; padding: 28px 24px; }
    .ict-fpt-support-button { width: 100%; }
}

/* ICT machine detail */
@media (max-width: 1000px) {
    .ict-fpt-machine-hero .ict-fpt-machine-detail-wrapper { grid-template-columns: 1fr; gap: 50px; }
    .ict-fpt-machine-hero-image { order: -1; }
    .ict-fpt-machine-quick-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ict-fpt-machine-enquiry-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
    .ict-fpt-machine-detail-wrapper { width: calc(100% - 28px); }
    .ict-fpt-machine-hero { padding: 80px 0 60px; }
    .ict-fpt-machine-detail-section { padding: 60px 0; }
    .ict-fpt-machine-quick-specs { grid-template-columns: 1fr; }
    .ict-fpt-specification-row { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
    .ict-fpt-specification-group-item { grid-template-columns: 1fr; gap: 3px; }
    .ict-fpt-machine-enquiry-card { padding: 30px 24px; }
    .ict-fpt-machine-enquiry-action { width: 100%; }
    #ictFptMachineEnquiryButton { width: 100%; }
    .ict-fpt-related-equipment-grid { grid-template-columns: 1fr; }
}

/* ICT spare-part detail */
@media (max-width: 1000px) {
    .ict-fpt-sparepart-detail-inner { width: min(920px, calc(100% - 40px)); }
    .ict-fpt-sparepart-hero { grid-template-columns: 1fr; gap: 50px; padding: 90px 0 70px; }
    .ict-fpt-sparepart-hero-image { order: -1; min-height: 320px; }
    .ict-fpt-sparepart-hero-image img { max-height: 360px; }
    .ict-fpt-sparepart-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ict-fpt-sparepart-enquiry { gap: 35px; padding: 40px; }
}

@media (max-width: 700px) {
    .ict-fpt-sparepart-detail-inner { width: calc(100% - 28px); }
    .ict-fpt-sparepart-hero { padding: 70px 0 60px; }
    .ict-fpt-sparepart-title { font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1.05; }
    .ict-fpt-sparepart-part-number { margin-top: 14px; font-size: 1rem; }
    .ict-fpt-sparepart-tags { margin-top: 22px; gap: 8px; }
    .ict-fpt-sparepart-hero-image { min-height: 280px; padding: 24px; border-radius: 20px; }
    .ict-fpt-sparepart-hero-image img { max-height: 300px; }
    .ict-fpt-sparepart-information,
    .ict-fpt-sparepart-compatibility { padding: 70px 0; }
    .ict-fpt-sparepart-section-heading { margin-bottom: 30px; }
    .ict-fpt-sparepart-section-heading h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
    .ict-fpt-sparepart-details-grid { grid-template-columns: 1fr; }
    .ict-fpt-sparepart-detail-card { min-height: 120px; }
    .ict-fpt-sparepart-related-grid { grid-template-columns: 1fr; gap: 14px; }
    .ict-fpt-sparepart-compatible-card { grid-template-columns: 150px minmax(0, 1fr) auto; gap: 24px; min-height: 150px; padding: 22px; }
    .ict-fpt-sparepart-compatible-image { width: 150px; height: 105px; }
    .ict-fpt-sparepart-enquiry { flex-direction: column; align-items: flex-start; gap: 28px; margin: 60px 0; padding: 32px 24px; border-radius: 18px; }
    .ict-fpt-sparepart-enquiry-action { width: 100%; }
    #ictFptSparePartEnquiryButton { width: 100%; }
    .ict-fpt-sparepart-related { padding-bottom: 60px; }
}

@media (max-width: 680px) {
    .ict-fpt-sparepart-related-grid { grid-template-columns: 1fr; gap: 16px; }
    .ict-fpt-sparepart-related-card { min-height: 160px; }
    .ict-fpt-sparepart-related-image { flex-basis: 105px; width: 105px; height: 105px; margin-left: 14px; }
    .ict-fpt-sparepart-related-content { padding: 18px 18px 18px 14px; }
}

@media (max-width: 480px) {
    .ict-fpt-sparepart-detail-inner { width: calc(100% - 22px); }
    .ict-fpt-sparepart-hero { padding: 55px 0 45px; }
    .ict-fpt-sparepart-eyebrow { margin-bottom: 10px; font-size: .68rem; }
    .ict-fpt-sparepart-title { font-size: 2rem; letter-spacing: -.025em; }
    .ict-fpt-sparepart-category,
    .ict-fpt-sparepart-status span { min-height: 30px; padding: 5px 11px; font-size: .7rem; }
    .ict-fpt-sparepart-hero-image { min-height: 220px; padding: 18px; border-radius: 18px; }
    .ict-fpt-sparepart-hero-image img { max-height: 230px; }
    .ict-fpt-sparepart-information,
    .ict-fpt-sparepart-compatibility { padding: 55px 0; }
    .ict-fpt-sparepart-description p { font-size: .92rem; }
    .ict-fpt-sparepart-detail-card { min-height: 110px; padding: 20px; }
    .ict-fpt-sparepart-compatible-card { grid-template-columns: 1fr; gap: 18px; min-height: auto; padding: 20px; }
    .ict-fpt-sparepart-compatible-image { width: 100%; height: 150px; }
    .ict-fpt-sparepart-compatible-model { font-size: 1.1rem; }
    .ict-fpt-sparepart-compatible-category { font-size: .78rem; }
    .ict-fpt-sparepart-compatible-description { font-size: .86rem; }
    .ict-fpt-sparepart-compatible-card::after { display: none; }
    .ict-fpt-sparepart-enquiry { margin: 45px 0; padding: 28px 20px; }
    .ict-fpt-sparepart-enquiry-content h2 { font-size: 1.7rem; }
}

/* Detail quick-spec and navbar mobile rules */
@media (max-width: 1000px) {
    .ict-fpt-machine-quick-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .ict-fpt-machine-quick-specs { grid-template-columns: 1fr; }
    .ict-fpt-quick-spec-card { min-height: 132px; }
}

@media (max-width: 768px) {
    .ict-fpt-nav-dropdown { display: none; }
}
