/* ==========================================================================
   Piese Auto Vulcanizare Freon — Dark Workshop Theme
   ========================================================================== */

:root {
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-elevated: #22223a;
  --accent: #f5a623;
  --accent-hover: #e09000;
  --text: #e8e8e8;
  --text-muted: #9a9ab0;
  --border: #2a2a40;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }
blockquote { margin: 0; }
.container { max-width: 1080px; margin: 0 auto; }

/* ---------- Navigation ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-weight: 800; font-size: 1rem; color: var(--accent);
  letter-spacing: -0.01em; white-space: nowrap;
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  position: relative; padding: 0.2rem 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--accent); color: #000; padding: 0.5rem 1.2rem;
  border-radius: 6px; font-weight: 700; font-size: 0.85rem;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-hover); color: #000; transform: translateY(-1px); }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; z-index: 110;
}
.hamburger span {
  display: block; width: 100%; height: 2px; background: var(--text);
  position: absolute; left: 0; transition: all 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* Nav scroll state */
nav.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  z-index: 0;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 15, 26, 0.75) 0%,
    rgba(15, 15, 26, 0.6) 40%,
    rgba(15, 15, 26, 0.85) 100%
  );
  z-index: 1; pointer-events: none;
}
.hero-content { position: relative; max-width: 700px; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(245, 166, 35, 0.1); border: 1px solid rgba(245, 166, 35, 0.25);
  padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.85rem;
  color: var(--accent); margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.1rem; color: var(--text-muted);
  margin-bottom: 2rem; max-width: 520px; margin-inline: auto;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--accent); color: #000; padding: 0.85rem 2rem;
  border-radius: 8px; font-weight: 700; font-size: 1rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.25);
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hover); color: #000; transform: translateY(-2px); }
.btn-outline {
  border: 2px solid var(--border); color: var(--text); padding: 0.85rem 2rem;
  border-radius: 8px; font-weight: 600; font-size: 1rem;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: 5rem 2rem; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; margin-bottom: 0.5rem; }
.section-title p { color: var(--text-muted); max-width: 500px; margin-inline: auto; }
.accent-line {
  width: 60px; height: 4px; background: var(--accent);
  margin: 0.8rem auto; border-radius: 2px;
}

/* ---------- Services ---------- */
.services { background: var(--bg); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  display: flex; flex-direction: column;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.service-card-img {
  height: 200px; overflow: hidden; position: relative;
}
.service-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 1.5rem; flex: 1; }
.service-icon {
  width: 48px; height: 48px; background: rgba(245, 166, 35, 0.1);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; margin-top: -2.5rem; position: relative; z-index: 1;
  border: 2px solid var(--bg-card);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ---------- Trust ---------- */
.trust { background: var(--bg-card); }
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; text-align: center;
}
.trust-item .number {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; color: var(--accent);
  line-height: 1.2;
}
.trust-item .label { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.3rem; }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.gallery-item {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); margin: 0;
}
.gallery-item--tall { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  padding: 2rem 1rem 0.8rem; font-size: 0.85rem; color: rgba(255,255,255,0.9);
  transform: translateY(100%); transition: transform 0.3s;
}
.gallery-item:hover figcaption { transform: translateY(0); }

/* ---------- Reviews ---------- */
.reviews { background: var(--bg); }
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.review-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem;
}
.review-stars { color: var(--accent); font-size: 1rem; margin-bottom: 0.8rem; letter-spacing: 2px; }
.review-text {
  color: var(--text-muted); font-style: italic; font-size: 0.95rem;
  margin-bottom: 1rem; line-height: 1.6;
}
.review-author { font-weight: 600; font-size: 0.85rem; color: var(--text); display: block; }
.review-date { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-card); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}
.faq-item summary {
  font-weight: 700; font-size: 1.05rem; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between;
  align-items: center; color: var(--text);
}
.faq-item summary::after {
  content: '+'; font-size: 1.4rem; color: var(--accent);
  font-weight: 400; transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  color: var(--text-muted); margin-top: 0.8rem;
  line-height: 1.7; font-size: 0.95rem;
}

