/* ==========================================================================
   FIORE PAKLENICA - Components
   Hero, Footer, and reusable UI components
   Note: Header, Navigation, and Notification styles are in header.css
   ========================================================================== */

/* ==========================================================================
   Hero Section - Clean, Fixed Responsive Design
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Image */
.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

/* Dark Overlay */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

/* Content Container */
.hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 24px 160px;
    text-align: center;
    color: #fff;
}

/* Location Label - Visible immediately, minimal animation */
.hero__label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: heroFadeIn 0.4s ease-out forwards;
}

/* Main Title */
.hero__title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0 0 24px 0;
    color: #fff;
    animation: heroFadeIn 0.5s ease-out 0.1s forwards;
}

/* Gold Divider */
.hero__divider {
    width: 60px;
    height: 1px;
    margin: 0 auto 24px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    animation: heroFadeIn 0.4s ease-out 0.15s forwards;
}

/* Subtitle/Description */
.hero__subtitle {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.75;
    max-width: 520px;
    margin: 0 auto 40px;
    animation: heroFadeIn 0.5s ease-out 0.2s forwards;
}

/* CTA Button */
.hero__cta,
.hero__content .btn--hero {
    animation: heroFadeIn 0.5s ease-out 0.3s forwards;
}

/* Scroll Indicator - Absolutely Centered using margin auto (not transform) */
.hero__scroll {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    width: fit-content;
    margin: 0 auto;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 0;
    animation: heroScrollFadeIn 0.8s ease-out 1s forwards;
    transition: opacity 0.2s ease;
}

.hero__scroll:hover {
    opacity: 0.8;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* Hero Animations - Opacity only to prevent CLS */
@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll indicator fade - no transform to preserve centering */
@keyframes heroScrollFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ==========================================================================
   Hero Responsive - Mobile First with Fixed Breakpoints
   ========================================================================== */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .hero__content {
        max-width: 900px;
        padding: 140px 48px 180px;
    }
    .hero__title {
        font-size: 72px;
    }
    .hero__subtitle {
        font-size: 18px;
        max-width: 600px;
    }
    .hero__scroll {
        bottom: 60px;
    }
}

/* Desktop (1200px - 1439px) */
@media (max-width: 1439px) and (min-width: 1200px) {
    .hero__content {
        max-width: 840px;
        padding: 130px 40px 170px;
    }
    .hero__title {
        font-size: 64px;
    }
}

/* Small Desktop / Large Tablet (1024px - 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
    .hero__content {
        max-width: 720px;
        padding: 120px 32px 160px;
    }
    .hero__title {
        font-size: 54px;
    }
    .hero__subtitle {
        font-size: 15px;
        max-width: 520px;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .hero__content {
        max-width: 640px;
        padding: 100px 32px 140px;
    }
    .hero__title {
        font-size: 48px;
    }
    .hero__label {
        font-size: 11px;
        letter-spacing: 0.25em;
    }
    .hero__subtitle {
        font-size: 15px;
        max-width: 500px;
        margin-bottom: 32px;
    }
    .hero__scroll {
        bottom: 40px;
    }
    .hero__scroll-line {
        height: 40px;
    }
}

/* Large Mobile (480px - 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .hero__content {
        max-width: 100%;
        padding: 100px 24px 120px;
    }
    .hero__title {
        font-size: 42px;
    }
    .hero__label {
        font-size: 10px;
        letter-spacing: 0.2em;
        margin-bottom: 20px;
    }
    .hero__divider {
        width: 50px;
        margin-bottom: 20px;
    }
    .hero__subtitle {
        font-size: 14px;
        line-height: 1.7;
        max-width: 420px;
        margin-bottom: 28px;
    }
    .hero__scroll {
        bottom: 32px;
        font-size: 10px;
    }
    .hero__scroll-line {
        height: 36px;
    }
}

/* Mobile (up to 479px) */
@media (max-width: 479px) {
    .hero__content {
        padding: 90px 20px 110px;
    }
    .hero__title {
        font-size: 34px;
        margin-bottom: 20px;
    }
    .hero__label {
        font-size: 10px;
        letter-spacing: 0.18em;
        margin-bottom: 16px;
    }
    .hero__divider {
        width: 40px;
        margin-bottom: 16px;
    }
    .hero__subtitle {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 24px;
    }
    .hero__scroll {
        bottom: 24px;
        font-size: 9px;
        letter-spacing: 0.2em;
    }
    .hero__scroll-line {
        height: 32px;
    }
}

