/* ═══════════════════════════════════════════════════════════
   SamoTrim – Custom styles (on top of Bootstrap 5)
   Brand colors extracted from logo:
     Green    #4fa83d  /  Dark green  #3a8c2b
     Charcoal #2f2f2f  /  Light green #e8f5e4
   Font: Inter (Google Fonts)
═══════════════════════════════════════════════════════════ */

:root {
  --st-green:        #4fa83d;
  --st-green-dark:   #3a8c2b;
  --st-green-light:  #e8f5e4;
  --st-charcoal:     #2f2f2f;
  --st-gray:         #666;
  --st-bg-light:     #f5f8f4;
  --st-radius:       12px;
  --st-radius-lg:    20px;
  --st-shadow:       0 4px 24px rgba(0, 0, 0, .07);
  --st-shadow-lg:    0 8px 40px rgba(0, 0, 0, .12);
  --st-transition:   .25s ease;
}

/* ── Base ──────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html  { scroll-behavior: smooth; }

body  {
  font-family: 'Inter', sans-serif;
  color: var(--st-charcoal);
  -webkit-font-smoothing: antialiased;
}

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

/* ── Section helpers ───────────────────────────────────── */
.st-section    { padding: 96px 0; }
.st-bg-light   { background: var(--st-bg-light); }
.st-bg-dark    { background: var(--st-charcoal); }

.st-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--st-charcoal);
  line-height: 1.15;
}

.st-subtext {
  color: var(--st-gray);
  font-size: 1.05rem;
  max-width: 540px;
}

/* ── Tag / pill label ──────────────────────────────────── */
.st-tag {
  display: inline-block;
  background: var(--st-green-light);
  color: var(--st-green-dark);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 5px 14px;
  border-radius: 100px;
}

.st-tag-dark {
  background: rgba(79, 168, 61, .18);
  color: #7ed66d;
}

/* ── Buttons ───────────────────────────────────────────── */
.st-btn-primary {
  background: var(--st-green);
  color: #fff !important;
  border: 2px solid var(--st-green);
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: background var(--st-transition), border-color var(--st-transition), transform var(--st-transition), box-shadow var(--st-transition);
}
.st-btn-primary:hover {
  background: var(--st-green-dark);
  border-color: var(--st-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 168, 61, .35);
}

.st-btn-outline {
  background: transparent;
  color: var(--st-green) !important;
  border: 2px solid var(--st-green);
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 32px;
  transition: background var(--st-transition), color var(--st-transition), transform var(--st-transition);
  text-decoration: none;
  display: inline-block;
}
.st-btn-outline:hover {
  background: var(--st-green);
  color: #fff !important;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
#navbar {
  background: #fff;
  box-shadow: var(--st-shadow);
  padding: 10px 0;
}

#navbar .nav-link {
  font-weight: 500;
  font-size: .92rem;
  color: var(--st-charcoal);
  padding: 8px 14px;
  border-radius: 7px;
  transition: color var(--st-transition), background var(--st-transition);
}
#navbar .nav-link:hover           { color: var(--st-green); background: var(--st-green-light); }

#navbar .nav-link.st-btn-primary         { color: #fff !important; }
#navbar .nav-link.st-btn-primary:hover   {
  background: var(--st-green);
  border-color: var(--st-green);
  box-shadow: none;
  transform: translateY(-2px);
  transition: transform .4s ease;
}

.navbar-brand img { height: 60px; width: auto; }

/* Custom hamburger */
.st-toggler {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 10000;
}
.st-toggler:focus,
.st-toggler:focus-visible { outline: none !important; box-shadow: none !important; }
.navbar-toggler:focus      { box-shadow: none !important; }

.st-toggler span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--st-charcoal);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  flex-shrink: 0;
}

.st-toggler[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.st-toggler[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.st-toggler[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Full-screen mobile menu ───────────────────────────── */
@media (max-width: 991.98px) {
  #navMenu {
    position: fixed !important;
    inset: 0 !important;
    height: 100vh !important;
    max-height: none !important;
    background: var(--st-charcoal) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  #navMenu.show {
    opacity: 1 !important;
    pointer-events: all !important;
  }

  #navMenu .navbar-nav {
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100%;
  }

  #navMenu .nav-link {
    color: rgba(255, 255, 255, .85) !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    padding: 14px 32px !important;
    border-radius: 8px !important;
    background: none !important;
    text-align: center;
    letter-spacing: -.01em;
  }
  #navMenu .nav-link:hover { color: #fff !important; background: rgba(255,255,255,.08) !important; }

  #navMenu .nav-link.st-btn-primary {
    background: var(--st-green) !important;
    color: #fff !important;
    margin-top: 12px !important;
    font-size: 1rem !important;
    padding: 12px 36px !important;
  }

  .st-menu-close {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: 1.5px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.6);
    border-radius: 8px;
    padding: 10px 28px;
    font-family: 'Inter', sans-serif;
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--st-transition), border-color var(--st-transition);
  }
  .st-menu-close:hover { color: #fff; border-color: rgba(255,255,255,.5); }
  .st-menu-close:focus { outline: none; box-shadow: none; }
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, .68), rgba(0, 0, 0, .62)),
    url('../slike/1.jpg') center / cover no-repeat;
  background-attachment: fixed;
  z-index: 0;
}

.hero-logo {
  height: 80px;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

#hero h1 {
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

#hero p, #hero .lead {
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.hero-scroll-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, .6);
  animation: st-bounce 2s ease infinite;
  text-decoration: none;
  display: block;
}
@keyframes st-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════════════════════════════
   SERVICE CARDS
══════════════════════════════════════════════════════════ */
.st-card {
  background: #fff;
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  border: none;
  transition: transform var(--st-transition), box-shadow var(--st-transition);
}
.st-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--st-shadow-lg);
}

.st-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--st-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--st-green);
}
.st-icon svg { width: 28px; height: 28px; }

.st-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--st-charcoal);
  margin-bottom: .5rem;
}
.st-card-text {
  font-size: .9rem;
  color: var(--st-gray);
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════════════════════ */
.st-about-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--st-radius-lg);
  background: var(--st-green-light);
  color: var(--st-green-dark);
}

.st-about-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--st-radius-lg);
  display: block;
}

.st-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.st-check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--st-charcoal);
}
.st-check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--st-green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

/* ══════════════════════════════════════════════════════════
   GALLERY
══════════════════════════════════════════════════════════ */
.st-gallery-item {
  border-radius: var(--st-radius);
  overflow: hidden;
}

.st-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.st-gallery-item:hover img { transform: scale(1.05); }


/* ══════════════════════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════════════════════ */

.st-contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(79, 168, 61, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--st-green);
}
.st-contact-icon svg { width: 20px; height: 20px; }

.st-contact-label {
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 2px;
}
.st-contact-value {
  font-size: .98rem;
  color: rgba(255, 255, 255, .85);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.st-footer {
  background: #1e1e1e;
  padding: 32px 0;
}

.st-footer-logo {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .65;
}

.st-footer-link {
  font-size: .82rem;
  color: rgba(255, 255, 255, .42);
  text-decoration: none;
  transition: color var(--st-transition);
}
.st-footer-link:hover { color: var(--st-green); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
  .st-section { padding: 72px 0; }
  .hero-logo  { height: 60px; }
  .hero-bg { 
    background-attachment: scroll;
    background-position: center;
  }
}

@media (max-width: 575.98px) {
  .st-footer .d-flex { flex-direction: column; text-align: center; }
  .st-footer nav     { justify-content: center; }
}
