/*
 * Am'Or Resort — modern layer
 * Ngarkohet pas CSS-së së Tailwind (build). Nuk kërkon rindërtim me Vite.
 */

:root {
    --amor-ink: #1c1917;
    --amor-ink-soft: #44403c;
    --amor-ivory: #faf8f4;
    --amor-sand: #f3eee5;
    --amor-gold: #b8923a;
    --amor-gold-light: #e2c675;
    --amor-line: rgba(28, 25, 23, 0.09);
    --amor-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--amor-ivory);
    color: var(--amor-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--amor-gold-light);
    color: var(--amor-ink);
}

:focus-visible {
    outline: 2px solid var(--amor-gold);
    outline-offset: 3px;
}

/* ───────────── Header ───────────── */
#publicHeader {
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

body.has-hero #publicHeader {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
}

body.has-hero #publicHeader:not(.is-scrolled) {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.has-hero #publicHeader:not(.is-scrolled) .header-brand-text,
body.has-hero #publicHeader:not(.is-scrolled) nav a {
    color: #fff;
}

body.has-hero #publicHeader:not(.is-scrolled) nav a:hover {
    background: rgba(255, 255, 255, 0.14);
}

body.has-hero #publicHeader:not(.is-scrolled) nav a[class*='bg-amber-50'] {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: none;
    --tw-ring-color: rgba(255, 255, 255, 0.25);
}

body.has-hero #publicHeader:not(.is-scrolled) nav svg {
    color: #fff;
}

body.has-hero #publicHeader:not(.is-scrolled) #mobileNavToggle,
body.has-hero #publicHeader:not(.is-scrolled) .header-lang-summary {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    backdrop-filter: blur(8px);
}

body.has-hero #publicHeader:not(.is-scrolled) #mobileNavToggle svg {
    color: #fff;
}

#publicHeader.is-scrolled {
    background: rgba(250, 248, 244, 0.82);
    backdrop-filter: saturate(1.6) blur(18px);
    -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border-color: var(--amor-line);
    box-shadow: 0 8px 30px -18px rgba(28, 25, 23, 0.25);
}

#publicHeader #headerBookBtn {
    background: linear-gradient(135deg, var(--amor-gold-light), var(--amor-gold));
    color: var(--amor-ink);
    box-shadow: 0 8px 22px -8px rgba(184, 146, 58, 0.7);
    --tw-ring-color: transparent;
    transition: transform 0.3s var(--amor-ease), box-shadow 0.3s ease;
}

#publicHeader #headerBookBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -8px rgba(184, 146, 58, 0.85);
}

/* ───────────── Hero ───────────── */
.amor-hero {
    background: #14110f;
    min-height: 100vh;
    min-height: 100svh;
    isolation: isolate;
}

.amor-hero > .absolute.inset-0 > .absolute.inset-0:nth-of-type(n + 2) {
    /* neutralizo mbivendosjet e vjetra gri */
    display: none;
}

.amor-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(12, 10, 9, 0.5) 0%, rgba(12, 10, 9, 0) 26%),
        linear-gradient(0deg, rgba(12, 10, 9, 0.82) 0%, rgba(12, 10, 9, 0.35) 38%, rgba(12, 10, 9, 0) 70%),
        radial-gradient(ellipse 60% 55% at 12% 85%, rgba(184, 146, 58, 0.18), transparent 65%);
}

.amor-hero img.photo-rich {
    filter: saturate(1.12) contrast(1.05) brightness(0.98);
    animation: amor-kenburns 24s ease-out both;
}

.amor-hero > .relative.z-10 {
    z-index: 5;
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: clamp(4rem, 11vh, 7rem);
}

.amor-hero h1 {
    font-size: clamp(3.4rem, 10vw, 8rem) !important;
    line-height: 0.96 !important;
    font-weight: 500 !important;
    letter-spacing: -0.025em !important;
}

.amor-hero .max-w-2xl {
    max-width: 52rem;
}

.amor-hero .max-w-2xl > * {
    animation: amor-rise 1s var(--amor-ease) both;
}
.amor-hero .max-w-2xl > :nth-child(1) { animation-delay: 0.15s; }
.amor-hero .max-w-2xl > :nth-child(2) { animation-delay: 0.3s; }
.amor-hero .max-w-2xl > :nth-child(3) { animation-delay: 0.45s; }
.amor-hero .max-w-2xl > :nth-child(4) { animation-delay: 0.6s; }

