/* ============================================================
   TahoServis Perović — Modern Theme  2026
   ============================================================ */

/* ─── Variables ──────────────────────────────────────────── */
:root {
  --c-dark:     #0f172a;
  --c-red:      #cc2222;
  --c-red-h:    #a81c1c;
  --c-white:    #ffffff;
  --c-gray-50:  #f8fafc;
  --c-gray-100: #f1f5f9;
  --c-gray-200: #e2e8f0;
  --c-gray-800: #1e293b;
  --nav-h:      90px;
  --top-h:      50px;
  --r:          8px;
  --sh-sm:      0 1px 3px rgba(0,0,0,.10);
  --sh-md:      0 4px 18px rgba(0,0,0,.10);
  --sh-lg:      0 14px 44px rgba(0,0,0,.15);
  --ease:       .25s cubic-bezier(.4,0,.2,1);
  --font:       'DM Sans', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  background: #ffffff;
  padding-top: 0 !important;
  margin: 0;
}

/* Remove old theme wrapper constraints */
.body_wrap, .page_wrap {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

/* ═══════════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════════ */
.header-topbar {
  background: var(--c-dark);
  height: var(--top-h);
  display: flex;
  align-items: center;
}

.topbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-phones {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: 1rem;
  color: rgba(255,255,255,.72);
  font-family: var(--font);
}

.topbar-phones a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color var(--ease);
  font-size: 1rem;
}
.topbar-phones a:hover { color: #fff; }
.topbar-phones .sep { color: rgba(255,255,255,.22); margin: 0 .1rem; }

.topbar-info {
  display: flex;
  gap: 1.5rem;
  font-size: .95rem;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
  font-family: var(--font);
}

@media (max-width: 768px) {
  .topbar-info { display: none; }
  .topbar-phones { font-size: .9rem; gap: .3rem; }
  .topbar-phones a { font-size: .9rem; }
  .header-topbar { height: 44px; }
}

/* ═══════════════════════════════════════════════════════════
   MAIN NAVIGATION
   ═══════════════════════════════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
}

.main-nav {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-gray-200);
  box-shadow: var(--sh-sm);
  position: relative;
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.site-logo img {
  height: 80px;
  width: auto;
  display: block;
}

/* ── Desktop nav links ─────────────────────────────── */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: .1rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: .6rem 1rem;
  color: var(--c-gray-800);
  font-size: 1.05rem;
  font-weight: 500;
  font-family: var(--font);
  text-decoration: none;
  border-radius: var(--r);
  transition: background var(--ease), color var(--ease);
  white-space: nowrap;
  line-height: 1.2;
  cursor: pointer;
}
.nav-link:hover,
.nav-link.is-active {
  background: var(--c-gray-100);
  color: var(--c-red);
  text-decoration: none;
}

/* Kontakt CTA pill */
a.nav-cta {
  background: var(--c-red) !important;
  color: var(--c-white) !important;
  padding: .6rem 1.5rem !important;
  border-radius: 50px !important;
  font-size: 1.05rem !important;
}
a.nav-cta:hover {
  background: var(--c-red-h) !important;
  color: var(--c-white) !important;
  text-decoration: none !important;
}

/* ── Dropdown ──────────────────────────────────────── */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--c-gray-800);
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .6rem 1rem;
  border-radius: var(--r);
  line-height: 1.2;
  transition: background var(--ease), color var(--ease);
  white-space: nowrap;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"] {
  background: var(--c-gray-100);
  color: var(--c-red);
}
.nav-dropdown-toggle .caret {
  font-size: .6rem;
  transition: transform var(--ease);
  display: inline-block;
  line-height: 1;
}
.nav-dropdown-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--c-white);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  min-width: 220px;
  padding: .5rem;
  list-style: none;
  margin: 0;
  border: 1px solid var(--c-gray-200);
  z-index: 200;
}
.nav-dropdown-menu.is-open { display: block !important; }

