/* Design DNA: Hero with legal topic search/filter form — select practice area + search button, editorial Austrian legal aesthetic */

@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --vi-cream: #faf6f0;
  --vi-red: #8b1e3f;
  --vi-red-dark: #6e1832;
  --vi-gold: #c9a227;
  --vi-text: #2a2226;
  --vi-muted: #6d6468;
  --vi-line: #e0d8cc;
  --vi-white: #fffdf9;
  --vi-max: 1160px;
  --vi-radius: 3px;
  --vi-shadow: 0 8px 32px rgba(139, 30, 63, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--vi-cream);
  color: var(--vi-text);
  line-height: 1.65;
  font-size: 16px;
}

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

a { color: var(--vi-red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--vi-red-dark); }

.vi-shell { width: min(var(--vi-max), 93vw); margin-inline: auto; }

/* Header — dual bar with gold accent line */
.vi-masthead {
  background: var(--vi-white);
  border-bottom: 3px solid var(--vi-gold);
  position: sticky;
  top: 0;
  z-index: 200;
}

.vi-masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.5rem;
}

.vi-brand {
  font-family: 'Bitter', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vi-red);
}

.vi-brand small {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vi-gold);
}

.vi-menu { display: flex; gap: 1.5rem; }

.vi-menu a {
  color: var(--vi-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.vi-menu a:hover,
.vi-menu a.vi-current { color: var(--vi-red); border-bottom-color: var(--vi-gold); }

.vi-call-btn {
  background: var(--vi-red);
  color: var(--vi-white);
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--vi-radius);
}

.vi-call-btn:hover { background: var(--vi-red-dark); color: var(--vi-white); }

.vi-toggle {
  display: none;
  background: var(--vi-cream);
  border: 1px solid var(--vi-line);
  padding: 0.4rem 0.6rem;
  font-size: 1.15rem;
  cursor: pointer;
}

/* Hero with search form */
.vi-hero-search {
  background: linear-gradient(135deg, var(--vi-red) 0%, #5a1529 100%);
  color: var(--vi-white);
  padding: 4.5rem 0 5rem;
}

.vi-hero-search h1 {
  font-family: 'Bitter', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  max-width: 700px;
}

.vi-hero-search .vi-lead {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 580px;
  margin-bottom: 2.5rem;
}

.vi-search-box {
  background: var(--vi-white);
  padding: 1.5rem;
  border-radius: var(--vi-radius);
  box-shadow: var(--vi-shadow);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
  max-width: 720px;
}

.vi-search-field { flex: 1; min-width: 180px; }

.vi-search-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vi-muted);
  margin-bottom: 0.35rem;
}

.vi-search-field select,
.vi-search-field input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--vi-line);
  border-radius: var(--vi-radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--vi-cream);
  color: var(--vi-text);
}

.vi-search-submit {
  background: var(--vi-gold);
  color: var(--vi-text);
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: var(--vi-radius);
  transition: background 0.2s;
}

.vi-search-submit:hover { background: #b8921f; }

/* Stats strip */
.vi-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--vi-white);
  border-bottom: 1px solid var(--vi-line);
}

.vi-metric {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--vi-line);
}

.vi-metric:last-child { border-right: none; }

.vi-metric strong {
  display: block;
  font-family: 'Bitter', serif;
  font-size: 2.2rem;
  color: var(--vi-red);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.vi-metric span { font-size: 0.82rem; color: var(--vi-muted); font-weight: 600; }

/* Blocks */
.vi-block { padding: 4.5rem 0; }
.vi-block-tint { background: var(--vi-white); }

.vi-heading-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.vi-heading-center h2 {
  font-family: 'Bitter', serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.75rem;
}

.vi-heading-center p { color: var(--vi-muted); }

.vi-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.vi-tile {
  border-left: 4px solid var(--vi-gold);
  padding: 1.75rem;
  background: var(--vi-white);
  box-shadow: var(--vi-shadow);
}

.vi-tile h3 {
  font-family: 'Bitter', serif;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--vi-red);
}

.vi-tile p { font-size: 0.92rem; color: var(--vi-muted); }

.vi-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.vi-duo img { border-radius: var(--vi-radius); box-shadow: var(--vi-shadow); }

.vi-duo h2 {
  font-family: 'Bitter', serif;
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.vi-duo p { color: var(--vi-muted); margin-bottom: 0.75rem; }

.vi-action {
  display: inline-block;
  margin-top: 1rem;
  background: var(--vi-red);
  color: var(--vi-white);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--vi-radius);
}

.vi-action:hover { background: var(--vi-red-dark); color: var(--vi-white); }

/* Practice list */
.vi-practice-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.vi-practice-row {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--vi-white);
  border: 1px solid var(--vi-line);
  border-radius: var(--vi-radius);
}

.vi-practice-num {
  font-family: 'Bitter', serif;
  font-size: 1.5rem;
  color: var(--vi-gold);
  font-weight: 700;
  min-width: 36px;
}

.vi-practice-row h3 { font-family: 'Bitter', serif; font-size: 1.05rem; margin-bottom: 0.25rem; }
.vi-practice-row p { font-size: 0.88rem; color: var(--vi-muted); }

/* Guide articles */
.vi-guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.vi-guide {
  background: var(--vi-white);
  border-top: 3px solid var(--vi-red);
  padding: 1.5rem;
  box-shadow: var(--vi-shadow);
}

.vi-guide-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vi-gold);
  margin-bottom: 0.5rem;
}

.vi-guide h3 { font-family: 'Bitter', serif; font-size: 1.1rem; margin-bottom: 0.5rem; }
.vi-guide p { font-size: 0.88rem; color: var(--vi-muted); }

