/* ==========================================================================
   Shandong Gaoqiang New Material Technology Co., Ltd. - Common CSS
   Exact Reference Matching Theme (GOCHEM Navy Blue & Orange Accent)
   ========================================================================== */

:root {
  --primary: #002b5c;             /* Dark Navy Blue from GOCHEM Header Text */
  --primary-dark: #001e42;        /* Darker Navy */
  --primary-light: #f0f4f9;       /* Light Navy Tint */
  --secondary: #0a192f;           /* Deep Navy Black */
  --accent: #ff5500;              /* Vibrant Orange from GOCHEM Logo & Buttons */
  --accent-hover: #e04b00;        /* Hover Orange */
  --accent-light: #fff2ec;        /* Light Orange Tint */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1400px;      /* Increased Container Width for Wide Display */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: var(--text-main);
  background-color: #041021;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
.section-title-wrap {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: 0em;
}

.section-desc {
  max-width: 850px;
  margin: 20px auto 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-right: 4px solid var(--accent);
  box-shadow: 0 6px 16px rgba(0, 43, 92, 0.22);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 43, 92, 0.3);
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 85, 0, 0.35);
  outline-offset: 3px;
}

.btn-block { width: 100%; }

.btn-secondary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 43, 92, 0.25);
}

.btn-secondary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 43, 92, 0.4);
}

/* Main Navigation Header */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  z-index: 1000;
  box-shadow: 0 6px 24px rgba(0, 31, 68, 0.08);
  transition: var(--transition);
}

.header-top {
  height: 48px;
  background: linear-gradient(90deg, #063568 0%, #002b5c 48%, #06284d 100%);
  color: #ffffff;
  overflow: visible;
  max-height: 56px;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

.header.scrolled .header-top {
  max-height: 0;
  opacity: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.header-top-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-contact,
.header-social {
  display: flex;
  align-items: center;
  gap: 26px;
}

.header-top-tools {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.header-contact a,
.header-social a,
.header-social span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
}

.header-contact i,
.header-social i {
  font-size: 0.95rem;
  color: #ffffff;
}

.header-social {
  gap: 20px;
}

.header-social a:hover,
.header-contact a:hover {
  color: var(--accent);
}

.language-switcher {
  position: relative;
  z-index: 1002;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  transition: var(--transition);
}

.language-toggle .lang-flag {
  width: 24px;
  height: 16px;
  display: inline-flex;
  flex: 0 0 24px;
  background: url('../images/language-all.webp') no-repeat center;
}

.language-toggle .lang-en {
  background-position: 0 0;
}

.language-toggle .lang-fr {
  background-position: 0 -17px;
}

.language-toggle .lang-es {
  background-position: 0 -51px;
}

.language-toggle .lang-pt {
  background-position: 0 -68px;
}

.language-toggle .lang-ar {
  background-position: 0 -102px;
}

.language-toggle .lang-ru {
  background-position: 0 -153px;
}

.language-toggle .lang-cn {
  background-position: 0 -187px;
}

.language-toggle i {
  font-size: 0.68rem;
  transition: transform 0.2s ease;
}

.language-switcher:hover .language-toggle,
.language-switcher:focus-within .language-toggle {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
}

.language-switcher:hover .language-toggle i,
.language-switcher:focus-within .language-toggle i {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 190px;
  padding: 8px;
  border: 1px solid rgba(11, 31, 62, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 24, 58, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.language-switcher:hover .language-menu,
.language-switcher:focus-within .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 16px;
  width: 14px;
  height: 14px;
  border-left: 1px solid rgba(11, 31, 62, 0.08);
  border-top: 1px solid rgba(11, 31, 62, 0.08);
  background: #ffffff;
  transform: rotate(45deg);
}

.language-menu li {
  position: relative;
  z-index: 1;
}

.language-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.language-menu a:hover {
  color: var(--accent);
  background: rgba(255, 85, 0, 0.08);
}

.header-main {
  background: #ffffff;
  border-bottom: 1px solid #e8eef5;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  transition: height 0.3s ease;
}

.header.scrolled .header-content {
  height: 66px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
}

/* .header.scrolled .logo-img {
  height: 40px;
} */

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  position: relative;
}

.dropdown-menu,
.dropdown-submenu {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(11, 31, 62, 0.08);
  box-shadow: 0 18px 45px rgba(11, 31, 62, 0.12);
  transform: translate(-50%, 12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}

.nav-item:hover > .dropdown-menu,
.nav-item.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-menu li {
  position: relative;
}

.dropdown-menu a,
.dropdown-submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-submenu a:hover {
  color: var(--accent);
  background: rgba(255, 85, 0, 0.08);
}

.dropdown-submenu {
  position: absolute;
  top: -10px;
  left: 100%;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(11, 31, 62, 0.08);
  box-shadow: 0 18px 45px rgba(11, 31, 62, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dropdown-menu li:hover > .dropdown-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  padding: 26px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease, font-weight 0.2s ease;
}

.nav-link i {
  transition: transform 0.3s ease;
}

.nav-link:hover i {
  transform: translateY(2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff5500 0%, #ff7733 100%);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
  opacity: 0;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  transform: scaleX(1);
  opacity: 0.6;
}

.nav-link.active {
  color: var(--accent);
  font-weight: 700;
}

.nav-link.active::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.search-btn {
  font-size: 1.22rem;
  color: var(--primary);
  cursor: pointer;
  padding: 6px;
  transition: var(--transition);
}

.search-btn:hover {
  color: var(--accent);
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 150px 24px 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 33, 0.68);
  backdrop-filter: blur(4px);
}

.search-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 34px 36px 38px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 16, 38, 0.28);
  transform: translateY(-12px);
  transition: transform 0.28s ease;
}

.search-overlay.is-open .search-panel {
  transform: translateY(0);
}

.search-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--primary);
  background: #f1f5f9;
  transition: var(--transition);
}

.search-close:hover {
  color: #ffffff;
  background: var(--accent);
}

.search-panel-form label {
  display: block;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
}

.search-input-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 18px;
  border: 1.5px solid #d9e4f4;
  border-radius: 8px;
  background: #f8fafc;
}