.nav-dropdown-menu li a {
  display: block;
  padding: .7rem 1.1rem;
  color: var(--c-gray-800);
  font-size: 1rem;
  font-family: var(--font);
  text-decoration: none;
  border-radius: calc(var(--r) - 2px);
  transition: background var(--ease), color var(--ease);
}
.nav-dropdown-menu li a:hover {
  background: var(--c-gray-100);
  color: var(--c-red);
  text-decoration: none;
}

/* ── Hamburger ─────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 52px;
  height: 52px;
  background: none;
  border: 1.5px solid var(--c-gray-200);
  cursor: pointer;
  padding: 13px;
  border-radius: var(--r);
  transition: background var(--ease), border-color var(--ease);
  flex-shrink: 0;
}
.nav-hamburger:hover {
  background: var(--c-gray-100);
  border-color: var(--c-gray-200);
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--c-dark);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease), width var(--ease);
  width: 100%;
}
.nav-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-active span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav ────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-hamburger { display: flex; }
  .site-logo img { height: 64px; }

  .nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .75rem;
    background: var(--c-white);
    border-top: 1px solid var(--c-gray-200);
    box-shadow: var(--sh-md);
  }
  .nav-links.is-open { display: flex !important; }

  .nav-link { padding: .9rem 1.1rem; font-size: 1.1rem; }
  .nav-dropdown-toggle { padding: .9rem 1.1rem; font-size: 1.1rem; width: 100%; justify-content: space-between; }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--c-red);
    border-radius: 0;
    padding: .25rem 0 .25rem .75rem;
    margin: .15rem 0 .15rem 1rem;
    background: var(--c-gray-50);
    min-width: unset;
  }

  a.nav-cta {
    text-align: center;
    justify-content: center;
    margin-top: .5rem;
    padding: .9rem 1rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   HERO  (index.php)
   ═══════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  background-image: url('/images/header.png');
  background-size: cover;
  background-position: 65% center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15,23,42,.92) 0%,
    rgba(15,23,42,.80) 38%,
    rgba(15,23,42,.12) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
  width: 100%;
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  color: var(--c-white);
  line-height: 1.13;
  margin: 0 0 2.25rem 0;
  max-width: 640px;
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
  letter-spacing: -.02em;
  font-family: var(--font);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Buttons ───────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .875rem 2.25rem;
  background: var(--c-red);
  color: var(--c-white);
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font);
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid var(--c-red);
  box-shadow: 0 4px 24px rgba(204,34,34,.38);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn-primary:hover {
  background: var(--c-red-h);
  border-color: var(--c-red-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(204,34,34,.48);
  color: var(--c-white);
  text-decoration: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .875rem 2.25rem;
  background: transparent;
  color: var(--c-white);
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font);
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.55);
  text-decoration: none;
  transition: all var(--ease);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--c-white);
  color: var(--c-white);
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════
   STATS SECTION  (modern cards — index.php)
   ═══════════════════════════════════════════════════════════ */
.stats-section-modern {
  background: linear-gradient(145deg, #0c1526 0%, #162248 50%, #0f1f3d 100%);
  padding: 5rem 0;
}

.stats-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.stats-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.stats-intro-title {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--c-white);
  margin: 0 0 .9rem 0;
  font-family: var(--font);
  letter-spacing: -.02em;
}

.stats-intro-text {
  font-size: .975rem;
  color: rgba(255,255,255,.62);
  line-height: 1.7;
  font-family: var(--font);
  margin: 0;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: background var(--ease), border-color var(--ease);
}
.stat-card:hover {
  background: rgba(255,255,255,.085);
  border-color: rgba(255,255,255,.18);
}

.stat-card-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.42);
  margin: 0 0 .35rem 0;
  font-family: var(--font);
}

.stat-card-sub {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  margin: 0 0 .9rem 0;
  font-family: var(--font);
}

.stat-card-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin: 0 0 .75rem 0;
  flex-wrap: wrap;
}

