/*
Theme Name: 282
Theme URI: https://282.com.hr
Author: 282
Author URI: https://282.com.hr
Description: WordPress tema za profesionalnu video montazu, s landing stranicom, podrskom za pages, posts, arhive, Elementor template lokacije i editable slikama/tekstovima kroz Customizer.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: obrt282
*/

:root {
  --ink: #f2f1ed;
  --ink-2: #d6d2ca;
  --muted: #a3a09a;
  --paper: #070708;
  --paper-2: #0d0e10;
  --surface: #111215;
  --dark: #020203;
  --dark-2: #0b0c0f;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(255, 255, 255, 0.14);
  --accent: #f4f1ea;
  --accent-soft: #c2bdb4;
  --steel: #4b4d52;
  --warm: #8e806b;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-sm: 10px;
  --container: min(1180px, calc(100% - 40px));
}

* {
  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;
}

body.menu-open {
  overflow: hidden;
}

body.admin-bar .site-header {
  top: 48px;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 112px 0;
  background: var(--paper);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  padding: 9px 10px 9px 16px;
  color: #fff;
  background: rgba(8, 9, 11, 0.78);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand-image {
  width: auto;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: 42px;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.custom-logo {
  width: auto;
  max-height: 44px;
  object-fit: contain;
}

.nav,
.nav ul {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.nav ul,
.mobile-nav ul {
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a,
.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  font-weight: 760;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.header-cta {
  color: var(--dark);
  background: #fff;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.mobile-nav {
  position: fixed;
  inset: 96px 16px auto;
  z-index: 45;
  display: none;
  padding: 10px;
  background: rgba(8, 9, 11, 0.96);
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.mobile-nav a {
  display: block;
  padding: 15px 16px;
  color: #fff;
  border-radius: 12px;
  font-weight: 820;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-open .mobile-nav {
  display: block;
}

.site-main {
  min-height: 70vh;
}

.hero {
  position: relative;
  min-height: 860px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.hero .container {
  width: 100%;
}

.hero-stage {
  position: relative;
  display: grid;
  min-height: 860px;
  overflow: hidden;
  background: var(--dark);
}

.hero-image {
  position: absolute;
  inset: 0;
  background-position: center right;
  background-size: cover;
  transform: scale(1.01);
  filter: saturate(0.28) brightness(0.78) contrast(1.08);
  animation: heroDrift 18s ease-out both;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.95) 0%, rgba(8, 9, 11, 0.76) 42%, rgba(8, 9, 11, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 9, 11, 0.92) 0%, rgba(8, 9, 11, 0.18) 45%, rgba(8, 9, 11, 0.05) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  width: var(--container);
  max-width: none;
  margin: 0 auto;
  padding: 130px 0 190px;
}

.hero-content > * {
  max-width: 740px;
}

.hero-logo,
.hero-content .eyebrow,
.hero-content h1,
.hero-content .hero-copy,
.hero-content .actions {
  animation: heroRise 720ms ease both;
}

.hero-logo {
  width: 92px;
  height: 92px;
  margin-bottom: 24px;
  object-fit: contain;
  border-radius: 10px;
}

.hero-content h1 {
  animation-delay: 90ms;
}

.hero-content .hero-copy {
  animation-delay: 170ms;
}

.hero-content .actions {
  animation-delay: 250ms;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 860;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.process .eyebrow,
.privacy .eyebrow,
.page-hero .eyebrow {
  color: var(--accent-soft);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(3.4rem, 7.2vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.45rem, 4.9vw, 5.8rem);
  line-height: 0.93;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.14rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
}

.button-primary {
  color: var(--dark);
  background: var(--accent);
}

.button-primary:hover {
  background: #d8d2c6;
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-dark);
}

.hero-meta {
  position: absolute;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  left: max(20px, calc((100vw - 1180px) / 2));
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(18px);
  animation: heroRise 760ms ease 320ms both;
}

.hero-meta div {
  padding: 18px 20px;
  background: rgba(8, 9, 11, 0.58);
}

.hero-meta strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.34rem;
}

.hero-meta span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 74px;
  align-items: start;
}

.section-lead {
  max-width: 760px;
  color: inherit;
  font-size: 1.08rem;
}

.dark-panel {
  padding: 32px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dark-panel .section-lead {
  color: var(--muted);
}

.feature-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 28px;
  object-fit: cover;
  border-radius: 14px;
  filter: saturate(0.22) brightness(0.74) contrast(1.08);
}

.service-grid,
.privacy-grid,
.reason-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 46px;
}

.service-card,
.privacy-card,
.reason-card,
.post-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(10, 12, 16, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover,
.reason-card:hover,
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.28);
}

.privacy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
}

.service-card {
  min-height: 292px;
}

.service-card::before,
.privacy-card::before,
.reason-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}

.kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 68px;
  color: var(--dark);
  background: var(--accent);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card p,
.privacy-card p,
.reason-card p {
  margin-bottom: 0;
}

.process {
  color: #fff;
  background: var(--dark);
}