.amor-hero p.inline-flex {
    border-color: rgba(226, 198, 117, 0.55);
    color: var(--amor-gold-light);
    background: rgba(12, 10, 9, 0.25);
    letter-spacing: 0.3em;
}

.amor-hero a.rounded-full {
    padding: 1rem 2.2rem;
    transition: transform 0.35s var(--amor-ease), background-color 0.3s ease, box-shadow 0.35s ease, border-color 0.3s ease;
}

.amor-hero a.rounded-full:hover {
    transform: translateY(-3px);
}

.amor-hero a.bg-white {
    background: linear-gradient(135deg, var(--amor-gold-light), var(--amor-gold));
    color: var(--amor-ink);
    --tw-ring-color: transparent;
    box-shadow: 0 16px 36px -12px rgba(184, 146, 58, 0.8);
}

.amor-hero a.bg-white:hover {
    background: linear-gradient(135deg, #f0d68a, #c9a24a);
}

.amor-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    z-index: 6;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    display: none;
}

.amor-scroll-cue::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 3px;
    height: 8px;
    margin-left: -1.5px;
    border-radius: 3px;
    background: #fff;
    animation: amor-cue 1.8s ease-in-out infinite;
}

@media (min-width: 768px) {
    .amor-scroll-cue { display: block; }
}

@keyframes amor-kenburns {
    from { transform: scale(1.08) translateZ(0); }
    to { transform: scale(1) translateZ(0); }
}

@keyframes amor-rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes amor-cue {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}

/* ───────────── Section backdrop ───────────── */
.amor-page {
    background: linear-gradient(180deg, var(--amor-ivory) 0%, var(--amor-sand) 55%, var(--amor-ivory) 100%) !important;
}

/* ───────────── Section titles ───────────── */
.amor-head {
    text-align: center;
}

.amor-head::before {
    content: '';
    display: block;
    width: 44px;
    height: 2px;
    margin: 0 auto 1.4rem;
    background: linear-gradient(90deg, var(--amor-gold), var(--amor-gold-light));
    border-radius: 2px;
}

.amor-head span[aria-hidden='true'] {
    display: none;
}

.amor-head h2,
.amor-head > div > p.font-display {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4.4vw, 3.4rem) !important;
    line-height: 1.08 !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    color: var(--amor-ink) !important;
}

.amor-head > p,
.amor-head > div + p {
    color: var(--amor-ink-soft);
    font-size: 1.02rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.amor-head a.underline {
    text-decoration: none;
    color: var(--amor-ink);
    border: 1px solid var(--amor-line);
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    background: #fff;
    transition: all 0.3s var(--amor-ease);
}

.amor-head a.underline:hover {
    background: var(--amor-ink);
    color: #fff;
    transform: translateY(-2px);
}

.amor-head .justify-end {
    justify-content: center !important;
}

/* ───────────── Highlights carousel ───────────── */
#highlightsCarousel > a h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    font-weight: 600 !important;
    color: var(--amor-ink) !important;
}

#highlightsCarousel > a .overflow-hidden.rounded-2xl {
    border-radius: 1.75rem;
    box-shadow: 0 30px 70px -30px rgba(28, 25, 23, 0.45);
    transition: transform 0.6s var(--amor-ease), box-shadow 0.6s ease;
}

#highlightsCarousel > a:hover .overflow-hidden.rounded-2xl {
    transform: translateY(-4px);
    box-shadow: 0 40px 80px -30px rgba(28, 25, 23, 0.55);
}

[data-highlights-nav] {
    background: #fff;
    border: 1px solid var(--amor-line);
    border-radius: 999px !important;
    color: var(--amor-ink) !important;
    box-shadow: 0 8px 22px -10px rgba(28, 25, 23, 0.3);
    transition: all 0.3s var(--amor-ease);
}

[data-highlights-nav]:hover {
    background: var(--amor-ink) !important;
    color: var(--amor-gold-light) !important;
    transform: scale(1.06);
}

/* ───────────── Glance (facts) card ───────────── */
.amor-glance {
    border-radius: 2rem !important;
    border: 1px solid var(--amor-line) !important;
    background: #fff !important;
    box-shadow: 0 40px 90px -50px rgba(28, 25, 23, 0.35) !important;
}

.amor-glance .grid > .flex {
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: var(--amor-ivory);
    border: 1px solid transparent;
    transition: transform 0.4s var(--amor-ease), border-color 0.3s ease, box-shadow 0.4s ease, background 0.3s ease;
}

