/* ==========================================
   MARKA KİMLİĞİ — ELEKTRİK (açık zemin, lacivert yazı, tek sıcak vurgu)
   Tüm renk ve font token'ları SADECE burada tanımlanır.
   Başlık: Outfit. Metin: Figtree.
   ========================================== */
:root {
    --bg: #fbfaf6;
    --surface: #ffffff;
    --surface-2: #f4f1e9;
    --surface-3: #ebe7db;
    --border-color: #e7e3d7;
    --border-strong: #d3cebd;

    --ink: #15223b;                    /* lacivert: başlıklar ve koyu yüzeyler */
    --accent-color: #ffb61e;           /* elektrik sarısı: düğmeler, vurgu zemini */
    --accent-hover: #ffc545;
    --accent-soft: #fff3d1;
    --accent-text: #9a5b00;            /* vurgu renginde okunabilir metin */
    --on-accent: #15223b;
    --primary-color: var(--accent-color);

    --text-main: #15223b;
    --text-muted: #566075;
    --text-dim: #8a90a0;

    --success: #2f7d4f;
    --danger: #c0392b;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(21, 34, 59, 0.06), 0 2px 8px rgba(21, 34, 59, 0.04);
    --shadow-md: 0 10px 28px -10px rgba(21, 34, 59, 0.18);
    --shadow-lg: 0 24px 48px -18px rgba(21, 34, 59, 0.28);

    --font-display: 'Outfit', 'Segoe UI', sans-serif;
    --font-body: 'Figtree', -apple-system, 'Segoe UI', sans-serif;

    --z-header: 100;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    background-color: var(--bg);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-wrap: balance;
    color: var(--ink);
}

p {
    text-wrap: pretty;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    font-weight: 600;
    z-index: 300;
    border-radius: var(--radius-md);
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

/* ==========================================
   ÜST ŞERİT
   ========================================== */
.top-bar {
    background-color: var(--surface-2);
    color: var(--text-muted);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 24px;
}

.top-bar-info a {
    text-decoration: none;
    font-weight: 600;
    color: var(--ink);
}

.top-bar-note {
    color: var(--accent-text);
    font-weight: 600;
}

/* ==========================================
   HEADER & NAVİGASYON
   ========================================== */
.site-header {
    background-color: rgba(251, 250, 246, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

.brand-logo::before {
    content: '';
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--accent-color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2315223b'%3E%3Cpath d='M13 2 4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.brand-name span {
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 2px;
}

.brand-subtext {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 2px;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-item:hover {
    color: var(--ink);
    background-color: var(--surface-2);
}

.nav-item.active {
    color: var(--ink);
    background-color: var(--accent-soft);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-actions form {
    margin: 0;
}

/* ==========================================
   BUTONLAR
   ========================================== */
.btn-action-primary,
.btn-primary {
    background-color: var(--accent-color);
    color: var(--on-accent);
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 16px -6px rgba(255, 182, 30, 0.8);
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-action-primary:hover,
.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 10px 20px -8px rgba(255, 182, 30, 0.9);
}

.btn-action-primary:active,
.btn-primary:active,
.btn-secondary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--ink);
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--ink);
}

.btn-admin-link {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: color 0.2s ease;
}

.btn-admin-link:hover {
    color: var(--ink);
}

.arrow {
    transition: transform 0.2s ease;
}

a:hover > .arrow {
    transform: translateX(3px);
}

/* ==========================================
   SAYFA GÖVDESİ
   ========================================== */
.page-wrapper {
    flex: 1;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background-color: var(--surface-2);
    color: var(--text-muted);
}

.footer-top {
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 24px 44px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
}

.footer-col h4 {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    margin: 16px 0 0;
    max-width: 40ch;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--ink);
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
    font-size: 14px;
}

.footer-contact-label {
    font-size: 12px;
    color: var(--text-dim);
}

.footer-contact-value {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.footer-bottom {
    padding: 18px 24px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-dim);
}

.footer-bottom-container a {
    color: var(--text-dim);
    text-decoration: none;
}

.footer-bottom-container a:hover {
    color: var(--ink);
}

/* ==========================================
   YÖNETİM PANELİ
   ========================================== */
body.admin-area {
    background-color: #f1f3f7;
}

/* ==========================================
   MOBİL MENÜ (hamburger)
   ========================================== */
.nav-collapse {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(21, 34, 59, 0.4);
    z-index: 90;
}

.nav-backdrop.visible {
    display: block;
}

body.nav-open {
    overflow: hidden;
}

/* ==========================================
   MOBİL
   ========================================== */
@media (max-width: 900px) {
    .top-bar {
        display: none;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .nav-collapse.open {
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 20px;
    }

    .nav-item {
        padding: 13px 14px;
        border-radius: var(--radius-md);
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 16px 20px 22px;
        border-top: 1px solid var(--border-color);
    }

    .nav-actions .btn-action-primary,
    .nav-actions .btn-admin-link {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .page-wrapper {
        padding: 24px 16px 56px;
    }
    .nav-container {
        padding: 12px 16px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ==========================================
   SABİT WHATSAPP BALONU
   ========================================== */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px -8px rgba(37, 211, 102, 0.7);
    z-index: 150;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.06);
}

@media (max-width: 600px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ==========================================
   LACİVERT ÜST MENÜ VE ALT BÖLÜM (rakip benzeri yapı)
   ========================================== */
html {
    overflow-x: clip;
}

.top-bar {
    background-color: var(--accent-color);
    color: var(--ink);
}

.top-bar-note {
    color: var(--ink);
}

.site-header {
    background-color: var(--ink);
    border-bottom: none;
}

.brand-logo,
.brand-name {
    color: #fff;
}

.brand-name span {
    color: #aab6d3;
}

.nav-item {
    color: #c9d2e6;
}

.nav-item:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    color: var(--on-accent);
    background-color: var(--accent-color);
}

.btn-admin-link {
    color: #aab6d3;
}

.btn-admin-link:hover {
    color: #fff;
}

.nav-toggle {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-toggle span {
    background: #fff;
}

.nav-collapse {
    background: var(--ink);
}

@media (max-width: 900px) {
    .nav-collapse {
        background: var(--ink);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
    .nav-actions {
        border-top-color: rgba(255, 255, 255, 0.12);
    }
}

.site-footer {
    background-color: #0f1a30;
    color: #aab6d3;
}

.footer-col h4,
.footer-contact-value {
    color: #fff;
}

.footer-links a {
    color: #aab6d3;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact-label {
    color: #7f8cab;
}

.footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.footer-bottom-container,
.footer-bottom-container a {
    color: #7f8cab;
}

.footer-bottom-container a:hover {
    color: #fff;
}
