/* ==========================================================================
   Yonja Mobilya — modern tema
   ========================================================================== */

:root {
    --bg: #f7f4ee;
    --bg-alt: #efe9df;
    --surface: #ffffff;
    --ink: #13241f;
    --ink-2: #3c4a45;
    --muted: #6d7671;
    --line: rgba(19, 36, 31, 0.12);
    --accent: #2f5d46;
    --accent-hover: #244a37;
    --accent-soft: #e2ebe4;
    --brass: #b08a4e;

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(19, 36, 31, .06), 0 2px 8px rgba(19, 36, 31, .04);
    --shadow: 0 10px 30px -10px rgba(19, 36, 31, .18), 0 4px 10px -6px rgba(19, 36, 31, .08);
    --shadow-lg: 0 30px 60px -20px rgba(19, 36, 31, .30);

    --header-h: 84px;
    --container: 1200px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 8px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.1; }
p { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: 10px;
    transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    padding: .8em 1.35em;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 1em 1.7em; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent); box-shadow: var(--shadow); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); }

.btn .fa-arrow-right { transition: transform .2s var(--ease); }
.btn:hover .fa-arrow-right { transform: translateX(3px); }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
}
.eyebrow .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.section { padding-block: clamp(72px, 10vw, 128px); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 {
    margin-top: 14px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    letter-spacing: -.02em;
}
.section-head p { margin-top: 16px; font-size: 1.08rem; color: var(--muted); }

.section-head-row {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    font-weight: 600;
    color: var(--ink);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line);
    transition: border-color .2s, gap .2s;
}
.link-arrow:hover { border-color: var(--ink); gap: .8em; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
    background: rgba(247, 244, 238, .82);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    box-shadow: 0 1px 0 var(--line);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ---------- Logo ---------- */
.brand {
    --mark: 48px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    line-height: 1;
}
.brand-mark {
    width: var(--mark);
    height: var(--mark);
    flex-shrink: 0;
    transition: transform .6s var(--ease);
}
a.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-text { display: grid; gap: 4px; }
.brand-name {
    font-family: var(--font-display);
    font-size: calc(var(--mark) * .74);
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: .9;
}
.brand-sub {
    font-size: calc(var(--mark) * .24);
    font-weight: 700;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--muted);
    padding-left: .1em;
}
.brand-lg { --mark: 54px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 4px; }
.nav ul a {
    position: relative;
    display: block;
    padding: 8px 14px;
    font-weight: 500;
    font-size: .95rem;
    color: var(--ink-2);
    border-radius: 999px;
    transition: color .2s, background-color .2s;
}
.nav ul a:hover { color: var(--ink); background: rgba(19, 36, 31, .05); }
.nav ul a.is-active { color: var(--ink); background: rgba(19, 36, 31, .07); }
.nav-cta { padding: .7em 1.2em; font-size: .9rem; }

.menu-toggle {
    display: none;
    position: relative;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
}
.menu-toggle span {
    position: absolute;
    left: 50%;
    width: 18px; height: 2px;
    margin-left: -9px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px));
    padding-bottom: clamp(56px, 8vw, 104px);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw; height: 60vw;
    max-width: 820px; max-height: 820px;
    background: radial-gradient(closest-side, rgba(47, 93, 70, .12), transparent);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
}

