/*
Theme Name: JPdizajn
Theme URI: https://jpdizajn.sk
Author: JPdizajn
Author URI: https://jpdizajn.sk
Description: Vlastná WordPress téma pre JPdizajn — dizajnové štúdio nábytku a interiérov na mieru. Editovateľný obsah cez ACF.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jpdizajn
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ========================================
   VARIABLES & RESET
   ======================================== */

:root {
  --bg:      #F2EEE8;
  --sur:     #E0DAD0;
  --tx:      #28261E;
  --ac:      #7A7060;
  --mu:      #B4ACA0;
  --bdr:     #D4CEC6;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--tx);
  font-size: 14px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ========================================
   NAVIGATION
   ======================================== */

.jp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 40px; height: 60px;
  background: var(--bg);
  border-bottom: 0.5px solid var(--bdr);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.jp-nav--transparent {
  background: transparent;
  border-bottom: 0.5px solid rgba(255,255,255,0.15);
}

.jp-nav--transparent.scrolled {
  background: rgba(40,38,30,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}

.jp-logo {
  width: 38px; height: 38px;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: .04em;
  color: var(--tx); transition: color 0.3s;
}

.jp-nav--transparent .jp-logo { color: #fff; }

.jp-nav__menu { display: flex; gap: 36px; }

.jp-nav__menu li a {
  font-size: 11px; font-weight: 400; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ac); transition: color 0.2s;
}

.jp-nav--transparent .jp-nav__menu li a { color: rgba(255,255,255,0.7); }
.jp-nav__menu li a:hover,
.jp-nav__menu li.current-menu-item a,
.jp-nav__menu li.current_page_item a { color: var(--tx); }
.jp-nav--transparent .jp-nav__menu li a:hover,
.jp-nav--transparent .jp-nav__menu li.current-menu-item a,
.jp-nav--transparent .jp-nav__menu li.current_page_item a { color: #fff; }

/* Mobile menu toggle */
.jp-nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 30px; height: 20px; position: relative;
}
.jp-nav__toggle span {
  display: block; width: 100%; height: 1.5px;
  background: var(--tx); position: absolute; left: 0;
  transition: transform 0.3s, opacity 0.3s;
}
.jp-nav--transparent .jp-nav__toggle span { background: #fff; }
.jp-nav__toggle span:nth-child(1) { top: 0; }
.jp-nav__toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.jp-nav__toggle span:nth-child(3) { bottom: 0; }

.jp-nav__toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.jp-nav__toggle.open span:nth-child(2) { opacity: 0; }
.jp-nav__toggle.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ========================================
   HERO
   ======================================== */

.jp-hero {
  position: relative; min-height: 100vh;
  overflow: hidden; display: flex; align-items: flex-end;
}

.jp-hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #2C2A22 0%, #4a4438 40%, #6b5e4e 100%);
}

.jp-hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
}

.jp-hero__grid {
  position: absolute; inset: 0; opacity: 0.06;
  background-image:
    linear-gradient(var(--bdr) 1px, transparent 1px),
    linear-gradient(90deg, var(--bdr) 1px, transparent 1px);
  background-size: 60px 60px;
}

.jp-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,26,20,0.85) 0%, rgba(28,26,20,0.2) 50%, transparent 100%);
}

.jp-hero__content {
  position: relative; z-index: 2;
  padding: 0 40px 64px; width: 100%;
}

.jp-hero__eyebrow {
  font-size: 14px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(242,238,232,0.5); margin-bottom: 16px; font-weight: 400;
}

.jp-hero__h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 300; color: #F2EEE8; line-height: 1.0;
  margin-bottom: 24px;
}

.jp-hero__h1 em { font-style: italic; color: var(--mu); }

.jp-hero__sub {
  font-size: 17px; color: rgba(242,238,232,0.55);
  max-width: 460px; line-height: 1.75; margin-bottom: 36px;
  font-weight: 300;
}

.jp-hero__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.jp-btn {
  display: inline-block; padding: 16px 40px;
  font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  font-family: var(--sans); cursor: pointer; border: none; transition: all 0.2s;
}

