/*
Theme Name: London Premium Build
Description: Custom WordPress Theme (Final Fix v3.1 - HTML Support)
Version: 3.1
*/

/* =========================================
   1. GENEL AYARLAR & RESET (LATO FONTU)
   ========================================= */
* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif !important; 
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    background-color: #ffffff;
    color: #454543;
    overflow-x: hidden;
}

/* HTML TAG SUPPORT */
b, strong { font-weight: 700 !important; color: inherit; }

a { text-decoration: none; transition: 0.3s ease; color: #5C8B91; }
a:hover { color: #BE2207; }
ul, li { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* Başlıklar */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #5C5C5B;
    line-height: 1.1;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}
h1 { font-size: 50px; letter-spacing: -1px; }
h2 { font-size: 40px; }
h3 { font-size: 30px; }
p { margin-bottom: 15px; }

/* =========================================
   2. HEADER (ÜST KISIM)
   ========================================= */
.site-header {
    background: #000000;
    position: absolute; top: 0; left: 0; width: 100%; height: 170px;
    z-index: 999; display: flex; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease; overflow: hidden; 
}
.site-header::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    height: 3px; width: 100%; background-color: #ffffff; 
    z-index: 1000; transform: scaleX(0); transform-origin: left;
    animation: loadLine 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes loadLine { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

.header-container {
    width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
}
.site-logo { display: block; }
.mobile-logo-img { display: none; } 
.sticky-logo-img { display: none; } 
.desktop-navigation { flex: 1; display: flex; justify-content: center; }

.header-menu-list { display: flex; gap: 35px; }
.header-menu-list li a {
    color: #fff; font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    position: relative; padding-bottom: 5px; font-family: 'Montserrat', sans-serif;
}
.header-menu-list li a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0%; height: 2px; background: #BE2207; transition: 0.3s;
}
.header-menu-list li a:hover::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 30px; }
.phone-link { font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 600; color: #fff; letter-spacing: 1px; }

.btn-quote {
    background-color: #BE2207; color: #fff !important;
    padding: 12px 28px; font-family: 'Montserrat', sans-serif;
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; border: none; transition: all 0.5s ease;
}
.btn-quote:hover { background-color: #fff; color: #BE2207 !important; }

.menu-close-btn { display: none; }
.menu-toggle {
    background: none; border: none; cursor: pointer; display: none;
    flex-direction: column; gap: 6px; padding: 5px;
}
.menu-toggle span { display: block; width: 30px; height: 3px; background: #fff; }

body:not(.home) .site-header { background-color: #000000; position: relative; margin-bottom: 0; }
body:not(.home) .site-header .header-container { height: 100px; }

/* =========================================
   3. STICKY HEADER
   ========================================= */
.site-header.is-sticky {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: #ffffff; height: 170px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: none; animation: slideDown 0.3s ease;
}
.site-header.is-sticky::after { display: none; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.site-header.is-sticky .desktop-logo-img { display: none !important; } 
.site-header.is-sticky .sticky-logo-img { display: block !important; height: auto; }
.site-header.is-sticky .header-menu-list li a { color: #5C5C5B; }
.site-header.is-sticky .header-menu-list li a::after { background: #BE2207; }
.site-header.is-sticky .phone-link { color: #5C5C5B; }
.site-header.is-sticky .btn-quote { background-color: #454543; color: #fff !important; }
.site-header.is-sticky .btn-quote:hover { background-color: #BE2207; color: #fff !important; }
.site-header.is-sticky .menu-toggle span { background: #000; }

/* =========================================
   4. HERO SLIDER
   ========================================= */
.main-hero-slider { position: relative; width: 100%; height: 100vh; min-height: 600px; background: #000; overflow: hidden; margin-bottom: 0; }
.banner-slider, .swiper-wrapper, .swiper-slide { width: 100%; height: 100%; }
.slide-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 1; transform: scale(1); transition: transform 6s ease; }
.swiper-slide-active .slide-bg { transform: scale(1.1); }
.slide-content-container { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 100%); padding-left: 5%; }
.banner-content { color: #fff; max-width: 700px; opacity: 0; transform: translateY(30px); transition: all 1s ease 0.5s; }
.swiper-slide-active .banner-content { opacity: 1; transform: translateY(0); }
.banner-content h1 { font-family: 'Montserrat', sans-serif; font-size: 70px; line-height: 1.1; margin: 10px 0 30px 0; font-weight: 700; color: #fff; letter-spacing: -1.5px; }
.slide-subtitle { font-size: 15px; letter-spacing: 4px; text-transform: uppercase; font-weight: 600; color: #fff; display: block; }
.slider-bottom-controls { position: absolute; bottom: 40px; left: 0; width: 100%; z-index: 10; }
.control-container { display: flex; align-items: center; gap: 30px; }
.circle-timer { position: relative; width: 60px; height: 60px; margin-right: 20px; }
.timer-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: rotate(-90deg); z-index: 1; }
.bg-ring { fill: none; stroke: rgba(255,255,255,0.2); stroke-width: 2; }
.progress-ring { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 176; stroke-dashoffset: 176; }
.run-animation .progress-ring { animation: countdown 3s linear forwards; }
@keyframes countdown { from { stroke-dashoffset: 176; } to { stroke-dashoffset: 0; } }
.swiper-pagination-custom { position: absolute !important; top: 0; left: 0; width: 100% !important; height: 100% !important; display: flex !important; justify-content: center; align-items: center; margin: 0 !important; padding: 0 !important; z-index: 10; color: #fff; font-size: 14px; font-weight: 700; font-family: 'Montserrat', sans-serif; line-height: 1; }
.banner-textnav { display: flex; gap: 20px; }
.banner-textnav-item { color: rgba(255,255,255,0.5); text-transform: uppercase; font-size: 13px; letter-spacing: 2px; cursor: pointer; transition: 0.3s; font-weight: 600; }
.banner-textnav-item.active { color: #fff; font-weight: 800; border-bottom: 2px solid #BE2207; padding-bottom: 5px;}

/* =========================================
   5. İÇERİK BÖLÜMLERİ
   ========================================= */
.btn-black { background-color: #454543; color: #fff !important; padding: 14px 35px; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; border: none; display: inline-block; margin-top: 25px; transition: all 0.3s ease; }
.btn-black:hover { background-color: #BE2207; transform: translateY(-2px); }
.btn-white { background-color: #fff; color: #454543 !important; padding: 14px 35px; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; display: inline-block; transition: 0.3s; border: none; }
.btn-white:hover { background-color: #BE2207; color: #fff !important; }
.split-desc p { margin-bottom: 20px; line-height: 1.8; color: #454543; font-size: 18px; }
.feature-split { padding: 90px 0; background-color: #fff; border-bottom: 1px solid #eee; }
.split-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 80px; }
.split-text { flex: 1; }
.split-text h2 { font-family: 'Montserrat', sans-serif; font-size: 40px; color: #5C5C5B; margin-bottom: 25px; font-weight: 700; }
.split-image { flex: 1; position: relative; }
.split-image img { width: 100%; height: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.reverse-layout .split-container { flex-direction: row-reverse; }
.map-container { display: flex; justify-content: center; align-items: center; background-color: #f9f9f9; padding: 20px; border-radius: 4px; }
.map-container img.london-map { object-fit: contain !important; background-color: transparent; box-shadow: none; max-height: 500px; width: 100%; }

/* WIDGET ALANI */
.widget-area-container { flex: 1; display: flex; justify-content: center; align-items: center; width: 100%; }
.dynamic-content-box { background-color: #f2f2f2; padding: 50px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }

/* Form Style */
.wpcf7 label { font-size: 13px; font-weight: 700; margin-bottom: 8px; display: block; color: #454543; text-transform: uppercase; letter-spacing: 1px;}
.wpcf7 input, .wpcf7 textarea { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ccc; background: #fff; font-family: 'Lato', sans-serif; font-size: 16px; transition: 0.3s; }
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: #BE2207; outline: none; }
.wpcf7 input[type="submit"] { background-color: #454543; color: #fff; border: none; padding: 15px 30px; text-transform: uppercase; font-weight: 700; cursor: pointer; letter-spacing: 2px; }
.wpcf7 input[type="submit"]:hover { background-color: #BE2207; }

/* =========================================
   6. PORTFOLIO GRID
   ========================================= */
.portfolio-section { padding-top: 0px; padding-bottom: 0; background: #fff; }
.grid-masonry { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 380px; gap: 20px; grid-auto-flow: dense; justify-content: center; width: 100%; max-width: 100%; margin: 0 auto; }
.grid-text-block { background-color: #F2F2F2; display: flex; flex-direction: column; justify-content: center; padding: 60px; z-index: 10; grid-column: span 1; grid-row: span 1; }
.text-inner .sub-title { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: #BE2207; font-weight: 700; display: block; margin-bottom: 20px; }
.text-inner h2 { font-family: 'Montserrat', sans-serif; font-size: 40px; line-height: 1.1; color: #454543; margin: 0 0 25px 0; }
.text-inner p { font-size: 18px; color: #666; line-height: 1.6; margin-bottom: 0; }
.decorative-line { display: none; }
.grid-item { grid-column: span 1; grid-row: span 1; overflow: hidden; position: relative; min-height: 100%; opacity: 0; transform: translateY(60px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.grid-item.is-visible { opacity: 1; transform: translateY(0); }
.grid-item.grid-item--wide { grid-column: span 2; }
.grid-item.grid-item--tall { grid-row: span 2; }
.grid-item:last-child { grid-column: 1 / -1 !important; width: 100% !important; }
.project-item-inner { position: relative; width: 100%; height: 100%; overflow: hidden; }
.img-holder { width: 100%; height: 100%; }
.img-holder img { width: 100%; height: 100%; object-fit: cover; display: block; vertical-align: bottom; transition: transform 1.2s cubic-bezier(0.2, 1, 0.2, 1), opacity 0.5s ease; }
.project-item-inner::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; box-shadow: inset 0 0 0 0px transparent; transition: box-shadow 0.4s ease; }
.grid-item:nth-child(6n+1) .project-item-inner:hover::after { box-shadow: inset 0 0 0 12px #FFB3BA; }
.grid-item:nth-child(6n+2) .project-item-inner:hover::after { box-shadow: inset 0 0 0 12px #FFDFBA; }
.grid-item:nth-child(6n+3) .project-item-inner:hover::after { box-shadow: inset 0 0 0 12px #FFFFBA; }
.grid-item:nth-child(6n+4) .project-item-inner:hover::after { box-shadow: inset 0 0 0 12px #BAFFC9; }
.grid-item:nth-child(6n+5) .project-item-inner:hover::after { box-shadow: inset 0 0 0 12px #BAE1FF; }
.grid-item:nth-child(6n+6) .project-item-inner:hover::after { box-shadow: inset 0 0 0 12px #E2BAFF; }
.project-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); z-index: 6; opacity: 0; transition: 0.4s ease; text-align: left; }
.project-info h3 { font-family: 'Montserrat', sans-serif; font-size: 20px; color: #fff; margin: 0 0 5px 0; transform: translateY(20px); transition: 0.4s ease; }
.project-info .project-loc { font-size: 12px; color: #ddd; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; transform: translateY(20px); transition: 0.4s ease 0.1s; display: block; }
.project-item-inner:hover .img-holder img { transform: scale(1.05); }
.project-item-inner:hover .project-info { opacity: 1; }
.project-item-inner:hover .project-info h3, .project-item-inner:hover .project-info .project-loc { transform: translateY(0); }

/* =========================================
   7. FOOTER
   ========================================= */
.site-footer { background-color: #000000; color: #fff; font-family: 'Lato', sans-serif; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.site-info { display: flex; justify-content: space-between; align-items: center; padding: 75px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo img { transition: opacity 0.3s; }
.footer-contact-row { display: flex; align-items: center; gap: 60px; }
.contact-item { display: flex; flex-direction: column; align-items: flex-start; }
.c-label { font-size: 18px; font-weight: 400; color: #fff; margin-bottom: 5px; font-family: 'Montserrat', sans-serif; }
.c-value { font-size: 16px; color: #ccc; font-weight: 400; transition: 0.3s; }
.c-value:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 40px 0; font-size: 13px; color: #999; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.footer-menu a { color: #999; margin-left: 30px; transition: 0.3s; }
.footer-menu a:hover { color: #fff; }

/* =========================================
   8. STICKY SOCIAL SIDEBAR
   ========================================= */
.sticky-social-bar { position: fixed; top: 50%; left: 0; transform: translateY(-50%); z-index: 999999; display: flex; flex-direction: column; box-shadow: 2px 2px 10px rgba(0,0,0,0.1); }
.s-item { display: flex; justify-content: center; align-items: center; width: 50px; height: 50px; color: #fff; transition: transform 0.3s ease; }
.s-item:hover { transform: translateX(5px) scale(1.1); width: 55px; }
.s-item svg { width: 24px; height: 24px; fill: currentColor; }
.s-instagram { background-color: #ea46a8; } .s-instagram svg { stroke: #fff; fill: none; }
.s-houzz { background-color: #4dbd15; } .s-tiktok { background-color: #000000; }
.s-pinterest { background-color: #bd081c; } .s-youtube { background-color: #ffffff; color: #ff0000; border: 1px solid #eee; }
.s-facebook { background-color: #1877F2; }

/* =========================================
   9. FANCYBOX & PAGES
   ========================================= */
.fancybox__backdrop { background: rgba(10, 10, 10, 0.95) !important; backdrop-filter: blur(5px); }
.fancybox__caption { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; color: #fff; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.f-button { color: #fff !important; background: transparent !important; }
.f-button:hover { color: #ccc !important; }
.page .site-main, .single .site-main { max-width: 1000px; margin: 0 auto; padding: 0 20px 80px 20px; }
.entry-header .entry-title { font-family: 'Montserrat', sans-serif; font-size: 3rem; margin-bottom: 30px; text-align: center; color: #454543; font-weight: 700; }
.entry-content { font-size: 18px; line-height: 1.8; color: #454543; }
.entry-content h2, .entry-content h3 { font-family: 'Montserrat', sans-serif; margin-top: 40px; color: #5C5C5B; }

/* =========================================
   10. MOBİL & TABLET
   ========================================= */
@media (max-width: 1024px) {
    .grid-masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 300px; }
    .grid-item.grid-item--wide { grid-column: span 2; }
    .grid-item.grid-item--tall { grid-row: span 2; }
    .site-info { flex-direction: column; gap: 40px; text-align: center; }
    .footer-contact-row { flex-direction: column; gap: 30px; }
    .footer-bottom { flex-direction: column-reverse; gap: 20px; text-align: center; }
    .footer-menu a { margin: 0 10px; }
    .menu-toggle { display: flex; z-index: 1001; }
    .header-right .btn-quote, .header-right .phone-link { display: none; }
    .desktop-navigation { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: #000000; z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(-20px); transition: all 0.4s ease; padding-top: 120px; text-align: center; }
    body.mobile-menu-open .desktop-navigation { opacity: 1; visibility: visible; transform: translateY(0); }
    body.mobile-menu-open { overflow: hidden; }
    .header-menu-list { flex-direction: column; gap: 30px; }
    .header-menu-list li a { font-size: 1.5rem; }
    .menu-close-btn { display: block !important; position: absolute; top: 30px; right: 20px; background: none; border: none; cursor: pointer; padding: 5px; z-index: 1002; }
    /* Mobil Hover Sabitleme */
    .project-info { opacity: 1 !important; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
    .project-info h3, .project-info .project-loc { transform: translateY(0) !important; }
    .grid-item:nth-child(6n+1) .project-item-inner::after { box-shadow: inset 0 0 0 10px #FFB3BA !important; }
    .grid-item:nth-child(6n+2) .project-item-inner::after { box-shadow: inset 0 0 0 10px #FFDFBA !important; }
    .grid-item:nth-child(6n+3) .project-item-inner::after { box-shadow: inset 0 0 0 10px #FFFFBA !important; }
    .grid-item:nth-child(6n+4) .project-item-inner::after { box-shadow: inset 0 0 0 10px #BAFFC9 !important; }
    .grid-item:nth-child(6n+5) .project-item-inner::after { box-shadow: inset 0 0 0 10px #BAE1FF !important; }
    .grid-item:nth-child(6n+6) .project-item-inner::after { box-shadow: inset 0 0 0 10px #E2BAFF !important; }
}

/* --- TELEFON (768px) --- */
@media (max-width: 768px) {
    
    /* 1. Header Genel Ayarı */
    .site-header { 
        height: 80px; 
        border-bottom: none; 
        transition: background 0.3s ease;
    }

    /* A) ANA SAYFA (HOME): Şeffaf Olsun */
    body.home .site-header {
        background: transparent !important;
        position: absolute;
    }

    /* B) İÇ SAYFALAR (SERVICES, CONTACT VS.): SİYAH OLSUN */
    /* Böylece beyaz ikon ve logo görünür */
    body:not(.home) .site-header {
        background-color: #000000 !important;
        position: relative; /* İçeriği aşağı itmek için */
    }
    
    .site-header::after { display: none; } /* Gizle Snake Line */
    
    .header-container { 
        padding: 0 20px; 
        justify-content: space-between !important; 
        align-items: center; 
    }

    /* 2. Logo Ayarları */
    .logo, .site-logo { 
        display: block !important;
        position: relative;
        z-index: 1002;
    }
    .desktop-logo-img { display: none !important; }
    .mobile-logo-img { 
       display: block !important; 
       height: auto; 
       
       /* BURASI YENİ: Logoyu zorla küçültüyoruz */
       width: 180px !important;  /* İdeal genişlik (artırıp azaltabilirsiniz) */
       max-width: 80%;           /* Ekrandan taşmaması için güvenlik */
       max-height: 60px;         /* Header yüksekliği 80px olduğu için taşmasın */
       object-fit: contain;      /* Orantılı sığdır */
   }

    /* 3. Diğer Gizlemeler */
    .banner-content h1 { font-size: 40px; }
    .main-hero-slider { height: 100vh; min-height: 500px; }
    .banner-textnav, .sticky-social-bar { display: none; }
    .header-right .btn-quote, .header-right .phone-link { display: none !important; }
    
    /* Sticky İptal */
    .site-header.is-sticky { position: absolute; background: transparent; box-shadow: none; height: 80px; }
    .site-header.is-sticky .sticky-logo-img { display: none !important; }

    /* Widget Sıralaması */
    .split-container { flex-direction: column !important; gap: 30px; }
    .reverse-layout .split-container { flex-direction: column-reverse !important; }
    .split-text, .split-image { width: 100%; max-width: 100%; }
}

@media (max-width: 600px) {
    .grid-masonry { grid-template-columns: 1fr; grid-auto-rows: 300px; gap: 15px; }
    .grid-text-block { padding: 30px 20px; text-align: center; }
    .text-inner h2 { font-size: 30px; }
    .grid-item.grid-item--wide, .grid-item.grid-item--tall, .grid-item:last-child { grid-column: span 1 !important; grid-row: span 1 !important; }
    .dynamic-content-box { padding: 30px; }
}
/* =========================================
   12. FOOTER ÜSTÜ HTML ALANI
   ========================================= */
.bottom-html-section {
    padding: 60px 0;      /* Alt ve üstten boşluk */
    background-color: #fff; 
    text-align: center;   /* İçeriği tamamen ortalar */
    width: 100%;
    border-top: 1px solid #f2f2f2; /* Üstüne ince bir çizgi (isteğe bağlı) */
}

/* İçine resim veya iframe eklenirse taşmasın */
.bottom-html-section img, 
.bottom-html-section iframe {
    max-width: 100%;
    height: auto;
    display: inline-block; /* Ortalamak için */
}