/* Blacklion.lv public site — industrial premium: graphite/white + red-amber accent. */

:root {
  --bg: #f6f5f3;
  --surface: #ffffff;
  --graphite: #1d2024;
  --graphite-soft: #2a2e34;
  --ink: #1a1b1e;
  --ink-muted: #5b5e64;
  --border: #e3e1dd;
  --accent: #d9481f;
  --accent-dark: #b53a17;
  --accent-soft: rgba(217, 72, 31, 0.1);
  --success: #3f8f5f;
  --warning: #b9791f;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(20, 20, 20, 0.08), 0 1px 2px rgba(20, 20, 20, 0.05);
  --shadow-md: 0 10px 30px rgba(20, 20, 20, 0.1);
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6rem; }
p { margin: 0 0 1rem; color: var(--ink-muted); max-width: 68ch; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.btn-primary { background: var(--accent); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-dark); }
}
.btn-primary:active { transform: translateY(1px); }

.btn-outline { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header {
  background: var(--graphite);
  color: #fff;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  gap: 1rem;
  position: relative;
}

.brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #fff;
}

.brand span { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav-panel {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.site-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: #fff; }
}

.site-nav a.is-active { color: #fff; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

.locale-switch { display: flex; gap: 0.5rem; font-size: 0.82rem; }
.locale-switch a { text-decoration: none; color: rgba(255, 255, 255, 0.6); }
.locale-switch a.is-active { color: #fff; font-weight: 700; }

@media (max-width: 780px) {
  .nav-toggle { display: flex; }

  .site-nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--graphite-soft);
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
    z-index: 50;
  }

  .site-nav-panel.is-open { display: flex; }

  .site-nav { flex-direction: column; gap: 1rem; font-size: 1rem; }
  .site-nav a.is-active { border-bottom: none; padding-bottom: 0; font-weight: 700; }

  .locale-switch { font-size: 0.9rem; gap: 1rem; }
}

/* Hero */
.hero {
  background: var(--graphite);
  color: #fff;
  padding: 3.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero h1 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); color: #fff; }
.hero p { color: rgba(255, 255, 255, 0.75); max-width: 52ch; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.5rem; }

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--graphite);
}

.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--surface); }
.section-heading { font-size: 1.6rem; margin-bottom: 1.75rem; }

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.advantage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.advantage-card h3 { font-size: 1.05rem; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--graphite-soft);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .category-card:hover { transform: translateY(-3px); }
}

.category-card span { color: rgba(255, 255, 255, 0.65); font-size: 0.85rem; }

/* Product / profile cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
}

.product-card-image { aspect-ratio: 4/3; background: var(--bg); overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.product-card-body h3 { font-size: 1.05rem; margin-bottom: 0.1rem; }
.product-card-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: auto; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.badge-outline { background: transparent; border: 1px solid var(--border); color: var(--ink-muted); }

/* Filters */
.filters-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.filters-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 160px; }
.filter-field label { font-size: 0.78rem; font-weight: 600; color: var(--ink-muted); }

.filter-field input, .filter-field select {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.filter-field input:focus, .filter-field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Profile detail */
.profile-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .profile-hero { grid-template-columns: 1fr; } }
.profile-gallery img { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); max-width: 100%; }
.profile-gallery-axle-icon { display: block; margin-top: 1rem; max-height: 3rem; box-shadow: none !important; background: var(--surface, #fff); padding: 0.4rem 0.6rem; }
.advantages-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.advantages-list li { padding-left: 1.4rem; position: relative; color: var(--ink); }
.advantages-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.variant-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.variant-table th, .variant-table td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); }
.variant-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form .form-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.contact-form label { font-size: 0.85rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 0.9rem 1.1rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; font-size: 0.92rem; }
.alert-success { background: rgba(63, 143, 95, 0.12); color: var(--success); }
.alert-error { background: var(--accent-soft); color: var(--accent-dark); }

.map-block {
  background: var(--graphite-soft);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.map-block a { color: #fff; text-decoration: underline; }

/* Legal / static pages */
.prose h2 { font-size: 1.25rem; margin-top: 1.75rem; }
.prose p, .prose ul { max-width: 72ch; color: var(--ink); }

/* Footer */
.site-footer { background: var(--graphite); color: rgba(255, 255, 255, 0.75); padding: 3rem 0 2rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.75rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid a { text-decoration: none; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
@media (hover: hover) and (pointer: fine) { .footer-grid a:hover { color: #fff; } }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.5rem; font-size: 0.82rem; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--graphite);
  color: #fff;
  padding: 1.25rem 1.5rem;
  z-index: 60;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cookie-banner p { color: rgba(255, 255, 255, 0.8); margin: 0; max-width: 60ch; font-size: 0.88rem; }
.cookie-banner-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Consent preferences page */
.consent-category {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.consent-category:last-child { border-bottom: none; }

/* Errors */
.error-page { text-align: center; padding: 5rem 1rem; }
.error-page h1 { font-size: 3rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
