/*
Theme Name: Mapvision Theme
Theme URI: https://www.mapvision.fi
Author: Mapvision
Author URI: https://www.mapvision.fi
Description: Custom WordPress theme for Mapvision - 100% In-Line Inspection for Automotive Industry
Version: 1.0.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mapvision
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --color-primary: #20374D;
  --color-accent: #00cdcd;
  --color-orange: #FF7A00;
  --color-orange-hover: #EE7300;
  --color-white: #ffffff;
  --color-light-gray: #F3F3F3;
  --color-border: #DADADA;
  --color-text: #20374D;
  --color-error: #EF6B51;
  --font-primary: 'Roboto', sans-serif;
  --max-width: 1240px;
  --header-height: 80px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

/* Override WordPress block library defaults that break custom theme layouts */
.site-main .hero__grid,
.site-main .stats__grid,
.site-main .quick-links__grid,
.site-main .product-section__grid,
.site-main .use-cases__tabs,
.site-main .use-cases__panel.active,
.site-main .demo-section__grid,
.site-main .featured-cards__grid,
.site-main .featured-card,
.site-main .buttons-group,
.site-main .footer__content,
.site-main .footer__menus,
.site-main .footer__legal,
.site-main .footer__social,
.site-main .navbar,
.site-main .navbar__menu,
.site-main .logo-scroll,
.site-main .logo-scroll__track {
  display: flex !important;
}

.site-main .use-cases__panel:not(.active) {
  display: none !important;
}

*, *:before, *:after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  line-height: 1.4;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  border-style: none;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-orange);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  text-decoration: underline;
}

p {
  font-size: 16px;
  line-height: 1.375;
  margin: 0 0 1.4rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  margin: 0 0 1.4rem;
  color: var(--color-text);
}

h1 { font-size: 40px; font-weight: 400; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; font-weight: 400; }

ul, ol {
  margin: 0 0 1.5rem;
  padding: 0 0 0 1.1rem;
}

hr {
  background-color: #CCC;
  border: none;
  height: 1px;
  margin: 1rem 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.content-wrapper {
  margin: 0 auto;
  padding: 0 20px;
  max-width: var(--max-width);
}

@media screen and (min-width: 1380px) {
  .content-wrapper { padding: 0; }
}

.section {
  padding: 80px 20px;
}

.section > .content-wrapper {
  max-width: var(--max-width);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  background-color: var(--color-orange);
  border: 0;
  border-radius: 3px;
  color: var(--color-white);
  padding: 15px 25px;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: bold;
  display: inline-block;
  cursor: pointer;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s linear;
  white-space: nowrap;
}

.btn:hover, .btn:focus {
  background-color: var(--color-orange-hover);
  color: var(--color-white);
  text-decoration: none;
  transform: scale(1.05);
}

.btn--outlined {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  font-weight: bold;
}

.btn--outlined:hover, .btn--outlined:focus {
  background-color: rgba(0, 205, 205, 0.1);
  color: var(--color-accent);
  transform: scale(1.05);
}

.btn--arrow {
  color: var(--color-text);
  background: none;
  border: none;
  padding: 0;
  font-size: 0.75rem;
  font-weight: bold;
  transition: color 0.15s linear;
}

.btn--arrow:after {
  content: url("data:image/svg+xml,%3Csvg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 13'%3E%3Cpath d='M37.5303 7.0303a.75.75 0 000-1.0606l-4.7729-4.773a.75.75 0 00-1.0607 1.0607L35.9393 6.5l-4.2426 4.2426a.75.75 0 001.0607 1.0607l4.7729-4.773zM0 7.25h37v-1.5H0v1.5z' fill='%2320374D'/%3E%3C/svg%3E");
  width: 36px;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
  transition: margin 0.15s linear;
}

.btn--arrow:hover {
  background: none;
  color: var(--color-accent);
  text-decoration: none;
  transform: none;
}

.btn--arrow:hover:after {
  content: url("data:image/svg+xml,%3Csvg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 13'%3E%3Cpath d='M37.5303 7.0303a.75.75 0 000-1.0606l-4.7729-4.773a.75.75 0 00-1.0607 1.0607L35.9393 6.5l-4.2426 4.2426a.75.75 0 001.0607 1.0607l4.7729-4.773zM0 7.25h37v-1.5H0v1.5z' fill='%2300cdcd'/%3E%3C/svg%3E");
  margin-left: 10px;
}

.btn--white-outlined {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  font-weight: bold;
}

.btn--white-outlined:hover {
  background-color: rgba(0, 205, 205, 0.15);
  color: var(--color-accent);
  text-decoration: none;
  transform: scale(1.05);
}

.buttons-group {
  display: flex !important;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

@media screen and (max-width: 480px) {
  .buttons-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background: var(--color-primary);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s ease;
}

/* Override WordPress block library for header elements */
.site-header .navbar,
.site-header .navbar__menu {
  display: flex !important;
}

.navbar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.navbar__logo img {
  display: block;
  max-width: 164px;
  height: auto;
}

.navbar__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  height: 100%;
  align-items: center;
}

.navbar__item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar__link {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 100%;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-white);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
  position: relative;
}

