/* ===== RESPONSIVE DESIGN ===== */
@import url("./variables-shared.css");
/* Standardized breakpoints: 1024px (tablet), 768px (mobile) */

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

  /* Hero Section */
  .hero-title {
    font-size: var(--text-size-54);
  }

  /* Layouts */
  .column-flex-2,
  .section-header,
  .image-header {
    flex-direction: column;
    gap: var(--space-24);
  }

  .column-flex-2.reverse,
  .section-header.reverse,
  .image-header.reverse {
    flex-direction: column-reverse;
    gap: var(--space-24);
  }

  .column-flex-2 img {
    min-height: 365px;
  }

  .image-header .column1,
  .image-header .column2,
  .section-header .column1,
  .section-header .column2 {
    width: 100%;
    height: auto;
  }

  .partner-logos img {
    height: var(--size-45);
  }

  /* Feature Grid */
  .feature-grid {
    grid-template-columns: 1fr;
  }

  /* Service Carousel */
  .service-carousel {
    padding: 0 var(--space-48);
  }

  .service-carousel-track .service-grid-card {
    flex: 0 0 calc((100% - var(--space-40)) / 2);
  }

  .service-carousel-arrow {
    width: 38px;
    height: 38px;
  }

  /* Service/Blog Grid */
  .service-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Service Layout */
  .service-layout {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .service-sidebar {
    display: none;
  }

  /* Service Intro */
  .service-intro {
    flex-direction: column;
    gap: var(--space-24);
  }

  .intro-image,
  .intro-image img {
    width: 100%;
    height: auto;
  }

  /* Intro Image Large (single post featured image) */
  .intro-image-large {
    height: var(--size-300, 300px);
  }

  .intro-image-large img {
    height: var(--size-300, 300px);
  }

  /* Service Hero */
  .single-service .service-hero {
    margin-top: var(--space-60, 60px);
    margin-bottom: var(--space-30);
  }

  /* Service Next (Related Articles) */
  .service-next h2 {
    font-size: var(--text-size-36);
  }

  /* Page Title */
  .page-title {
    font-size: var(--text-size-54);
  }

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

  /* Footer */
  .footer-main {
    flex-direction: column;
    gap: var(--space-40);
  }

  .footer-social {
    justify-content: flex-start;
    width: 100%;
  }

  .footer-bottom {
    width: 100%;
  }
}

