/*
Theme Name: İz Medya Mühendislik Tema
Theme URI: https://izmedya.com
Author: İz Medya
Author URI: https://izmedya.com
Description: İz Medya tarafından geliştirilen Mepa Mühendislik'in Web Sitesi
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: izmedya-tema
*/

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;700&display=swap');

:root {
    --primary-color: #000;
    --secondary-color: #666;
    --accent-color: #c4a35a;
    --background-color: #fff;
    --text-color: #333;
    --font-primary: 'Sora', 'Helvetica Neue', Arial, sans-serif;
}

body, html, input, textarea, select, button {
    font-family: var(--font-primary) !important;
    color: var(--text-color);
    background: var(--background-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header ve Menü */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100vw;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: none;
}

/* Ana Sayfa Menü */
.home .menu-toggle {
    position: inherit;
    top: 32px;
    right: 32px;
    z-index: 1201;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.home .menu-text {
    color: #fff;
    font-size: 1.1rem;
    font-family: var(--font-primary);
    letter-spacing: 0.1em;
    text-transform: lowercase;
    font-weight: 500;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.home .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.home .menu-icon span {
    display: block;
    width: 28px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.home .fullscreen-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10,10,15,0.98);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.home .fullscreen-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* Alt Sayfalar Menü */
body:not(.home) .menu-toggle {
    display: none;
}

body:not(.home) .main-navigation {
    display: flex;
    align-items: center;
}

body:not(.home) .main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

body:not(.home) .main-navigation li {
    position: relative;
}

body:not(.home) .main-navigation a {
    color: #222;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
    display: block;
}

body:not(.home) .main-navigation a:hover {
    color: var(--accent-color);
}

.site-header:not(.is-home), .site-header.scrolled {
    background: #fff;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.06);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 48px 0 48px;
    min-height: 80px;
}
.menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    margin: 32px 48px 0 0;
    align-self: flex-end;
}
.fullscreen-nav {
    list-style: none;
    margin: 80px 48px 0 0;
    padding: 0;
    text-align: right;
}
.fullscreen-nav li {
    margin-bottom: 32px;
}
.fullscreen-nav li a {
    color: #fff;
    font-size: 2rem;
    text-decoration: none;
    font-family: var(--font-primary);
    transition: color 0.2s;
}
.fullscreen-nav li a:hover {
    color: #c4a35a;
}

/* Responsive */
@media (max-width: 900px) {
    .header-inner { padding: 16px 12px 0 12px; }
    .menu-content { padding: 48px 16px 24px 16px; }
    .fullscreen-nav li a { font-size: 1.3rem; }
}
@media (max-width: 600px) {
    .header-inner { padding: 8px 4px 0 4px; }
    .menu-content { padding: 32px 8px 16px 8px; }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content {
    color: var(--background-color);
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 30px;
}

/* Proje Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.project-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--background-color);
}

.project-title {
    font-size: 24px;
    margin: 0 0 5px;
}

.project-location {
    font-size: 16px;
    opacity: 0.8;
}

/* Footer Modern Tasarım */
.site-footer {
    background: #f6f6f6;
    color: #222;
    padding: 60px 0 0 0;
    border-top: 1px solid #eee;
    margin-top: 80px;
}
.footer-widgets {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 32px 40px;
    align-items: flex-start;
}
.footer-col {
    font-size: 1rem;
}
.footer-logo-link {
    display: block;
    margin-bottom: 16px;
}
.footer-logo img {
    max-width: 120px;
    height: auto;
}
.footer-col h4, .footer-col .widgettitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: #c4a35a;
}
.site-info {
    border-top: 1px solid #e0e0e0;
    text-align: center;
    padding: 18px 40px;
    font-size: 15px;
    color: #444;
    background: #f6f6f6;
    margin-top: 0;
}
@media (max-width: 1024px) {
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding: 0 16px 24px 16px;
    }
}
@media (max-width: 600px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        padding: 0 8px 16px 8px;
    }
    .site-info { padding: 12px 8px; font-size: 13px; }
}

/* Elementor Uyumluluğu */
.elementor-page .site-content {
    padding: 0;
    margin: 0;
}

.elementor-page .entry-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* Sayfa Başlığı ve İçerik */
.page-header, .entry-header {
    text-align: center;
    margin: 80px 0 40px 0;
}
.page-header h1, .entry-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    border: none;
    margin: 0 0 24px 0;
    display: block;
    position: static;
    background: none;
}
.page-header h1::before, .entry-header h1::before,
.page-header h1::after, .entry-header h1::after {
    display: none !important;
}
.page-content, .entry-content {
    max-width: 900px;
    margin: 0 auto 60px auto;
    font-size: 1.15rem;
    line-height: 2;
    color: #222;
    background: transparent;
    text-align: left;
}
@media (max-width: 900px) {
    .page-header, .entry-header { margin: 48px 0 24px 0; }
    .page-content, .entry-content { max-width: 98vw; font-size: 1rem; }
}

/* === SLIDER TASARIMI (KULLANICI EKLEDİ) === */
.section-slider {
    position: relative;
}