.navbar__link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.navbar__link:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.navbar__link:hover:after {
  transform: scaleX(1);
}

/* Dropdown indicator */
.navbar__item.has-children > .navbar__link:before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  margin-bottom: 2px;
  transition: transform 0.2s ease;
}

/* Submenu */
.submenu-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  padding-top: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 100;
}

.navbar__item:hover > .submenu-wrapper {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.submenu {
  background: var(--color-white);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 8px 8px;
  padding: 24px 32px;
  list-style: none;
  margin: 0;
}

.submenu__group-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
  padding: 8px 0 4px;
}

.submenu__group-label:not(:first-child) {
  margin-top: 16px;
  border-top: 1px solid #eee;
  padding-top: 16px;
}

.submenu__link {
  display: block;
  padding: 8px 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.submenu__link:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.navbar__cta {
  margin-left: 16px;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s ease;
  position: absolute;
  left: 8px;
}

.hamburger-line:nth-child(1) { top: 11px; }
.hamburger-line:nth-child(2) { top: 19px; }
.hamburger-line:nth-child(3) { top: 27px; }

.navbar__hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
  top: 19px;
}

.navbar__hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
  top: 19px;
}

/* Push page content below the fixed header — no extra div needed */
.site-main {
  padding-top: var(--header-height);
}

/* Desktop: ensure nav is visible and flexed */
.navbar__nav {
  display: flex !important;
  align-items: center;
  gap: 0;
}

/* WordPress admin bar offset */
.admin-bar .site-header {
  top: 32px;
}

.admin-bar .site-main {
  padding-top: calc(var(--header-height) + 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
  .admin-bar .site-main {
    padding-top: calc(var(--header-height) + 46px);
  }
}

@media screen and (max-width: 1024px) {
  .navbar__hamburger {
    display: block;
  }

  .navbar__nav {
    display: block !important;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--color-primary);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 20px;
    z-index: 98;
  }

  .navbar__nav.active {
    transform: translateX(0);
  }

  .navbar__menu {
    flex-direction: column;
    height: auto;
    gap: 0;
  }

  .navbar__item {
    width: 100%;
    height: auto;
    flex-direction: column;
  }

  .navbar__link {
    padding: 16px 0;
    width: 100%;
    justify-content: space-between;
  }

  .navbar__link:after { display: none; }

  .submenu-wrapper {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    display: none;
    min-width: 100%;
  }

  .navbar__item.submenu-open > .submenu-wrapper {
    display: block;
  }

  .submenu {
    box-shadow: none;
    padding: 0 0 16px 16px;
  }

  .navbar__cta {
    margin: 16px 0 0;
    text-align: center;
  }
}

/* ==========================================================================
   Quick Links Bar
   ========================================================================== */
.quick-links {
  background: var(--color-white);
  border-bottom: 1px solid #eee;
  padding: 24px 0;
}

.quick-links__grid {
  display: flex !important;
  justify-content: space-between;
  gap: 40px;
}

.quick-links__item h4 {
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 16px;
}

.quick-links__item p {
  font-size: 14px;
  color: #888;
  margin: 0;
  line-height: 1.4;
}

@media screen and (max-width: 768px) {
  .quick-links__grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 20px 0 40px;
}

.hero__grid {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 40px;
}

.hero__content {
  flex: 0 0 38%;
  max-width: 430px;
}

.hero__media {
  flex: 1;
}

.hero__preheader {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero__title {
  font-size: 45px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--color-text);
  margin: 0 0 1.4rem;
}

.hero__description {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 2rem;
}

.hero__video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.hero__video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
  border: none;
}

.hero__video-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--color-white);
}

.hero__video-play svg {
  width: 24px;
  height: 24px;
  margin-left: 4px;
  fill: var(--color-text);
}

@media screen and (max-width: 960px) {
  .hero__grid {
    flex-direction: column;
  }
  .hero__content {
    flex: none;
    max-width: none;
    text-align: center;
  }
  .hero__title { font-size: 36px; }
  .buttons-group {
    justify-content: center;
  }
}

