
/* 1. ROOT & BASICS */
:root {
    --bg: #0d0a09; 
    --gold: #b8860b;
    --gold-light: #c5a059;
    --text: #f4f1ea;
    --text-dim: #a8a096;
    --font-serif: 'Bodoni Moda', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --header-h: 100px;
    --top-bar-h: 35px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { overflow-x: hidden; }
body { background-color: var(--bg); color: var(--text); font-family: var(--font-sans); overflow-x: hidden; width: 100%; }

/* PRELOADER */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-content {
    text-align: center;
}
.preloader-logo {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 8rem);
    color: var(--gold-light);
    letter-spacing: 10px;
    font-weight: 700;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
}
.preloader-tagline {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--text-dim);
    text-transform: uppercase;
    opacity: 0;
}
.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(184, 134, 11, 0.2);
    margin: 30px auto 0;
    position: relative;
    overflow: hidden;
}
.preloader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    animation: loading 2s ease-in-out infinite;
}
@keyframes loading {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Cursor */
#cursor-dot { width: 6px; height: 6px; background: var(--gold-light); position: fixed; border-radius: 50%; pointer-events: none; z-index: 10000; opacity: 0; }
#cursor-outline { width: 45px; height: 45px; border: 1px solid var(--gold); position: fixed; border-radius: 50%; pointer-events: none; z-index: 10000; transition: transform 0.1s; opacity: 0; }

/* TOP SLOGAN BAR - HIGHEST Z-INDEX */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--top-bar-h);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}
.top-bar-text {
    color: var(--gold-light);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

/* 2. HEADER & MEGA MENU - LOWER Z-INDEX */
header {
    position: fixed; 
    top: var(--top-bar-h); 
    width: 100%; 
    height: var(--header-h); 
    padding: 0 6%;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    z-index: 9000;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}
header.scrolled { 
    top: 0;
    height: 80px; 
    background: rgba(13, 10, 9, 0.98); 
    backdrop-filter: blur(20px); 
    border-bottom: 1px solid rgba(184, 134, 11, 0.1);
    padding-top: var(--top-bar-h);
}
.logo { 
    font-family: var(--font-serif); 
    font-size: 1.8rem; 
    font-weight: 700; 
    color: var(--gold-light); 
    text-decoration: none; 
    position: relative;
    z-index: 9500; 
}

.nav-desktop { display: flex; gap: 30px; align-items: center; }
.nav-item { position: relative; height: var(--header-h); display: flex; align-items: center; }
header.scrolled .nav-item { height: 80px; }
.nav-link { color: white; text-decoration: none; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: 0.3s; }
.nav-link:hover { color: var(--gold-light); }

/* Mega Menu */
.mega-menu {
    position: fixed;
    top: calc(var(--top-bar-h) + var(--header-h));
    left: 50%; 
    width: 900px; 
    transform: translateX(-50%) translateY(20px);
    background: #110d0b; 
    opacity: 0; 
    pointer-events: none; 
    transition: 0.4s;
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    padding: 50px; 
    gap: 30px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8); 
    border: 1px solid rgba(184, 134, 11, 0.1);
    z-index: 8900;
}
header.scrolled .mega-menu {
    top: calc(var(--top-bar-h) + 80px);
}
.nav-item:hover .mega-menu { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.mega-col h6 { color: var(--gold); font-size: 0.7rem; letter-spacing: 2px; margin-bottom: 20px; text-transform: uppercase; }
.mega-col a { display: block; color: var(--text-dim); text-decoration: none; font-size: 0.85rem; margin-bottom: 12px; transition: 0.3s; }
.mega-col a:hover { color: white; padding-left: 5px; }

/* Dropdown */
.dropdown {
    position: fixed;
    top: calc(var(--top-bar-h) + var(--header-h));
    left: auto;
    width: 220px; 
    background: #110d0b;
    opacity: 0; 
    pointer-events: none; 
    transform: translateY(20px); 
    transition: 0.4s;
    padding: 20px; 
    border: 1px solid rgba(184, 134, 11, 0.1);
    z-index: 8900;
}
header.scrolled .dropdown {
    top: calc(var(--top-bar-h) + 80px);
}
.nav-item:hover .dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown a { display: block; color: var(--text-dim); text-decoration: none; font-size: 0.85rem; margin-bottom: 12px; transition: 0.3s; }
.dropdown a:hover { color: white; padding-left: 5px; }

/* 3. HERO (3 IMAGES AUTO SLIDER) */
.hero { height: 100vh; width: 100%; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-slider-box { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: 1.5s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45); transform: scale(1); }
.hero-content { position: relative; z-index: 10; text-align: center; opacity: 0; }
.hero-title { font-family: var(--font-serif); font-size: clamp(3rem, 12vw, 15rem); line-height: 0.8; text-transform: uppercase; }

/* 4. SECTIONS & GAPS */
.slogan-area { padding: 100px 10%; text-align: center; background: var(--bg); }
.slogan-text { font-family: var(--font-serif); font-size: clamp(1.8rem, 5vw, 4.5rem); line-height: 1.2; font-style: italic; }

/* SECTION TITLE - NEW */
.section-intro {
    text-align: center;
    padding: 120px 10% 60px;
    background: var(--bg);
}
.section-intro h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--gold-light);
    margin-bottom: 20px;
    line-height: 1.1;
}
.section-intro p {
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-dim);
    letter-spacing: 1px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Horizontal Slider */
