/*
Theme Name: Atrakcie Modern
Theme URI: https://atrakcie.in
Author: SLOVbiz trade
Description: Moderná téma pre Atrakcie.in — prenájom nafukovacích atrakcií a ubytovanie v regióne Tatry/Kežmarok. Responzívny mobile-first dizajn.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU GPL v2+
Text Domain: atrakcie-modern
*/

:root {
  --orange: #ff6b35;
  --orange-dark: #e8551d;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --navy: #0f172a;
  --slate: #475569;
  --slate-light: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 10px 30px -12px rgba(15,23,42,.18);
  --shadow-lg: 0 24px 60px -20px rgba(15,23,42,.28);
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; color: var(--navy); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  cursor: pointer; border: none; transition: transform .25s, box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #fff; box-shadow: 0 12px 26px -10px rgba(255,107,53,.6); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(255,107,53,.7); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-3px); }

/* ── header / nav ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 22px 0;
}
.site-header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(14px); box-shadow: 0 4px 24px -12px rgba(15,23,42,.2); padding: 14px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: -.5px; color: #fff; transition: color .3s; }
.brand .dot { color: var(--orange); }
.site-header.scrolled .brand { color: var(--navy); }
.nav-menu { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-menu a { padding: 10px 16px; border-radius: 999px; font-weight: 500; font-size: 15px; color: rgba(255,255,255,.92); transition: background .2s, color .2s; }
.site-header.scrolled .nav-menu a { color: var(--slate); }
.nav-menu a:hover { background: rgba(255,255,255,.15); color: #fff; }
.site-header.scrolled .nav-menu a:hover { background: var(--bg-soft); color: var(--orange); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 110; }
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: .3s; }
.site-header.scrolled .nav-toggle span { background: var(--navy); }

/* ── hero ── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(15,23,42,.82) 0%, rgba(15,23,42,.55) 55%, rgba(6,182,212,.35) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; padding: 120px 0 60px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px;
  background: rgba(255,107,53,.2); border: 1px solid rgba(255,107,53,.5); color: #ffd9c9;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; margin-bottom: 22px; letter-spacing: -1px; color: #fff; }
.hero h1 .hl { color: var(--orange); }
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); color: rgba(255,255,255,.9); margin-bottom: 36px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-head); font-weight: 800; font-size: 34px; color: #fff; }
.hero-stat .lbl { font-size: 14px; color: rgba(255,255,255,.75); }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 13px; text-align: center; animation: bob 2s infinite; }
@keyframes bob { 0%,100%{transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(8px);} }

/* ── section heading ── */
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.sec-head .kicker { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; display: block; }
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }
.sec-head p { color: var(--slate); font-size: 18px; }