.jp-btn--primary { background: #F2EEE8; color: var(--tx); }
.jp-btn--primary:hover { background: var(--mu); }

.jp-btn--ghost {
  background: transparent; color: rgba(242,238,232,0.6);
  border: 0.5px solid rgba(242,238,232,0.25);
}
.jp-btn--ghost:hover { color: #F2EEE8; border-color: rgba(242,238,232,0.6); }

.jp-btn--dark { background: var(--tx); color: var(--bg); }
.jp-btn--dark:hover { background: var(--ac); }

.jp-btn--cta {
  padding: 18px 56px; font-size: 13px; letter-spacing: .12em;
  background: var(--tx); color: var(--bg); flex-shrink: 0;
}
.jp-btn--cta:hover { background: var(--ac); }

.jp-hero__scroll {
  position: absolute; right: 40px; bottom: 64px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(242,238,232,0.4);
}

.jp-hero__scroll-line {
  width: 0.5px; height: 48px;
  background: rgba(242,238,232,0.3);
  animation: jp-scrollLine 1.8s ease-in-out infinite;
}

@keyframes jp-scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.3; }
  50% { transform: scaleY(0.5); opacity: 0.8; }
}

.jp-hero__scroll-label {
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  writing-mode: vertical-rl; color: rgba(242,238,232,0.35);
}

/* ========================================
   SERVICES
   ======================================== */

.jp-services { border-bottom: 0.5px solid var(--bdr); }

.jp-services__head {
  padding: 32px 40px 0;
}

.jp-section-label {
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--mu);
}

.jp-services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 0.5px solid var(--bdr); margin-top: 24px;
}

.jp-svc {
  padding: 40px 36px 48px;
  border-right: 0.5px solid var(--bdr);
  transition: background 0.25s;
}

.jp-svc:last-child { border-right: none; }
.jp-svc:hover { background: var(--sur); }

.jp-svc__num {
  font-family: var(--serif); font-size: 48px; font-weight: 300;
  color: var(--bdr); line-height: 1; margin-bottom: 20px;
  transition: color 0.25s;
}

.jp-svc:hover .jp-svc__num { color: var(--mu); }

.jp-svc__title {
  font-family: var(--serif); font-size: 28px; font-weight: 400;
  color: var(--tx); margin-bottom: 12px; line-height: 1.2;
}

.jp-svc__desc {
  font-size: 15px; color: var(--ac); line-height: 1.8;
  margin-bottom: 24px; font-weight: 300;
}

.jp-svc__tag {
  font-size: 14px; color: var(--mu);
  padding: 9px 0;
  border-top: 0.5px solid var(--bdr);
  letter-spacing: .03em;
}

.jp-svc__tag:last-child { border-bottom: 0.5px solid var(--bdr); }

/* ========================================
   PROJECTS SLIDER (Homepage)
   ======================================== */

.jp-slider-section {
  padding: 72px 0;
  border-bottom: 0.5px solid var(--bdr);
  overflow: hidden;
}

.jp-slider__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 40px; margin-bottom: 40px;
}

.jp-slider__title {
  font-family: var(--serif); font-size: 36px; font-weight: 300; color: var(--tx);
}

.jp-view-all {
  font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ac); display: flex; align-items: center; gap: 8px;
  transition: color 0.2s;
}

.jp-view-all:hover { color: var(--tx); }
.jp-view-all::after { content: '→'; }

.jp-slider__wrap { overflow: hidden; padding: 0 40px; }

.jp-slider__track {
  display: flex; gap: 20px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.jp-slide {
  position: relative; cursor: pointer; overflow: hidden;
  flex: 0 0 calc((100% - 40px) / 3);
  aspect-ratio: 16/9; background: var(--sur);
}

.jp-slide__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}

.jp-slide:hover .jp-slide__img { transform: scale(1.03); }

.jp-slide__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--sur);
}

.jp-slide__placeholder::after {
  content: '';
  width: 40%; height: 35%; background: var(--mu); opacity: 0.25;
}

.jp-slide__info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 20px 14px;
  background: rgba(242,238,232,0.92);
  opacity: 0; transition: opacity 0.3s;
  display: flex; flex-direction: column; gap: 2px;
}

