/* ============================================
   SLAVIC FOREST CANDLE — Custom Theme CSS v2.0
   ============================================ */

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

:root {
    --color-bg:        #0a0a08;
    --color-bg-alt:    #111110;
    --color-surface:   #1a1914;
    --color-surface2:  #232218;
    --color-gold:      #c9a84c;
    --color-gold-light:#e0c872;
    --color-gold-dark: #a07c2a;
    --color-text:      #d4cfc0;
    --color-text-dim:  #8a8578;
    --color-white:     #f5f0e8;
    --font-heading:    'Cinzel', Georgia, serif;
    --font-body:       'Raleway', 'Segoe UI', sans-serif;
    --container:       1200px;
    --gap:             clamp(1.5rem, 4vw, 3rem);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-gold); text-decoration: none; transition: color .3s; }
a:hover { color: var(--color-gold-light); }

.sf-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* --- TYPOGRAPHY --- */
.sf-heading {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    color: var(--color-white);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}
.sf-heading--center { text-align: center; }
.sf-heading--light { color: var(--color-white); }

.sf-section-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1rem;
}
.sf-section-label--light { color: var(--color-gold-light); }

/* --- BUTTONS --- */
.sf-btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border: 1px solid var(--color-gold);
    background: var(--color-gold);
    color: var(--color-bg);
    cursor: pointer;
    transition: all .35s ease;
    text-align: center;
}
.sf-btn:hover {
    background: transparent;
    color: var(--color-gold-light);
    border-color: var(--color-gold-light);
}
.sf-btn--outline {
    background: transparent;
    color: var(--color-gold);
}
.sf-btn--outline:hover {
    background: var(--color-gold);
    color: var(--color-bg);
}
.sf-btn--lg { padding: 1rem 2.5rem; font-size: 0.85rem; }
.sf-btn--sm { padding: 0.55rem 1.3rem; font-size: 0.7rem; }

/* --- HEADER --- */
.sf-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10,10,8,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201,168,76,0.08);
    transition: background .3s;
}
.sf-header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.sf-header__logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sf-header__logo:hover { color: var(--color-gold); }
.sf-header__logo-icon {
    color: var(--color-gold);
    font-size: 1.4rem;
}
.sf-header__nav {
    display: flex;
    gap: 2rem;
}
.sf-header__nav a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    transition: color .3s;
}
.sf-header__nav a:hover { color: var(--color-gold); }

.sf-header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.sf-header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-gold);
    transition: all .3s;
}

.sf-mobile-nav {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(10,10,8,0.97);
    backdrop-filter: blur(12px);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
    z-index: 999;
    border-bottom: 1px solid rgba(201,168,76,0.1);
}
.sf-mobile-nav.active { display: flex; }
.sf-mobile-nav a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text);
}
.sf-mobile-nav a:hover { color: var(--color-gold); }

/* --- HERO --- */
.sf-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.sf-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10,10,8,0.5) 0%,
        rgba(10,10,8,0.3) 40%,
        rgba(10,10,8,0.7) 100%
    );
}
.sf-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}
.sf-hero__pre {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}
.sf-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--color-white);
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.sf-hero__sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    color: var(--color-text);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.sf-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.sf-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.sf-hero__scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-dim);
}
.sf-hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    animation: sf-scroll-pulse 2s ease-in-out infinite;
}
@keyframes sf-scroll-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* --- ABOUT --- */
.sf-about {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: var(--color-bg);
}
.sf-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    align-items: center;
}
.sf-about__text p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}
.sf-about__image {
    position: relative;
}
.sf-about__image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.sf-about__image::after {
    content: '';
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(201,168,76,0.15);
    pointer-events: none;
    z-index: -1;
}

/* --- OFFERINGS --- */
.sf-offerings {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: var(--color-bg-alt);
}
.sf-offerings .sf-heading {
    margin-bottom: 3rem;
}
.sf-offerings__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.sf-card {
    background: var(--color-surface);
    border: 1px solid rgba(201,168,76,0.08);
    overflow: hidden;
    transition: transform .4s ease, border-color .4s ease;
}
.sf-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201,168,76,0.25);
}
.sf-card__img {
    overflow: hidden;
    aspect-ratio: 1;
}
.sf-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.sf-card:hover .sf-card__img img {
    transform: scale(1.05);
}
.sf-card__body {
    padding: 1.75rem;
}
.sf-card__number {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}
.sf-card__body h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}
.sf-card__body p {
    font-size: 0.95rem;
    color: var(--color-text-dim);
    line-height: 1.65;
}

/* --- COLLECTION BANNER --- */
.sf-collection {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.sf-collection__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.sf-collection__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,10,8,0.72);
}
.sf-collection__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 700px;
}
.sf-collection__desc {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.75;
}

