/*
Theme Name:  Inspirativa
Theme URI:   https://inspirativa.si
Author:      Jan Kidrič
Author URI:  https://inspirativa.si
Description: Custom theme for Inspirativa – strateško svetovanje, mentorstvo in ustvarjalne delavnice.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: inspirativa
Tags:        custom-logo, custom-menu, full-width-template
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  --cream: #FBF7F0;
  --beige: #F4EDE3;
  --blue-gray: #E9EEF5;
  --sage: #E7EFEA;
  --powder: #F3E6E8;
  --navy: #1F2A44;
  --navy-light: #2d3d60;
  --accent: #8B7355;
  --accent-soft: #C4A882;
  --text: #1F2A44;
  --text-muted: #5a6478;
  --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
nav#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: rgba(251,247,240,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31,42,68,0.06);
  transition: padding 0.3s;
  isolation: isolate;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-logo-text { color: var(--navy); }
.nav-logo-accent { color: var(--accent); }

/* Nav logo image — controlled class, no WP wrapper interference */
.nav-logo .site-logo-img {
  height: 36px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

/* Pillar icon images and SVG fallback — 80×80px */
.pillar-symbol {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

/* WordPress nav menu */
#site-nav .menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
  margin: 0; padding: 0;
}
#site-nav .menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
#site-nav .menu a:hover { color: var(--navy); }
#site-nav .menu .current-menu-item a,
#site-nav .menu a.active {
  color: var(--navy);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}
#site-nav .menu .menu-item-cta a {
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  transition: background 0.2s;
  border-bottom: none !important;
}
#site-nav .menu .menu-item-cta a:hover { background: var(--navy-light); color: var(--white); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid var(--navy);
  transition: all 0.25s;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
}
.btn-primary:hover { background: transparent; color: var(--navy); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  padding: 0.85rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid var(--navy);
  transition: all 0.25s;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

/* ── HERO ── */
#domov {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 5rem;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  top: 0; right: 0;
  width: 55%; height: 100%;
  background: linear-gradient(135deg, var(--blue-gray) 0%, var(--sage) 100%);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem 5rem 6rem;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 1.8rem;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.8rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 4rem 5rem 2rem;
  position: relative;
  z-index: 1;
}

.hero-photo-frame {
  width: 360px; height: 460px;
  background: linear-gradient(160deg, var(--beige), var(--powder));
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(31,42,68,0.15);
}

.hero-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}

.hero-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(180deg, transparent 50%, rgba(31,42,68,0.4) 100%);
}

.photo-label {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero-card {
  position: absolute;
  bottom: 3rem; left: -2rem;
  background: var(--white);
  padding: 1.2rem 1.6rem;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(31,42,68,0.12);
  max-width: 200px;
}
.hero-card-label {
  font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.4rem; font-weight: 600;
}
.hero-card-text {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; color: var(--navy); line-height: 1.4;
}

/* ── PILLARS ── */
.pillars { padding: 6rem; background: var(--cream); }
.pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.pillar-card {
  padding: 3rem; border-radius: 4px;
  position: relative; overflow: hidden;
  min-height: 360px; display: flex;
  flex-direction: column; justify-content: flex-end;
  cursor: pointer; transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(31,42,68,0.14); }
.pillar-card.inspirativa { background: linear-gradient(145deg, var(--blue-gray) 0%, #d4dff0 100%); }
.pillar-card.inspirativna { background: linear-gradient(145deg, var(--powder) 0%, #e8d4d8 100%); }

.pillar-number {
  position: absolute; top: 2rem; right: 2.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 6rem; font-weight: 700;
  color: rgba(31,42,68,0.06); line-height: 1; pointer-events: none;
}
.pillar-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.8rem; }
.pillar-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; line-height: 1.2; }
.pillar-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.pillar-link { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); display: flex; align-items: center; gap: 0.5rem; }
.pillar-link::after { content: '→'; transition: transform 0.2s; }
.pillar-card:hover .pillar-link::after { transform: translateX(4px); }

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 1rem; }
.section-lead { font-size: 1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.75; }

/* ── STORITVE ── */
#storitve { padding: 6rem; background: var(--beige); }
.storitve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }

