/* ==========================================================================
   Grafein-Logia | Prenovljen CGP
   Barvna paleta: temno modra (#3D4A63), kremasta (#EAE5D9), modro-siva (#9FAFBC)
   Tipografija: Cormorant Garamond (naslovi) + DM Sans (besedilo)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;700&display=swap');

:root {
  --navy: #3D4A63;
  --navy-dark: #2E384D;
  --cream: #EAE5D9;
  --cream-light: #F5F1E8;
  --blue-gray: #9FAFBC;
  --blue-gray-light: #B8C4CE;
  --text: #2E384D;
  --text-muted: #5A6478;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(46, 56, 77, 0.08);
  --shadow-strong: 0 8px 30px rgba(46, 56, 77, 0.15);
  --transition: all 0.3s ease;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

/* Tipografija */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.9rem; }
h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0.8rem; }
h4 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 0.6rem; }
h5 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.1rem; color: var(--text); }
strong, b { font-weight: 600; color: var(--navy); }
em, i { font-style: italic; }

a { color: var(--navy); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-gray); }

ul, ol { margin: 0 0 1.2rem 1.4rem; }
li { margin-bottom: 0.4rem; }

blockquote {
  border-left: 3px solid var(--blue-gray);
  background: rgba(159, 175, 188, 0.12);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy);
  border-radius: 0 8px 8px 0;
}

/* Container */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== TOP BAR ========== */
.topbar {
  background: var(--navy-dark);
  color: var(--cream);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  font-weight: 300;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
}
.topbar a { color: var(--cream); }
.topbar a:hover { color: var(--blue-gray-light); }
.icon-inline {
  width: 1em; height: 1em; vertical-align: -2px;
  display: inline-block; stroke: currentColor;
}

/* ========== HEADER + NAV ========== */
.site-header {
  background: var(--navy);
  color: var(--cream);
  padding: 1.2rem 0;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.brand {
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand a { color: var(--cream); text-decoration: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-tag {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--blue-gray-light);
  margin-top: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav */
.main-nav { display: flex; align-items: center; }
.main-nav ul {
  display: flex; gap: 0.3rem; list-style: none; margin: 0; padding: 0;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; color: var(--cream); padding: 0.6rem 0.95rem; font-size: 0.92rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em;
  border-radius: 4px;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li.active > a {
  background: rgba(159, 175, 188, 0.18); color: var(--white);
}
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); min-width: 240px; box-shadow: var(--shadow-strong);
  border-radius: 6px; padding: 0.5rem 0; flex-direction: column !important;
  border-top: 3px solid var(--blue-gray); z-index: 999;
  opacity: 0; transform: translateY(-6px); transition: opacity 0.18s ease, transform 0.18s ease;
}
.dropdown li { margin: 0; }
.dropdown a {
  display: block; padding: 0.65rem 1.2rem; color: var(--text);
  font-size: 0.9rem; text-transform: none; letter-spacing: 0;
  font-family: var(--sans); font-weight: 400;
}
.dropdown a:hover { background: var(--cream); color: var(--navy); }
/* Dropdown is shown ONLY when its parent has .is-open class (set by JS) */
.main-nav > ul > li.is-open > .dropdown {
  display: flex; opacity: 1; transform: translateY(0);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: transparent; border: none; color: var(--cream);
  font-size: 1.6rem; cursor: pointer; padding: 0.3rem 0.6rem;
}

/* ========== HERO ========== */
.hero {
  background: var(--cream);
  padding: 4rem 0 3rem;
  position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.1; margin-bottom: 1.5rem; font-weight: 700;
}
.hero h1 em { font-style: italic; color: var(--blue-gray); font-weight: 500; }
.hero p.lead {
  font-size: 1.05rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 480px;
}
.hero-card {
  background: var(--blue-gray);
  color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.hero-card .info-item {
  display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem;
}
.hero-card .info-item:last-child { margin-bottom: 0; }
.hero-card .icon {
  width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--white); border-radius: 50%; color: var(--white);
}
.hero-card .icon svg {
  width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.hero-card .label {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.9; margin-bottom: 0.15rem;
}
.hero-card .value {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500;
}
.hero-card a { color: var(--white); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  border: none; cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--navy); color: var(--cream);
}
.btn-primary:hover {
  background: var(--navy-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent; color: var(--navy); border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--cream); }

/* ========== PAGE HEADER (for subpages) ========== */
.page-header {
  background: var(--navy);
  color: var(--cream);
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 0.5rem; }
.breadcrumb {
  font-size: 0.85rem; color: var(--blue-gray-light);
  margin: 0; padding: 0; list-style: none;
  display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue-gray-light); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li:not(:last-child)::after { content: ' / '; margin-left: 0.5rem; color: var(--blue-gray); }

/* ========== MAIN CONTENT ========== */
.section { padding: 4rem 0; }
.section-alt { background: var(--cream-light); }
.section-dark { background: var(--navy); color: var(--cream); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }

.content {
  max-width: 880px; margin: 0 auto;
}
.content p, .content ul, .content ol { font-size: 1.02rem; }

/* Cards */
.card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 1.5rem;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-strong); }
.card h3 { margin-top: 0; }
.card img {
  width: 100%; height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 1rem;
}

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Image cards */
.image-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; margin: 2rem 0;
}
.image-grid img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px;
  box-shadow: var(--shadow); transition: var(--transition);
}
.image-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow-strong); }