.amor-glance .grid > .flex:hover {
    transform: translateY(-4px);
    background: #fff;
    border-color: rgba(184, 146, 58, 0.35);
    box-shadow: 0 18px 40px -22px rgba(184, 146, 58, 0.55);
}

.amor-glance .grid > .flex > div:first-child {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, var(--amor-gold-light), var(--amor-gold));
    color: var(--amor-ink);
    flex-shrink: 0;
}

.amor-glance .grid > .flex > div:first-child svg {
    width: 20px;
    height: 20px;
}

/* ───────────── Villa cards ───────────── */
article.group {
    border-radius: 1.75rem !important;
    border: 1px solid var(--amor-line) !important;
    background: #fff;
    box-shadow: 0 2px 4px rgba(28, 25, 23, 0.03), 0 24px 50px -34px rgba(28, 25, 23, 0.4) !important;
    transition: transform 0.5s var(--amor-ease), box-shadow 0.5s ease !important;
}

article.group:hover {
    transform: translateY(-8px);
    box-shadow: 0 2px 4px rgba(28, 25, 23, 0.04), 0 44px 70px -34px rgba(28, 25, 23, 0.5) !important;
}

article.group .rounded-t-2xl {
    border-radius: 1.75rem 1.75rem 0 0 !important;
}

article.group .font-display.text-xl {
    font-size: 1.7rem !important;
    line-height: 1.1;
    font-weight: 600;
}

article.group .rounded-full.bg-zinc-950 {
    background: var(--amor-ink) !important;
    border-color: transparent !important;
    padding: 0.55rem 0.95rem !important;
    color: var(--amor-gold-light) !important;
}

article.group a.rounded-full {
    transition: all 0.3s var(--amor-ease);
}

article.group a.bg-zinc-900 {
    background: linear-gradient(135deg, var(--amor-gold-light), var(--amor-gold)) !important;
    color: var(--amor-ink) !important;
    box-shadow: 0 10px 24px -10px rgba(184, 146, 58, 0.8);
}

article.group a.bg-zinc-900:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -10px rgba(184, 146, 58, 0.95);
}

article.group a.bg-white:hover {
    background: var(--amor-ink) !important;
    color: #fff !important;
    border-color: var(--amor-ink) !important;
}

/* Foto brenda kartave: zmadhim i butë */
.photo-rich {
    filter: saturate(1.1) contrast(1.04) brightness(1.04);
}

/* ───────────── WhatsApp float ───────────── */
a[href*='wa.me'].fixed {
    background: #1f9d55 !important;
    box-shadow: 0 16px 36px -10px rgba(31, 157, 85, 0.65) !important;
    transition: transform 0.35s var(--amor-ease), box-shadow 0.35s ease !important;
}

a[href*='wa.me'].fixed:hover {
    transform: translateY(-3px) scale(1.03);
}

/* ───────────── Footer ───────────── */
.amor-footer {
    margin-top: 0;
    background: #14110f;
    color: #d6d3d1;
    position: relative;
    overflow: hidden;
}

.amor-footer::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--amor-gold), transparent);
}

.amor-footer::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    right: -160px;
    top: -240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 146, 58, 0.16), transparent 65%);
    pointer-events: none;
}

.amor-footer-inner {
    position: relative;
    z-index: 1;
    max-width: 72rem;
    margin: 0 auto;
    padding: 5rem 1.5rem 3rem;
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .amor-footer-inner {
        grid-template-columns: 1.5fr 1fr 1.2fr;
        padding-inline: 2rem;
    }
}

.amor-footer h4 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--amor-gold-light);
    margin-bottom: 1.2rem;
}

.amor-footer .brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 500;
    color: #fff;
}

.amor-footer p {
    color: #a8a29e;
    font-size: 0.92rem;
    line-height: 1.75;
    margin-top: 1rem;
    max-width: 24rem;
}

.amor-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.8rem;
}

.amor-footer ul a {
    color: #d6d3d1;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.25s ease, transform 0.3s var(--amor-ease);
}

.amor-footer ul a:hover {
    color: var(--amor-gold-light);
    transform: translateX(4px);
}

.amor-footer .cta {
    display: inline-flex;
    margin-top: 1.4rem;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--amor-ink);
    background: linear-gradient(135deg, var(--amor-gold-light), var(--amor-gold));
    box-shadow: 0 14px 30px -12px rgba(184, 146, 58, 0.8);
    transition: transform 0.3s var(--amor-ease), box-shadow 0.3s ease;
}

.amor-footer .cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px -12px rgba(184, 146, 58, 0.95);
}

