/* Ciprese.si – poenostavljena stran (brez spletne trgovine) */

:root {
  --green: #85ac3f;
  --green-dark: #6d8f31;
  --green-light: #f2f6ec;
  --text: #000;
  --heading: #131315;
  --muted: #6b6b6b;
  --border: #dcdcdc;
  --container: 1170px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 1.62;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }
h1, h2, h3, h4, h5 { color: var(--heading); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1.2em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Zgornja zelena vrstica ---------- */
.topbar { background: var(--green); color: #fff; font-size: 14px; }
.topbar-inner { display: flex; justify-content: flex-end; align-items: center; gap: 12px; min-height: 56px; }
.topbar-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; font-weight: 500;
  border: 1px solid #fff; border-radius: 30px; padding: 6px 18px;
  transition: background .2s, color .2s;
}
.topbar-phone:hover { background: #fff; color: var(--green-dark); }

/* ---------- Glava in navigacija ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 12px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 101px; }
.logo img { display: block; width: 215px; height: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; }
.main-nav a { color: #323232; text-decoration: none; font-size: 14px; padding: 8px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--green-dark); border-bottom-color: var(--green); }
.nav-mobile-extra { display: none; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle .bar { display: block; width: 24px; height: 2px; background: #323232; margin: 5px 0; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Zelen zavihek ob robu */
.inquiry-tab {
  position: fixed; right: 0; top: 45%; z-index: 90;
  background: var(--green); color: #fff; text-decoration: none;
  writing-mode: vertical-rl; transform: rotate(180deg);
  padding: 18px 9px; font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  border-radius: 0 6px 6px 0; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.inquiry-tab:hover { background: var(--green-dark); color: #fff; }

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: #fff; border: 0; border-radius: 3px;
  padding: 12px 24px; font: 500 15px/1.4 "Poppins", sans-serif;
  text-decoration: none; cursor: pointer; transition: background .2s;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Hero (domača stran) ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end; justify-content: center; text-align: center;
  min-height: 749px; color: #fff;
  background: url("/assets/img/hero-bg.jpg") center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.41); }
.hero-inner { position: relative; padding: 0 20px 150px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero h1 { color: #fff; font-size: clamp(64px, 11vw, 126px); font-weight: 300; margin: 0 0 8px; letter-spacing: -1px; animation: fadeDown .9s both; }
.hero h2 { color: #fff; font-size: clamp(17px, 2.2vw, 24px); font-weight: 300; margin: 0 0 28px; animation: fadeIn 1.2s .2s both; }
.hero .btn { animation: fadeUp .9s .35s both; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(30px); }  to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero h1, .hero h2, .hero .btn { animation: none; } }

/* ---------- Štiri prednosti ---------- */
.features { background: var(--green-light); padding: 0 0 70px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: -90px; position: relative; }
.feature { background: #fff; border-radius: 4px; padding: 0 26px 30px; text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.feature-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 29px;
  margin: -36px auto 20px; box-shadow: 0 0 0 6px #fff;
}
.feature h3 { font-size: 22px; font-weight: 700; }
.feature p { font-size: 14px; }
.feature .more { display: block; font-weight: 700; color: #000; text-decoration: none; }
.feature .more:hover { color: var(--green-dark); }

/* ---------- Galerija ---------- */
.section { padding: 70px 0; }
.section-title { text-align: center; font-size: 30px; font-weight: 600; margin-bottom: 36px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.gallery figure { margin: 0; text-align: center; }
.gallery .frame { aspect-ratio: 3 / 4; overflow: hidden; background: #f2f2f2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .cat { display: block; margin-top: 14px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.gallery figcaption { margin-top: 2px; font-size: 14px; font-weight: 500; padding: 0 10px; }

/* ---------- Mnenja strank ---------- */
.testimonials { padding: 20px 0 80px; }
.slider { max-width: 900px; margin: 0 auto; }
.slides { position: relative; }
.slide { display: none; background: var(--green); color: #fff; text-align: center; padding: 38px 44px; border-radius: 4px; position: relative; }
.slide.active { display: block; animation: fadeIn .5s both; }
.slide::after { content: ""; position: absolute; left: 50%; bottom: -12px; margin-left: -12px; border: 12px solid transparent; border-bottom: 0; border-top-color: var(--green); }
.slide blockquote { margin: 0; font-size: 16px; font-weight: 300; }
.slide-author { margin-top: 70px; text-align: center; }
.slide-author strong { display: block; font-size: 14px; }
.slide-author span { font-size: 12px; color: var(--muted); }
.slider-wrap { }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #c9c9c9; cursor: pointer; }
.dots button.active { background: var(--green); }

/* Vsak slide ima svoj avtor – prikažemo ga skupaj z njim */
.slide-item { display: none; }
.slide-item.active { display: block; }
.slide-item .slide { display: block; }

/* ---------- Podstrani ---------- */
.page-banner {
  min-height: 275px; position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  background: url("/assets/img/hero-bg.jpg") center 30% / cover no-repeat;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.page-banner .banner-title { position: relative; color: #fff; font-size: clamp(34px, 5vw, 56px); font-weight: 600; margin: 0; padding: 0 20px; }
.content { padding: 56px 0 80px; }
.content.narrow .container { max-width: 960px; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-dark); }
.breadcrumb span { margin: 0 6px; }
.page-title { font-size: clamp(28px, 4vw, 38px); font-weight: 600; margin-bottom: 24px; }
.page-title.big { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.25; font-weight: 700; }
.content h2 { font-size: 26px; font-weight: 700; margin-top: 1.4em; }
.content h3 { font-size: 20px; font-weight: 700; margin-top: 1.4em; }
.content ol { padding-left: 1.2em; }
.content ol li { margin-bottom: .8em; }
.lead { font-size: 17px; font-weight: 300; }
.callout { background: var(--green-light); border-left: 4px solid var(--green); padding: 16px 22px; margin: 0 0 1.5em; }

/* Ograje */
.price-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.price-list li { padding: 10px 0; border-bottom: 1px solid #ececec; }
.fence-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.figure-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; margin: 1em 0 2em; }
.figure-row img { height: auto; max-height: 260px; width: auto; }

/* Novice */
.post-list { display: grid; gap: 50px; }
.post-card { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; padding-bottom: 50px; border-bottom: 1px solid #ececec; }
.post-card:last-child { border-bottom: 0; }
.post-card img { width: 100%; max-height: 380px; object-fit: contain; display: block; }
.post-card h2 { font-size: 24px; margin: 0 0 8px; }
.post-card h2 a { color: var(--heading); text-decoration: none; }
.post-card h2 a:hover { color: var(--green-dark); }
.post-date { font-size: 12px; color: var(--muted); margin-bottom: 14px; display: block; }
.post-hero { display: block; margin: 0 auto 28px; max-height: 480px; width: auto; max-width: 100%; }
.post-back { display: inline-block; margin-top: 30px; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-grid h2 { margin-top: 0; font-size: 26px; font-weight: 700; }
.contact-details { list-style: none; margin: 0 0 1.2em; padding: 0; }
.contact-details li { margin-bottom: .4em; }

.form-row { margin-bottom: 14px; }
.form-row input, .form-row textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 3px; padding: 12px 14px;
  font: 400 14px/1.5 "Poppins", sans-serif; background: #fff; color: #000;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.form-row textarea { min-height: 150px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 12px; color: var(--muted); }
.alert { padding: 14px 18px; border-radius: 3px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #eef6dd; border: 1px solid var(--green); color: #34501a; }
.alert-error { background: #fdeceb; border: 1px solid #d9534f; color: #8a1f1b; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }

/* ---------- Noga ---------- */
.site-footer { color: #fff; }
.footer-main { position: relative; padding: 75px 0 60px; background: url("/assets/img/hero-bg.jpg") center / cover no-repeat; }
.footer-main::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.footer-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.site-footer h5 { color: #fff; font-size: 19px; font-weight: 500; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #c5de92; }
.with-icons svg { margin-right: 8px; vertical-align: -2px; }
.social { display: inline-flex; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; align-items: center; justify-content: center; font-size: 18px; transition: background .2s; }
.social:hover { background: #fff; color: #000 !important; }
.footer-bottom { background: #0b0b0b; font-size: 13px; padding: 14px 0; color: #cfcfcf; }

/* ---------- Odzivnost ---------- */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); row-gap: 56px; margin-top: -70px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .header-inner { min-height: 76px; position: relative; }
  .logo img { width: 170px; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    padding: 10px 20px 24px; box-shadow: 0 10px 20px rgba(0,0,0,.1);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid #eee; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 0 !important; font-size: 15px; }
  .nav-mobile-extra { display: block; margin-top: 18px; font-size: 14px; }
  .nav-mobile-extra h4 { margin: 0 0 4px; font-size: 16px; }
  .nav-mobile-extra p { margin: 0; }
  .contact-grid, .post-card, .fence-block { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hero { min-height: 620px; }
  .hero-inner { padding-bottom: 130px; }
}
@media (max-width: 600px) {
  .topbar-label { display: none; }
  .topbar-inner { justify-content: center; min-height: 48px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .slide { padding: 28px 22px; }
  .inquiry-tab { display: none; }
  .section, .content { padding-top: 44px; padding-bottom: 56px; }
}
