/* ========================================
   Blue Lane - Custom Styles
   ======================================== */

/* --- Font Faces --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
}

/* --- Base --- */
html {
  height: 100%;
  font-size: 16px;
  line-height: 1.2;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
    'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  color: #334155;
  background-color: #0f172a;
  margin: 0;
  padding: 0;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

/* Fix GLightbox offset when page is scrolled */
body.glightbox-open {
  overflow: hidden;
}

html:has(body.glightbox-open) {
  overflow: hidden;
}

/* GLightbox slide counter */
.glightbox-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  z-index: 10;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.5;
}

p {
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Widget Layout --- */
.widget-item {
  display: flex;
  justify-content: center;
  padding: 56px 16px;
}

@media (min-width: 640px) {
  .widget-item {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

@media (min-width: 900px) {
  .widget-item {
    padding-left: 100px;
    padding-right: 100px;
  }
}

@media (min-width: 1400px) {
  .widget-item {
    padding-left: 120px;
    padding-right: 120px;
  }
}

@media (min-width: 1536px) {
  .widget-item {
    padding-left: 180px;
    padding-right: 180px;
  }
}

@media (min-width: 1680px) {
  .widget-item {
    padding-left: 260px;
    padding-right: 260px;
  }
}

/* --- Widget Max Width --- */
.widget-item-max-w {
  width: 100%;
}

@media (min-width: 768px) {
  .widget-item-max-w {
    min-width: 700px;
    max-width: 700px;
  }
}

@media (min-width: 1024px) {
  .widget-item-max-w {
    min-width: 900px;
    max-width: 900px;
  }
}

@media (min-width: 1280px) {
  .widget-item-max-w {
    min-width: 1100px;
    max-width: 1100px;
  }
}

@media (min-width: 1536px) {
  .widget-item-max-w {
    min-width: 1280px;
    max-width: 1280px;
  }
}

@media (min-width: 1680px) {
  .widget-item-max-w {
    min-width: 1520px;
    max-width: 1520px;
  }
}

@media (min-width: 1800px) {
  .widget-item-max-w {
    min-width: 1580px;
    max-width: 1580px;
  }
}

/* --- Image Fade Masks --- */
.img-fade-top {
  mask-image: linear-gradient(
    to bottom,
    rgba(9, 26, 37, 0) 0%,
    rgba(9, 26, 37, 0.79) 38%,
    rgba(9, 26, 37, 1) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(9, 26, 37, 0) 0%,
    rgba(9, 26, 37, 0.79) 38%,
    rgba(9, 26, 37, 1) 100%
  );
}

.img-fade-bottom {
  mask-image: linear-gradient(
    to top,
    rgba(9, 26, 37, 0) 0%,
    rgba(9, 26, 37, 0.79) 38%,
    rgba(9, 26, 37, 1) 100%
  );
  -webkit-mask-image: linear-gradient(
    to top,
    rgba(9, 26, 37, 0) 0%,
    rgba(9, 26, 37, 0.79) 38%,
    rgba(9, 26, 37, 1) 100%
  );
}

/* --- Masonry Gallery --- */
.masonry {
  --gutter: 1rem;
}

.masonry.wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
  max-width: 1680px;
  margin-inline: auto;
}

@media (max-width: 767px) {
  .masonry.wrapper a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .masonry.wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

.masonry a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.masonry img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.masonry a:hover img {
  transform: scale(1.25);
  filter: brightness(0.85);
}

/* --- Vehicle Image Hover --- */
.vozilo-img {
  overflow: hidden;
  border-radius: 32px;
}

.vozilo-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.vozilo-img:hover img {
  transform: scale(1.25);
  filter: brightness(0.85);
}

/* --- Mobile Menu Animations --- */
@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

#app-menu.animate-scalein {
  animation: scale-in 0.15s ease-out forwards;
}

#app-menu.animate-fadeout {
  animation: fade-out 0.15s ease-in forwards;
}

/* --- Topbar Title Links --- */
.topbar-title {
  padding: 16px 0;
  color: #ffffff;
  font-weight: 400;
  font-size: 1.5rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.topbar-title:hover {
  opacity: 0.8;
}

@media (min-width: 1024px) {
  .topbar-title {
    font-weight: 500;
    font-size: 1.125rem;
    color: #000000;
  }
}

@media (min-width: 1024px) {
  .topbar-title {
    font-weight: 500;
    font-size: 1.125rem;
  }
}

@media (min-width: 1680px) {
  .topbar-title {
    font-size: 1.25rem;
  }
}

/* --- Hero CTA Button --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background-color: #12889A;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #0F6D7B;
}

/* --- SVG Icons --- */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
