/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* ---- Tablet (max-width: 1024px) ---- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 60px 0;
    --header-height: 70px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Header */
  .site-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 100px 24px 40px;
    transition: right var(--transition-base);
    overflow-y: auto;
  }

  .site-nav.is-open {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
  }

  .nav-menu li a,
  .nav-menu__link {
    color: var(--color-text) !important;
    padding: 14px 16px;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  .nav-menu li a:hover,
  .nav-menu__link:hover {
    background-color: var(--color-bg-alt) !important;
    color: var(--color-primary) !important;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 500px;
  }

  .hero__catch {
    font-size: 3.25rem;
  }

  /* About */
  .about-section__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Service Cards */
  .service-cards {
    gap: 24px;
  }

  /* Numbers */
  .numbers {
    gap: 24px;
  }

  .number-item__num {
    font-size: 2.75rem;
  }

  /* Feature Cards */
  .feature-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* Service List */
  .service-list {
    grid-template-columns: 1fr;
  }

  /* Company Message */
  .company-message {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .company-message__image {
    aspect-ratio: 16 / 9;
    order: -1;
  }

  /* Location Cards */
  .location-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-grid__col--info {
    grid-column: 1 / -1;
  }

  /* Table */
  .info-table th {
    width: 160px;
  }
}

/* ---- Mobile (max-width: 768px) ---- */
@media (max-width: 768px) {
  :root {
    --section-padding: 48px 0;
    --header-height: 64px;
    --container-padding: 0 16px;
  }

  h1 { font-size: 1.625rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .section-header__title {
    font-size: 1.5rem;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
    max-height: none;
  }

  .hero__content {
    text-align: left;
    padding: 0 24px;
    width: 100%;
  }

  .hero__catch {
    font-size: 3.75rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4), 0 0 40px rgba(85, 183, 230, 0.3);
    transform: skewX(-3deg);
  }

  .hero__catch .line {
    display: block;
    overflow: hidden;
  }

  .hero__catch .line-inner {
    display: block;
  }

  .hero__sub {
    font-size: 0.9375rem;
  }

  .hero .btn {
    align-self: flex-start;
  }

  .hero__scroll {
    bottom: 60px;
  }

  /* Page Hero */
  .page-hero {
    height: 220px;
  }

  .page-hero__title {
    font-size: 1.625rem;
  }

  /* Service Cards */
  .service-cards {
    grid-template-columns: 1fr;
  }

  .service-card {
    aspect-ratio: 16 / 10;
  }

  /* Numbers */
  .numbers {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .number-item__num {
    font-size: 3rem;
  }

  /* Feature Cards */
  .feature-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 28px 20px;
  }

  /* News */
  .news-item {
    flex-direction: column;
    gap: 4px;
  }

  /* CTA */
  .cta-section {
    padding: 60px 0;
  }

  .cta-section__title {
    font-size: 1.375rem;
  }

  .cta-section__text br {
    display: none;
  }

  /* Service Overview */
  .service-overview br {
    display: none;
  }

  /* Table */
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }

  .info-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .info-table td {
    padding-top: 4px;
  }

  /* Timeline */
  .timeline {
    padding-left: 24px;
  }

  .timeline__item {
    padding-left: 24px;
  }

  .timeline__dot {
    left: -24px;
  }

  /* Location Cards */
  .location-cards {
    grid-template-columns: 1fr;
  }

  /* Company Message */
  .company-message__text h3 {
    font-size: 1.25rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__top {
    padding: 40px 0;
  }

  /* Back to Top */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  /* GJ Badge */
  .gj-badge {
    flex-direction: column;
    text-align: center;
  }
}

/* ---- Small Mobile (max-width: 480px) ---- */
@media (max-width: 480px) {
  .hero__catch {
    font-size: 3.25rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .service-card__title {
    font-size: 1.25rem;
  }
}
