/* ===============
   MH-proMET – theme
   =============== */
:root{
  --bg: #9ba8ba;
  --bg-alt:#a9b6c8;
  --card:#121a34;
  --text:#e7ecf7;
  --muted:#a5b1c8;
  --brand:#3b82f6;
  --brand-2:#22d3ee;
  --ring: rgba(59,130,246,0.55);
  --radius: 16px;
  --shadow: 0 12px 24px rgba(0,0,0,0.35);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, rgba(34,211,238,.12), transparent 40%),
             radial-gradient(1200px 800px at 90% 0%, rgba(59,130,246,.10), transparent 40%),
             var(--bg);
  line-height:1.6;
}

img{ max-width:100%; display:block; border-radius: calc(var(--radius) - 4px); }

.container{ width:min(1100px, 92%); margin-inline:auto; }

/* NAV */
.navbar{
  position: sticky; top:0; z-index: 20;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(11,16,32,.85), rgba(11,16,32,.55));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:16px; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.3px; }
.brand i{ font-size: 1.4rem; color: var(--brand-2); }
.nav-actions{ display:flex; align-items:center; gap:14px; }
.nav-link{ color:var(--text); text-decoration:none; opacity:.9; display:flex; gap:8px; align-items:center; font-weight:500; }
.nav-link:hover{ opacity:1; }
.lang-switch{ background:var(--card); color:var(--text); border:1px solid rgba(255,255,255,.08); padding:8px 10px; border-radius:10px; }

/* HERO */
.hero{ position:relative; overflow:hidden; }
.hero-inner{ display:grid; grid-template-columns: 1.1fr .9fr; gap:30px; align-items:center; padding:56px 0 32px; }
.hero-text h1{ font-family:'Montserrat', sans-serif; font-weight:700; font-size: clamp(28px, 4vw, 44px); line-height:1.2; }
.subtitle{ color:var(--muted); margin-top:8px; font-size:1.05rem; }
.hero-ctas{ display:flex; gap:12px; margin-top:18px; }
.hero-media img{ box-shadow: var(--shadow); }

.hero-gradient{
  pointer-events:none;
  position:absolute; inset:0;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(34,211,238,.20), transparent 40%),
    radial-gradient(600px 400px at 20% 80%, rgba(59,130,246,.22), transparent 40%);
  opacity:.9;
}

/* SECTIONS */
.section{ padding: 52px 0; }
.section.alt{ background: linear-gradient(180deg, rgba(255,255,255,.03), transparent); }
.section-title{ display:flex; align-items:center; gap:10px; font-size:1.6rem; margin:0 0 18px; }
.muted{ color:var(--muted); }

/* GRID + CARDS */
.grid{ display:grid; gap:18px; }
.cards-3{ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card{
  background: var(--card);
  border:1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-2px); box-shadow: 0 16px 30px rgba(0,0,0,.45); }
.card.small .card-img{ border-radius: 12px; }
.card .card-icon{
  width:48px; height:48px; display:grid; place-items:center;
  border-radius:12px; background: linear-gradient(135deg, rgba(34,211,238,.25), rgba(59,130,246,.25));
  margin-bottom:12px; color:white; font-size:22px;
}

.list{ display:flex; flex-direction:column; gap:8px; margin:10px 0 0; padding:0; list-style:none; }
.list li{ display:flex; align-items:flex-start; gap:8px; }
.list li i{ color: var(--brand-2); margin-top:3px; }
.list.compact{ gap:6px; }

.card-img{ width:100%; aspect-ratio: 16/10; object-fit:cover; margin-top:6px; }

