/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --bg: #0b0b0b;          /* primarno ozadje (črno) */
  --fg: #ffffff;          /* primarni tekst */
  --muted: #bfbfbf;       /* sekundarni tekst */
  --accent: #F1EDE9;      /* poudarek po smernicah */
  --max: 1120px;
}

/* ==========================================================================
   Base
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  overscroll-behavior: contain;
  padding-top: 72px; /* prostor za fiksni header */
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  display: block;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.wrapper {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 72px 0;
  scroll-margin-top: 80px; /* odvisno od višine headerja */
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  backdrop-filter: saturate(120%) blur(6px);
  background: rgba(11, 11, 11, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 0;
  margin: 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.menu {
  display: flex;
  align-items: center; /* 🔸 vertikalno poravna elemente na sredino */
  gap: 22px;
}

.menu a {
  color: var(--fg);
  opacity: .95;
  font-weight: 500;
}

.burger {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--fg);
  padding: 6px 10px;
  border-radius: 8px;
}

/* CTA (global + header override) */
.cta {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  letter-spacing: .02em;
}

header .cta {
  background: #F1EDE9;       /* bež ozadje */
  color: #1b1b1b !important; /* temno besedilo */
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 78vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 100px 20px 80px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('images/hero-new.jpg') center / cover no-repeat;
  filter: brightness(.55);
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: 96px 20px 72px;
}

/* Typography */
.kicker {
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: .3em 0 .1em;
  font-size: clamp(38px, 6.2vw, 70px);
  line-height: 1.02;
  letter-spacing: .02em;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.12;
  letter-spacing: .02em;
}

h1 .kin,
h2 .kin {
  font-weight: 300; /* mehkejši del besede */
  opacity: .7;
  letter-spacing: .01em;
}

.sub {
  max-width: 820px;
  margin: 0 auto 24px;
  font-size: clamp(16px, 2.2vw, 22px);
  color: #e7e7e7;
}

.lead {
  margin: 0 0 18px;
  color: #e5e5e5;
}

/* Fade-in animacija za naslov */
.fade-title {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInTitle 1.6s ease forwards;
  animation-delay: .3s;
}

@keyframes fadeInTitle {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Grids & Media
   ========================================================================== */
.grid {
  display: grid;
  gap: 28px;
  align-items: start;
  grid-template-columns: 1.1fr .9fr;
}

.grid img,
.media {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
}

/* Bulleted list */
.bullets {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bullets li {
  position: relative;
  padding-left: 26px;
  color: #e2e2e2;
}

.bullets li::before {
  content: "•";
  position: absolute;
  top: 13px;
  left: 4px;
  font-size: 22px;
  line-height: 0;
  color: var(--accent);
}

/* Cards */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: #F1EDE9; /* svetlo ozadje po smernicah */
  color: #111;         /* temno besedilo za kontrast */
  border: none;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

/* Notes */
.note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* ==========================================================================
   Contact section
   ========================================================================== */
.contact {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.contact .box {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
}

/* ==========================================================================
   Footer / Branding
   ========================================================================== */
footer {
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--muted);
}

.logo {
  width: 140px;
  height: 60px;
  margin: 0 auto 16px;
  background: url('images/logo-terrakin.jpg') center / contain no-repeat;
  filter: none;
}

.address {
  color: #e4e4e4;
}

/* ==========================================================================
   Forms
   ========================================================================== */
form label {
  display: block;
  margin: 10px 0 6px;
  text-align: left;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--fg);
  background: #121212;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
}

textarea {
  min-height: 120px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  font-size: 14px;
  color: #d9d9d9;
}

.consent input {
  width: auto;
}

.small {
  font-size: 13px;
  color: #cfcfcf;
}

/* ==========================================================================
   Social links (Instagram section)
   ========================================================================== */
.social-links {
  text-align: center;
  padding: 40px 0 30px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.social-links .intro {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.social-links .links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--accent);
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}

.social-links a:hover {
  opacity: .8;
  transform: translateY(-2px);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   FAQ / Accordion
   ========================================================================== */
.accordion-item {
  margin-bottom: 12px;
  overflow: hidden;
  color: #1b1b1b;      /* temno besedilo zaradi svetlega ozadja */
  background: #F1EDE9; /* enaka barva kot v Storitve */
  border: none;
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .08);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  color: #1b1b1b; /* temna tipografija */
  background: transparent;
  border: 0;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.accordion-header .icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #1b1b1b;
  border: 1px solid rgba(0, 0, 0, .25);
  border-radius: 50%;
  transition: transform .25s ease;
}

.accordion-panel-inner {
  padding: 0 18px 18px;
  color: #2c2c2c;
}

.accordion-panel {
  /* Skrije panel vsebine (panel je privzeto zaprt) */
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease; /* ohrani animacijo */
}

/* Stanje 'razprto' se nastavi z JS in povozimo height:0 z inline stilom: panel.style.height = h; */

.accordion-item[aria-expanded="true"] .accordion-header .icon {
  transform: rotate(45deg); /* Dodaten stajling za vizualni plus (+) v križ (X) */
}

/* ==========================================================================
   Back-to-top button
   ========================================================================== */
#scrollTop {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  color: #1b1b1b;
  background: #F1EDE9;
  border: none;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, box-shadow .3s ease;
}

#scrollTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .2);
}

#scrollTop.visible {
  opacity: 1;
  visibility: visible;
}

#scrollTop svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 840px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .menu {
    display: none;
  }

  .menu.open {
    position: absolute;
    top: 68px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
  }

  .burger {
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 70px 16px 60px; /* manj prostora zgoraj na telefonih */
    min-height: 39vh;
  }
  .cta {
    margin-bottom: 10px;
  }
}
