/* =========================
   RESET & BASE
========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  background: #edf3f8;
  color: #071a2b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body:has(.about-services-container) {
  height: auto;
}

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

button,
a {
  font: inherit;
}

/* =========================
   COLORS & VARIABLES
========================= */

:root {
  --blue: #0054a4;
  --blue-dark: #003c78;
  --blue-light: #4d96d9;
  --yellow: #ffca00;
  --yellow-light: #ffe36a;
  --dark: #f0f4f8;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --background: #25292e;
  --card-bg: #2d3238;
  --card-accent-bg: #353a40;
  --white: #2d3238;
  --drawer-bg: #13171f;
  --glass-border: rgba(255, 202, 0, 0.25);

  /* Component specific variables */
  --ease: cubic-bezier(0.42, 0, 0.58, 1);
  --bounce: linear(
    0 0%,
    0.4214 6.61%,
    0.5762 9.59%,
    0.7047 12.55%,
    0.8115 15.61%,
    0.8964 18.78%,
    0.9614 22.13%,
    1.0078 25.74%,
    1.0282 28.18%,
    1.0422 30.82%,
    1.0503 33.7%,
    1.0527 36.95%,
    1.0468 42.53%,
    1.015 58.45%,
    1.0045 67.2%,
    0.9987 80.44%,
    1 100%
  );
  --speed: 0.5s;
  --width: 320px;
  --sizing: 56px;
  --distance: 15%;
  --acc-bg: rgba(255, 255, 255, 0.1);
  --acc-hover-bg: rgba(255, 255, 255, 0.18);
}

/* =========================
   MAIN SITE
========================= */

.site {
  width: 100%;
  margin: 0 auto;
  background: var(--background);
  overflow: hidden;
  position: relative;
}

/* =========================
   HEADER & NAVIGATION
========================= */

.header {
  height: 80px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: relative;
  z-index: 100;
  background: var(--blue-dark);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--yellow);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.desktop-nav a {
  color: var(--yellow);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.25s ease;
}

.desktop-nav a:hover {
  color: var(--text);
}

/* Hide Mobile Elements by Default */
.menu-toggle,
.nav-overlay,
.mobile-drawer {
  display: none;
}

/* =========================
   MOBILE LUXURY DRAWER
========================= */

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  /* Animated Hamburger Toggle */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 0;
  }

  .menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--yellow);
    border-radius: 2px;
    margin-left: auto;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
  }

  .menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Dark Blurred Backdrop */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 12, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.4s ease,
      visibility 0.4s ease;
    z-index: 998;
    height: 100vh;
  }

  .nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }

  /* Luxury Slide-In Drawer Container */
  .mobile-drawer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    background: var(--drawer-bg);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.6);
    border-right: 1px solid var(--glass-border);
    padding: 32px 28px;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-drawer.is-open {
    transform: translateX(0);
  }

  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .drawer-logo img {
    height: auto;
    width: 90%;
  }

  .drawer-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.25s ease;
  }

  .drawer-close:hover {
    color: var(--yellow);
  }

  .drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 36px;
    margin-bottom: auto;
  }

  .drawer-nav a {
    color: var(--dark);
    font-size: 1.15rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.8px;
    position: relative;
    padding-left: 14px;
    opacity: 0;
    transform: translateX(-20px);
    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      color 0.25s ease;
  }

  .mobile-drawer.is-open .drawer-nav a {
    opacity: 1;
    transform: translateX(0);
    transition-delay: calc(0.08s * var(--i));
  }

  .drawer-nav a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 2px;
    height: 100%;
    background: var(--yellow);
    transition: transform 0.25s ease;
  }

  .drawer-nav a:hover {
    color: var(--yellow);
  }

  .drawer-nav a:hover::before {
    transform: translateY(-50%) scaleY(1);
  }

  .drawer-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
  }

  .drawer-tagline {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--yellow);
    margin-bottom: 12px;
  }

  .drawer-socials {
    display: flex;
    gap: 16px;
  }

  .drawer-socials a {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
  }

  .drawer-socials a:hover {
    color: var(--yellow);
  }
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 100vh;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 45px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 65%, rgba(0, 84, 164, 0.2), transparent 32%),
    radial-gradient(
      circle at 90% 15%,
      rgba(255, 202, 0, 0.22),
      transparent 30%
    ),
    var(--background);
  background-image: url("./images/tracks.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.tiresHero {
  position: absolute;
  bottom: 46px;
  right: -90px;
  height: 404px;
  object-position: right;
  filter: drop-shadow(6px 10px 9px black) !important;
}

