/* ============================================
   AVIE GLOBAL TRADING LTD. — Main Stylesheet
   Light-first with dark mode toggle
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- Light Theme (Default) --- */
:root {
  --bg-primary: #f7f7f6;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f2f1ef;
  --accent: #debe8e;
  --accent-light: #e8cca8;
  --accent-dark: #b8964e;
  --text-primary: #1a1a1a;
  --text-secondary: #5c6370;
  --text-muted: #9ca3af;
  --border: rgba(0, 0, 0, 0.08);
  --border-accent: rgba(222, 190, 142, 0.25);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);

  --hero-bg-1: #edebe8;
  --hero-bg-2: #e8e6e2;
  --hero-accent-glow: rgba(222, 190, 142, 0.08);
  --hero-grid: rgba(0, 0, 0, 0.025);
  --hero-line: rgba(222, 190, 142, 0.08);
  --noise-opacity: 0.015;
  --header-bg: rgba(20, 35, 60, 0.95);

  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 80px;
}

/* --- Dark Theme --- */
[data-theme="dark"] {
  --bg-primary: #080a0c;
  --bg-surface: #0f1318;
  --bg-card: #161b22;
  --bg-card-hover: #1c2230;
  --accent: #debe8e;
  --accent-light: #e8cca8;
  --accent-dark: #b8964e;
  --text-primary: #f0f0f0;
  --text-secondary: #8b95a5;
  --text-muted: #555e6e;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(222, 190, 142, 0.25);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);

  --hero-bg-1: #0d1117;
  --hero-bg-2: #080a0c;
  --hero-accent-glow: rgba(222, 190, 142, 0.15);
  --hero-grid: rgba(255, 255, 255, 0.02);
  --hero-line: rgba(222, 190, 142, 0.15);
  --noise-opacity: 0.03;
  --header-bg: rgba(20, 35, 60, 0.95);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s ease, color 0.4s ease;
}

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

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

ul { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: white;
}

/* --- Noise Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  pointer-events: none;
  z-index: 9999;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 100px 0;
}

.section-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 0.3s; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: #14233c;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: rgba(20, 35, 60, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(222, 190, 142, 0.1);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: auto;
}

/* Footer logo slightly smaller */
.site-footer .logo-img {
  height: 30px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: rgba(222, 190, 142, 0.6);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #debe8e;
}

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

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(222, 190, 142, 0.6);
  transition: all var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: #debe8e;
  color: #debe8e;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Language Switcher */
.lang-switch {
  display: flex;
  background: var(--bg-card);
  border-radius: 100px;
  padding: 3px;
  border: 1px solid var(--border);
}

.lang-switch button {
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 100px;
  transition: all var(--transition);
  color: var(--text-muted);
}

.lang-switch button.active {
  background: var(--accent);
  color: white;
}

.lang-switch button:hover:not(.active) {
  color: var(--text-primary);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #debe8e;
  transition: all var(--transition);
  transform-origin: center;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(222, 190, 142, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(222, 190, 142, 0.05) 0%, transparent 50%),
    var(--bg-primary);
}

[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(222, 190, 142, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(222, 190, 142, 0.06) 0%, transparent 50%),
    var(--bg-primary);
}