/* ==========================================================================
   Stats Cards
   ========================================================================== */
.stats {
  padding: 30px 20px 50px;
}

.stats__grid {
  display: flex !important;
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.stats__card {
  flex: 1;
  background: var(--color-white);
  border: 0.5px solid rgba(100, 146, 253, 0.2);
  box-shadow: 0px 11px 30px rgba(154, 161, 177, 0.2);
  border-radius: 9px;
  padding: 20px 24px;
}

.stats__number {
  font-size: 37px;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin: 0 0 8px;
}

.stats__label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .stats__grid {
    flex-direction: column;
  }
}

/* ==========================================================================
   Preferred By / Logo Banner
   ========================================================================== */
.logo-banner {
  background: linear-gradient(rgba(210, 213, 216, 0.3), rgba(210, 213, 216, 0.3));
  padding: 60px 20px;
  text-align: center;
  overflow: hidden;
}

.logo-banner__title {
  font-size: 36px;
  font-weight: 900;
  color: var(--color-accent);
  margin: 0 0 12px;
}

.logo-banner__subtitle {
  font-size: 16px;
  margin: 0 0 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.logo-scroll {
  display: flex !important;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo-scroll__track {
  display: flex !important;
  align-items: center;
  gap: 80px;
  animation: scrollLogos 30s linear infinite;
  will-change: transform;
}

.logo-scroll__item {
  flex-shrink: 0;
}

.logo-scroll__item img {
  display: block;
  width: 80px;
  height: auto;
  opacity: 0.7;
  filter: grayscale(30%);
  transition: opacity 0.3s ease;
}

.logo-scroll__item img.logo-large {
  width: 130px;
}

@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   G-Series Product Section
   ========================================================================== */
.product-section {
  background: var(--color-primary);
  padding: 80px 20px;
}

.product-section__grid {
  display: flex !important;
  align-items: center;
  gap: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.product-section__image {
  flex: 0 0 45%;
  text-align: center;
}

.product-section__image img {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.product-section__content {
  flex: 1;
}

.product-section .preheader {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-section__title {
  font-size: 50px;
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.product-section__subtitle {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-orange);
  margin: 0 0 1rem;
}

.product-section__description {
  color: var(--color-white);
  margin: 0 0 2rem;
}

@media screen and (max-width: 960px) {
  .product-section__grid {
    flex-direction: column;
    text-align: center;
  }
  .product-section__image { flex: none; }
  .product-section__title { font-size: 36px; }
  .buttons-group { justify-content: center; }
}

/* ==========================================================================
   Use Cases / Tabbed Features
   ========================================================================== */
.use-cases {
  padding: 80px 20px;
}

.use-cases__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.use-cases .preheader {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.use-cases__heading {
  font-size: 48px;
  font-weight: 900;
  margin: 0 0 32px;
}

.use-cases__tabs {
  display: flex !important;
  gap: 0;
  border-bottom: 2px solid #eee;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.use-cases__tab {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #999;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
  border: none;
  background: none;
  font-family: var(--font-primary);
}

.use-cases__tab:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.use-cases__tab:hover {
  color: var(--color-text);
}

.use-cases__tab.active {
  color: var(--color-text);
  font-weight: 700;
}

.use-cases__tab.active:after {
  transform: scaleX(1);
}

.use-cases__panel {
  display: none !important;
}

.use-cases__panel.active {
  display: flex !important;
  gap: 40px;
  align-items: center;
}

.use-cases__panel-image {
  flex: 0 0 45%;
  text-align: center;
  padding: 20px;
  background: var(--color-light-gray);
  border-radius: 12px;
}

.use-cases__panel-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.use-cases__panel-content {
  flex: 1;
}

.use-cases__panel-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 24px;
}

.use-cases__stat-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin: 0;
}

.use-cases__stat-label {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 16px;
}

@media screen and (max-width: 768px) {
  .use-cases__panel.active {
    flex-direction: column;
  }
  .use-cases__panel-image { flex: none; }
  .use-cases__heading { font-size: 36px; }
  .use-cases__panel-title { font-size: 30px; }
}

/* ==========================================================================
   See in Action / Contact Form Section
   ========================================================================== */
.demo-section {
  background: linear-gradient(rgba(250, 250, 250, 0.5), rgba(250, 250, 250, 0.5));
  padding: 0;
}

.demo-section__grid {
  display: flex !important;
  align-items: center;
  min-height: 50vh;
  max-width: 100%;
}

.demo-section__content {
  flex: 1;
  padding: 80px 20px 80px 0;
  max-width: calc(var(--max-width) / 2 + 60px);
  margin-left: auto;
  padding-left: calc((100vw - var(--max-width)) / 2);
}

@media screen and (min-width: 1380px) {
  .demo-section__content {
    padding-left: 0;
    margin-left: auto;
    max-width: 620px;
    padding-right: 60px;
  }
}

.demo-section__title {
  font-size: 45px;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin: 0 0 16px;
}

.demo-section__subtitle {
  margin: 0 0 32px;
}

.demo-section__image {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
}

.demo-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 600px;
}

/* Form Styles */
.contact-form {
  max-width: 600px;
}

.form-row {
  display: flex !important;
  gap: 16px;
  margin-bottom: 0;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.form-group label .required {
  color: var(--color-error);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-family: var(--font-primary);
  padding: 0.75rem 1rem;
  color: var(--color-text);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

@media screen and (max-width: 960px) {
  .demo-section__grid {
    flex-direction: column;
  }
  .demo-section__content {
    max-width: none;
    padding: 60px 20px;
    margin: 0;
  }
  .demo-section__image {
    flex: none;
    width: 100%;
  }
  .demo-section__image img {
    min-height: 300px;
  }
  .demo-section__title {
    font-size: 36px;
  }
}

@media screen and (max-width: 480px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ==========================================================================
   Featured Cards / Articles
   ========================================================================== */
.featured-cards {
  background: var(--color-primary);
  padding: 80px 20px;
}

.featured-cards__grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.featured-card {
  background: var(--color-white);
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0px 11px 30px rgba(154, 161, 177, 0.2);
  display: flex !important;
  flex-wrap: wrap;
}

.featured-card--large {
  flex: 1 1 100%;
}

.featured-card--small {
  flex: 1 1 calc(50% - 12px);
}

.featured-card__body {
  padding: 32px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 250px;
}

.featured-card__preheader {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.featured-card__body h2,
.featured-card__body h3 {
  font-weight: 900;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.featured-card__body p {
  margin: 0 0 2rem;
}

.featured-card__image {
  flex: 1 1 360px;
}

.featured-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media screen and (max-width: 768px) {
  .featured-card--small {
    flex: 1 1 100%;
  }
  .featured-card {
    flex-direction: column;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Override WordPress block library for footer elements */
.site-footer .footer__content,
.site-footer .footer__menus,
.site-footer .footer__legal,
.site-footer .footer__social {
  display: flex !important;
}

.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4,
.site-footer h5, .site-footer h6, .site-footer p, .site-footer a,
.site-footer div, .site-footer span {
  color: var(--color-white);
}

.footer__content {
  display: flex !important;
  justify-content: space-between;
  padding: 80px 0;
}

.footer__info {
  flex-basis: 250px;
}

.footer__info img {
  display: block;
  margin: 0;
  max-width: 134px;
}

.footer__address {
  margin: 32px 0 16px;
}

.footer__address p {
  font-size: 0.875em;
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
}

.footer__social svg {
  width: 25px;
  height: 25px;
  fill: var(--color-white);
  transition: fill 0.25s ease;
}

.footer__social a:hover svg {
  fill: var(--color-accent);
}

.footer__menus {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0;
}

.footer__menu-group {
  margin: 0 42px;
}

.footer__menu-group h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 2rem;
}

.footer__menu-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__menu-group a {
  display: block;
  font-size: 0.875em;
  font-weight: 500;
  line-height: 17px;
  margin: 0 0 1.375em;
  transition: color 0.2s ease;
}

.footer__menu-group a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer__legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.875rem;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__legal a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

@media screen and (max-width: 1024px) {
  .footer__content {
    padding: 40px 0;
  }
}

@media screen and (max-width: 768px) {
  .footer__content {
    flex-direction: column;
    gap: 32px;
  }
  .footer__menus {
    gap: 0;
  }
  .footer__menu-group {
    margin: 16px;
    flex: 1 1 calc(50% - 32px);
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.text-accent { color: var(--color-accent); }
.text-orange { color: var(--color-orange); }
.fw-900 { font-weight: 900; }
.fw-700 { font-weight: 700; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* WordPress specific */
.wp-block-image img { max-width: 100%; height: auto; }
.aligncenter { text-align: center; margin: 0 auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }

/* ==========================================================================
   Q-Series Page
   ========================================================================== */

/* --- Hero --- */
.qseries-hero {
  padding: 50px 20px;
  background: var(--color-white);
}

.qseries-hero__grid {
  display: flex !important;
  align-items: center;
  gap: 40px;
}

.qseries-hero__content {
  flex: 1 1 45%;
}

.qseries-hero__image {
  flex: 1 1 50%;
  text-align: center;
}

.qseries-hero__image img {
  max-width: 600px;
  width: 100%;
  height: auto;
}

.qseries-hero__title {
  font-size: 70px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.qseries-hero__subtitle {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1rem;
}

.qseries-hero__description {
  color: #4a5866;
  line-height: 1.5;
  margin: 0 0 2rem;
}

@media screen and (max-width: 960px) {
  .qseries-hero__grid { flex-direction: column; }
  .qseries-hero__title { font-size: 48px; }
}

/* --- How It Works --- */
.how-it-works__heading {
  font-size: 65px;
  font-weight: 900;
  margin: 0 0 32px;
}

.how-it-works__tabs {
  display: flex !important;
  gap: 0;
  border-bottom: 2px solid #eee;
  margin: 0 0 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.how-it-works__tab {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #999;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
  border: none;
  background: none;
  font-family: var(--font-primary);
}

.how-it-works__tab:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.how-it-works__tab:hover { color: var(--color-text); }

.how-it-works__tab.active {
  color: var(--color-accent);
  font-weight: 700;
}

.how-it-works__tab.active:after { transform: scaleX(1); }

.how-it-works__panel {
  display: none !important;
  background: var(--color-light-gray);
  border-radius: 0 0 12px 12px;
}

.how-it-works__panel.active {
  display: flex !important;
  align-items: center;
  gap: 40px;
  padding: 40px;
}

.how-it-works__panel-image {
  flex: 0 0 40%;
  text-align: center;
}

.how-it-works__panel-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.how-it-works__panel-content {
  flex: 1;
}

.how-it-works__panel-content h3 {
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 16px;
}

.how-it-works__panel-content p {
  line-height: 1.75;
  font-size: 15px;
  color: #4a5866;
}

@media screen and (max-width: 768px) {
  .how-it-works__heading { font-size: 42px; }
  .how-it-works__panel.active { flex-direction: column; padding: 24px; }
}

/* --- Features Grid --- */
.features-grid {
  padding-top: 80px;
  padding-bottom: 80px;
}

.features-grid__row {
  display: flex !important;
  flex-wrap: wrap;
  gap: 40px 40px;
}

.features-grid__card {
  flex: 1 1 calc(33.333% - 28px);
  min-width: 260px;
}

.features-grid__icon {
  display: block;
  width: 55px;
  height: auto;
  margin: 0 0 16px;
}

.features-grid__title {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
}

.features-grid__text {
  font-size: 14px;
  line-height: 1.5;
  color: #4a5866;
}

@media screen and (max-width: 768px) {
  .features-grid__card {
    flex: 1 1 100%;
  }
}

/* --- 100% In-line Section --- */
.inline-section__grid {
  display: flex !important;
  align-items: center;
  gap: 40px;
}

.inline-section__content {
  flex: 1 1 45%;
}

.inline-section__title {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.inline-section__image {
  flex: 1 1 50%;
  text-align: center;
}

.inline-section__image img {
  max-width: 650px;
  width: 100%;
  height: auto;
}

@media screen and (max-width: 960px) {
  .inline-section__grid { flex-direction: column; }
  .inline-section__title { font-size: 40px; }
}

/* --- Use Cases Slider --- */
.qseries-usecases__grid {
  display: flex !important;
  align-items: flex-start;
  gap: 40px;
}

.qseries-usecases__content {
  flex: 1 1 45%;
}

.qseries-usecases__title {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.qseries-usecases__slider {
  flex: 1 1 50%;
  position: relative;
  max-width: 500px;
}

.uc-slide {
  display: none;
  border: 0.5px solid rgba(100, 146, 253, 0.2);
  box-shadow: 0px 11px 30px rgba(154, 161, 177, 0.2);
  border-radius: 9px;
  overflow: hidden;
  background: var(--color-white);
}

.uc-slide.slide--active {
  display: block !important;
}

.uc-slide__header {
  background: var(--color-light-gray);
  padding: 16px 32px;
}

.uc-slide__body {
  padding: 24px 32px;
}

.uc-slide__title {
  font-size: 35px;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 16px;
}

.uc-slide__image {
  margin: 0 0 16px;
}

.uc-slide__image img {
  max-width: 250px;
  width: 100%;
  height: auto;
}

.uc-slide__number {
  font-size: 36px;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin: 0;
}

.uc-slide__label {
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 8px;
}

.uc-slide__stats hr {
  margin: 12px 0;
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 16px;
  width: 30px;
  height: 30px;
  background: var(--color-white);
  border-radius: 50%;
  border: none;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: box-shadow 0.2s ease;
}

.slider-arrow:hover {
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
}

.slider-arrow svg {
  fill: #3A3A3A;
  width: 15px;
  height: 12px;
}

.slider-arrow--prev {
  left: -15px;
}

.slider-arrow--next {
  right: -15px;
}

@media screen and (max-width: 960px) {
  .qseries-usecases__grid { flex-direction: column; }
  .qseries-usecases__title { font-size: 40px; }
  .qseries-usecases__slider { max-width: 100%; }
  .slider-arrow--prev { left: 4px; }
  .slider-arrow--next { right: 4px; }
}

/* --- Brochure CTA --- */
.brochure-cta {
  background: var(--color-primary);
  padding: 0;
}

.brochure-cta__grid {
  display: flex !important;
  align-items: center;
  max-width: 100%;
}

.brochure-cta__content {
  flex: 1 1 45%;
  padding: 80px 20px 80px 0;
  max-width: calc(var(--max-width) / 2 + 60px);
  margin-left: auto;
  color: var(--color-white);
}

@media screen and (min-width: 1380px) {
  .brochure-cta__content {
    padding-left: 0;
    margin-left: auto;
    max-width: 550px;
    padding-right: 60px;
  }
}

.brochure-cta__title {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--color-accent);
  margin: 0 0 1rem;
}

.brochure-cta__content p {
  color: var(--color-white);
  font-size: 15px;
  margin: 0 0 1rem;
}

.brochure-cta__image {
  flex: 0 0 50%;
}

.brochure-cta__image img {
  width: 100%;
  height: auto;
  display: block;
}

@media screen and (max-width: 960px) {
  .brochure-cta__grid { flex-direction: column; }
  .brochure-cta__content {
    max-width: none;
    padding: 60px 20px;
    margin: 0;
  }
  .brochure-cta__title { font-size: 42px; }
  .brochure-cta__image { flex: none; width: 100%; }
}

/* ==========================================================================
   Multi-Camera Technology Page
   ========================================================================== */

/* --- MCT Hero (Dark) --- */
.mct-hero {
  background: var(--color-primary);
  padding: 20px 20px 80px;
}

.mct-hero__grid {
  display: flex !important;
  align-items: center;
  gap: 40px;
}

.mct-hero__content {
  flex: 1 1 45%;
}

.mct-hero__title {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 1rem;
}

.mct-hero__subtitle {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 1rem;
}

.mct-hero__content p {
  color: var(--color-white);
  line-height: 1.5;
}

.mct-hero__image {
  flex: 1 1 50%;
  text-align: center;
}

.mct-hero__image img {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 960px) {
  .mct-hero__grid { flex-direction: column; }
  .mct-hero__title { font-size: 48px; }
}

/* --- Powered By Section --- */
.mct-powered {
  text-align: center;
  padding-bottom: 0;
}

.mct-powered__label {
  font-size: 14px;
  margin: 0 0 8px;
}

.mct-powered__title {
  font-size: 55px;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin: 0 0 1.5rem;
}

.mct-powered__desc {
  text-align: center;
}

@media screen and (max-width: 768px) {
  .mct-powered__title { font-size: 36px; }
}

/* --- Digitalization Dark Section --- */
.mct-digitalization {
  background: var(--color-primary);
  padding: 80px 20px;
  text-align: center;
}

.mct-digitalization__title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 1.5rem;
}

.mct-digitalization p {
  color: var(--color-white);
}

@media screen and (max-width: 768px) {
  .mct-digitalization__title { font-size: 30px; }
}

/* --- Video Section --- */
.mct-video {
  background: var(--color-primary);
  padding: 0 20px 80px;
}

.mct-video__wrapper {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.mct-video__wrapper video {
  width: 100%;
  display: block;
}

/* --- MCT Use Cases Section --- */
.mct-usecases {
  padding: 80px 20px;
}

.mct-usecases__heading {
  font-size: 40px;
  font-weight: 900;
  margin: 0 0 1rem;
}

.mct-usecases__tabs {
  margin-top: 40px !important;
}

.mct-uc-panel {
  display: none !important;
  background: var(--color-light-gray);
  border-radius: 0 0 12px 12px;
}

.mct-uc-panel.active {
  display: flex !important;
  align-items: center;
  gap: 40px;
  padding: 40px;
}

.mct-uc-panel__image {
  flex: 0 0 45%;
  text-align: center;
}

.mct-uc-panel__image img {
  max-width: 500px;
  width: 100%;
  height: auto;
}

.mct-uc-panel__content {
  flex: 1;
}

@media screen and (max-width: 768px) {
  .mct-usecases__heading { font-size: 30px; }
  .mct-uc-panel.active { flex-direction: column; padding: 24px; }
}

/* ==========================================================================
   Use Cases Page
   ========================================================================== */

/* --- UC Hero (Dark) --- */
.uc-hero {
  background: var(--color-primary);
  padding: 20px 20px 80px;
}

.uc-hero__grid {
  display: flex !important;
  align-items: center;
  gap: 40px;
}

.uc-hero__content {
  flex: 1 1 50%;
}

.uc-hero__content .preheader {
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 700;
  display: block;
  margin: 0 0 12px;
}

.uc-hero__title {
  font-size: 62px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--color-white);
  margin: 0 0 1rem;
}

.uc-hero__content p {
  color: var(--color-white);
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 2rem;
}

.uc-hero__image {
  flex: 1 1 45%;
  text-align: center;
}

.uc-hero__image img {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 960px) {
  .uc-hero__grid { flex-direction: column !important; }
  .uc-hero__title { font-size: 40px; }
}

/* --- Inspection Capabilities --- */
.uc-capabilities {
  padding-top: 80px !important;
}

.uc-capabilities__grid {
  display: flex !important;
  gap: 48px;
  align-items: flex-start;
}

.uc-capabilities__text {
  flex: 1 1 45%;
}

.uc-capabilities__heading {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.25;
  margin: 0;
}

.uc-capabilities__icons {
  flex: 1 1 50%;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px;
}

.uc-cap-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  flex-basis: 200px;
  max-width: 220px;
}

.uc-cap-item img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.uc-cap-item span {
  font-size: 16px;
  font-weight: 400;
}

@media screen and (max-width: 768px) {
  .uc-capabilities__grid { flex-direction: column !important; }
  .uc-capabilities__heading { font-size: 30px; }
}

/* --- UC Intro --- */
.uc-intro__title {
  font-size: 48px;
  font-weight: 900;
  margin: 0 0 1rem;
}

.uc-intro__desc {
  max-width: 800px;
  line-height: 1.5;
}

/* --- UC Cards Grid --- */
.uc-cards__grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media screen and (max-width: 960px) {
  .uc-cards__grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 580px) {
  .uc-cards__grid { grid-template-columns: 1fr; }
}

.uc-card {
  background: var(--color-white);
  border: 0.5px solid rgba(100, 146, 253, 0.2);
  box-shadow: 0px 11px 30px rgba(154, 161, 177, 0.2);
  border-radius: 9px;
  overflow: hidden;
  padding: 32px 25px;
}

.uc-card__image {
  text-align: center;
  min-height: 180px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px;
}

.uc-card__image img {
  max-width: 100%;
  max-height: 200px;
  height: auto;
  object-fit: contain;
}

.uc-card__name {
  font-size: 33px;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 16px;
}

.uc-card__stats {
  margin: 0 0 16px;
}

.uc-card__stat {
  margin: 0 0 8px;
}

.uc-card__stat-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1.15;
  display: block;
}

.uc-card__stat-unit {
  font-size: 24px;
}

.uc-card__stat-label {
  font-size: 18px;
  color: #4a5866;
  display: block;
  margin: 0 0 12px;
}

/* --- Brochure CTA (Dark) --- */
.uc-brochure {
  background: var(--color-primary);
  padding: 80px 20px;
}

.uc-brochure__grid {
  display: flex !important;
  align-items: center;
  gap: 48px;
}

.uc-brochure__content {
  flex: 1 1 50%;
}

.uc-brochure__title {
  font-size: 58px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.uc-brochure__content p {
  color: var(--color-white);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.uc-brochure__image {
  flex: 1 1 40%;
  text-align: center;
}

.uc-brochure__image img {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 768px) {
  .uc-brochure__grid { flex-direction: column !important; }
  .uc-brochure__title { font-size: 40px; }
}

/* ==========================================================================
   Contact Us Page
   ========================================================================== */

/* Hero */
.contact-hero {
  background-color: var(--color-primary);
  padding: 80px 0 60px;
  text-align: center;
}

.contact-hero__pre {
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.contact-hero__title {
  color: var(--color-white);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
}

/* Form Section (dark bg) */
.contact-form-section {
  background-color: var(--color-primary);
  padding: 0 0 60px;
}

.contact-form-section__inner {
  max-width: 720px;
}

.contact-form--dark label {
  color: rgba(255,255,255,0.85);
}

.contact-form--dark input,
.contact-form--dark select,
.contact-form--dark textarea {
  background-color: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-white);
}

.contact-form--dark input::placeholder,
.contact-form--dark textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.contact-form--dark input:focus,
.contact-form--dark select:focus,
.contact-form--dark textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  background-color: rgba(255,255,255,0.12);
}

.contact-form--dark select option {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Map + Heading */
.contact-map-section {
  background-color: #f7f8fa;
  overflow: hidden;
}

.contact-map-section__grid {
  display: flex;
  align-items: center;
}

.contact-map-section__image {
  flex: 0 0 60%;
  max-width: 60%;
}

.contact-map-section__image img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-map-section__heading {
  flex: 1;
  padding: 40px 48px;
}

.contact-map-section__heading h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0;
}

/* Office Cards */
.contact-offices {
  background-color: var(--color-white);
  padding: 56px 0 72px;
}

.contact-offices__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact-office-card {
  padding: 28px 24px;
  border-radius: 4px;
  background-color: var(--color-light-gray);
}

.contact-office-card--primary {
  background-color: var(--color-primary);
}

.contact-office-card--primary p,
.contact-office-card--primary .contact-office-card__phone {
  color: rgba(255,255,255,0.85);
}

.contact-office-card__title {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-accent);
  margin: 0 0 12px;
  line-height: 1;
}

.contact-office-card__title--hq {
  color: var(--color-orange);
}

.contact-office-card--primary .contact-office-card__title {
  color: var(--color-accent);
}

.contact-office-card__divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.12);
  margin: 0 0 16px;
}

.contact-office-card--primary .contact-office-card__divider {
  border-top-color: rgba(255,255,255,0.2);
}

.contact-office-card p {
  font-size: 14px;
  color: var(--color-text);
  margin: 0 0 4px;
  line-height: 1.5;
}

.contact-office-card__phone {
  margin-top: 12px !important;
  font-weight: bold;
  color: var(--color-accent) !important;
}

/* Responsive */
@media screen and (max-width: 960px) {
  .contact-offices__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-map-section__grid {
    flex-direction: column;
  }
  .contact-map-section__image {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
  .contact-map-section__heading {
    padding: 32px 24px;
  }
}

@media screen and (max-width: 600px) {
  .contact-offices__grid {
    grid-template-columns: 1fr;
  }
  .contact-hero__title {
    font-size: 32px;
  }
}

/* ==========================================================================
   About Us Page
   ========================================================================== */

/* Hero — dark with factory background image */
.about-hero {
  background-color: var(--color-primary);
  background-image: url('/wp-content/uploads/2026/04/Smart-Factory-1280-1.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 100px 0 120px;
  position: relative;
}

.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(32, 55, 77, 0.72);
  z-index: 0;
}

.about-hero .content-wrapper {
  position: relative;
  z-index: 1;
}

.about-hero__content {
  max-width: 760px;
}

.about-hero__pre {
  color: var(--color-accent);
  display: block;
  margin-bottom: 20px;
}

.about-hero__title {
  color: var(--color-white);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 28px;
}

.about-hero__content p {
  color: rgba(255,255,255,0.88);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.about-hero__content p strong {
  color: var(--color-white);
  font-size: 18px;
}

/* Split sections */
.about-split {
  padding: 80px 0;
  background-color: var(--color-light-gray);
}

.about-split--dark {
  background-color: var(--color-primary);
}

.about-split--dark .about-split__content h2 {
  color: var(--color-white);
}

.about-split--dark .about-split__content p {
  color: rgba(255,255,255,0.85);
}

.about-split__grid {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-split__image {
  flex: 1 1 48%;
}

.about-split__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.about-split__content {
  flex: 1 1 48%;
}

.about-split__content h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 20px;
}

.about-split__content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0 0 14px;
}

/* CTA section */
.about-cta {
  background-color: var(--color-white);
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
}

.about-cta__grid {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-cta__content {
  flex: 1 1 50%;
}

.about-cta__content h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.15;
  margin: 16px 0 0;
}

.about-cta__image {
  flex: 1 1 50%;
  text-align: center;
}

.about-cta__image img {
  max-width: 100%;
  height: auto;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .about-split__grid,
  .about-cta__grid {
    flex-direction: column;
    gap: 32px;
  }

  .about-split--dark .about-split__grid {
    flex-direction: column-reverse;
  }

  .about-hero {
    padding: 64px 0 80px;
  }
}

/* ==========================================================================
   WeChat Follow CTA
   ========================================================================== */

.wechat-cta {
  background-color: var(--color-primary);
  padding: 28px 0;
}

.wechat-cta__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.wechat-cta__icon {
  width: 28px;
  height: 28px;
  fill: var(--color-accent);
  flex-shrink: 0;
}

.wechat-cta__text {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}