.hero::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 220px;
  left: 50%;
  bottom: -140px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(0, 84, 164, 0),
    rgba(0, 84, 164, 0.16),
    rgba(255, 202, 0, 0.18),
    rgba(255, 202, 0, 0)
  );
  filter: blur(25px);
  border-radius: 50%;
}

.hero-car {
  width: 80%;
  max-width: 900px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.hero-car img {
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(0, 60, 120, 0.12));
}

.hero-title {
  width: 90%;
  max-width: 850px;
  text-align: center;
  position: relative;
  z-index: 4;
}

.hero-label,
.section-label {
  display: block;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 14px;
}

.hero-title h1 {
  font-family: Georgia, serif;
  color: var(--dark);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.03;
  margin-bottom: 22px;
}

.hero-title p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

/* =========================
   INTRO & BRUSH BACKGROUND
========================= */

.intro {
  min-height: 650px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
}

.intro-oval-bg {
  position: absolute;
  width: 55%;
  height: 65%;
  left: -17%;
  top: 18%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 0 180px 180px 0;
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

.intro-oval-bg2 {
  position: absolute;
  width: 55%;
  height: 65%;
  top: 18%;
  right: 0;
  width: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-light));
  border-radius: 500px 0 0 500px;
  z-index: 1;
  pointer-events: none;
  will-change: transform, opacity;
}

.intro-image {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-image img {
  width: 100%;
  max-width: 650px;
  object-fit: contain;
  will-change: transform, opacity;
  margin-left: 320px;
}

.intro-content {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: auto;
  padding: 70px 0;
  padding-right: 40px;
}

.heading-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.heading-wrapper .section-label,
.heading-wrapper h2 {
  position: relative;
  z-index: 1;
}

h2 {
  font-family: Georgia, serif;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 26px;
}

.intro-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 20px;
}

@media (max-width: 1444px) {
  .intro-image img {
    margin-left: 0;
  }
}

/* =========================
   BUTTON
========================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-width: 170px;
  height: 48px;
  padding: 0 24px;
  background: linear-gradient(90deg, var(--blue), #1678c9);
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.7px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 84, 164, 0.25);
}

/* =========================
   SERVICES CONTAINER
========================= */

section.services-new,
section#usluge {
  margin: 4rem auto;
  display: flex;
  place-items: center;
  gap: 1rem;
  position: relative;
  min-height: 550px;
  aspect-ratio: 4 / 3;
  justify-content: flex-start;
  overflow: hidden;
  max-width: calc(100vw - 2rem);
  width: 900px;
  border-radius: 1rem;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  container-type: inline-size;
  overflow: visible;
}

section#usluge .column:first-of-type {
  padding-left: 2.5rem;
  display: grid;
  grid-auto-rows: auto;
  width: var(--width);
  place-items: center;
  justify-items: start;
  gap: 0.5rem;
  z-index: 20;
  flex: 1 0 var(--width);
}

section#usluge .column:last-of-type {
  width: 100cqi;
  height: 100%;
  position: relative;
  display: grid;
  grid-auto-flow: row;
  place-items: center;
  gap: 0.675rem;
  pointer-events: none;
}

section#usluge .column:last-of-type .img-block {
  position: absolute;
  inset: 0;
}

section#usluge .column:last-of-type .img-block .img-wrapper {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section#usluge .column:last-of-type .img-block .img-wrapper img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100cqw;
  object-fit: cover;
  overflow: visible;
}

