/* ==========================================================================
   LTT Auto Detailing — stylesheet
   Paleta: crna pozadina, crveni akcent (#e30613), srebrno/metalik tekst
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --bg-card: #1a1a1a;
  --border: #262626;
  --red: #e30613;
  --red-dark: #a30410;
  --red-glow: rgba(227, 6, 19, 0.35);
  --text: #ededed;
  --text-muted: #9a9a9a;
  --silver: linear-gradient(180deg, #ffffff 0%, #b8b8b8 50%, #7a7a7a 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --radius: 8px;
  --radius-lg: 14px;
  --max-w: 1200px;
  --header-h: 96px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.15;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: .6rem; }

p { color: var(--text-muted); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

/* Silver metallic text effect */
.silver {
  background: var(--silver);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #000;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { display: flex; align-items: center; gap: .75rem; }
.logo-link img { height: 68px; width: auto; }
.logo-link:hover { color: var(--text); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  position: relative;
  padding: .25rem 0;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .25s ease;
}
.nav a:hover::after,
.nav a.active::after { width: 100%; }
.nav a.active { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform .25s, opacity .25s;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(227, 6, 19, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(227, 6, 19, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #000 0%, #0a0a0a 100%);
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 1.25rem;
  width: 100%;
}

.hero .eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding: .4rem 1rem;
  border: 1px solid var(--red-dark);
  border-radius: 999px;
  background: rgba(227, 6, 19, 0.08);
}

.hero h1 { margin-bottom: 1rem; }
.hero .lead {
  max-width: 680px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero-cta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.75rem;
  font-weight: 600;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 20px var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--red-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ---------- SECTION ---------- */
.section { padding: 6rem 0; position: relative; }
.section-alt { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .eyebrow {
  color: var(--red);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: .75rem;
}
.section-header p { max-width: 720px; margin: 1rem auto 0; }

/* Red underline accent */
.underline-red::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 1rem auto 0;
}

/* ---------- SERVICES GRID ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
  display: block;
  color: inherit;
  text-decoration: none;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--red-dark);
  box-shadow: 0 20px 40px rgba(0,0,0,.6), 0 0 0 1px var(--red-dark);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(227, 6, 19, 0.1);
  border: 1px solid var(--red-dark);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  color: var(--red);
  font-size: 1.8rem;
}

.service-card h3 { color: var(--text); }
.service-card p { font-size: .95rem; }
.service-card ul {
  list-style: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.service-card ul li {
  color: var(--text-muted);
  font-size: .9rem;
  padding: .35rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.service-card ul li::before {
  content: '›';
  position: absolute; left: 0;
  color: var(--red);
  font-weight: bold;
}

/* ---------- WHY US ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature {
  text-align: center;
  padding: 1.5rem;
}
.feature-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: .5rem;
}
.feature h3 { font-size: 1.1rem; }

/* ---------- CTA STRIP ---------- */
.cta-strip {
  background:
    linear-gradient(135deg, rgba(227,6,19,.85) 0%, rgba(163,4,16,.85) 100%),
    #000;
  padding: 4rem 0;
  text-align: center;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,.85); max-width: 600px; margin: 1rem auto 2rem; }
.cta-strip .btn-ghost {
  border-color: #fff; color: #fff;
  background: rgba(0,0,0,.2);
}
.cta-strip .btn-ghost:hover {
  background: #fff; color: var(--red);
}

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(227,6,19,.5));
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover::after { opacity: 1; }

.gallery-placeholder {
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .9rem;
  text-align: center;
  padding: 1rem;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-card);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
/* Varijanta za logo (centrirano, s paddingom) */
.about-img--logo { padding: 3rem; }
.about-img--logo img { width: auto; height: auto; max-width: 80%; object-fit: contain; }
.about-text p { margin-bottom: 1rem; font-size: 1.02rem; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.stat { text-align: center; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.4rem; color: var(--red); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .25s;
}
.contact-item:hover { border-color: var(--red-dark); }
.contact-item .icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: rgba(227,6,19,.1);
  border: 1px solid var(--red-dark);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.contact-item h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: .25rem; color: var(--text); font-family: inherit; }
.contact-item p, .contact-item a { color: var(--text-muted); font-size: .95rem; }
.contact-item a:hover { color: var(--red); }

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .5rem;
  color: var(--text);
  font-weight: 500;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.form-row textarea { resize: vertical; min-height: 120px; }

/* Success message */
.form-success {
  text-align: center;
  padding: 2rem 1rem;
  animation: fadeIn .4s ease;
}
.form-success .success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(227, 6, 19, 0.12);
  border: 2px solid var(--red);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: 2.4rem;
  font-weight: 700;
  box-shadow: 0 0 0 6px rgba(227, 6, 19, 0.08);
}
.form-success h3 {
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: .5rem;
}
.form-success p {
  color: var(--text-muted);
  font-size: 1rem;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}
.form-success.fade-out { animation: fadeOut .4s ease forwards; }
.fade-in { animation: fadeIn .45s ease both; }

/* Hours */
.hours-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  list-style: none;
  font-size: .95rem;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list li.today { background: rgba(227,6,19,.08); }
.hours-list .day { color: var(--text); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; }
.hours-list .time { color: var(--text-muted); }
.hours-list .closed { color: var(--red); font-weight: 600; }

/* Map */
.map-wrap {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 420px;
  filter: grayscale(30%) contrast(1.1);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { padding: .3rem 0; font-size: .9rem; color: var(--text-muted); }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--red); }
.footer-brand img { height: 70px; margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; }

.socials { display: flex; gap: .75rem; margin-top: 1rem; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: all .25s;
}
.socials a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse at center top, rgba(227,6,19,.18) 0%, transparent 60%),
    linear-gradient(180deg, #000, #0a0a0a);
  border-bottom: 1px solid var(--border);
}
.page-hero p { max-width: 680px; margin: 1rem auto 0; }
.breadcrumbs {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.breadcrumbs a:hover { color: var(--red); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }

  .header-inner {
    padding: 0 1rem;
    justify-content: center;
    position: relative;
  }
  .logo-link img { height: 42px; display: block; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    transition: border-color .2s, background .2s;
  }
  .nav-toggle:hover,
  .nav-toggle[aria-expanded="true"] {
    border-color: var(--red);
    background: rgba(227, 6, 19, 0.12);
  }
  .nav-toggle span {
    width: 18px; height: 2px; margin: 2.5px 0;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease, background .2s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--red);
  }
  .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);
    background: var(--red);
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(10,10,10,.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: .5rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,.4);
    transform: translateY(-120%);
    transition: transform .35s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    padding: 1rem 1.5rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }
  .nav a:last-child { border-bottom: 0; }

  .section { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .socials { justify-content: center; }
  .about-stats { grid-template-columns: 1fr; }
}
