/* =========================================
   PREMIUM EDITORIAL PHOTO THEME
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --bg-dark: #050505;
    --bg-elevated: #10100f;
    --bg-soft: #171513;
    --text-primary: #f7f3ec;
    --text-muted: #b9b0a4;
    --text-soft: #81786d;
    --accent-champagne: #d8bd82;
    --accent-gold: #d8bd82;
    --accent-ivory: #fff6e5;
    --line-soft: rgba(255, 246, 229, 0.12);
    --line-strong: rgba(216, 189, 130, 0.42);
    --surface-glass: rgba(12, 12, 11, 0.68);
    --shadow-deep: 0 24px 80px rgba(0, 0, 0, 0.48);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1180px;
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
    background: var(--bg-dark);
}

body {
    min-width: 320px;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: rgba(216, 189, 130, 0.24);
}

body.lightbox-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    touch-action: manipulation;
}

button {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    letter-spacing: 0;
    text-wrap: balance;
}

section[id],
footer[id] {
    scroll-margin-top: 96px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-champagne);
    outline-offset: 4px;
}

.text-gold {
    color: var(--accent-champagne);
}

.container {
    width: min(100% - 32px, var(--container-width));
    margin: 0 auto;
}

.section-kicker {
    margin-bottom: 0.85rem;
    color: var(--accent-champagne);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    line-height: 1;
}

.section-subtitle,
.section-lead {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1200;
    padding: calc(0.9rem + env(safe-area-inset-top)) 1rem 0.9rem;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.34));
    border-bottom: 1px solid rgba(255, 246, 229, 0.08);
    backdrop-filter: blur(16px);
}

.site-header-inner {
    width: min(100% - 16px, var(--container-width));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 0.6rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-champagne);
    box-shadow: 0 0 18px rgba(216, 189, 130, 0.64);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.75rem;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 600;
    transition: color 180ms ease, background-color 180ms ease;
}

.site-nav a:hover {
    background: rgba(255, 246, 229, 0.06);
    color: var(--text-primary);
}

/* =========================================
   MOTION
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes softBounce {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-7px);
    }
}

.animate-up {
    opacity: 0;
    animation: fadeInUp 720ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-fade {
    opacity: 0;
    animation: fadeIn 900ms ease forwards;
}

.delay-1 {
    animation-delay: 80ms;
}

.delay-2 {
    animation-delay: 180ms;
}

.delay-3 {
    animation-delay: 280ms;
}

.delay-4 {
    animation-delay: 420ms;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 640ms ease, transform 640ms ease;
}

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

/* =========================================
   HERO
   ========================================= */
.magic-hero {
    min-height: 100dvh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8rem 0 6rem;
    background: var(--bg-dark);
}

.hero-media-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.9) contrast(1.06);
    transform: scale(1.02);
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.88), rgba(5, 5, 5, 0.58) 42%, rgba(5, 5, 5, 0.22)),
        linear-gradient(to top, var(--bg-dark), rgba(5, 5, 5, 0.08) 38%, rgba(5, 5, 5, 0.5));
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--container-width));
    margin: 0 auto;
}

.hero-kicker {
    margin-bottom: 1.4rem;
    color: var(--accent-champagne);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-title-main {
    display: grid;
    gap: 0.2rem;
    max-width: 880px;
    font-size: 5.75rem;
    line-height: 0.92;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-value-prop {
    max-width: 680px;
    margin-top: 1.8rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.22;
    text-wrap: balance;
}

.hero-desc {
    max-width: 560px;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.2rem;
}

.hero-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 2rem;
}

.hero-meta-strip span,
.gallery-filter {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 0.9rem;
    border: 1px solid rgba(255, 246, 229, 0.14);
    border-radius: var(--radius);
    background: rgba(5, 5, 5, 0.36);
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    animation: softBounce 2.2s ease-in-out infinite;
}

/* =========================================
   BUTTONS
   ========================================= */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    gap: 0.55rem;
    padding: 0.95rem 1.35rem;
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

.hero-primary {
    border: 1px solid var(--accent-champagne);
    background: var(--accent-champagne);
    color: #14110c;
    box-shadow: 0 16px 42px rgba(216, 189, 130, 0.22);
}

.hero-secondary {
    border: 1px solid rgba(255, 246, 229, 0.24);
    background: rgba(5, 5, 5, 0.36);
    color: var(--text-primary);
}

/* =========================================
   GALLERY
   ========================================= */
.grid-gallery-section {
    padding: 7rem 0;
    background:
        radial-gradient(circle at top left, rgba(216, 189, 130, 0.08), transparent 34rem),
        var(--bg-dark);
}

.gallery-header {
    width: min(100% - 32px, var(--container-width));
    margin: 0 auto 3.5rem;
    text-align: center;
}

.gallery-filter-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.6rem;
}

