/* Alviro — Service auto Cluj-Napoca. Dark industrial theme. Prefix: af- */

:root {
  --af-bg: #15181c;
  --af-bg-2: #1f242b;
  --af-bg-3: #262c34;
  --af-red: #e5231b;
  --af-red-dark: #b81810;
  --af-text: #d7dbe0;
  --af-text-dim: #9aa2ac;
  --af-white: #f4f6f8;
  --af-border: #2e343d;
  --af-radius: 3px;
  --af-max: 1200px;
  --af-font: "Oswald", "Bebas Neue", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --af-body-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--af-body-font);
  background: var(--af-bg);
  color: var(--af-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .af-brand, .af-nav a, .af-btn {
  font-family: var(--af-font);
  letter-spacing: 0.03em;
}

h1, h2, h3, h4 { text-transform: uppercase; line-height: 1.1; color: var(--af-white); font-weight: 700; }

a { color: var(--af-red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--af-white); }

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

.af-container { width: 100%; max-width: var(--af-max); margin: 0 auto; padding: 0 24px; }

.af-section { padding: 80px 0; }
.af-section--tight { padding: 56px 0; }

.af-section-head { margin-bottom: 44px; }
.af-eyebrow {
  display: inline-block;
  font-family: var(--af-font);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--af-red);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
  border-left: 3px solid var(--af-red);
  padding-left: 10px;
}
.af-section-head h2 { font-size: 2.4rem; }
.af-section-head p { color: var(--af-text-dim); max-width: 640px; margin-top: 14px; }

/* Buttons */
.af-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--af-red);
  color: var(--af-white);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border: 2px solid var(--af-red);
  border-radius: var(--af-radius);
  cursor: pointer;
  transition: background .2s ease, transform .1s ease, color .2s ease;
}
.af-btn:hover { background: var(--af-red-dark); border-color: var(--af-red-dark); color: var(--af-white); }
.af-btn:active { transform: translateY(1px); }
.af-btn--ghost { background: transparent; color: var(--af-white); border-color: var(--af-border); }
.af-btn--ghost:hover { background: var(--af-bg-3); border-color: var(--af-white); color: var(--af-white); }
.af-btn--block { width: 100%; }

/* Header */
.af-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(21, 24, 28, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--af-border);
}
.af-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.af-brand {
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--af-white);
  letter-spacing: 0.04em;
}
.af-brand span { color: var(--af-red); }
.af-brand:hover { color: var(--af-white); }

.af-nav ul { list-style: none; display: flex; align-items: center; gap: 28px; }
.af-nav a {
  color: var(--af-text);
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 0;
  position: relative;
}
.af-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--af-red);
  transition: width .25s ease;
}
.af-nav a:hover, .af-nav a.is-active { color: var(--af-white); }
.af-nav a:hover::after, .af-nav a.is-active::after { width: 100%; }
.af-nav .af-btn { color: var(--af-white); }