.amor-footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.6rem 1rem;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: #78716c;
}

/* ───────────── Reveal on scroll ───────────── */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.9s var(--amor-ease), transform 0.9s var(--amor-ease);
    transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ───────────── Faqet e brendshme (vila, kontakt) ───────────── */
main > section h1.font-display,
main h1.font-display {
    letter-spacing: -0.015em;
}

main input,
main textarea,
main select {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

main input:focus,
main textarea:focus,
main select:focus {
    border-color: var(--amor-gold) !important;
    box-shadow: 0 0 0 4px rgba(184, 146, 58, 0.18) !important;
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .js-reveal .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ───────────── Mobile nav: i shpejtë, panel i errët që rrëshqet nga e djathta ───────────── */
@media (max-width: 767.98px) {
    #mobileNavBookStage { perspective: none !important; }

    #mobileNavBackdrop {
        background: rgba(12, 10, 9, 0.55) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transition: opacity 0.25s ease !important;
    }

    #mobileNavOverlay #mobileNavPanel,
    #mobileNavOverlay:not(.is-open) #mobileNavPanel,
    #mobileNavOverlay.is-open #mobileNavPanel {
        transform-style: flat !important;
        backface-visibility: visible !important;
        border: 0 !important;
        border-radius: 1.75rem 0 0 1.75rem !important;
        background: #14110f !important;
        box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35) !important;
        will-change: transform;
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1) !important;
    }
    #mobileNavOverlay:not(.is-open) #mobileNavPanel { transform: translate3d(100%, 0, 0) !important; }
    #mobileNavOverlay.is-open #mobileNavPanel { transform: translate3d(0, 0, 0) !important; }

    .mobile-nav-paper-edge { display: none; }

    /* Header i panelit */
    #mobileNavPanel > div > div:first-child {
        background: transparent !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding: 1.1rem 1.4rem !important;
        backdrop-filter: none !important;
    }
    #mobileNavPanel > div > div:first-child a span { color: #fff !important; font-size: 1.5rem !important; }
    #mobileNavCloseBtn {
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(255, 255, 255, 0.14) !important;
        color: #fff !important;
        border-radius: 999px !important;
    }

    /* Linket */
    #mobileNavPanel > div > div:last-child { background: transparent !important; padding: 0.6rem 1.4rem 1.6rem !important; }
    #mobileNavPanel .grid { gap: 0 !important; }
    #mobileNavPanel .grid > a {
        background: transparent !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        --tw-ring-shadow: 0 0 #0000 !important;
        padding: 1.15rem 0.2rem !important;
        color: #e7e5e4 !important;
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-size: 1.9rem !important;
        font-weight: 500 !important;
        letter-spacing: 0 !important;
        opacity: 0;
        transform: translateX(18px);
        transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), color 0.2s ease !important;
    }
    #mobileNavPanel .grid > a span:last-child { color: var(--amor-gold-light) !important; font-family: 'Instrument Sans', sans-serif; font-size: 1.1rem; }
    #mobileNavPanel .grid > a svg { color: var(--amor-gold-light) !important; }
    #mobileNavPanel .grid > a[class*='bg-amber-50'] { color: var(--amor-gold-light) !important; }
    #mobileNavPanel .grid > a:active { color: var(--amor-gold-light) !important; }

    #mobileNavOverlay.is-open #mobileNavPanel .grid > a { opacity: 1; transform: none; }
    #mobileNavOverlay.is-open #mobileNavPanel .grid > a:nth-child(1) { transition-delay: 0.06s, 0.06s, 0s; }
    #mobileNavOverlay.is-open #mobileNavPanel .grid > a:nth-child(2) { transition-delay: 0.1s, 0.1s, 0s; }
    #mobileNavOverlay.is-open #mobileNavPanel .grid > a:nth-child(3) { transition-delay: 0.14s, 0.14s, 0s; }
    #mobileNavOverlay.is-open #mobileNavPanel .grid > a:nth-child(4) { transition-delay: 0.18s, 0.18s, 0s; }

    /* Kutia e rezervimit */
    #mobileNavPanel .grid ~ div {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-top: 1.6rem !important;
    }
    #mobileNavPanel .grid ~ div a {
        background: linear-gradient(135deg, var(--amor-gold-light), var(--amor-gold)) !important;
        color: var(--amor-ink) !important;
        border-radius: 999px !important;
        padding: 1rem 1.4rem !important;
        box-shadow: 0 14px 30px -12px rgba(184, 146, 58, 0.8) !important;
    }
}