.gallery-filter {
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.gallery-filter:hover,
.gallery-filter.is-active {
    border-color: var(--line-strong);
    background: rgba(216, 189, 130, 0.12);
    color: var(--accent-ivory);
}

.gallery-grid-container {
    width: min(100% - 32px, 1400px);
    margin: 0 auto;
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-flow: dense;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    display: block;
    grid-column: span 4;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 246, 229, 0.1);
    border-radius: var(--radius);
    background: var(--bg-soft);
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.gallery-feature {
    grid-column: span 6;
    grid-row: span 2;
    aspect-ratio: 4 / 5;
}

.gallery-wide {
    grid-column: span 6;
    aspect-ratio: 16 / 10;
}

.gallery-item.is-hidden {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(216, 189, 130, 0.48);
    box-shadow: var(--shadow-deep);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 480ms ease, filter 480ms ease;
}

.gallery-item:hover img {
    transform: scale(1.035);
    filter: saturate(1.04) contrast(1.02);
}

.item-overlay {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    gap: 0.35rem;
    padding: 5rem 1.25rem 1.2rem;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0));
}

.item-index {
    color: var(--accent-champagne);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
}

.item-title {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
}

.item-type {
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(12px);
    overscroll-behavior: contain;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    width: auto;
    height: auto;
    max-width: calc(100vw - 2rem);
    max-height: calc(100dvh - 2rem);
    border: 1px solid rgba(255, 246, 229, 0.1);
    border-radius: var(--radius);
    object-fit: contain;
    box-shadow: var(--shadow-deep);
}

.lightbox-caption {
    position: absolute;
    left: 1rem;
    bottom: calc(3.4rem + env(safe-area-inset-bottom));
    max-width: min(72vw, 860px);
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(255, 246, 229, 0.12);
    border-radius: var(--radius);
    background: rgba(5, 5, 5, 0.68);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
}

.lightbox-counter {
    position: absolute;
    left: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(255, 246, 229, 0.12);
    border-radius: var(--radius);
    background: rgba(5, 5, 5, 0.68);
    backdrop-filter: blur(10px);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.close-btn,
.prev-lightbox,
.next-lightbox {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    border: 1px solid rgba(255, 246, 229, 0.14);
    border-radius: var(--radius);
    background: rgba(12, 12, 11, 0.74);
    color: var(--text-primary);
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.close-btn {
    top: calc(1rem + env(safe-area-inset-top));
    right: 1rem;
    font-size: 2rem;
    line-height: 1;
}

.prev-lightbox,
.next-lightbox {
    top: 50%;
    font-size: 1.6rem;
    transform: translateY(-50%);
}

.prev-lightbox {
    left: 1rem;
}

.next-lightbox {
    right: 1rem;
}

.close-btn:hover,
.prev-lightbox:hover,
.next-lightbox:hover {
    border-color: var(--line-strong);
    background: rgba(216, 189, 130, 0.12);
    color: var(--accent-champagne);
}

/* =========================================
   SERVICES
   ========================================= */
.services-section {
    padding: 7rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), #0d0c0b);
}

.section-header {
    max-width: 820px;
    margin: 0 auto 3rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.spotlight-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 246, 229, 0.045), rgba(255, 246, 229, 0.018));
    transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(520px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(216, 189, 130, 0.12),
            transparent 42%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.spotlight-card:hover {
    transform: translateY(-4px);
    border-color: rgba(216, 189, 130, 0.36);
}

.spotlight-card:hover::before {
    opacity: 1;
}

.service-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.4rem;
    border: 1px solid rgba(216, 189, 130, 0.26);
    border-radius: var(--radius);
    background: rgba(216, 189, 130, 0.08);
    color: var(--accent-champagne);
}

.service-title,
.service-desc {
    position: relative;
    z-index: 1;
}

