/* VANTEC vantecpro.com — Corporate Website Styles */

:root {
  --navy: #0A1628;
  --navy-light: #122038;
  --gold: #C8A45C;
  --gold-light: #E8D5A8;
  --gold-dark: #A68340;
  --white: #FFFFFF;
  --bg-light: #F7F9FC;
  --text: #1F2937;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.14);
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --header-h: 88px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  font-size: 17px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
}

h1 {
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.35rem;
}

.eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.section {
  padding: 96px 0;
}

.section-light {
  background: var(--bg-light);
}

.section-header {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--navy-light);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* Header — dark tech glass */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(8, 17, 32, 0.94) 0%, rgba(10, 22, 40, 0.80) 100%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(200, 164, 92, 0.30);
  box-shadow: 0 6px 28px rgba(5, 13, 26, 0.45);
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.logo img {
  height: 68px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

.nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 34px;
}

.nav a {
  font-size: 1.12rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--gold-light);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* Dropdown submenus */
.nav li.has-submenu {
  position: relative;
}

.nav .caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.nav li.has-submenu:hover > a .caret {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 240px;
  margin-top: 0;
  background: rgba(8, 17, 32, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(200, 164, 92, 0.22);
  border-top: 2px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(5, 13, 26, 0.55);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1001;
}

/* Transparent bridge: keeps :hover active across the gap between the
   parent item and the dropdown so submenu items stay clickable. */
.submenu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav li.has-submenu:hover > .submenu,
.nav li.has-submenu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.submenu li {
  display: block;
}

.submenu a {
  display: block;
  padding: 11px 22px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
  white-space: nowrap;
  border-left: 2px solid transparent;
  border-bottom: none;
  transition: all 0.15s ease;
}

.submenu a::after {
  display: none;
}

.submenu a:hover {
  background: rgba(200, 164, 92, 0.12);
  color: var(--gold-light);
  border-left-color: var(--gold);
  padding-left: 28px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* Language switcher (EN / 中文) */
.lang-switch a {
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(200, 164, 92, 0.55);
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.lang-switch a:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* Smooth anchor offset under fixed header */
section[id] {
  scroll-margin-top: 104px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 18% 22%, rgba(43, 210, 224, 0.16), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(200, 164, 92, 0.16), transparent 46%),
    linear-gradient(135deg, #050D1A 0%, #0A1E3A 48%, #0E3057 100%);
  color: var(--white);
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(43, 210, 224, 0.10), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(200, 164, 92, 0.10), transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 760px;
  margin-top: 40px;
}

.hero-eyebrow {
  color: var(--gold-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1rem;
  margin: 4px 0 28px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  font-size: 1.35rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 38px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-tagline {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

/* Hero media (background image) */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 40%; /* frame a corner of the facility */
  filter: brightness(0.72) saturate(1.18) contrast(1.04);
  opacity: 0.95;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Directional scrim: dark where the text sits (left), clear over the facility (right) */
  background: linear-gradient(105deg,
    rgba(5, 13, 26, 0.94) 0%,
    rgba(5, 13, 26, 0.80) 34%,
    rgba(5, 13, 26, 0.48) 62%,
    rgba(5, 13, 26, 0.26) 100%);
  pointer-events: none;
}

/* Image media blocks */
.media-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-light);
  min-height: 360px;
}

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

.media-block.tall {
  min-height: 460px;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.media-grid .media-block {
  min-height: 280px;
}

/* Email CTA (lead magnet) */
.email-cta {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  border: 1px solid rgba(200, 164, 92, 0.25);
}

.email-cta .ec-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 10px;
}

.email-cta a.ec-mail {
  display: inline-block;
  color: var(--gold-light);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.5vw, 2.2rem);
  letter-spacing: 0.01em;
  margin: 4px 0 18px;
  word-break: break-all;
}

.email-cta a.ec-mail:hover {
  color: var(--white);
}

/* Full-bleed image banner */
.image-banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.image-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.image-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 22, 40, 0.9), rgba(10, 22, 40, 0.55));
  z-index: 1;
}

.image-banner .container {
  position: relative;
  z-index: 2;
}

/* Trust strip */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
}

.trust-items span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-items .dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold-dark);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  margin-bottom: 12px;
  color: var(--navy);
}

.card-sub {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

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

.card-en {
  font-size: 0.9rem;
  color: var(--gold-dark);
  font-style: italic;
  margin-top: 6px;
}

.brand-card {
  grid-column: 1 / -1;
  text-align: center;
  background: linear-gradient(135deg, var(--navy), var(--tech-blue));
  border: 1px solid rgba(200, 164, 92, 0.35);
}

.brand-card h3 {
  color: var(--gold-light);
}

.brand-card .card-sub {
  color: var(--gold-light);
}

.brand-card .card-en {
  color: var(--gold-light);
}

.brand-tagline {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  margin-top: 6px;
}

/* Pillar cards (numbered) */
.pillar-card {
  position: relative;
  padding-top: 40px;
}

.pillar-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(200, 164, 92, 0.22);
  line-height: 1;
}

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-row.single-col {
  grid-template-columns: 1fr;
  max-width: 840px;
}

.feature-visual {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.feature-visual svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.feature-visual img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

.feature-caption {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.feature-content h2 {
  margin-bottom: 20px;
}

.feature-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.feature-list {
  margin-top: 24px;
}

.feature-list li {
  padding: 11px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

/* Product tables / specs */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.spec-table th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.98rem;
}

.spec-table td {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-band p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 32px;
  font-size: 1.25rem;
}

/* Milestones */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-top: 48px;
  padding-right: 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
  z-index: 2;
}

.timeline-year {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

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

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

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

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

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 56px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 1.05rem;
  line-height: 1.65;
}

.footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer a {
  display: block;
  padding: 6px 0;
  font-size: 1rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 1rem;
}

/* Page hero (smaller) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 160px 0 80px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,0.78);
  font-size: 1.3rem;
  max-width: 680px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 960px) {
  .logo img {
    height: 54px;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-h));
    background: var(--white);
    padding: 32px 24px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
  }

  .nav.open {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    gap: 8px;
  }

  .nav a {
    display: block;
    padding: 12px 0;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--border);
  }

  /* Mobile dark nav + accordion submenus */
  .nav {
    background: var(--navy);
  }
  .nav a {
    color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav a:hover,
  .nav a.active {
    color: var(--gold-light);
  }
  .nav .caret {
    border-top-color: rgba(255, 255, 255, 0.7);
  }
  .submenu {
    position: static;
    transform: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }
  .submenu::before {
    display: none;
  }
  .nav li.has-submenu:hover > .submenu {
    display: none;
  }
  .nav li.has-submenu.open > .submenu {
    display: block;
  }
  .submenu a {
    padding: 10px 16px 10px 34px;
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.72);
    border-left: 2px solid rgba(200, 164, 92, 0.45);
  }
  .submenu a:hover {
    background: rgba(200, 164, 92, 0.10);
    padding-left: 40px;
    color: var(--gold-light);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 24px;
  }

  .menu-toggle {
    display: flex;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-row.reverse {
    direction: ltr;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    padding-top: 0;
    padding-left: 28px;
    border-left: 2px solid var(--border);
  }

  .timeline-item::before {
    top: 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: auto;
    padding: 128px 0 72px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-media img {
    object-position: 50% 38%;
  }

  .hero::after {
    background: linear-gradient(180deg,
      rgba(5, 13, 26, 0.88) 0%,
      rgba(5, 13, 26, 0.82) 55%,
      rgba(5, 13, 26, 0.74) 100%);
  }

  .trust-items {
    gap: 20px;
    font-size: 0.95rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