details {
  display: inline-block;
  border-radius: calc(var(--sizing) * 0.5);
  overflow: hidden;
  min-height: var(--sizing);
  background: var(--acc-bg);
  backdrop-filter: blur(20px) saturate(180%);
  color: #fff;
  transition: background 0.2s var(--ease);
  interpolate-size: allow-keywords;
}

details:hover:not([open]) {
  background: var(--acc-hover-bg);
}

summary {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: calc(var(--sizing) * 0.5);
  height: var(--sizing);
  min-height: var(--sizing);
  cursor: pointer;
  z-index: 20;
  position: relative;
  transition-property: opacity, width;
  transition-duration: calc(var(--speed) * 0.5), calc(var(--speed) * 1.5);
  transition-timing-function: var(--ease), var(--bounce);
  transition-delay: calc(var(--speed) * 1.05), 0s;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.95rem;
}

summary::marker,
summary::-webkit-details-marker {
  display: none;
}

summary svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

[open] summary {
  opacity: 0;
  pointer-events: none;
  transition-delay: 0s;
  width: var(--width);
}

details::details-content {
  opacity: 0;
  transition-property: content-visibility, height, width, opacity;
  transition-duration:
    var(--speed), calc(var(--speed) * 1.6), calc(var(--speed) * 1.6),
    calc(var(--speed) * 0.5);
  transition-behavior: allow-discrete;
  transition-timing-function:
    var(--ease), var(--bounce), var(--bounce), var(--ease);
  overflow: visible;
  height: var(--sizing);
  margin-top: calc(var(--sizing) * -1);
  width: 120px;
  min-height: var(--sizing);
  interpolate-size: allow-keywords;
}

[open]::details-content {
  height: fit-content;
  width: var(--width);
  opacity: 1;
  transition-delay: 0s, 0s, 0s, calc(var(--speed) * 1);
}

.content {
  width: var(--width);
  min-height: var(--sizing);
}

