/* ============================================================
   In Motion Classics Europe — Main Stylesheet
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS & RESET
   ------------------------------------------------------------ */
:root {
  --red:      #CC1B1B;
  --red-dark: #991414;
  --black:    #0e0e0e;
  --offwhite: #f5f3ef;
  --grey:     #1c1c1c;
  --gold:     #b89a5a;
}

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

body {
  font-family: 'Barlow', sans-serif;
  background: var(--black);
  color: #fff;
  overflow-x: hidden;
}


/* ------------------------------------------------------------
   2. ANIMATIONS
   ------------------------------------------------------------ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fu { animation: fadeUp 0.85s ease both; }
.d1 { animation-delay: 0.15s; }
.d2 { animation-delay: 0.30s; }
.d3 { animation-delay: 0.45s; }
.d4 { animation-delay: 0.60s; }


/* ------------------------------------------------------------
   3. SHARED SECTION COMPONENTS
   ------------------------------------------------------------ */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--red);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  line-height: 1.15;
}


/* ------------------------------------------------------------
   4. NAVBAR
   ------------------------------------------------------------ */
.navbar {
  background: transparent;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 2rem;
  transition: background 0.4s, padding 0.4s;
}
.navbar.scrolled {
  background: rgba(10,10,10,0.96);
  padding: 0.8rem 2rem;
  border-bottom: 1px solid rgba(204,27,27,0.2);
}

.navbar-brand img {
  height: 70px;
}

.navbar-toggler-icon-custom {
  color: #fff;
  font-size: 1.4rem;
}

.brand-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #fff;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}
.brand-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--red);
  text-transform: uppercase;
  margin-top: 2px;
  display: block;
}

.nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7) !important;
  margin: 0 0.6rem;
  transition: color 0.2s;
}
.nav-link:hover { color: #fff !important; }

.nav-cta { border: 1px solid var(--red); padding: 0.45rem 1.2rem !important; }
.nav-cta:hover { background: var(--red); }


/* ------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------ */
#hero {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.025) 0px,
    rgba(255,255,255,0.025) 1px,
    transparent 1px,
    transparent 80px
  );
  pointer-events: none;
}

.hero-red-bar {
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: var(--red);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.06;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
}

.hero-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--red);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 900;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 0.3rem;
}
.hero-title span { color: var(--red); display: block; }

.hero-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1.8rem 0;
}

.hero-text {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 2.4rem;
}

.hero-stats {
  margin-top: 4rem;
  display: flex;
  gap: 3rem;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}

.hero-img-wrap {
  width: 100%;
  max-width: 580px;
  aspect-ratio: 16/10;
  background: var(--grey);
  position: relative;
  border: 1px solid rgba(204,27,27,0.25);
}
.hero-img-wrap::after {
  content: 'YOUR FEATURED CAR';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.12);
}

.hero-img-tag {
  position: absolute;
  bottom: -16px;
  left: -20px;
  background: var(--red);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
}

/*--------------------------------------------------------------
	5a, hero canged
----------------------------------------------------------------*/
/* Make hero full height */
.min-vh-100 {
  min-height: 100vh;
}

/* Remove padding so image can go edge-to-edge */
.hero-image-col {
  padding: 0;
}

/* Image container behaves like a proper hero */
.hero-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px; /* fallback for small screens */
  overflow: hidden;
}

/* Image fills container and crops nicely */
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* KEY: prevents stretching */
  display: block;
}

/* Tag overlay */
.hero-img-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 8px 14px;
  font-size: 14px;
  letter-spacing: 1px;
}

/* Mobile behavior */
@media (max-width: 991px) {
  .hero-img-wrap {
    height: 300px;
  }
}


/* ------------------------------------------------------------
   6. BUTTONS
   ------------------------------------------------------------ */
.btn-imc {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0.9rem 2.2rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
}
.btn-imc:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }

.btn-imc-outline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.9rem 2.2rem;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-imc-outline:hover { border-color: #fff; color: #fff; }


/* ------------------------------------------------------------
   7. SERVICES
   ------------------------------------------------------------ */
#services { background: var(--offwhite); padding: 6rem 0; }

#services .section-title {
  font-size: 2.6rem;
  color: var(--black);
}

#services .section-intro {
  font-size: 0.88rem;
  color: #888;
  line-height: 1.8;
}

.service-card {
  padding: 2.4rem;
  background: #fff;
  border-top: 3px solid var(--red);
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.1); }

.service-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(204,27,27,0.1);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.service-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.8rem;
}
.service-text { font-size: 0.88rem; color: #666; line-height: 1.75; }


/* ------------------------------------------------------------
   8. GALLERY
   ------------------------------------------------------------ */
#gallery { background: var(--black); padding: 6rem 0; }

#gallery .section-title { font-size: 2.6rem; color: #fff; }

.gallery-view-all-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px;
  gap: 8px;
}

.gallery-item {
  background: var(--grey);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item:first-child { grid-row: span 2; }

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(204,27,27,0);
  transition: background 0.3s;
  z-index: 1;
}
.gallery-item:hover::before { background: rgba(204,27,27,0.07); }

.gallery-item::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.gallery-item:hover::after { opacity: 1; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.1);
}


/* ------------------------------------------------------------
   9. CONTACT
   ------------------------------------------------------------ */
#contact { background: var(--offwhite); padding: 6rem 0; }

.contact-dark { background: var(--black); padding: 3rem; height: 100%; }

.contact-dark .section-label { color: var(--red); }

.contact-dark .section-title { font-size: 2rem; color: #fff; }

.contact-info-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.2rem;
}
.contact-info-val {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.6rem;
}

.contact-light { background: #fff; padding: 3rem; }

.contact-light .section-title { font-size: 1.6rem; color: var(--black); }

.field-line {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  border-radius: 0;
  color: var(--black);
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  padding: 0.75rem 0;
  margin-bottom: 1.4rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}
.field-line::placeholder { color: rgba(0,0,0,0.25); }
.field-line:focus { border-bottom-color: var(--red); }

textarea.field-line { resize: none; }


/* ------------------------------------------------------------
   10. FOOTER
   ------------------------------------------------------------ */
footer {
  background: var(--black);
  border-top: 1px solid rgba(204,27,27,0.18);
  padding: 2rem 0;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
}

.footer-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}
