/*
Theme Name: DEA
Theme URI: https://www.deayapi.com
Author: DEA Yapı İnşaat
Author URI: https://www.deayapi.com
Description: DEA Yapı İnşaat Taahhüt A.Ş. için özel olarak tasarlanmış profesyonel WordPress teması. Modern, responsive ve kurumsal bir tasarım sunar.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dea
Tags: construction, corporate, portfolio, custom-logo, custom-menu, featured-images, translation-ready

DEA Yapı İnşaat - İnşaat sektörünün güvenilir adresi.
1988'den bu yana kaliteli işçilik ve anahtar teslimi projeler.
*/

/* ==========================================================================
   CSS Variables - DEA Kurumsal Renkler
   ========================================================================== */
:root {
    /* Primary Colors */
    --dea-red: #D20A11;
    --dea-red-dark: #A80810;
    --dea-red-light: #E63E44;

    /* Neutral Colors */
    --dea-gray: #9D9D9C;
    --dea-dark: #1a1a1a;
    --dea-dark-lighter: #2d2d2d;
    --dea-light: #f5f5f5;
    --dea-white: #ffffff;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dea-dark);
    background-color: var(--dea-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    gap: 35px;
}

.main-navigation a {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dea-dark);
    position: relative;
    padding: 5px 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dea-red);
    transition: var(--transition-fast);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

.main-navigation a:hover {
    color: var(--dea-red);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dea-dark);
    transition: var(--transition-fast);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--dea-red);
}

.header-phone svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 8s ease;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1.1);
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--dea-white);
    width: 90%;
    max-width: 800px;
}

.hero-slide-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-slide-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--dea-red);
    color: var(--dea-white);
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.7s;
    transition: var(--transition-fast);
}

.hero-slide-btn:hover {
    background: var(--dea-red-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(210, 10, 17, 0.4);
}

/* Slider Controls */
.hero-slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

.hero-slider-dot.active {
    background: var(--dea-red);
    transform: scale(1.2);
}

.hero-slider-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
    pointer-events: none;
}

.hero-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dea-white);
    font-size: 1.2rem;
    transition: var(--transition-fast);
    pointer-events: all;
}

.hero-arrow:hover {
    background: var(--dea-red);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.section {
    padding: var(--section-padding) 0;
}

.section-dark {
    background: var(--dea-dark);
    color: var(--dea-white);
}

.section-gray {
    background: var(--dea-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    color: var(--dea-red);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--dea-red);
    margin: 0 auto;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 5px;
    box-shadow: var(--shadow-lg);
}

.about-image-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: var(--dea-red);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dea-white);
    box-shadow: var(--shadow-md);
}

.about-image-badge span {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.about-image-badge small {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h2 {
    margin-bottom: 25px;
}

.about-content p {
    color: var(--dea-gray);
    margin-bottom: 20px;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: var(--dea-dark);
    color: var(--dea-white);
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: 3px;
    margin-top: 20px;
    transition: var(--transition-fast);
}

.about-btn:hover {
    background: var(--dea-red);
    transform: translateX(5px);
}

/* ==========================================================================
   Statistics Counter
   ========================================================================== */
.stats-section {
    background: var(--dea-dark);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/pattern.png') repeat;
    opacity: 0.05;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    color: var(--dea-red);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--dea-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-section {
    background: var(--dea-light);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.projects-filter-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--dea-gray);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: 3px;
}

.projects-filter-btn:hover,
.projects-filter-btn.active {
    background: var(--dea-red);
    border-color: var(--dea-red);
    color: var(--dea-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: var(--shadow-md);
    background: var(--dea-white);
}

.project-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(210, 10, 17, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: var(--transition-fast);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay-content {
    color: var(--dea-white);
    transform: translateY(20px);
    transition: var(--transition-fast);
}

.project-card:hover .project-overlay-content {
    transform: translateY(0);
}

.project-info {
    padding: 25px;
}

.project-category {
    font-size: 0.8rem;
    color: var(--dea-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
}

.project-title a:hover {
    color: var(--dea-red);
}

/* ==========================================================================
   News Section
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--dea-white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--dea-gray);
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 15px;
}

.news-title a:hover {
    color: var(--dea-red);
}

.news-excerpt {
    color: var(--dea-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dea-red);
    font-weight: 600;
    font-size: 0.9rem;
}

.news-link:hover {
    gap: 12px;
}

/* ==========================================================================
   References Section
   ========================================================================== */
.references-section {
    background: var(--dea-light);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    align-items: center;
}

.reference-item {
    background: var(--dea-white);
    padding: 30px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.reference-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.reference-item img {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition-fast);
}

.reference-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--dea-dark);
    color: var(--dea-white);
}

.footer-main {
    padding: 80px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
}

.footer-widget h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--dea-white);
}

.footer-about p {
    color: var(--dea-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dea-white);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--dea-red);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--dea-gray);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--dea-red);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(210, 10, 17, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dea-red);
    flex-shrink: 0;
}

.footer-contact-text span {
    font-size: 0.85rem;
    color: var(--dea-gray);
}

.footer-contact-text p {
    font-weight: 500;
    margin-bottom: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--dea-gray);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-slide-title {
        font-size: 2.5rem;
    }

    .about-grid {
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .references-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dea-white);
        padding: 20px;
        box-shadow: var(--shadow-md);
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-slide-title {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image-badge {
        right: 20px;
        bottom: -20px;
        width: 120px;
        height: 120px;
    }

    .about-image-badge span {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 3rem;
    }

    .projects-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .references-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-slide-title {
        font-size: 1.75rem;
    }

    .hero-slide-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .references-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 1.75rem;
    }
}