
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
:root {
  --ram-red: #880D00;
  --ram-red-dark: #a00d25;
  --ram-ink: #1a1a1a;
  --ram-white: #fff;
  --ram-light: #f4f4f4;
  --ram-line: #e2e2e2;
  --bs-body-font-family: 'Roboto', sans-serif;
  --bs-body-color: #333;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px
}

body {
  background: var(--ram-white);
  overflow-x: hidden
}

h1,
h2,
h3,
h4,
.num {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.05;
  color: var(--ram-ink)
}

h2 {
  font-size: clamp(1rem, 4vw, 2rem);
  text-transform: uppercase;
  margin-bottom: 1.6rem
}

h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  background: var(--ram-red);
  margin-top: .9rem
}

h3 {
  text-transform: uppercase
}

p {
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 62ch
}

:focus-visible {
  outline: 3px solid var(--ram-red);
  outline-offset: 3px
}

/* Butoane */
.btn-primary {
  background: var(--ram-red);
  border: 2px solid var(--ram-red);
  color: #fff;
  font-weight: 600;
  border-radius: 0;
  padding: .75rem 1.8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s, border-color .2s
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--ram-red-dark);
  border-color: var(--ram-red-dark);
  color: #fff
}

.btn-secondary {
  background: var(--ram-ink);
  border: 2px solid var(--ram-ink);
  color: #fff;
  font-weight: 600;
  border-radius: 0;
  padding: .75rem 1.8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s, border-color .2s
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--ram-red-dark);
  border-color: var(--ram-red-dark);
  color: #fff
}

/* Navigație: Bootstrap 5 navbar + offcanvas, varianta luminoasă */


.navbar-ram {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ram-line);
  padding: .7rem 0
}

.navbar-ram .navbar-brand img {
  height: 44px;
  width: auto
}

.navbar-ram .nav-link {
  color: var(--ram-ink);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .6rem 1.2rem;
  position: relative
}

.navbar-ram .nav-link::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: .15rem;
  height: 3px;
  background: var(--ram-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s
}

.navbar-ram .nav-link:hover::after,
.navbar-ram .nav-link.active::after {
  transform: scaleX(1)
}

.navbar-ram .navbar-toggler {
  border: none;
  border-radius: 0;
  padding: .35rem .6rem
}
.navbar-ram .navbar-toggler:focus{
  box-shadow: none;
}

.offcanvas-ram {
  border-left: 5px solid var(--ram-red) !important
}


@media(max-width:991.98px) {
  .offcanvas {
    height: 100dvh;
  }
  .offcanvas.offcanvas-end{
    right: -15px;
  }
  .offcanvas-body {
    justify-content: space-between;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--ram-light);
    padding: 16px 16px 32px 16px;
  }

  .navbar-ram .nav-link {
    border-bottom: 1px solid var(--ram-line)
  }

  .navbar-ram .nav-link::after {
    display: none
  }
}


/* Hero */
.hero {
  min-height: 67vh;
  display: flex;
  align-items: center;
  /* background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .9) 38%, rgba(255, 255, 255, .05) 100%),
    url("https://ramtrucks-iasi.ro/wp-content/uploads/2025/07/ram_1500_silver_motors_exterior_6-1024x592-1.webp") center/cover no-repeat; */
  border-bottom: 6px solid var(--ram-red)
}

.hero h1 {
  font-size: clamp(4rem, 12vw, 4.5rem);
  text-transform: uppercase;
  margin: 0
}

.hero .sub {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  color: var(--ram-ink);
  margin: 1rem 0 2rem;
  padding-left: 1rem;
  border-left: 5px solid var(--ram-red)
}

@media(max-width:767.98px) {
  .hero {
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .88) 60%, rgba(255, 255, 255, .55) 100%), url("https://ramtrucks-iasi.ro/wp-content/uploads/2025/07/ram_1500_silver_motors_exterior_6-1024x592-1.webp") center/cover no-repeat
  }
}

/* Secțiuni: alternanță alb / gri deschis, imagine stânga / dreapta */
main>section {
  padding: clamp(3.5rem, 8vw, 6rem) 0
}

main>section:nth-of-type(even) {
  background: var(--ram-light)
}

