/* Responsive layout and mobile styles */

@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr;
  }

  /* Keep hero-right visible so the video/background exist even on tablets */
  .hero-right {
    padding: 80px 30px;
  }

  .approach-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .side-nav {
    display: none;
  }
}

@media (min-width: 1201px) {
  .hero-content-left {
    text-align: left;
  }
}

@media (min-width: 1201px) {
  .hero-badge {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (min-width: 1201px) {
  .services-label {
    font-size: 14px;
    letter-spacing: 4px;
  }
}

@media (min-width: 1201px) {
  .services-carousel {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 4vw, 40px);
  }

  .service-card {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 1201px) {
  .join-label {
    font-size: 14px;
    letter-spacing: 4px;
  }
}

@media (min-width: 1201px) {
  .solutions-label {
    font-size: 14px;
    letter-spacing: 4px;
  }
}

@media (min-width: 1201px) {
  .approach-content {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .hero-cta-secondary {
    animation: fadeIn 0.5s ease 0.2s both;
  }
}

@media (min-width: 1201px) {
  .contact-label {
    font-size: 14px;
    letter-spacing: 4px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(28px, 6vw, 42px);
    line-height: 1.1;
  }
}

@media (max-width: 768px) {
  .hero-cta {
    animation: fadeIn 0.5s ease 0.1s both;
  }
}

@media (max-width: 768px) {
  .header {
    padding: clamp(15px, 3vw, 20px) clamp(20px, 5vw, 30px);
    align-items: flex-start;
  }

  .logo-container {
    margin-top: 0;
  }
}
@media (max-width: 768px) {
  .header,
  .approach-section,
  .solutions-section,
  .join-section,
  .contact-section,
  .footer {
    padding-left: 30px;
    padding-right: 30px;
  }

  /* Show fleur-de-lys logo and adapt brand text */
  @media (min-width: 1201px) {
    .header-decoration {
      display: block;
      position: relative;
    }
  }
  .header-decoration {
    display: block;
  }

  .header-brand-text {
    font-size: 16px;
  }

  .burger {
    display: flex;
  }

  .nav-horizontal {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.5s ease;
    z-index: 1001;
    overflow-y: auto;
    padding: 20px;
  }

  .nav-horizontal.active {
    left: 0;
  }

  .nav-horizontal a {
    font-size: clamp(16px, 4vw, 20px);
    padding: 15px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(26, 40, 64, 0.1);
    color: var(--navy) !important;
  }

  .nav-horizontal .nav-cta {
    margin-top: 20px;
    width: auto;
    padding: 15px 40px;
    background: var(--gold);
    color: var(--navy) !important;
    border-color: var(--gold) !important;
  }

  .nav-horizontal .nav-cta:hover {
    background: var(--gold-light) !important;
    color: var(--navy) !important;
  }

  .hero-description {
    display: none;
  }

  .hero-left {
    padding-top: 180px;
    padding-bottom: 80px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-content-left {
    text-align: center;
    width: 100%;
  }

  .hero-badge {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
  }

  .hero-title {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  /* Center hero buttons and improve spacing */
  .hero-cta-group {
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 120px;
    margin-bottom: 30px;
  }

  .hero-cta,
  .hero-cta-secondary {
    width: auto;
    text-align: center;
  }

  /* Make background video more discreet on mobile, without creating a strong white overlay */
  .hero-video {
    opacity: 0.6;
  }

  /* Simplify visuals and avoid overflow */
  .approach-image-grid.reveal {
    display: none;
  }

  .hero-features {
    position: relative;
    top: auto;
    right: auto;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 16px;
    margin-top: 20px;
  }

  .solutions-masonry {
    grid-template-columns: 1fr;
    max-width: 90%;
    width: 90%;
    margin: 0 auto;
  }

  .solution-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .service-card {
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
    flex: 0 1 auto;
    min-width: 90%;
  }

  .services-carousel {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }

  body {
    cursor: auto;
  }

  .custom-cursor,
  .cursor-follower {
    display: none;
  }
}
