/* --- Variables --- */
:root {
  --color-bg: #ffffff;
  --color-surface: #f5f5f5;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-accent: #c9a962;
  --color-accent-hover: #d4b872;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --container: min(90vw, 1100px);
  --radius: 12px;
  --transition: 0.25s ease;
  /* Primary brand color (predominant) */
  --color-primary: #0a1628;
  /* Nav */
  --nav-link: #0a1628;
  --nav-pill: #0a1628;
  --nav-dropdown-link: #0a1628;
  --nav-dropdown-hover: #152a48;
  /* Responsive spacing */
  --pad-x: 1.25rem;
  --section-pad: 3rem;
}

/* --- Reset y base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent images and figures from overflowing on small screens */
figure img,
.home-image,
.about-image,
.wftasia-image,
.product-detail-image,
.design-software-industrial-img {
  max-width: 100%;
}

.expertise-split-image,
.expertise-bottom-image {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.container-wide {
  max-width: min(94vw, 1200px);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  padding-top: max(1.25rem, env(safe-area-inset-top, 0px));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: padding var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-links > li > a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nav-link);
  padding: 0.5rem 0;
  position: relative;
  white-space: nowrap;
}

.logo-img {
  height: 38px;
}

/* Stabilize full desktop nav when long active labels are present */
@media (min-width: 1025px) and (max-width: 1366px) {
  .nav-links {
    gap: 0.7rem;
  }

  .nav-links > li > a {
    font-size: 0.62rem;
    letter-spacing: 0.03em;
  }

  .logo-img {
    height: 34px;
  }
}

.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--nav-link);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.is-active::after,
.nav-dropdown.is-open > .nav-dropdown-trigger::after {
  opacity: 1;
}

.nav-links > li > a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 28px;
  height: 6px;
  background: var(--nav-pill);
  border-radius: 999px;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
}

.nav-links > li > a:hover::before,
.nav-links > li > a.is-active::before,
.nav-dropdown.is-open > .nav-dropdown-trigger::before {
  opacity: 1;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger::after {
  left: 0;
  right: 0;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 50;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nav-dropdown-link);
}

.nav-dropdown-menu a:hover {
  color: var(--nav-dropdown-hover);
  background: rgba(0, 0, 0, 0.04);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

.menu-toggle:hover span {
  background: var(--nav-link);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 169, 98, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(91, 110, 176, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-bg-image {
  background: var(--color-primary) url("assets/hero-bg-fluid.png") no-repeat center center;
  background-size: cover;
  background-position: center center;
}

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

.hero-content-center {
  width: 100%;
  max-width: min(90vw, 720px);
  margin: 0 auto;
  text-align: center;
  padding-inline: 1.5rem;
}

.hero-definition {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-fluid .hero-definition {
  color: #fff;
  font-weight: 700;
}

.btn-discover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-primary);
  border: 2px solid #fff;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-discover:hover {
  background: #152a48;
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.hero-title em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 42ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Home page: header over blue hero */
.page-home .header {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.page-home .nav-links > li > a {
  color: rgba(255, 255, 255, 0.95);
}

.page-home .nav-links > li > a::after,
.page-home .nav-links > li > a::before {
  background: rgba(255, 255, 255, 0.9);
}

.page-home .menu-toggle span {
  background: #fff;
}

.page-home .menu-toggle:hover span {
  background: rgba(255, 255, 255, 0.85);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--color-accent);
  color: #1a1a1a;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-full {
  width: 100%;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  border-radius: 2px;
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.5; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Sections --- */
.section {
  padding: clamp(2.5rem, 5vw, 5rem) 0;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 2.5rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

.main-padded {
  padding-top: max(6rem, env(safe-area-inset-top, 0px));
}

/* --- Home: pillars (Our Expertise / Experience / History) --- */
.home-pillars {
  background: #f0f2f5;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.pillar-block {
  padding: 2rem 1.75rem;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  background: #f0f2f5;
}

.pillar-block:last-child {
  border-right: none;
}

.pillar-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}

.pillar-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.pillar-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    border-left: none;
  }

  .pillar-block {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.75rem 1.25rem;
  }

  .pillar-block:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .home-pillars {
    padding: 2rem 0;
  }

  .pillar-block {
    padding: 1.5rem 1rem;
  }

  .pillar-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
  }

  .pillar-title {
    font-size: 1.05rem;
  }

  .pillar-text {
    font-size: 0.9rem;
  }
}

/* --- Home: Our Team --- */
.home-team {
  padding: 0;
  background: #fff;
}

.team-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 420px;
}

