﻿/*
Theme Name: Ursic Saksida
Theme URI: https://example.com/
Author: Mashup S.P.
Description: Elegantna enostranska tema za odvetniško pisarno Uršič Saksida.
Version: 1.0.0
Text Domain: ursic-saksida
*/

:root {
  --bg: #f4efe6;
  --bg-alt: #e7ddcf;
  --surface: rgba(255, 252, 247, 0.76);
  --text: #202020;
  --muted: #696158;
  --gold: #c6922e;
  --gold-deep: #9f7120;
  --line: rgba(32, 32, 32, 0.11);
  --shadow: 0 24px 70px rgba(32, 32, 32, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(198, 146, 46, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(32, 32, 32, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #f1eadf 46%, #ebe0d0 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-wrap {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(244, 239, 230, 0.82);
  border-bottom: 1px solid rgba(35, 35, 35, 0.08);
  animation: headerDrop 900ms cubic-bezier(.2,.8,.2,1) both;
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  gap: 2px;
}

.brand-mark strong {
  font-family: "Arial", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-mark span {
  color: var(--muted);
  font-family: "Arial", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: "Arial", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(35, 35, 35, 0.12);
  font-family: "Arial", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang {
  position: relative;
  transition: color 180ms ease, transform 180ms ease;
}

.lang:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.lang.is-active {
  color: var(--text);
  font-weight: 600;
}

.lang-sep {
  opacity: 0.45;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-links a {
  position: relative;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 74px 24px 34px;
}

.hero-card {
  position: relative;
  padding: 68px 42px 52px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.76), rgba(255, 253, 248, 0.48));
  border: 1px solid rgba(35, 35, 35, 0.08);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: floatIn 1100ms cubic-bezier(.2,.8,.2,1) both;
}

.hero-card::after {
  animation: orbFloat 9s ease-in-out infinite;
}

.hero-card::before {
  animation: orbDrift 11s ease-in-out infinite;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(198, 146, 46, 0.2), transparent 70%);
  pointer-events: none;
}

.hero-card::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -90px;
}

.hero-card::after {
  width: 220px;
  height: 220px;
  left: -80px;
  bottom: -80px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-family: "Arial", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: -0.04em;
  animation: heroWordIn 1100ms cubic-bezier(.2,.8,.2,1) both;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero p {
  max-width: 62ch;
  margin: 24px 0 0;
  font-family: "Arial", sans-serif;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
  animation: fadeUp 1100ms cubic-bezier(.2,.8,.2,1) both;
  animation-delay: 100ms;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  animation: fadeUp 1100ms cubic-bezier(.2,.8,.2,1) both;
  animation-delay: 180ms;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Arial", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  position: relative;
  overflow: hidden;
}

.button:hover {
  transform: translateY(-3px) scale(1.02);
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
  transform: translateX(-120%);
}

.button:hover::after,
.button.is-hovered::after {
  animation: shimmer 720ms ease;
}

.button-primary {
  background: var(--gold);
  color: #fff;
}

.button-primary:hover {
  background: var(--gold-deep);
}

.button-secondary {
  border-color: rgba(35, 35, 35, 0.12);
  background: rgba(255, 255, 255, 0.5);
}

.hero-panel {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(35, 35, 35, 0.08);
  animation: slideInRight 1100ms cubic-bezier(.2,.8,.2,1) both;
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-family: "Arial", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.hero-panel li {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.hero-panel li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
  font-weight: 500;
}

.hero-panel span {
  display: block;
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--muted);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 86px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid rgba(35, 35, 35, 0.08);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(35, 35, 35, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover,
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(32, 32, 32, 0.12);
  border-color: rgba(198, 146, 46, 0.22);
}

.hero-panel,
.post-card,
.intro {
  animation: fadeUp 1000ms cubic-bezier(.2,.8,.2,1) both;
}

.hero-panel { animation-delay: 120ms; }
.section:nth-of-type(2) .card { animation: fadeUp 700ms ease both; }

.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  transition: opacity 1000ms cubic-bezier(.2,.8,.2,1), transform 1000ms cubic-bezier(.2,.8,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 {
  animation: fadeUp 980ms ease both;
}

.hero p {
  animation: fadeUp 980ms ease both;
  animation-delay: 90ms;
}

.hero-actions {
  animation: fadeUp 980ms ease both;
  animation-delay: 160ms;
}

.motion-stagger.is-visible:nth-child(1) { transition-delay: 40ms; }
.motion-stagger.is-visible:nth-child(2) { transition-delay: 120ms; }
.motion-stagger.is-visible:nth-child(3) { transition-delay: 200ms; }
.motion-stagger.is-visible:nth-child(4) { transition-delay: 280ms; }

.motion-pop {
  opacity: 0;
  transform: scale(0.94) translateY(22px);
}

.motion-pop.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

.motion-slide {
  opacity: 0;
  transform: translateX(-30px);
}

.motion-slide.is-visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

.card .number {
  display: inline-flex;
  margin-bottom: 18px;
  font-family: "Arial", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 500;
}

.card p {
  margin: 0;
  font-family: "Arial", sans-serif;
  line-height: 1.7;
  color: var(--muted);
}

.intro {
  max-width: 920px;
  margin: 0 auto 24px;
}

.intro h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.intro p {
  margin: 0;
  font-family: "Arial", sans-serif;
  line-height: 1.75;
  color: var(--muted);
}

.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 40px;
  color: var(--muted);
  font-family: "Arial", sans-serif;
  font-size: 0.9rem;
}

.footer-inner {
  padding-top: 18px;
  border-top: 1px solid rgba(35, 35, 35, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(35, 35, 35, 0.08);
  box-shadow: 0 10px 30px rgba(35, 35, 35, 0.05);
}

.post-card a {
  display: block;
  padding: 28px;
  height: 100%;
}

.post-card h3 {
  margin: 10px 0 12px;
  font-size: 1.35rem;
  font-weight: 500;
}

.post-meta,
.post-link {
  font-family: "Arial", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.post-meta {
  color: var(--gold-deep);
}

.post-card p {
  margin: 0 0 22px;
  font-family: "Arial", sans-serif;
  line-height: 1.7;
  color: var(--muted);
}

.post-link {
  color: var(--text);
}

.blog-empty {
  grid-column: 1 / -1;
}

.single-post-card {
  max-width: 920px;
  margin: 0 auto;
}

.single-post-title {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.single-post-content {
  font-family: "Arial", sans-serif;
  line-height: 1.8;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  position: relative;
  overflow: hidden;
}

.team-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(198, 146, 46, 0.18), rgba(198, 146, 46, 0.05));
  color: var(--gold-deep);
  font-size: 1.6rem;
}

.team-name {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 500;
}

.team-role {
  margin: 0 0 18px;
  font-family: "Arial", sans-serif;
  color: var(--muted);
  line-height: 1.6;
}

.team-links {
  display: grid;
  gap: 10px;
  font-family: "Arial", sans-serif;
}

.team-mail,
.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.team-linkedin {
  color: var(--gold-deep);
}

.team-mail:hover,
.team-linkedin:hover {
  text-decoration: underline;
}

.team-person-card {
  overflow: hidden;
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  margin-bottom: 16px;
}

.team-photo-top {
  aspect-ratio: auto;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: center top;
  background: rgba(0, 0, 0, 0.03);
}

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

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroWordIn {
  from {
    opacity: 0;
    letter-spacing: -0.08em;
    transform: translateY(22px);
  }
  70% {
    opacity: 1;
    letter-spacing: -0.04em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: -0.04em;
  }
}

@keyframes shimmer {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(10px) translateX(-8px); }
}

@keyframes orbDrift {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-12px) translateX(10px); }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(26px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

body.has-motion .section .reveal:nth-child(2) { transition-delay: 90ms; }
body.has-motion .section .reveal:nth-child(3) { transition-delay: 160ms; }
body.has-motion .section .reveal:nth-child(4) { transition-delay: 230ms; }
body.has-motion .section .reveal:nth-child(5) { transition-delay: 300ms; }

@media (max-width: 980px) {
  .hero-grid,
  .section-grid,
  .blog-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-start;
  }

  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 26px;
  }

  .hero-card {
    padding: 30px 20px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 13vw, 4rem);
  }

  .hero-panel,
  .card {
    padding: 22px;
  }
}

/* Cookie Law Info styles */
#cookie-law-info-bar {
  font-size: 15px;
  margin: 0 auto;
  padding: 12px 10px;
  position: absolute;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  z-index: 9999;
  display: none;
  left: 0;
  font-weight: 300;
  box-shadow: 0 -1px 10px 0 rgba(172, 171, 171, 0.3);
  background: rgba(244, 239, 230, 0.98);
  color: var(--text);
  border-top: 1px solid rgba(32, 32, 32, 0.08);
}