.af-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.af-burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--af-white);
  transition: transform .3s ease, opacity .3s ease;
}
.af-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.af-burger.is-open span:nth-child(2) { opacity: 0; }
.af-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.af-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, #0f1113 0%, #1c2127 100%);
}
.af-hero__media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(15,17,19,0.96) 0%, rgba(15,17,19,0.72) 45%, rgba(15,17,19,0.35) 100%), url("images/alviro-hero.jpg");
  background-size: cover;
  background-position: center;
}
.af-hero__media::after {
  content: "";
  position: absolute;
  right: -120px; top: 0; bottom: 0;
  width: 420px;
  background: var(--af-red);
  transform: skewX(-12deg);
  opacity: 0.14;
}
.af-hero__inner { position: relative; z-index: 2; max-width: 720px; padding: 90px 0; }
.af-hero h1 { font-size: 3.6rem; margin-bottom: 20px; }
.af-hero h1 em { color: var(--af-red); font-style: normal; }
.af-hero p { font-size: 1.15rem; color: var(--af-text); margin-bottom: 32px; max-width: 560px; }
.af-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.af-hero__badges { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.af-hero__badge { display: flex; flex-direction: column; }
.af-hero__badge strong { font-family: var(--af-font); font-size: 1.9rem; color: var(--af-white); }
.af-hero__badge span { color: var(--af-text-dim); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* Services grid */
.af-services { background: var(--af-bg-2); }
.af-grid { display: grid; gap: 24px; }
.af-grid--3 { grid-template-columns: repeat(3, 1fr); }
.af-grid--4 { grid-template-columns: repeat(4, 1fr); }
.af-grid--2 { grid-template-columns: repeat(2, 1fr); }

.af-service-card {
  background: var(--af-bg);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 28px 26px;
  position: relative;
  transition: transform .2s ease, border-color .2s ease;
  overflow: hidden;
}
.af-service-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--af-red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s ease;
}
.af-service-card:hover { transform: translateY(-4px); border-color: #3a424d; }
.af-service-card:hover::before { transform: scaleY(1); }
.af-service-card__mark {
  font-family: var(--af-font);
  font-size: 2rem;
  color: var(--af-red);
  font-weight: 700;
  margin-bottom: 14px;
}
.af-service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.af-service-card p { color: var(--af-text-dim); font-size: 0.95rem; margin-bottom: 18px; }
.af-service-card__price {
  font-family: var(--af-font);
  color: var(--af-white);
  font-size: 1.1rem;
  text-transform: uppercase;
}
.af-service-card__price b { color: var(--af-red); font-size: 1.35rem; }

/* Stats counters */
.af-stats { background: var(--af-bg); border-top: 1px solid var(--af-border); border-bottom: 1px solid var(--af-border); }
.af-stat { text-align: center; padding: 20px; }
.af-stat__num { font-family: var(--af-font); font-size: 3.2rem; color: var(--af-red); font-weight: 700; line-height: 1; }
.af-stat__num span { color: var(--af-white); }
.af-stat__label { color: var(--af-text-dim); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; margin-top: 8px; }

/* Process */
.af-process { background: var(--af-bg-2); }
.af-step {
  background: var(--af-bg);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 30px 26px;
  position: relative;
}
.af-step__num {
  font-family: var(--af-font);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--af-bg-3);
  line-height: 1;
  position: absolute;
  top: 16px; right: 20px;
}
.af-step h3 { font-size: 1.2rem; margin-bottom: 10px; position: relative; }
.af-step p { color: var(--af-text-dim); font-size: 0.95rem; }

/* Gallery */
.af-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.af-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--af-radius);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--af-border);
}
.af-gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease, filter .4s ease;
  filter: grayscale(35%) contrast(1.05);
}
.af-gallery-item:hover img { transform: scale(1.08); filter: grayscale(0%); }
.af-gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(15,17,19,0.92), transparent);
  color: var(--af-white);
  font-family: var(--af-font);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

/* Reviews */
.af-reviews { background: var(--af-bg); }
.af-review {
  background: var(--af-bg-2);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 28px 26px;
  border-top: 3px solid var(--af-red);
}
.af-review__stars { color: var(--af-red); letter-spacing: 3px; margin-bottom: 14px; }
.af-review p { color: var(--af-text); font-style: italic; margin-bottom: 18px; }
.af-review__author { display: flex; align-items: center; gap: 12px; }
.af-review__author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.af-review__author strong { color: var(--af-white); font-family: var(--af-font); text-transform: uppercase; display: block; font-size: 0.95rem; }
.af-review__author span { color: var(--af-text-dim); font-size: 0.82rem; }

/* Booking (live feature) */
.af-booking { background: var(--af-bg-2); }
.af-booking__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.af-booking__media {
  border-radius: var(--af-radius);
  overflow: hidden;
  border: 1px solid var(--af-border);
  min-height: 380px;
  background-image: linear-gradient(120deg, rgba(15,17,19,0.5), rgba(229,35,27,0.15)), url("images/alviro-booking.jpg");
  background-size: cover;
  background-position: center;
}
.af-form {
  background: var(--af-bg);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 32px;
}
.af-form h3 { font-size: 1.5rem; margin-bottom: 20px; }
.af-field { margin-bottom: 18px; }
.af-field label {
  display: block;
  font-family: var(--af-font);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--af-text-dim);
  margin-bottom: 7px;
}
.af-field input,
.af-field select,
.af-field textarea {
  width: 100%;
  background: var(--af-bg-2);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 12px 14px;
  color: var(--af-white);
  font-family: var(--af-body-font);
  font-size: 0.95rem;
  transition: border-color .2s ease;
}
.af-field input:focus,
.af-field select:focus,
.af-field textarea:focus { outline: none; border-color: var(--af-red); }
.af-field textarea { resize: vertical; min-height: 120px; }
.af-field select { appearance: none; cursor: pointer; }
.af-field--error input,
.af-field--error select,
.af-field--error textarea { border-color: var(--af-red); }
.af-field__error { color: var(--af-red); font-size: 0.82rem; margin-top: 6px; display: none; }
.af-field--error .af-field__error { display: block; }