.storitev-card {
  background: var(--white); border-radius: 4px; overflow: hidden;
  box-shadow: 0 2px 20px rgba(31,42,68,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.storitev-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(31,42,68,0.12); }

.storitev-image { height: 200px; position: relative; overflow: hidden; }
.storitev-image.s1 { background: linear-gradient(135deg, var(--blue-gray), #c8d8ee); }
.storitev-image.s2 { background: linear-gradient(135deg, var(--sage), #c8dbd0); }
.storitev-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.storitev-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(31,42,68,0.3); }

.storitev-content { padding: 2rem 2.2rem; }
.storitev-tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem; }
.storitev-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; line-height: 1.3; }
.storitev-subtitle { font-size: 0.85rem; font-style: italic; color: var(--accent-soft); margin-bottom: 1rem; }
.storitev-text { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.storitev-result { background: var(--cream); border-radius: 3px; padding: 1rem 1.2rem; margin-bottom: 1.5rem; border-left: 3px solid var(--accent-soft); }
.storitev-result-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; }
.storitev-result-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ── INSPIRATIVNA ── */
#inspirativna { padding: 6rem; background: var(--powder); }
.inspirativna-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.inspirativna-image { height: 500px; background: linear-gradient(160deg, #e8d4d8, #d4c0c8); border-radius: 4px; overflow: hidden; box-shadow: 0 24px 60px rgba(31,42,68,0.12); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(31,42,68,0.3); }
.inspirativna-image img { width: 100%; height: 100%; object-fit: cover; }
.inspirativna-content .section-eyebrow,
.inspirativna-content .section-title { text-align: left; }
.inspirativna-body { font-size: 1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; }
.termini-placeholder { background: rgba(255,255,255,0.6); border-radius: 4px; padding: 1.5rem; margin-bottom: 2rem; border: 1px solid rgba(31,42,68,0.08); }
.termini-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.termini-text { font-size: 0.92rem; color: var(--text-muted); font-style: italic; }

/* ── O MENI ── */
#o-meni { padding: 6rem; background: var(--cream); }
.omeni-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.omeni-image { height: 560px; background: linear-gradient(160deg, var(--beige), var(--blue-gray)); border-radius: 4px; overflow: hidden; box-shadow: 0 24px 60px rgba(31,42,68,0.1); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(31,42,68,0.3); }
.omeni-image img { width: 100%; height: 100%; object-fit: cover; }
.omeni-content .section-eyebrow,
.omeni-content .section-title { text-align: left; }
.omeni-lead { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-style: italic; color: var(--accent); line-height: 1.65; margin-bottom: 1.5rem; }
.omeni-body { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; }
.omeni-quote { border-left: 3px solid var(--accent-soft); padding-left: 1.5rem; margin: 1.5rem 0; }
.omeni-quote p { font-family: 'Playfair Display', serif; font-style: italic; color: var(--navy); font-size: 1rem; line-height: 1.65; }

/* ── KONTAKT ── */
#kontakt { padding: 6rem; background: var(--navy); }
#kontakt .section-eyebrow { color: var(--accent-soft); }
#kontakt .section-title { color: var(--white); }
#kontakt .section-lead { color: rgba(255,255,255,0.6); }
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 4rem; }
.kontakt-single { max-width: 640px; margin: 3rem auto 0; }
.kontakt-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; padding: 2.5rem; }
.kontakt-card-label { font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.5); margin-bottom: 0.3rem; letter-spacing: 0.02em; }
.kontakt-card-desc { font-size: 0.95rem; color: rgba(255,255,255,0.7); margin-bottom: 1.4rem; line-height: 1.6; }
.kontakt-card-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 0.6rem; }
.kontakt-card-subdesc { font-size: 0.9rem; color: rgba(255,255,255,0.5); margin-bottom: 1.8rem; line-height: 1.65; }

