/* ========================================
   Responsive Breakpoints
   Indonesian Integrated Coking Industry Base
   
   Breakpoints:
   - 1920px (XXL)
   - 1440px (XL)
   - 1366px (Large Laptop)
   - 1200px (LG)
   - 992px (MD)
   - 768px (SM)
   - 576px (XS)
   - 430px (Mobile L)
   - 390px (Mobile M)
   ======================================== */

/* ========================================
   1920px and above (Large Desktop)
   ======================================== */
@media (min-width: 1920px) {
  .container {
    max-width: 1400px;
  }
}

/* ========================================
   1440px and below (Small Desktop)
   ======================================== */
@media (max-width: 1440px) {
  :root {
    --font-size-hero: 4rem;  /* 64px */
  }
}

/* ========================================
   1366px and below (Large Laptop)
   ======================================== */
@media (max-width: 1366px) {
  :root {
    --font-size-hero: 3.75rem;  /* 60px */
    --font-size-5xl: 3.5rem;   /* 56px */
  }
  
  .container {
    max-width: 1200px;
  }
}

/* ========================================
   1200px and below (LG - Laptop)
   ======================================== */
@media (max-width: 1200px) {
  :root {
    --font-size-hero: 3.5rem;  /* 56px */
    --font-size-5xl: 3rem;     /* 48px */
    --font-size-4xl: 2.5rem;   /* 40px */
    --spacing-4xl: 5rem;       /* 80px */
    --spacing-5xl: 6rem;       /* 96px */
  }
  
  .container {
    max-width: 960px;
  }
  
  /* Adjust hero height */
  .hero {
    min-height: 500px;
  }
  
  /* Adjust card image height */
  .card-img-top {
    height: 200px;
  }
}

/* ========================================
   992px and below (MD - Tablet Landscape)
   ======================================== */
@media (max-width: 992px) {
  :root {
    --font-size-hero: 3rem;    /* 48px */
    --font-size-5xl: 2.5rem;   /* 40px */
    --font-size-4xl: 2rem;     /* 32px */
    --font-size-3xl: 1.875rem; /* 30px */
    --font-size-2xl: 1.5rem;   /* 24px */
    --header-height: 70px;
    --header-height-scrolled: 60px;
  }
  
  .container {
    max-width: 720px;
  }
  
  /* Mobile navbar height adjustment */
  .navbar { height: 70px; }
  .navbar.scrolled { height: 60px; }
  .navbar-brand img { max-height: 50px; }
  .navbar-nav { top: 70px; }
  
  /* Stack columns */
  .col-lg-3,
  .col-lg-4,
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Adjust hero */
  .hero {
    min-height: 450px;
  }
  
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  /* Adjust section padding */
  .section {
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-3xl);
  }
  
  /* Footer columns */
  .footer .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: var(--spacing-xl);
  }
}

/* ========================================
   768px and below (SM - Tablet Portrait)
   ======================================== */
@media (max-width: 768px) {
  :root {
    --font-size-hero: 2.5rem;  /* 40px */
    --font-size-5xl: 2rem;     /* 32px */
    --font-size-4xl: 1.75rem;  /* 28px */
    --font-size-3xl: 1.5rem;   /* 24px */
    --font-size-2xl: 1.25rem;  /* 20px */
    --font-size-xl: 1.125rem;  /* 18px */
    --spacing-3xl: 3rem;       /* 48px */
    --spacing-4xl: 4rem;       /* 64px */
  }
  
  .container {
    max-width: 540px;
  }
  
  /* Full width columns */
  .col-md-3,
  .col-md-4,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Hero adjustments */
  .hero {
    min-height: 400px;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  /* Section header */
  .section-header {
    margin-bottom: var(--spacing-2xl);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-description {
    font-size: var(--font-size-base);
  }
  
  /* Card adjustments */
  .card-horizontal {
    flex-direction: column;
  }
  
  .card-horizontal .card-img-top {
    width: 100%;
    height: 200px;
  }
  
  /* Footer */
  .footer .col-lg-3,
  .footer .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ========================================
   576px and below (XS - Mobile Landscape)
   ======================================== */
@media (max-width: 576px) {
  :root {
    --font-size-hero: 2rem;    /* 32px */
    --font-size-5xl: 1.75rem;  /* 28px */
    --font-size-4xl: 1.5rem;   /* 24px */
    --font-size-3xl: 1.25rem;  /* 20px */
    --spacing-2xl: 2rem;       /* 32px */
    --spacing-3xl: 2.5rem;    /* 40px */
  }
  
  .container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
  
  /* Hero */
  .hero {
    min-height: 350px;
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  
  /* Buttons */
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: var(--font-size-sm);
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: var(--font-size-base);
  }
  
  /* Cards */
  .card-img-top {
    height: 180px;
  }
  
  .card-body {
    padding: var(--spacing-md);
  }
}

/* ========================================
   430px and below (Mobile L - iPhone 12 Pro Max)
   ======================================== */
@media (max-width: 430px) {
  :root {
    --font-size-hero: 1.75rem;  /* 28px */
    --font-size-5xl: 1.5rem;    /* 24px */
    --font-size-4xl: 1.25rem;   /* 20px */
    --spacing-md: 0.875rem;     /* 14px */
    --spacing-lg: 1.25rem;      /* 20px */
  }
  
  html {
    font-size: 14px;
  }
  
  .hero-indicators {
    bottom: var(--spacing-md);
  }
  
  .back-to-top {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
  }
}

/* ========================================
   390px and below (Mobile M - iPhone 12 Pro)
   ======================================== */
@media (max-width: 390px) {
  :root {
    --font-size-hero: 1.5rem;   /* 24px */
    --font-size-5xl: 1.375rem;  /* 22px */
    --font-size-4xl: 1.125rem;  /* 18px */
  }
  
  html {
    font-size: 13px;
  }
  
  .container {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  abbr[title]::after {
    content: " (" attr(title) ")";
  }
  
  pre {
    white-space: pre-wrap !important;
  }
  
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  
  thead {
    display: table-header-group;
  }
  
  tr,
  img {
    page-break-inside: avoid;
  }
  
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  
  h2,
  h3 {
    page-break-after: avoid;
  }
  
  .navbar,
  .hero-indicators,
  .back-to-top,
  .footer {
    display: none !important;
  }
}

/* ========================================
   Prefers Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-slide {
    transition: none;
  }
}

/* ========================================
   Prefers Color Scheme (Dark Mode)
   ======================================== */
@media (prefers-color-scheme: dark) {
  /* Uncomment to enable auto dark mode */
  /*
  :root {
    color-scheme: dark;
  }
  
  body {
    background-color: #121212;
    color: #E0E0E0;
  }
  */
}