.feature{ display:flex; gap:14px; align-items:flex-start; background:var(--card); border:1px solid rgba(255,255,255,.06); padding:16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature i{ font-size: 28px; color: var(--brand); }
.feature h3{ margin:0 0 6px; }

/* CONTACT */
.contact-grid{
  display:grid; gap:18px; align-items:start;
  grid-template-columns: 1.1fr .9fr;
}
.contact-card{ background:var(--card); border:1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding:18px; box-shadow: var(--shadow); }
.contact-list{ list-style:none; padding:0; margin:14px 0 0; display:flex; flex-direction:column; gap:10px; }
.contact-list li{ display:flex; align-items:center; gap:10px; color: var(--text); }
.contact-list a{ color: var(--text); text-decoration:none; border-bottom:1px dashed rgba(255,255,255,.25); }
.contact-list a:hover{ border-bottom-color: rgba(255,255,255,.6); }

.contact-form{ background:var(--card); border:1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding:18px; box-shadow: var(--shadow); }
.form-grid{ grid-template-columns: 1fr 1fr; }
.form-grid label{ display:flex; flex-direction:column; gap:6px; font-weight:500; }
input, textarea{
  width:100%; padding:12px 14px; border-radius:12px; border:1px solid rgba(255,255,255,.12);
  background:#0d1430; color:var(--text);
  outline:none;
}
input:focus, textarea:focus{ border-color: var(--ring); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }

.form-message{ margin-top:10px; color: var(--brand-2); }

/* BUTTONS */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 16px; border-radius:12px; border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(59,130,246,.18));
  color: var(--text); text-decoration:none; font-weight:700; letter-spacing:.2px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn.primary{ background: linear-gradient(135deg, rgba(59,130,246,.28), rgba(34,211,238,.28)); }
.btn.ghost{ background: transparent; }
.btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,.35); }

/* FOOTER */
.footer{ padding:22px 0; border-top:1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.25); }
.footer-inner{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
.socials{ display:flex; gap:10px; }
.icon-link{ color: var(--text); opacity:.85; }
.icon-link:hover{ opacity:1; }

/* RESPONSIVE */
@media (max-width: 950px){
  .hero-inner{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
}


/* logo & pictogram tweaks */
.brand .logo{ height:28px; width:auto; display:block; }
.card .icon-img, .feature .icon-img{ width:38px; height:38px; display:block; }
.phone-apps a{ display:inline-flex; align-items:center; gap:6px; }


/* header messaging buttons */
.nav-actions .btn.wa-btn,.nav-actions .btn.viber-btn{ padding:8px 12px; border-radius:10px; }
.nav-actions .btn span{ display:inline; }
@media (max-width: 700px){
  .nav-actions .btn span{ display:none; } /* icon-only on small screens */
}


/* photo-style pictograms */
.photo-badge{
  width:64px; height:64px; border-radius:50%;
  background-size:cover; background-position:center;
  box-shadow: 0 8px 18px rgba(0,0,0,.35), inset 0 0 0 3px rgba(255,255,255,.12);
  margin-bottom:12px;
}
.photo-badge.small{ width:46px; height:46px; margin-right:6px; }
.feature .photo-badge.small{ flex: 0 0 auto; }


/* Floating WhatsApp CTA */
#wa-fab{
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 54px; height: 54px; display:grid; place-items:center;
  border-radius: 50%; text-decoration: none;
  background: #25D366; color: white; box-shadow: 0 14px 26px rgba(0,0,0,.35);
}
#wa-fab i{ font-size: 26px; }
@media (min-width: 800px){
  #wa-fab{ display: none; } /* show only on mobile/tablet */
}

/* Photo badge subtle ring */
.photo-badge{ outline: 3px solid rgba(255,255,255,.07); }


/* breadcrumbs */
.breadcrumbs{
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 8px 0;
}
.breadcrumbs a{ color: var(--text); opacity:.85; text-decoration:none; }
.breadcrumbs .current{ color: var(--muted); margin-left:8px; }
.breadcrumbs span{ margin: 0 8px; color: var(--muted); }

/* active nav */
.nav-actions .nav-link.active{
  border-bottom: 2px solid var(--brand-2);
  padding-bottom: 6px;
}

/* picture images */
picture img{ width:100%; height:auto; border-radius: 12px; }


/* Tabs on services */
.tabs{ display:flex; gap:10px; flex-wrap:wrap; margin: 10px 0 16px; }
.tabs .tab{
  background: var(--card);
  border:1px solid rgba(255,255,255,.08);
  color: var(--text);
  padding:8px 12px; border-radius: 12px; cursor:pointer;
  display:inline-flex; align-items:center; gap:8px;
}
.tabs .tab.active{ border-color: var(--brand-2); box-shadow: 0 0 0 2px rgba(34,211,238,.15) inset; }


/* equal page height */
html, body{ min-height:100%; }
body{ display:flex; flex-direction:column; }
main{ flex:1 0 auto; display:block; }
.footer{ flex-shrink:0; }

/* equal-height cards in grid */
.grid.cards-3{ align-items:stretch; }
.grid.cards-3 > .card{ height:100%; display:flex; flex-direction:column; }
.grid.cards-3 > .card .muted, .grid.cards-3 > .card .list { margin-top: auto; }

/* section title with logo */
.section-title .title-logo{
  height:22px; width:auto; opacity:.9;
  vertical-align: -4px; margin-left: 8px;
}


/* partner logo next to main brand */
.brand .partner-logo{ height:22px; width:auto; margin-left:10px; opacity:.9; }
@media (max-width: 520px){ .brand .partner-logo{ display:none; } }


/* Ensure image inside photo-badge fills the circle */
.photo-badge { position: relative; overflow: hidden; }
.photo-badge img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }


/* ===== MH-proMET v21 overrides (logo cleanup) ===== */
.brand .logo,
img[alt*="logo" i],
img.site-logo,
.header .logo img,
.footer .logo img {
  border-radius: 0 !important;
  background: #f5f5f5 !important;
  padding: 8px !important;
  box-shadow: 0 0 6px rgba(0,0,0,0.06);
  object-fit: contain !important;
}

/* Remove text label next to logo */
.brand span, .brand-text, .brand-name {
  display: none !important;
}



/* ===== v22 overrides: remove all existing logos globally ===== */
.brand img,
.brand .logo,
img.site-logo,
.header .logo img,
.header img.logo,
.footer .logo img,
.footer img.logo,
img[alt*="logo" i],
.brand .partner-logo,
.brand-name, .brand-text, .site-title {
  display: none !important;
}

/* ===== v22 overrides: breadcrumb logo styling ===== */
.breadcrumb-logo-wrapper{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#f5f5f5;
  padding:10px 12px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.06);
  vertical-align: middle;
}
.breadcrumb-logo-wrapper img{
  display:block;
  height: 90px; /* ~3x tipičnog header loga (oko 28-32px) */
  width:auto;
  object-fit: contain;
}


/* ===== v23 overrides: breadcrumb logo only (top-left) ===== */
.breadcrumb-logo{ display:block; }
.breadcrumb-logo .breadcrumb-logo-wrapper{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#f5f5f5;
  padding:12px 14px;
  border-radius:10px;
  box-shadow:0 0 6px rgba(0,0,0,0.06);
}
.breadcrumb-logo .breadcrumb-logo-wrapper img{
  width:300px;
  height:auto;
  display:block;
  object-fit:contain;
}
/* Hide any residual breadcrumb text */
.breadcrumb, .breadcrumbs, nav[aria-label="breadcrumb"]{
  display:none !important;
}



/* ===== v24 overrides: visible large logo (assets/logo5.svg) ===== */
.logo-service-wrapper{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#f5f5f5;
  padding:14px 16px;
  border-radius:10px;
  box-shadow:0 0 6px rgba(0,0,0,0.06);
}
.logo-service-wrapper img{
  height:270px;
  width:auto;
  object-fit:contain;
  display:block;
}
/* Hide breadcrumbs text globally */
.breadcrumb, .breadcrumbs, nav[aria-label="breadcrumb"]{
  display:none !important;
}



/* ===== v26 override: hide all logos globally ===== */
.logo, .brand img, img.site-logo, .footer img.logo, .header img.logo,
img[alt*="logo" i], .brand .partner-logo, .brand-name, .brand-text, .site-title {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}



/* ===== v27 override: hide all white icons globally ===== */
.card .card-icon,
.feature i,
i[class*="icon"],
svg,
img[src*="icon"],
img[src*="ikon"],
img[src*="piktogram"],
img[src*="symbol"],
img[src*="white"],
img[src*="icon_"],
img[src*="icon-"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}



/* ===== Fixed top-left page logo ===== */
.page-logo-fixed {
  position: fixed;
  top: 20px;
  left: 20px;
  height: 70px;
  z-index: 100;
  object-fit: contain;
  pointer-events: none;
}