.content p {
  margin: 0;
  width: var(--width);
  padding: 1.25rem 1.5rem;
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

[data-action] {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border: 0;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  transition:
    opacity 0.26s var(--ease),
    background 0.26s var(--ease),
    transform 0.26s var(--ease);
  z-index: 30;
  position: absolute;
}

[data-action]:hover {
  background: rgba(0, 0, 0, 0.85);
}

[data-action] svg {
  width: 20px;
  color: #fff;
  stroke-width: 2.5;
}

[data-action="next"],
[data-action="previous"] {
  left: 1rem;
  top: 50%;
  display: none;
}

[data-action="previous"] {
  transform: translateY(-130%);
}

[data-action="next"] {
  transform: translateY(30%);
}

[data-action="next"] svg {
  transform: rotate(180deg);
}

[data-action="exit"] {
  right: 1rem;
  top: 1rem;
  display: none;
}

[data-action="exit"] svg {
  transform: rotate(45deg);
}

section:not(:has([open])) [data-action] {
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
}

/* =========================
   ANIMATIONS & LAYERS
========================= */

@layer intro {
  details:nth-of-type(3) {
    animation:
      slide 0.75s 0.5s both var(--bounce),
      start 0.6s 1.05s var(--bounce) both,
      color-in 0.6s 1.25s var(--bounce) both;
  }
  details:nth-of-type(1),
  details:nth-of-type(2) {
    --from-y: 75%;
  }
  details:nth-of-type(4),
  details:nth-of-type(5),
  details:nth-of-type(6) {
    --from-y: -75%;
  }
  details:nth-of-type(2),
  details:nth-of-type(4) {
    --index: 1;
  }
  details:nth-of-type(1),
  details:nth-of-type(5),
  details:nth-of-type(6) {
    --index: 2;
  }
  details:nth-of-type(1),
  details:nth-of-type(2),
  details:nth-of-type(4),
  details:nth-of-type(5),
  details:nth-of-type(6) {
    --from-scale: 1;
    --from-x: 35%;
    animation:
      start 0.6s calc(1.05s + (var(--index) * 0.08s)) var(--bounce) both,
      fade-in 0.6s calc(1.05s + (var(--index) * 0.08s)) var(--bounce) both,
      slide 0.6s calc(1.05s + (var(--index) * 0.08s)) var(--bounce) both,
      color-in 0.6s calc(1.25s + (var(--index) * 0.08s)) var(--bounce) both;
  }

  @keyframes slide {
    0% {
      scale: var(--from-scale, 0);
      translate: var(--from-x, -200px) var(--from-y, 0);
    }
  }
  @keyframes start {
    0% {
      width: var(--sizing);
    }
  }
  @keyframes color-in {
    0% {
      color: #0000;
    }
  }
  @keyframes fade-in {
    0% {
      opacity: 0;
    }
  }
}

@layer images {
  section .img-wrapper {
    display: inline-block;
    transform: translateX(0);
    transition-duration:
      calc(var(--speed) * 0), calc(var(--speed) * 0.35),
      calc(var(--speed) * 1.15);
    transition-timing-function: var(--ease), var(--ease), var(--bounce);
    transform-origin: 100% 150%;
    transition-property: transform, opacity, scale;
  }

  section[data-checking-details="true"] .img-wrapper {
    transform-origin: 50% 100%;
    transition-timing-function: var(--ease);
    transition-duration:
      calc(var(--speed) * 0.6), calc(var(--speed) * 0.25),
      calc(var(--speed) * 0.65);
  }

  section .img-block:nth-of-type(1) {
    z-index: 10;
  }

  section .img-block:nth-of-type(1) .img-wrapper {
    transform-origin: 50% 50%;
    transition-property: translate, opacity, scale;
    transition-duration:
      calc(var(--speed) * 0.4), calc(var(--speed) * 0.35),
      calc(var(--speed) * 1.15);
    transition-timing-function: ease-in, var(--ease), var(--bounce);
  }

  section:has(details:nth-of-type(1)[open])
    .column:last-of-type
    .img-block:nth-of-type(2),
  section:has(details:nth-of-type(2)[open])
    .column:last-of-type
    .img-block:nth-of-type(3),
  section:has(details:nth-of-type(3)[open])
    .column:last-of-type
    .img-block:nth-of-type(4),
  section:has(details:nth-of-type(4)[open])
    .column:last-of-type
    .img-block:nth-of-type(5),
  section:has(details:nth-of-type(5)[open])
    .column:last-of-type
    .img-block:nth-of-type(6),
  section:has(details:nth-of-type(6)[open])
    .column:last-of-type
    .img-block:nth-of-type(7) {
    translate: var(--distance) 0;
    z-index: 2;

    .img-wrapper {
      transform: translateX(calc(var(--distance) * -1));
      transition-delay: calc(var(--speed) * 0.2);
    }
  }

  section:not(:has([open]))
    div.column:nth-of-type(2)
    div.img-block:first-of-type {
    translate: 0 0;

    .img-wrapper {
      transform: translateX(0%);
      transition-delay: calc(var(--speed) * 0.2);
    }
  }

  section:not(:has(details:nth-of-type(1)[open]))
    .column:last-of-type
    .img-block:nth-of-type(2),
  section:not(:has(details:nth-of-type(2)[open]))
    .column:last-of-type
    .img-block:nth-of-type(3),
  section:not(:has(details:nth-of-type(3)[open]))
    .column:last-of-type
    .img-block:nth-of-type(4),
  section:not(:has(details:nth-of-type(4)[open]))
    .column:last-of-type
    .img-block:nth-of-type(5),
  section:not(:has(details:nth-of-type(5)[open]))
    .column:last-of-type
    .img-block:nth-of-type(6),
  section:not(:has(details:nth-of-type(6)[open]))
    .column:last-of-type
    .img-block:nth-of-type(7) {
    .img-wrapper {
      transition-property: translate, opacity, scale;
      transition-timing-function: ease-in, ease-out, ease-in;
      translate: 0 0;
      scale: 0.9;
      opacity: 0;
    }
  }

  section[data-checking-details="true"] {
    &:not(:has(details:nth-of-type(1)[open]))
      .column:last-of-type
      .img-block:nth-of-type(2),
    &:not(:has(details:nth-of-type(2)[open]))
      .column:last-of-type
      .img-block:nth-of-type(3),
    &:not(:has(details:nth-of-type(3)[open]))
      .column:last-of-type
      .img-block:nth-of-type(4),
    &:not(:has(details:nth-of-type(4)[open]))
      .column:last-of-type
      .img-block:nth-of-type(5),
    &:not(:has(details:nth-of-type(5)[open]))
      .column:last-of-type
      .img-block:nth-of-type(6),
    &:not(:has(details:nth-of-type(6)[open]))
      .column:last-of-type
      .img-block:nth-of-type(7) {
      .img-wrapper {
        transform-origin: 50% 100%;
        translate: calc(var(--distance) * -1) 0;
      }
    }
  }

  section:has([open]) .column:last-of-type .img-block:first-of-type {
    .img-wrapper {
      translate: 0 0;
      scale: 1.25;
      opacity: 0;
    }
  }
}

/* =========================
   CTA
========================= */

.cta {
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  padding: 40px;
  background:
    radial-gradient(circle at 15% 65%, rgba(0, 84, 164, 0.2), transparent 32%),
    radial-gradient(
      circle at 90% 15%,
      rgba(255, 202, 0, 0.22),
      transparent 30%
    ),
    var(--background);
  background-image: url(./images/tracks.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.cta-bg-detail {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.cta-bg-detail img {
  height: 100%;
  filter: drop-shadow(5px 16px 9px rgba(0, 0, 0, 0.7));
}

.cta-content {
  position: relative;
  z-index: 3;
  margin: auto;
  max-width: 500px;
}

.cta-content .section-label {
  display: block;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--yellow);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.cta-content .button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--yellow);
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.cta-car {
  position: relative;
  z-index: 2;
  width: 50%;
  display: flex;
  justify-content: center;
  will-change: transform;
  transition: transform 0.05s linear;
}

.cta-car img {
  width: 100%;
  max-width: 650px;
  object-fit: contain;
}

/* =========================
   FOOTER
========================= */
/* =========================
   FOOTER STYLES
========================= */

.footer {
  background: #0d121c;
  border-top: 1px solid var(--yellow);
  color: var(--text);
  padding-top: 60px;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr 1.3fr;
  gap: 40px;
}

.footer-logo img {
  height: 42px;
  width: auto;
  margin-bottom: 16px;
}

.contact-item i {
  color: var(--yellow);
  font-size: 1rem;
  margin-top: 3px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.footer-socials a i {
  font-size: 0.95rem;
}

.footer-bio {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 202, 0, 0.2);
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-socials a:hover {
  background: var(--yellow);
  color: #000;
  transform: translateY(-3px);
}

.footer-heading {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--yellow);
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition:
    color 0.25s ease,
    padding-left 0.25s ease;
}

.footer-links a:hover {
  color: var(--yellow);
  padding-left: 6px;
}

.footer-hours {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
  color: var(--muted);
}

.footer-hours strong {
  color: var(--text);
}

.footer-hours strong.closed {
  color: #ff6b6b;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-item svg {
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--yellow);
}

.footer-legal {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 5%;
}

.legal-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-bottom {
  text-align: center;
  padding: 20px 5%;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .legal-container span:nth-child(even) {
    display: none;
  }
  .legal-container {
    flex-direction: column;
    gap: 6px;
  }
}

/* =========================
   O NAMA PAGE STYLES
========================= */
/* =========================
   PAGE HERO (INTRO STYLE)
========================= */

.page-hero {
  min-height: 650px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
}

/* Plava ovalna pozadina */
.hero-oval-bg {
  position: absolute;
  width: 55%;
  height: 65%;
  left: -17%;
  top: 18%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 0 180px 180px 0;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}

/* Kontejner za sliku */
.page-hero-image {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-image img {
  width: 100%;
  max-width: 650px;
  object-fit: contain;
  will-change: transform, opacity;
  margin-left: 320px;
}

/* Tekstualni sadržaj */
.page-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: auto;
  padding: 70px 0;
  padding-right: 40px;
}

.page-hero-content h1 {
  font-family: Georgia, serif;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 26px;
}

.page-hero-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 20px;
}

/* Ukrasna slika u pozadini s desne strane */
.hero-detail-img {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-detail-img img {
  height: 100%;
  opacity: 0.5;
  filter: drop-shadow(5px 16px 9px var(--background));
}

/* Responsive prilagođavanja */
@media (max-width: 1444px) {
  .page-hero-image img {
    margin-left: 0;
  }
}

@media (max-width: 850px) {
  .page-hero {
    flex-direction: column;
    min-height: auto;
    padding-top: 40px;
  }

  .page-hero-content {
    padding-left: 40px;
    padding-top: 10px;
  }
}
.about-section {
  width: 40%;
}

.about-container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-text p {
  color: var(--text);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 18px;
}

.about-text em {
  color: var(--yellow);
  font-style: normal;
}

/* Company Info Card */
/* =========================
   COMPANY INFO CLEAN LIST
========================= */

.company-info-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--acc-bg);
  border-radius: 12px;
  padding: 32px 36px;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--acc-bg);
}

