/* Spygliuota Custom Styles */

/* Body and caption font - Inter with Latin Extended */
body,
p,
.lead,
li,
.gallery-item-overlay,
.contact-email,
.contact-number,
.link-list {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: #565656;
}

/* All headings use same font as text-huge-title (Marcellus) */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "Marcellus", serif !important;
}

/* H3 and H4 headings bold */
h3, .h3,
h4, .h4 {
    font-weight: 600 !important;
}

/* Keep hero section text white */
.s-intro p,
.s-intro .lead,
.s-intro li,
.s-intro .contact-email {
    color: #ffffff;
}

/* Keep lightbox caption light grey */
#lightbox-caption {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: #cccccc;
}

/* Hero section height */
.s-intro {
    height: 95vh !important;
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        color: rgba(255, 255, 255, 0.5);
    }
    50% {
        opacity: 1;
        color: rgba(255, 255, 255, 1);
    }
}

/* Larger "Peržiūrėti daugiau" scroll link with pulse */
.s-intro__scroll a {
    font-size: calc(var(--text-size) * 0.7) !important;
    letter-spacing: .3em !important;
    animation: pulse 2s ease-in-out infinite !important;
}

.s-intro__scroll a:hover {
    animation: none !important;
}

/* Override Knox tab hiding - make all sections visible */
.tab-content__item {
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    position: static !important;
}

/* Remove dark overlay from sections */
.s-details::after {
    display: none !important;
}

/* Fix section positioning */
.s-details {
    position: static !important;
    min-height: auto !important;
}

/* Section Spacing and Backgrounds */
.s-details {
    padding: 8rem 0;
    background-color: #ffffff;
    position: relative;
}

.s-details#services {
    padding-top: 10rem;
    background-color: #f9f9f9;
}

.s-details#gallery {
    background-color: #ffffff;
}

.s-details#contact {
    background-color: #f9f9f9;
}

/* Full Width Gallery Section */
.gallery-fullwidth {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Gallery Grid - Masonry Layout */
.gallery-grid {
    column-count: 4;
    column-gap: 1rem;
    padding: 0 1rem;
    margin-top: 4rem !important;
    width: 100%;
    line-height: 0;
    font-size: 0;
}

/* Gallery Item Styling */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    break-inside: avoid;
    margin: 0 0 1rem 0;
    padding: 0;
    display: block;
    width: 100%;
    line-height: 0;
    font-size: 0;
}

.gallery-item * {
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.gallery-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transform: translateY(-2px);
    opacity: 0.9;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
    margin: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
}

/* Lightbox Modal */
#lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-modal[hidden] {
    display: none;
}

.lightbox-inner {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 4rem;
    cursor: pointer;
    z-index: 100001;
    transition: opacity 0.2s ease;
    line-height: 1;
    font-weight: 300;
    background: none;
    border: none;
}

#lightbox-close:hover {
    opacity: 0.7;
}

/* Lightbox Navigation Buttons */
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 6rem;
    cursor: pointer;
    z-index: 100000;
    transition: opacity 0.3s ease;
    line-height: 1;
    font-weight: 300;
    padding: 0;
    opacity: 0.7;
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-nav-prev {
    left: 2rem;
}

.lightbox-nav-next {
    right: 2rem;
}

#lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    display: block;
    object-fit: contain;
}

#lightbox-caption {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.6rem;
    line-height: 1.5;
    max-width: 80%;
}

/* =============================================
   Navigation Menu Styles
   ============================================= */

/* Fixed header */
.s-intro__header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    padding: 2.4rem 4rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Header with background on scroll */
.s-intro__header.is-scrolled {
    background-color: rgba(20, 21, 22, 0.95);
    padding: 1.5rem 4rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Logo positioning - reset absolute */
.s-intro__logo {
    position: relative;
    top: auto;
    left: auto;
}

/* Navigation menu - positioned on the right */
.nav-menu {
    position: relative;
    top: auto;
    right: auto;
    z-index: 4;
    display: flex;
    align-items: center;
}

.nav-menu__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3rem;
}

.nav-menu__list li {
    margin: 0;
    padding: 0;
}

.nav-menu__list a {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    border-bottom: none;
}

.nav-menu__list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: width 0.3s ease;
}

.nav-menu__list a:hover {
    color: #fff;
    border-bottom: none;
}

.nav-menu__list a:hover::after {
    width: 100%;
    background-color: #fff;
}

/* Mobile menu toggle button - hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    outline: none;
}

.nav-toggle:hover,
.nav-toggle:focus,
.nav-toggle:active {
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

.nav-toggle__line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile menu toggle animation when open */
.nav-toggle.is-open .nav-toggle__line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle__line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Logo adjustments */
.s-intro__logo img {
    max-height: 60px;
    width: auto;
}

/* Intro content adjustments */
.s-intro__content-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: center;
}

.s-intro__content-bottom-block {
    flex: 0 0 auto;
}

/* Contact email in intro */
.s-intro__content-bottom-block .contact-email {
    font-size: var(--text-md);
    margin-top: 0;
    padding-top: 0;
}

