/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black:       #080808;
    --dark:        #111111;
    --dark-mid:    #181818;
    --gray:        #555555;
    --muted:       rgba(245, 240, 235, 0.55);
    --white:       #f5f0eb;
    --accent:      #b8976a;
    --font-serif:  'Cormorant Garamond', Georgia, serif;
    --font-sans:   'Montserrat', sans-serif;
    --nav-h:       80px;
    --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-sans);
    font-weight: 300;
    overflow-x: hidden;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: var(--nav-h);
    transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.35s var(--ease);
    border-bottom: 1px solid transparent;
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.navbar.scrolled {
    background: rgba(8, 8, 8, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo .logo-img {
    height: 34px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    color: rgba(245, 240, 235, 0.78);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transition: color 0.3s var(--ease);
}

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

.nav-links .nav-cta {
    border: 1px solid rgba(245, 240, 235, 0.35);
    padding: 9px 22px;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.nav-links .nav-cta:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}

/* ===========================
   DESKTOP DROPDOWN
   =========================== */
.has-dropdown {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.nav-chevron {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
}

.has-dropdown.open .nav-chevron {
    transform: rotate(-135deg) translateY(2px);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 16px 0;
    min-width: 180px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    z-index: 100;
}

.has-dropdown.open .nav-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 11px 28px;
    color: rgba(245, 240, 235, 0.65);
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.nav-dropdown a:hover {
    color: var(--white);
    padding-left: 36px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 1px;
    background: var(--white);
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   MOBILE MENU
   =========================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 950;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-close {
    position: absolute;
    top: 28px;
    right: 36px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    line-height: 1;
}

.mobile-close:hover { opacity: 1; }

/* Mobile item with expand button */
.mobile-has-sub {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.mobile-expand-btn {
    background: none;
    border: 1px solid rgba(245, 240, 235, 0.25);
    color: rgba(245, 240, 235, 0.7);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
    flex-shrink: 0;
    padding: 0 0 1px 0;
}

.mobile-expand-btn:hover {
    border-color: var(--white);
    color: var(--white);
    transform: rotate(90deg);
}

/* Mobile submenu panel */
.mobile-submenu {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 955;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-submenu.open {
    transform: translateX(0);
}

.mobile-back {
    position: absolute;
    top: 32px;
    left: 32px;
    background: none;
    border: none;
    color: rgba(245, 240, 235, 0.65);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s var(--ease);
}

.mobile-back:hover { color: var(--white); }

.back-arrow {
    font-size: 1rem;
    transition: transform 0.3s var(--ease);
}

.mobile-back:hover .back-arrow {
    transform: translateX(-4px);
}

.mobile-submenu ul {
    list-style: none;
    text-align: center;
}

.mobile-submenu ul li {
    margin: 14px 0;
}

.mobile-submenu ul li a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.3s var(--ease);
}

.mobile-submenu ul li a:hover {
    color: var(--accent);
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu ul li {
    margin: 18px 0;
    overflow: hidden;
}

.mobile-menu ul li a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    transition: color 0.3s var(--ease);
}

.mobile-menu ul li a:hover {
    color: var(--accent);
}

/* ===========================
   SECTIONS — SHARED
   =========================== */
.section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    overflow: hidden;
}

.section-bg {
    position: absolute;
    inset: -8% 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

.boca-bg {
    background-image: url('../images/collections/boca/32.jpg');
}

.antico-bg {
    background-image: url('../images/collections/antico/31.jpg');
}

.lual-bg {
    background-image: url('../images/collections/lual/jednobojna/12.jpg');
}

.seattle-bg {
    background-image: url('../images/collections/seattle/15.jpg');
}

.zenith-bg {
    background-image: url('../images/collections/zenith/1.jpg');
}

.mesh-bg {
    background-image: url('../images/collections/mesh/1.jpg');
}

@media (max-width: 768px) {
    .boca-bg {
        background-image: url('../images/collections/boca/5.jpg');
    }

    .antico-bg {
        background-image: url('../images/collections/antico/28.jpg');
    }

    .lual-bg {
        background-image: url('../images/collections/lual/jednobojna/7.jpg');
    }

    .seattle-bg {
        background-image: url('../images/collections/seattle/12.jpg');
    }

    .zenith-bg {
        background-image: url('../images/collections/zenith/2.jpg');
    }

    .mesh-bg {
        background-image: url('../images/collections/mesh/3.jpg');
    }
}

.section-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0,0,0,0.50) 0%,
        rgba(0,0,0,0.65) 45%,
        rgba(0,0,0,0.90) 100%
    );
}

/* ===========================
   HERO
   =========================== */
.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0.30) 40%,
        rgba(0,0,0,0.78) 100%
    );
}

.hero-content {
    position: absolute;
    bottom: 11%;
    left: 8%;
    max-width: 640px;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5.8vw, 5.6rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: 0.03em;
    margin-bottom: 22px;
    color: var(--white);
}

.hero-subtitle {
    font-size: clamp(0.78rem, 1.1vw, 0.9rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 1.9;
    color: rgba(245, 240, 235, 0.75);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 52px;
    background: linear-gradient(to bottom, transparent, rgba(245, 240, 235, 0.5));
    animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0; transform: scaleY(0.4); transform-origin: top; }
    50%       { opacity: 1; transform: scaleY(1);   transform-origin: top; }
}