.jp-slide:hover .jp-slide__info { opacity: 1; }

.jp-slide__name {
  font-family: var(--serif); font-size: 22px; color: var(--tx); font-weight: 400;
}

.jp-slide__cat {
  font-size: 12px; color: var(--ac);
  letter-spacing: .12em; text-transform: uppercase;
}

.jp-slider__dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 28px;
}

.jp-slider__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bdr); border: none; cursor: pointer;
  transition: background 0.3s, transform 0.3s; padding: 0;
}

.jp-slider__dot.active { background: var(--ac); transform: scale(1.3); }

/* ========================================
   CTA STRIP
   ======================================== */

.jp-cta-section {
  padding: 72px 40px;
  display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 120px;
}

.jp-cta-text { text-align: left; }

.jp-cta-heading {
  font-family: var(--serif); font-size: 42px; font-weight: 300;
  color: var(--tx); line-height: 1.1; margin-bottom: 8px;
}

.jp-cta-heading em {
  font-style: italic; font-weight: 300; color: var(--ac);
}

.jp-cta-sub { font-size: 13px; color: var(--ac); font-weight: 300; }

.jp-cta-btn {
  flex-shrink: 0; display: inline-block; padding: 20px 60px;
  font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  font-family: var(--sans); text-decoration: none; color: #F2EEE8;
  background: linear-gradient(135deg, #28261E 0%, #3d3a2f 100%);
  box-shadow: 0 4px 20px rgba(40,38,30,0.25), 0 1px 4px rgba(40,38,30,0.15);
  transition: all 0.3s ease; cursor: pointer;
}

/* ========================================
   PAGE HERO (sub-pages)
   ======================================== */

.jp-page-hero {
  padding: 120px 40px 48px;
  border-bottom: 0.5px solid var(--bdr);
}

.jp-page-hero__eyebrow {
  font-size: 14px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mu); margin-bottom: 16px;
}

.jp-page-hero__h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300; color: var(--tx); line-height: 1.1; margin-bottom: 16px;
}

.jp-page-hero__sub {
  font-size: 17px; color: var(--ac); font-weight: 300;
  max-width: 560px; line-height: 1.75;
}

/* ========================================
   PROJECTS GRID (Projekty page)
   ======================================== */

.jp-proj-filter {
  display: flex; gap: 0;
  border-bottom: 0.5px solid var(--bdr);
  padding: 0 40px; overflow-x: auto;
}

.jp-proj-filter__btn {
  padding: 16px 0; margin-right: 32px;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mu); cursor: pointer; border: none; background: none;
  font-family: var(--sans); white-space: nowrap;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.jp-proj-filter__btn.active,
.jp-proj-filter__btn:hover { color: var(--tx); border-bottom-color: var(--tx); }

.jp-masonry {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--bdr);
  max-width: 1100px; margin: 40px auto;
  border: 0.5px solid var(--bdr);
}

.jp-masonry__item {
  background: var(--bg); cursor: pointer; overflow: hidden;
  position: relative; transition: opacity 0.3s;
}

.jp-masonry__item[data-hidden="true"] { display: none; }

.jp-masonry__img {
  width: 100%; height: 280px; object-fit: cover;
  display: block; background: var(--sur);
  transition: transform 0.5s ease;
}

.jp-masonry__item:hover .jp-masonry__img { transform: scale(1.03); }

.jp-masonry__placeholder {
  width: 100%; height: 280px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sur);
}

.jp-masonry__placeholder::after {
  content: '';
  width: 40%; height: 35%; background: var(--mu); opacity: 0.25;
}

.jp-masonry__overlay {
  position: absolute; inset: 0; top: 0; bottom: auto;
  height: 280px;
  background: rgba(28,26,20,0.55);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: center; justify-content: center;
}

.jp-masonry__item:hover .jp-masonry__overlay { opacity: 1; }

.jp-masonry__overlay-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(242,238,232,0.6);
  display: flex; align-items: center; justify-content: center;
  color: #F2EEE8; font-size: 20px;
}

.jp-masonry__meta { padding: 16px 20px 22px; background: var(--bg); }