/* ===== MOBILE (768px) ===== */
@media (max-width: 768px) {

  /* Base */
  body {
    font-size: var(--text-size-14);
  }

  .container {
    padding: 0 var(--space-16);
  }

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

  .hero-content {
    width: 100%;
  }

  .hero-title {
    font-size: var(--text-size-36);
  }

  .hero-subtitle {
    font-size: var(--text-size-16);
  }

  /* Layout */
  .column-flex-2 {
    gap: var(--space-24);
  }

  .column-flex-2 img {
    height: auto !important;
    min-height: 0 !important;
  }

  /* Page */
  .page-404 {
    padding: var(--space-48) 0;
  }

  .page-404 .page-title {
    font-size: var(--text-size-36);
  }

  .page-404 .recent-posts ul {
    grid-template-columns: 1fr;
  }

  /* Feature Grid */
  .border-box {
    padding: var(--space-24) var(--space-20);
  }

  .border-box h3 {
    font-size: var(--text-size-22);
  }

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

  /* Service Carousel */
  .service-carousel {
    padding: 0 var(--space-40);
  }

  .service-carousel-track .service-grid-card {
    flex: 0 0 100%;
  }

  .service-carousel-arrow {
    width: 32px;
    height: 32px;
  }

  /* Service/Blog Grid */
  .service-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Service Title */
  .page-title {
    font-size: var(--text-size-36);
  }

  /* Team Grid */
  .team-grid {
    gap: var(--space-12);
  }

  .team-grid-card {
    flex: 1 1 100% !important;
    flex-direction: column !important;
  }

  .team-grid-card.active {
    flex: 1 0 100% !important;
  }

  .team-grid-card.active .team-photo-large-wrapper {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: none !important;
    height: 300px !important;
    display: block !important;
  }

  .team-grid-card.active .team-photo-large {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .team-grid-card .team-content {
    width: 100% !important;
  }

  /* Header – remove desktop scale-down effects on mobile */
  .site-header .hamburger-toggle:not(.active) {
    overflow: hidden;
  }

  .site-header.sticky {
    transform: none;
  }

  .site-header .container {
    overflow: hidden !important;
    max-width: 100vw;
  }

  .site-header.sticky>.container {
    transform: none;
  }

  .site-logo img {
    width: 120px;
    height: auto;
  }

  /* Show hamburger */
  .hamburger-toggle {
    display: flex;
  }

  /* Show overlay element */
  .mobile-menu-overlay {
    display: block;
  }

  /* Mobile navigation panel */
  .nav-container {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 290px;
    height: 100dvh;
    background: rgba(30, 34, 55, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 100px 32px 40px;
    gap: var(--space-8);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: calc(var(--z-header) + 1);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .nav-container.active {
    display: flex;
    transform: translateX(1px);
  }

  .nav-container a,
  .nav-container li a {
    color: var(--color-text-lightest);
    font-size: var(--text-size-20);
    padding: var(--space-12) 0;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: var(--letter-spacing-0-2);
  }

  .nav-container a:hover,
  .nav-container li a:hover {
    color: var(--color-accent-orange);
  }

  .nav-container .main-navigation {
    list-style: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: var(--space-4);
    flex-shrink: 0;
  }

  /* Ensure all menu items stay contained within the nav */
  .nav-container .main-navigation .menu-item {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  /* Language switcher: hidden in header, shown inside nav-container via JS */
  .site-header>.container>.language-switcher {
    display: none;
  }

  .nav-container .language-switcher {
    display: flex;
    margin-top: auto;
    padding-top: var(--space-24);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .nav-container .language-switcher a {
    color: var(--color-text-lighter);
    border-bottom: none;
    padding: 0;
    width: auto;
  }

  .nav-container .language-switcher .lang-active {
    color: var(--color-text-lightest);
  }

  .nav-container .language-switcher .separator {
    background: var(--color-text-lighter);
  }

  .nav-container .language-switcher svg path {
    fill: var(--color-text-lighter);
  }

  /* Section */
  .section-subtitle {
    font-size: var(--text-size-16);
  }

  .section-title {
    font-size: var(--text-size-32);
  }

  .section-description {
    font-size: var(--text-size-16);
  }

  /* Service Intro */
  .service-intro h2 {
    font-size: var(--text-size-32);
  }

  .service-intro .lead {
    font-size: var(--text-size-16);
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    font-size: var(--text-size-16);
    padding: var(--space-10) var(--space-24);
  }

  /* Footer */
  .footer-main {
    padding: var(--space-20) !important;
  }

  .footer-contact {
    max-width: 100%;
  }

  .footer-column {
    min-width: 100px;
  }

  .footer-bottom {
    padding: var(--space-16) var(--space-20);
  }

  .footer-bottom p {
    font-size: var(--text-size-14);
  }

  /* Quote Section */
  .quote-section p {
    font-size: var(--text-size-16);
    padding: 0 var(--space-12);
  }

  /* Service Body */
  .service-body {
    font-size: var(--text-size-16);
  }

  /* Service Hero */
  .single-service .service-hero {
    margin-top: var(--space-48);
    margin-bottom: var(--space-24);
  }

  /* Intro Image Large (single post featured image) */
  .intro-image-large {
    height: var(--size-200, 200px);
  }

  .intro-image-large img {
    height: var(--size-200, 200px);
  }

  /* Service Next (Related Articles) */
  .service-next {
    margin-top: var(--space-48);
  }

  .service-next h2 {
    font-size: var(--text-size-28, 28px);
    margin-bottom: var(--space-20);
  }

  /* Breadcrumbs */
  .breadcrumbs {
    font-size: var(--text-size-12);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Career / Job page */
  .career-stats {
    flex-wrap: wrap;
  }

  .career-stat-item {
    flex: 1 1 calc(50% - 1px);
    min-width: 120px;
  }

  .career-stat-sep {
    display: none;
  }

  .career-listings-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-16);
  }

  .job-card__trigger {
    padding: var(--space-24) var(--space-20);
  }

  .job-card__body {
    padding: var(--space-24) var(--space-20);
  }

  .job-card__title {
    font-size: var(--text-size-22);
  }

  .job-card__apply {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-12);
  }

  .career-cta-strip__inner {
    flex-direction: column;
    gap: var(--space-24);
  }

  .career-hero__lead {
    font-size: var(--text-size-18);
  }
}