/* ============================================================
   BASE.CSS — Design System for EuvgenGlob Auto Export Website
   Dark premium theme · Gold accent · Mobile-first
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS VARIABLES
   ------------------------------------------------------------ */
:root {
  /* Backgrounds */
  --bg:    #0a0a0a;
  --bg2:   #141414;
  --bg3:   #1a1a1a;

  /* Accent */
  --accent:  #c9a96e;
  --accent2: #a68b4b;

  /* Semantic */
  --positive: #4a9e6e;
  --negative: #c75050;

  /* Text */
  --text:   #e8e8e8;
  --text2:  #777;

  /* Borders & Radius */
  --border: rgba(255, 255, 255, 0.08);
  --radius: 8px;

  /* Layout */
  --max-w:        1100px;
  --max-w-narrow: 800px;

  /* Header */
  --header-h: 60px;
}


/* ------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}


/* ------------------------------------------------------------
   3. BODY
   ------------------------------------------------------------ */
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ------------------------------------------------------------
   4. TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--text2);
}


/* ------------------------------------------------------------
   5. LAYOUT
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

.section {
  padding: 48px 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

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


/* ------------------------------------------------------------
   6. STICKY HEADER
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* Desktop: nav sits visually inside header */
.site-header__nav {
  position: fixed;
  top: 0;
  right: 20px;
  height: var(--header-h);
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header__nav a {
  font-size: 0.9rem;
  color: var(--text2);
  transition: color 0.2s;
}

.site-header__nav a:hover,
.site-header__nav a.active {
  color: var(--accent);
}

/* Burger — hidden on desktop */
.site-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
}

.site-header__burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}


/* ------------------------------------------------------------
   7. MOBILE NAV
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .site-header__burger {
    display: flex;
  }

  .site-header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .site-header__nav a {
    font-size: 1.25rem;
    text-align: center;
  }

  /* Open state */
  .site-header__nav.open {
    opacity: 1;
    visibility: visible;
  }

  /* Lock body scroll when nav open */
  body.nav-open {
    overflow: hidden;
  }

  /* Burger animation when open */
  .site-header__burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header__burger.open span:nth-child(2) {
    opacity: 0;
  }

  .site-header__burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}


/* ------------------------------------------------------------
   8. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  text-align: center;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}

.site-footer__links a {
  font-size: 0.9rem;
  color: var(--text2);
  transition: color 0.2s;
}

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

.site-footer__copy {
  font-size: 0.8rem;
  color: var(--text2);
}


/* ------------------------------------------------------------
   9. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  cursor: pointer;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

/* Primary — gold bg, dark text */
.btn--primary {
  background: var(--accent);
  color: var(--bg);
}

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

/* Outline — gold border */
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.btn--outline:hover {
  background: rgba(201, 169, 110, 0.1);
}

/* Block — full width */
.btn--block {
  display: flex;
  width: 100%;
}


/* ------------------------------------------------------------
   10. CARDS
   ------------------------------------------------------------ */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}


/* ------------------------------------------------------------
   11. STICKY MOBILE CTA
   ------------------------------------------------------------ */
.sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
  }

  .sticky-cta .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  body {
    padding-bottom: 72px;
  }
}


/* ------------------------------------------------------------
   12. COMPARISON TABLE
   ------------------------------------------------------------ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

.compare-table thead th {
  background: var(--bg3);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text2);
}

.compare-table tbody tr {
  background: var(--bg2);
  transition: background 0.15s;
}

.compare-table tbody tr:hover {
  background: var(--bg3);
}

/* Accent on last column (e.g. "Our price") */
.compare-table td:last-child,
.compare-table th:last-child {
  color: var(--accent);
  font-weight: 600;
}

/* Responsive scroll wrapper */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


/* ------------------------------------------------------------
   13. STATS GRID
   ------------------------------------------------------------ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
}

.stat-item {
  text-align: center;
}

.stat-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text2);
  margin-top: 4px;
}


/* ------------------------------------------------------------
   14. FAQ ACCORDION
   ------------------------------------------------------------ */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s;
}

.faq-item.open .faq-q::after {
  content: '\2212'; /* minus sign */
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding-bottom: 20px;
}

.faq-a p {
  color: var(--text2);
  line-height: 1.7;
}


/* ------------------------------------------------------------
   15. CASE CARDS
   ------------------------------------------------------------ */
.case-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.case-card__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.case-card__text {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.6;
}


/* ------------------------------------------------------------
   16. OFFER PREVIEW CARDS
   ------------------------------------------------------------ */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.offer-preview {
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s;
}

.offer-preview:hover {
  border-color: var(--accent);
}

.offer-preview__price {
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.offer-preview__desc {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.6;
  flex: 1;
}

.offer-preview .btn {
  margin-top: 20px;
}


/* ------------------------------------------------------------
   17. PROCESS STEPS
   ------------------------------------------------------------ */
.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step {
  display: flex;
  gap: 20px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.step__body {
  flex: 1;
  padding-top: 8px;
}

.step__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step__text {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.6;
}
