/* ==========================================================================
   J GROUP - PROFESSIONAL MOBILE RESPONSIVE STYLESHEET
   ==========================================================================
   Breakpoints:
   - 1024px : Tablet landscape / small desktop
   - 768px  : Tablet portrait
   - 480px  : Mobile phones
   ========================================================================== */

/* ==========================================================================
   TABLET LANDSCAPE (max-width: 1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) {

  /* ── Header & Navigation ── */
  .site-header {
    height: auto !important;
    padding: 10px 0 !important;
  }

  .header-container {
    flex-wrap: wrap;
    position: relative;
  }

  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    order: 2;
    z-index: 1001;
  }

  .nav-actions {
    display: none !important;
  }

  .nav-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0.75rem;
    right: 0.75rem;
    margin-top: 0.5rem;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.25rem !important;
    background: #ffffff !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-radius: 16px !important;
    padding: 0.85rem !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    z-index: 999;
  }

  [data-theme="dark"] .nav-menu {
    background: #15120f !important;
    border-color: rgba(197, 155, 39, 0.3) !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  }

  .nav-menu.active {
    display: flex !important;
    animation: mobileMenuSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes mobileMenuSlideIn {
    from {
      opacity: 0;
      transform: translateY(-12px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .nav-menu .nav-item {
    width: 100%;
    text-align: left;
    margin-bottom: 0;
  }

  .nav-menu .nav-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.8rem 1rem !important;
    border-radius: 10px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #1c1917 !important;
    transition: all 0.2s ease;
  }

  [data-theme="dark"] .nav-menu .nav-link {
    color: #f8fafc !important; /* Crystal clear high-contrast white in dark theme */
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    background: rgba(197, 155, 39, 0.12) !important;
    color: #0f172a !important;
  }

  [data-theme="dark"] .nav-menu .nav-link:hover,
  [data-theme="dark"] .nav-menu .nav-link.active {
    background: rgba(197, 155, 39, 0.22) !important;
    color: #ffffff !important;
  }

  .nav-menu .nav-link::after {
    display: none !important;
  }

  /* Mobile Item Container */
  .nav-menu .nav-item {
    width: 100% !important;
    text-align: left;
    margin-bottom: 0;
    position: relative;
  }

  .nav-item .dropdown-chevron {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-item.open .dropdown-chevron {
    transform: rotate(180deg);
  }

  /* Ventures dropdown on mobile – COLLAPSED BY DEFAULT */
  .nav-dropdown {
    display: none !important;
    position: static !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: none !important;
    background: rgba(0, 0, 0, 0.03) !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 2px solid var(--gold) !important;
    padding: 0.5rem 0.6rem !important;
    margin: 0.35rem 0 0.5rem 0.75rem !important;
    min-width: auto !important;
    width: calc(100% - 1.5rem) !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
    border-radius: 0 12px 12px 0 !important;
  }

  /* EXPANDED ONLY WHEN TAPPED (.nav-item.open) */
  .nav-item.open .nav-dropdown {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    animation: mobileDropdownSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes mobileDropdownSlide {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  [data-theme="dark"] .nav-dropdown {
    background: rgba(255, 255, 255, 0.04) !important;
    border-left-color: var(--gold) !important;
  }

  .nav-dropdown .dropdown-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem !important;
    border-radius: 8px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  [data-theme="dark"] .nav-dropdown .dropdown-link {
    color: #e2e8f0 !important;
  }

  .nav-dropdown .dropdown-link:hover {
    background: rgba(197, 155, 39, 0.12) !important;
    color: #0f172a !important;
    padding-left: 0.95rem !important;
  }

  [data-theme="dark"] .nav-dropdown .dropdown-link:hover {
    background: rgba(197, 155, 39, 0.25) !important;
    color: #ffffff !important;
  }

  .nav-item-toggle {
    border-left: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    display: flex;
    justify-content: flex-start;
    padding: 0.5rem 1rem !important;
  }

  .mobile-only-btn {
    display: flex !important;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  [data-theme="dark"] .mobile-only-btn {
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .mobile-only-btn .btn {
    width: 100%;
    justify-content: center;
    border-radius: 10px !important;
  }

  /* ── Hero & First Section (Content starts at navbar) ── */
  main > .section:first-child,
  main > .section:first-of-type,
  main > .hero-section,
  .hero-section {
    padding-top: 85px !important;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center;
  }

  .hero-content {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-tag-founder {
    text-align: center;
  }

  .hero-title-founder {
    font-size: clamp(2.2rem, 7vw, 3.5rem) !important;
    text-align: center;
  }

  .hero-desc {
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-carousel-overlay {
    background: linear-gradient(
      180deg,
      rgba(252, 251, 249, 0.96) 0%,
      rgba(252, 251, 249, 0.92) 50%,
      rgba(252, 251, 249, 0.7) 80%,
      rgba(252, 251, 249, 0.4) 100%
    ) !important;
  }

  [data-theme="dark"] .hero-carousel-overlay {
    background: linear-gradient(
      180deg,
      rgba(12, 10, 8, 0.96) 0%,
      rgba(12, 10, 8, 0.92) 50%,
      rgba(12, 10, 8, 0.7) 80%,
      rgba(12, 10, 8, 0.4) 100%
    ) !important;
  }

  .hero-visual-founder {
    justify-content: center !important;
    margin-top: 0 !important;
  }

  .founder-image {
    max-height: 400px;
  }

  /* ── About Me Banner ── */
  .about-me-banner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 2rem !important;
  }

  .amb-left {
    border-right: none !important;
    padding-right: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 2rem;
  }

  .amb-right {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  .amb-stat:not(:last-child)::after {
    display: none !important;
  }

  .about-me-banner-wrapper {
    margin-top: -3rem !important;
  }

  /* ── Product Cards Grid & Distinct Sections ── */
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .flagship-lumoriya-card {
    grid-template-columns: 1fr !important;
    padding: 2rem 1.25rem !important;
    gap: 2rem !important;
  }

  .jv-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .jv-partner-banner {
    flex-direction: column !important;
    text-align: center;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
  }

  .theme-card {
    aspect-ratio: auto !important;
    min-height: auto !important;
    padding: 2rem 1.5rem !important;
  }

  /* ── Pillars Grid ── */
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* ── CTA Banner ── */
  .cta-banner {
    padding: 2.5rem 1.5rem !important;
  }

  /* ── Detailed Product Cards (products.html) ── */
  .detailed-product-card {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 2rem !important;
  }

  .detailed-product-card.reverse {
    direction: ltr !important;
  }

  .preview-screen {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .preview-screen img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* ── Section Spacing ── */
  .section {
    padding: 4rem 0 !important;
  }

  .section-header {
    margin-bottom: 2.5rem !important;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 0.5rem;
    text-align: center;
  }

  /* ── Contact Page ── */
  .contact-wrapper {
    flex-direction: column !important;
  }

  .contact-form-container {
    padding: 2rem 1.5rem !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   TABLET PORTRAIT (max-width: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {

  /* ── Hero & First Section (Content starts at navbar) ── */
  main > .section:first-child,
  main > .section:first-of-type,
  main > .hero-section,
  .hero-section {
    padding-top: 80px !important;
  }

  .hero-title-founder {
    font-size: clamp(1.8rem, 8vw, 2.8rem) !important;
  }

  .hero-desc {
    font-size: 1rem !important;
  }

  .hero-cta-group {
    flex-direction: column !important;
    width: 100%;
    align-items: stretch !important;
  }

  .hero-cta-group .btn {
    width: 100% !important;
    justify-content: center;
  }

  .founder-image {
    max-height: 320px;
  }

  /* ── Section Titles ── */
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }

  /* ── Products Section Header ── */
  .product-section-header h2 {
    font-size: 2.5rem !important;
  }

  /* ── About Me Banner ── */
  .about-me-banner {
    padding: 1.5rem !important;
  }

  .amb-title {
    font-size: 1.6rem !important;
  }

  .amb-right {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .amb-icon {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 1rem !important;
  }

  .amb-number {
    font-size: 1.8rem !important;
  }

  /* ── Pillars ── */
  .pillars-grid {
    grid-template-columns: 1fr !important;
  }

  .pillar-card {
    padding: 1.5rem !important;
  }

  /* ── CTA ── */
  .cta-banner {
    padding: 2rem 1.25rem !important;
  }

  .cta-title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }

  .cta-subtitle {
    font-size: 0.95rem !important;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand p {
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* ── Product Info & Stat Metrics ── */
  .product-info-col h2 {
    font-size: 1.6rem !important;
  }

  .product-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* ── About Page Vision & Mission Compact Stacking ── */
  .vision-mission-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    margin-bottom: 3rem !important;
  }

  .vision-mission-grid .glass-card {
    padding: 1.5rem 1.25rem !important;
    border-radius: 16px !important;
  }

  .vision-mission-grid h2 {
    font-size: 1.35rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.25 !important;
  }

  .vision-mission-grid p {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
  }

  /* ── About Page Mobile Single-Column Compact Timeline ── */
  .timeline {
    padding-left: 0 !important;
    position: relative !important;
  }

  .timeline::before,
  .timeline-line {
    left: 16px !important;
    transform: none !important;
  }

  .timeline-item {
    width: 100% !important;
    left: 0 !important;
    padding-left: 45px !important;
    padding-right: 0 !important;
    text-align: left !important;
    margin-bottom: 1.5rem !important;
  }

  .timeline-item .glass-card {
    padding: 1.15rem 1rem !important;
    border-radius: 14px !important;
  }

  .timeline-item h3 {
    font-size: 1.15rem !important;
    margin: 0.35rem 0 !important;
  }

  .timeline-item p {
    font-size: 0.84rem !important;
    line-height: 1.55 !important;
  }

  .timeline-dot {
    width: 14px !important;
    height: 14px !important;
    left: 9px !important;
    right: auto !important;
    top: 1rem !important;
  }

  .timeline-item.left {
    text-align: left !important;
    padding-right: 0 !important;
  }

  .timeline-item.right {
    left: 0 !important;
    padding-left: 45px !important;
    text-align: left !important;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 9px !important;
    right: auto !important;
  }

  /* ── Contact Page Form & Info Stacking (≤768px) ── */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  .contact-info-panel,
  .contact-form-panel {
    padding: 1.5rem 1.25rem !important;
    border-radius: 16px !important;
  }

  .contact-info-panel h2,
  .contact-form-panel h2 {
    font-size: 1.35rem !important;
    margin-bottom: 0.4rem !important;
  }

  .contact-info-panel p,
  .contact-form-panel p {
    font-size: 0.88rem !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.55 !important;
  }

  .contact-info-list {
    gap: 0.85rem !important;
    margin-top: 1rem !important;
  }

  .contact-info-card {
    padding: 1rem !important;
    gap: 1rem !important;
    border-radius: 12px !important;
  }

  .contact-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
  }

  .contact-value {
    font-size: 0.88rem !important;
  }

  .form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .form-group {
    margin-bottom: 1.15rem !important;
  }

  .form-label {
    font-size: 0.85rem !important;
    margin-bottom: 0.35rem !important;
  }

  .form-control {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
  }

  #submit-inquiry-btn {
    padding: 0.85rem !important;
    font-size: 0.95rem !important;
  }
}

/* ==========================================================================
   MOBILE PHONES (max-width: 480px)
   ========================================================================== */
@media screen and (max-width: 480px) {

  /* ── Header ── */
  .brand-logo img {
    height: 50px !important;
    border-radius: 10px !important;
  }

  .mobile-menu-toggle svg {
    width: 22px;
    height: 22px;
  }

  /* ── Hero & First Section (Content starts at navbar) ── */
  main > .section:first-child,
  main > .section:first-of-type,
  main > .hero-section,
  .hero-section {
    padding-top: 75px !important;
  }

  .hero-title-founder {
    font-size: clamp(1.6rem, 9vw, 2.2rem) !important;
    line-height: 1.15 !important;
  }

  .hero-tag-founder {
    font-size: 0.75rem !important;
    letter-spacing: 0.14em !important;
  }

  .hero-desc {
    font-size: 0.9rem !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-cta-group .btn {
    font-size: 0.85rem !important;
    padding: 0.7rem 1.2rem !important;
  }

  .founder-image {
    max-height: 260px;
  }

  /* ── About Me Banner ── */
  .about-me-banner-wrapper {
    margin-top: -2rem !important;
  }

  .about-me-banner {
    padding: 1.25rem !important;
    border-radius: 12px !important;
  }

  .amb-title {
    font-size: 1.3rem !important;
  }

  .amb-desc {
    font-size: 0.85rem !important;
  }

  .amb-right {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .amb-icon {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 0.75rem !important;
  }

  .amb-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .amb-number {
    font-size: 1.5rem !important;
  }

  .amb-stat-title {
    font-size: 0.75rem !important;
  }

  .amb-stat-sub {
    font-size: 0.65rem !important;
  }

  /* ── About Us Page Small Screen Optimization (≤480px) ── */
  .vision-mission-grid .glass-card {
    padding: 1.25rem 1rem !important;
    border-radius: 14px !important;
  }

  .vision-mission-grid h2 {
    font-size: 1.2rem !important;
  }

  .vision-mission-grid p {
    font-size: 0.82rem !important;
    line-height: 1.55 !important;
  }

  .timeline-item {
    padding-left: 38px !important;
    margin-bottom: 1.25rem !important;
  }

  .timeline-item .glass-card {
    padding: 1rem 0.85rem !important;
  }

  .timeline-item h3 {
    font-size: 1rem !important;
  }

  .timeline-item p {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
  }

  .timeline-dot {
    left: 8px !important;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 8px !important;
  }

  .pillar-card {
    padding: 1.25rem 1rem !important;
    border-radius: 14px !important;
  }

  .pillar-card h3 {
    font-size: 1.05rem !important;
  }

  .pillar-card p {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }

  /* ── Contact Page Extra Compact Optimization (≤480px) ── */
  .contact-grid {
    gap: 1.25rem !important;
  }

  .contact-info-panel,
  .contact-form-panel {
    padding: 1.25rem 1rem !important;
    border-radius: 14px !important;
  }

  .contact-info-panel h2,
  .contact-form-panel h2 {
    font-size: 1.2rem !important;
  }

  .contact-info-panel p,
  .contact-form-panel p {
    font-size: 0.82rem !important;
    margin-bottom: 1rem !important;
  }

  .contact-info-card {
    padding: 0.8rem !important;
    gap: 0.75rem !important;
  }

  .contact-icon {
    width: 38px !important;
    height: 38px !important;
  }

  .contact-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .contact-value {
    font-size: 0.82rem !important;
  }

  .form-group {
    margin-bottom: 1rem !important;
  }

  .form-control {
    padding: 0.7rem 0.85rem !important;
    font-size: 0.85rem !important;
  }

  /* ── Product Cards ── */
  .theme-card {
    padding: 1.5rem 1.25rem !important;
  }

  .theme-name {
    font-size: 1.3rem !important;
  }

  .theme-desc {
    font-size: 0.85rem !important;
    -webkit-line-clamp: 4 !important;
  }

  .theme-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.1rem !important;
  }

  /* ── Section spacing ── */
  .section {
    padding: 3rem 0 !important;
  }

  .section-header {
    margin-bottom: 2rem !important;
  }

  .section-title {
    font-size: 1.4rem !important;
  }

  .section-desc {
    font-size: 0.9rem !important;
  }

  /* ── CTA ── */
  .cta-banner {
    padding: 1.75rem 1rem !important;
    border-radius: 12px !important;
  }

  .cta-title {
    font-size: 1.3rem !important;
  }

  /* ── Footer ── */
  .footer-col h4 {
    margin-bottom: 1rem !important;
  }

  .footer-bottom p {
    font-size: 0.75rem !important;
  }
}

/* ==========================================================================
   GLOBAL MOBILE UTILITY CLASSES
   ========================================================================== */

/* Mobile-only CTA button – hidden on desktop */
.mobile-only-btn {
  display: none !important;
}

/* Hamburger toggle – hidden on desktop, shown via media queries */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}
