/* ==========================================================================
   Zelen in partnerji d.o.o. – zelen-partnerji.eu
   Mere so v rem; osnova (1rem = 16px) velja za zaslon širine 1080px in se na
   večjih zaslonih sorazmerno poveča (do 20px).
   ========================================================================== */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/montserrat-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/montserrat-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green: #85C226;
  --green-dark: #76ad1f;
  --green-text: #4F7A0F;
  --green-light: #C8E39D;
  /* modra iz celostne podobe (#007DC2), za odtenek temnejša zaradi berljivosti (WCAG AA) */
  --blue: #0077B8;
  --blue-dark: #006aa5;
  --text: #1A1A1A;
  --tint: #F3F9E9;
  --line: #dfe9c9;
  --white: #fff;
  --muted: #6b6b6b;

  --gutter: 3.375rem;
  --content: 60.75rem;
  --radius: .4rem;
  --radius-lg: 1rem;
  --shadow: 0 .25rem 1.25rem rgba(0, 125, 194, .12), 0 .05rem .2rem rgba(0, 125, 194, .08);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --header-h: 5.4375rem;
  --header-h-small: 3.75rem;
}

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

/* Prostor za drsnik je vedno rezerviran, da se vsebina na kratkih straneh (Kontakt) ne zamakne. */
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-y: scroll; }
@media (min-width: 1080px) { html { font-size: clamp(16px, 1.4815vw, 20px); } }

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, p, ul, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
main { overflow-x: clip; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

.container { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; }

.icon { width: 1.25em; height: 1.25em; display: block; }

.skip-link { position: absolute; left: -999rem; top: 0; z-index: 200; background: var(--white); padding: .6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { left: .5rem; top: .5rem; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--radius); }
.contact :focus-visible { outline-color: var(--white); }

/* --------------------------------------------------------------------------
   Gumbi
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.3rem;
  border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; color: var(--text);
  border: 2px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn-solid { background: var(--green); border-color: var(--green); box-shadow: 0 .15rem .5rem rgba(0, 0, 0, .12); }
.btn-solid:hover, .btn-solid:active { background: var(--green-light); border-color: var(--green-light); }
.btn-outline { background: var(--white); border-color: var(--green); }
.btn-outline:hover, .btn-outline:active { background: var(--green-light); }
.contact .btn-outline { border-color: var(--green-light); }
.btn-small { padding: .5rem .8rem; font-size: .78rem; }

/* --------------------------------------------------------------------------
   Glava
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--white);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 .1rem .8rem rgba(0, 0, 0, .1); }
.header-spacer { height: var(--header-h); }

.header-row {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.is-scrolled .header-row { height: var(--header-h-small); }

.logo { flex: none; display: block; }
.logo img { height: 3.95rem; width: auto; transition: height .3s var(--ease); }
.is-scrolled .logo img { height: 2.6rem; }

.main-nav { margin-left: auto; }
.menu { display: flex; align-items: center; gap: .9rem; }
.menu > li { position: relative; }
.menu-pair { display: flex; align-items: center; border-radius: .5rem; transition: background-color .25s var(--ease); }
.menu-link {
  display: block; padding: .55rem .65rem;
  font-size: 1.0625rem; line-height: 1.2; color: var(--text); text-decoration: none; white-space: nowrap;
  border-radius: .5rem;
  transition: background-color .25s var(--ease), color .25s var(--ease), font-size .3s var(--ease), padding .3s var(--ease);
}
.menu-link.is-current { font-weight: 600; }
.menu-cta { color: var(--blue); font-weight: 600; }
.menu-link:hover, .menu-link:active,
.has-sub:hover .menu-pair, .has-sub.is-open .menu-pair, .has-sub:focus-within .menu-pair { background: var(--green-light); }
.has-sub .menu-link:hover { background: none; }
.menu-cta:hover, .menu-cta:active { color: var(--blue-dark); }

.sub-toggle { display: none; min-width: 24px; min-height: 24px; border: 0; background: none; padding: .3rem .5rem .3rem 0; border-radius: .5rem; }
.sub-toggle .icon { transition: transform .25s var(--ease); width: 1.1em; height: 1.1em; stroke-width: 2.6; }
.has-sub.is-open .sub-toggle .icon { transform: rotate(180deg); }

.sub {
  position: absolute; left: 0; top: 100%; z-index: 10;
  min-width: 17rem; margin-top: .6rem; padding: .5rem;
  background: var(--white); border-radius: .5rem;
  box-shadow: 0 .4rem 1.6rem rgba(0, 0, 0, .16);
  opacity: 0; visibility: hidden; transform: translateY(-.4rem);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.sub::before { content: ''; position: absolute; left: 0; right: 0; top: -.7rem; height: .7rem; }
.sub a {
  display: block; padding: .7rem 1rem; border-radius: var(--radius);
  font-size: .9375rem; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.sub a:hover, .sub a:active { background: var(--tint); color: var(--blue); }
.has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 901px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
}
.sub-all { display: none; border-bottom: 1px solid var(--line); margin-bottom: .25rem; padding-bottom: .25rem; }
.sub-all a { font-weight: 600; color: var(--blue); }
@media (hover: none) { .sub-toggle, .sub-all { display: block; } }

/* Iskalnik */
.search { position: relative; flex: none; display: flex; align-items: center; margin-left: 1.6rem; }
.search-toggle {
  border: 0; background: none; padding: .5rem; border-radius: .5rem; font-size: 1rem;
  transition: background-color .25s var(--ease);
}
.search-toggle .icon { stroke-width: 2.2; }
.search-toggle:hover, .search-toggle:active { background: var(--green-light); }
.search-field {
  display: flex; align-items: center; width: 0; overflow: hidden;
  border-bottom: 2px solid transparent;
  transition: width .3s var(--ease), border-color .3s var(--ease), margin .3s var(--ease);
}
.search-field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  padding: .35rem .3rem; font-size: .9375rem; appearance: none; -webkit-appearance: none;
}
.search-field input::-webkit-search-cancel-button { display: none; }
.search-clear { flex: none; border: 0; background: none; padding: .3rem; border-radius: var(--radius); color: var(--blue-dark); font-size: .8rem; transition: background-color .25s var(--ease); }
.search-clear .icon { stroke-width: 3; }
.search-clear:hover, .search-clear:active { background: var(--green-light); }
.search-open .search-field { width: 14.25rem; border-color: var(--green); margin-right: .4rem; }
.search-open .menu { gap: .35rem; }
.search-open .menu-link { font-size: .9375rem; padding-inline: .5rem; }