/* CTA */
.vi-cta {
  background: var(--vi-red);
  color: var(--vi-white);
  padding: 3.5rem 0;
  text-align: center;
  position: relative;
}

.vi-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/lv_cta.jpg') center/cover;
  opacity: 0.12;
}

.vi-cta-inner { position: relative; z-index: 1; }

.vi-cta h2 { font-family: 'Bitter', serif; font-size: 2rem; margin-bottom: 0.75rem; }
.vi-cta p { opacity: 0.9; margin-bottom: 1.5rem; }

.vi-cta .vi-action { background: var(--vi-gold); color: var(--vi-text); }

/* Page title */
.vi-page-title {
  padding: 3rem 0;
  background: var(--vi-white);
  border-bottom: 1px solid var(--vi-line);
}

.vi-page-title h1 { font-family: 'Bitter', serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.vi-page-title p { color: var(--vi-muted); margin-top: 0.5rem; }

/* Form */
.vi-form-panel {
  max-width: 600px;
  margin: 0 auto;
  background: var(--vi-white);
  padding: 2rem;
  border: 1px solid var(--vi-line);
  box-shadow: var(--vi-shadow);
}

.vi-field { margin-bottom: 1.1rem; }

.vi-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.vi-field input,
.vi-field select,
.vi-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--vi-line);
  font-family: inherit;
  background: var(--vi-cream);
  border-radius: var(--vi-radius);
}

.vi-field textarea { min-height: 120px; resize: vertical; }

.vi-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.vi-contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.vi-contact-card {
  background: var(--vi-white);
  padding: 1.25rem;
  border-left: 3px solid var(--vi-gold);
  text-align: center;
}

.vi-contact-card strong { display: block; font-family: 'Bitter', serif; margin-bottom: 0.35rem; }
.vi-contact-card p { font-size: 0.9rem; color: var(--vi-muted); }

/* Prose */
.vi-legal-text { max-width: 760px; margin: 0 auto; }

.vi-legal-text h2 {
  font-family: 'Bitter', serif;
  font-size: 1.4rem;
  margin: 2rem 0 0.6rem;
  color: var(--vi-red);
}

.vi-legal-text p, .vi-legal-text li { color: var(--vi-muted); margin-bottom: 0.65rem; font-size: 0.94rem; }
.vi-legal-text ul { padding-left: 1.4rem; margin-bottom: 1rem; }

/* Footer */
.vi-foot {
  background: var(--vi-text);
  color: #a8a0a4;
  padding: 3.5rem 0 1.5rem;
}

.vi-foot-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.vi-foot h5 {
  font-family: 'Bitter', serif;
  color: var(--vi-cream);
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.vi-foot a { color: #a8a0a4; font-size: 0.88rem; display: block; margin-bottom: 0.35rem; }
.vi-foot a:hover { color: var(--vi-gold); }

.vi-foot-logo { font-family: 'Bitter', serif; font-size: 1.3rem; color: var(--vi-cream); margin-bottom: 0.5rem; }

.vi-foot-bar {
  border-top: 1px solid #444;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
}

/* Cookie — left slide-in panel */
.vi-cookie-panel {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translate(-100%, -50%);
  z-index: 9999;
  width: min(340px, 90vw);
  background: var(--vi-white);
  border: 1px solid var(--vi-line);
  border-left: 4px solid var(--vi-red);
  box-shadow: 8px 0 40px rgba(0,0,0,0.15);
  padding: 1.5rem;
  transition: transform 0.4s ease;
}

.vi-cookie-panel.vi-visible { transform: translate(0, -50%); }

.vi-cookie-panel h4 {
  font-family: 'Bitter', serif;
  font-size: 1.1rem;
  color: var(--vi-red);
  margin-bottom: 0.75rem;
}

.vi-cookie-panel p { font-size: 0.85rem; color: var(--vi-muted); margin-bottom: 1rem; }

.vi-cookie-btns { display: flex; flex-direction: column; gap: 0.5rem; }

.vi-cookie-btns button {
  padding: 0.6rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--vi-radius);
  border: none;
}

.vi-cookie-ok { background: var(--vi-red); color: var(--vi-white); }
.vi-cookie-no { background: var(--vi-cream); color: var(--vi-text); border: 1px solid var(--vi-line); }

@media (max-width: 900px) {
  .vi-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--vi-white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--vi-line);
    box-shadow: var(--vi-shadow);
  }

  .vi-menu.vi-open { display: flex; }

  .vi-masthead { position: relative; }

  .vi-toggle { display: block; }

  .vi-call-btn { display: none; }

  .vi-metrics { grid-template-columns: repeat(2, 1fr); }
  .vi-metric:nth-child(2) { border-right: none; }

  .vi-tiles, .vi-guides { grid-template-columns: 1fr 1fr; }

  .vi-duo { grid-template-columns: 1fr; }

  .vi-foot-cols { grid-template-columns: 1fr 1fr; }

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

@media (max-width: 560px) {
  .vi-search-box { flex-direction: column; }

  .vi-metrics { grid-template-columns: 1fr; }
  .vi-metric { border-right: none; border-bottom: 1px solid var(--vi-line); }

  .vi-tiles, .vi-guides, .vi-practice-list { grid-template-columns: 1fr; }

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

  .vi-foot-cols { grid-template-columns: 1fr; }

  .vi-cookie-panel { top: auto; bottom: 0; transform: translate(-100%, 0); width: 100%; border-left: none; border-top: 4px solid var(--vi-red); }
  .vi-cookie-panel.vi-visible { transform: translate(0, 0); }
}