/* ===========================
   COLLECTION SECTIONS
   =========================== */
.collection-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    z-index: 2;
}

.collection-text {
    padding: 0 8% 9%;
    max-width: 540px;
}

.collection-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.collection-name {
    font-family: var(--font-serif);
    font-size: clamp(3.2rem, 6.5vw, 6rem);
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 18px;
    color: var(--white);
}

.collection-tagline {
    font-family: var(--font-serif);
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    font-style: italic;
    font-weight: 300;
    color: rgba(245, 240, 235, 0.88);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.collection-desc {
    font-size: clamp(0.74rem, 0.95vw, 0.84rem);
    font-weight: 300;
    line-height: 1.9;
    color: rgba(245, 240, 235, 0.65);
    letter-spacing: 0.05em;
    margin-bottom: 28px;
    max-width: 420px;
}

.collection-desc em     { font-style: italic; color: rgba(245, 240, 235, 0.85); }
.collection-desc strong { font-weight: 500;   color: var(--white); }

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(245, 240, 235, 0.35);
    transition: border-color 0.35s var(--ease), gap 0.35s var(--ease), color 0.35s var(--ease);
}

.btn-explore::after {
    content: '→';
    display: inline-block;
    transition: transform 0.35s var(--ease);
}

.btn-explore:hover {
    border-color: var(--white);
    gap: 16px;
}

.btn-explore:hover::after {
    transform: translateX(4px);
}

/* ===========================
   REVEAL ANIMATION
   =========================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity  0.95s var(--ease),
        transform 0.95s var(--ease);
}

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

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    padding: 90px 0 44px;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
}

.footer-top {
    display: grid;
    grid-template-columns: 220px 1fr 280px;
    gap: 80px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.footer-logo {
    height: 30px;
    width: auto;
    display: block;
    margin-bottom: 22px;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.75;
    color: rgba(245, 240, 235, 0.45);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.3);
    margin-bottom: 22px;
}

.footer-col ul          { list-style: none; }
.footer-col ul li       { margin-bottom: 13px; }

.footer-col ul li a {
    color: rgba(245, 240, 235, 0.6);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    transition: color 0.3s var(--ease);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-newsletter h4 {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.3);
    margin-bottom: 14px;
}

.footer-newsletter > p {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(245, 240, 235, 0.5);
    letter-spacing: 0.04em;
    line-height: 1.7;
    margin-bottom: 22px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
    padding: 13px 16px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    outline: none;
    transition: border-color 0.3s var(--ease);
}

.newsletter-input::placeholder { color: rgba(245, 240, 235, 0.25); }
.newsletter-input:focus         { border-color: rgba(255, 255, 255, 0.25); }

.newsletter-btn {
    background: var(--white);
    color: var(--black);
    border: none;
    padding: 13px 20px;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
    margin-top: 4px;
}

.newsletter-btn:hover {
    background: var(--accent);
}

.footer-bottom {
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(245, 240, 235, 0.22);
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-author-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

.footer-author-link:hover {
    color: rgba(245, 240, 235, 0.6);
}

.footer-coffee {
    height: 14px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    opacity: 0.22;
    transform: translateY(-1px);
}

/* ===========================
   FORM SUCCESS
   =========================== */
.form-success {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: rgba(245, 240, 235, 0.75);
    line-height: 1.8;
    padding: 32px 0;
    text-align: center;
}

/* ===========================
   SCROLL NAVIGATOR
   =========================== */
.scroll-nav {
    position: fixed;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
}

.scroll-nav-track {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.scroll-nav-track::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(245, 240, 235, 0.1);
    transform: translateX(-50%);
}

.scroll-nav-fill {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 0%;
    background: rgba(245, 240, 235, 0.55);
    transform: translateX(-50%);
    transition: height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.scroll-dot-btn {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1px solid rgba(245, 240, 235, 0.3);
    background: transparent;
    padding: 0;
    cursor: pointer;
    z-index: 1;
    transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s ease;
}

.scroll-dot-btn:hover {
    border-color: rgba(245, 240, 235, 0.85);
    transform: scale(1.4);
}

.scroll-dot-btn.active {
    border-color: rgba(245, 240, 235, 0.85);
    background: rgba(245, 240, 235, 0.85);
    transform: scale(1.25);
}

.scroll-dot-btn.passed {
    border-color: rgba(245, 240, 235, 0.55);
    background: rgba(245, 240, 235, 0.55);
}

.scroll-dot-label {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.75);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-dot-btn:hover .scroll-dot-label,
.scroll-dot-btn.active .scroll-dot-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1100px) {
    .nav-links { gap: 22px; }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .scroll-nav {
        right: 16px;
    }

    .scroll-dot-label {
        display: none;
    }

    .nav-links  { display: none; }
    .hamburger  { display: flex; }

    .nav-container { padding: 0 24px; }

    .hero-content {
        left: 6%;
        bottom: 10%;
        max-width: 90vw;
    }

    .collection-text {
        padding: 0 6% 12%;
        max-width: 92vw;
    }

    .collection-name { font-size: clamp(2.6rem, 10vw, 4rem); }

    .footer-container { padding: 0 24px; }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}