.search-results {
  position: absolute; right: 0; top: 100%; z-index: 20;
  width: min(22rem, calc(100vw - 2 * var(--gutter)));
  margin-top: .35rem; padding: .35rem;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 .4rem 1.6rem rgba(0, 0, 0, .18);
  max-height: min(60vh, 24rem); overflow-y: auto;
}
.search-results a {
  display: block; padding: .6rem .75rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 500; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.search-results a:last-child { border-bottom: 0; }
.search-results a small { display: block; font-size: .72rem; font-weight: 400; color: var(--muted); }
.search-results a:hover, .search-results a:active, .search-results a.is-active { background: var(--tint); color: var(--blue); }
.search-empty { padding: .6rem .75rem; font-size: .85rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Naslovna stran
   -------------------------------------------------------------------------- */
.hero { background: var(--blue); color: var(--white); text-align: center; padding: 3.9rem 0 11.4rem; }
.hero h1 { max-width: 46rem; margin-inline: auto; font-size: 2.5rem; font-weight: 600; line-height: 1.15; text-wrap: balance; }
.hero-lead { max-width: 42rem; margin: 1.5rem auto 1.6rem; font-size: .9375rem; line-height: 1.45; }

.hero-photos { margin-top: -8.75rem; }
.photo-grid { display: grid; grid-template-columns: 262fr 420fr 262fr; gap: .8rem; }
.photo-grid img {
  width: 100%; height: 17.5rem; object-fit: cover;
  border: .25rem solid var(--white); border-radius: 1rem; background: var(--white);
}

.section { padding: 5.3rem 0 0; }
.section-title { display: inline-block; font-size: 1.75rem; font-weight: 500; line-height: 1.1; border-bottom: 2px solid var(--green); }
.section-title a { color: inherit; text-decoration: none; display: block; border-radius: var(--radius); transition: color .25s var(--ease), background-color .25s var(--ease); }
.section-title a:hover, .section-title a:active { color: var(--blue); background: var(--tint); }

/* Kartice storitev */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: .95rem; margin-top: 1.9rem; }
.card {
  display: block; padding: 1.3rem 1.3rem 1.8rem;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; font-size: .8125rem; line-height: 1.4;
  outline: 2px solid transparent; outline-offset: -2px;
}
.card:hover, .card:active { outline-color: var(--green-light); box-shadow: 0 .5rem 1.6rem rgba(0, 125, 194, .2); }
.card-icon {
  display: grid; place-items: center; width: 2.625rem; height: 2.625rem;
  background: var(--blue); color: var(--white); border-radius: .5rem; font-size: .95rem;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.card:hover .card-icon, .card:active .card-icon { background: var(--green); color: var(--text); }
.card-title { margin: .75rem 0 .5rem; font-size: 1rem; font-weight: 600; line-height: 1.25; color: var(--blue); }

/* Drsnik referenc */
.refs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.refs-lead { margin-top: .9rem; font-size: 1rem; font-weight: 500; color: var(--blue); }
.carousel-arrows { display: flex; gap: .4rem; margin-top: .1rem; }
.arrow {
  display: grid; place-items: center; width: 2.0625rem; height: 2.0625rem;
  background: var(--white); border: 1px solid var(--text); border-radius: var(--radius); font-size: .8rem;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.arrow .icon { stroke-width: 2.4; }
.arrow:hover, .arrow:active { background: var(--green-light); border-color: var(--green); }

.carousel { --per: 6; --gap: .75rem; margin-top: 1.7rem; overflow: hidden; padding: .15rem 0; }
.carousel-track { display: flex; gap: var(--gap); will-change: transform; }
.carousel-item { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; }
.ref-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  height: 6.5rem; padding: .4rem .6rem;
  border: 1px solid var(--green-light); border-radius: var(--radius); background: var(--white);
  text-align: center; text-decoration: none; color: var(--text);
  font-size: .75rem; font-weight: 500; line-height: 1.2;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
a.ref-tile:hover, a.ref-tile:active { background: var(--tint); border-color: var(--green); }
.ref-tile-logo img { height: 2.1rem; width: auto; max-width: 100%; object-fit: contain; }
/* Nadomestek za manjkajoč logotip: začetnici imena v temnejšem odtenku zelene iz logotipa */
.logo-ph { font-size: 1.15rem; font-weight: 600; letter-spacing: .02em; color: var(--green-text); line-height: 1; }
.ref-tile-logo .logo-ph { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; background: var(--tint); border-radius: .4rem; font-size: .8rem; }
.refs-more { margin-top: 1.3rem; }
.refs-section { padding-bottom: 3rem; }

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */
.contact { background: var(--blue); color: var(--white); padding: 3.75rem 0 3.4rem; }
.contact a { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 21rem 28.875rem; justify-content: space-between; gap: 2rem; }
.contact-title { font-size: 1.75rem; font-weight: 600; line-height: 1.2; margin-bottom: 1.5rem; }
.contact-info { font-size: .875rem; line-height: 1.4; }
.contact-info > * + * { margin-top: 1rem; }
.contact-info .small { margin-top: .5rem; }
.contact-lines a, .contact .small a {
  border-radius: .25rem; padding: .05rem .15rem; margin: 0 -.15rem;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.contact-lines a:hover, .contact-lines a:active, .contact .small a:hover, .contact .small a:active { background: var(--white); color: var(--blue); }
.social-link {
  display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .5rem .3rem .3rem; margin-left: -.3rem;
  border-radius: var(--radius); font-weight: 600;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.social-link .icon { width: 1.5rem; height: 1.5rem; }
.social-link:hover, .social-link:active { background: var(--white); color: var(--blue); }
.small { font-size: .75rem; line-height: 1.45; }

.contact-form { display: grid; gap: .75rem; align-content: start; justify-items: start; }
.contact-form > * { width: 100%; }
.contact-form > .btn { width: auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.field label { display: block; margin-bottom: .3rem; font-size: .75rem; }
.field input, .field textarea {
  display: block; width: 100%; padding: .45rem .7rem;
  background: var(--white); color: var(--text);
  border: 2px solid var(--white); border-radius: .5rem; font-size: .875rem; line-height: 1.3;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 5.2rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 2px var(--green-light); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ffb4a8; box-shadow: 0 0 0 2px #ffb4a8; }
.hp { position: absolute !important; left: -999rem; width: 1px; height: 1px; overflow: hidden; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: .55rem; font-size: .75rem; line-height: 1.45; cursor: pointer; margin-top: .15rem; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check {
  width: .95rem; height: .95rem; margin-top: .1rem;
  background: var(--white); border-radius: .2rem; border: 2px solid var(--white);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  background-repeat: no-repeat; background-position: center; background-size: 80%;
}
.consent:hover .check { border-color: var(--green-light); }
.consent input:checked + .check {
  background-color: var(--green); border-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3 4.8 9 10 3.3' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.consent input:focus-visible + .check { box-shadow: 0 0 0 2px var(--blue), 0 0 0 4px var(--white); }
.consent.is-invalid .check { box-shadow: 0 0 0 2px #ffb4a8; }
.form-status { padding: .6rem .8rem; border-radius: var(--radius); font-size: .8125rem; font-weight: 500; background: var(--tint); color: var(--text); border-left: .3rem solid var(--green); }
.form-status.is-error { border-left-color: #d6452f; }

/* --------------------------------------------------------------------------
   Noga
   -------------------------------------------------------------------------- */
.site-footer { padding: 1rem 0 1.1rem; font-size: .75rem; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.footer-maker { color: var(--muted); }
.footer-maker img { display: inline-block; height: 1.1rem; width: auto; vertical-align: middle; }
.footer-menu { display: flex; flex-wrap: wrap; gap: .2rem .55rem; }
.footer-menu a, .footer-maker a { display: block; padding: .25rem .2rem; border-radius: .25rem; transition: background-color .25s var(--ease), color .25s var(--ease); }
.footer-maker a { display: inline-block; }
.footer-menu a:hover, .footer-menu a:active, .footer-maker a:hover { background: var(--green-light); color: var(--text); }

/* Gumb Na vrh */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  padding: .55rem .8rem; font-size: .78rem;
  box-shadow: 0 .2rem .8rem rgba(0, 0, 0, .18);
  opacity: 0; transform: translateY(.6rem); pointer-events: none;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top .icon { stroke-width: 2.4; width: 1em; height: 1em; }

/* Pasica za piškotke: majhna kartica v levem spodnjem kotu, na telefonu čez širino */
.cc {
  position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 95;
  width: min(25rem, calc(100vw - 2.5rem)); box-sizing: border-box;
  padding: 1rem 1.1rem; background: var(--white); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .16);
  font-size: .8125rem; line-height: 1.45;
}
.cc a { font-weight: 500; }
.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .8rem; }
.cc-link {
  margin-right: auto; padding: .45rem .3rem; border: 0; background: none; border-radius: var(--radius);
  color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px;
}
.cc-link:hover, .cc-link:active { background: var(--tint); }
.btn-cc { padding: .5rem .95rem; font-size: .8rem; background: var(--green); border-color: var(--green); }
.btn-cc:hover, .btn-cc:active { background: var(--green-light); border-color: var(--green-light); }
/* Zavrni: bel gumb z zeleno obrobo – enako velik in enako berljiv kot Sprejmi vse */
.btn-cc-secondary { background: var(--white); border-color: var(--green); }
.btn-cc-secondary:hover, .btn-cc-secondary:active { background: var(--green-light); border-color: var(--green); }
.cc-title { font-weight: 600; font-size: .9375rem; margin-bottom: .2rem; }
.cc-list li { border-bottom: 1px solid var(--line); }
.cc-row { position: relative; display: flex; align-items: center; gap: .8rem; padding: .6rem 0; cursor: pointer; }
.cc-row > span:first-child { flex: 1; }
.cc-row small { display: block; color: var(--muted); font-size: .75rem; }
.cc-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cc-switch { flex: none; position: relative; width: 2.4rem; height: 1.35rem; border-radius: 1rem; background: #b9c2ad; transition: background-color .2s var(--ease); }
.cc-switch::after {
  content: ''; position: absolute; top: .175rem; left: .175rem; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s var(--ease);
}
.cc-row input:checked + .cc-switch { background: var(--green-text); }
.cc-row input:checked + .cc-switch::after { transform: translateX(1.05rem); }
.cc-row input:disabled + .cc-switch { opacity: .55; }
.cc-row input:disabled ~ * , .cc-row:has(input:disabled) { cursor: default; }
.cc-row input:focus-visible + .cc-switch { outline: 2px solid var(--blue); outline-offset: 2px; }
.footer-cc {
  display: block; padding: .25rem .2rem; border: 0; background: none; border-radius: .25rem;
  color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.footer-cc:hover, .footer-cc:active { background: var(--green-light); color: var(--text); }
.link-button { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; }
.link-button:hover { background: var(--green-light); }
.cf-turnstile:empty { display: none; }

/* --------------------------------------------------------------------------
   Podstrani
   -------------------------------------------------------------------------- */
.page-title {
  margin-top: 1.5rem; padding: .85rem 1.3rem;
  background: var(--blue); color: var(--white); border-radius: var(--radius);
  font-size: 1.3125rem; font-weight: 600; line-height: 1.3;
}

.tint { background: var(--tint); padding-bottom: 4.2rem; }
.tint .page-title { margin-top: 0; }
.tint > .container { padding-top: 1.5rem; }
.tint .cards { margin-top: .95rem; }
.tint + .refs-section { padding-top: 4.8rem; }

/* Uvodno besedilo nad naslovom podstrani: poudarjen naslov, pod njim besedilo */
.intro { margin: 2.4rem 0 2.4rem; max-width: 50rem; }
/* zelena črta pod naslovom, kot pri naslovih razdelkov na naslovni strani */
.intro-title { display: inline-block; padding-bottom: .35rem; border-bottom: 3px solid var(--green); font-size: 2.25rem; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; color: var(--blue); text-wrap: balance; }
.intro-text { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.65; color: #2b2b2b; }
.intro-text p + p { margin-top: .75rem; }
.tint > .container > .page-title { margin-top: 0; }

/* Stran storitve */
.service-layout { display: grid; grid-template-columns: 42rem 15.375rem; justify-content: space-between; align-items: start; padding-bottom: 3.2rem; }
.panel { margin-top: .7rem; padding: 1.6rem 1.5rem 2rem; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.panel-title { margin-bottom: .7rem; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; color: var(--blue); }
.panel > p, .panel li { text-align: justify; -webkit-hyphens: manual; hyphens: manual; }
.panel > p { padding-right: 2rem; }
.panel > p + p { margin-top: .7rem; }
.bullets { margin-top: .6rem; }
.bullets li {
  position: relative; padding: .6rem 2rem .6rem 1.05rem;
  border-bottom: 1px solid var(--line); font-size: .84rem; line-height: 1.45;
}
.bullets li::before { content: ''; position: absolute; left: 0; top: 1.02rem; width: .44rem; height: .44rem; border-radius: 50%; background: var(--blue); }
.service-note { margin-top: 1.4rem; font-size: .8125rem; font-weight: 600; }

.side { margin-top: 1.5rem; position: sticky; top: calc(var(--header-h-small) + 1rem); }
.side-card { padding: 1.3rem 1.1rem 1.1rem; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.side-title { padding-bottom: .7rem; border-bottom: 2px solid var(--green); font-size: 1.125rem; font-weight: 600; }
.side-title a { display: block; color: inherit; text-decoration: none; border-radius: var(--radius); transition: color .25s var(--ease), background-color .25s var(--ease); }
.side-title a:hover, .side-title a:active { color: var(--blue); background: var(--tint); }
.side-card li { border-bottom: 1px solid var(--line); }
.side-card li a {
  display: block; padding: .55rem .3rem; margin: .1rem -.3rem; border-radius: var(--radius);
  font-size: .8125rem; line-height: 1.35; color: var(--text); text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.side-card li a:hover, .side-card li a:active { background: var(--tint); color: var(--blue); }
.side-card li a.is-current { color: var(--blue); font-weight: 600; }

/* Reference */
.refs-page { padding-bottom: 2.6rem; }
.ref-group { margin-top: 2.1rem; }
.ref-group-title { font-size: 1.125rem; font-weight: 600; color: var(--blue); line-height: 1.3; }
.ref-list { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 1.5rem; margin-top: .6rem; }
.ref-item { border-top: 1px solid var(--line); }
.ref-row {
  display: flex; align-items: center; gap: .75rem; min-height: 3.75rem; margin: .55rem 0; padding-right: .5rem;
  border-radius: .6rem; color: var(--text); text-decoration: none; font-size: .78rem; line-height: 1.3;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.ref-row:hover, .ref-row:active { background: var(--tint); }
a.ref-row:hover, a.ref-row:active { color: var(--blue); }
.ref-logo { flex: none; display: flex; align-items: center; justify-content: center; width: 3.75rem; height: 3.75rem; border-radius: .6rem; overflow: hidden; }
.ref-logo:has(.logo-ph) { background: var(--tint); }
.ref-logo img { width: 100%; height: 100%; object-fit: contain; }
.ref-item:target .ref-row { background: var(--green-light); }
.ref-toggle { margin-top: .5rem; }
.ref-toggle .icon { width: 1em; height: 1em; stroke-width: 2.6; transition: transform .25s var(--ease); }
.ref-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* Kontakt – samostojna stran */
/* Pravna besedila */
.legal { padding-bottom: 4rem; }
.legal > * { max-width: 43.5rem; }
.legal h2 { margin: 1.6rem 0 .5rem; font-size: 1rem; font-weight: 600; color: var(--blue); line-height: 1.3; }
.legal h3 { margin: 1rem 0 .3rem; font-size: .8125rem; font-weight: 600; }
.legal p { margin-top: .6rem; font-size: .84rem; }
.legal a:not(.btn) { border-radius: .25rem; transition: background-color .25s var(--ease); }
.legal a:not(.btn):hover { background: var(--green-light); }
.legal .btn { margin-top: .6rem; }
.legal-lead { margin-top: 1rem !important; }
.legal-table { width: 100%; max-width: 43.5rem; margin-top: .8rem; border-collapse: collapse; font-size: .8rem; line-height: 1.45; }
.legal-table th, .legal-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { background: var(--tint); font-weight: 600; }
@media (max-width: 640px) {
  .legal-table thead { display: none; }
  .legal-table tr { display: block; padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .legal-table td { display: block; padding: .15rem 0; border: 0; }
  .legal-table td::before { content: attr(data-label) ': '; font-weight: 600; }
}

/* --------------------------------------------------------------------------
   Pridrsanje vsebine ob drsenju
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transition: opacity .55s var(--ease), transform .55s var(--ease), box-shadow .25s var(--ease), outline-color .25s var(--ease); }
.js [data-reveal="left"] { transform: translateX(-2.75rem); }
.js [data-reveal="right"] { transform: translateX(2.75rem); }
/* Alineje v kartici: krajši premik, da pika med drsenjem ne pogleda čez rob kartice. */
.js .panel li[data-reveal="left"]:not(.is-in) { transform: translateX(-1rem); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Manjši prenosnik
   -------------------------------------------------------------------------- */
@media (max-width: 1079px) {
  :root { --gutter: 2rem; --header-h: 4.75rem; --header-h-small: 3.5rem; }
  .logo img { height: 3.2rem; }
  .is-scrolled .logo img { height: 2.4rem; }
  .menu { gap: .3rem; }
  .menu-link { font-size: .95rem; }
  .search { margin-left: .6rem; }
  .search-open .search-field { width: 11rem; }
  .search-open .menu-link { font-size: .84rem; padding-inline: .35rem; }
  .contact-grid { grid-template-columns: minmax(0, 21rem) minmax(0, 28.875rem); }
  .service-layout { grid-template-columns: minmax(0, 1fr) 15rem; gap: 2rem; }
  .carousel { --per: 5; }
}

/* --------------------------------------------------------------------------
   Tablica in telefon: meni v ločenem pasu pod logotipom
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --gutter: 1.25rem; --logo-row: 3.9rem; --nav-row: 3.3rem; --header-h: calc(var(--logo-row) + var(--nav-row)); }
  .header-row, .is-scrolled .header-row { height: auto; flex-wrap: wrap; gap: 0; }
  .logo { display: flex; align-items: center; height: var(--logo-row); transition: height .3s var(--ease); }
  .logo img { height: 2.7rem; }
  .is-scrolled .logo { height: 3rem; }
  .is-scrolled .logo img { height: 2rem; }
  .search { margin-left: auto; }
  .search-toggle { font-size: 1.2rem; margin-right: -.5rem; }
  .search-open .search-field { width: min(11.5rem, calc(100vw - 2 * var(--gutter) - 9.5rem)); }
  .search-open .logo img { height: 2rem; }

  .main-nav {
    order: 3; flex: 0 0 calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter));
    padding: 0 calc(var(--gutter) - .55rem);
    background: var(--tint); border-top: 2px solid var(--green-light);
  }
  .menu { height: var(--nav-row); gap: .25rem; justify-content: flex-start; }
  .menu-link, .search-open .menu-link { font-size: .8125rem; padding: .5rem .55rem; }
  .sub-toggle { display: block; padding: .45rem .5rem .45rem .1rem; }
  .sub-all { display: block; }
  .sub { margin-top: .35rem; min-width: 0; width: max-content; max-width: calc(100vw - 2 * var(--gutter)); }
  .sub a { white-space: normal; font-size: .875rem; }
  .menu > .has-sub { position: static; }
  .main-nav { position: relative; }
  .sub { left: var(--gutter); }

  .hero { padding: 2.6rem 0 9rem; }
  .hero h1 { font-size: 1.875rem; }
  .hero-lead { font-size: 1.125rem; margin: 1rem auto 1.6rem; }
  .hero .btn { font-size: 1.0625rem; padding: 1.05rem 1.6rem; border-radius: .5rem; }
  .hero-photos { margin-top: -7rem; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 1rem 1.6rem; }
  .photo-grid img { height: auto; aspect-ratio: 155 / 100; border-width: 0; }
  .photo-grid .photo-main { grid-column: 1 / -1; order: -1; aspect-ratio: 338 / 184; border-width: .4rem; border-radius: 1.4rem; margin-inline: -.4rem; width: calc(100% + .8rem); max-width: none; }

  .section { padding-top: 3.2rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .carousel { --per: 4; }
  .refs-head { flex-direction: column; gap: .8rem; }
  .tint + .refs-section { padding-top: 3rem; }

  .contact { padding: 2.6rem 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .service-layout { grid-template-columns: 1fr; gap: 0; }
  .intro { margin: 1.6rem 0 1.8rem; }
  .intro-title { font-size: 1.65rem; }
  .intro-text { font-size: 1rem; }
  .side { position: static; margin-top: 1.6rem; }
  .ref-list { grid-template-columns: 1fr 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-menu { margin-left: -.2rem; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card { padding-bottom: 1.4rem; }
  .carousel { --per: 2.15; }
  .form-row { grid-template-columns: 1fr; }
  .ref-list { grid-template-columns: 1fr; }
  .panel { padding: 1.3rem 1.1rem 1.5rem; }
  .bullets li, .panel > p { padding-right: .5rem; }
  .page-title { font-size: 1.125rem; padding: .7rem 1rem; }
  .to-top { right: .9rem; }
  .to-top span { display: none; }
  .cc { left: .6rem; right: .6rem; bottom: .6rem; width: auto; }
}

/* Zelo ozki zasloni: postavke menija čez vso širino */
@media (max-width: 420px) {
  .menu { justify-content: space-between; gap: 0; }
  .menu-link, .search-open .menu-link { padding-inline: .3rem; }
  .sub-toggle { padding: .45rem .3rem .45rem 0; }
  .main-nav { padding: 0 calc(var(--gutter) - .3rem); }
}
@media (max-width: 350px) {
  :root { --gutter: .9rem; }
  .menu-link, .search-open .menu-link { font-size: .7rem; padding-inline: .2rem; }
  .sub-toggle { padding-right: .15rem; }
}