.search-input-row > i {
  color: var(--accent);
  font-size: 1rem;
}

.search-input-row input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
}

.search-input-row input::placeholder {
  color: #94a3b8;
}

.search-submit {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--primary);
}

.search-submit:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

body.search-open {
  overflow: hidden;
}

.btn-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #ffffff;
  background: linear-gradient(135deg, #081d3c 0%, #0c2b54 100%);
  border: 1px solid rgba(8, 29, 60, 0.12);
  box-shadow: 0 4px 16px rgba(8, 29, 60, 0.16);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  white-space: nowrap;
}

.btn-quote i {
  font-size: 0.8rem;
  transition: transform 0.35s ease;
}

.btn-quote:hover {
  background: linear-gradient(135deg, #ff5500 0%, #e64a00 100%);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 85, 0, 0.35);
}

.btn-quote:hover i {
  transform: translateX(5px);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #ffffff;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-logo {
  width: 260px;
  max-width: 72vw;
  height: auto;
  animation: loader-logo-pulse 1.2s ease-in-out infinite alternate;
}

.page-loader-ring {
  width: 34px;
  height: 34px;
  border: 3px solid #e8eef5;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes loader-logo-pulse {
  from { transform: scale(0.97); opacity: 0.72; }
  to { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader-logo,
  .page-loader-ring { animation: none; }
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Floating Toolbar */
.floating-toolbar {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toolbar-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  position: relative;
}

.toolbar-btn.inquiry-btn {
  background: var(--accent);
  color: #ffffff;
}

.toolbar-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.toolbar-btn > i {
  flex: 0 0 auto;
  line-height: 1;
}

.toolbar-btn .tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  display: block;
  width: max-content;
  max-width: 180px;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--secondary);
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1.25;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
}

.toolbar-btn:hover .tooltip,
.toolbar-btn:focus-visible .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Footer Section */
.footer {
  --footer-blue: #126fff;
  --footer-navy: #071d49;
  --footer-muted: #53617c;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.88) 52%, rgba(239, 246, 255, 0.76) 100%),
    url('../images/footer.png') right bottom / cover no-repeat;
  color: var(--footer-muted);
  position: relative;
  border-top: 1px solid rgba(30, 111, 255, 0.16);
  margin-bottom: 0;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 460px at 12% -10%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(236, 244, 255, 0.12) 100%);
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(210px, 0.95fr) minmax(270px, 1.25fr) minmax(340px, 1.55fr);
  gap: 0;
  padding: 76px 0 64px;
}

.footer-col {
  min-width: 0;
}

.footer-col + .footer-col {
  padding-left: 42px;
}

.footer-logo-wrap {
  display: inline-block;
  margin-bottom: 30px;
}

.footer-logo-wrap::after,
.footer-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 28px;
  background: var(--footer-blue);
  border-radius: 999px;
}

.footer-logo-img {
  height: 106px;
  width: auto;
  object-fit: contain;
}

.footer-desc {
  max-width: 350px;
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 32px;
  color: var(--footer-muted);
  font-weight: 500;
}