.s-intro__content-bottom-block .contact-email a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: border-color 0.3s ease;
}

.s-intro__content-bottom-block .contact-email a:hover {
    border-bottom-color: rgba(255,255,255,0.8);
}

/* Contact section email - inherit parent font size */
#contact .contact-email {
    font-size: inherit;
}

/* SEO Content styling - Full Width */
.seo-content-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 6rem;
    margin: 0;
    background-color: #f9f9f9;
}

.seo-content {
    font-size: 10px;
    line-height: 1.4;
    opacity: 0.6;
    color: #565656;
}

.seo-content strong {
    color: #333333;
}

/* Gallery Section - Dark Background (same as preloader) */
.gallery-section-dark {
    background-color: #141516 !important;
}

.gallery-header {
    padding-bottom: 4rem;
}

.gallery-section-dark h2,
.gallery-section-dark .lead {
    color: #ffffff !important;
}

/* Responsive adjustments */
@media screen and (max-width: 1200px) {
    .gallery-grid {
        column-count: 3;
    }
}

@media screen and (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 1rem;
    }

    #lightbox-close {
        top: -35px;
        font-size: 2.5rem;
    }

    #lightbox-caption {
        font-size: 1.4rem;
    }

    .lightbox-nav {
        font-size: 5rem;
    }

    .lightbox-nav-prev {
        left: 1rem;
    }

    .lightbox-nav-next {
        right: 1rem;
    }
}

@media screen and (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
        column-gap: 0;
        padding: 0 0.5rem;
    }

    .gallery-item {
        margin-bottom: 0.5rem;
    }

    .s-intro__content-bottom {
        flex-direction: column;
        gap: 2rem;
    }

    .lightbox-nav {
        font-size: 4rem;
    }

    .lightbox-nav-prev {
        left: 0.5rem;
    }

    .lightbox-nav-next {
        right: 0.5rem;
    }

    #lightbox-close {
        top: -30px;
        right: 0;
        font-size: 2rem;
    }

    #lightbox-caption {
        font-size: 1.3rem;
        margin-top: 1rem;
    }

    .seo-content-wrapper {
        padding: 3rem 2rem;
    }
}

/* =============================================
   Navigation - Mobile Responsive
   ============================================= */

