﻿/* =========================================================
   ÇAKMAK MARKET - MODERN WEB DESIGN SYSTEM
   Clean, Premium, High Performance & Mobile Responsive
========================================================= */

:root {
    --primary: #ce000c;
    --primary-dark: #a10009;
    --primary-light: #fef2f2;
    --primary-glow: rgba(206, 0, 12, 0.25);
    
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.2);
    
    --dark: #0f172a;
    --dark-surface: #1e293b;
    --slate: #475569;
    --slate-light: #94a3b8;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.12);
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.25;
}

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

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

/* === TOP BAR === */
.top-bar {
    background-color: #111827;
    color: #9ca3af;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e5e7eb;
    font-weight: 500;
}

.top-bar-left i {
    color: var(--primary);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-link {
    color: #d1d5db;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.top-link:hover {
    color: #ffffff;
}

.top-whatsapp {
    color: #22c55e !important;
}

/* === MAIN HEADER === */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    padding: 18px 0;
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Dropdown - Fixed with zero gap and invisible bridge */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    user-select: none;
}

.dropdown-toggle i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 230px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    padding: 8px 0;
    display: none;
    flex-direction: column;
    z-index: 1050;
}

/* Invisible bridge so mouse hover never drops between trigger and menu */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
}

.dropdown-item {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item i {
    color: var(--primary);
    font-size: 13px;
    width: 16px;
    text-align: center;
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    display: flex;
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* Mobile Toggle */
.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--dark);
    cursor: pointer;
    padding: 8px;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    z-index: 2000;
    box-shadow: var(--shadow-xl);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
}

.mobile-drawer.open, .mobile-drawer.active {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-logo {
    height: 38px;
}

.close-drawer-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--slate);
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-weight: 600;
    color: #334155;
    border-radius: var(--radius-sm);
}

.mobile-nav-link i {
    width: 18px;
    color: var(--primary);
}

.mobile-nav-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-contact-info {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-backdrop.open, .mobile-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* === HOMEPAGE SECTIONS === */

/* 1. Contained TV Slider (bs.html) - Seamless Site Background */
.home-slider-section {
    background-color: var(--bg-main); /* #f8fafc */
    padding: 50px 0;
}

.slider-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.home-slider-frame {
    width: 100%;
    height: 440px;
    border: none;
    display: block;
    background: transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* 2. Four Action Blocks (Red Bar #ce000c) */
.home-features-bar {
    background-color: var(--primary);
    padding: 24px 0;
    color: #ffffff;
}


/* Brand Slogan inside Banner */
.banner-slogan-wrap {
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.banner-slogan-text {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.banner-brand-name {
    font-weight: 900;
    letter-spacing: 0.5px;
}

.banner-slogan-separator {
    margin: 0 10px;
    opacity: 0.7;
    font-weight: 300;
}

.banner-slogan-tagline {
    font-weight: 600;
    color: #ffffff;
    font-style: italic;
}

@media (max-width: 768px) {
    .banner-slogan-text {
        font-size: 19px;
    }
    .banner-slogan-separator {
        display: none;
    }
    .banner-slogan-tagline {
        display: block;
        margin-top: 4px;
        font-size: 16px;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transition: var(--transition);
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: #ffffff;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-content {
    overflow: hidden;
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.feature-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3. Single Map Section */
.home-map-section {
    padding: 30px 0 50px;
    background-color: var(--bg-main);
}

.map-wrapper {
    background: #ffffff;
    padding: 8px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 520px;
    border: none;
    border-radius: calc(var(--radius-lg) - 6px);
}

/* === PAGE HEADERS & INNER PAGES === */
.page-header-simple {
    background: linear-gradient(135deg, #ce000c, #a10009);
    color: #ffffff;
    padding: 45px 0;
    margin-bottom: 35px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(206, 0, 12, 0.2);
}

.page-title {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 8px;
}

.page-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.page-body-section {
    padding-bottom: 60px;
}

.content-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    color: #334155;
    line-height: 1.8;
}

.content-box h2, .content-box h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--dark);
}

.content-box h2:first-child, .content-box h3:first-child {
    margin-top: 0;
}

.content-box p {
    margin-bottom: 16px;
}

/* Authentic Page Visual Banner */
.page-banner-wrap {
    margin-bottom: 28px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    background: #ffffff;
    text-align: center;
}

.page-banner-img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

/* === BRANCHES (MAĞAZALARIMIZ) === */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

.branch-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.branch-map-wrap {
    height: 220px;
    width: 100%;
    background: #e2e8f0;
}

.branch-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.branch-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.branch-title {
    font-size: 19px;
    color: var(--dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.branch-title i {
    color: var(--primary);
}

.branch-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: var(--slate);
    margin-bottom: 24px;
    flex: 1;
}

.branch-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.branch-info-list i {
    color: var(--primary);
    margin-top: 3px;
    width: 16px;
}

/* === FORMS (İLETİŞİM & KARİYER) === */
.form-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.req {
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    height: 42px;
    font-size: 14px;
    font-family: inherit;
    color: var(--dark);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control.is-invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

select.form-control {
    appearance: auto;
    cursor: pointer;
}

select.form-control:has(option[value=""]:checked),
select.form-control.select-placeholder {
    color: #9ca3af !important;
}

select.form-control option {
    color: var(--dark);
}

select.form-control option[value=""] {
    color: #9ca3af !important;
}

textarea.form-control {
    height: auto !important;
    min-height: 110px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--slate);
}

.form-check input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-whatsapp {
    background: #22c55e;
    color: #ffffff;
}

.btn-whatsapp:hover {
    background: #16a34a;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

/* Alert Boxes */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* === FOOTER === */
.site-footer {
    background-color: #ffffff;
    color: #64748b;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
}

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

.copyright-text {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.footer-ssl-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* === RESPONSIVE RULES === */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle-btn {
        display: block;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .home-slider-section {
        padding: 30px 0;
    }
    
    .home-slider-frame {
        height: 440px;
    }
    
    .map-wrapper iframe {
        height: 400px;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .top-bar-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    
    .home-slider-section {
        padding: 16px 0;
    }
    
    .home-slider-frame {
        height: 430px;
    }
    
    .slider-wrapper {
        padding: 0 8px;
    }
    
    .header-inner {
        height: 64px;
    }
    
    .logo-img {
        height: 40px;
    }
}