.h-slider-section { position: relative; background: #050403; overflow: hidden; }
.h-track { display: flex; width: 300vw; height: 100vh; will-change: transform; }
.slide { width: 100vw; height: 100vh; display: flex; align-items: center; padding: 0 10%; gap: 50px; flex-shrink: 0; }
.slide-img { width: 60%; height: 75vh; overflow: hidden; border-radius: 10px; }
.slide-img img { width: 100%; height: 100%; object-fit: cover; }
.slide-content { width: 35%; }
.slide-content h3 { font-family: var(--font-serif); font-size: clamp(2rem, 6vw, 6rem); color: var(--gold-light); margin-bottom: 20px; }
.slide-content p { color: var(--text-dim); font-size: 1.1rem; line-height: 1.8; margin-bottom: 30px; }

/* Craft Section */
.craft-section { padding: 80px 10%; display: flex; align-items: center; gap: 60px; background: var(--bg); }
.craft-left { width: 45%; }
.craft-right { width: 55%; height: 70vh; position: relative; overflow: hidden; border: 1px solid rgba(184, 134, 11, 0.1); border-radius: 10px; }
.craft-img { position: absolute; width: 100%; height: 100%; opacity: 0; transition: 1.2s; }
.craft-img.active { opacity: 1; }
.craft-img img { width: 100%; height: 100%; object-fit: cover; }

/* 5. BLOG & REFS */
.blog-section { 
    padding: 100px 6%; 
    background: #080605; 
    position: relative; 
    z-index: 50;
}
.blog-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin-top: 60px;
}
.blog-card { 
    background: var(--bg); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    transition: 0.5s; 
    overflow: hidden;
    display: block;
    border-radius: 10px;
}
.blog-card:hover { border-color: var(--gold); transform: translateY(-10px); }
.blog-card img { width: 100%; height: 300px; object-fit: cover; display: block; }
.blog-content { padding: 30px; }
.blog-content h4 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold-light); margin-bottom: 15px; }
.blog-content p { color: var(--text-dim); line-height: 1.6; }

.ref-section { padding: 100px 6%; background: var(--bg); text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.ref-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 50px; margin-top: 60px; align-items: center; }
.ref-item img { width: 100%; max-width: 160px; opacity: 0.4; filter: grayscale(1) invert(1); margin: 0 auto; transition: 0.4s; }
.ref-item:hover img { opacity: 1; filter: none; }

/* 6. MOBILE HAMBURGER & NAV */
.burger { 
    display: none; 
    flex-direction: column; 
    gap: 7px; 
    cursor: pointer; 
    z-index: 9600;
    position: relative;
}
.burger span { 
    width: 30px; 
    height: 2px; 
    background: var(--gold-light); 
    transition: 0.4s;
    display: block;
}
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-nav {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh; 
    background: var(--bg);
    z-index: 9500; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    transform: translateX(100%); 
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}
.mobile-nav.active { transform: translateX(0); }

.mobile-close {
    position: absolute;
    top: 40px;
    right: 6%;
    width: 50px;
    height: 50px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 9600;
}
.mobile-close:hover {
    background: var(--gold);
}
.mobile-close::before,
.mobile-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--gold-light);
    transition: 0.3s;
}
.mobile-close::before {
    transform: rotate(45deg);
}
.mobile-close::after {
    transform: rotate(-45deg);
}
.mobile-close:hover::before,
.mobile-close:hover::after {
    background: white;
}