/* Small Mobile (up to 359px) */
@media (max-width: 359px) {
    .hero__content {
        padding: 80px 16px 100px;
    }
    .hero__title {
        font-size: 24px;
    }
    .hero__subtitle {
        font-size: 13px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: linear-gradient(180deg, #0b1218 0%, #05090d 100%);
    color: var(--color-white);
    padding: var(--space-3xl) 0 var(--space-2xl);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06), transparent 35%),
                radial-gradient(circle at 80% 60%, rgba(255,255,255,0.05), transparent 30%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.footer__main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-4xl);
    padding-bottom: var(--space-4xl);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 1;
}

.footer__brand { max-width: 320px; }

.footer__logo {
    height: 45px;
    width: auto;
    margin-bottom: var(--space-lg);
}

.footer__brand p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
}

.footer__nav h4 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.footer__nav ul { list-style: none; }
.footer__nav li { margin-bottom: var(--space-sm); }

.footer__nav a,
.footer__nav li {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition-fast);
}

.footer__nav a:hover { color: var(--color-white); }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
}

.footer__bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

.footer__lang {
    display: flex;
    gap: 8px;
}

.footer__lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.footer__lang-btn:hover {
    border-color: rgba(255,255,255,0.4);
    color: var(--color-white);
}

.footer__lang-btn.active {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-black);
}

.footer__lang-btn .lang-flag {
    width: 20px;
    height: 14px;
}

.footer__social {
    display: flex;
    gap: var(--space-sm);
}

.footer__social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--color-white);
    transition: all var(--transition-fast);
}

.footer__social a:hover {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

.footer__social svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   WhatsApp Float Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 999;
    text-decoration: none;
}

.whatsapp-float__label {
    background: var(--color-white);
    color: var(--color-charcoal);
    padding: 14px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: all var(--transition-fast);
}

.whatsapp-float__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-fast);
}

.whatsapp-float__icon svg {
    width: 30px;
    height: 30px;
}

.whatsapp-float:hover .whatsapp-float__label {
    background: var(--color-charcoal);
    color: var(--color-white);
    transform: translateX(-4px);
}

.whatsapp-float:hover .whatsapp-float__icon {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:focus,
.whatsapp-float:focus-visible { outline: none; }

.whatsapp-float--minimized .whatsapp-float__label {
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
}

.whatsapp-float--minimized .whatsapp-float__icon {
    opacity: 0.5;
    transform: scale(0.85);
}

.whatsapp-float--minimized:hover .whatsapp-float__icon {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   Cookie Consent
   ========================================================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    z-index: 1500;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    opacity: 0;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent__content {
    flex: 1;
    min-width: 280px;
}

.cookie-consent__content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--color-white);
}

.cookie-consent__content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

.cookie-consent__actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.cookie-consent__btn {
    padding: 0.875rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cookie-consent__btn--accept {
    background: var(--color-gold);
    color: var(--color-charcoal);
}

.cookie-consent__btn--accept:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
}

.cookie-consent__btn--essential {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent__btn--essential:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Lightbox - Improved for all devices
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.98);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.lightbox--open {
    opacity: 1;
    visibility: visible;
}

.lightbox__header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.lightbox__counter {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.lightbox__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 60px 100px;
    touch-action: pan-y pinch-zoom;
}

.lightbox__content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.2s ease;
}

.lightbox__content img.loading {
    opacity: 0.5;
}

.lightbox__caption {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.9);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    text-align: center;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    white-space: nowrap;
}

.lightbox__close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.lightbox__close svg {
    width: 22px;
    height: 22px;
}

.lightbox__close:hover,
.lightbox__close:focus {
    background: rgba(255,255,255,0.2);
    outline: none;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border: none;
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 5;
    -webkit-tap-highlight-color: transparent;
}

.lightbox__nav:hover,
.lightbox__nav:focus {
    background: rgba(0,0,0,0.6);
    outline: none;
}

.lightbox__nav--prev {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.lightbox__nav--next {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.lightbox__nav svg {
    width: 28px;
    height: 28px;
}

.lightbox__thumbnails {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    padding: 10px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    max-width: calc(100vw - 40px);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lightbox__thumbnails::-webkit-scrollbar {
    display: none;
}

.lightbox__thumb {
    width: 56px;
    height: 42px;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    border-radius: 4px;
}

.lightbox__thumb:hover,
.lightbox__thumb.active {
    opacity: 1;
}

.lightbox__thumb.active {
    border-color: var(--color-gold);
}

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

/* Swipe indicator for mobile */
.lightbox__swipe-hint {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lightbox--open .lightbox__swipe-hint {
    animation: fadeInOut 3s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}
