/* ==========================================================================
   Custom styles for the static (CDN) build.
   Recreates the theme overrides + custom utilities that were previously
   compiled from SCSS, so the stock Bootstrap CDN matches the template design.
   ========================================================================== */

/* --- Theme overrides (colors, fonts, radius) --- */
:root {
  --bs-primary: #000000;
  --bs-primary-rgb: 0, 0, 0;
  --bs-secondary: #d47f31;
  --bs-secondary-rgb: 212, 127, 49;
  --bs-light: #ecebe9;
  --bs-light-rgb: 236, 235, 233;
  --bs-border-color: #ecebe9;
  --bs-border-color-translucent: #ecebe9;

  --bs-body-font-family: "Poppins", sans-serif;

  --bs-link-color: #000000;
  --bs-link-color-rgb: 0, 0, 0;
  --bs-link-hover-color: #d47f31;
  --bs-link-hover-color-rgb: 212, 127, 49;

  /* Square corners ($enable-rounded: false) */
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-border-radius-xl: 0;
  --bs-border-radius-xxl: 0;
  --bs-border-radius-2xl: 0;

  --swiper-theme-color: #000000;
}

body {
  font-family: var(--bs-body-font-family);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 400;
}

/* Links: no underline by default, underline on hover (skip buttons/nav) */
a:not(.btn):not(.nav-link):not(.page-link):not(.navbar-brand):hover {
  text-decoration: underline;
}

/* Primary buttons use black ($primary) */
.btn-primary {
  --bs-btn-bg: #000000;
  --bs-btn-border-color: #000000;
  --bs-btn-hover-bg: #211f1c;
  --bs-btn-hover-border-color: #211f1c;
  --bs-btn-active-bg: #211f1c;
  --bs-btn-active-border-color: #211f1c;
  --bs-btn-disabled-bg: #000000;
  --bs-btn-disabled-border-color: #000000;
}

/* --- Custom component styles (ported from _custom.scss) --- */
.navbar-custom {
  background-color: #ffffff;
}
.navbar-custom .navbar-nav {
  line-height: 1;
}
.navbar-custom .navbar-nav .nav-item .nav-link {
  font-size: 0.875rem;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  color: #615b51;
  font-weight: 500;
}
.navbar-custom .navbar-nav .nav-item .nav-link:hover {
  color: #211f1c;
}

.text-xs {
  font-size: 0.75rem;
}

.btn-icon {
  height: 3rem;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer {
  color: #837a6d;
}
.footer .ft-links {
  color: #837a6d;
}
.footer .ft-links:hover {
  color: #ffffff;
}

/* --- Logo (header, offcanvas, footer) --- */
/* width:auto čuva omjer, align-self spriječava rastezanje unutar flex spana */
.brand-logo {
  display: block;
  width: auto;
  height: 56px;
  max-width: 100%;
  align-self: flex-start;
}
.footer .brand-logo {
  height: 84px;
}

/* Telefon ispod logotipa (lijevo) */
.navbar-phone {
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
  color: inherit;
}
.navbar-phone:hover {
  color: var(--bs-secondary);
}
.navbar-phone .bi {
  color: var(--bs-secondary);
}

/* --- Swiper customizations (ported from _swiper.scss) --- */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  background: transparent;
  opacity: 0.3;
  border: 2px solid #000000;
}
.swiper-pagination-bullet-active {
  opacity: 1;
  background: #000000;
  border-color: #000000;
}
.swiper-pagination-light .swiper-pagination-bullet {
  border-color: #ffffff;
  color: #ffffff;
  width: 10px;
  height: 10px;
}
.swiper-pagination-numbers {
  width: 28px;
  height: 28px;
  display: inline-block;
  border-radius: 50%;
  background: #dad7d2;
  margin: auto 2px;
  line-height: 28px;
  color: #000000;
}
.swiper-pagination-numbers-active {
  opacity: 1;
  background: #000000;
  color: #ffffff;
}

[data-navigation="false"] .swiper-navigation {
  display: none;
  opacity: 0;
  visibility: hidden;
}

.swiper-button-prev svg,
.swiper-button-next svg {
  display: none;
}
.swiper-button-prev {
  left: auto;
  right: 0;
  position: absolute;
}
.swiper-button-prev::after {
  content: "\F12F";
  font-family: "bootstrap-icons";
  font-size: 40px;
  color: #000000;
}
.swiper-button-next {
  left: 0;
  right: auto;
  position: absolute;
}
.swiper-button-next::after {
  content: "\F138";
  font-family: "bootstrap-icons";
  font-size: 40px;
  color: #000000;
}

.swiper-thumbs .swiper-slide {
  height: 100%;
  margin-right: 10px !important;
}
.swiper-thumbs .swiper-slide.swiper-slide-thumb-active {
  border: 1px solid #000000;
}
.swiper-fade .swiper-slide-active {
  cursor: pointer;
}

/* ==========================================================================
   Custom spacing utilities (levels 6-11 extend Bootstrap's 0-5).
   6: 2.5rem  7: 3rem  8: 4rem  9: 5rem  10: 6rem  11: 8rem
   ========================================================================== */
.p-6  { padding: 2.5rem !important; }
.py-6 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.pt-6 { padding-top: 2.5rem !important; }

.pt-8 { padding-top: 4rem !important; }
.pb-8 { padding-bottom: 4rem !important; }

