/*
Theme Name: Avtocenter Svelc
Author: Avtocenter Svelc
Description: Modern WordPress theme for a Slovenian vehicle sales and service center.
Version: 1.0.0
Text Domain: ac-svelc
*/

:root {
  --navy: #15171a;
  --navy-soft: #202428;
  --blue-bright: #23ff23;
  --anthracite: #202428;
  --muted: #687568;
  --line: #dfe8df;
  --light: #f5f8f4;
  --white: #ffffff;
  --accent: #23ff23;
  --accent-dark: #13c913;
  --shadow: 0 18px 50px rgba(5, 8, 5, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--anthracite);
  background: var(--white);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(21, 23, 26, 0.98), rgba(16, 24, 16, 0.96));
  backdrop-filter: blur(10px);
  color: var(--white);
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 54px;
  max-height: 54px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.9);
}

.nav-menu a:hover {
  color: var(--white);
}

.menu-toggle {
  display: none;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 12px;
  border-radius: 9px;
}

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(21, 23, 26, 0.92), rgba(5, 8, 5, 0.72) 48%, rgba(35, 255, 35, 0.16)),
    var(--hero-image, linear-gradient(135deg, #15171a, #2a2f34));
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 760px;
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #b8ffb8;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  max-width: 820px;
}

.hero p {
  max-width: 650px;
  margin: 0 0 30px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.88);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 9px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  color: var(--white);
  color: #15171a;
  background: linear-gradient(135deg, var(--accent), #8cff8c);
  box-shadow: 0 12px 28px rgba(35, 255, 35, 0.26);
}

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

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.section {
  padding: 86px 0;
}

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

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

.section-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.section-dark .section-heading h2,
.section-dark .section-heading p {
  color: var(--white);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.vehicle-card,
.form-panel,
.content-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(5, 8, 5, 0.08);
}

.feature-card {
  padding: 28px;
}

.feature-card h3,
.content-panel h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 21px;
}

.feature-card p,
.content-panel p {
  margin: 0;
  color: var(--muted);
}

.vehicle-card {
  overflow: hidden;
}

.vehicle-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.vehicle-body {
  padding: 20px;
}

.vehicle-title {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--navy);
}

.vehicle-price {
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
}

.vehicle-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status.reserved {
  color: #202428;
  background: #c9ff3a;
}

.status.sold {
  background: #5f6b5f;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8e4d8;
  border-radius: 9px;
  padding: 11px 13px;
  font: inherit;
  color: var(--anthracite);
  background: var(--white);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-panel {
  padding: 28px;
}

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

.calculator-output {
  margin-top: 14px;
  padding: 14px;
  border-radius: 9px;
  background: var(--light);
  color: var(--navy);
  font-weight: 900;
}

.footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.76);
  background: linear-gradient(135deg, #15171a, #202428);
}

.footer strong {
  color: var(--white);
}

.map-embed {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 8px;
}

.vehicle-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.vehicle-gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 8px;
}

.vehicle-gallery img:first-child {
  grid-row: span 2;
  height: 472px;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 24px;
    background: var(--navy);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .filter-panel,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 12px;
  }

  .hero {
    min-height: 580px;
  }

  .vehicle-gallery {
    grid-template-columns: 1fr;
  }

  .vehicle-gallery img,
  .vehicle-gallery img:first-child {
    height: auto;
    aspect-ratio: 4 / 3;
    grid-row: auto;
  }
}

.vehicle-card:hover {
  transform: translateY(-4px);
  border-color: rgba(35, 255, 35, 0.42);
  box-shadow: 0 18px 42px rgba(5, 8, 5, 0.18);
}

.vehicle-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card h3::before,
.content-panel h3::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #8cff8c);
}

.brand img {
  filter: drop-shadow(0 0 14px rgba(35, 255, 35, 0.28));
}

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

.btn-secondary:hover {
  border-color: rgba(35, 255, 35, 0.65);
  background: rgba(35, 255, 35, 0.13);
}

.vehicle-price {
  text-shadow: 0 0 18px rgba(35, 255, 35, 0.16);
}

.filter-panel:focus-within,
.form-panel:focus-within {
  border-color: rgba(35, 255, 35, 0.45);
  box-shadow: 0 14px 34px rgba(5, 8, 5, 0.10);
}

.hero h1 strong,
.hero .eyebrow,
.section-dark .content-panel h3 {
  color: var(--accent);
}

