/* ============================================
   EDKA Orman Ürünleri — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

/* ============ HEADER ============ */
#header {
    background-color: rgba(250, 248, 243, 0);
    backdrop-filter: blur(0);
    transition: all 0.3s ease;
}

#header.scrolled {
    background-color: rgba(250, 248, 243, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27, 61, 47, 0.08);
}

/* Header text colors when at top of page (over hero) */
#header:not(.scrolled) .nav-link,
#header:not(.scrolled) #mobile-menu-btn {
    color: white;
}

#header:not(.scrolled) .nav-link:hover {
    color: #D4A574;
}

#header:not(.scrolled) .logo-text {
    color: white;
}

#header:not(.scrolled) .logo-subtext {
    color: rgba(255, 255, 255, 0.7);
}

#header:not(.scrolled) .logo-mark circle {
    fill: rgba(255, 255, 255, 0.95);
}

#header:not(.scrolled) .logo-mark path {
    fill: #1B3D2F;
}

/* ============ NAV LINKS ============ */
.nav-link {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: #0F2A1F;
    transition: color 0.2s ease;
    padding: 4px 0;
}

.nav-link:hover {
    color: #2D5F47;
}

.nav-link.active {
    color: #1B3D2F;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: #C4955F;
    border-radius: 50%;
}

#header:not(.scrolled) .nav-link.active {
    color: white;
}

#header:not(.scrolled) .nav-link.active::after {
    background-color: #D4A574;
}

/* ============ SCROLL LINE ANIMATION ============ */
@keyframes scroll-line {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(300%);
    }
}

.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* ============ REVEAL ON SCROLL ============ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.reveal.is-visible:nth-child(1) { transition-delay: 0s; }
.reveal.is-visible:nth-child(2) { transition-delay: 0.1s; }
.reveal.is-visible:nth-child(3) { transition-delay: 0.2s; }
.reveal.is-visible:nth-child(4) { transition-delay: 0.3s; }
.reveal.is-visible:nth-child(5) { transition-delay: 0.4s; }
.reveal.is-visible:nth-child(6) { transition-delay: 0.5s; }

/* ============ PRODUCT CARD HOVER ============ */
.product-card {
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-6px);
}

/* ============ PRODUCT NAV (sticky) ============ */
.product-nav.active {
    background-color: #1B3D2F;
    color: white;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ============ FORM STYLES ============ */
input, select, textarea {
    font-family: inherit;
    font-size: 15px;
    color: #0F2A1F;
}

input::placeholder, textarea::placeholder {
    color: rgba(15, 42, 31, 0.4);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231B3D2F'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    padding-right: 3rem;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #FAF8F3;
}

::-webkit-scrollbar-thumb {
    background: #2D5F47;
    border-radius: 6px;
    border: 2px solid #FAF8F3;
}

::-webkit-scrollbar-thumb:hover {
    background: #1B3D2F;
}

/* ============ SELECTION ============ */
::selection {
    background-color: #1B3D2F;
    color: #D4A574;
}

/* ============ IMAGE LOADING ============ */
img {
    background-color: #E8F0EB;
}

/* ============ FOCUS STATES ============ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #D4A574;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============ RESPONSIVE TWEAKS ============ */
@media (max-width: 1024px) {
    .reveal {
        transform: translateY(20px);
    }

    /* Always show solid header on mobile when menu open */
    #header.menu-open {
        background-color: rgba(250, 248, 243, 0.98);
        backdrop-filter: blur(12px);
    }

    #header.menu-open .nav-link,
    #header.menu-open #mobile-menu-btn {
        color: #0F2A1F;
    }

    #header.menu-open .logo-text {
        color: #1B3D2F;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
}

/* ============ PRINT ============ */
@media print {
    #header, footer, #mobile-menu, #contact-form button {
        display: none;
    }
}