.footer-cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.footer-cert-badge {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.footer-cert-badge:hover {
  background: rgba(255, 85, 0, 0.15);
  border-color: rgba(255, 85, 0, 0.4);
  color: #ffffff;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-social-links a {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(39, 112, 232, 0.14);
  color: var(--footer-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.34rem;
  box-shadow: 0 10px 26px rgba(20, 76, 151, 0.12);
  transition: all 0.3s ease;
}

.footer-social-links a:hover {
  background: #ffffff;
  border-color: rgba(18, 111, 255, 0.36);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(18, 111, 255, 0.2);
}

.footer-title {
  color: var(--footer-navy);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 36px;
  position: relative;
  padding-bottom: 0;
  line-height: 1.25;
}

.footer-title::after {
  margin-top: 20px;
}

.footer-links li {
  margin-bottom: 19px;
}

.footer-links a {
  font-size: 1rem;
  color: #1c2b4a;
  display: flex;
  align-items: center;
  gap: 16px;
  line-height: 1.45;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-links a i {
  font-size: 0.83rem;
  color: var(--footer-blue);
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--footer-blue);
  transform: translateX(4px);
}

.footer-links a:hover i {
  transform: translateX(2px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 34px;
  font-size: 1rem;
}

.footer-contact-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(18, 111, 255, 0.12);
  color: var(--footer-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  box-shadow: inset 0 0 0 8px rgba(18, 111, 255, 0.08), 0 10px 24px rgba(20, 76, 151, 0.13);
}

.footer-contact-item span {
  color: #132344;
  line-height: 1.85;
  font-size: 1rem;
  padding-top: 2px;
  font-weight: 500;
}

.footer-bottom {
  min-height: 80px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  border-top: 1px solid rgba(18, 111, 255, 0.3);
  font-size: 0.98rem;
  color: var(--footer-muted);
  font-weight: 500;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom p:last-child {
  position: relative;
  min-width: 380px;
  padding-left: 48px;
}

.footer-bottom p:last-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 48px;
  background: rgba(42, 96, 174, 0.28);
  transform: translateY(-50%);
}

.footer-bottom span {
  color: var(--footer-blue);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  width: 90%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  background: var(--primary);
  color: #ffffff;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--accent);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 30px 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Responsive Styles */
@media (max-width: 1440px) {
  :root { --container-width: 1320px; }
}

@media (max-width: 1024px) {
  .header-top-content {
    gap: 14px;
  }

  .header-contact,
  .header-social {
    gap: 14px;
  }

  .header-top-tools {
    gap: 14px;
  }

  .language-toggle {
    padding: 0 10px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 42px 0;
    padding: 72px 0 58px;
  }

  .footer-col:nth-child(odd) {
    padding-right: 34px;
  }

  .footer-col:nth-child(even) {
    padding-left: 34px;
  }

  .footer-col:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .header-top {
    display: none;
  }

  .header-top-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .header-contact,
  .header-social {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .header-contact a,
  .header-social a,
  .header-social span {
    font-size: 0.8rem;
  }

  .header-content {
    height: 76px;
  }

  .logo-img {
    height: 52px;
  }

  .btn-quote {
    display: none;
  }

  .search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 76px;
    left: -100%;
    right: 100%;
    width: 100vw;
    max-width: 100vw;
    height: calc(100vh - 76px);
    box-sizing: border-box;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 28px;
    gap: 0;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .header.scrolled .nav-menu {
    top: 66px;
    height: calc(100vh - 66px);
  }

  .nav-link {
    padding: 14px 0;
    width: 100%;
    max-width: 100%;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .nav-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-bottom: 1px solid #edf2f7;
  }

  .nav-item.has-dropdown > .nav-link {
    justify-content: space-between;
    width: 100%;
  }

  .nav-item.open > .nav-link {
    color: var(--accent);
  }

  .nav-item.open > .nav-link > i {
    transform: rotate(180deg);
  }

  .dropdown-menu,
  .dropdown-submenu {
    position: static;
    width: 100%;
    min-width: 0;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .nav-item.open > .dropdown-menu,
  .dropdown-menu li.open > .dropdown-submenu {
    display: block;
    transform: none;
  }

  .dropdown-menu a,
  .dropdown-submenu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    white-space: normal;
    font-size: 0.88rem;
    line-height: 1.35;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .dropdown-menu {
    padding: 0 0 12px 12px;
  }

  .dropdown-menu li {
    width: 100%;
    border-top: 1px solid #f1f5f9;
  }

  .dropdown-menu li:first-child {
    border-top: 0;
  }

  .dropdown-submenu {
    padding: 0 0 8px 14px;
    border-left: 2px solid rgba(255, 85, 0, 0.18);
    background: #f8fafc;
  }

  .dropdown-menu li.open > a {
    color: var(--accent);
  }

  .dropdown-menu li.open > a > i {
    transform: rotate(90deg);
  }

  .nav-link.active::before,
  .nav-link.active::after {
    display: none;
  }

  .nav-menu.active {
    left: 0;
    right: 0;
  }
  .footer {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 248, 255, 0.9) 100%),
      url('../images/footer.png') right bottom / auto 58% no-repeat;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 54px 0 46px;
  }

  .footer-col,
  .footer-col:nth-child(odd),
  .footer-col:nth-child(even),
  .footer-col + .footer-col {
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .footer-logo-img {
    height: 50px;
  }

  .footer-title {
    font-size: 1.28rem;
    margin-bottom: 24px;
  }

  .footer-desc {
    max-width: none;
  }

  .footer-contact-item {
    margin-bottom: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: auto;
    padding: 22px 0 28px;
  }

  .footer-bottom p:last-child {
    min-width: 0;
    padding-left: 0;
  }

  .footer-bottom p:last-child::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .search-overlay {
    align-items: center;
    padding: 24px;
  }

  .search-panel {
    padding: 30px 20px 24px;
  }

  .search-input-row {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .search-submit {
    grid-column: 1 / -1;
    width: 100%;
  }
}

body.lightbox-open {
  overflow: hidden;
}

.gochem-column-banner {
  position: relative;
  min-height: 360px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.about-hero,
.factory-hero,
.news-hero,
.products-hero,
.contact-hero {
  position: relative;
}

.gochem-banner-title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.gochem-banner-title::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 30, 66, 0.56), rgba(0, 43, 92, 0.18) 58%, rgba(0, 43, 92, 0.05));
}

.gochem-banner-title .container {
  width: 100%;
}

.gochem-banner-title h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow: 0 12px 30px rgba(0, 20, 45, 0.38);
}

.about-hero .gochem-banner-title h1,
.factory-hero .gochem-banner-title h1,
.news-hero .gochem-banner-title h1,
.products-hero .gochem-banner-title h1,
.contact-hero .gochem-banner-title h1,
.gochem-column-banner .gochem-banner-title h1 {
  color: #ffffff;
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 58px 86px;
  opacity: 0;
  visibility: hidden;
  background: rgba(0, 16, 38, .88);
  transition: opacity .25s, visibility .25s;
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.image-lightbox figure {
  display: flex;
  max-width: min(1160px, 100%);
  max-height: 100%;
  flex-direction: column;
  align-items: center;
  margin: 0;
  transform: scale(.96);
  transition: transform .25s;
}

.image-lightbox.is-open figure {
  transform: scale(1);
}

.image-lightbox figure img {
  max-width: 100%;
  max-height: calc(100vh - 135px);
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .45);
}

.image-lightbox figcaption {
  margin-top: 13px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  background: rgba(0, 43, 92, .42);
  transition: background .2s, transform .2s;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: var(--accent);
  transform: scale(1.08);
}

.lightbox-close {
  top: 24px;
  right: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.05rem;
}

.lightbox-arrow {
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: 25px;
}

.lightbox-next {
  right: 25px;
}

@media (max-width: 768px) {
  .gochem-banner-title h1 {
    max-width: 90%;
    font-size: 2.1rem;
  }

  .image-lightbox {
    padding: 55px 18px 75px;
  }

  .lightbox-arrow {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-arrow:hover {
    transform: scale(1.08);
  }

  .lightbox-prev {
    left: calc(50% - 54px);
  }

  .lightbox-next {
    right: calc(50% - 54px);
  }
}

/* --------------------------------------------------
   Pagination (shared by list pages)
   -------------------------------------------------- */
.pagination-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid #dce5f0;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  transition: var(--transition);
}

.pagination-link i {
  font-size: 0.78rem;
  color: var(--accent);
  transition: var(--transition);
}

.pagination-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(10, 28, 54, 0.12);
}

.pagination-link:hover i {
  color: var(--accent);
}

.pagination-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  cursor: default;
  box-shadow: 0 6px 16px rgba(255, 85, 0, 0.28);
}

.pagination-prev:hover i {
  transform: translateX(-3px);
}

.pagination-next:hover i {
  transform: translateX(3px);
}

.pagination-nav-native ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 768px) {
  .pagination-nav {
    gap: 6px;
    margin-top: 24px;
  }

  .pagination-link {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.85rem;
  }
}