.info-header .info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--acc-bg);
  color: var(--yellow);
  font-size: 0.9rem;
}

.info-header h3 {
  color: var(--dark);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.company-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.company-info-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-bottom: 1px dashed var(--acc-bg);
  border-radius: 6px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.company-info-list li:hover {
  background: var(--acc-hover-bg);
  transform: translateX(4px);
}

.company-info-list li:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.info-value {
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 600;
}

.info-value a {
  color: var(--yellow);
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-value a:hover {
  color: var(--yellow-light);
  text-decoration: underline;
}

.separator {
  color: var(--muted);
  margin: 0 4px;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
  .company-info-wrapper {
    padding: 24px 20px;
  }
}

/* Services Grid Section */
/* =========================
   SERVICES CLEAN LIST LAYOUT
========================= */
* {
  border: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --hue: 3;
  --bg: hsl(var(--hue), 10%, 90%);
  --fg: hsl(var(--hue), 10%, 10%);
  --primary: hsl(var(--hue), 90%, 50%);
  --primaryT: hsla(var(--hue), 90%, 50%, 0);
  --trans-dur: 0.3s;
  font-size: calc(16px + (24 - 16) * (100vw - 320px) / (2560 - 320));
}
body:has(.about-services-section) {
  background-color: var(--bg);
  color: var(--fg);
  display: flex;
  font:
    1em/1.5 "DM Sans",
    sans-serif;
  transition:
    background-color var(--trans-dur),
    color var(--trans-dur);
}
.about-services-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
}
.about-services-container {
  padding-top: 40px;
}
.about-services-container a {
  transition: color var(--trans-dur);
}
.timeline {
  margin: auto;
  margin-left: 50px;
  padding: 3em 0;
  color: var(--text);
}

.timeline__items {
  list-style: none;
  margin-left: 0.75em;
}

.timeline__item {
  padding: 0 0 1.5em 1.25em;
  position: relative;
}

.timeline__item br {
  display: none;
}

.timeline__item:before,
.timeline__item:after,
.timeline__item .timeline__item-pub,
.timeline__item .timeline__item-time,
.timeline__item .timeline__item-link {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    opacity 0.3s cubic-bezier(0.65, 0, 0.35, 1),
    transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Timeline dots and vertical line using site brand colors */
.timeline__item:before,
.timeline__item:after {
  background-color: var(--yellow);
  content: "";
  display: block;
  position: absolute;
  left: 0;
}

.timeline__item:before {
  border-radius: 50%;
  top: 0.25em;
  width: 1em;
  height: 1em;
  transform: translateX(-50%) scale(0);
  z-index: 1;
}

.timeline__item:after {
  top: 0.75em;
  width: 0.125em;
  height: 100%;
  transform: translateX(-50%);
  opacity: 0.4;
}

.timeline__item:last-child:after {
  display: none;
}

.timeline__item-pub,
.timeline__item-link,
.timeline__item-time {
  display: block;
  opacity: 0;
  transform: translateX(-0.75em);
}

/* Service text styling */
.timeline__item-link,
.timeline__item-link:visited {
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
}

/* Numbering on the left side */
.timeline__item-pub,
.timeline__item-time {
  font-size: 0.95em;
  line-height: 1.8;
  color: var(--yellow);
}

.timeline__item-time {
  font-weight: bold;
}

.timeline__loading {
  text-align: center;
  color: var(--muted);
}

/* Observed items animation */
.timeline__item--in .timeline__item-pub,
.timeline__item--in .timeline__item-link,
.timeline__item--in .timeline__item-time {
  opacity: 1;
  transform: translateX(0);
}

.timeline__item--in:before {
  transform: translateX(-50%) scale(1);
}

/* Beyond mobile layout */
@media (min-width: 768px) {
  .timeline__items {
    margin-left: 0px;
    width: 100%;
  }
  .timeline__item-time {
    position: absolute;
    top: 0;
    right: calc(100% + 1.25rem);
    text-align: right;
    width: 17rem;
    transform: translateX(0.75em);
  }
}
@media (max-width: 768px) {
  .timeline {
    margin-left: 0;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .about-services-section {
    padding: 0;
    flex-direction: column;
  }
  .about-services-container,
  .about-section {
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
  }

  .about-section {
    padding-top: 0;
    padding-bottom: 40px;
  }
}
@media (max-width: 768px) {
  .services-list-wrapper {
    padding: 24px 20px;
  }

  .services-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Responsive */
@media (max-width: 850px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
/* =========================
   FULL-WIDTH MAP SECTION
========================= */

.map-section {
  width: 100%;
  position: relative;
  background: var(--background);
  border-top: 1px solid var(--glass-border);
  line-height: 0; /* Uklanja prazan prostor/gap ispod iframe-a */
}

.map-container {
  width: 100%;
  height: 450px;
  position: relative;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Responsiveness za mobilne ekrane */
@media (max-width: 768px) {
  .map-container {
    height: 350px;
  }
}
/* =========================
   CONTACT FORM MODERN STYLES
========================= */

.contact-section {
  padding: 100px 5%;
  background: var(--background);
  position: relative;
}

.contact-container {
  max-width: 860px;
  margin: 0 auto;
}

.contact-form-wrapper {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.contact-form-wrapper .heading-center {
  margin-bottom: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--text);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Input Wrapper sa ikonama */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text);
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.25s ease;
}

.textarea-icon {
  top: 16px;
}

/* Custom Minimalist Styling za Input i Textarea */
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--acc-bg);
  border-bottom: 2px solid var(--muted);
  border-radius: 8px;
  padding: 14px 16px 14px 46px;
  color: var(--dark);
  font-family: inherit;
  font-size: 0.98rem;
  outline: none;
  transition: all 0.25s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Placeholder boja */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

/* Hover & Focus stanja */
.form-group input:hover,
.form-group textarea:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--yellow);
  border-bottom-color: var(--yellow);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.input-wrapper:focus-within .input-icon {
  color: var(--yellow);
}

/* Dugme za slanje */
.submit-btn {
  align-self: flex-start;
  margin-top: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  height: 52px;
  border-radius: 6px;
}

.submit-btn i {
  transition: transform 0.25s ease;
}

.submit-btn:hover i {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 650px) {
  .contact-section {
    padding: 60px 5%;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .submit-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   FULL-SCREEN GALLERY PAGE STYLES
========================= */

.gallery-page-main {
  min-height: calc(100vh - 80px);
  background: var(--background);
  display: flex;
  flex-direction: column;
}

.gallery-fullscreen-section {
  width: 100%;
  padding: 40px 3%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gallery-header-inline {
  text-align: center;
  margin-bottom: 32px;
}

.gallery-header-inline h1 {
  font-family: Georgia, serif;
  font-size: clamp(32px, 4vw, 54px);
  color: var(--dark);
  font-weight: 500;
  margin-top: 4px;
}

/* Bento Modern Grid (Full Width & Auto Height Layout) */
.bento-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
}

/* Individual Gallery Item */
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--acc-bg);
  display: block;
  text-decoration: none;
  cursor: pointer;
}

/* Bento Grid Spans za raznolike dimenzije */
.gallery-item.item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.item-tall {
  grid-row: span 2;
}

.gallery-item.item-wide {
  grid-column: span 2;
}

/* Slike u galeriji */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.5s ease;
}

/* Dynamic Dark Overlay na Hover */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 18, 28, 0.85) 0%,
    rgba(13, 18, 28, 0.2) 60%,
    transparent 100%
  );
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px;
  transition: opacity 0.35s ease;
}