@media screen and (max-width: 900px) {
    .s-intro__header {
        padding: 2rem;
    }

    .s-intro__header.is-scrolled {
        padding: 1.2rem 2rem;
    }

    /* Show hamburger menu */
    .nav-toggle {
        display: flex;
    }

    /* Hide desktop nav on mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(20, 21, 22, 0.98);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }

    .nav-menu.is-open {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu__list {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-menu__list a {
        font-size: 2rem;
        letter-spacing: 0.2em;
    }
}

@media screen and (max-width: 480px) {
    .s-intro__header {
        padding: 1.5rem;
    }

    .s-intro__header.is-scrolled {
        padding: 1rem 1.5rem;
    }

    .nav-menu__list a {
        font-size: 1.8rem;
    }
}

/* =============================================
   Subpage Styles
   ============================================= */

/* Subpage body */
body.subpage {
    background-color: #f9f9f9;
}

/* Subpage header - always has background */
body.subpage .s-intro__header {
    background-color: rgba(20, 21, 22, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Subpage content area */
.subpage-content {
    padding-top: 14rem;
    min-height: 100vh;
    background-color: #f9f9f9;
}

/* Subpage header padding */
body.subpage .s-intro__header {
    padding: 1.5rem 4rem;
}

@media screen and (max-width: 900px) {
    body.subpage .s-intro__header {
        padding: 1.2rem 2rem;
    }

    .subpage-content {
        padding-top: 12rem;
    }
}

@media screen and (max-width: 480px) {
    body.subpage .s-intro__header {
        padding: 1rem 1.5rem;
    }

    .subpage-content {
        padding-top: 10rem;
    }
}

/* Active nav link */
.nav-menu__list a.is-active {
    color: #fff;
}

.nav-menu__list a.is-active::after {
    width: 100%;
}

/* =============================================
   Gift Voucher Page Styles
   ============================================= */

.gift-voucher-section {
    margin-top: 4rem;
}

.gift-voucher-options {
    margin-bottom: 4rem;
}

.gift-voucher-item {
    margin-bottom: 2rem;
}

.gift-voucher-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 3rem;
    height: 100%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.gift-voucher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.gift-voucher-title {
    font-family: "Marcellus", serif;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: #333;
}

.gift-voucher-price {
    font-family: 'Inter', sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: #5B5E53;
    margin-bottom: 2rem;
}

.gift-voucher-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.gift-voucher-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1.5rem;
    color: #565656;
}

.gift-voucher-features li:last-child {
    border-bottom: none;
}

.gift-voucher-features li::before {
    content: "✓";
    color: #5B5E53;
    margin-right: 1rem;
    font-weight: 600;
}

.gift-voucher-preview {
    background: #ffffff;
    border-radius: 8px;
    padding: 4rem;
    margin-bottom: 4rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.gift-voucher-preview h3 {
    font-family: "Marcellus", serif;
    font-size: 2.4rem;
    margin-bottom: 3rem;
    color: #333;
}

.gift-voucher-image {
    max-width: 600px;
    margin: 0 auto;
}

.gift-voucher-image a {
    display: block;
    border-bottom: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gift-voucher-image a:hover {
    transform: scale(1.02);
    border-bottom: none;
}

.gift-voucher-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.gift-voucher-image a:hover img {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.gift-voucher-info {
    background: #ffffff;
    border-radius: 8px;
    padding: 4rem;
    margin-bottom: 4rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.gift-voucher-info h3 {
    font-family: "Marcellus", serif;
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: #333;
}

.gift-voucher-steps {
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.gift-voucher-steps li {
    padding: 1rem 0;
    font-size: 1.6rem;
    color: #565656;
}

.gift-voucher-steps a {
    color: #5B5E53;
    text-decoration: none;
    border-bottom: 1px solid rgba(91, 94, 83, 0.3);
    transition: border-color 0.3s ease;
}

.gift-voucher-steps a:hover {
    border-bottom-color: #5B5E53;
}

.gift-voucher-note {
    font-style: italic;
    color: #777;
    font-size: 1.5rem;
    margin-top: 2rem;
}

.gift-voucher-cta {
    text-align: center;
    margin-top: 4rem;
}

.btn.btn--primary {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #ffffff !important;
    background-color: #000000 !important;
    padding: 2rem 4rem;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    height: auto;
    line-height: 1;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn.btn--primary:hover,
.btn.btn--primary:focus {
    color: #ffffff !important;
    background-color: #333333 !important;
    transform: translateY(-2px);
}

/* Gift voucher responsive */
@media screen and (max-width: 900px) {
    .gift-voucher-preview {
        padding: 3rem;
    }

    .gift-voucher-info {
        padding: 3rem;
    }
}

@media screen and (max-width: 600px) {
    .gift-voucher-preview {
        padding: 2rem;
    }

    .gift-voucher-preview h3 {
        margin-bottom: 2rem;
    }

    .subpage-content {
        padding-top: 10rem;
    }

    .gift-voucher-card {
        padding: 2rem;
    }

    .gift-voucher-info {
        padding: 2rem;
    }

    .btn--primary {
        padding: 1.5rem 3rem;
        font-size: 1.3rem;
    }
}

/* =============================================
   Cookie Consent Banner Styles
   ============================================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #141516;
    z-index: 99998;
    padding: 0.8rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-banner__text p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.cookie-banner__text a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.cookie-banner__buttons {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    margin: 0;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
    height: auto;
}

.cookie-btn--secondary {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-btn--secondary:hover {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.cookie-btn--primary {
    background-color: #ffffff;
    border: 1px solid #ffffff;
    color: #141516;
}

.cookie-btn--primary:hover {
    background-color: transparent;
    color: #ffffff;
}

/* Cookie banner responsive */
@media screen and (max-width: 600px) {
    .cookie-banner {
        padding: 0.7rem 1rem;
    }

    .cookie-banner__content {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .cookie-banner__text p {
        font-size: 1.1rem;
    }

    .cookie-btn {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

/* =============================================
   Cookie Policy Page Styles
   ============================================= */

.cookie-policy-section {
    margin-top: 4rem;
}

.cookie-policy-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 4rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.cookie-policy-content h2 {
    font-family: "Marcellus", serif;
    font-size: 2.4rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.cookie-policy-content h2:first-child {
    margin-top: 0;
}

.cookie-policy-content h3 {
    font-family: "Marcellus", serif;
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #444;
}

.cookie-policy-content p {
    font-size: 1.6rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #565656;
}

.cookie-policy-content ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.cookie-policy-content ul li {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    color: #565656;
}

.cookie-policy-content a {
    color: #5B5E53;
    text-decoration: none;
    border-bottom: 1px solid rgba(91, 94, 83, 0.3);
    transition: border-color 0.3s ease;
}

.cookie-policy-content a:hover {
    border-bottom-color: #5B5E53;
}

.cookie-settings-button-wrapper {
    margin: 2rem 0;
}

.cookie-policy-updated {
    font-style: italic;
    color: #888;
    font-size: 1.4rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* Footer with cookie policy link */
.ss-copyright {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
}

.ss-copyright a {
    color: #888;
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.ss-copyright a:hover {
    color: #565656;
}

/* Cookie policy page responsive */
@media screen and (max-width: 768px) {
    .cookie-policy-content {
        padding: 3rem;
    }

    .cookie-policy-content h2 {
        font-size: 2rem;
    }

    .cookie-policy-content h3 {
        font-size: 1.6rem;
    }

    .cookie-policy-content p {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .cookie-policy-content {
        padding: 2rem;
    }

    .cookie-policy-content h2 {
        font-size: 1.8rem;
    }
}