.section-dark .content-panel {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(35, 255, 35, 0.18);
}

.hero h1 {
  text-shadow: 0 8px 32px rgba(21, 23, 26, 0.56);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.8;
}

.premium-strip {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(35, 255, 35, 0.18), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(140, 255, 140, 0.10), transparent 30%),
    linear-gradient(135deg, #15171a, #202428 54%, #15171a);
}

.premium-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(35, 255, 35, 0.08) 42% 43%, transparent 43% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 120px);
}

.premium-strip > .container {
  position: relative;
  z-index: 1;
}

.premium-heading {
  align-items: center;
  margin-bottom: 42px;
}

.premium-heading h2 {
  color: var(--white);
}

.premium-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.premium-cards {
  align-items: stretch;
}

.premium-card,
.vehicle-cta-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 34px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    linear-gradient(135deg, rgba(8, 14, 8, 0.96), rgba(18, 28, 18, 0.92));
  border: 1px solid rgba(35, 255, 35, 0.28);
  border-radius: 22px;
  box-shadow:
    0 28px 80px rgba(21, 23, 26, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.premium-card::before,
.vehicle-cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(35, 255, 35, 0.24), transparent 32%),
    linear-gradient(120deg, rgba(35, 255, 35, 0.16), transparent 26% 74%, rgba(255, 255, 255, 0.08));
  opacity: 0.86;
}

.premium-card::after,
.vehicle-cta-panel::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), #baffba, transparent);
  box-shadow: 0 0 20px rgba(35, 255, 35, 0.55);
}

.premium-card > *,
.vehicle-cta-panel > * {
  position: relative;
  z-index: 1;
}

.premium-card:hover,
.vehicle-cta-panel:hover {
  transform: translateY(-8px);
  border-color: rgba(35, 255, 35, 0.66);
  box-shadow:
    0 34px 90px rgba(21, 23, 26, 0.44),
    0 0 36px rgba(35, 255, 35, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.premium-card h3,
.vehicle-cta-panel h2 {
  margin: 14px 0 12px;
  color: var(--white);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.05;
}

.premium-card h3::before,
.vehicle-cta-panel h2::before {
  display: none;
}

.premium-card p,
.vehicle-cta-panel p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
}

.premium-card .btn,
.vehicle-cta-panel .btn {
  margin-top: auto;
  align-self: flex-start;
}

.premium-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: #15171a;
  background: linear-gradient(135deg, var(--accent), #baffba);
  border-radius: 18px;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(35, 255, 35, 0.24);
}

.vehicle-detail-panel {
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.ac-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ac-modal.is-open {
  display: flex;
}

.ac-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 23, 26, 0.74);
  backdrop-filter: blur(8px);
}

.ac-modal__panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(86vh, 920px);
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(35, 255, 35, 0.34);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(35, 255, 35, 0.16), transparent 24%),
    #ffffff;
  box-shadow:
    0 34px 100px rgba(21, 23, 26, 0.58),
    0 0 42px rgba(35, 255, 35, 0.20);
}

.ac-modal__panel .form-panel {
  margin: 0;
  border: 0;
  box-shadow: none;
  border-radius: 18px;
}

.ac-modal__close {
  position: sticky;
  top: 8px;
  float: right;
  z-index: 2;
  width: 42px;
  height: 42px;
  margin: 4px 4px -46px 0;
  color: #15171a;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(35, 255, 35, 0.24);
}

.modal-open body {
  overflow: hidden;
}

@media (max-width: 920px) {
  .premium-card,
  .vehicle-cta-panel {
    min-height: auto;
    padding: 28px;
  }

  .ac-modal {
    padding: 14px;
  }
}

/* Tricolor ACS logo palette: black + neon green + white/silver */
:root {
  --navy: #15171a;
  --navy-soft: #202428;
  --blue-bright: #ffffff;
  --anthracite: #202428;
  --muted: #6f786f;
  --line: #e5e8e5;
  --light: #f6f7f5;
  --white: #ffffff;
  --accent: #23ff23;
  --accent-dark: #15c915;
  --silver: #dfe4df;
  --shadow: 0 22px 60px rgba(21, 23, 26, 0.18);
}

body {
  background: #f7f8f7;
}

.site-header {
  background: rgba(21, 23, 26, 0.96);
}

.nav-menu a:hover,
.site-header .brand {
  color: var(--accent);
}