/* ── service cards ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px; }
.svc-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s;
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.svc-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card:hover .svc-media img { transform: scale(1.07); }
.svc-badge { position: absolute; top: 16px; left: 16px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--navy); font-family: var(--font-head); font-weight: 600; font-size: 13px; }
.svc-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.svc-body h3 { font-size: 22px; margin-bottom: 10px; }
.svc-body p { color: var(--slate); font-size: 15px; margin-bottom: 20px; flex: 1; }
.svc-link { font-family: var(--font-head); font-weight: 600; color: var(--orange); display: inline-flex; align-items: center; gap: 6px; transition: gap .25s; }
.svc-card:hover .svc-link { gap: 12px; }

/* ── features strip ── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.feature { text-align: center; }
.feature .ico { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 18px;
  display: grid; place-items: center; font-size: 30px;
  background: linear-gradient(135deg, rgba(255,107,53,.14), rgba(6,182,212,.14)); }
.feature h4 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--slate); font-size: 15px; }

/* ── gallery ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; grid-auto-rows: 200px; }
.gallery-grid a { border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.gallery-grid a:nth-child(6n+1) { grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.gallery-grid a:hover img { transform: scale(1.08); filter: brightness(1.05); }

/* ── contact ── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info h2 { font-size: clamp(28px,3.5vw,40px); margin-bottom: 20px; }
.contact-info > p { color: var(--slate); font-size: 17px; margin-bottom: 30px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ico { flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #fff; }
.contact-list .txt strong { display: block; font-family: var(--font-head); font-size: 16px; margin-bottom: 2px; }
.contact-list .txt span, .contact-list .txt a { color: var(--slate); font-size: 15px; }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ── footer ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: #fff; margin-bottom: 14px; }
.footer-brand .dot { color: var(--orange); }
.site-footer h5 { color: #fff; font-family: var(--font-head); font-size: 16px; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; text-align: center; font-size: 14px; color: var(--slate-light); }

/* ── page (detail) ── */
.page-hero { position: relative; padding: 150px 0 64px; background: linear-gradient(135deg, var(--navy) 0%, #16233b 60%, rgba(6,182,212,.35) 100%); color: #fff; text-align: center; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -60px; right: -40px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,53,.25), transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(30px,4.5vw,50px); margin-bottom: 10px; color: #fff; }
.page-hero .crumb { color: rgba(255,255,255,.72); font-size: 15px; margin-bottom: 16px; }
.page-hero .crumb a { color: rgba(255,255,255,.72); }
.page-hero .crumb a:hover { color: var(--orange); }
.page-body { padding: 70px 0; }
.page-body .prose { max-width: 860px; margin: 0 auto; font-size: 17px; color: var(--slate); }
.page-body .prose > p:first-of-type { font-size: 20px; color: var(--navy); line-height: 1.6; }
.page-body .prose h1,.page-body .prose h2,.page-body .prose h3 { color: var(--navy); margin: 32px 0 14px; }
.page-body .prose p { margin-bottom: 18px; }
.page-body .prose strong { color: var(--navy); }
/* zoznamy → moderné odrážky s ikonou */
.page-body .prose ul { list-style: none; margin: 22px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 10px 26px; }
.page-body .prose ul li { position: relative; padding: 10px 10px 10px 34px; margin: 0; background: var(--bg-soft); border-radius: 12px; font-size: 15px; }
.page-body .prose ul li::before { content: '✓'; position: absolute; left: 12px; top: 10px; color: var(--orange); font-weight: 800; }
.page-body .prose img { border-radius: var(--radius-sm); margin: 20px 0; box-shadow: var(--shadow); }
.page-body .prose a { color: var(--orange); font-weight: 600; }
/* WP gallery → moderný grid s väčšími fotkami */
.page-body .gallery { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 16px; margin: 40px 0 10px; }
.page-body .gallery br { display: none; }
.page-body .gallery-item { width: auto !important; margin: 0 !important; }
.page-body .gallery-item img { border: none !important; border-radius: var(--radius-sm); width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s, box-shadow .4s; box-shadow: var(--shadow); cursor: pointer; }
.page-body .gallery-item img:hover { transform: translateY(-4px) scale(1.03); box-shadow: var(--shadow-lg); }
.page-body .gallery-caption { display: none; }
/* kontakt stránka — 2 stĺpce (obsah + mapa) */
.page-contact .contact-wrap { align-items: stretch; }
.page-contact .prose { max-width: none; margin: 0; }
.page-contact .contact-map { min-height: 100%; }
/* CTA pásik na konci podstránok */
.page-cta { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #fff; text-align: center; padding: 60px 24px; border-radius: var(--radius); margin-top: 20px; }
.page-cta h3 { color: #fff; font-size: clamp(24px,3vw,34px); margin-bottom: 10px; }
.page-cta p { color: rgba(255,255,255,.92); margin-bottom: 24px; font-size: 17px; }
.page-cta .btn { background: #fff; color: var(--orange); }
.page-cta .btn:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -12px rgba(0,0,0,.35); }

/* ── reveal animation (fail-safe: viditeľné vždy, animácia len keď JS armne) ── */
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.reveal.armed { opacity: 0; transform: translateY(28px); }
.reveal.armed.in { opacity: 1; transform: none; }

/* ── responsive ── */
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 78%; max-width: 340px; height: 100vh;
    background: #fff; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 6px; padding: 40px; transition: right .35s; box-shadow: -20px 0 60px -20px rgba(0,0,0,.3);
  }
  .nav-menu.open { right: 0; }
  .nav-menu a { color: var(--navy) !important; font-size: 18px; width: 100%; }
  .nav-cta { margin: 14px 0 0; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity: 0; }
  .nav-toggle.open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }
  .site-header.scrolled .nav-toggle span, .nav-toggle span { background: var(--navy); }
  .hero-stats { gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .section { padding: 54px 0; }
  .hero-content { padding: 110px 0 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-stats { gap: 20px; }
  .hero-stat .num { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-list .txt a { word-break: break-word; }
  .page-hero { padding: 120px 0 48px; }
}