.overlay-tag {
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  transform: translateY(12px);
  transition: transform 0.35s ease;
}

.expand-icon {
  color: transparent;
  font-size: 1.2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition:
    transform 0.5s ease,
    background 1s ease;
}

/* Hover Efekti */
.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .overlay-tag {
  transform: translateY(0);
}

.gallery-item:hover .expand-icon {
  transform: scale(1);
  background: var(--yellow);
  color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive Grid za Tablet i Mobilne uređaje */
@media (max-width: 1200px) {
  .bento-gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
  }
}

@media (max-width: 850px) {
  .bento-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
    gap: 14px;
  }

  .gallery-item.item-large,
  .gallery-item.item-wide {
    grid-column: span 2;
  }

  .gallery-item.item-tall {
    grid-row: span 1;
  }
}

@media (max-width: 550px) {
  .bento-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .gallery-item.item-large,
  .gallery-item.item-wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* =========================
   CONTACT HERO (RIGHT TO LEFT LAYOUT)
========================= */

/* Postavljanje žutog ovala sa desne strane */
.hero-oval-bg.yellow-oval {
  left: auto;
  right: 0;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-light));
  border-radius: 500px 0 0 500px;
}

/* Prilagođavanje rasporeda na kontakt HERO sekciji */
.contact-hero {
  justify-content: space-between;
}

