/* 
   AquaCity Poprad - Custom Stylesheet
   Design: Big Resort Energy
*/

:root {
    --primary: #008cc9;
    --primary-dark: #006b9b;
    --dark: #0a1f38;
    --dark-alt: #172a45;
    --light: #f4f8fb;
    --white: #ffffff;
    --accent: #ff8c00;
    --accent-hover: #e07a00;
    --text: #364a59;
    --text-light: #708496;
    --border: #e2eaf0;
    --font-sans: 'Outfit', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-soft: 0 10px 40px rgba(10, 31, 56, 0.08);
    --shadow-hover: 0 15px 50px rgba(10, 31, 56, 0.15);
}

/* Reset & Basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    color: var(--dark);
    line-height: 1.2;
    font-weight: 700;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 140, 201, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo img {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1); /* Default is white for hero */
}

.navbar.scrolled .brand-logo img {
    filter: brightness(1) invert(0); /* Return to colored */
}

.nav-links {
    display: none;
    gap: 35px;
}

@media (min-width: 900px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s;
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 899px) {
    .nav-actions .btn { display: none; }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

@media (min-width: 900px) {
    .mobile-menu-btn { display: none; }
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}
.navbar.scrolled .mobile-menu-btn span,
.mobile-menu-btn.active span {
    background: var(--dark);
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    padding: 100px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

.mobile-menu .mobile-btn {
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s linear;
    transform: scale(1.05); /* Slight zoom start */
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10,31,56,0.8) 0%, rgba(10,31,56,0.3) 50%, rgba(10,31,56,0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    margin-top: 80px;
}

.hero-content h1 {
    font-size: clamp(3rem, 6.2vw, 4.9rem);
    color: var(--white);
    max-width: 13.5ch;
    margin-bottom: 25px;
    letter-spacing: -1px;
    max-width: 800px;
}

.hero-content h1 .dot {
    color: var(--primary);
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 45px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Stats Strip */
.stats-strip {
    background: var(--dark);
    color: var(--white);
    position: relative;
    z-index: 10;
    margin-top: -80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 40px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (min-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-item::before {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: var(--primary);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #a0aec0;
    font-weight: 500;
}

/* Resort Paths (Main Categories) */
.section-resort-paths {
    padding: 120px 0;
    background: var(--light);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.paths-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 1024px) {
    .paths-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.path-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.path-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.path-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.path-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.path-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.path-card:hover .path-image img {
    transform: scale(1.08);
}

.path-card:hover .path-overlay {
    opacity: 1;
}

.path-content {
    padding: 35px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.path-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.path-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

.path-link {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.path-card:hover .path-link {
    gap: 15px;
}

/* Water & Info Section */
.section-water {
    padding: 120px 0;
    background: var(--white);
}

.water-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    align-items: center;
}

@media (min-width: 900px) {
    .water-split {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.water-image-side {
    position: relative;
}

.water-image-side::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60%;
    height: 60%;
    background: var(--light);
    border-radius: var(--radius-lg);
    z-index: 0;
}

.water-image-side img {
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-soft);
}

.water-text-side {
    position: relative;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: #e6f6fd;
    color: var(--primary-dark);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.water-text-side h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 25px;
}

.water-text-side p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.list-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.features-list span {
    font-weight: 500;
    color: var(--dark);
    padding-top: 10px;
}

/* Infinite Gallery Banner */
.section-gallery {
    padding: 50px 0 100px 0;
    background: var(--white);
    overflow: hidden;
}

.gallery-track-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    width: calc(400px * 7); /* Approx img width * total images */
    animation: scroll 35s linear infinite;
    gap: 20px;
    padding: 0 10px;
}

.gallery-track img {
    width: 380px;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-380px * 5 - 100px)); }
}

/* E-Shop CTA block */
.section-eshop {
    padding: 80px 30px;
    max-width: 1300px;
    margin: 0 auto 100px auto;
}

.eshop-card {
    background: var(--dark-alt);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    position: relative;
}

@media (min-width: 900px) {
    .eshop-card {
        grid-template-columns: 3fr 2fr;
    }
}

.eshop-content {
    padding: 60px 50px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eshop-content h2 {
    color: var(--white);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 25px;
}

.eshop-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    max-width: 500px;
}

.eshop-content strong {
    color: var(--accent);
}

.eshop-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.eshop-features span {
    font-weight: 500;
}

.eshop-graphic {
    background: var(--primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 350px;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 20%), 
                      radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 20%);
}

.ticket-preview {
    position: relative;
    width: min(100%, 440px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.28);
    transform: rotate(1.5deg);
    transition: transform 0.45s var(--ease-out, cubic-bezier(.16,1,.3,1));
}

.eshop-card:hover .ticket-preview {
    transform: translateY(-6px) rotate(0deg);
}

.ticket-preview > img {
    width: 100%;
    height: 390px;
    object-fit: cover;
}

.ticket-panel {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255,255,255,0.94);
    color: var(--dark);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 44px rgba(10,31,56,0.18);
}

.ticket-panel img {
    height: 34px;
    width: auto;
    margin-bottom: 14px;
}

.ticket-panel h4 {
    color: var(--dark);
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ticket-panel p {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 14px;
}

.ticket-panel span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff2df;
    color: #a64f00;
    font-weight: 700;
}

/* Footer Section */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 30px 30px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto 60px auto;
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-logo {
    height: 50px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.brand-desc {
    color: #94a3b8;
    margin-bottom: 30px;
    max-width: 400px;
}

.contact-rows .crow {
    margin-bottom: 15px;
    color: #cbd5e1;
}

.contact-rows strong {
    color: var(--white);
    display: inline-block;
    width: 80px;
}

.footer-map {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.credits p {
    margin-bottom: 5px;
}

.credits strong {
    color: var(--white);
}

/* Animations (safe by default; content never disappears if JS/observer misses) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

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


/* Mobile safety pass */
html, body { overflow-x: clip; overscroll-behavior: none; }
@media (max-width: 720px) {
  .hero { min-height: 760px; padding: 116px 20px 72px; align-items: flex-start; }
  .hero-content { margin-top: 42px; }
  .hero-content h1 { font-size: clamp(2.75rem, 13vw, 4rem); line-height: 1.03; max-width: 11ch; }
  .hero-content p { font-size: 1rem; max-width: 92vw; }
  .hero-buttons { flex-direction: column; align-items: stretch; max-width: 360px; }
  .stats-strip { margin: -54px 14px 48px; }
  .stats-container { grid-template-columns: 1fr 1fr; gap: 18px; padding: 24px; }
  .stat-number { font-size: 2rem; }
  .section-header h2, .water-text-side h2, .eshop-content h2 { font-size: clamp(2rem, 9vw, 3rem); line-height: 1.08; }
  .paths-grid { gap: 22px; }
  .section-eshop { padding: 52px 16px; }
  .eshop-content { padding: 42px 26px; }
  .eshop-graphic { padding: 26px; }
  .ticket-preview { transform: none; }
  .ticket-preview > img { height: 320px; }
  .ticket-panel { left: 14px; right: 14px; bottom: 14px; padding: 18px; }
  .footer-bottom { flex-direction: column; }
}


/* Word-safe Slovak typography: never split words like Tatrami into Tatr/ami. */
:where(h1,h2,h3,h4,p,a,span,li,strong,button,label,input,textarea) {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

:where(h1,h2,h3,h4) {
    text-wrap: balance;
}

:where(p,li,.lead,.brand-desc) {
    text-wrap: pretty;
}

.nowrap { white-space: nowrap; }