.jp-masonry__cat {
  font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mu); margin-bottom: 4px;
}

.jp-masonry__name {
  font-family: var(--serif); font-size: 24px; font-weight: 400;
  color: var(--tx); margin-bottom: 2px;
}

.jp-masonry__year { font-size: 14px; color: var(--mu); }

/* ========================================
   KONTAKT
   ======================================== */

.jp-kontakt {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 60px); margin-top: 60px;
}

.jp-kontakt__left {
  padding: 80px 56px; background: var(--tx);
  display: flex; flex-direction: column; justify-content: space-between;
}

.jp-kontakt__logo {
  font-family: var(--serif); font-size: 13px; font-weight: 300;
  color: rgba(242,238,232,0.4); letter-spacing: .06em;
}

.jp-kontakt__eyebrow {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(242,238,232,0.35); margin-bottom: 20px;
}

.jp-kontakt__h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 300; color: #F2EEE8; line-height: 1.1; margin-bottom: 20px;
}

.jp-kontakt__h1 em { font-style: italic; color: var(--mu); }

.jp-kontakt__desc {
  font-size: 13px; color: rgba(242,238,232,0.45);
  line-height: 1.8; max-width: 360px; font-weight: 300; margin-bottom: 40px;
}

.jp-kontakt__detail {
  padding: 14px 0;
  border-top: 0.5px solid rgba(242,238,232,0.1);
  display: flex; justify-content: space-between; align-items: baseline;
}

.jp-kontakt__detail:last-child {
  border-bottom: 0.5px solid rgba(242,238,232,0.1);
}

.jp-kontakt__label {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(242,238,232,0.3);
}

.jp-kontakt__val { font-size: 13px; color: rgba(242,238,232,0.7); }
.jp-kontakt__val a { color: rgba(242,238,232,0.7); }
.jp-kontakt__val a:hover { color: #F2EEE8; }

.jp-kontakt__footer { font-size: 11px; color: rgba(242,238,232,0.2); }

.jp-kontakt__right {
  padding: 80px 56px; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
}

.jp-form__eyebrow {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mu); margin-bottom: 40px;
}

.jp-form__group { margin-bottom: 28px; }

.jp-form__label {
  display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mu); margin-bottom: 8px;
}

.jp-form__input,
.jp-form__textarea {
  width: 100%; padding: 12px 0;
  background: transparent; border: none;
  border-bottom: 0.5px solid var(--bdr);
  font-size: 14px; color: var(--tx); font-family: var(--sans);
  font-weight: 300; outline: none;
  transition: border-color 0.2s;
}

.jp-form__input:focus,
.jp-form__textarea:focus { border-bottom-color: var(--ac); }

.jp-form__input::placeholder,
.jp-form__textarea::placeholder { color: var(--mu); }

.jp-form__textarea { resize: none; min-height: 100px; display: block; }

.jp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.jp-form__submit {
  display: inline-block; padding: 14px 48px;
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  background: var(--tx); color: var(--bg);
  border: none; cursor: pointer; font-family: var(--sans);
  margin-top: 8px; transition: background 0.2s;
}

.jp-form__submit:hover { background: var(--ac); }