@media(min-width:992px) {
  main>section:nth-of-type(even) .split {
    flex-direction: row-reverse
  }
}

.shot {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  box-shadow: 14px 14px 0 var(--ram-red)
}

main>section:nth-of-type(even) .shot {
  box-shadow: -14px 14px 0 var(--ram-red)
}

.shot+.shot {
  margin-top: 2.2rem
}

@media(max-width:575.98px) {

  .shot,
  main>section:nth-of-type(even) .shot {
    box-shadow: 8px 8px 0 var(--ram-red)
  }
}

/* Carduri text */
.box {
  background: #fff;
  height: 100%;
  padding: 2rem;
  border-top: 5px solid var(--ram-red);
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .4)
}

.box h3 {
  font-size: 1.7rem;
  margin-bottom: .8rem
}

.box p {
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0
}

/* Tab-uri */
.nav-ram {
  border-bottom: 2px solid var(--ram-line)
}

.nav-ram .nav-link {
  color: var(--ram-ink);
  border: 0;
  border-radius: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .6rem 1.3rem;
  margin-bottom: -2px;
  border-bottom: 4px solid transparent;
  background: none
}

.nav-ram .nav-link.active {
  border-bottom-color: var(--ram-red);
  color: var(--ram-red)
}

/* Motoare */
.engine {
  background: #fff;
  height: 100%;
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .4);
  border-bottom: 5px solid var(--ram-red)
}

.engine img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover
}

.engine .in {
  padding: 1.8rem
}

.engine h3 {
  font-size: 1.7rem;
  margin-bottom: 1.2rem
}

.engine dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0
}

.engine dt,
.engine dd {
  margin: 0;
  padding: .7rem 0;
  border-bottom: 1px solid var(--ram-line)
}

.engine dt {
  font-weight: 500;
  text-transform: uppercase;
  font-size: .9rem;
  letter-spacing: .03em;
  padding-right: 1rem;
  align-self: center
}

.engine dd {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--ram-red);
  text-align: right;
  line-height: 1
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important
  }
}


/* ===== CAROUSEL – CSS ===== */
:root {
  --ram-red: #c8102e;
  --ram-red-dark: #a00d25;
  --bs-body-font-family: 'Roboto', sans-serif;
}

.rc {
  --per: 3;
  --gap: 16px;
  --h: 350px;
  position: relative;
  height: var(--h)
}

.rc-track {
  display: flex;
  gap: var(--gap);
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab
}

.rc-track::-webkit-scrollbar {
  display: none
}

.rc-track.drag {
  cursor: grabbing;
  scroll-snap-type: none
}

.rc-track:focus-visible {
  outline: 3px solid var(--ram-red);
  outline-offset: 3px
}

/* lățime slide = (100% - spațiile dintre slide-uri) / număr vizibile */
.rc-slide {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  position: relative;
  margin: 0;
  scroll-snap-align: start;
  overflow: hidden;
  background: #e9e9e9
}

.rc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none
}

.rc-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 1rem .9rem;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent);
  border-left: 5px solid var(--ram-red)
}

/* Săgeți */
.rc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 0;
  background: var(--ram-red);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, opacity .2s
}

.rc-btn:hover {
  background: var(--ram-red-dark)
}

.rc-btn:disabled {
  opacity: 0;
  pointer-events: none
}

.rc-prev {
  left: 0
}

.rc-next {
  right: 0
}

/* Puncte (peste imagine, ca să nu adauge înălțime) */
.rc-dots {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  display: flex;
  gap: .4rem
}

.rc-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, .35);
  border-radius: 0;
  transition: background .2s, width .2s
}

.rc-dots button.active {
  background: var(--ram-red);
  border-color: var(--ram-red);
  width: 26px
}

/* Mobil: 1,5 imagini vizibile */
@media(max-width:767.98px) {
  .rc {
    --per: 1.5;
    --gap: 12px;
    --h: 300px
  }

  .rc-btn {
    width: 38px;
    height: 38px;
    font-size: 1.05rem
  }

  .rc-slide figcaption {
    font-size: 1.1rem
  }
}

@media(prefers-reduced-motion:reduce) {
  .rc-track {
    scroll-behavior: auto
  }
}