/*
Theme Name: NIKELA
Theme URI: https://example.si/
Author: Codex
Description: Premium poslovno-pravna WordPress tema za NIKELA z blog FAQ podporo in WooCommerce digitalnimi produkti.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: nikela
*/

:root {
  --ink: #201a17;
  --muted: #6f625b;
  --line: #e8e1dc;
  --paper: #fbfaf8;
  --soft: #f4f1ee;
  --brown: #8a664f;
  --brown-dark: #5b4032;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 22px 55px rgba(32, 26, 23, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 248, .93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 225, 220, .85);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-grid; gap: 1px; line-height: 1; }
.brand strong { font-size: 1.55rem; font-weight: 720; }
.brand span { font-size: .69rem; color: var(--brown); text-transform: uppercase; letter-spacing: .08em; }
.nav-menu, .nav-menu ul { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--muted); font-size: .95rem; }
.nav-menu a:hover { color: var(--ink); }
.button, .wp-block-button__link, button, input[type="submit"], .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px 20px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.brown { background: var(--brown-dark); border-color: var(--brown-dark); }
.section { padding: 88px 0; }
.eyebrow { margin: 0 0 14px; color: var(--brown); font-size: .77rem; font-weight: 720; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(2.45rem, 7vw, 5.2rem); line-height: .98; letter-spacing: 0; }
h2 { margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: 0; }
h3 { margin-bottom: 10px; font-size: 1.18rem; line-height: 1.25; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); max-width: 720px; }
.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: end;
  padding: 74px 0 46px;
  background:
    linear-gradient(90deg, rgba(251,250,248,.98) 0%, rgba(251,250,248,.86) 42%, rgba(251,250,248,.2) 68%),
    var(--hero-image) center center / cover no-repeat;
}
.hero-copy { max-width: 710px; padding-bottom: 8vh; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.proof-item { background: rgba(255,255,255,.84); padding: 18px; }
.proof-item strong { display: block; font-size: 1.35rem; line-height: 1; }
.proof-item span { color: var(--muted); font-size: .9rem; }
.section-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(260px, .55fr); gap: 46px; align-items: end; margin-bottom: 34px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 rgba(32,26,23,.03); }
.card-media { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 24px; }
.card p { color: var(--muted); }
.text-link { color: var(--brown-dark); font-weight: 700; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.reason { padding: 22px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); }
.reason span { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 16px; background: var(--soft); color: var(--brown-dark); border-radius: 50%; font-weight: 800; }
.band { background: var(--soft); border-block: 1px solid var(--line); }
label { display: grid; gap: 7px; color: var(--muted); font-size: .9rem; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); padding: 13px 14px; font: inherit; }
textarea { min-height: 138px; resize: vertical; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .88rem; }
.checkbox input { width: auto; margin-top: 5px; }
.blog-grid, .products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card, .product-card { padding: 24px; min-height: 230px; }
.article-card time { color: var(--brown); font-size: .85rem; font-weight: 650; }
.page-hero { padding: 78px 0 48px; background: var(--soft); border-bottom: 1px solid var(--line); }
.content { width: min(860px, calc(100% - 40px)); margin: 0 auto; font-size: 1.05rem; }
.content a { color: var(--brown-dark); text-decoration: underline; }
.content img, .service-image { margin: 28px 0; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-photo { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); object-fit: cover; width: 100%; }
.contact-portrait { aspect-ratio: 4 / 5; object-position: center top; }
.contact-office { aspect-ratio: 16 / 10; margin-top: 18px; }
.contact-note { margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.nikela-faqs { display: grid; gap: 12px; margin: 34px 0; }
.nikela-faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 18px 20px; }
.nikela-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.nikela-faq div { color: var(--muted); padding-top: 10px; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 18px; }
.woocommerce div.product { width: min(1160px, calc(100% - 40px)); margin: 60px auto; }
.woocommerce div.product .product_title { font-size: clamp(2rem, 5vw, 4rem); }
.woocommerce div.product p.price, .woocommerce ul.products li.product .price { color: var(--brown-dark); font-weight: 800; }
.footer { background: var(--ink); color: var(--white); padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.footer p, .footer a { color: rgba(255,255,255,.72); }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.62); font-size: .9rem; }
@media (max-width: 860px) {
  .header-inner { align-items: flex-start; padding: 18px 0; flex-direction: column; }
  .nav-menu, .nav-menu ul { flex-wrap: wrap; gap: 14px; }
  .hero { min-height: auto; padding: 72px 0 28px; background-position: center; }
  .hero-copy { padding-bottom: 38px; }
  .hero-proof, .section-head, .cards, .split, .blog-grid, .products-grid, .footer-grid { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1160px); }
  .button { width: 100%; }
}