.team-content {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.team-content::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
  border-left: 20px solid #fff;
  z-index: 2;
}

.team-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.team-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.team-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.team-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.team-text:last-of-type {
  margin-bottom: 0;
}

.team-image-wrap {
  position: relative;
  overflow: hidden;
}

.team-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 420px;
}

@media (max-width: 900px) {
  .team-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .team-content::after {
    display: none;
  }

  .team-content {
    padding: 2rem 1.5rem;
  }

  .team-image {
    min-height: 320px;
  }
}

@media (max-width: 480px) {
  .team-image {
    min-height: 280px;
  }

  .team-title {
    font-size: 1.35rem;
  }

  .team-text {
    font-size: 0.9rem;
  }
}

/* --- Home: The Founder & The Company --- */
.home-founder-company {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: #fff;
}

.founder-company-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.founder-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.founder-image {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.founder-company-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.founder-block {
  margin-bottom: 0;
}

.founder-icon,
.company-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.founder-icon svg,
.company-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.founder-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.founder-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.founder-text:last-child {
  margin-bottom: 0;
}

.founder-company-divider {
  border: none;
  border-top: 2px solid var(--color-primary);
  margin: 2rem 0;
  opacity: 0.3;
}

.company-block {
  max-width: none;
}

.company-block .founder-heading {
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .founder-company-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .founder-photo {
    max-width: 400px;
    margin: 0 auto;
  }

  .founder-company-divider {
    margin: 1.75rem 0;
  }
}

@media (max-width: 480px) {
  .founder-heading {
    font-size: 1.2rem;
  }

  .founder-text {
    font-size: 0.9rem;
  }
}

/* --- Home: Design software --- */
.home-design-software {
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x);
  background: linear-gradient(to bottom, #f8f9fa 0%, #fff 100%);
}

.design-software-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
  max-width: min(94vw, 1200px);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.design-software-content {
  background: var(--color-primary);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  position: relative;
}

.design-software-content::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
}

.design-software-text {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.65;
  color: #fff;
  margin: 0;
  max-width: 42rem;
}

.design-software-visual {
  background: #0d1f3c;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.design-software-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 280px;
}

.design-software-industrial-wrap {
  max-width: min(94vw, 1200px);
  margin: 2.5rem auto 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.1), 0 4px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.design-software-industrial-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .home-design-software {
    padding: 2rem 0 3rem;
  }

  .design-software-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-inline: 1rem;
  }

  .design-software-content {
    padding: 2rem 1.5rem;
  }

  .design-software-content::after {
    display: none;
  }

  .design-software-img {
    min-height: 260px;
  }

  .design-software-industrial-wrap {
    margin-top: 2rem;
    margin-inline: 1rem;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .design-software-text {
    font-size: 0.9rem;
  }

  .design-software-industrial-wrap {
    margin-top: 1.5rem;
  }
}

/* --- Home: main content (structured text block) --- */
.home-content {
  padding: 3rem 0 4rem;
}

.home-content-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 1.75rem;
  letter-spacing: -0.02em;
}

.home-content-inner {
  max-width: 680px;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(10, 22, 40, 0.08);
}

.home-intro-text {
  font-size: 1.05rem;
  color: var(--color-text);
  max-width: 72ch;
  margin: 0 0 1.5rem;
  line-height: 1.7;
  font-weight: 500;
}

