/* ===========================================================
   DF Tech — dftech.si
   Design system: precizno, industrijsko, dvojezično (SLO/EN)
   =========================================================== */

:root {
  --dark: #17181A;
  --text: #2A2C2E;
  --grey: #5B6167;
  --grey-light: #8A9096;
  --bg: #FFFFFF;
  --bg-alt: #F4F6F7;
  --border: #E1E5E8;
  --accent: #2C3E50;
  --accent-light: #3E5871;
  --accent-dark: #1B2733;
  --accent-tint: #EBEEF1;
  --radius: 4px;
  --shadow: 0 2px 14px rgba(23, 24, 26, 0.06);
  --shadow-hover: 0 8px 28px rgba(23, 24, 26, 0.10);
  --maxw: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); }
.btn-outline { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: var(--accent-dark); border-color:#fff; }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 64px; width: auto; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: .02em; color: var(--dark); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 14px; font-size: 15px; font-weight: 500; color: var(--grey);
  border-radius: var(--radius); transition: all .15s ease;
}
.main-nav a:hover { color: var(--accent); background: var(--accent-tint); }
.main-nav a.active { color: var(--accent); font-weight: 700; }

.header-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 2px; font-size: 13px; font-weight: 700; }
.lang-switch a { padding: 6px 9px; border-radius: var(--radius); color: var(--grey-light); }
.lang-switch a.current { color: var(--accent); background: var(--accent-tint); }
.lang-switch a:hover { color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--dark); margin: 5px 0; transition: all .2s; }

/* -------------------- Hero -------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--accent-dark);
  color: #fff;
  padding: 230px 0 200px;
}
.hero .pattern {
  position: absolute; inset: 0; opacity: .18; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #A9BBC9; margin-bottom: 18px;
}
.hero h1 { font-size: 44px; max-width: 780px; color: #fff; }
.hero .lead { font-size: 19px; color: #C7D2DA; max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-sm { padding: 56px 0 64px; }
.hero-sm h1 { font-size: 34px; margin-bottom: 12px; }
.hero-sm .lead { font-size: 17px; margin-bottom: 0; }

/* -------------------- Sections -------------------- */
section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-tag {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--grey); font-size: 17px; margin: 0; }

/* -------------------- Cards grid -------------------- */
.grid { display: grid; gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 30px 26px; box-shadow: var(--shadow); transition: all .2s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card .icon { width: 44px; height: 44px; margin-bottom: 18px; color: var(--accent); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--grey); font-size: 15px; margin-bottom: 14px; }
.card a.more { font-size: 14px; font-weight: 700; color: var(--accent); }
.card a.more:hover { text-decoration: underline; }

/* -------------------- Stats strip -------------------- */
.stats { background: var(--accent); color: #fff; padding: 52px 0; }
.stats .grid-3 { text-align: center; }
.stats .stat-num { font-size: 36px; font-weight: 800; margin-bottom: 6px; }
.stats .stat-label { font-size: 14px; color: #C7D2DA; letter-spacing: .02em; }

/* -------------------- Split (image/text) -------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .visual { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--accent-tint); }
.split h2 { font-size: 28px; }
.split .lead-list li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--text); }
.split .lead-list li svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }

/* -------------------- Achievements -------------------- */
.timeline { border-left: 3px solid var(--accent); padding-left: 28px; margin-left: 6px; }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -35px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--accent); border: 3px solid var(--accent-tint);
}
.timeline-item .t-year { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.timeline-item h4 { font-size: 17px; margin: 4px 0 6px; }
.timeline-item p { color: var(--grey); font-size: 15px; margin: 0; }

/* -------------------- Table (specs) -------------------- */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.spec-table tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 16px 22px; font-size: 15px; }
.spec-table td:first-child { color: var(--grey); width: 46%; }
.spec-table td:last-child { font-weight: 700; color: var(--dark); }
.spec-table tr:nth-child(odd) { background: var(--bg-alt); }

/* -------------------- Service detail blocks -------------------- */
.service-block { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--border); }
.service-block:last-child { border-bottom: none; }
.service-block .icon-wrap {
  width: 56px; height: 56px; border-radius: 8px; background: var(--accent-tint);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.service-block h3 { font-size: 21px; margin-bottom: 8px; }
.service-block p { color: var(--grey); margin-bottom: 0; }

/* -------------------- CTA band -------------------- */
.cta-band { background: var(--accent-dark); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { color: #fff; font-size: 30px; margin-bottom: 14px; }
.cta-band p { color: #C7D2DA; font-size: 17px; margin-bottom: 30px; }

/* -------------------- Coming soon -------------------- */
.coming-soon { text-align: center; padding: 100px 0; }
.coming-soon .badge {
  display: inline-block; padding: 8px 18px; border-radius: 30px; background: var(--accent-tint);
  color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 22px;
}
.coming-soon h1 { font-size: 32px; margin-bottom: 14px; }
.coming-soon p { color: var(--grey); font-size: 17px; max-width: 520px; margin: 0 auto 30px; }

/* -------------------- Contact -------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.contact-info-list { margin-bottom: 32px; }
.contact-info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list .ci-icon { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-info-list .ci-label { font-size: 13px; color: var(--grey-light); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.contact-info-list .ci-value { font-size: 16px; color: var(--dark); font-weight: 600; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 36px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; color: var(--dark); }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: 15px; color: var(--text); background: var(--bg-alt);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.form-note { font-size: 12.5px; color: var(--grey-light); margin-top: 16px; }
.form-status { font-size: 14px; margin-top: 14px; display: none; }

.map-embed { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); margin-top: 24px; }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--dark); color: #B7BCC1; padding: 64px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 54px; filter: brightness(0) invert(1); }
.footer-brand span { color: #fff; font-weight: 700; font-size: 16px; }
.site-footer h5 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 18px; }
.site-footer ul li { margin-bottom: 11px; }
.site-footer a:hover { color: #fff; }
.footer-legal { padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #7B818A; }
.footer-legal strong { color: #9BA1A8; }

/* -------------------- Responsive -------------------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
}
.lang-switch-mobile { display: none; }
@media (max-width: 720px) {
  .main-nav, .lang-switch-desktop { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .main-nav {
    display: flex; position: absolute; top: 100px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 12px 24px 24px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  body.nav-open .lang-switch-mobile {
    display: flex; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
  }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 48px 1fr; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 28px; }
  section { padding: 56px 0; }
}

/* -------------------- Photo hero -------------------- */
.hero-photo {
  background-size: cover;
  background-position: center 70%;
  position: relative;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,39,51,.86) 0%, rgba(27,39,51,.80) 55%, rgba(27,39,51,.92) 100%);
  z-index: 1;
}
.hero-photo .pattern { position: absolute; z-index: 2; }
.hero-photo .container { position: relative; z-index: 2; }

/* -------------------- Photo visual (replaces icon box) -------------------- */
.visual.photo { padding: 0 !important; overflow: hidden; }
.visual.photo img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 320px; }

/* -------------------- Photo gallery -------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid figure { margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: #fff; }
.gallery-grid figure img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption { padding: 10px 12px; font-size: 13px; color: var(--grey); border-top: 1px solid var(--border); }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .visual.photo img { min-height: 200px; }
}
