/* ==========================================================================
   CHARLYN INC (SL) LIMITED — RESPONSIVE MEDIA QUERIES
   Tested Breakpoints: 1920px, 1440px, 1024px, 768px, 390px, 360px
   ========================================================================== */

/* Large Desktops (1440px - 1920px+) */
@media (min-width: 1440px) {
  :root {
    --container-max: 1320px;
  }
}

/* Laptops & Small Desktops (max-width: 1199px) */
@media (max-width: 1199px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
  }

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

  .trust-item:nth-child(2) {
    border-right: none;
  }

  .trust-item:nth-child(1),
  .trust-item:nth-child(2) {
    border-bottom: 1px solid var(--border-light);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

/* Tablets & Compact Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .section {
    padding: 76px 0;
  }

  .top-bar-welcome {
    display: none;
  }

  .top-bar-inner {
    justify-content: space-between;
  }

  .top-bar-right {
    width: 100%;
    justify-content: space-between;
  }

  /* Mobile/Tablet Hamburger Navigation */
  .mobile-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    border-bottom: 2px solid var(--gold-accent);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all var(--transition-base);
    z-index: 1005;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    padding: 13px 12px;
    font-size: 1rem;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
  }

  .nav-link::after {
    display: none;
  }

  .has-dropdown .dropdown-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: var(--bg-light);
    padding: 8px 10px;
    margin-top: 4px;
    display: none;
  }

  .has-dropdown.dropdown-open .dropdown-menu {
    display: block;
  }

  .hero-grid,
  .about-grid,
  .service-overview-grid,
  .objectives-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-section {
    padding: 84px 0 110px;
    min-height: auto;
  }

  .about-badge-card {
    right: 16px;
    bottom: 16px;
  }

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

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

  .service-spotlight {
    grid-template-columns: 1fr;
  }

  .service-spotlight-media {
    min-height: 240px;
    max-height: 300px;
  }
}

/* Tablets & Large Phones (max-width: 768px) */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .top-bar {
    font-size: 0.76rem;
  }

  .top-bar-contacts {
    gap: 14px;
    flex-wrap: wrap;
  }

  .top-bar-socials {
    display: none;
  }

  .nav-actions .btn {
    display: none;
  }

  .services-grid-primary,
  .vm-grid,
  .why-grid,
  .values-grid,
  .industries-grid,
  .offer-grid,
  .approach-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .trust-item:last-child {
    border-bottom: none;
  }

  .vm-card,
  .objectives-wrapper,
  .contact-form-card,
  .contact-info-panel,
  .service-spotlight-content {
    padding: 32px 24px;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .footer-legal {
    justify-content: center;
  }
}

/* Compact Smartphones (360px - 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .navbar {
    height: 74px;
  }

  .nav-menu {
    top: 74px;
    max-height: calc(100vh - 74px);
  }

  .brand-emblem {
    width: 38px;
    height: 38px;
  }

  .brand-title {
    font-size: 1.04rem;
  }

  .brand-subtitle {
    font-size: 0.62rem;
  }

  .hero-title {
    font-size: 2.05rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-banner-actions .btn {
    width: 100%;
  }

  .hero-sector-panel {
    padding: 22px 18px;
  }

  .about-badge-card {
    position: static;
    max-width: 100%;
    margin-top: 16px;
  }

  .about-decorator {
    display: none;
  }

  .top-bar-item.hide-xs {
    display: none;
  }
}
