/* ==========================================================================
   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: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: -0.05em;
}

.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: hidden;
  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;
}

.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-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);
}

.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: 46px;
  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);
}

.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: 190px;
  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 Section */
.footer {
  background: linear-gradient(180deg, #071933 0%, #041021 100%);
  color: #94a3b8;
  padding-top: 75px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1.5fr 1.5fr;
  gap: 45px;
  padding-bottom: 55px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-wrap {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 10px;
  margin-bottom: 22px;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #94a3b8;
}

.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;
  gap: 12px;
}

.footer-social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 85, 0, 0.35);
}

.footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.footer-links a i {
  font-size: 0.75rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-links a:hover i {
  transform: translateX(2px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: rgba(255, 85, 0, 0.12);
  border: 1px solid rgba(255, 85, 0, 0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1;
}

.footer-contact-item span {
  color: #cbd5e1;
  line-height: 1.55;
  font-size: 0.9rem;
  padding-top: 4px;
}

.footer-bottom {
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom p {
  margin: 0;
}

/* 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) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .header-top {
    height: auto;
    padding: 10px 0;
  }

  .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: 42px;
  }

  .btn-quote,
  .search-btn {
    display: none;
  }

  .mobile-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 126px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 126px);
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    gap: 20px;
    transition: var(--transition);
    overflow-y: auto;
  }

  .header.scrolled .nav-menu {
    top: 66px;
    height: calc(100vh - 66px);
  }

  .nav-link {
    padding: 4px 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item.has-dropdown > .nav-link {
    justify-content: space-between;
    width: 100%;
  }

  .dropdown-menu,
  .dropdown-submenu {
    position: static;
    width: 100%;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 6px 0 0 14px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .nav-item.open > .dropdown-menu,
  .dropdown-menu li.open > .dropdown-submenu {
    display: block;
  }

  .dropdown-menu a,
  .dropdown-submenu a {
    padding: 8px 0;
    white-space: normal;
    font-size: 0.88rem;
  }

  .nav-link.active::before,
  .nav-link.active::after {
    display: none;
  }

  .nav-menu.active { left: 0; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