.jp-form__message {
  margin-top: 16px; padding: 12px; font-size: 13px; font-weight: 300; display: none;
}
.jp-form__message--success { color: #4a7c59; background: rgba(74,124,89,0.08); display: block; }
.jp-form__message--error { color: #a04040; background: rgba(160,64,64,0.08); display: block; }

/* CF7 styling override */
.jp-kontakt__right .wpcf7 input[type="text"],
.jp-kontakt__right .wpcf7 input[type="email"],
.jp-kontakt__right .wpcf7 textarea {
  width: 100%; padding: 12px 0;
  background: transparent; border: none;
  border-bottom: 0.5px solid var(--bdr);
  font-size: 14px; color: var(--tx); font-family: var(--sans);
  font-weight: 300; outline: none;
}

.jp-kontakt__right .wpcf7 input[type="submit"] {
  display: inline-block; padding: 14px 48px;
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  background: var(--tx); color: var(--bg);
  border: none; cursor: pointer; font-family: var(--sans);
}

/* ========================================
   FOOTER
   ======================================== */

.jp-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px;
  border-top: 0.5px solid var(--bdr);
}

.jp-footer__copy { font-size: 13px; color: var(--mu); }

.jp-footer__links { display: flex; gap: 24px; }
.jp-footer__links a,
.jp-footer__links span { font-size: 13px; color: var(--mu); }
.jp-footer__links a:hover { color: var(--ac); }

/* ========================================
   LIGHTBOX
   ======================================== */

.jp-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(28, 26, 20, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}

.jp-lightbox.open {
  display: flex;
  opacity: 1;
}

.jp-lightbox__content {
  position: relative;
  max-width: 90vw; max-height: 85vh;
  display: flex; flex-direction: column; align-items: center;
}

.jp-lightbox__img {
  max-width: 90vw; max-height: 78vh;
  object-fit: contain;
  border: none; display: block;
  animation: jpLbFadeIn 0.3s ease;
}

@keyframes jpLbFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.jp-lightbox__info {
  margin-top: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}

.jp-lightbox__title {
  font-family: var(--serif); font-size: 22px; color: #F2EEE8; font-weight: 400;
}

.jp-lightbox__label {
  font-size: 10px; color: rgba(242,238,232,0.5);
  letter-spacing: .12em; text-transform: uppercase;
}

.jp-lightbox__close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: none; cursor: pointer;
  font-size: 36px; color: rgba(242,238,232,0.6);
  transition: color 0.2s; z-index: 10;
  line-height: 1; padding: 8px;
}

.jp-lightbox__close:hover { color: #F2EEE8; }

.jp-lightbox__prev,
.jp-lightbox__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 48px; color: rgba(242,238,232,0.4);
  transition: color 0.2s; z-index: 10;
  padding: 16px; line-height: 1;
}