.stat-card-sep {
  font-size: 1.5rem;
  color: rgba(255,255,255,.2);
  line-height: 1;
  font-weight: 300;
}

.stat-card-unit {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  font-family: var(--font);
  line-height: 1.5;
}

/* Override sc_skills styling inside stat cards */
.stat-card .sc_skills,
.stat-card .sc_skills_counter { display: inline-block !important; }
.stat-card .sc_skills_item { display: inline-block !important; }

.stat-card .sc_skills_total {
  font-size: 3.6rem !important;
  font-weight: 800 !important;
  color: var(--c-white) !important;
  line-height: 1 !important;
  font-family: var(--font) !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
}

.stat-card .sc_skills_count { display: none !important; }
.stat-card .sc_skills_info  { display: none !important; }

@media (max-width: 768px) {
  .stats-cards { grid-template-columns: 1fr; gap: 1rem; }
  .stats-section-modern { padding: 3.5rem 0; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .stats-cards { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

/* ═══════════════════════════════════════════════════════════
   PAGE HERO  (stranica.php)
   ═══════════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--c-dark) 0%, #1a3260 100%);
  padding: 2.75rem 0 2.25rem;
}

.page-hero-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.breadcrumbs-modern {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin: 0 0 .6rem 0;
  list-style: none;
  padding: 0;
  font-family: var(--font);
}
.breadcrumbs-modern a {
  color: rgba(255,255,255,.58);
  text-decoration: none;
  transition: color var(--ease);
}
.breadcrumbs-modern a:hover { color: #fff; }
.breadcrumbs-modern .sep { color: rgba(255,255,255,.22); font-size: .68rem; }

.page-title-h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--c-white);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -.025em;
  font-family: var(--font);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--c-dark);
  padding: 4rem 0 0;
}

.footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.footer-col-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: rgba(255,255,255,.32);
  margin: 0 0 1.5rem 0;
  font-family: var(--font);
}

/* Contact list */
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  font-size: .9rem;
  color: rgba(255,255,255,.62);
  line-height: 1.6;
  font-family: var(--font);
}

.footer-contact li span[class^="icon-"],
.footer-contact li span[class*=" icon-"] {
  font-size: 1.05rem;
  color: var(--c-red);
  flex-shrink: 0;
  margin-top: .22rem;
}

.footer-contact a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color var(--ease);
  font-size: 1rem;
}
.footer-contact li { font-size: 1rem; }
.footer-contact a:hover { color: #fff; text-decoration: none; }

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

.footer-logo {
  max-width: 260px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .85;
}

.footer-social {
  display: flex;
  gap: .6rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
  font-size: 1.15rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
}
.footer-social a:hover {
  background: var(--c-red);
  color: #fff;
  text-decoration: none;
}

.footer-copy {
  border-top: 1px solid rgba(255,255,255,.07);
  text-align: center;
  padding: 1.35rem 2rem;
  font-size: .95rem;
  color: rgba(255,255,255,.35);
  font-family: var(--font);
}
.footer-copy p { margin: 0; font-family: var(--font); }

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer { padding: 3rem 0 0; }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL TO TOP
   ═══════════════════════════════════════════════════════════ */
.scroll_to_top {
  position: fixed !important;
  bottom: 1.75rem !important;
  right: 1.75rem !important;
  width: 46px !important;
  height: 46px !important;
  background: var(--c-red) !important;
  color: #fff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.2rem !important;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(204,34,34,.35) !important;
  transition: background var(--ease), transform var(--ease) !important;
  z-index: 9998 !important;
}
.scroll_to_top:hover {
  background: var(--c-red-h) !important;
  transform: translateY(-2px) !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* ═══════════════════════════════════════════════════════════
   CONTENT SECTION FONT OVERRIDE
   ═══════════════════════════════════════════════════════════ */
.sc_title, .sc_under_title, .sc_section, .sc_list,
.sc_list_item, .sc_contact_form, .container, .content_wrap {
  font-family: var(--font) !important;
}
