/**
 * Late responsive overrides — mobile-first interaction tuning.
 */

/* ═══════════════════════════════════════════════
   Tablet / small desktop (≤ 1050px)
   ═══════════════════════════════════════════════ */

@media (max-width: 1050px) {
  .site-header {
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 60px;
  }

  .site-header.is-open {
    min-height: 60px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 108px);
  }

  .brand-text {
    min-width: 0;
  }

  .brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ── Header actions: prevent shrinking on mobile ── */
  .header-actions {
    min-width: auto;
    gap: 8px;
    flex: 0 0 auto;
    flex-shrink: 0;
  }

  .header-actions > .language-switcher {
    display: none;
  }

  /* ── Mobile navigation drawer ── */
  .primary-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 0 20px 20px;
    border-top: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(7, 19, 32, 0.12);
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
  }

  .primary-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-item {
    position: relative;
    display: block;
    border-bottom: 1px solid var(--line);
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 14px 0;
    color: var(--ink);
    font-weight: 700;
    font-size: 16px;
  }

  .nav-link::after {
    bottom: 8px;
  }

  /* Hamburger button — larger touch target */
  .has-submenu > .nav-link {
    padding-right: 56px;
  }

  .has-submenu > .nav-link::before {
    display: none;
  }

  .has-submenu.is-open > .nav-link {
    color: var(--blue);
  }

  .submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 54px;
    border: 0;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
  }

  .submenu-toggle::before {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: translateY(-20%) rotate(45deg);
    transition: transform 160ms ease;
  }

  .has-submenu.is-open > .submenu-toggle::before {
    transform: translateY(15%) rotate(-135deg);
  }

  .submenu-panel {
    position: static;
    display: none;
    gap: 6px;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: none;
    overflow: visible;
    margin: -2px 0 12px;
    padding: 0;
    border-top: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .has-submenu:hover .submenu-panel,
  .has-submenu:focus-within .submenu-panel,
  .has-submenu.is-open .submenu-panel {
    transform: none;
  }

  .has-submenu.is-open > .submenu-panel {
    display: grid;
  }

  .submenu-panel a {
    width: 100%;
    max-width: none;
    min-height: 42px;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.35;
    white-space: normal;
  }

  .submenu-panel .submenu-summary-title {
    border: 1px solid var(--line);
    background: #f8fafc;
  }

  .submenu-summary-tree-group > .submenu-heading,
  .submenu-summary-tree-group:has(.submenu-children) > .submenu-heading {
    padding-right: 14px;
  }

  .submenu-summary-tree-group > .submenu-heading::before,
  .submenu-summary-tree-group:has(.submenu-children) > .submenu-heading::before,
  .submenu-summary-tree-group > .submenu-group-toggle {
    display: none;
  }

  .submenu-summary-tree-group > .submenu-summary-tree-detail,
  .submenu-summary-tree-group.is-open > .submenu-summary-tree-detail {
    display: none;
  }

  .submenu-panel > .submenu-link,
  .submenu-heading {
    border: 1px solid var(--line);
    background: #f8fafc;
  }

  .submenu-group {
    position: relative;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .submenu-group-depth-2 {
    padding-left: 12px;
  }

  .submenu-heading {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-right: 42px;
  }

  .submenu-group:has(.submenu-children) > .submenu-heading {
    padding-right: 42px;
  }

  .submenu-group:has(.submenu-children) > .submenu-heading::before {
    display: none;
  }

  .submenu-group-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 44px;
    border: 0;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
  }

  .submenu-group-toggle::before {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: translateY(-20%) rotate(45deg);
    transition: transform 160ms ease;
  }

  .submenu-group.is-open > .submenu-group-toggle::before {
    transform: translateY(15%) rotate(-135deg);
  }

  .submenu-children {
    width: 100%;
    max-width: none;
    padding: 4px 0 6px 12px;
  }

  .submenu-depth-2 {
    padding-left: 10px;
  }

  .submenu-panel a.submenu-child {
    padding: 8px 12px;
    color: var(--muted);
    font-size: 14px;
  }

  .submenu-panel a.submenu-child-depth-3 {
    padding-left: 18px;
    font-size: 13px;
  }

  .menu-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }

  /* Icon button — 44px minimum */
  .icon-button {
    width: 44px;
    height: 44px;
  }

  /* ── Search panel ── */
  .search-panel {
    padding: 16px 20px;
    top: 60px;
  }

  .search-form div {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .search-form input {
    padding: 14px 16px;
    font-size: 16px; /* Prevents iOS zoom */
  }

  .search-form button {
    padding: 0 20px;
    min-height: 50px;
    font-size: 16px;
  }

  /* ── Language switcher ── */
  .language-switcher a,
  .language-switcher span {
    min-width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .language-link {
    min-height: 44px;
    min-width: 44px;
    padding: 0 14px;
  }

  /* ── Sections ── */
  .section {
    padding: 56px 24px;
  }

  .page-hero,
  .enterprise-page-hero {
    padding: 56px 24px 40px;
  }

  .page-hero h1,
  .enterprise-page-hero h1 {
    font-size: 44px;
  }

  .enterprise-overview h2,
  .enterprise-module-head h2,
  .enterprise-cta h2,
  .home-enterprise-grid h2 {
    font-size: 44px;
  }

  .enterprise-overview {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .enterprise-content-grid {
    grid-template-columns: 1fr;
  }

  .enterprise-side-panel {
    position: static;
  }

  .enterprise-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .enterprise-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .enterprise-stat-grid {
    grid-template-columns: 1fr;
  }

  .enterprise-stat-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .enterprise-stat-grid article:last-child {
    border-bottom: 0;
  }

  .home-enterprise-grid {
    grid-template-columns: 1fr;
  }

  .home-enterprise-stack {
    grid-template-columns: 1fr;
  }

  .home-enterprise-stack div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-enterprise-stack div:last-child {
    border-bottom: 0;
  }

  .enterprise-cta {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    padding: 32px;
    gap: 24px;
  }

  /* ── Enterprise content body & side panel padding ── */
  .enterprise-content-body,
  .enterprise-side-panel {
    padding: 28px;
  }

  /* ── Home enterprise grid article padding ── */
  .home-enterprise-grid > article {
    padding: 32px;
  }

  .home-enterprise-stack div {
    padding: 28px 24px;
  }

  /* ── News item padding ── */
  .news-item {
    padding: 24px;
  }

  /* ── Section head margin ── */
  .section-head {
    margin-bottom: 28px;
  }

  /* ── Action strip & enterprise hero actions gap ── */
  .action-strip,
  .enterprise-hero-actions {
    gap: 12px;
  }

  /* ── Page hero decorative line ── */
  .page-hero::after {
    inset: auto 24px 0;
  }

  /* ── Footer ── */
  .footer-header {
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 0.9fr);
  }

  .footer-social-bar {
    grid-column: 2;
    justify-content: flex-start;
    justify-self: start;
  }

  .footer-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .footer-link-group.is-products .footer-link-list,
  .footer-link-group.is-brands .footer-link-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  .footer-social-item,
  .footer-social-trigger {
    width: 44px;
    height: 44px;
  }

  /* ── Product band ── */
  .product-band {
    grid-template-columns: 1fr;
    padding: 48px 24px;
    gap: 28px;
  }

  .product-copy {
    max-width: 100%;
    margin-left: 0;
  }

  /* ── About ── */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    font-size: 16px;
  }

  .service-grid,
  .solution-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-grid,
  .category-grid,
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-panel {
    grid-template-columns: 1fr;
  }

  .metric-panel {
    grid-template-columns: 1fr;
  }

  .metric-panel div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-panel div:last-child {
    border-bottom: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .sitemap-layout {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline-item {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }

  .site-footer {
    padding: 32px 24px 48px;
  }

  /* ── Screen layout: stack sidebar above results ── */
  .screen-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .screen-sidebar {
    position: static;
    padding: 18px;
  }

  .screen-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .screen-toolbar input,
  .screen-toolbar select,
  .screen-search input {
    min-height: 48px;
    font-size: 16px; /* Prevents iOS zoom */
  }

  .screen-toolbar button,
  .screen-search button {
    min-height: 48px;
    font-size: 16px;
  }

  /* ── Page anchor nav — horizontal scroll ── */
  .page-anchor-nav {
    top: 60px;
  }

  .page-anchor-nav .content-wrap {
    gap: 18px;
    padding: 0 20px;
  }

  .page-anchor-nav a {
    min-height: 48px;
    font-size: 14px;
  }

  /* ── Brand layout ── */
  .brand-layout {
    grid-template-columns: 1fr;
  }

  .brand-sidebar {
    position: static;
  }

  .brand-search {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .brand-search .screen-field {
    grid-column: 1 / -1;
  }

  .brand-search button {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════
   Mobile (≤ 720px)
   ═══════════════════════════════════════════════ */

@media (max-width: 720px) {
  /* ── Hero ── */
  .hero {
    min-height: 82svh;
    padding-bottom: 80px;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.12;
  }

  .hero-copy {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .primary-button,
  .secondary-button {
    flex: 1 1 auto;
    min-height: 50px;
    padding: 12px 18px;
    font-size: 15px;
  }

  .hero-status {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-status div {
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding: 14px 18px;
  }

  .hero-status div:last-child {
    border-bottom: 0;
  }

  .hero-status strong {
    font-size: 24px;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-top: 16svh;
  }

  /* ── Sections ── */
  .section {
    padding: 48px 16px;
  }

  .section h2,
  .product-copy h2,
  .site-footer h2 {
    font-size: 28px;
    line-height: 1.22;
  }

  .enterprise-feature-card h3 {
    font-size: 24px;
  }

  .enterprise-cta h2 {
    font-size: 28px;
  }

  /* ── Quick links — 2 column grid ── */
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-links a:nth-child(2n) {
    border-right: 0;
  }

  .quick-links a {
    border-bottom: 1px solid var(--line);
    min-height: 88px;
    padding: 18px 20px;
  }

  .quick-links strong {
    font-size: 16px;
  }

  /* ── Card grids → single column ── */
  .service-grid,
  .solution-grid,
  .news-grid,
  .capability-grid,
  .category-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .news-card {
    padding: 22px;
  }

  .service-card {
    min-height: 0;
  }

  .enterprise-feature-grid {
    grid-template-columns: 1fr;
  }

  .enterprise-feature-card {
    padding: 24px;
    min-height: 0;
  }

  .enterprise-flow {
    grid-template-columns: 1fr;
  }

  .enterprise-flow article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .enterprise-flow article:last-child {
    border-bottom: 0;
  }

  /* ── Enterprise stat grid ── */
  .enterprise-stat-grid article {
    padding: 24px;
    min-height: 0;
  }

  .enterprise-stat-grid strong {
    font-size: 40px;
  }

  /* ── Enterprise overview ── */
  .enterprise-overview h2,
  .enterprise-module-head h2 {
    font-size: 32px;
  }

  .enterprise-module-head {
    margin-bottom: 24px;
  }

  /* ── Action strip & enterprise hero actions — full width buttons ── */
  .action-strip,
  .enterprise-hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .action-strip .primary-button,
  .action-strip .secondary-button,
  .enterprise-hero-actions .primary-button,
  .enterprise-hero-actions .secondary-button {
    width: 100%;
    flex: none;
  }

  /* ── Enterprise content body & side panel ── */
  .enterprise-content-body,
  .enterprise-side-panel {
    padding: 22px;
  }

  .enterprise-page-hero + .enterprise-content-section .enterprise-content-body {
    margin-top: -36px;
  }

  /* ── Enterprise CTA ── */
  .enterprise-cta {
    padding: 24px;
  }

  /* ── Home enterprise grid article ── */
  .home-enterprise-grid > article {
    padding: 24px;
  }

  .home-enterprise-stack div {
    padding: 22px 20px;
  }

  .home-enterprise-stack span {
    margin-top: 28px;
    font-size: 22px;
  }

  /* ── News item ── */
  .news-item {
    padding: 20px;
  }

  /* ── Page hero decorative line ── */
  .page-hero::after {
    inset: auto 16px 0;
  }

  /* ── Enterprise overview paragraph ── */
  .enterprise-overview p:not(.eyebrow),
  .home-enterprise-grid p {
    font-size: 16px;
  }

  /* ── WordPress content headings ── */
  .wp-page-content h2 {
    font-size: 22px;
  }

  .wp-page-content h3 {
    font-size: 18px;
  }

  .wp-page-content h4 {
    font-size: 16px;
  }

  /* ── Footer ── */
  .footer-links {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 20px;
  }

  .footer-link-group.is-products .footer-link-list,
  .footer-link-group.is-brands .footer-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-legal {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-legal-nav {
    flex-wrap: wrap;
    gap: 4px;
  }

  .footer-legal-nav a {
    padding: 8px 12px;
    min-height: 40px;
    border-left: 0;
  }

  .footer-legal-nav a:not(:first-child) {
    border-left: 0;
  }

  .footer-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-contact {
    width: 100%;
    justify-self: start;
    text-align: left;
  }

  .footer-contact address {
    justify-items: start;
    text-align: left;
  }

  .footer-social-bar {
    grid-column: auto;
    justify-content: flex-start;
    justify-self: start;
    gap: 10px;
  }

  /* ── Content panels ── */
  .info-panel,
  .list-panel,
  .contact-panel {
    padding: 22px;
  }

  .info-panel h3,
  .metric-panel h3,
  .list-panel h3,
  .contact-panel h3 {
    font-size: 22px;
  }

  /* ── Tables — horizontal scroll ── */
  .wp-page-content table,
  .product-sidebar-markdown table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .product-sidebar-markdown table,
  .product-sidebar-markdown thead,
  .product-sidebar-markdown tbody,
  .product-sidebar-markdown tr,
  .product-sidebar-markdown th,
  .product-sidebar-markdown td {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .product-sidebar-markdown table {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .product-sidebar-markdown thead {
    display: none;
  }

  .product-sidebar-markdown tbody {
    display: grid;
    gap: 10px;
  }

  .product-sidebar-markdown tbody tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
  }

  .product-sidebar-markdown tbody td {
    border-bottom: 0;
    padding: 10px 12px;
  }

  .product-sidebar-markdown tbody td:first-child {
    color: var(--ink);
    background: var(--mist);
    font-weight: 800;
  }

  .spec-list div {
    grid-template-columns: 100px 1fr;
  }

  .spec-list dt,
  .spec-list dd {
    padding: 10px 12px;
    font-size: 14px;
  }

  /* ── Page hero ── */
  .page-hero,
  .enterprise-page-hero {
    padding: 48px 16px 36px;
    min-height: 280px;
  }

  .page-hero h1,
  .enterprise-page-hero h1 {
    font-size: 34px;
    line-height: 1.14;
  }

  .page-hero p:not(.eyebrow),
  .enterprise-page-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .enterprise-page-hero {
    min-height: 360px;
    padding-top: 80px;
  }

  /* ── Screen hero ── */
  .screen-hero {
    min-height: 320px;
    padding: 48px 16px 32px;
  }

  .screen-hero h1 {
    font-size: 32px;
  }

  .screen-summary h2 {
    font-size: 26px;
  }

  /* ── Product result cards ── */
  .product-result-card {
    padding: 20px;
    min-height: 0;
  }

  .product-result-card h3 {
    font-size: 20px;
  }

  .product-result-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .screen-view-toggle button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  /* ── Brand result cards ── */
  .brand-result-card-head {
    padding: 18px 20px 14px;
  }

  .brand-result-card-head h3 {
    font-size: 22px;
  }

  .brand-result-body {
    padding: 18px 20px 20px;
  }

  .brand-result-tags a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  /* ── Brand search ── */
  .brand-search {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }

  .brand-result-card-head,
  .brand-result-item-head {
    flex-direction: column;
    align-items: flex-start;
  }

  /* ── Product gallery ── */
  .product-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* ── FAQ ── */
  .faq-list details {
    padding: 12px 14px;
  }

  .faq-list summary {
    font-size: 15px;
  }

  .faq-list p {
    font-size: 14px;
  }

  /* ── Cookie consent ── */
  .cookie-consent {
    padding: 0 12px 12px;
  }

  .cookie-consent-panel {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 18px;
  }

  .cookie-consent-panel p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.5;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-actions button {
    flex: 1;
    min-height: 44px;
    padding: 0 12px;
    font-size: 15px;
  }

  /* ── Floating contact button ── */
  .floating-contact-button {
    right: 16px;
    bottom: 16px;
    min-height: 48px;
    padding: 0 18px 0 20px;
    font-size: 14px;
  }

  /* ── Cookie settings button ── */
  .cookie-settings-button {
    padding: 12px 8px;
    font-size: 13px;
  }

  /* ── Breadcrumb ── */
  .breadcrumb {
    font-size: 13px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .breadcrumb a {
    padding: 6px 0;
  }

  /* ── Legal page ── */
  .legal-page-content h1 {
    font-size: 28px;
  }

  .legal-page-content h2 {
    font-size: 20px;
  }

  /* ── Empty state ── */
  .empty-state {
    padding: 40px 24px;
  }

  /* ── Screen mini ── */
  .screen-mini {
    width: calc(100% - 32px);
    gap: 14px;
  }

  /* ── Screen toolbar ── */
  .screen-toolbar {
    padding: 16px;
    gap: 10px;
  }

  .screen-field label {
    font-size: 12px;
  }

  /* ── Sitemap ── */
  .sitemap-list > li {
    margin-top: 14px;
  }

  .sitemap-list a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }
}

/* ═══════════════════════════════════════════════
   Small mobile (≤ 480px)
   ═══════════════════════════════════════════════ */

@media (max-width: 480px) {
  .site-header {
    padding-right: 12px;
    padding-left: 12px;
    gap: 8px;
  }

  .brand {
    max-width: calc(100% - 104px);
  }

  .brand-logo {
    max-width: 140px;
    max-height: 34px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .section h2,
  .product-copy h2 {
    font-size: 24px;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .quick-links a {
    border-right: 0;
    min-height: 72px;
    padding: 16px 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-link-group.is-products .footer-link-list,
  .footer-link-group.is-brands .footer-link-list {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    align-items: flex-start;
    text-align: left;
  }

  .footer-legal-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
    gap: 4px 16px;
  }

  .footer-legal-nav a {
    justify-content: flex-start;
    min-height: 32px;
    padding: 4px 0;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    display: none;
  }

  .page-hero h1,
  .enterprise-page-hero h1 {
    font-size: 28px;
  }

  .screen-hero h1 {
    font-size: 26px;
  }

  .screen-summary h2 {
    font-size: 22px;
  }

  .enterprise-overview h2,
  .enterprise-module-head h2 {
    font-size: 26px;
  }

  .enterprise-stat-grid strong {
    font-size: 32px;
  }

  .enterprise-feature-card h3 {
    font-size: 20px;
  }

  .enterprise-cta h2 {
    font-size: 24px;
  }

  .home-enterprise-stack span {
    font-size: 20px;
  }

  /* Stack view toggle buttons full width */
  .screen-view-toggle {
    width: 100%;
  }

  .screen-view-toggle button {
    flex: 1;
    justify-content: center;
  }

  /* Floating button — icon only on very small screens */
  .floating-contact-button {
    padding: 0 16px;
    min-height: 48px;
    min-width: 48px;
  }

  .floating-contact-button span {
    display: none;
  }
}

/* ═══════════════════════════════════════════════
   Body scroll lock when nav is open
   ═══════════════════════════════════════════════ */

@media (max-width: 1050px) {
  body.nav-is-open {
    overflow: hidden;
  }

  body.nav-is-open .site-header {
    background: rgba(255, 255, 255, 0.97);
  }

  body.nav-is-open .cookie-settings-button,
  body.nav-is-open .floating-contact-button {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  /* Backdrop overlay when nav is open */
  .nav-backdrop {
    position: fixed;
    inset: 60px 0 0 0;
    z-index: 19;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 280ms ease, visibility 280ms ease;
  }

  .nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  /* ── Language switcher inside mobile nav drawer ── */
  .nav-language-switcher {
    display: flex;
    justify-content: center;
    margin: 18px 0 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    background: transparent;
    border-radius: 0;
  }

  .nav-language-switcher a,
  .nav-language-switcher span {
    flex: 1;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--ink);
    background: var(--white);
  }

  .nav-language-switcher a + a,
  .nav-language-switcher a + span,
  .nav-language-switcher span + a,
  .nav-language-switcher span + span {
    border-left: 0;
  }

  .nav-language-switcher a.is-current {
    color: var(--white);
    background: var(--ink);
  }

  .nav-language-switcher .is-disabled {
    color: var(--muted);
    background: var(--mist);
  }
}