/* CTA section */
.cta-banner {
  background: var(--navy);
  color: var(--cream);
  padding: 3rem 0;
  text-align: center;
  margin: 3rem 0;
}
.cta-banner h2 { color: var(--white); font-style: italic; }
.cta-banner p { color: var(--blue-gray-light); max-width: 700px; margin: 0 auto; }
.cta-banner a { color: var(--cream); text-decoration: underline; }

/* Skill bar (for znanje, oprema, ...) */
.skill { margin-bottom: 1.2rem; }
.skill-label {
  display: flex; justify-content: space-between;
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem;
  margin-bottom: 0.4rem; color: var(--navy);
}
.skill-bar {
  background: rgba(159, 175, 188, 0.25); height: 10px; border-radius: 5px; overflow: hidden;
}
.skill-fill {
  background: linear-gradient(90deg, var(--blue-gray), var(--navy));
  height: 100%; border-radius: 5px;
}

/* Lists with checkmarks */
.check-list {
  list-style: none; margin: 1.2rem 0; padding: 0;
}
.check-list li {
  padding: 0.5rem 0 0.5rem 1.8rem; position: relative;
  border-bottom: 1px solid rgba(159, 175, 188, 0.25);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0.5rem;
  color: var(--blue-gray); font-weight: 700; font-size: 1.1rem;
}

/* Quote/highlight */
.highlight-box {
  background: var(--blue-gray);
  color: var(--white);
  padding: 1.8rem;
  border-radius: 10px;
  margin: 2rem 0;
}
.highlight-box h3, .highlight-box h4 { color: var(--white); }
.highlight-box p { color: rgba(255, 255, 255, 0.92); margin-bottom: 0; }

/* FAQ accordion */
.faq-item {
  background: var(--white); border-radius: 8px; margin-bottom: 0.8rem;
  box-shadow: var(--shadow); overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.5rem; cursor: pointer; font-weight: 500; font-family: var(--serif);
  font-size: 1.15rem; color: var(--navy); list-style: none; position: relative;
}
.faq-item summary::after {
  content: '+'; position: absolute; right: 1.5rem; font-size: 1.5rem;
  color: var(--blue-gray); transition: var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { background: var(--cream); }
.faq-content { padding: 0 1.5rem 1.5rem; }
.faq-content p, .faq-content ul { font-size: 0.95rem; color: var(--text-muted); }

/* Price list */
.price-list {
  background: var(--white); border-radius: 8px; padding: 1.5rem 2rem; box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.price-list h4 { color: var(--navy); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--blue-gray); }
.price-list ul { list-style: none; margin: 0; }
.price-list li {
  display: flex; justify-content: space-between; padding: 0.6rem 0;
  border-bottom: 1px dotted rgba(159, 175, 188, 0.4); font-size: 0.95rem;
}
.price-list li:last-child { border-bottom: none; }
.price-list .price { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.05rem; }

/* Client logos */
.clients-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem; align-items: center; margin: 2rem 0;
}
.client {
  background: var(--white); padding: 1.2rem; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; height: 100px;
  box-shadow: var(--shadow); transition: var(--transition);
}
.client:hover { transform: translateY(-3px); }
.client img { max-width: 100%; max-height: 60px; filter: grayscale(40%); transition: var(--transition); }
.client:hover img { filter: grayscale(0); }

