/* =========================================================
   Design& Andreja Martinc — glavna CSS datoteka
   ========================================================= */

/* ---------- Fonts (self-hosted Manrope, latin + latin-ext za šumnike) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-200.woff2") format("woff2");
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latinext-200.woff2") format("woff2");
  font-weight: 200; font-style: normal; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-300.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latinext-300.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latinext-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latinext-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latinext-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latinext-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latinext-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF;
}

/* ---------- Design tokens ---------- */
:root{
  --green-primary: #BCC8C1;
  --green-light: #D0D9D4;
  --offwhite: #FAFAFA;
  --dark: #1D231C;
  --dark-overlay: rgba(29,35,28,0.8);
  --black: #575757;
  --white: #FFFFFF;
  --grey-text: #55605A;

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1280px;
  --gutter: 32px;

  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; }
h1,h2,h3,h4,p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }

/* visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--dark);
  outline-offset: 3px;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Reveal-on-scroll (fires once) ---------- */
.reveal{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ---------- Header / Navigation ---------- */
.site-header{
  background: var(--offwhite);
  padding: 28px 0;
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img{ height: 56px; width: auto; }
.logo{ display: inline-flex; }

.nav-desktop ul{
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-desktop a{
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
  color: var(--black);
}
.nav-desktop a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 300ms var(--ease);
}
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after{
  right: 0;
}

.nav-toggle{
  display: none;
  background: none;
  border: none;
  width: 32px; height: 24px;
  position: relative;
  z-index: 60;
}
.nav-toggle span{
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--black);
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}
.nav-toggle span:nth-child(1){ top: 0; }
.nav-toggle span:nth-child(2){ top: 11px; }
.nav-toggle span:nth-child(3){ top: 22px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(11px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-11px) rotate(-45deg); }

.nav-mobile{
  display: none;
  position: fixed;
  inset: 0;
  background: var(--offwhite);
  z-index: 50;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav-mobile.is-open{ display: flex; }
.nav-mobile a{
  font-size: 28px;
  font-weight: 600;
}

@media (max-width: 780px){
  .nav-desktop{ display: none; }
  .nav-toggle{ display: block; }
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid var(--black);
  transition: background 250ms var(--ease), color 250ms var(--ease);
}
.btn:hover{
  background: transparent;
  color: var(--black);
}
.btn-light{
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-light:hover{
  background: var(--white);
  color: var(--dark);
}

/* ---------- Eyebrow / section labels ---------- */
.eyebrow{
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 10px;
  display: block;
}

/* ---------- Dark text panel (uporabljen skozi Home stran) ---------- */
.panel-dark{
  background: var(--dark-overlay);
  color: var(--white);
  padding: 44px 40px;
}
.panel-dark .eyebrow{
  color: rgba(255,255,255,0.85);
  opacity: 1;
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 4px;
}
.panel-dark h3{
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 18px;
}
.panel-dark p{
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}
.panel-dark p:last-child{ margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--green-primary);
  padding: 64px 0 28px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px;
  align-items: start;
}
.footer-nav ul{ list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a{ font-size: 16px; font-weight: 500; color: #ffffff; }
.footer-nav a:hover{ text-decoration: underline; }
.footer-info p{ font-size: 16px; margin-bottom: 4px; }
.footer-info .company{ font-weight: 600; margin-bottom: 10px; }
.footer-logo{ display: inline-block; transition: opacity 250ms var(--ease); }
.footer-logo:hover{ opacity: 0.7; }
.footer-logo img{ height: 36px; opacity: 0.9; }
.footer-bottom{
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(29,35,28,0.15);
  font-size: 13px;
  color: rgba(29,35,28,0.7);
}
@media (max-width: 780px){
  .footer-grid{ grid-template-columns: 1fr; gap: 28px; }
  .footer-logo{ display: none; }
}

/* ---------- Utility layout ---------- */
.section{ padding: 88px 0; }
.section-tight{ padding: 56px 0; }
@media (max-width: 780px){
  .section{ padding: 56px 0; }
}

.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}
@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
}

.img-frame{ overflow: hidden; background: #eee; }
.img-frame img{ width: 100%; height: 100%; object-fit: cover; }

/* ---------- Crossfade (samodejna menjava dveh slik) ---------- */
.crossfade{ position: relative; }
.crossfade > picture{
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  transition: opacity 1600ms ease-in-out;
  display: block;
}
.crossfade > picture.is-active{ opacity: 1; }
.crossfade > picture img{ width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce){
  .crossfade > picture{ transition: none; }
}
.cf-caption{ position: relative; transition: opacity 400ms ease; }
.cf-caption.is-fading{ opacity: 0; }
.cf-caption .cf-text{ display: none; }
.cf-caption .cf-text.is-active{ display: block; }
.cf-caption .cf-text p{ font-size: 14px; font-weight: 400; color: var(--grey-text); margin: 0; }
.cf-caption .cf-text .cf-title{ color: var(--black); margin-bottom: 4px; }
.cf-caption .cf-text .cf-client{ color: var(--grey-text); }
.hero-caption{ order: 3; margin-top: 16px; }
@media (max-width: 780px){
  .hero-caption{ order: 2; margin-top: 28px; margin-bottom: 4px; }
}
.support-media .img-frame{ margin-bottom: 18px; }
.media-caption{ margin-top: 18px; }
.media-caption .cf-title{ font-size: 14px; font-weight: 400; color: var(--black); margin: 0 0 4px; }
.media-caption .cf-client{ font-size: 14px; font-weight: 400; color: var(--grey-text); margin: 0; }
.cf-home-06{ height: 0; padding-top: 75%; aspect-ratio: auto; }
.project-card .img-frame.cf-proj-09{ height: 0; padding-top: 75%; aspect-ratio: auto; }
.project-card .img-frame.cf-proj-10{ height: 0; padding-top: 50.4065%; aspect-ratio: auto; }

/* =========================================================
   HOME
   ========================================================= */
.home-hero{ padding: 8px 0 0; }
.home-intro{
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 24px var(--gutter) 0;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-block{
  position: relative;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
}
.hero-media{
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  order: 1;
  z-index: 0;
}
.hero-crossfade{ position: relative; height: 0; padding-top: 66.6%; overflow: hidden; }
.hero-media img{ width: 100%; height: auto; max-height: 640px; object-fit: cover; }
.hero-crossfade img{ max-height: none; }
.hero-overlay{
  position: relative;
  z-index: 1;
  order: 2;
  max-width: 480px;
  margin: -300px 24px 0 24px;
}
@media (max-width: 780px){
  .hero-overlay{
    order: 3;
    margin: 20px 0 0;
    max-width: none;
  }
}

/* ---------- Media overlay (slika + temni panel čez sliko) ---------- */
.media-overlay{
  position: relative;
}
.media-overlay .img-frame img{ width: 100%; height: auto; object-fit: initial; }
.media-overlay .overlay-panel{
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: 440px;
  margin: 0;
}
.media-overlay .overlay-panel.top{
  top: 24px;
  bottom: auto;
}
@media (max-width: 640px){
  .media-overlay .overlay-panel{
    position: static;
    max-width: none;
    margin-top: 16px;
  }
}

.identity-caption{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 28px;
}
.identity-caption p{ max-width: 560px; font-size: 16px; font-weight: 400; }

.pair-block{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}
@media (max-width: 900px){
  .pair-block{ grid-template-columns: 1fr; }
}
.pair-block .media-overlay .img-frame{
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.pair-block .media-overlay .img-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-block{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: calc(var(--gutter) * 1.5);
  align-items: center;
}
.support-block .img-frame{ align-self: start; }
.support-text .eyebrow{ font-size: 20px; text-transform: none; letter-spacing: normal; font-weight: 400; opacity: 1; color: var(--black); margin-bottom: 20px; display: block; }
.support-text p{ font-size: 20px; font-weight: 400; margin-bottom: 16px; color: var(--grey-text); }
.support-text .btn{ margin-top: 12px; }
@media (max-width: 900px){
  .support-block{ grid-template-columns: 1fr; }
  .support-block .support-media{ order: 2; max-width: 460px; }
  .support-text{ order: 1; }
}

/* =========================================================
   STORITVE
   ========================================================= */
.storitve-intro{
  max-width: 760px;
}
.storitve-intro p{
  font-size: 19px;
  line-height: 1.55;
  margin-bottom: 24px;
  color: var(--black);
}
.storitve-intro p:last-child{ margin-bottom: 0; }

.storitve-list{
  border-top: 1px solid rgba(29,35,28,0.15);
  margin-top: 64px;
}
.storitve-row{
  display: grid;
  grid-template-columns: 0.6fr 1fr 1fr;
  gap: var(--gutter);
  padding: 40px 0;
  border-bottom: 1px solid rgba(29,35,28,0.15);
}
.storitve-row:first-child .storitve-heading{ font-size: 19px; text-transform: none; letter-spacing: normal; font-weight: 400; opacity: 1; color: var(--green-primary); line-height: 1.55; }
.storitve-heading h3{ font-size: 15px; font-weight: 400; color: var(--grey-text); line-height: 1.6; }
.storitve-desc p{ font-size: 15px; color: var(--grey-text); line-height: 1.6; }
.storitve-items ul{ list-style: none; display: flex; flex-direction: column; gap: 8px; }
.storitve-items li{ font-size: 15px; font-weight: 400; color: var(--grey-text); line-height: 1.6; padding-left: 18px; position: relative; }
.storitve-items li::before{
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px;
  background: var(--dark);
  border-radius: 50%;
}
@media (max-width: 900px){
  .storitve-row{ grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .storitve-row:first-child{ display:none; }
}

/* =========================================================
   PROJEKTI
   ========================================================= */
.projekti-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gutter);
}
.project-card{ grid-column: span 3; }
.project-card.is-wide{ grid-column: span 4; }
.project-card.is-narrow{ grid-column: span 2; }
.project-card .img-frame{ aspect-ratio: 4/3; margin-bottom: 18px; }
.project-card .img-frame.no-crop{ aspect-ratio: auto; }
.project-card .img-frame.no-crop img{ width: 100%; height: auto; object-fit: initial; }
.project-card h3{ font-size: 14px; font-weight: 400; color: var(--grey-text); margin-bottom: 6px; }
.project-card .project-sub{ font-size: 14px; color: var(--grey-text); margin-bottom: 4px; }
.project-card .project-client{ font-size: 14px; font-weight: 400; color: var(--grey-text); opacity: 1; }

@media (max-width: 900px){
  .projekti-grid{ grid-template-columns: repeat(2, 1fr); }
  .project-card, .project-card.is-wide, .project-card.is-narrow{ grid-column: span 2; }
}
@media (max-width: 560px){
  .projekti-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   KONTAKT
   ========================================================= */
.kontakt-wrap{
  display: grid;
  grid-template-columns: 1fr;
}
.kontakt-intro{
  background: var(--green-light);
  padding: 88px 0;
}
.kontakt-intro .container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.kontakt-intro h1,
.kontakt-intro p,
.kontakt-intro .mail-link{
  max-width: 640px;
}
.kontakt-intro h1{
  font-size: 32px;
  font-weight: 200;
  line-height: 1.3;
  margin-bottom: 24px;
  color: #fff;
}
.kontakt-intro .mail-link{
  font-size: 18px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 28px;
  border-bottom: 1px solid currentColor;
}
.kontakt-intro p{ font-size: 15px; color: var(--grey-text); margin-bottom: 16px; }
.kontakt-intro .signature{ font-weight: 400; color: var(--black); margin-top: 20px; }
.kontakt-intro .signature strong{ font-weight: 600; }
.social-links{ display: flex; gap: 20px; margin-top: 24px; }
.social-links a{
  display: flex; align-items: center; justify-content: center;
  transition: transform 250ms var(--ease);
}
.social-links a:hover{ transform: scale(1.18); }
.social-links svg, .social-links img{ width: 28px; height: 28px; }

.kontakt-form{
  background: var(--offwhite);
  padding: 64px 56px;
}
.form-row{ margin-bottom: 20px; }
.form-row label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-row input,
.form-row textarea{
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(29,35,28,0.25);
  background: var(--white);
  font-family: var(--font);
  font-size: 15px;
  border-radius: var(--radius);
}
.form-row textarea{ min-height: 140px; resize: vertical; }
.form-status{ margin-top: 16px; font-size: 14px; }
.form-status[data-state="success"]{ color: #2f6b3f; }
.form-status[data-state="error"]{ color: #a13c3c; }

@media (max-width: 900px){
  .kontakt-wrap{ grid-template-columns: 1fr; }
  .kontakt-intro, .kontakt-form{ padding: 48px var(--gutter); }
}