.contact-hero .page-hero-content {
  padding-left: 5%;
  padding-right: 0;
  z-index: 3;
}

.contact-hero .page-hero-image {
  justify-content: flex-end;
}

.contact-hero .page-hero-image img {
  margin-left: 0;
  margin-right: 100px;
}

/* Ukrasni detalj sa lijeve strane */
.hero-detail-img.left-detail {
  right: auto;
  left: 0;
}

.hero-detail-img.left-detail img {
  transform: scaleX(-1);
}

@media (max-width: 1444px) {
  .contact-hero .page-hero-image img {
    margin-right: 0;
  }
}

@media (max-width: 850px) {
  .contact-hero {
    flex-direction: column-reverse;
    padding: 40px;
  }
}
/* Responsiveness za formu */
@media (max-width: 650px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 24px 20px;
  }
}
/* =========================
   RESPONSIVE MEDIA QUERIES
========================= */

@media (max-width: 1200px) {
  .tiresHero {
    height: 66%;
  }
}

@media (max-width: 850px) {
  section.services-new,
  section#usluge {
    flex-direction: column;
    height: auto;
    aspect-ratio: auto;
    padding: 2rem 1rem;
  }

  section#usluge .column:first-of-type {
    padding-left: 0;
    width: 100%;
  }

  details,
  summary,
  .content,
  .content p {
    width: 100% !important;
  }

  section#usluge .column:last-of-type {
    position: absolute;
  }

  .intro,
  .cta {
    flex-direction: column;
  }
  .cta-car {
    width: 100%;
  }

  .intro-content {
    padding-left: 40px;
    padding-top: 10px;
  }

  .hero {
    min-height: auto;
  }

  .tiresHero {
    height: 200px;
    right: -20px;
    bottom: 25px;
  }

  section#usluge .column:last-of-type .img-block .img-wrapper img {
    object-fit: contain;
  }
}

@media (max-width: 500px) {
  .tiresHero {
    height: 100px;
    right: -20px;
    bottom: 25px;
  }
}