.process p {
  color: rgba(255, 255, 255, 0.68);
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 24px;
  background: var(--dark-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.step-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--dark);
  background: var(--accent);
  border-radius: 50%;
  font-weight: 900;
}

.privacy {
  color: #fff;
  background: #050505;
}

.privacy p {
  color: rgba(255, 255, 255, 0.68);
}

.privacy-grid {
  grid-template-columns: repeat(3, 1fr);
}

.privacy-card {
  min-height: 250px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.privacy-card::before {
  background: var(--warm);
}

.privacy-card .kicker {
  color: var(--dark);
  background: var(--accent);
  margin-bottom: 54px;
}

.reason-grid {
  grid-template-columns: repeat(3, 1fr);
}

.reason-card {
  min-height: 220px;
}

.contact-box {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 40px;
  padding: 42px;
  color: #fff;
  background: var(--dark);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.contact-box p {
  color: rgba(255, 255, 255, 0.68);
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  font-weight: 850;
}

.contact-lines a {
  width: fit-content;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  outline: 0;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.site-footer {
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.58);
  background: var(--dark);
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.page-hero {
  padding: 174px 0 78px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.94), rgba(8, 9, 11, 0.72)),
    var(--dark);
}

.page-hero h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.6vw, 6.8rem);
}

.page-hero .section-lead,
.page-hero p {
  color: rgba(255, 255, 255, 0.68);
}

.content-section {
  padding-top: 54px;
}

.narrow {
  max-width: 920px;
}

.post-grid {
  grid-template-columns: repeat(3, 1fr);
}

.post-card {
  display: grid;
  padding: 0;
}

.post-card-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  color: var(--dark);
  background: var(--accent);
  font-weight: 900;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.035);
}

.post-card-body {
  padding: 24px;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.entry-meta a {
  color: var(--accent);
}

.post-card-title {
  margin-bottom: 14px;
  font-size: 1.55rem;
  line-height: 1.06;
}

.post-card-excerpt p {
  margin-bottom: 18px;
}

.text-link {
  color: var(--accent);
  font-weight: 850;
}

.entry-shell {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.entry-featured {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.entry-featured img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.entry-content {
  padding: 44px;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.55em;
  color: var(--ink);
  letter-spacing: -0.035em;
}

.entry-content h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.entry-content h3 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.entry-content p,
.entry-content li {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
}

.entry-content blockquote {
  margin: 34px 0;
  padding: 24px 28px;
  color: var(--ink);
  background: #f0ebe1;
  border-left: 4px solid var(--accent);
  border-radius: 14px;
}

.entry-content img,
.entry-content .wp-block-image img,
.entry-content .wp-block-cover,
.entry-content .wp-block-gallery {
  border-radius: 16px;
}

.entry-content .alignwide {
  margin-left: calc((920px - min(100%, 1120px)) / 2);
  max-width: 1120px;
}

.entry-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
}

.wp-caption,
.wp-block-image figcaption {
  color: var(--muted);
  font-size: 0.9rem;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.pagination a,
.pagination span,
.nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.pagination .current {
  color: var(--dark);
  background: var(--accent);
}

.post-navigation {
  margin-top: 34px;
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation a {
  display: block;
  min-height: auto;
  padding: 22px;
  border-radius: 18px;
}

.post-navigation span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.search-form {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin-top: 28px;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  outline: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.elementor-full-width-shell,
.elementor-canvas-main {
  width: 100%;
  min-height: 70vh;
}

.elementor-full-width-shell {
  padding-top: 96px;
}

.elementor-content-shell {
  width: 100%;
}

.elementor-full-width-shell .entry-content,
.elementor-content-shell .entry-content {
  max-width: none;
}

body.elementor-page .site-main {
  overflow-x: clip;
}

body.elementor-canvas-shell {
  background: var(--paper);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.045) translateX(10px);
  }

  to {
    transform: scale(1.01) translateX(0);
  }
}

@media (max-width: 980px) {
  .nav,
  .header-cta {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .mobile-toggle {
    display: block;
  }

  .hero,
  .hero-stage {
    min-height: 780px;
  }

  .hero-content {
    padding: 132px 0 190px;
  }

  .hero-meta,
  .split,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    max-width: none;
  }

  .service-grid,
  .privacy-grid,
  .reason-grid,
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  body.admin-bar .site-header {
    top: 56px;
  }

  .section {
    padding: 76px 0;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.3rem, 11vw, 3.8rem);
  }

  .hero,
  .hero-stage {
    min-height: 760px;
  }

  .hero-image {
    background-position: 63% center;
  }

  .hero-content {
    padding: 128px 0 250px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .actions .button,
  .contact-form .button {
    width: 100%;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    bottom: 18px;
    gap: 1px;
  }

  .service-grid,
  .privacy-grid,
  .reason-grid,
  .post-grid,
  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .service-card,
  .privacy-card,
  .reason-card,
  .dark-panel,
  .contact-box,
  .entry-content {
    padding: 24px;
  }

  .kicker {
    margin-bottom: 42px;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-top: 138px;
    padding-bottom: 48px;
  }

  .search-form {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

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