.mobile-nav a { 
    font-family: var(--font-serif); 
    font-size: 2rem; 
    color: var(--gold-light); 
    text-decoration: none; 
    margin: 15px 0; 
    letter-spacing: 2px;
    transition: 0.3s;
}
.mobile-nav a:hover {
    color: var(--gold);
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .top-bar-text { font-size: 0.55rem; letter-spacing: 1px; }
    .nav-desktop { display: none; }
    .burger { display: flex; }
    .section-intro { padding: 80px 5% 40px; }
    .h-track { height: auto !important; flex-direction: column !important; width: 100% !important; transform: none !important; }
    .slide { width: 100vw !important; height: auto !important; flex-direction: column !important; padding: 60px 5% !important; gap: 30px !important; }
    .slide-img { width: 100% !important; height: 45vh !important; }
    .slide-content { width: 100% !important; text-align: center !important; }
    .craft-section { flex-direction: column; padding: 60px 5%; }
    .craft-left, .craft-right { width: 100%; }
    .craft-right { height: 50vh; }
    .blog-grid { grid-template-columns: 1fr; }
    .ref-grid { grid-template-columns: 1fr 1fr 1fr; gap: 25px; }
}

.btn-gold { 
    padding: 15px 40px; 
    border: 1px solid var(--gold); 
    color: var(--gold); 
    text-decoration: none; 
    font-size: 0.75rem; 
    letter-spacing: 3px; 
    text-transform: uppercase; 
    transition: 0.4s; 
    display: inline-block;
    border-radius: 2px;
}
.btn-gold:hover { background: var(--gold); color: white; }

/* FOOTER */
footer { padding: 80px 6% 30px; background: linear-gradient(180deg, #050403 0%, #0d0a09 100%); border-top: 1px solid rgba(184, 134, 11, 0.15); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 60px; }
.footer-brand { max-width: 300px; }
.footer-brand .logo { font-size: 2rem; margin-bottom: 20px; display: block; }
.footer-brand p { color: var(--text-dim); line-height: 1.8; font-size: 0.9rem; margin-bottom: 25px; }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 40px; height: 40px; border: 1px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); text-decoration: none; transition: 0.3s; font-size: 0.9rem; }
.social-links a:hover { background: var(--gold); color: white; transform: translateY(-3px); }
.footer-col h5 { color: var(--gold); font-size: 0.85rem; margin-bottom: 25px; letter-spacing: 2px; text-transform: uppercase; }
.footer-link { display: block; color: var(--text-dim); text-decoration: none; margin-bottom: 12px; font-size: 0.9rem; transition: 0.3s; }
.footer-link:hover { color: var(--gold); padding-left: 8px; }
.newsletter-box input { background: transparent; border: none; border-bottom: 1px solid rgba(184, 134, 11, 0.3); color: white; width: 100%; padding: 10px 0; outline: none; font-size: 0.9rem; margin-bottom: 15px; transition: 0.3s; }
.newsletter-box input:focus { border-bottom-color: var(--gold); }
.newsletter-box button { background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 12px 30px; font-size: 0.75rem; letter-spacing: 2px; cursor: pointer; transition: 0.3s; text-transform: uppercase; width: 100%; border-radius: 2px; }
.newsletter-box button:hover { background: var(--gold); color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-bottom p { color: var(--text-dim); font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-dim); text-decoration: none; font-size: 0.85rem; transition: 0.3s; }
.footer-bottom-links a:hover { color: var(--gold); }

@media (max-width: 1024px) {
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
/* ===============================
   HOME BLOG FIX (ANA SAYFA)
   =============================== */

/* Blog section her zaman üstte kalsın */
.blog-section{
    position: relative;
    z-index: 200;              /* 50 az kalıyor, üstüne binen section varsa kurtarır */
    overflow: visible;
}

/* Grid'i merkeze al (kayma/taşma olmasın) */
.blog-grid{
    max-width: 1400px;
    margin: 60px auto 0;
}

/* H-slider sonraki sectionları ezmesin */
.h-slider-section{
    overflow: visible;         /* hidden blogu kesiyorsa düzeltir */
}

/* Track'ın 100vh sabiti blogu itmesin */
.h-track{
    height: auto !important;   /* kesin çözüm: blogun görünmemesinin ana sebebi bu oluyor */
}

/* Slide yine tam ekran hissi versin ama sayfayı kilitlemesin */
.slide{
    height: auto !important;
    min-height: 100vh;
}

.ref-item img{
    max-width: 160px;
    width: auto;
    height: auto;
    display: block;
    opacity: 0.9;
    filter: none !important;
    transition: .25s;
  }
  element.style {
    max-height: 62px;
}


/* TEKLİF SAYFASI - KATEGORİ SELECT SİYAH ARKA PLAN */
.quote-category-select {
    background-color: #0d0a09 !important;
    color: #fff !important;
    border: 1px solid rgba(184, 134, 11, 0.3);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23b8860b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

.quote-category-select:hover,
.quote-category-select:focus {
    border-color: var(--gold-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.quote-category-select option {
    background-color: #0d0a09;
    color: #fff;
    padding: 10px;
}

.quote-category-select option:hover,
.quote-category-select option:checked {
    background-color: #1a1a1a;
    color: var(--gold-light);
}