/* prijava-termini layouts */

/* Contact Form 7 overrides */
#kontakt .wpcf7 .wpcf7-form { }
#kontakt .wpcf7 label,
#kontakt .cf7-label {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 0.5rem;
}
#kontakt .wpcf7 input[type="text"],
#kontakt .wpcf7 input[type="email"],
#kontakt .wpcf7 input[type="tel"],
#kontakt .wpcf7 input[type="url"],
#kontakt .wpcf7 input[type="number"],
#kontakt .wpcf7 select,
#kontakt .wpcf7 textarea {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px; padding: 0.85rem 1rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.92rem; color: var(--white); outline: none;
  transition: border-color 0.2s; margin-bottom: 1.2rem;
  box-sizing: border-box;
}
#kontakt .wpcf7 input::placeholder,
#kontakt .wpcf7 textarea::placeholder { color: rgba(255,255,255,0.25); }
#kontakt .wpcf7 input:focus,
#kontakt .wpcf7 textarea:focus { border-color: var(--accent-soft); outline: none; }
#kontakt .wpcf7 textarea { height: 120px; resize: vertical; }
#kontakt .wpcf7 .cf7-row { margin-bottom: 0; }
#kontakt .wpcf7 input[type="submit"],
#kontakt .wpcf7 button[type="submit"] {
  width: 100%; background: var(--accent); color: var(--white);
  padding: 0.95rem; border: none; border-radius: 2px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: background 0.25s; margin-top: 0.5rem;
  display: block;
}
#kontakt .wpcf7 input[type="submit"]:hover,
#kontakt .wpcf7 button[type="submit"]:hover { background: var(--accent-soft); }
#kontakt .wpcf7 .wpcf7-not-valid-tip { color: #fca5a5; font-size: 0.78rem; }
/* Show helpful message if no form loaded */
#kontakt .kontakt-card:empty::after,
#kontakt .kontakt-card p:only-child {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* ── FOOTER ── */
footer#site-footer {
  background: #141c2e; padding: 3rem 6rem;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--white); font-weight: 700; }
.footer-logo span { color: var(--accent-soft); }
.footer-info { font-size: 0.82rem; color: rgba(255,255,255,0.35); text-align: center; }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-social a:hover { color: var(--accent-soft); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: fadeUp 0.7s ease both; }
.hero-eyebrow { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.35s; }
.hero-actions { animation-delay: 0.5s; }
.hero-image-area { animation: fadeUp 0.8s 0.3s ease both; }

section { scroll-margin-top: 80px; }

/* ── WORDPRESS ADMIN BAR ── */
/* WP adds .admin-bar to <body> when the toolbar is visible */
.admin-bar nav#site-nav {
  top: 32px; /* default admin bar height */
}
@media screen and (max-width: 782px) {
  .admin-bar nav#site-nav {
    top: 46px; /* mobile admin bar height */
  }
}
/* Push sections down so anchor links aren't hidden behind nav + admin bar */
.admin-bar section {
  scroll-margin-top: 112px; /* 80px nav + 32px admin bar */
}
@media screen and (max-width: 782px) {
  .admin-bar section {
    scroll-margin-top: 126px; /* 80px nav + 46px mobile admin bar */
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav#site-nav { padding: 1rem 1.5rem; }

  /* Hamburger button */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
    flex-shrink: 0;
  }
  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
  }
  .nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Mobile menu — hidden by default */
  nav#site-nav .menu,
  nav#site-nav ul.menu {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 0.5rem 0 1rem;
    gap: 0;
    order: 3;
    border-top: 1px solid rgba(31,42,68,0.08);
    margin-top: 0.5rem;
  }
  nav#site-nav .menu.is-open,
  nav#site-nav ul.menu.is-open { display: flex; }
  nav#site-nav .menu li { width: 100%; }
  nav#site-nav .menu a {
    display: block;
    padding: 0.8rem 0.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(31,42,68,0.05);
  }
  nav#site-nav .menu .menu-item-cta a {
    margin: 0.8rem 0 0;
    text-align: center;
    border-radius: 2rem;
    border-bottom: none;
  }

  #domov { grid-template-columns: 1fr; }
  .hero-bg-shape { display: none; }
  .hero-content { padding: 3rem 2rem; }
  .hero-image-area { display: none; }
  .pillars, #storitve, #inspirativna, #o-meni, #kontakt { padding: 4rem 2rem; }
  .pillars-grid, .storitve-grid, .kontakt-grid { grid-template-columns: 1fr; }
  .inspirativna-inner, .omeni-inner { grid-template-columns: 1fr; }
  .inspirativna-image { height: 260px; }
  .omeni-image { height: 280px; }
  footer#site-footer { padding: 2rem; flex-direction: column; align-items: flex-start; }
}