#cookie-law-info-again {
  font-size: 10pt;
  margin: 0;
  padding: 5px 10px;
  text-align: center;
  z-index: 9999;
  cursor: pointer;
  box-shadow: #161616 2px 2px 5px 2px;
}

#cookie-law-info-bar span {
  vertical-align: middle;
}

.cli-plugin-button,
.cli-plugin-button:visited {
  display: inline-block;
  padding: 9px 12px;
  color: #fff;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  margin-left: 5px;
  text-decoration: none;
  background-color: var(--gold);
  border-radius: 999px;
}

.cli-plugin-main-link {
  margin-left: 0;
  font-weight: 550;
  text-decoration: underline;
}

.cli-plugin-button:hover {
  background-color: #111;
  color: #fff;
  text-decoration: none;
}

.small.cli-plugin-button,
.small.cli-plugin-button:visited {
  font-size: 11px;
}

.cli-plugin-button,
.cli-plugin-button:visited,
.medium.cli-plugin-button,
.medium.cli-plugin-button:visited {
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

.large.cli-plugin-button,
.large.cli-plugin-button:visited {
  font-size: 14px;
  padding: 8px 14px 9px;
}

.super.cli-plugin-button,
.super.cli-plugin-button:visited {
  font-size: 34px;
  padding: 8px 14px 9px;
}

.pink.cli-plugin-button,
.magenta.cli-plugin-button:visited {
  background-color: #e22092;
}

.pink.cli-plugin-button:hover {
  background-color: #c81e82;
}

.green.cli-plugin-button,
.green.cli-plugin-button:visited {
  background-color: #91bd09;
}

.green.cli-plugin-button:hover {
  background-color: #749a02;
}

.red.cli-plugin-button,
.red.cli-plugin-button:visited {
  background-color: #e62727;
}

.red.cli-plugin-button:hover {
  background-color: #cf2525;
}

.orange.cli-plugin-button,
.orange.cli-plugin-button:visited {
  background-color: #ff5c00;
}

.orange.cli-plugin-button:hover {
  background-color: #d45500;
}

.blue.cli-plugin-button,
.blue.cli-plugin-button:visited {
  background-color: #2981e4;
}

.blue.cli-plugin-button:hover {
  background-color: #2575cf;
}

.yellow.cli-plugin-button,
.yellow.cli-plugin-button:visited {
  background-color: #ffb515;
}

.yellow.cli-plugin-button:hover {
  background-color: #fc9200;
}

.cli-plugin-button {
  margin-top: 5px;
}

.cli-bar-popup {
  -moz-background-clip: padding;
  -webkit-background-clip: padding;
  background-clip: padding-box;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  border-radius: 30px;
  padding: 20px;
}

.cli-powered_by_p {
  width: 100% !important;
  display: block !important;
  color: #333;
  clear: both;
  font-style: italic !important;
  font-size: 12px !important;
  margin-top: 15px !important;
}

.cli-powered_by_a {
  color: #333;
  font-weight: 600 !important;
  font-size: 12px !important;
}

.cli-plugin-main-link.cli-plugin-button {
  text-decoration: none;
  margin-left: 5px;
}