.hero {
  background:
    linear-gradient(90deg, rgba(21, 23, 26, 0.94), rgba(32, 36, 40, 0.72) 48%, rgba(255, 255, 255, 0.10)),
    var(--hero-image, linear-gradient(135deg, #15171a, #2a2f34));
}

.hero h1,
.section-dark h2 {
  color: var(--white);
}

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

.section-dark {
  background:
    radial-gradient(circle at 18% 18%, rgba(35, 255, 35, 0.16), transparent 30%),
    radial-gradient(circle at 84% 10%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #15171a, #202428 62%, #15171a);
}

.btn-primary {
  color: #15171a;
  background: linear-gradient(135deg, var(--accent), #b8ffb8);
  border-color: rgba(35, 255, 35, 0.62);
}

.btn-primary:hover {
  color: #15171a;
  background: linear-gradient(135deg, #b8ffb8, var(--accent));
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  color: var(--accent);
  border-color: rgba(35, 255, 35, 0.74);
  background: rgba(35, 255, 35, 0.10);
}

.feature-card,
.vehicle-card,
.form-panel,
.content-panel {
  border-radius: 18px;
}

.vehicle-card {
  overflow: hidden;
  border-color: rgba(21, 23, 26, 0.08);
  box-shadow: 0 18px 48px rgba(21, 23, 26, 0.11);
}

.vehicle-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--white), var(--accent));
}

.vehicle-title,
.section-heading h2,
.feature-card h3,
.content-panel h3 {
  color: #15171a;
}

.vehicle-price {
  color: #11d911;
}

.status {
  color: #15171a;
  background: var(--accent);
}

.status.sold {
  color: var(--white);
  background: #4b5258;
}

.premium-strip,
.section-dark.premium-strip {
  background:
    radial-gradient(circle at 12% 8%, rgba(35, 255, 35, 0.22), transparent 28%),
    radial-gradient(circle at 90% 4%, rgba(255, 255, 255, 0.16), transparent 26%),
    linear-gradient(135deg, #15171a, #202428 58%, #15171a);
}

.premium-card,
.vehicle-cta-panel {
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(21, 23, 26, 0.98), rgba(36, 42, 38, 0.96));
  border-color: rgba(255, 255, 255, 0.18);
}

.premium-card::after,
.vehicle-cta-panel::after {
  background: linear-gradient(90deg, transparent, var(--accent), var(--white), transparent);
}

.premium-icon {
  color: #15171a;
  background: linear-gradient(135deg, var(--accent), var(--white));
}

.ac-modal__panel {
  background:
    linear-gradient(135deg, rgba(35, 255, 35, 0.12), rgba(255, 255, 255, 0.72) 34%),
    #ffffff;
}

.brand .site-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 920px) {
  .brand img {
    width: 132px;
    max-height: 58px;
  }
}

/* Header brand emphasis */
.site-header {
  background:
    radial-gradient(circle at 12% 50%, rgba(35, 255, 35, 0.18), transparent 24%),
    linear-gradient(110deg, #202428 0%, #2f353a 46%, #181b1f 100%);
  box-shadow: 0 18px 48px rgba(21, 23, 26, 0.28);
}

.header-inner {
  min-height: 104px;
}

.brand {
  position: relative;
  isolation: isolate;
  min-width: 360px;
  min-height: 92px;
  padding: 12px 24px 12px 18px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035)),
    linear-gradient(115deg, rgba(35, 255, 35, 0.12), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 36px rgba(0, 0, 0, 0.20),
    0 0 34px rgba(35, 255, 35, 0.10);
}

.brand::before {
  content: "Avtocenter Švelc";
  position: absolute;
  z-index: -1;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.14);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
  text-transform: uppercase;
}

.brand::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -2;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(35, 255, 35, 0.18), transparent 38%, rgba(255, 255, 255, 0.12));
}

.brand img {
  width: 238px;
  max-height: 96px;
  filter:
    drop-shadow(0 0 16px rgba(35, 255, 35, 0.35))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.brand .site-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 920px) {
  .header-inner {
    min-height: 92px;
  }

  .brand {
    min-width: 230px;
    min-height: 76px;
    padding: 10px 14px;
  }

  .brand::before {
    font-size: 30px;
    right: 10px;
  }

  .brand img {
    width: 178px;
    max-height: 72px;
  }
}