.af-form__msg {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--af-radius);
  background: rgba(229, 35, 27, 0.12);
  border: 1px solid var(--af-red);
  color: var(--af-white);
  font-weight: 600;
}
.af-form__msg.is-visible { display: block; }
.af-form__msg--ok { background: rgba(40, 167, 69, 0.14); border-color: #2ea043; }

.af-booking__confirm {
  display: none;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #2ea043;
  border-radius: var(--af-radius);
  background: rgba(40, 167, 69, 0.12);
  color: var(--af-white);
}
.af-booking__confirm.is-visible { display: block; }
.af-booking__confirm strong { color: var(--af-red); }

/* CTA strip */
.af-cta {
  background: linear-gradient(100deg, var(--af-red-dark) 0%, var(--af-red) 100%);
  position: relative;
  overflow: hidden;
}
.af-cta::before {
  content: "";
  position: absolute;
  left: -60px; top: 0; bottom: 0; width: 200px;
  background: rgba(0,0,0,0.15);
  transform: skewX(-14deg);
}
.af-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  padding: 50px 0;
}
.af-cta h2 { color: var(--af-white); font-size: 2.2rem; }
.af-cta p { color: rgba(255,255,255,0.9); margin-top: 8px; }
.af-cta .af-btn { background: var(--af-bg); border-color: var(--af-bg); }
.af-cta .af-btn:hover { background: #000; border-color: #000; }

/* Generic page hero */
.af-page-hero {
  padding: 70px 0 60px;
  background: linear-gradient(120deg, #0f1113 0%, #1c2127 100%);
  border-bottom: 1px solid var(--af-border);
  position: relative;
  overflow: hidden;
}
.af-page-hero::after {
  content: "";
  position: absolute; right: -80px; top: 0; bottom: 0; width: 360px;
  background: var(--af-red); opacity: 0.1; transform: skewX(-12deg);
}
.af-page-hero h1 { font-size: 2.8rem; position: relative; z-index: 2; }
.af-page-hero p { color: var(--af-text-dim); margin-top: 12px; max-width: 620px; position: relative; z-index: 2; }
.af-breadcrumb { font-size: 0.85rem; color: var(--af-text-dim); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.af-breadcrumb a { color: var(--af-text-dim); }
.af-breadcrumb a:hover { color: var(--af-red); }

/* FAQ */
.af-faq-item {
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  margin-bottom: 12px;
  background: var(--af-bg-2);
  overflow: hidden;
}
.af-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  color: var(--af-white);
  font-family: var(--af-font);
  text-transform: uppercase;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.af-faq-q::after { content: "+"; color: var(--af-red); font-size: 1.6rem; line-height: 1; transition: transform .25s ease; }
.af-faq-item.is-open .af-faq-q::after { transform: rotate(45deg); }
.af-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.af-faq-a p { padding: 0 24px 20px; color: var(--af-text-dim); }

/* About */
.af-about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.af-about-media { border: 1px solid var(--af-border); border-radius: var(--af-radius); overflow: hidden; }
.af-prose p { margin-bottom: 16px; color: var(--af-text); }
.af-prose h2 { margin: 28px 0 14px; font-size: 1.8rem; }
.af-prose h3 { margin: 22px 0 10px; font-size: 1.25rem; }
.af-prose ul { margin: 0 0 16px 22px; color: var(--af-text); }
.af-prose li { margin-bottom: 8px; }
.af-prose a { text-decoration: underline; }

.af-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.af-value { background: var(--af-bg-2); border: 1px solid var(--af-border); border-radius: var(--af-radius); padding: 26px; }
.af-value h3 { color: var(--af-red); font-size: 1.15rem; margin-bottom: 10px; }
.af-value p { color: var(--af-text-dim); font-size: 0.95rem; }

.af-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.af-member { background: var(--af-bg-2); border: 1px solid var(--af-border); border-radius: var(--af-radius); overflow: hidden; }
.af-member img { width: 100%; aspect-ratio: 1/1; object-fit: cover; filter: grayscale(30%); }
.af-member__body { padding: 20px; }
.af-member__body h3 { font-size: 1.1rem; }
.af-member__body span { color: var(--af-red); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.af-member__body p { color: var(--af-text-dim); font-size: 0.92rem; margin-top: 10px; }

/* Contact */
.af-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.af-info-list { list-style: none; }
.af-info-list li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--af-border); }
.af-info-list li:last-child { border-bottom: none; }
.af-info-list__mark { color: var(--af-red); font-family: var(--af-font); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; min-width: 92px; letter-spacing: 0.06em; padding-top: 3px; }
.af-info-list__val strong { color: var(--af-white); display: block; font-family: var(--af-font); text-transform: uppercase; font-size: 1.05rem; }
.af-info-list__val span, .af-info-list__val a { color: var(--af-text-dim); }
.af-map {
  margin-top: 24px;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  min-height: 260px;
  background-image: linear-gradient(120deg, rgba(15,17,19,0.55), rgba(15,17,19,0.2)), url("images/alviro-map.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.af-map span { background: var(--af-red); color: #fff; padding: 8px 14px; font-family: var(--af-font); text-transform: uppercase; font-size: 0.85rem; border-radius: var(--af-radius); }

.af-hours { list-style: none; margin-top: 10px; }
.af-hours li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--af-border); color: var(--af-text-dim); }
.af-hours li:last-child { border-bottom: none; }
.af-hours li span:last-child { color: var(--af-white); font-family: var(--af-font); }

/* Footer */
.af-footer { background: #0f1113; border-top: 1px solid var(--af-border); padding: 60px 0 24px; }
.af-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.af-footer__brand .af-brand { display: inline-block; margin-bottom: 14px; }
.af-footer__brand p { color: var(--af-text-dim); font-size: 0.92rem; max-width: 280px; }
.af-footer h4 { font-size: 1rem; margin-bottom: 16px; color: var(--af-white); }
.af-footer ul { list-style: none; }
.af-footer ul li { margin-bottom: 10px; }
.af-footer ul a { color: var(--af-text-dim); font-size: 0.92rem; }
.af-footer ul a:hover { color: var(--af-red); }
.af-footer__bottom {
  border-top: 1px solid var(--af-border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--af-text-dim);
  font-size: 0.85rem;
}

/* Cookie banner */
.af-cookie {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 2000;
  max-width: 720px;
  margin: 0 auto;
  background: var(--af-bg-2);
  border: 1px solid var(--af-border);
  border-left: 4px solid var(--af-red);
  border-radius: var(--af-radius);
  padding: 22px 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
  display: none;
}
.af-cookie.is-visible { display: block; animation: af-cookie-in .35s ease; }
@keyframes af-cookie-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.af-cookie p { color: var(--af-text); font-size: 0.92rem; margin-bottom: 16px; }
.af-cookie a { text-decoration: underline; }
.af-cookie__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.af-cookie__actions .af-btn { padding: 10px 22px; font-size: 0.85rem; }

/* Utilities */
.af-center { text-align: center; }
.af-mt-40 { margin-top: 40px; }
.af-lead { font-size: 1.1rem; color: var(--af-text); }

/* Responsive */
@media (max-width: 1024px) {
  .af-hero h1 { font-size: 2.9rem; }
  .af-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .af-team, .af-values { grid-template-columns: repeat(2, 1fr); }
  .af-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .af-burger { display: flex; }
  .af-nav {
    position: fixed;
    top: 72px; right: 0;
    width: 78%;
    max-width: 320px;
    height: calc(100vh - 72px);
    background: var(--af-bg-2);
    border-left: 1px solid var(--af-border);
    transform: translateX(100%);
    transition: transform .3s ease;
    padding: 30px 26px;
    overflow-y: auto;
  }
  .af-nav.is-open { transform: translateX(0); }
  .af-nav ul { flex-direction: column; align-items: stretch; gap: 6px; }
  .af-nav a { padding: 12px 0; border-bottom: 1px solid var(--af-border); }
  .af-nav .af-btn { margin-top: 12px; }

  .af-section { padding: 56px 0; }
  .af-grid--3, .af-grid--2 { grid-template-columns: 1fr; }
  .af-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .af-booking__wrap { grid-template-columns: 1fr; }
  .af-booking__media { min-height: 240px; }
  .af-about-grid { grid-template-columns: 1fr; gap: 30px; }
  .af-contact-grid { grid-template-columns: 1fr; }
  .af-hero h1 { font-size: 2.4rem; }
  .af-section-head h2 { font-size: 1.9rem; }
  .af-cta__inner { flex-direction: column; text-align: center; align-items: flex-start; }
}

@media (max-width: 480px) {
  .af-container { padding: 0 16px; }
  .af-hero { min-height: 560px; }
  .af-hero h1 { font-size: 2rem; }
  .af-hero__badges { gap: 18px; }
  .af-hero__badge strong { font-size: 1.5rem; }
  .af-grid--4, .af-team, .af-values { grid-template-columns: 1fr; }
  .af-gallery-grid { grid-template-columns: 1fr; }
  .af-stat__num { font-size: 2.6rem; }
  .af-page-hero h1 { font-size: 2rem; }
  .af-cookie { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .af-form { padding: 22px; }
}