.service-title {
    margin-bottom: 0.8rem;
    font-size: 1.35rem;
    line-height: 1.12;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* =========================================
   PROCESS
   ========================================= */
.process-section {
    padding: 7rem 0;
    background:
        radial-gradient(circle at bottom right, rgba(216, 189, 130, 0.08), transparent 30rem),
        #0d0c0b;
}

.process-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: start;
}

.process-list {
    display: grid;
    gap: 0.75rem;
}

.process-item {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 0 1rem;
    padding: 1.15rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 246, 229, 0.035);
}

.process-number {
    grid-row: span 2;
    color: var(--accent-champagne);
    font-family: var(--font-heading);
    font-weight: 700;
}

.process-item h3 {
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
}

.process-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   FOOTER / CONTACT
   ========================================= */
.footer-cta {
    padding: 7rem 1rem;
    border-top: 1px solid var(--line-soft);
    background: linear-gradient(to bottom, #0d0c0b, var(--bg-dark));
    text-align: center;
}

.cta-box {
    max-width: 780px;
    margin: 0 auto;
}

.footer-avatar-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    overflow: hidden;
    border: 2px solid rgba(216, 189, 130, 0.36);
    border-radius: 50%;
    box-shadow: 0 0 36px rgba(216, 189, 130, 0.16);
}

.footer-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 220ms ease;
}

.footer-avatar-container:hover .footer-avatar {
    filter: grayscale(0%);
}

.footer-title {
    margin: 0 auto 2rem;
    max-width: 680px;
    font-size: 2.25rem;
    line-height: 1.08;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.telegram-btn,
.whatsapp-btn {
    border: 1px solid rgba(255, 246, 229, 0.18);
    background: rgba(255, 246, 229, 0.06);
    color: var(--text-primary);
}

.telegram-btn:hover,
.whatsapp-btn:hover {
    border-color: var(--line-strong);
    background: rgba(216, 189, 130, 0.12);
    color: var(--accent-ivory);
}

.social-links-footer {
    margin-bottom: 2rem;
}

.social-link {
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 180ms ease, border-color 180ms ease;
}

.social-link:hover {
    color: var(--accent-champagne);
}

.footer-copy {
    color: rgba(255, 246, 229, 0.28);
    font-size: 0.82rem;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (min-width: 1440px) {
    .hero-title-main {
        font-size: 7rem;
    }
}

@media (max-width: 980px) {
    .site-header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-nav {
        width: 100%;
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 0.15rem;
    }

    .hero-title-main {
        font-size: 4.4rem;
    }

    .editorial-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .gallery-item,
    .gallery-feature,
    .gallery-wide {
        grid-column: span 3;
        grid-row: auto;
    }

    .services-grid,
    .process-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .container,
    .gallery-header,
    .gallery-grid-container,
    .hero-content-wrapper {
        width: min(100% - 24px, var(--container-width));
    }

    .site-header {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .site-nav a {
        flex: 0 0 auto;
        padding: 0 0.65rem;
        font-size: 0.82rem;
    }

    .magic-hero {
        align-items: flex-end;
        min-height: 760px;
        padding: 8.5rem 0 5.5rem;
    }

    .hero-scrim {
        background:
            linear-gradient(to top, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.32) 58%, rgba(5, 5, 5, 0.68)),
            linear-gradient(90deg, rgba(5, 5, 5, 0.75), rgba(5, 5, 5, 0.18));
    }

    .hero-title-main {
        font-size: 3.25rem;
    }

    .hero-value-prop {
        font-size: 1.22rem;
    }

    .hero-cta-row,
    .contact-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
    }

    .hero-meta-strip {
        display: none;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .grid-gallery-section,
    .services-section,
    .process-section,
    .footer-cta {
        padding: 5rem 0;
    }

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

    .gallery-item,
    .gallery-feature,
    .gallery-wide {
        grid-column: auto;
        aspect-ratio: 4 / 5;
    }

    .prev-lightbox,
    .next-lightbox {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }

    .lightbox-content {
        max-width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
    }

    .lightbox-caption {
        left: 0.5rem;
        right: 0.5rem;
        bottom: calc(3.1rem + env(safe-area-inset-bottom));
        max-width: none;
        font-size: 0.95rem;
    }

    .lightbox-counter {
        left: 0.5rem;
        bottom: calc(0.5rem + env(safe-area-inset-bottom));
    }

    .process-item {
        grid-template-columns: 2.5rem 1fr;
    }
}

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