/* =========================================================
   PT Artha Logistics International
   Responsive CSS
   Light Mode Minimal Professional
   ========================================================= */

/* =========================================================
   Large Desktop
   ========================================================= */

@media (min-width: 1440px) {
  :root {
    --container: 1240px;
  }

  .hero-grid {
    gap: 76px;
  }

  .parallax-scene {
    height: 600px;
  }
}

/* =========================================================
   Laptop / Small Desktop
   ========================================================= */

@media (max-width: 1180px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .navbar {
    gap: 20px;
  }

  .nav-menu {
    gap: 22px;
  }

  .brand-logo {
    width: 58px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-subtitle {
    font-size: 9px;
  }

  .hero-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 44px;
  }

  .parallax-scene {
    height: 520px;
  }

  .tracking-mini-card {
    width: 220px;
  }

  .split {
    gap: 42px;
  }

  .footer-grid {
    grid-template-columns: 1fr 0.75fr 0.75fr 0.9fr;
    gap: 28px;
  }
}

/* =========================================================
   Tablet Landscape
   ========================================================= */

@media (max-width: 992px) {
  .section {
    padding: 78px 0;
  }

  .section-sm {
    padding: 56px 0;
  }

  .navbar {
    height: 76px;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(18, 59, 93, 0.08);
    box-shadow: 0 24px 60px rgba(18, 59, 93, 0.16);
    backdrop-filter: blur(18px);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-link {
    padding: 14px 16px;
    border-radius: 16px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--orange-soft);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-toggle.is-active span {
    background: transparent;
  }

  .nav-toggle.is-active span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle.is-active span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .nav-actions .btn {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 74px 0;
  }

  .hero-content {
    max-width: 820px;
  }

  .hero-title {
    max-width: 760px;
  }

  .hero-lead {
    max-width: 760px;
  }

  .parallax-scene {
    height: 470px;
    max-width: 720px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split-image img {
    height: 430px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   Tablet Portrait
   ========================================================= */

@media (max-width: 768px) {
  .container {
    width: min(100% - 30px, var(--container));
  }

  .section {
    padding: 68px 0;
  }

  .section-sm {
    padding: 48px 0;
  }

  .section-title-wrap {
    margin-bottom: 34px;
  }

  .section-title {
    font-size: clamp(30px, 8vw, 44px);
  }

  .section-lead,
  .page-lead,
  .hero-lead {
    font-size: 16px;
  }

  .brand-logo {
    width: 52px;
  }

  .brand-name {
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .brand-subtitle {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .hero-grid {
    padding: 58px 0 64px;
  }

  .hero-kicker,
  .kicker,
  .section-kicker {
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .hero-kicker::before,
  .kicker::before,
  .section-kicker::before {
    width: 28px;
  }

  .hero-title {
    font-size: clamp(38px, 10vw, 58px);
  }

  .hero-meta {
    gap: 12px;
    margin-top: 32px;
  }

  .hero-meta-item {
    min-width: calc(50% - 6px);
    padding: 16px;
  }

  .hero-meta-number {
    font-size: 23px;
  }

  .parallax-scene {
    height: 430px;
    border-radius: 28px;
  }

  .route-board {
    left: 24px;
    top: 28px;
    right: 24px;
    bottom: 28px;
    border-radius: 24px;
  }

  .tracking-mini-card {
    width: 210px;
    padding: 16px;
  }

  .tracking-mini-card.top {
    top: 54px;
    left: 38px;
  }

  .tracking-mini-card.bottom {
    right: 34px;
    bottom: 52px;
  }

  .ship-card {
    width: 112px;
    height: 112px;
    border-radius: 28px;
  }

  .ship-card span {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    font-size: 28px;
  }

  .page-hero {
    padding: 78px 0 56px;
  }

  .page-title {
    font-size: clamp(34px, 9vw, 50px);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 26px;
  }

  .service-card {
    min-height: auto;
  }

  .tracking-panel {
    padding: 20px;
  }

  .tracking-map {
    min-height: 330px;
  }

  .status-card {
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .flow-item {
    grid-template-columns: 52px 1fr;
    gap: 14px;
    padding: 20px;
  }

  .flow-number {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 20px;
  }

  .cta-box {
    padding: 38px 28px;
    border-radius: 26px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 576px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding: 58px 0;
  }

  .navbar {
    height: 72px;
  }

  .nav-menu {
    top: 72px;
    left: 12px;
    right: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 46px;
  }

  .brand-text {
    max-width: 190px;
  }

  .brand-name {
    font-size: 11px;
  }

  .brand-subtitle {
    font-size: 7.5px;
  }

  .hero-grid {
    padding: 46px 0 56px;
  }

  .hero-title {
    font-size: clamp(34px, 12vw, 48px);
  }

  .hero-lead {
    font-size: 15px;
    margin-bottom: 26px;
  }

  .btn {
    width: 100%;
    min-height: 50px;
  }

  .btn-group {
    width: 100%;
  }

  .hero-meta-item {
    min-width: 100%;
  }

  .parallax-scene {
    height: 390px;
    border-radius: 24px;
  }

  .orb-navy {
    width: 180px;
    height: 180px;
  }

  .orb-orange {
    width: 120px;
    height: 120px;
  }

  .route-board {
    left: 16px;
    right: 16px;
    top: 18px;
    bottom: 18px;
    border-radius: 22px;
  }

  .route-line {
    left: 9%;
    width: 82%;
    top: 48%;
  }

  .route-dot.start {
    left: 10%;
    top: 53%;
  }

  .route-dot.end {
    right: 10%;
    top: 39%;
  }

  .ship-card {
    width: 94px;
    height: 94px;
    border-radius: 24px;
  }

  .ship-card span {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: 24px;
  }

  .tracking-mini-card {
    width: 190px;
    padding: 14px;
  }

  .tracking-mini-card.top {
    top: 38px;
    left: 26px;
  }

  .tracking-mini-card.bottom {
    right: 22px;
    bottom: 38px;
  }

  .mini-title {
    font-size: 16px;
  }

  .mini-text {
    font-size: 12px;
  }

  .page-hero {
    padding: 64px 0 48px;
  }

  .breadcrumb {
    font-size: 10px;
    letter-spacing: 0.08em;
    flex-wrap: wrap;
  }

  .page-title {
    font-size: clamp(32px, 11vw, 44px);
  }

  .card,
  .form-card,
  .contact-info {
    padding: 24px;
    border-radius: 22px;
  }

  .card-title {
    font-size: 19px;
  }

  .split-image {
    border-radius: 24px;
  }

  .split-image img {
    height: 340px;
  }

  .image-badge {
    left: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
    padding: 16px;
    border-radius: 18px;
  }

  .tracking-panel {
    padding: 16px;
    border-radius: 24px;
  }

  .tracking-map {
    min-height: 300px;
    border-radius: 22px;
  }

  .tracking-map::before {
    inset: 18px;
    border-radius: 18px;
  }

  .status-card {
    width: calc(100% - 28px);
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 16px;
    border-radius: 18px;
  }

  .flow-item {
    grid-template-columns: 1fr;
  }

  .flow-number {
    width: 48px;
    height: 48px;
  }

  .industry-card {
    min-height: 190px;
    padding: 24px;
  }

  .cta-box {
    padding: 32px 22px;
  }

  .cta-title {
    font-size: clamp(30px, 10vw, 40px);
  }

  .contact-item {
    gap: 12px;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-logo {
    width: 56px;
  }

  .footer-title {
    font-size: 16px;
  }
}

/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 380px) {
  .brand-text {
    display: none;
  }

  .brand-logo {
    width: 48px;
  }

  .hero-title {
    font-size: 32px;
  }

  .parallax-scene {
    height: 360px;
  }

  .tracking-mini-card {
    width: 170px;
  }

  .tracking-mini-card.top {
    left: 18px;
  }

  .tracking-mini-card.bottom {
    right: 18px;
  }

  .mini-label {
    font-size: 9px;
  }

  .mini-title {
    font-size: 15px;
  }

  .mini-text {
    font-size: 11px;
  }

  .section-title,
  .page-title,
  .cta-title {
    word-break: normal;
  }
}

/* =========================================================
   Very Large Screens / TV Display
   ========================================================= */

@media (min-width: 1800px) {
  :root {
    --container: 1360px;
  }

  .section {
    padding: 118px 0;
  }

  .hero-grid {
    min-height: 820px;
  }

  .hero-title {
    font-size: 86px;
  }

  .hero-lead {
    font-size: 20px;
  }

  .parallax-scene {
    height: 660px;
  }
}

/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-parallax] {
    transform: none !important;
  }
}

/* =========================================================
   Mobile Hero Full Width Fix
   ========================================================= */

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
  }

  .hero-inner {
    width: min(100% - 32px, 720px);
    padding: 86px 0 76px;
  }
}

@media (max-width: 576px) {
  .hero-inner {
    width: min(100% - 28px, 680px);
    padding: 76px 0 72px;
  }
}

@media (max-width: 768px) {
  .company-overview-image img {
    height: 420px;
  }
}

@media (max-width: 576px) {
  .company-overview-image img {
    height: 360px;
  }
}

/* =========================================================
   Services Large Cards Responsive
   ========================================================= */

@media (max-width: 992px) {
  .services-grid-large {
    grid-template-columns: 1fr;
  }

  .service-feature-card,
  .service-feature-content {
    min-height: 380px;
  }

  .service-modal-dialog {
    grid-template-columns: 1fr;
    max-height: 88vh;
    overflow-y: auto;
  }

  .service-modal-image {
    min-height: 320px;
  }

  .service-modal-content {
    overflow: visible;
  }
}

@media (max-width: 576px) {
  .service-feature-card,
  .service-feature-content {
    min-height: 360px;
  }

  .service-feature-content {
    padding: 26px;
  }

  .service-feature-number {
    left: 26px;
    top: 24px;
    font-size: 38px;
  }

  .service-modal {
    padding: 14px;
  }

  .service-modal-dialog {
    border-radius: 24px;
  }

  .service-modal-image {
    min-height: 240px;
  }

  .service-modal-content {
    padding: 28px 22px;
  }

  .service-modal-close {
    top: 12px;
    right: 12px;
  }
}

/* =========================================================
   Industries Alternating Responsive
   ========================================================= */

@media (max-width: 992px) {
  .industry-showcase {
    gap: 58px;
  }

  .industry-row,
  .industry-row.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .industry-row.reverse .industry-visual,
  .industry-row.reverse .industry-copy {
    order: initial;
  }

  .industry-visual,
  .industry-visual img {
    min-height: 420px;
  }
}

@media (max-width: 576px) {
  .industry-showcase {
    gap: 46px;
  }

  .industry-number {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    font-size: 19px;
  }

  .industry-visual,
  .industry-visual img {
    min-height: 340px;
  }

  .industry-badge {
    left: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
    padding: 16px;
    border-radius: 18px;
  }

  .industry-heading {
    font-size: clamp(30px, 10vw, 42px);
  }
}

/* =========================================================
   Contact Page Responsive
   ========================================================= */

@media (max-width: 992px) {
  .contact-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-main-layout {
    grid-template-columns: 1fr;
  }

  .office-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 576px) {
  .contact-overview-grid {
    grid-template-columns: 1fr;
  }

  .office-map {
    height: 260px;
  }

  .office-content,
  .requirement-card {
    padding: 24px;
  }

  .office-detail-item {
    grid-template-columns: 40px 1fr;
  }

  .office-detail-icon {
    width: 40px;
    height: 40px;
  }
}

/* =========================================================
   Tracking Page Responsive
   ========================================================= */

@media (max-width: 992px) {
  .tracking-dashboard {
    grid-template-columns: 1fr;
  }

  .shipment-list-panel {
    position: relative;
    top: auto;
  }

  .tracking-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .quality-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .shipment-list-panel {
    padding: 22px;
  }

  .shipment-progress-header {
    padding: 26px 22px 0;
  }

  .tracking-live-map {
    margin: 22px;
    min-height: 340px;
    border-radius: 24px;
  }

  .tracking-live-map::before {
    inset: 18px;
  }

  .live-vessel {
    width: 78px;
    height: 78px;
    border-radius: 22px;
  }

  .live-vessel span {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .live-map-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .tracking-summary {
    grid-template-columns: 1fr;
    padding: 0 22px 26px;
  }

  .progress-overview {
    padding: 26px 22px;
  }

  .tracking-timeline {
    padding: 0 22px 28px;
  }
}

/* =========================================================
   Final Responsive Safety Patch
   PT Artha Logistics International
   ========================================================= */

/* Prevent horizontal overflow */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
iframe {
  max-width: 100%;
}

/* Full image hero safety */
.hero {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  max-width: none;
}

@media (max-width: 992px) {
  .hero {
    min-height: calc(100vh - 76px);
  }

  .hero-inner {
    width: min(100% - 36px, 860px);
    padding: 96px 0 86px;
  }

  .hero-title {
    font-size: clamp(40px, 9vw, 68px);
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: calc(100vh - 72px);
  }

  .hero-inner {
    width: min(100% - 28px, 680px);
    padding: 86px 0 78px;
  }

  .hero-title {
    font-size: clamp(34px, 12vw, 48px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-kicker {
    font-size: 10px;
    letter-spacing: 0.14em;
    flex-wrap: wrap;
  }

  .hero-kicker::before,
  .hero-kicker::after {
    width: 24px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-scroll {
    bottom: 20px;
  }
}

/* Navbar safety */
@media (max-width: 992px) {
  .nav-menu {
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }
}

/* Services modal safety */
@media (max-width: 992px) {
  .service-modal-dialog {
    width: min(100%, 760px);
  }
}

@media (max-width: 576px) {
  .service-modal {
    align-items: flex-start;
    padding: 12px;
    overflow-y: auto;
  }

  .service-modal-dialog {
    max-height: none;
  }

  .service-modal-title {
    font-size: 30px;
  }

  .service-feature-title {
    font-size: 30px;
  }
}

/* Industries section safety */
@media (max-width: 992px) {
  .industry-row,
  .industry-row.reverse {
    grid-template-columns: 1fr;
  }

  .industry-row.reverse .industry-visual,
  .industry-row.reverse .industry-copy {
    order: initial;
  }
}

@media (max-width: 576px) {
  .industry-description {
    font-size: 15px;
  }

  .industry-mini-tags {
    gap: 8px;
  }

  .industry-mini-tags span {
    font-size: 11px;
  }
}

/* Contact page safety */
@media (max-width: 768px) {
  .contact-main-layout {
    grid-template-columns: 1fr;
  }

  .contact-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .requirement-card .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .contact-overview-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-section-title {
    margin-top: 8px;
  }
}

/* Tracking dashboard safety */
@media (max-width: 992px) {
  .tracking-dashboard {
    grid-template-columns: 1fr;
  }

  .shipment-list-panel {
    position: relative;
    top: auto;
  }
}

@media (max-width: 576px) {
  .tracking-live-map {
    margin: 18px;
    min-height: 320px;
  }

  .tracking-summary {
    grid-template-columns: 1fr;
  }

  .shipment-card {
    padding: 18px;
  }

  .shipment-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .live-map-card {
    left: 14px;
    right: 14px;
    width: auto;
  }
}

/* Loading screen safety */
@media (max-width: 576px) {
  .loader-card {
    width: min(100% - 28px, 380px);
    padding: 30px 24px;
    border-radius: 26px;
  }

  .loader-logo {
    width: 78px;
  }

  .loader-text span {
    font-size: 16px;
  }

  .loader-text small {
    font-size: 10px;
  }
}

/* Footer safety */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}