.hero h1 {
    margin-top: 22px;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.4vw, 4.6rem);
    letter-spacing: -.025em;
    line-height: 1.04;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.lead {
    margin-top: 24px;
    max-width: 520px;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.hero-facts strong { color: var(--ink); font-weight: 700; }
.fact-icon {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    flex-shrink: 0;
}

.hero-media {
    position: relative;
    width: 100%;
    max-width: 540px;
    justify-self: end;
    aspect-ratio: 540 / 600;
}
.hero-image {
    position: absolute;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #ddd6ca;
    box-shadow: var(--shadow-lg);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-main { top: 0; left: 0; width: 70%; }
.hero-image-side {
    right: 0;
    bottom: 0;
    width: 44%;
    border: 6px solid var(--bg);
    border-radius: calc(var(--radius-lg) + 6px);
}

.hero-card {
    position: absolute;
    left: clamp(-40px, -3vw, -16px);
    bottom: 12%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px 10px 10px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero-card img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.hero-card-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.hero-card strong { color: var(--ink); font-weight: 600; }

/* ---------- Ribbon ---------- */
.ribbon {
    overflow: hidden;
    background: var(--ink);
    color: rgba(255, 255, 255, .86);
    padding-block: 18px;
}
.ribbon-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}
.ribbon span {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-style: italic;
    white-space: nowrap;
}
.ribbon span::after {
    content: "";
    width: 6px; height: 6px;
    margin-inline: 32px;
    border-radius: 50%;
    background: var(--brass);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: none;
}
.step {
    position: relative;
    padding: 36px 32px 40px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.step-no {
    position: absolute;
    top: 28px; right: 32px;
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1;
    color: rgba(19, 36, 31, .09);
}
.step-icon {
    display: grid; place-items: center;
    width: 56px; height: 56px;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.3rem;
    transition: background-color .3s, color .3s;
}
.step:hover .step-icon { background: var(--accent); color: #fff; }
.step h3 {
    margin-top: 28px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: -.01em;
}
.step p { margin-top: 10px; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-item {
    position: relative;
    padding: 0;
    border: 0;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: #ddd6ca;
    cursor: zoom-in;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
}
.gallery-item::after {
    content: "\f00e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 16px; bottom: 16px;
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s, transform .3s var(--ease);
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; transform: none; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(320px, 5fr) 7fr;
    gap: 20px;
}
.contact-card {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: clamp(28px, 4vw, 44px);
    background: var(--ink);
    color: rgba(255, 255, 255, .78);
    border-radius: var(--radius-lg);
}
.contact-address {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-size: 1.15rem;
    line-height: 1.5;
    color: #fff;
}
.contact-icon {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: background-color .2s;
}
.contact-list { display: grid; gap: 6px; flex: 1; }
.contact-list a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px;
    margin-inline: -10px;
    border-radius: 16px;
    color: #fff;
    word-break: break-word;
    transition: background-color .2s;
}
.contact-list a:hover { background: rgba(255, 255, 255, .06); }
.contact-list a:hover .contact-icon { background: var(--accent); }
.contact-list small {
    display: block;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

.map {
    min-height: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-alt);
    box-shadow: var(--shadow-sm);
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 460px; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
    background: #0e1b17;
    color: rgba(255, 255, 255, .6);
    padding-top: 64px;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 48px;
}
.footer-brand .brand { --leaf: #6fa585; --leaf-lucky: #d2ab6c; color: #fff; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, .55); }
.footer-brand p { margin-top: 16px; max-width: 340px; font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { color: rgba(255, 255, 255, .8); transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-social {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 1.2rem;
    transition: background-color .2s, border-color .2s;
}
.footer-social:hover { background: var(--accent); border-color: var(--accent); }
.footer-bottom {
    padding-block: 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .85rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
    width: 100vw; height: 100vh;
    max-width: none; max-height: none;
    margin: 0; padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox::backdrop { background: rgba(10, 18, 15, .92); backdrop-filter: blur(6px); }
.lightbox figure {
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 64px 0 24px;
    max-height: 100vh;
}
.lightbox img {
    max-width: min(88vw, 560px);
    max-height: calc(100vh - 140px);
    border-radius: var(--radius);
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox figcaption {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    padding-inline: 16px;
    text-align: center;
    font-size: .9rem;
    color: rgba(255, 255, 255, .75);
}
.lb-count { color: rgba(255, 255, 255, .45); font-variant-numeric: tabular-nums; }
.lb-btn {
    display: grid; place-items: center;
    width: 52px; height: 52px;
    margin: 0 clamp(8px, 3vw, 32px);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    transition: background-color .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .16); }
.lb-close { position: absolute; top: 16px; right: 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Hero animates in immediately, without waiting for the observer */
.js .hero .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    animation: rise .9s var(--ease) both;
    animation-delay: var(--d, 0s);
}
@keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-media { justify-self: center; }
    .hero-card { left: 0; bottom: 6%; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
    .menu-toggle { display: block; z-index: 2; }

    .nav {
        position: fixed;
        inset: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 32px;
        padding: calc(var(--header-h) + 16px) 24px 32px;
        background: var(--bg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
    }
    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity .3s, transform .3s var(--ease), visibility 0s;
    }
    .nav ul { flex-direction: column; gap: 0; }
    .nav ul a {
        padding: 16px 4px;
        border-radius: 0;
        border-bottom: 1px solid var(--line);
        font-family: var(--font-display);
        font-size: 1.9rem;
        color: var(--ink);
    }
    .nav ul a:hover, .nav ul a.is-active { background: none; color: var(--accent); }
    .nav-cta { padding: 1em; font-size: 1rem; }

    .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    :root { --header-h: 72px; }
    .brand { --mark: 40px; }

    .hero-actions .btn { flex: 1 1 100%; }
    .hero-card { padding-right: 16px; }
    .hero-card img { width: 52px; height: 52px; }

    .gallery {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 72%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        margin-inline: -16px;
        padding-inline: 16px;
        scroll-padding-inline: 16px;
    }
    .gallery::-webkit-scrollbar { display: none; }
    .gallery-item { scroll-snap-align: start; }

    .map, .map iframe { min-height: 340px; }

    .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
    .lightbox figure { grid-column: 1 / -1; grid-row: 1; padding-top: 72px; }
    .lb-prev { grid-row: 2; justify-self: end; margin-bottom: 24px; }
    .lb-next { grid-row: 2; justify-self: start; margin-bottom: 24px; }
}

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