.home-body-text {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 72ch;
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.home-content .text-brand {
  color: var(--color-primary);
  font-weight: 700;
}

.home-commitment-block {
  margin: 2rem 0 0;
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border-left: 4px solid var(--color-primary);
  background: rgba(10, 22, 40, 0.03);
  border-radius: 0 var(--radius) var(--radius) 0;
  quotes: none;
}

.home-commitment-block .home-commitment-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  font-style: normal;
}

/* --- Products & services page --- */
.expertise-page .container {
  max-width: 960px;
}

.expertise-split {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 420px;
}

.expertise-split-media {
  position: relative;
  min-height: 420px;
}

.expertise-split-image-wrap {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  overflow: hidden;
}

.expertise-split-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.expertise-split-content {
  background: #fff;
  padding: 2rem 2rem 3rem 2.5rem;
  padding-bottom: 3.5rem;
  display: flex;
  align-items: flex-start;
}

.expertise-split-inner {
  max-width: 520px;
  width: 100%;
}

.expertise-split .expertise-intro {
  margin-bottom: 1.5rem;
}

.expertise-list-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.expertise-list-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--color-accent);
  border-radius: 6px;
}

.expertise-list-intro {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.4;
}

.expertise-bottom-banner {
  width: 100%;
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.expertise-bottom-image {
  width: 100%;
  height: auto;
  min-height: 220px;
  max-height: 380px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.expertise-intro {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.expertise-list {
  list-style: none;
  counter-reset: expertise;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
}

.expertise-list li {
  counter-increment: expertise;
  position: relative;
  padding: 1rem 0 1rem 3.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.expertise-list li::before {
  content: counter(expertise) ".";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
  text-align: right;
}

.expertise-list li:last-child {
  border-bottom: none;
}

.expertise-list a {
  color: var(--nav-link);
  font-weight: 600;
}

.expertise-list a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .expertise-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 900px) {
  .expertise-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .expertise-split-media {
    min-height: 280px;
    order: 1;
  }

  .expertise-split-image-wrap {
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  }

  .expertise-split-image {
    height: 280px;
  }

  .expertise-split-content {
    order: 2;
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .expertise-bottom-banner {
    margin-top: 0;
  }

  .expertise-bottom-image {
    min-height: 180px;
    max-height: 280px;
  }
}

@media (max-width: 480px) {
  .expertise-split-media {
    min-height: 220px;
  }

  .expertise-split-image {
    height: 220px;
    min-height: 220px;
  }

  .expertise-split-content {
    padding: 1.25rem 1rem 2rem;
  }

  .expertise-bottom-banner {
    margin-top: 0;
  }

  .expertise-bottom-image {
    min-height: 160px;
    max-height: 220px;
  }
}

/* --- Product detail pages (e.g. Lubrication systems) --- */
.product-detail .container {
  max-width: 720px;
}

.product-detail-back {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--nav-link);
  margin-bottom: 1.5rem;
  text-decoration: none;
  transition: color var(--transition);
}

.product-detail-back:hover {
  color: var(--nav-dropdown-hover);
}

.product-detail-lead {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.product-detail-visuals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: start;
}

.product-detail-visuals--three {
  grid-template-columns: repeat(3, 1fr);
}

.product-detail-figure {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
}

.product-detail-figure--lubrication-featured {
  grid-column: 1 / -1;
  order: -1;
}

.product-detail-figure--after-text {
  margin-bottom: 1.5rem;
}

.product-detail-figure--featured {
  grid-column: 1 / -1;
  order: -1;
}

.product-detail-figure--after-list {
  margin-top: 1.5rem;
}

.product-detail-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
}

/* Larger visuals for Centralized Oil Lubrication Systems */
.product-detail-image--lubrication {
  max-height: 430px;
}

.product-detail-image--lubrication-featured {
  width: 100%;
  max-height: 620px;
}

.product-detail-image--featured-wide {
  width: 100%;
  max-height: 620px;
}

/* Water cooling: paired plant photos on top, stacked analysis below */
.product-detail-image--water-photo {
  width: 100%;
  height: 260px;
  max-height: 260px;
  object-fit: cover;
  object-position: center;
}

.product-detail-image--water-diagram {
  max-height: 460px;
}

.product-detail-image--consultancy-featured {
  max-height: 700px;
}

.product-detail-image--consultancy-large {
  max-height: 520px;
}

.product-detail-image--consultancy-flow {
  max-height: 660px;
}

.product-detail-visuals--after-list {
  margin-top: 1.5rem;
}

.product-detail-visuals--consultancy-after {
  grid-template-columns: 1fr;
}

/* Full-width figures stacked in one column */
.product-detail-visuals--stacked {
  grid-template-columns: 1fr;
}

/* Improve framing for pneumatic FRL hero image */
.product-detail-image--pneumatic-frl {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  object-position: center;
}

.product-detail-figcaption {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  padding: 0.7rem 0 0;
  margin: 0;
}

.product-detail-intro {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.product-detail-list {
  list-style: none;
  counter-reset: product-item;
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
}

.product-detail-list li {
  counter-increment: product-item;
  position: relative;
  padding: 1.15rem 1.5rem 1.15rem 3.5rem;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.product-detail-list li:last-child {
  border-bottom: none;
}

.product-detail-list li::before {
  content: counter(product-item);
  position: absolute;
  left: 1.25rem;
  top: 1.15rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  border-radius: 50%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .product-detail-visuals,
  .product-detail-visuals--three {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .product-detail-image {
    max-height: 280px;
  }

  .product-detail-image--lubrication {
    max-height: 340px;
  }

  .product-detail-image--lubrication-featured {
    max-height: 400px;
  }

  .product-detail-image--featured-wide {
    max-height: 400px;
  }

  .product-detail-image--water-photo {
    height: 320px;
    max-height: 320px;
  }

  .product-detail-image--water-diagram {
    max-height: 360px;
  }

  .product-detail-image--consultancy-featured {
    max-height: 460px;
  }

  .product-detail-image--consultancy-large {
    max-height: 400px;
  }

  .product-detail-image--consultancy-flow {
    max-height: 500px;
  }

  .product-detail-image--pneumatic-frl {
    max-height: 400px;
  }

  .product-detail-lead,
  .product-detail-intro {
    font-size: 1rem;
  }

  .product-detail-list li {
    padding: 1rem 1.25rem 1rem 3.25rem;
    font-size: 0.95rem;
  }

  .product-detail-list li::before {
    left: 1rem;
    top: 1rem;
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .product-detail-back {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .product-detail-list {
    border-radius: var(--radius);
    border-left-width: 2px;
  }

  .product-detail-list li {
    padding: 0.9rem 1rem 0.9rem 3rem;
    font-size: 0.9rem;
  }

  .product-detail-list li::before {
    left: 0.9rem;
    top: 0.9rem;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.7rem;
  }
}

/* --- About page --- */
.about-page .container {
  max-width: 1080px;
}

.about-page-container {
  padding: 0;
}

.about-page-header {
  margin-bottom: 2.25rem;
  text-align: center;
}

.about-page .section-title {
  margin-bottom: 0;
}

.about-page-layout {
  display: block;
}

.about-content {
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-block {
  margin-bottom: 2.5rem;
  max-width: 720px;
  margin-inline: auto;
  width: 100%;
  text-align: center;
  padding: 0;
}

.about-block:last-child {
  margin-bottom: 0;
}

.about-block-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
}

.about-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.about-content .about-body:last-child {
  margin-bottom: 0;
}

.about-lead {
  font-size: 1.05rem;
  color: var(--color-text);
  font-weight: 500;
}

.about-commitment {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(10, 22, 40, 0.08);
  margin-top: 1rem;
}

.about-content .text-brand {
  color: var(--color-primary);
  font-weight: 700;
}

/* Spacing tune for moved sections in About page */
.about-content .home-team {
  margin-top: 1.6rem;
  max-width: 1080px;
  width: 100%;
  margin-inline: auto;
}

.about-content .home-founder-company {
  margin-top: 1rem;
  max-width: 1080px;
  width: 100%;
  margin-inline: auto;
}

.about-content .home-founder-company .container {
  padding-inline: 0;
}

/* Corporate layout for moved legacy blocks on About page */
.about-page .home-team,
.about-page .home-founder-company {
  background: transparent;
}

.about-page .team-inner {
  grid-template-columns: 1.05fr 1fr;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
}

.about-page .team-content {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  padding-left: 0;
  background: transparent;
  text-align: center;
  align-items: center;
}

.about-page .team-content::after {
  display: none;
}

.about-page .team-title {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  margin-bottom: 0.75rem;
}

.about-page .team-text {
  font-size: 0.97rem;
  line-height: 1.65;
  margin-bottom: 0.7rem;
}

.about-page .team-image {
  min-height: 320px;
}

.about-page .home-founder-company {
  padding: 0.25rem 0 0;
}

.about-page .founder-company-layout {
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: 0;
}

.about-page .founder-photo {
  box-shadow: none;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-page .founder-heading {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 0.75rem;
  text-align: center;
}

.about-page .founder-text {
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 0.7rem;
  text-align: center;
}

.about-page .founder-company-divider {
  margin: 1.25rem 0;
  border-top-width: 1px;
  opacity: 0.16;
  width: min(100%, 560px);
  margin-inline: auto;
}

.about-page .founder-company-text {
  align-items: center;
}

.about-page .founder-block,
.about-page .company-block {
  width: 100%;
}

.about-page .founder-icon,
.about-page .company-icon,
.about-page .team-icon {
  margin-inline: auto;
}

.about-figure-wrap {
  margin-top: 3rem;
  max-width: 1080px;
  margin-inline: auto;
}

/* --- News and Events --- */
.news-page {
  background: #f7f9fc;
}

.news-container {
  max-width: 980px;
}

.news-header {
  margin-bottom: 2rem;
}

.news-lead {
  margin-top: 0.85rem;
  max-width: 70ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.news-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 2rem;
}

.news-timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: rgba(10, 22, 40, 0.2);
}

.news-item {
  position: relative;
  margin-bottom: 1rem;
  padding: 1.1rem 3rem 1.1rem 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(10, 22, 40, 0.1);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(10, 22, 40, 0.04);
}

.news-item::before {
  content: "";
  position: absolute;
  left: -1.82rem;
  top: 1.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(10, 22, 40, 0.12);
}

.news-item-icon {
  position: absolute;
  right: 0.9rem;
  top: 0.9rem;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(10, 22, 40, 0.16);
  background: #f3f6fa;
  color: var(--color-primary);
  font-size: 0.82rem;
  line-height: 1;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.news-item-icon i {
  font-size: 0.78rem;
  line-height: 1;
  display: none;
}

.news-item-icon::before {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  line-height: 1;
}

.news-item-icon i {
  position: relative;
  z-index: 1;
}

.news-date {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.55rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(10, 22, 40, 0.05);
}

.news-description {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: #3f4a5a;
}

.about-figure {
  margin: 0;
  padding: 0;
  max-width: 900px;
  margin-inline: auto;
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.wftasia-map {
  background: linear-gradient(145deg, rgba(10, 22, 40, 0.08) 0%, rgba(10, 22, 40, 0.02) 100%);
}

/* --- WFTAsia page --- */
.wftasia-page .container {
  max-width: 900px;
}

.wftasia-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.wftasia-intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.wftasia-figure-wrap {
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.wftasia-figure {
  margin: 0;
  padding: 0;
}

.wftasia-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.wftasia-contact {
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.wftasia-contact-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.wftasia-address {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.wftasia-email {
  margin-bottom: 1.25rem;
}

.wftasia-email a {
  color: var(--color-primary);
  font-weight: 600;
}

.wftasia-email a:hover {
  text-decoration: underline;
}

.wftasia-commitment {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.wftasia-commitment .text-brand {
  color: var(--color-primary);
  font-weight: 700;
}

/* --- Services --- */
.services {
  background: var(--color-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 2rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card:hover {
  border-color: rgba(201, 169, 98, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card-icon {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* --- Projects --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: border-color var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.project-card:hover {
  border-color: rgba(201, 169, 98, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.project-image {
  height: 200px;
  background: linear-gradient(135deg, var(--accent, #2d5a4a) 0%, rgba(0,0,0,0.4) 100%);
}

.project-info {
  padding: 1.5rem;
}

.project-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.project-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-info p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* --- About --- */
.about {
  background: var(--color-surface);
}

.about.about-page {
  background: var(--color-bg);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.about-stats li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.about-stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.about-visual {
  height: 320px;
  background: linear-gradient(145deg, rgba(201, 169, 98, 0.15) 0%, rgba(201, 169, 98, 0.02) 100%);
  border-radius: var(--radius);
}

/* --- Contact (formal, production-ready form) --- */
.contact-label {
  color: var(--color-primary);
  letter-spacing: 0.12em;
}

.contact-title {
  margin-bottom: 0.75rem;
}

.contact-desc {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 42ch;
  line-height: 1.65;
}

.contact-form-card {
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 2rem;
  background: #fff;
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 2px 24px rgba(10, 22, 40, 0.06);
  padding: 2.25rem 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.form-row input,
.form-row textarea {
  padding: 0.95rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background: #fafbfc;
  border: 1px solid rgba(10, 22, 40, 0.12);
  border-radius: 8px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

@media (max-width: 480px) {
  .form-row input,
  .form-row textarea {
    font-size: 16px;
  }
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.75;
}

.form-row input:hover,
.form-row textarea:hover {
  border-color: rgba(10, 22, 40, 0.2);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(10, 22, 40, 0.08);
  background: #fff;
}

.form-actions {
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}

.btn-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), transform 0.15s ease;
}

.btn-contact-submit:hover {
  background: #0d2040;
}

.btn-contact-submit:active {
  transform: scale(0.99);
}

.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  text-align: center;
  color: var(--color-primary);
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: #b3261e;
}

.contact-footer {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-footer a:hover {
  color: var(--color-accent);
}

.contact-footer span {
  margin-inline: 0.5rem;
}

/* --- Contact Us (offices) --- */
.contact-offices {
  background: #e6eef5;
  padding: 3.5rem 0;
}

.contact-offices-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.contact-offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-office-card {
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-office-card:nth-child(3n) {
  border-right: none;
}

.contact-office-card:nth-last-child(-n+3) {
  border-bottom: none;
}

.contact-office-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.contact-office-address,
.contact-office-country,
.contact-office-phone,
.contact-office-email {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.35rem;
  line-height: 1.45;
}

.contact-office-country {
  margin-bottom: 0.5rem;
}

.contact-office-flag {
  margin-right: 0.35rem;
}

.contact-office-phone a,
.contact-office-email a {
  color: #333;
  text-decoration: none;
}

.contact-office-phone a:hover,
.contact-office-email a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.contact-office-phone,
.contact-office-email {
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .contact-offices-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-office-card:nth-child(3n) {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
  }

  .contact-office-card:nth-child(2n) {
    border-right: none;
  }

  .contact-office-card:nth-last-child(-n+3) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .contact-office-card:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .contact-offices-grid {
    grid-template-columns: 1fr;
    border-left: none;
  }

  .contact-office-card {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .contact-office-card:nth-child(2n) {
    border-right: none;
  }

  .contact-office-card:last-child {
    border-bottom: none;
  }
}

/* --- Footer --- */
/* --- Footer --- */
.footer {
  background: var(--color-primary);
  color: #fff;
  padding: 0;
  border-top: none;
}

.footer-top {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  opacity: 1;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.footer-col ul {
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact-item {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.35rem;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  padding: 1.25rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

/* --- Responsive: tablets & below (768px) --- */
@media (max-width: 768px) {
  :root {
    --pad-x: 1rem;
  }

  /* Overlay: pantalla completa, fondo sólido */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #0a1628;
    z-index: 98;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  body.menu-open .nav-overlay {
    display: block;
    opacity: 1;
  }

  body.menu-open {
    overflow: hidden;
    height: 100%;
  }

  /* Ocultar el contenido de la página cuando el menú está abierto */
  body.menu-open main {
    visibility: hidden;
    pointer-events: none;
  }

  /* Overlay y menú: altura completa en móvil (incl. barra de dirección) */
  .nav-overlay {
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* Header oscuro cuando el menú está abierto (estilo Stripe: logo + X en barra) */
  body.menu-open .header {
    background: #0a1628;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  /* Menú móvil: pantalla completa, solo lista de navegación */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 5.5rem 0 3rem;
    background: #0a1628;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.25s ease, visibility 0s linear 0s;
  }

  .nav-links > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links > li > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    transition: color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
  }

  .nav-links > li > a::after,
  .nav-links > li > a::before {
    display: none;
  }

  .nav-links > li > a:hover,
  .nav-links > li > a.is-active {
    color: #fff;
  }

  /* Solo el ítem desplegable lleva chevron (>) a la derecha */
  .nav-dropdown-trigger {
    padding-right: 2.5rem;
  }

  .nav-dropdown-trigger::after {
    content: "›";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .nav-dropdown.is-open .nav-dropdown-trigger::after {
    transform: translateY(-50%) rotate(90deg);
    color: rgba(255, 255, 255, 0.9);
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    transition: max-height 0.3s ease;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    max-height: 640px;
    padding: 0.25rem 0 0.75rem;
  }

  .nav-dropdown-menu a {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.65rem 1.5rem 0.65rem 2.25rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .nav-dropdown-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    border-top: none;
    border-left: none;
  }

  /* Botón X (hamburguesa → X) en la esquina superior derecha */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
    position: relative;
    z-index: 101;
    transition: transform 0.2s ease;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  body.menu-open .header .logo-img,
  body.menu-open .menu-toggle span {
    filter: brightness(0) invert(1);
  }

  .logo-img {
    height: 36px;
  }

  .main-padded {
    padding-top: max(5.5rem, calc(env(safe-area-inset-top, 0px) + 5rem));
  }

  .hero {
    min-height: min(100vh, 700px);
    padding: 5.5rem 0 3rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

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

  .hero-actions .btn {
    min-height: 44px;
    padding: 0.85rem 1.5rem;
  }

  .hero-scroll {
    bottom: 1.5rem;
  }

  .section-title {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    margin-bottom: 1.5rem;
  }

  .home-content {
    padding: 2rem 0 3rem;
  }

  .home-content-title {
    margin-bottom: 1.25rem;
  }

  .home-content-inner {
    padding-top: 1.5rem;
  }

  .home-commitment-block {
    margin-top: 1.5rem;
    padding: 1.25rem 1.25rem 1.25rem 1rem;
  }

  .home-intro-text,
  .home-body-text {
    font-size: 0.95rem;
  }

  .about-figure-wrap {
    margin-top: 2.5rem;
  }

  .about-block {
    margin-bottom: 1.75rem;
  }

  .about-content .home-team {
    margin-top: 1.75rem;
  }

  .about-content .home-founder-company {
    margin-top: 0.25rem;
  }

  .about-page .team-inner {
    grid-template-columns: 1fr;
  }

  .about-page .team-content {
    padding: 1.25rem 0 0;
  }

  .about-page .team-image {
    min-height: 260px;
  }

  .about-page .home-founder-company {
    padding-top: 0.9rem;
  }

  .about-page .founder-company-layout {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .about-page .founder-company-divider {
    margin: 1rem 0;
  }

  .about-block {
    margin-bottom: 1.75rem;
  }

  .about-page-header {
    margin-bottom: 1.5rem;
  }

  .news-timeline {
    padding-left: 1.35rem;
  }

  .news-item {
    padding: 0.95rem 2.7rem 0.95rem 0.95rem;
  }

  .news-item::before {
    left: -1.28rem;
    top: 1.12rem;
    width: 10px;
    height: 10px;
  }

  .news-description {
    font-size: 0.94rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-visual {
    height: 220px;
    order: -1;
  }

  .about-figure {
    margin-top: 0;
  }

  .expertise-intro {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .expertise-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .expertise-list li {
    padding: 1rem 0 1rem 3.25rem;
    font-size: 0.9rem;
  }

  .contact-form-card {
    padding: 1.5rem 1.25rem;
  }

  .contact-form {
    gap: 1.25rem;
  }

  .contact-offices {
    padding: 2.5rem 0;
  }

  .contact-offices-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .contact-office-card {
    padding: 1.25rem 1rem;
  }

  .contact-office-name {
    font-size: 0.9rem;
  }

  .contact-office-address,
  .contact-office-country,
  .contact-office-phone,
  .contact-office-email {
    font-size: 0.85rem;
  }

  .wftasia-title {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
  }

  .wftasia-intro {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .wftasia-figure-wrap {
    margin-bottom: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-brand {
    max-width: none;
    margin: 0 auto;
  }

  .footer-logo-img {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-top {
    padding: 2rem 0 1.5rem;
  }

  .footer-bottom {
    padding: 1rem 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-logo-img {
    height: 36px;
  }

  .footer-copy {
    font-size: 0.85rem;
  }
}

/* --- Responsive: small phones (480px) --- */
@media (max-width: 480px) {
  :root {
    --pad-x: 1rem;
  }

  .container {
    padding-inline: 1rem;
  }

  .header {
    padding: 0.9rem 0;
  }

  .logo-img {
    height: 32px;
  }

  .main-padded {
    padding-top: max(5rem, calc(env(safe-area-inset-top, 0px) + 4.5rem));
  }

  .hero {
    min-height: auto;
    padding: 5rem 0 2.5rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .home-content {
    padding: 1.5rem 0 2rem;
  }

  .contact-offices-title {
    font-size: 1.35rem;
  }

  .btn {
    padding: 0.8rem 1.25rem;
    font-size: 0.9rem;
  }

  .product-detail-image {
    max-height: 240px;
  }

  .product-detail-image--lubrication {
    max-height: 300px;
  }

  .product-detail-image--lubrication-featured {
    max-height: 360px;
  }

  .product-detail-image--featured-wide {
    max-height: 360px;
  }

  .product-detail-image--water-photo {
    height: 230px;
    max-height: 230px;
  }

  .product-detail-image--water-diagram {
    max-height: 280px;
  }

  .product-detail-image--consultancy-featured {
    max-height: 420px;
  }

  .product-detail-image--consultancy-large {
    max-height: 360px;
  }

  .product-detail-image--consultancy-flow {
    max-height: 440px;
  }

  .product-detail-image--pneumatic-frl {
    max-height: 360px;
  }

  .design-software-img {
    min-height: 220px;
  }

  .team-image {
    min-height: 240px;
  }
}

/* --- Responsive: tablets landscape / small laptops (900px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-links {
    gap: 0.55rem;
  }

  .nav-links > li > a {
    font-size: 0.63rem;
    letter-spacing: 0.035em;
  }

  .logo-img {
    height: 34px;
  }

  .hero-desc {
    max-width: 38ch;
  }

  .about-inner {
    gap: 2rem;
  }

  .about-visual {
    height: 260px;
  }
}
