/*
Theme Name: Zasplet Theme
Theme URI: https://zasplet.si/
Author: zasplet.si
Author URI: https://zasplet.si/
Description: Hitro, semantično in WordPress-prijazno block theme ogrodje za IT diagnostiko in reševanje spletnih težav.
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 8.0
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zasplet-theme
*/

:root {
  --zasplet-navy: #0a192f;
  --zasplet-cyan: #00b4d8;
  --zasplet-mint: #00f5d4;
  --zasplet-light: #f8fafc;
  --zasplet-ink: #07111f;
  --zasplet-text: #172033;
  --zasplet-muted: #5b6577;
  --zasplet-line: rgba(10, 25, 47, 0.12);
  --zasplet-card: rgba(255, 255, 255, 0.94);
  --zasplet-shadow: 0 20px 60px rgba(10, 25, 47, 0.12);
  --zasplet-radius: 8px;
  --zasplet-container: 1120px;
  --zasplet-section-y: clamp(5rem, 8vw, 8rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--zasplet-light);
  color: var(--zasplet-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.zasplet-site {
  overflow-x: clip;
  background:
    radial-gradient(circle at 10% 18%, rgba(0, 180, 216, 0.12), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--zasplet-light) 48%, #ffffff 100%);
}

:root :where(.wp-site-blocks) > :where(*) {
  margin-block-start: 0;
}

:root :where(.wp-site-blocks) :where(.is-layout-flow) > :where(.zasplet-header, .zasplet-hero, .zasplet-site, .zasplet-footer, .zasplet-section) {
  margin-block-start: 0;
}

.zasplet-container {
  width: min(100% - 2rem, var(--zasplet-container));
  margin-inline: auto;
}

.zasplet-section {
  padding-block: var(--zasplet-section-y);
}

.zasplet-section--soft {
  background: linear-gradient(180deg, #f8fafc 0%, #edf6fa 100%);
}

.zasplet-section__eyebrow {
  margin: 0 0 0.75rem;
  color: #006b82;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zasplet-section__title {
  margin: 0;
  color: var(--zasplet-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.zasplet-section__lead {
  max-width: 42rem;
  margin: 1rem auto 0;
  color: var(--zasplet-muted);
  font-size: 1.05rem;
}

.zasplet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.35rem;
  padding: 0.9rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--zasplet-radius);
  background: linear-gradient(135deg, var(--zasplet-cyan), var(--zasplet-mint));
  color: var(--zasplet-navy);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 180, 216, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.wp-block-button.zasplet-button {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.wp-block-button.zasplet-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.9rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--zasplet-radius);
  background: linear-gradient(135deg, var(--zasplet-cyan), var(--zasplet-mint));
  color: var(--zasplet-navy);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 180, 216, 0.28);
}

.zasplet-button:hover,
.zasplet-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 245, 212, 0.26);
  filter: saturate(1.05);
}

.zasplet-button--dark {
  background: var(--zasplet-navy);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(10, 25, 47, 0.22);
}

.zasplet-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.zasplet-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .zasplet-animate {
    opacity: 1;
    transform: none;
  }
}