/* Tabs */
.tabs {
  display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(159, 175, 188, 0.3);
}
.tab-btn {
  background: transparent; border: none; padding: 0.8rem 1.4rem;
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem; cursor: pointer;
  color: var(--text-muted); border-bottom: 3px solid transparent;
  transition: var(--transition); margin-bottom: -2px;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--navy); }
.tab-panel { display: none; padding: 1.5rem 0; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem;
}
.footer-col h4 {
  color: var(--white); margin-bottom: 1rem; font-size: 1.15rem;
  border-bottom: 1px solid rgba(159, 175, 188, 0.3); padding-bottom: 0.4rem;
}
.footer-col p, .footer-col a, .footer-col li {
  color: var(--blue-gray-light); font-size: 0.92rem;
}
.footer-col a:hover { color: var(--white); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(159, 175, 188, 0.2);
  padding-top: 1.5rem; text-align: center;
  font-size: 0.85rem; color: var(--blue-gray);
}
.social-links { display: flex; gap: 0.6rem; margin-top: 0.8rem; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(159, 175, 188, 0.15);
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
  color: var(--cream); transition: var(--transition);
}
.social-links a:hover { background: var(--blue-gray); color: var(--white); }

/* ========== RESPONSIVE / MOBILE ========== */
@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 2.5rem 0; }
  .main-nav {
    position: fixed; top: 0; right: -100%; width: 88%; max-width: 360px; height: 100vh;
    background: var(--navy); flex-direction: column; align-items: flex-start; padding: 5rem 1.5rem 2rem;
    overflow-y: auto; transition: right 0.3s ease; z-index: 999; box-shadow: -10px 0 30px rgba(0,0,0,0.2);
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; width: 100%; gap: 0.2rem; }
  .main-nav > ul > li { width: 100%; }
  .main-nav > ul > li > a {
    padding: 0.75rem 1rem; font-size: 0.95rem; border-bottom: 1px solid rgba(159, 175, 188, 0.15);
  }
  .dropdown {
    position: static; box-shadow: none; background: rgba(0,0,0,0.18);
    border-top: none; border-radius: 0; min-width: 0; padding: 0.3rem 0; max-height: 0; overflow: hidden;
    opacity: 1; transform: none;
    transition: max-height 0.3s ease; display: flex !important;
  }
  .main-nav > ul > li.is-open > .dropdown { max-height: 1000px; }
  .dropdown a {
    color: var(--cream); padding: 0.6rem 1.5rem 0.6rem 2rem; font-size: 0.88rem;
  }
  .dropdown a:hover { background: rgba(159, 175, 188, 0.15); color: var(--white); }
  .nav-toggle { display: block; }
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; }
  .nav-overlay.show { display: block; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }
  .container { padding: 0 1rem; }
  .section { padding: 2.5rem 0; }
  .topbar { font-size: 0.78rem; }
  .topbar .container { justify-content: center; }
  .hero h1 { font-size: 2.2rem; }
  .hero-card { padding: 1.5rem; }
  .price-list { padding: 1.2rem; }
  .footer-grid { gap: 1.5rem; }
  .image-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .image-grid img { height: auto; }
  blockquote { padding: 1rem 1.2rem; font-size: 1.05rem; }
}

@media (max-width: 400px) {
  .topbar .container { flex-direction: column; }
}