/* ===== Fixed, always-visible page logo (contact) ===== */
.page-top-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  height: 76px;
  z-index: 200;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: contain;
  pointer-events: none;
}



/* ===== Force-visibility for contact page top-left logo (placed last) ===== */
img.page-top-logo, svg.page-top-logo {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed;
  top: 20px;
  left: 20px;
  height: 80px;
  z-index: 9999;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.4));
}



/* ===== Fixed logo with white background plate ===== */
img.page-top-logo, svg.page-top-logo {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed;
  top: 20px;
  left: 20px;
  height: 80px;
  z-index: 9999;
  object-fit: contain;
  pointer-events: none;
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}


/* Language flags */
.flag {
  
  border-radius: 3px;
  
  display: inline-block;
  

  height: 18px;
  vertical-align: middle;
  margin-right: 6px;; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; -ms-interpolation-mode: nearest-neighbor; }
.lang-switch {
  min-width: 180px;
}

/* removed flag button bar */
/* .lang-flags removed */ .lang-flags{ display:inline-flex; gap:10px; align-items:center; margin-left:10px; }
.lang-flag{ background: transparent; border: 0; cursor: pointer; padding: 2px 4px; display: inline-flex; align-items: center; }
.lang-flag .flag{ height:20px; width:auto;  border-radius:3px;  display:inline-block;  margin-right:6px;; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; -ms-interpolation-mode: nearest-neighbor; }
@media(max-width:600px){ /* .lang-flags removed */ .lang-flags{ gap:6px; } }

/* Inline flags in language nav */
.flag{
  height:20px;
  width:auto;
  
  border-radius:3px;
  
  display:inline-block;
  
  margin-right:6px;
  vertical-align:middle;; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; -ms-interpolation-mode: nearest-neighbor; }

.visually-hidden{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* Language dropdown */
.lang-dropdown{ display:inline-block; position:relative; margin-left:8px; }
.lang-current{ display:inline-flex; align-items:center; gap:6px; background:transparent; border:1px solid rgba(0,0,0,0.15); padding:4px 8px; border-radius:6px; cursor:pointer; }
.lang-current .flag{ height:20px;  border-radius:3px;; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; -ms-interpolation-mode: nearest-neighbor; }
.lang-menu{ position:absolute; right:0; top:100%; margin-top:6px; list-style:none; background:#fff; border:1px solid rgba(0,0,0,0.12); border-radius:8px; padding:6px; box-shadow:0 8px 16px rgba(0,0,0,0.15); min-width:130px; z-index:50; }
.lang-menu li{ display:flex; align-items:center; gap:6px; padding:6px 8px; border-radius:6px; cursor:pointer; white-space:nowrap; }
.lang-menu li:hover{ background:#f3f4f6; }
@media (max-width:600px){
  .lang-current{ padding:4px 6px; }
  .lang-menu{ min-width:110px; }
}

/* Strong contrast for language labels */
.lang-current span, .lang-menu span { 
  font-weight: 800; 
  color: #000; 
}


/* Scoped: remove underline from body links on About cards, keep headings unchanged */
[data-page="about"] .grid a:not(h1 a):not(h2 a):not(h3 a):not(h4 a):not(h5 a):not(h6 a){
  text-decoration: none;
  color: inherit;
}



/* Hero card behind main hero text on index */


.hero-card {
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  position: relative;
  z-index: 2;
  padding: 24px 40px; /* added padding for nicer look */
}



/* Right-align section titles to match index */
[data-page="services"] .section-title,
[data-page="about"] .section-title,
[data-page="projects"] .section-title{
  text-align: right;
}

/* Ensure About intro paragraph is visible (white text like title) */
[data-page="about"] .about-intro{
  color: var(--text);
}


/* Hide brand text on Contact page only */
[data-page="contact"] .brand { display: none !important; }

/* Make language switch text (HR/EN/DE) white in header */
header .lang-switch a {
  color: white !important;
}



/* Language text in header - light gray with white hover */
header .lang-current span,
header .lang-menu span {
  color: #ccc !important;
  transition: color 0.3s ease;
}
header .lang-current span:hover,
header .lang-menu span:hover {
  color: #fff !important;
}