/* --- FEATURES --- */
.sf-features {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--color-bg);
    border-top: 1px solid rgba(201,168,76,0.06);
    border-bottom: 1px solid rgba(201,168,76,0.06);
}
.sf-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    text-align: center;
}
.sf-feature__icon {
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}
.sf-feature h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}
.sf-feature p {
    font-size: 0.9rem;
    color: var(--color-text-dim);
}

/* --- CONTACT --- */
.sf-contact {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: var(--color-bg-alt);
}
.sf-contact__inner {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}
.sf-contact__text {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}
.sf-contact__methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.sf-contact__method {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2.5rem;
    border: 1px solid rgba(201,168,76,0.15);
    background: var(--color-surface);
    transition: border-color .3s, background .3s;
}
.sf-contact__method:hover {
    border-color: var(--color-gold);
    background: var(--color-surface2);
}
.sf-contact__method-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 0.3rem;
}
.sf-contact__method-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-gold);
}

/* --- FOOTER --- */
.sf-footer {
    padding: 3rem 0 1.5rem;
    background: var(--color-surface);
    border-top: 1px solid rgba(201,168,76,0.08);
}
.sf-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--gap);
    margin-bottom: 2.5rem;
}
.sf-footer__logo {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-white);
    letter-spacing: 0.06em;
}
.sf-footer__tagline {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    margin-top: 0.5rem;
}
.sf-footer__links h4,
.sf-footer__contact h4 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1rem;
}
.sf-footer__links a,
.sf-footer__contact a {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-dim);
    margin-bottom: 0.5rem;
    transition: color .3s;
}
.sf-footer__links a:hover,
.sf-footer__contact a:hover { color: var(--color-gold); }

.sf-footer__bottom {
    border-top: 1px solid rgba(201,168,76,0.06);
    padding-top: 1.5rem;
    text-align: center;
}
.sf-footer__bottom p {
    font-size: 0.8rem;
    color: var(--color-text-dim);
}

/* --- GALLERY --- */
.sf-gallery {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: var(--color-bg);
}
.sf-gallery__intro {
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-text-dim);
    max-width: 550px;
    margin: -0.5rem auto 3rem;
}
.sf-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.sf-gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}
.sf-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease, filter .5s ease;
}
.sf-gallery__item:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}
.sf-gallery__hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,10,8,0.5);
    opacity: 0;
    transition: opacity .35s ease;
}
.sf-gallery__item:hover .sf-gallery__hover {
    opacity: 1;
}
.sf-gallery__hover span {
    font-size: 2rem;
    color: var(--color-gold);
}

/* --- LIGHTBOX --- */
.sf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5,5,3,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}
.sf-lightbox.active {
    opacity: 1;
    pointer-events: all;
}
.sf-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border: 1px solid rgba(201,168,76,0.12);
    box-shadow: 0 8px 60px rgba(0,0,0,0.6);
    transition: transform .3s ease;
}
.sf-lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(201,168,76,0.2);
    color: var(--color-gold);
    font-size: 1.5rem;
    cursor: pointer;
    transition: border-color .3s, background .3s;
    line-height: 1;
}
.sf-lightbox__close:hover {
    border-color: var(--color-gold);
    background: rgba(201,168,76,0.1);
}
.sf-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(201,168,76,0.2);
    color: var(--color-gold);
    font-size: 1.4rem;
    cursor: pointer;
    transition: border-color .3s, background .3s;
    user-select: none;
}
.sf-lightbox__nav:hover {
    border-color: var(--color-gold);
    background: rgba(201,168,76,0.1);
}
.sf-lightbox__prev { left: 1.5rem; }
.sf-lightbox__next { right: 1.5rem; }
.sf-lightbox__counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--color-text-dim);
}

@media (max-width: 1024px) {
    .sf-gallery__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .sf-gallery__grid { grid-template-columns: repeat(2, 1fr); }
    .sf-lightbox__prev { left: 0.5rem; }
    .sf-lightbox__next { right: 0.5rem; }
}
@media (max-width: 480px) {
    .sf-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- ANIMATIONS (fade-in on scroll) --- */
.sf-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}
.sf-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .sf-offerings__grid { grid-template-columns: repeat(2, 1fr); }
    .sf-features__grid  { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .sf-footer__inner   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .sf-header__nav     { display: none; }
    .sf-header__inner .sf-btn { display: none; }
    .sf-header__burger  { display: flex; }

    .sf-about__grid        { grid-template-columns: 1fr; }
    .sf-offerings__grid    { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .sf-features__grid     { grid-template-columns: 1fr 1fr; }
    .sf-footer__inner      { grid-template-columns: 1fr; text-align: center; }

    .sf-hero { background-attachment: scroll; }
    .sf-collection__bg { background-attachment: scroll; }

    .sf-contact__methods { flex-direction: column; align-items: center; }
    .sf-contact__method  { width: 100%; max-width: 300px; }
}

@media (max-width: 480px) {
    .sf-features__grid { grid-template-columns: 1fr; }
    .sf-hero__actions  { flex-direction: column; align-items: center; }
}