/* Subtle grid */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* Diagonal accent line */
.hero-bg::after {
  content: '';
  position: absolute;
  top: -50%;
  right: 35%;
  width: 1px;
  height: 200%;
  background: linear-gradient(to bottom, transparent, var(--hero-line), transparent);
  transform: rotate(25deg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Centered hero variant */
.hero-centered .hero-inner {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  padding-top: 50px;
  padding-bottom: 40px;
  gap: 0;
}

.hero-centered .hero-text {
  max-width: 960px;
}

.hero-centered .hero-desc {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-centered .hero-image {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
}

.hero-centered .hero-image img {
  max-height: 520px;
  width: 100%;
  object-fit: contain;
  animation: heroFloat 4s ease-in-out infinite;
}

.hero-centered > .container > .hero-btns {
  justify-content: center;
  margin-top: 20px;
}

.hero-text {
  max-width: 560px;
}

.hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-centered .hero-desc {
  margin-bottom: 0;
  max-width: none;
  white-space: nowrap;
}

.hero-btns {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #14233c;
  color: #debe8e;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.hero-cta:hover {
  background: #1a2d4a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(20, 35, 60, 0.3);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

[data-theme="dark"] .hero-cta {
  background: #debe8e;
  color: #14233c;
}

[data-theme="dark"] .hero-cta:hover {
  background: #e8cca8;
  box-shadow: 0 8px 30px rgba(222, 190, 142, 0.2);
}

/* Hero car image */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
  animation: heroFloat 4s ease-in-out infinite;
}

[data-theme="dark"] .hero-image img {
  filter: drop-shadow(0 20px 60px rgba(222, 190, 142, 0.15));
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============================================
   BRANDS BAR
   ============================================ */
.brands-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
  overflow: hidden;
}

.brands-track {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: brandScroll 40s linear infinite;
}

.brands-track:hover {
  animation-play-state: paused;
}

.brand-logo-item {
  flex-shrink: 0;
  cursor: default;
  padding: 8px 12px;
}

.brand-logo-item img {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

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

/* ============================================
   FEATURES
   ============================================ */
.features {
  background: var(--bg-primary);
}

.features-header {
  text-align: center;
  margin-bottom: 60px;
}

.features-header .section-desc {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(222, 190, 142, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

[data-theme="dark"] .feature-icon {
  background: rgba(222, 190, 142, 0.1);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ============================================
   STATS
   ============================================ */
.stats {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(222, 190, 142, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -1px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   ABOUT PREVIEW (Homepage)
   ============================================ */
.about-preview {
  background: var(--bg-primary);
}

.about-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-box {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.about-image-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(184,134,78,0.1), transparent 60%),
    linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
}

.about-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.about-image-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.about-text .section-desc {
  margin-bottom: 32px;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.about-link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.about-link:hover svg {
  transform: translateX(6px);
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.cta-box {
  background: linear-gradient(135deg, rgba(184,134,78,0.08) 0%, rgba(184,134,78,0.02) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 80px;
  text-align: center;
  position: relative;
}

[data-theme="dark"] .cta-box {
  background: linear-gradient(135deg, rgba(201,147,90,0.12) 0%, rgba(201,147,90,0.03) 100%);
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 60px 60px;
}

.cta-box .section-title {
  margin-bottom: 16px;
}

.cta-box .section-desc {
  margin: 0 auto 36px;
  text-align: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #14233c;
  color: #debe8e;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-primary:hover {
  background: #1a2d4a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(20, 35, 60, 0.3);
}

[data-theme="dark"] .btn-primary {
  background: #debe8e;
  color: #14233c;
}

[data-theme="dark"] .btn-primary:hover {
  background: #e8cca8;
  box-shadow: 0 8px 30px rgba(222, 190, 142, 0.2);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: #14233c;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid #14233c;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: rgba(20, 35, 60, 0.08);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-outline {
  color: #debe8e;
  border-color: #debe8e;
}

[data-theme="dark"] .btn-outline:hover {
  background: rgba(222, 190, 142, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #14233c;
  border-top: 1px solid rgba(222, 190, 142, 0.1);
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: #debe8e;
  color: #debe8e;
  background: rgba(222, 190, 142, 0.08);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #debe8e;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a,
.footer-col ul li span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: #debe8e;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: #debe8e;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
}

/* ============================================
   PAGE HEADER (Inner pages)
   ============================================ */
.page-header {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184,134,78,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.page-header .section-title {
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-secondary);
}

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

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content {
  background: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text-block h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
  margin-top: 40px;
}

.about-text-block h3:first-child {
  margin-top: 0;
}

.about-text-block p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.about-value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.about-value-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.about-value-card h4 {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.about-value-card p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   BRANDS PAGE
   ============================================ */
.brands-content {
  background: var(--bg-primary);
}

.brand-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 20px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.brand-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.brand-card:nth-child(even) {
  grid-template-columns: 2fr 1fr;
}

.brand-card:nth-child(even) .brand-card-logo {
  order: 2;
}

.brand-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 160px;
}

.brand-card-logo span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brand-card-info h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}

.brand-card-info p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-content {
  background: var(--bg-primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.blog-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  aspect-ratio: 16/9;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.blog-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,134,78,0.06), rgba(184,134,78,0.02));
}

.blog-card-body {
  padding: 24px;
}

.blog-card-date {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 16px;
}

.blog-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.blog-card:hover .blog-card-link svg {
  transform: translateX(4px);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-content {
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: border-color var(--transition);
  outline: none;
}

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

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: #14233c;
  color: #debe8e;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.form-submit:hover {
  background: #1a2d4a;
}

[data-theme="dark"] .form-submit {
  background: #debe8e;
  color: #14233c;
}

[data-theme="dark"] .form-submit:hover {
  background: #e8cca8;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.contact-info-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(222, 190, 142, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

[data-theme="dark"] .contact-info-icon {
  background: rgba(222, 190, 142, 0.1);
}

.contact-info-icon svg {
  width: 18px;
  height: 18px;
}

.contact-info-card h4 {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ============================================
   VEHICLE GROUPS PAGE
   ============================================ */

/* --- Category Selection --- */
.vg-select {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  background: var(--bg-primary);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.vg-select.hidden {
  display: none;
}

.vg-select-header {
  text-align: center;
  margin-bottom: 60px;
}

.vg-select-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.vg-select-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.vg-select-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.vg-select-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.vg-select-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #14233c, #debe8e);
  opacity: 0;
  transition: opacity var(--transition);
}

.vg-select-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.vg-select-card:hover::before {
  opacity: 1;
}

.vg-select-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(20, 35, 60, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #14233c;
}

[data-theme="dark"] .vg-select-icon {
  background: rgba(222, 190, 142, 0.1);
  color: #debe8e;
}

.vg-select-icon svg {
  width: 30px;
  height: 30px;
}

.vg-select-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.vg-select-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(222, 190, 142, 0.12);
  padding: 4px 14px;
  border-radius: 100px;
}

/* --- Brand Display --- */
.vg-brands {
  display: none;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  background: var(--bg-primary);
  min-height: 100vh;
}

.vg-brands.visible {
  display: block;
}

.vg-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 32px;
  padding: 8px 0;
  transition: color var(--transition);
}

.vg-back:hover {
  color: var(--accent);
}

.vg-back svg {
  width: 18px;
  height: 18px;
}

.vg-brands-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.5px;
  margin-bottom: 40px;
}

.vg-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.vg-brand-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 140px;
  transition: all var(--transition);
  cursor: default;
  box-shadow: var(--shadow-sm);
}

.vg-brand-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.vg-brand-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.vg-brand-item span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.vg-brand-item:hover span {
  color: var(--text-primary);
}

/* --- Category Tabs (inner page navigation) --- */
.vg-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.vg-cat-tab {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.vg-cat-tab:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--bg-card-hover);
}

.vg-cat-tab.active {
  background: #14233c;
  color: #debe8e;
  border-color: #14233c;
}

[data-theme="dark"] .vg-cat-tab.active {
  background: #debe8e;
  color: #14233c;
  border-color: #debe8e;
}

/* --- 3-column select grid (Brands page) --- */
.vg-select-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
}

/* --- Performance banner layout --- */
.brand-banners {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
}

.brand-banner-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.brand-banner-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-grid,
  .about-preview-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .brand-card,
  .brand-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .brand-card:nth-child(even) .brand-card-logo {
    order: 0;
  }

  .vg-select-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .vg-select-grid--3 {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 35, 60, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-label {
    justify-content: center;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-image img {
    max-height: 260px;
  }

  .hero-centered .hero-image img {
    max-height: 280px;
    width: 100%;
  }

  .hero-centered .hero-desc {
    white-space: normal;
  }

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

  .brands-track {
    gap: 28px;
    animation-duration: 15s;
  }

  .brand-logo-item img {
    height: 36px;
  }

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

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .section-pad {
    padding: 60px 0;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .logo-img {
    height: 28px;
  }

  .vg-select-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .vg-select-grid--3 {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .vg-select-card {
    padding: 32px 24px;
  }

  .vg-brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}
