/* Static-export overrides for autoservis-cipulin.hr.
 * Kept deliberately small: the original theme CSS remains the visual baseline. */

:root {
  color-scheme: light;
  --cipulin-orange: #d78e00;
  --cipulin-dark: #202326;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

body > #pocetna,
body > div {
  max-width: 100%;
}

img {
  height: auto;
}

#site-header {
  position: relative;
  z-index: 100;
}

#cssmenu .static-menu-button {
  display: none;
  width: 100%;
  padding: 15px 52px 15px 17px;
  border: 0;
  background: transparent;
  color: #fff;
  font: 700 14px/1.2 "Scala Sans", Arial, sans-serif;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

#cssmenu .static-menu-button::before,
#cssmenu .static-menu-button::after {
  position: absolute;
  right: 18px;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform .2s ease, top .2s ease;
}

#cssmenu .static-menu-button::before {
  top: 17px;
  box-shadow: 0 6px 0 currentColor;
}

#cssmenu .static-menu-button::after {
  top: 29px;
}

#cssmenu .static-menu-button[aria-expanded="true"]::before {
  top: 23px;
  box-shadow: none;
  transform: rotate(45deg);
}

#cssmenu .static-menu-button[aria-expanded="true"]::after {
  top: 23px;
  transform: rotate(-45deg);
}

.fancybox {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.fancybox img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.static-preview-form-disabled {
  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  padding: 54px 24px;
  color: #fff;
  text-align: center;
}

.static-preview-form-disabled strong {
  display: block;
  margin-bottom: 12px;
  font: 400 clamp(26px, 5vw, 42px)/1.2 "Scala Sans SC", "Scala Sans", Arial, sans-serif;
}

.static-preview-form-disabled p {
  max-width: 620px;
  margin: 0 auto 16px;
  font: 300 18px/1.55 Arial, sans-serif;
}

.static-preview-form-disabled a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.static-map-card {
  box-sizing: border-box;
  min-height: 450px;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(32, 35, 38, .96), rgba(66, 70, 73, .9)),
    radial-gradient(circle at 25% 20%, #d78e00 0 2px, transparent 3px);
  color: #fff;
  text-align: center;
}

.static-map-card__inner {
  max-width: 620px;
}

.static-map-card h2 {
  margin: 0 0 14px;
  color: #fff;
}

.static-map-card p {
  margin: 0 0 22px;
  font-size: 18px;
}

.static-map-card a {
  display: inline-block;
  padding: 12px 20px;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.static-map-card a:hover,
.static-map-card a:focus-visible {
  background: #fff;
  color: var(--cipulin-dark);
}

.static-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 0;
  background: rgba(0, 0, 0, .9);
}

.static-lightbox[hidden] {
  display: none;
}

.static-lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
}

.static-lightbox button {
  position: fixed;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font: 32px/36px Arial, sans-serif;
  cursor: pointer;
}

.static-lightbox button:focus-visible,
.static-menu-button:focus-visible,
a:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  #cssmenu .static-menu-button {
    display: block;
  }

  #cssmenu > ul {
    display: none !important;
  }

  #cssmenu > ul.static-menu-open {
    display: block !important;
  }

  #cssmenu > ul > li {
    display: block;
  }

  #cssmenu > ul > li > a {
    display: block;
    box-sizing: border-box;
  }

  .fancybox {
    width: 50% !important;
  }

  .static-map-card {
    min-height: 360px;
  }

  .row > [class*="col-md-"] > img {
    display: block;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