/* ---------- Location ---------- */
.location { background: var(--bg-card); }
.location-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 2rem; align-items: start;
}
.map-container {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }
.info-heading { font-size: 1.2rem; margin-bottom: 1rem; color: var(--accent); }
.hours-table table { width: 100%; border-collapse: collapse; }
.hours-table td {
  padding: 0.65rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem;
}
.hours-table td:last-child { text-align: right; color: var(--text-muted); }
.hours-table .closed td { color: var(--accent); opacity: 0.7; }
.address-block {
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.95rem; line-height: 2.2;
}
.address-block svg { vertical-align: middle; margin-right: 0.4rem; }

/* ---------- QR Section ---------- */
.qr-section { background: var(--bg); text-align: center; }
.qr-box {
  display: inline-block; background: #fff; padding: 1.5rem;
  border-radius: 12px; margin-top: 1rem;
}

/* ---------- Contact CTA ---------- */
.contact-cta {
  background: linear-gradient(135deg, var(--accent) 0%, #e09000 100%);
  text-align: center; padding: 4rem 2rem;
}
.contact-cta h2 { color: #000; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.5rem; }
.contact-cta p { color: rgba(0, 0, 0, 0.65); margin-bottom: 2rem; font-size: 1.05rem; }
.contact-cta .phone-number {
  font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900; color: #000;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.contact-cta .phone-number:hover { color: #1a1a2e; }
.social-links { margin-top: 1.5rem; display: flex; gap: 1rem; justify-content: center; }
.social-links a {
  background: rgba(0, 0, 0, 0.12); color: #000; width: 44px; height: 44px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.social-links a:hover { background: rgba(0, 0, 0, 0.25); color: #000; transform: scale(1.1); }

/* ---------- Sticky Mobile Call Bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99;
  background: var(--accent);
  padding: 0.8rem 1.5rem;
  text-align: center;
}
.mobile-call-bar a {
  color: #000; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.mobile-call-bar a:hover { color: #000; }

/* ---------- Footer ---------- */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  text-align: center; padding: 2rem;
  color: var(--text-muted); font-size: 0.85rem;
}
.footer-geo {
  margin-top: 0.8rem; font-size: 0.8rem; color: var(--border);
  max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 900px) {
  .services-grid,
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery-item--tall { grid-row: span 2; }
}

@media (max-width: 768px) {
  nav { padding: 0 1.2rem; }
  .nav-links {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(15, 15, 26, 0.98); backdrop-filter: blur(12px);
    flex-direction: column; padding: 1.5rem 2rem; gap: 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 1rem 0; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: block; }

  /* Sticky call bar on mobile */
  .mobile-call-bar { display: block; }
  footer { padding-bottom: 4.5rem; }

  section { padding: 3.5rem 1.2rem; }

  /* Hero: tighter padding, better image crop for portrait */
  .hero { padding: 5rem 1.2rem 3rem; min-height: 85vh; }
  .hero-bg { object-position: 60% center; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .hero-badge { font-size: 0.8rem; }

  /* Service cards: taller images, fix icon overlap */
  .services-grid,
  .reviews-grid { grid-template-columns: 1fr; }
  .service-card-img { height: 200px; }
  .service-icon {
    margin-top: -1.8rem;
    width: 44px; height: 44px;
    background: var(--bg-card);
    border: 2px solid var(--accent);
  }

  /* Trust: keep 3-col but smaller */
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .trust-item .number { font-size: 1.8rem; }

  /* Gallery: 2-col on tablets, 1-col on phones handled below */
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery-item--tall { grid-row: span 2; }
  .gallery-item figcaption { transform: translateY(0); }

  /* Location: stack, taller map */
  .location-grid { grid-template-columns: 1fr; }
  .map-container { aspect-ratio: 4 / 3; }

  /* Contact */
  .contact-cta .phone-number { font-size: 1.5rem; }
  .contact-cta { padding-bottom: 5rem; }

  /* QR smaller on mobile */
  .qr-box { padding: 1rem; }
  .qr-box svg { width: 160px; height: 160px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item--tall { grid-row: span 1; }
}

@media (max-width: 400px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .trust-item .number { font-size: 1.5rem; }
  .trust-item .label { font-size: 0.8rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .hero h1 { font-size: 1.6rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Print ---------- */
@media print {
  nav, .hamburger, .qr-section, .contact-cta .social-links { display: none; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; background: none; padding: 2rem; }
  .hero h1 { -webkit-text-fill-color: #000; background: none; }
  section { padding: 1.5rem 0; }
}