/* Hide hamburger on desktop */
@media (min-width: 901px) {
  .nav-hamburger { display: none; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   INNER PAGES — shared hero, storitev layout
   ═══════════════════════════════════════════════════════════════════════════ */

.page-hero {
  padding: 10rem 3rem 6rem;
  background: var(--blue-gray);
}
.page-hero--blue   { background: var(--blue-gray); }
.page-hero--powder { background: var(--powder); }

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.page-hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.page-hero-image img,
.page-hero-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 1.5rem;
}
.page-hero-placeholder {
  background: linear-gradient(135deg, var(--beige), var(--blue-gray));
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Storitev full-width rows */
.storitev-full { padding: 6rem 3rem; }
.storitev-full--white { background: #fff; }
.storitev-full--cream { background: var(--cream); }
.storitev-full--powder { background: var(--powder); }

.storitev-full-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.storitev-full-inner--reverse { direction: rtl; }
.storitev-full-inner--reverse > * { direction: ltr; }

.storitev-full-image img,
.storitev-full-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 1.5rem;
}
.sf-blue   { background: linear-gradient(135deg, var(--blue-gray), #b8cde0); }
.sf-sage   { background: linear-gradient(135deg, var(--sage), #b8d4c0); }
.sf-powder { background: linear-gradient(135deg, var(--powder), #e0c0c8); }

.storitev-full-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin: 0.8rem 0 1rem;
}
.storitev-full-text {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.storitev-full-text p { margin-bottom: 1em; }

/* Contact section on inner pages */
.page-kontakt-section {
  padding: 6rem 3rem;
  background: var(--beige);
}
.page-kontakt-section--dark {
  background: var(--navy);
}
.page-kontakt-form {
  max-width: 640px;
  margin: 0 auto;
}

/* Secondary button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--navy); color: #fff; }

@media (max-width: 768px) {
  .page-hero-inner,
  .storitev-full-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .storitev-full-inner--reverse { direction: ltr; }
  .page-hero { padding: 8rem 1.5rem 4rem; }
  .storitev-full { padding: 4rem 1.5rem; }
  .page-kontakt-section { padding: 4rem 1.5rem; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   GALERIJA
   ═══════════════════════════════════════════════════════════════════════════ */

.gal-hero {
  padding: 9rem 3rem 5rem;
  background: var(--navy);
  text-align: center;
}
.gal-hero-inner { max-width: 700px; margin: 0 auto; }
.gal-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0.5rem 0 1rem;
  line-height: 1.15;
}
.gal-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.gal-hero .section-eyebrow { color: var(--accent-soft, #c9aa7c); }

.gal-section { padding: 4rem 2rem 6rem; background: #f7f5f2; }

/* CSS columns masonry */
.gal-masonry {
  column-count: 3;
  column-gap: 1rem;
  max-width: 1300px;
  margin: 0 auto;
}
.gal-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  overflow: hidden;
}
.gal-item-btn {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: none;
  border-radius: 0.75rem;
  overflow: hidden;
}
.gal-item-btn img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 0.75rem;
}
.gal-item-btn:hover img { transform: scale(1.04); }
.gal-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31,42,68,0);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  transition: background 0.3s;
  opacity: 0;
}
.gal-item-btn:hover .gal-item-overlay {
  background: rgba(31,42,68,0.45);
  opacity: 1;
}

.gal-empty {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  font-size: 1rem;
}

/* Lightbox */
.gal-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,12,18,0.94);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.gal-lightbox.is-open { opacity: 1; pointer-events: all; }
.gal-lb-img-wrap {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gal-lb-img-wrap img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.gal-lb-close,
.gal-lb-prev,
.gal-lb-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  transition: background 0.2s;
}
.gal-lb-close:hover,
.gal-lb-prev:hover,
.gal-lb-next:hover { background: rgba(255,255,255,0.2); }
.gal-lb-close { top: 1.5rem; right: 1.5rem; }
.gal-lb-prev  { left: 1.5rem;  top: 50%; transform: translateY(-50%); }
.gal-lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px)  { .gal-masonry { column-count: 2; } }
@media (max-width: 520px)  { .gal-masonry { column-count: 1; } .gal-section { padding: 2.5rem 1rem 4rem; } }

.inspirativna-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}


/* ═══════════════════════════════════════════════════════════════════════════
   TERMINI PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.ter-hero {
  padding: 9rem 3rem 5rem;
  background: var(--powder);
  text-align: center;
}
.ter-hero-inner { max-width: 700px; margin: 0 auto; }
.ter-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0.5rem 0 1rem;
  line-height: 1.2;
}
.ter-hero-sub { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; }

.ter-section { padding: 4rem 3rem 7rem; background: #fff; }
.ter-inner { max-width: 860px; margin: 0 auto; }

/* ── Card per session ─────────────────────────────────────────── */
.ter-card {
  border: 1px solid rgba(31,42,68,0.1);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 3rem;
}

/* Full-width image on top */
.ter-card-image { width: 100%; max-height: 480px; overflow: hidden; }
.ter-card-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* Naziv + datum + status row */
.ter-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid rgba(31,42,68,0.08);
}
.ter-card-naziv {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}
.ter-card-datum {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Status badges */
.ter-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.3rem;
}
.ter-badge--open  { background: #e6f4ec; color: #2a7a45; }
.ter-badge--few   { background: #fef3e2; color: #b45309; }
.ter-badge--full  { background: #f3e6e8; color: #9b3045; }

/* Accordions inside card */
.ter-card-accordions { }

.ter-acc {
  border-top: 1px solid rgba(31,42,68,0.08);
}
.ter-acc-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}
.ter-acc-title::-webkit-details-marker { display: none; }
.ter-acc-title::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.25s;
}
.ter-acc[open] > .ter-acc-title::after { content: '×'; }
.ter-acc-title:hover { background: var(--cream); }

.ter-acc-body {
  padding: 0 2.5rem 2rem;
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.ter-acc-body p { margin-bottom: 0.8em; }
.ter-acc-body strong { color: var(--navy); }
.ter-acc-body ul { padding-left: 1.2em; margin-bottom: 0.8em; }
.ter-acc-body li { margin-bottom: 0.3em; }

.ter-cena-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  margin-bottom: 0.5rem;
}
.ter-cena-extra {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 0.8rem;
}
.ter-cena-extra p { margin-bottom: 0.5em; }
.ter-cena-extra ul { padding-left: 1.2em; }
.ter-cena-extra li { margin-bottom: 0.3em; }

.ter-full-note { font-style: italic; margin-bottom: 1rem; }
.ter-cta { margin-top: 1rem; display: inline-flex; }

/* Empty state */
.ter-empty { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }

/* Form section */
.ter-form-section {
  padding-top: 4rem;
  border-top: 1px solid rgba(31,42,68,0.08);
  margin-top: 1rem;
}
.ter-form-header { text-align: center; margin-bottom: 2.5rem; }
.ter-form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin: 0.5rem 0 0.8rem;
}
.ter-form-sub { font-size: 0.97rem; color: var(--text-muted); }
.ter-form-wrap { max-width: 560px; margin: 0 auto; }

.ter-form-wrap .wpcf7 select,
#ter-prijava select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(31,42,68,0.2);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231F2A44' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

@media (max-width: 768px) {
  .ter-section { padding: 3rem 1.2rem 5rem; }
  .ter-hero { padding: 8rem 1.5rem 4rem; }
  .ter-card-header { flex-direction: column; gap: 0.8rem; padding: 1.5rem; }
  .ter-acc-title { padding: 1rem 1.5rem; }
  .ter-acc-body { padding: 0 1.5rem 1.5rem; }
  .ter-card-image img { height: 260px; }
}

/* Termini list on homepage InspirativNa section */
.termini-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.termini-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(31,42,68,0.08);
}
.termini-list-item:last-child { border-bottom: none; }
.termini-list-naziv {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}
.termini-list-datum {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.termini-list-item--full .termini-list-naziv { opacity: 0.5; text-decoration: line-through; }
.termini-list-item--full .termini-list-datum { opacity: 0.5; }

/* Hide CF7 hidden fields container */
.hidden-fields-container { display: none !important; }

/* Termini prijava section — light background variant of kontakt */
.ter-prijava-section { background: var(--beige); padding: 5rem 3rem; }
.ter-prijava-section .kontakt-card {
  background: #fff;
  border-color: rgba(31,42,68,0.1);
}
.ter-prijava-section .kontakt-card-title { color: var(--navy); }
.ter-prijava-section .kontakt-card-desc  { color: var(--text-muted); }
@media (max-width: 768px) { .ter-prijava-section { padding: 4rem 1.5rem; } }

/* ── Shared prijava-termini section ──────────────────────────────────────── */
.prijava-termini-section {
  background: var(--beige);
  padding: 5rem 3rem;
}
.prijava-termini-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Session list — horizontal cards */
.prijava-ter-list .section-eyebrow { margin-bottom: 1rem; }
.prijava-ter-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.prijava-ter-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1px solid rgba(31,42,68,0.1);
  border-radius: 0.6rem;
}
.prijava-ter-item-text { display: flex; flex-direction: column; gap: 0.15rem; }
.prijava-ter-naziv { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.prijava-ter-datum { font-size: 0.78rem; color: var(--text-muted); }
/* prijava form text */
.prijava-form-label { font-size: 0.82rem; font-weight: 700; color: var(--navy); margin-bottom: 0.3rem; letter-spacing: 0.02em; }

.prijava-form-wrap {
  background: #fff;
  border: 1px solid rgba(31,42,68,0.1);
  border-radius: 0.75rem;
  padding: 2rem 2.2rem;
}
.prijava-form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.prijava-form-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.prijava-form-divider {
  border: none;
  border-top: 1px solid rgba(31,42,68,0.08);
  margin-bottom: 1.2rem;
}
.prijava-form-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.prijava-form-lead {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .prijava-termini-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .prijava-termini-section { padding: 4rem 1.5rem; }
}

/* CF7 styles inside prijava-form-wrap (light background) */
.prijava-form-wrap .wpcf7 input[type="text"],
.prijava-form-wrap .wpcf7 input[type="email"],
.prijava-form-wrap .wpcf7 input[type="tel"],
.prijava-form-wrap .wpcf7 select,
.prijava-form-wrap .wpcf7 textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid rgba(31,42,68,0.18);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.93rem;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 1rem;
  box-sizing: border-box;
  display: block;
}
.prijava-form-wrap .wpcf7 input::placeholder,
.prijava-form-wrap .wpcf7 textarea::placeholder { color: rgba(31,42,68,0.35); }
.prijava-form-wrap .wpcf7 input:focus,
.prijava-form-wrap .wpcf7 textarea:focus,
.prijava-form-wrap .wpcf7 select:focus { border-color: var(--accent); outline: none; }
.prijava-form-wrap .wpcf7 textarea { height: 100px; resize: vertical; }
.prijava-form-wrap .wpcf7 select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231F2A44' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  cursor: pointer;
}
.prijava-form-wrap .wpcf7 input[type="submit"],
.prijava-form-wrap .wpcf7 button[type="submit"] {
  width: 100%;
  background: var(--navy);
  color: #fff;
  padding: 0.95rem;
  border: none;
  border-radius: 4px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
  margin-top: 0.5rem;
  display: block;
}
.prijava-form-wrap .wpcf7 input[type="submit"]:hover,
.prijava-form-wrap .wpcf7 button[type="submit"]:hover { background: var(--accent); }
.prijava-form-wrap .wpcf7 .wpcf7-not-valid-tip { color: #dc2626; font-size: 0.78rem; margin-top: -0.7rem; margin-bottom: 0.5rem; display: block; }
.prijava-form-wrap .wpcf7 .cf7-row { margin-bottom: 0; }

/* Termin visible select (hidden field approach) */
.ter-select-wrap { margin-bottom: 1.2rem; }
.ter-visible-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(31,42,68,0.2);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231F2A44' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}
/* Also style inside kontakt dark section */
#kontakt .ter-visible-select {
  background-color: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* ── CF7 response messages — unified styling ─────────────────────────────────
   Hide the default output everywhere, show only inside our containers.
   The .sent / .invalid / .failed classes on the <form> drive the color. */

.wpcf7-response-output { display: none !important; }

#kontakt .wpcf7-response-output,
.prijava-form-wrap .wpcf7-response-output,
.ter-prijava-section .wpcf7-response-output,
.prijava-termini-section .wpcf7-response-output,
.page-kontakt-section .wpcf7-response-output,
.ter-inner .wpcf7-response-output {
  display: block !important;
  margin: 1.2rem 0 0;
  padding: 0.85rem 1.1rem;
  border-radius: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
  border: none !important;
}

/* Success */
#kontakt .wpcf7-form.sent .wpcf7-response-output,
.prijava-form-wrap .wpcf7-form.sent .wpcf7-response-output,
.prijava-termini-section .wpcf7-form.sent .wpcf7-response-output,
.ter-inner .wpcf7-form.sent .wpcf7-response-output {
  background: rgba(42, 122, 69, 0.12);
  color: #1e6b3a;
}
/* Validation errors */
#kontakt .wpcf7-form.invalid .wpcf7-response-output,
.prijava-form-wrap .wpcf7-form.invalid .wpcf7-response-output,
.prijava-termini-section .wpcf7-form.invalid .wpcf7-response-output,
.ter-inner .wpcf7-form.invalid .wpcf7-response-output,
#kontakt .wpcf7-form.failed .wpcf7-response-output,
.prijava-form-wrap .wpcf7-form.failed .wpcf7-response-output,
.prijava-termini-section .wpcf7-form.failed .wpcf7-response-output,
.ter-inner .wpcf7-form.failed .wpcf7-response-output {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

/* Dark background (kontakt section) — lighter tones */
#kontakt .wpcf7-form.sent .wpcf7-response-output {
  background: rgba(42, 122, 69, 0.2);
  color: #6ee7a0;
}
#kontakt .wpcf7-form.invalid .wpcf7-response-output,
#kontakt .wpcf7-form.failed .wpcf7-response-output {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
}

/* Field-level validation tips */
.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  font-size: 0.78rem;
  color: #b91c1c;
  margin-top: 0.2rem;
  margin-bottom: 0.6rem;
}
#kontakt .wpcf7 .wpcf7-not-valid-tip { color: #fca5a5; }

/* Invalid field highlight */
.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid,
.wpcf7 select.wpcf7-not-valid {
  border-color: #dc2626 !important;
}

/* Spinner */
.wpcf7-spinner {
  width: 18px;
  height: 18px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Hide screen-reader duplicate */
.wpcf7 .screen-reader-response { display: none !important; }
