/* Blacklion.lv public site — 3D Hyperrealism: deep navy + metallic gold, Playfair Display + Outfit. */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/playfair-display/latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/playfair-display/latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0304, U+0308, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/playfair-display/cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/outfit/latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/outfit/latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0304, U+0308, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #1a1a2e;
  --bg-alt: #16162a;
  --surface: rgba(255, 255, 255, 0.04);
  --graphite: #16162a;
  --graphite-soft: rgba(255, 255, 255, 0.06);
  --ink: #ffffff;
  --ink-muted: rgba(255, 255, 255, 0.65);
  --border: rgba(212, 175, 55, 0.22);
  --accent: #d4af37;
  --accent-light: #f4d160;
  --accent-dark: #a08628;
  --accent-soft: rgba(212, 175, 55, 0.14);
  --success: #4ade80;
  --warning: #fbbf24;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-md: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-ui: 'Outfit', -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.6;
  -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 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 0.6rem; font-weight: 700; }
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.85rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-light), var(--accent));
  color: var(--bg);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1); }
}
.btn-primary:active { transform: translateY(0); }

.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover { background: var(--accent-soft); }
}
.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: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  color: #fff;
}

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

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #fff;
}

.brand span {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-light) 25%, var(--accent) 50%, var(--accent-light) 75%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.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: var(--accent);
  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: 2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 500;
  position: relative;
  transition: color var(--dur-base) var(--ease-out);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
  transition: width var(--dur-base) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--accent); }
  .site-nav a:hover::after { width: 100%; }
}

.site-nav a.is-active { color: var(--accent); }
.site-nav a.is-active::after { width: 100%; }

.locale-switch { display: flex; gap: 0.5rem; font-size: 0.82rem; }
.locale-switch a { text-decoration: none; color: rgba(255, 255, 255, 0.5); }
.locale-switch a.is-active { color: var(--accent); 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(--bg-alt);
    border-bottom: 1px solid var(--border);
    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; }

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

/* Hero */
.hero {
  background: radial-gradient(ellipse at top right, rgba(212, 175, 55, 0.08), transparent 60%), var(--bg);
  color: #fff;
  padding: 4rem 0 4.5rem;
}

.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(2rem, 3.5vw, 3rem);
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-light) 25%, var(--accent) 50%, var(--accent-light) 75%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.25));
}

.hero p { color: var(--ink-muted); max-width: 52ch; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.5rem; }

.hero-image, .video-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  perspective: 1000px;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (hover: hover) and (pointer: fine) {
  .hero-image:hover { transform: rotateY(-4deg) rotateX(3deg); }
}

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

.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--bg-alt); }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

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

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

.advantage-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0.08) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

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

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

.category-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0.08) 100%);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .category-card:hover { transform: translateY(-4px); border-color: var(--accent); }
}

.category-card h3 { font-size: 1.1rem; }
.category-card span { color: var(--ink-muted); font-size: 0.85rem; }

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

.product-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0.1) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

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

.product-card-image { aspect-ratio: 4/3; background: var(--bg-alt); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 1.2rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.product-card-body h3 { font-size: 1.1rem; 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.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-soft);
  color: var(--accent);
}

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

/* Filters */
.filters-bar {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  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.35rem; 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.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.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%; border: 1px solid var(--border); }
.profile-gallery-axle-icon { display: block; margin-top: 1rem; max-height: 3rem; box-shadow: none !important; border: none !important; background: rgba(255, 255, 255, 0.9); padding: 0.4rem 0.6rem; border-radius: var(--radius-sm); }
.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.65rem 0.85rem; border-bottom: 1px solid var(--border); }
.variant-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); font-family: var(--font-ui); }

/* 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.75rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}
.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; border: 1px solid; }
.alert-success { background: rgba(74, 222, 128, 0.1); color: var(--success); border-color: rgba(74, 222, 128, 0.3); }
.alert-error { background: rgba(220, 38, 38, 0.1); color: #f87171; border-color: rgba(220, 38, 38, 0.3); }

.map-block {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.map-block a { color: var(--accent); text-decoration: underline; }

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

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); color: var(--ink-muted); 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 { font-family: var(--font-display); color: var(--accent); font-size: 1rem; 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: var(--ink-muted); font-size: 0.9rem; }
@media (hover: hover) and (pointer: fine) { .footer-grid a:hover { color: var(--accent); } }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-dev-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color var(--dur-base) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .footer-dev-credit:hover { color: var(--accent); }
}

.footer-dev-credit img { border-radius: 4px; opacity: 0.7; transition: opacity var(--dur-base) var(--ease-out); }
.footer-dev-credit:hover img { opacity: 1; }
.footer-dev-name { font-weight: 600; letter-spacing: 0.02em; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(22, 22, 42, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  color: #fff;
  padding: 1.25rem 1.5rem;
  z-index: 60;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}

.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: var(--ink-muted); 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; }
}