/* Header logo watermark refinement */
.brand::before {
  content: "Avtocenter Švelc";
  right: 20px;
  color: rgba(255, 255, 255, 0.18);
  font-size: clamp(22px, 2.25vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: none;
}

@media (max-width: 920px) {
  .brand::before {
    font-size: 20px;
    right: 12px;
  }
}

/* Header brand text placed right of logo */
.brand {
  min-width: 520px;
  gap: 22px;
}

.brand::before,
.brand::after {
  display: none;
}

.brand .site-name {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  color: var(--white);
  font-size: clamp(22px, 2.1vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  text-shadow: 0 0 18px rgba(35, 255, 35, 0.18);
}

.brand .site-name::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.9));
}

@media (max-width: 920px) {
  .brand {
    min-width: 0;
    gap: 12px;
  }

  .brand .site-name {
    font-size: 18px;
  }

  .brand .site-name::after {
    width: 44px;
    margin-top: 7px;
  }
}

/* Hero image alignment */
.hero {
  min-height: 680px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(21, 23, 26, 0.98) 0%, rgba(21, 23, 26, 0.90) 34%, rgba(32, 36, 40, 0.58) 64%, rgba(32, 36, 40, 0.32) 100%),
    var(--hero-image, linear-gradient(135deg, #15171a, #2a2f34));
  background-size: 100% 100%, cover;
  background-position: center, 68% center;
  background-repeat: no-repeat, no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 42%, rgba(35, 255, 35, 0.12), transparent 28%),
    linear-gradient(180deg, transparent 70%, rgba(21, 23, 26, 0.62));
}

.hero-content {
  position: relative;
  z-index: 1;
}

@media (max-width: 920px) {
  .hero {
    min-height: 620px;
    background-image:
      linear-gradient(180deg, rgba(21, 23, 26, 0.92) 0%, rgba(21, 23, 26, 0.82) 56%, rgba(21, 23, 26, 0.95) 100%),
      var(--hero-image, linear-gradient(135deg, #15171a, #2a2f34));
    background-position: center, center;
  }
}

/* Header logo without background box */
.brand {
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand::before,
.brand::after {
  display: none;
}

.brand img {
  width: 250px;
  max-height: 98px;
}

@media (max-width: 920px) {
  .brand {
    min-width: 0;
    min-height: 0;
    padding: 0;
  }

  .brand img {
    width: 172px;
    max-height: 70px;
  }
}


/* Header brand text final sizing */
.brand .site-name {
  font-size: clamp(15px, 1.4vw, 23px);
  text-transform: none;
  letter-spacing: -0.015em;
}

@media (max-width: 920px) {
  .brand .site-name {
    font-size: 12px;
  }
}

/* Header brand text top-left aligned beside logo */
.brand {
  align-items: flex-start;
  gap: 14px;
}

.brand .site-name {
  align-self: flex-start;
  margin-top: 6px;
  line-height: 1.05;
}

.brand .site-name::after {
  margin-top: 6px;
}

@media (max-width: 920px) {
  .brand {
    align-items: flex-start;
    gap: 8px;
  }

  .brand .site-name {
    margin-top: 4px;
  }
}

/* Header wrap: brand stays above navigation when needed */
.header-inner {
  flex-wrap: wrap;
  align-items: center;
  row-gap: 10px;
}

.brand {
  flex: 1 1 390px;
  max-width: 100%;
}

.nav-menu {
  flex: 0 1 auto;
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  .header-inner {
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    flex-basis: 100%;
  }

  .nav-menu {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-left: 0;
  }
}

@media (max-width: 920px) {
  .header-inner {
    align-items: center;
  }

  .brand {
    flex: 1 1 auto;
  }

  .nav-menu {
    width: auto;
  }
}


/* Header brand text centered vertically beside logo */
.brand {
  align-items: center;
}

.brand .site-name {
  align-self: center;
  margin-top: 0;
  font-size: clamp(18px, 1.68vw, 27.5px);
  text-align: left;
}

.brand .site-name::after {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 1180px) and (min-width: 921px) {
  .nav-menu {
    width: auto;
    margin-left: calc(250px + 14px);
    justify-content: flex-start;
  }
}

@media (max-width: 920px) {
  .brand {
    align-items: center;
  }

  .brand .site-name {
    align-self: center;
    margin-top: 0;
    font-size: 14.5px;
    text-align: left;
  }

  .brand .site-name::after {
    margin-left: 0;
    margin-right: 0;
  }
}