.jp-lightbox__prev { left: 16px; }
.jp-lightbox__next { right: 16px; }
.jp-lightbox__prev:hover,
.jp-lightbox__next:hover { color: #F2EEE8; }

@media (max-width: 768px) {
  .jp-lightbox__img { max-width: 95vw; max-height: 70vh; }
  .jp-lightbox__prev,
  .jp-lightbox__next { font-size: 32px; padding: 10px; }
  .jp-lightbox__prev { left: 4px; }
  .jp-lightbox__next { right: 4px; }
  .jp-lightbox__close { top: 12px; right: 16px; font-size: 28px; }
  .jp-lightbox__title { font-size: 18px; }
}

/* ========================================
   404
   ======================================== */

.jp-404 {
  padding: 160px 40px 120px; text-align: center;
}

.jp-404__num {
  font-family: var(--serif);
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 300; color: var(--bdr); line-height: 1; margin-bottom: 24px;
}

.jp-404__title {
  font-family: var(--serif); font-size: 28px; font-weight: 300;
  color: var(--tx); margin-bottom: 12px;
}

.jp-404__sub {
  font-size: 13px; color: var(--ac); font-weight: 300; margin-bottom: 36px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.jp-fade-up { animation: jpFadeUp 0.7s ease forwards; }
.jp-fade-up--1 { animation-delay: 0.1s; opacity: 0; }
.jp-fade-up--2 { animation-delay: 0.25s; opacity: 0; }
.jp-fade-up--3 { animation-delay: 0.4s; opacity: 0; }
.jp-fade-up--4 { animation-delay: 0.55s; opacity: 0; }

/* ========================================
   RESPONSIVE — Tablet
   ======================================== */

@media (max-width: 1024px) {
  .jp-services__grid { grid-template-columns: 1fr 1fr; }
  .jp-svc:nth-child(2) { border-right: none; }
  .jp-masonry { grid-template-columns: 1fr 1fr; }
  .jp-slide { flex: 0 0 calc((100% - 20px) / 2); }
}

/* ========================================
   RESPONSIVE — Mobile
   ======================================== */

@media (max-width: 768px) {
  /* Nav */
  .jp-nav { padding: 0 20px; height: 54px; }
  .jp-nav__menu {
    display: none; position: fixed;
    top: 54px; left: 0; right: 0; bottom: 0;
    background: var(--bg); flex-direction: column;
    padding: 40px 20px; gap: 24px;
  }
  .jp-nav__menu.open { display: flex; }
  .jp-nav--transparent .jp-nav__menu { background: rgba(40,38,30,0.95); }
  .jp-nav__menu li a { font-size: 14px; }
  .jp-nav__toggle { display: block; }
  .jp-logo { width: 34px; height: 34px; font-size: 12px; }

  /* Hero */
  .jp-hero { min-height: 500px; }
  .jp-hero__content { padding: 0 20px 48px; }
  .jp-hero__h1 { font-size: 36px; }
  .jp-hero__sub { font-size: 12px; max-width: 280px; margin-bottom: 28px; }
  .jp-hero__eyebrow { font-size: 9px; }
  .jp-hero__actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .jp-btn { padding: 11px 28px; font-size: 10px; }
  .jp-hero__scroll { right: 20px; bottom: 48px; }

  /* Services */
  .jp-services__head { padding: 24px 20px 0; }
  .jp-services__grid { grid-template-columns: 1fr; }
  .jp-svc { border-right: none; border-bottom: 0.5px solid var(--bdr); padding: 28px 20px 36px; }
  .jp-svc__num { font-size: 36px; margin-bottom: 14px; }
  .jp-svc__title { font-size: 20px; }

  /* Slider */
  .jp-slider-section { padding: 40px 0; }
  .jp-slider__head { padding: 0 20px; margin-bottom: 24px; flex-wrap: wrap; gap: 8px; }
  .jp-slider__title { font-size: 26px; }
  .jp-view-all { font-size: 10px; }
  .jp-slider__wrap { padding: 0 20px; }
  .jp-slide { flex: 0 0 100%; aspect-ratio: auto; }
  .jp-slide__img { width: 100%; height: auto; object-fit: contain; }
  .jp-slide__info { opacity: 1; position: relative; background: rgba(242,238,232,1); padding: 12px 16px 10px; }
  .jp-slider__dots { margin-top: 20px; }

  /* CTA */
  .jp-cta-section { padding: 48px 20px; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
  .jp-cta-text { text-align: center; }
  .jp-cta-heading { font-size: 32px; }
  .jp-cta-btn { padding: 16px 44px; font-size: 12px; }
  .jp-btn--cta { padding: 16px 44px; font-size: 12px; }

  /* Projects page */
  .jp-page-hero { padding: 80px 20px 36px; }
  .jp-page-hero__h1 { font-size: 32px; }
  .jp-page-hero__sub { font-size: 12px; }
  .jp-proj-filter { padding: 0 20px; }
  .jp-proj-filter__btn { font-size: 10px; margin-right: 20px; padding: 12px 0; }
  .jp-masonry { grid-template-columns: 1fr; margin: 24px 20px; }
  .jp-masonry__img,
  .jp-masonry__placeholder,
  .jp-masonry__overlay { height: 200px; }

  /* Kontakt */
  .jp-kontakt { grid-template-columns: 1fr; }
  .jp-kontakt__left { padding: 80px 20px 40px; }
  .jp-kontakt__h1 { font-size: 32px; }
  .jp-kontakt__desc { font-size: 12px; max-width: 100%; }
  .jp-kontakt__right { padding: 40px 20px 60px; }
  .jp-form__row { grid-template-columns: 1fr; gap: 0; }

  /* Footer */
  .jp-footer { padding: 16px 20px; flex-wrap: wrap; gap: 8px; }
  .jp-footer__copy { font-size: 10px; }
  .jp-footer__links { gap: 16px; }
  .jp-footer__links a, .jp-footer__links span { font-size: 10px; }
}

/* ========================================
   RESPONSIVE — Small Mobile
   ======================================== */

@media (max-width: 420px) {
  .jp-hero__h1 { font-size: 28px; }
  .jp-cta-heading { font-size: 26px; }
  .jp-kontakt__h1 { font-size: 26px; }
  .jp-page-hero__h1 { font-size: 26px; }
  .jp-slider__title { font-size: 22px; }
}