.pb-10 { padding-bottom: 6rem !important; }

.mb-8 { margin-bottom: 4rem !important; }

/* Više bočnog razmaka na mobitelu da sadržaj ne bude zalijepljen uz rub */
@media (max-width: 575.98px) {
  .container,
  .container-fluid {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

@media (min-width: 768px) {
  .mb-md-8 { margin-bottom: 4rem !important; }
  .mx-md-8 { margin-left: 4rem !important; margin-right: 4rem !important; }
  .px-md-8 { padding-left: 4rem !important; padding-right: 4rem !important; }
  .top-md-65 { top: 65% !important; }
  .top-md-55 { top: 55% !important; }
}

@media (min-width: 992px) {
  .ms-lg-8  { margin-left: 4rem !important; }
  .mt-lg-9  { margin-top: 5rem !important; }
  .mx-lg-8  { margin-left: 4rem !important; margin-right: 4rem !important; }
  .mx-lg-10 { margin-left: 6rem !important; margin-right: 6rem !important; }
  .pt-lg-8  { padding-top: 4rem !important; }
  .px-lg-11 { padding-left: 8rem !important; padding-right: 8rem !important; }
  .py-lg-8  { padding-top: 4rem !important; padding-bottom: 4rem !important; }
  .py-lg-9  { padding-top: 5rem !important; padding-bottom: 5rem !important; }
  .py-lg-10 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
  .py-lg-11 { padding-top: 8rem !important; padding-bottom: 8rem !important; }
  .w-lg-50  { width: 50% !important; }
}

/* ==========================================================================
   Custom position utilities (top-75, plus responsive top-md-65 above).
   ========================================================================== */
.top-75 { top: 75% !important; }

/* ==========================================================================
   Showcase proizvoda — tamne i svijetle pločice.
   Fotke s crnom studijskom pozadinom dobivaju tamnu pločicu (.tile-dark),
   a proizvodi na bijeloj pozadini svijetlu (.tile-light). Obje dijele jednak
   okvir (object-fit: contain), tanki rub i zlatni akcent na hoveru — pa tamne
   i svijetle pločice čine namjeran, ujednačen par.
   ========================================================================== */

/* Jednak okvir za slike u showcaseu (visine se postavljaju po kontekstu) */
#swiper-3 .swiper-slide img,
#category-grid .card-img-top {
  width: 100%;
  object-fit: contain;
}

/* Podloga pločice */
.tile-dark  { background-color: #000000; }
.tile-light { background-color: #ffffff; }

/* Slika kao pločica: tanki rub + mjesto za zlatni hover akcent */
.product-shot {
  display: block;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.product-shot.tile-light {
  border-color: var(--bs-border-color);
}
#swiper-3 .swiper-slide a:hover .product-shot,
#category-grid .product-card:hover .product-shot {
  border-bottom-color: var(--bs-secondary);
}

/* Cijena u zlatnoj boji branda */
.price-gold {
  color: #b9651f;
}

/* --- Hero slider (full-bleed, tamni) --- */
.hero-slider {
  background-color: #000000;
  overflow: hidden;
}
.hero-slide {
  position: relative;
  min-height: 70vh;
  background-color: #000000;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  display: flex;
  align-items: center;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero-slide .container {
  position: relative;
  z-index: 2;
}
.hero-text {
  max-width: 100%;
  text-align: center;
  color: #ffffff;
  padding: 3rem 0;
}
.hero-eyebrow {
  font-style: italic;
  color: var(--bs-secondary);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.hero-title {
  color: #ffffff;
  font-weight: 400;
  line-height: 1.05;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  margin-bottom: 1.25rem;
}
.hero-lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto 1.5rem;
  max-width: 540px;
}
.hero-meta {
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1.5rem;
}
.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
  z-index: 5;
}
.hero-slider .swiper-button-prev::after,
.hero-slider .swiper-button-next::after {
  color: #ffffff;
}

@media (min-width: 992px) {
  .hero-slide {
    min-height: 86vh;
    background-position: center right;
  }
  .hero-slide::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0) 66%);
  }
  .hero-text {
    max-width: 480px;
    text-align: left;
    padding: 2rem 0;
  }
  .hero-lead {
    margin-left: 0;
  }
}

/* --- Izdvajamo iz ponude + mreža kategorija --- */
#swiper-3 .swiper-slide img { height: 200px; }
#category-grid .card-img-top { height: 220px; }

@media (min-width: 992px) {
  #swiper-3 .swiper-slide img { height: 220px; }
}

/* ==========================================================================
   Clickable contact cards (contact.html).
   ========================================================================== */
.contact-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .12) !important;
}
.contact-card:hover .bi {
  color: var(--bs-secondary) !important;
}

/* ==========================================================================
   Mobilne korekcije (vrijedi na svim stranicama).
   ========================================================================== */
@media (max-width: 991.98px) {
  /* Header: logo lijevo, telefon + hamburger desno — sve u jednom redu */
  .navbar-custom .container-fluid {
    flex-wrap: nowrap;
  }
  .navbar-custom .navbar-brand {
    flex-shrink: 0;
  }
  .brand-logo {
    height: 40px;
  }
  /* Manji broj da stane u red između logotipa i hamburgera */
  .navbar-phone {
    font-size: 0.75rem;
  }

  /* Hero: tekst (podnaslov, gumb) ostaje unutar granica strelica */
  .hero-text {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}