.swiper-pagination {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 32px;
    top: auto;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 8px;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.section-slider .swiper-slide {
    overflow:hidden
}
.section-slider .slide {
    width:100%;
    height:100%
}
.section-slider .slide .bg {
    width:100%;
    height:100%;
    background-color:#000
}
.section-slider .slide .bg img {
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:.65
}
.section-slider .slide .content {
    position:absolute;
    right:0;
    bottom:200px;
    left:0;
    z-index:2
}
.section-slider .slide .content h2 {
    font-size:42px;
    margin-bottom:35px;
    color:#fff
}
.section-slider .slide .content p {
    font-size:16px;
    color:rgba(255,255,255,.85)
}
.section-slider .slide .content a.readmore {
    position:relative;
    display:inline-block;
    margin-top:20px;
    padding:15px 30px;
    text-transform:uppercase;
    font-size:13px;
    font-weight:700;
    white-space:nowrap;
    color:#fff;
    z-index:1;
    background-color:rgba(255,255,255,.1)
}
.section-slider .slide .content a.readmore::before {
    position:absolute;
    left:0;
    top:0;
    width:20px;
    height:20px;
    content:"";
    border-width:2px 0 0 2px;
    border-style:solid;
    border-color:var(--main-borderColor);
    z-index:-1;
    -webkit-transition:all ease 0.3s;
    transition:all ease 0.3s
}
.section-slider .slide .content a.readmore:hover::before {
    width:100%;
    height:0
}
.section-slider .slide .content a.readmore::after {
    position:absolute;
    right:0;
    bottom:0;
    width:20px;
    height:20px;
    content:"";
    border-width:0 2px 2px 0;
    border-style:solid;
    border-color:var(--main-borderColor);
    z-index:-1;
    -webkit-transition:all ease 0.3s;
    transition:all ease 0.3s
}
.section-slider .slide .content a.readmore:hover::after {
    width:100%;
    height:0
}
.section-slider.alt .slide .content {
    bottom:8px;
    padding:0 50px 0 290px
}
.section-slider.alt .slide .content h2 {
    margin-bottom:5px;
    font-size:38px
}

@media (max-width: 768px) {
    .swiper-pagination {
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .swiper-pagination {
        bottom: 8px;
    }
}

/* Yazı görselini ortala */
.post-featured-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}
.post-featured-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Alt sayfalarda sadece renkli logo görünsün */
.site-logo .logo-white { display: block; }
.site-logo .logo-color { display: none; }
body:not(.home) .site-logo .logo-white { display: none; }
body:not(.home) .site-logo .logo-color { display: block; }
.site-logo .logo-black { display: none !important; }
body:not(.home) .site-logo .logo-black { display: none !important; }

/* Menü bar açılınca üstteki beyazlık olmasın, menü tam ekran olsun */
.fullscreen-menu {
    top: 0 !important;
    height: 100vh !important;
}

/* Menüde hover/active efektli geçiş */
.fullscreen-nav li a {
    position: relative;
    overflow: hidden;
    transition: color 0.3s;
}
.fullscreen-nav li a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%; height: 2px;
    background: #c4a35a;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(.4,2,.6,1);
    transform-origin: left;
}
.fullscreen-nav li a:hover::after,
.fullscreen-nav li.current-menu-item a::after {
    transform: scaleX(1);
}

/* Alt sayfalarda ve alt menülerde logo ve menü rengi */
body:not(.home) .site-header .site-logo img,
body:not(.home) .site-header .site-logo svg {
    filter: none;
}

body:not(.home) .menu-toggle,
body:not(.home) .menu-text,
body:not(.home) .menu-icon span {
    color: #222 !important;
    background: none !important;
}

/* Ana sayfa hariç header arka planı */
body:not(.home) .site-header {
    background: #fff;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.06);
}

/* Footer'da ana sayfa ve alt sayfa için farklı logo */
.footer-logo .logo-white { display: block; }
.footer-logo .logo-black { display: none; }
body:not(.home) .footer-logo .logo-white { display: none; }
body:not(.home) .footer-logo .logo-black { display: block; }

.fullscreen-nav,
.fullscreen-nav li {
    list-style: none !important;
}

/* Yazı Listesi Widget (custom-posts-grid) */
.custom-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 48px 0;
}
.custom-post-card {
    background: #fff;
    border: 1.5px solid #ececec;
    border-radius: 14px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border 0.2s;
}
.custom-post-card:hover {
    box-shadow: 0 6px 24px 0 rgba(0,0,0,0.08);
    border-color: #c4a35a;
}
.custom-post-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f8f8;
}
.custom-post-content {
    padding: 20px 18px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.custom-post-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #222;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}
.custom-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.custom-post-title a:hover {
    color: #c4a35a;
}
.custom-post-excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
    flex: 1;
}
.custom-posts-pagination {
    margin: 32px 0 0 0;
    text-align: center;
}
.custom-posts-pagination ul {
    display: inline-flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.custom-posts-pagination li {
    display: inline-block;
}
.custom-posts-pagination a, .custom-posts-pagination span {
    display: inline-block;
    min-width: 36px;
    padding: 7px 12px;
    border-radius: 8px;
    background: #f6f6f6;
    color: #222;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.custom-posts-pagination .current, .custom-posts-pagination a:hover {
    background: #c4a35a;
    color: #fff;
}
@media (max-width: 900px) {
    .custom-posts-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .custom-posts-grid {
        grid-template-columns: 1fr;
    }
    .custom-post-thumb img {
        height: 140px;
    }
} 