/* =========================================
   PELIT CONSULTANCY - KURUMSAL STİL DOSYASI
   ========================================= */

/* --- TEMEL RENK PALETİ --- */
:root {
    --primary-color: #002240; /* Gönül İmar Koyu Lacivert */
    --accent-color: #FEDB03;  /* Gönül İmar Dinamik Sarı */
    --text-light: #FFFFFF;    /* Beyaz Metin */
    --text-dark: #1d1d1d;     /* Gönül İmar Koyu Metin */
    --text-gray: #6c757d;     /* Alt Metin Rengi Gri */
}

/* --- SIFIRLAMA (RESET) VE GENEL AYARLAR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* =========================================
   HEADER VE MENÜ ALANI
   ========================================= */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 10;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 35px; /* Menü, arama ve bayraklar arası boşluk */
}

.logo a {
    text-decoration: none;
}

.main-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

/* Hover durumunda ve Aktif sayfada sarı renk */
.main-menu a:hover,
.main-menu a.active {
    color: var(--accent-color);
}

/* --- ARAMA İKONU --- */
.search-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.search-icon:hover {
    transform: scale(1.1);
}

.search-icon svg {
    stroke: var(--text-light);
    transition: stroke 0.3s ease;
}

.search-icon:hover svg {
    stroke: var(--accent-color);
}

/* --- DİL SEÇİCİ (AÇILIR MENÜ) --- */
.language-switcher.dropdown {
    position: relative;
    cursor: pointer;
}

.active-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
    transition: opacity 0.3s;
}

.active-lang:hover {
    opacity: 0.8;
}

.active-lang img {
    width: 26px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.active-lang svg {
    transition: transform 0.3s ease;
}

.language-switcher.dropdown:hover .active-lang svg {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    overflow: hidden;
}

/* Ok (Üstteki küçük üçgen) */
.lang-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    transform: rotate(45deg);
    border-top-left-radius: 2px;
}

.language-switcher.dropdown:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    position: relative;
    z-index: 2;
}

.lang-dropdown-menu a:hover {
    background: #f5f7fa;
    color: var(--primary-color);
}

.lang-dropdown-menu a.active {
    background: #edf3f8;
    color: var(--primary-color);
    font-weight: 600;
}

.lang-dropdown-menu img {
    width: 22px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* =========================================
   HERO SECTION (AÇILIŞ BANNERI)
   ========================================= */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-image: url('../img/hero-bg.jpg'); /* assets/img klasörüne görseli eklemelisin */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(4, 30, 58, 0.6); /* Koyu lacivert şeffaf katman */
    z-index: 1;
}

.hero-content {
    color: var(--text-light);
    max-width: 650px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    line-height: 1.6;
    color: #e0e0e0;
}

/* --- BUTONLAR --- */
.btn {
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color); /* Buton içi yazı lacivert */
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-outline {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* =========================================
   HAKKIMIZDA & BİZ KİMİZ BÖLÜMÜ
   ========================================= */
.about-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
    background-color: #e9ecef;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-content h2 span {
    color: var(--accent-color);
}

.about-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-features {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.feature-text h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

/* =========================================
   HİZMETLERİMİZ BÖLÜMÜ
   ========================================= */
.services-section {
    padding: 80px 0;
    text-align: center;
}

.services-header {
    margin-bottom: 60px;
}

.services-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.services-header p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}

.service-card {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.service-img {
    width: 100%;
    height: 200px;
    background-color: #e9ecef;
    object-fit: cover;
}

.service-body {
    padding: 30px;
}

.service-body h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-body p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--accent-color);
}

/* RESPONSIVE AYARLAR */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   ARAPÇA (RTL) UYUMU
   ========================================= */
/* HTML etiketi dir="rtl" olduğunda devreye girer */
html[dir="rtl"] .btn-outline {
    margin-left: 0;
    margin-right: 15px;
}

html[dir="rtl"] .main-menu ul {
    padding: 0;
}

/* =========================================
   İÇ SAYFA BAŞLIKLARI (PAGE HEADER)
   ========================================= */
.page-header {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, rgba(0, 34, 64, 0.95) 0%, rgba(0, 34, 64, 0.8) 100%), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    border-bottom: 4px solid var(--accent-color);
}

.page-header h1 {
    font-size: 3.2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.page-header p {
    font-size: 1.15rem;
    color: #e0e0e0;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border-left: 4px solid var(--accent-color);
}

html[dir="rtl"] .contact-info-box {
    border-left: none;
    border-right: 4px solid var(--accent-color);
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-text h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-info-text p, .contact-info-text a {
    color: var(--text-gray);
    font-size: 0.95rem;
    text-decoration: none;
}

.contact-form-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form-box h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #e6c500;
}

.map-section {
    line-height: 0; /* Boşlukları gidermek için */
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   FOOTER (ALT BİLGİ)
   ========================================= */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 70px 0 20px;
    margin-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand h2 {
    color: var(--text-light);
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-social {
    margin-top: 15px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    color: var(--accent-color);
    border-radius: 50%;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer-widget h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

html[dir="rtl"] .footer-widget h4::after {
    left: auto;
    right: 0;
}

.footer-widget p, .footer-widget a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: color 0.3s;
}

.footer-widget a:hover {
    color: var(--accent-color);
}

.footer-widget i {
    color: var(--accent-color);
    margin-top: 5px;
    width: 16px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-info-grid {
        grid-template-columns: 1fr;
    }
}