/* ============================================================
   Av. Doğukan Ozan Çaykara — Site Teması
   Palet: derin lacivert + antika pirinç + sıcak fildişi
   Tipografi: Fraunces (başlık) + Inter (gövde)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ink: #0a1420;
    --ink-2: #163050;
    --brass: #b3873f;
    --brass-light: #d6ac6d;
    --paper: #faf8f3;
    --paper-dim: #f1ebdd;
    --charcoal: #201d1a;
    --slate: #5c6570;
    --line: #e6ddc9;
    --radius: 4px;
    --shadow: 0 16px 40px -14px rgba(10, 20, 32, 0.24);
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Inter', -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--charcoal);
    background: var(--paper);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 2.6rem; line-height: 1.12; }
h2 { font-size: 1.9rem; line-height: 1.2; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--slate); }

a { color: var(--ink-2); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--brass); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* --- Eyebrow: imzalık tipografi öğesi --- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--brass); display: inline-block; }

/* --- Header --- */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(14, 26, 43, 0.97);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
header.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 16px;
    padding-bottom: 16px;
}
header.site-header .brand {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 11px;
    white-space: nowrap;
}
header.site-header .brand-text {
    font-family: var(--serif);
    font-size: 1.22rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.brand-mark {
    flex-shrink: 0;
    width: 34px; height: 34px;
    border: 1.5px solid var(--brass-light);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brass-light);
}

.nav-wrap { display: flex; align-items: center; gap: 28px; }
nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a {
    color: rgba(255,255,255,0.82);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
    padding: 4px 0;
}
nav.main-nav a::after {
    content: '';
    position: absolute; left: 0; bottom: -2px;
    width: 0; height: 1px; background: var(--brass-light);
    transition: width 0.2s ease;
}
nav.main-nav a:hover { color: #fff; }
nav.main-nav a:hover::after { width: 100%; }

.lang-switch {
    display: flex; align-items: center; gap: 6px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 4px 5px;
}
.lang-switch a {
    font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
    padding: 4px 10px; border-radius: 16px; color: rgba(255,255,255,0.65);
}
.lang-switch a.active { background: var(--brass); color: #fff; }
.lang-switch a:hover { color: #fff; }

.menu-toggle { display: none; }

/* --- Hero --- */
.hero {
    position: relative;
    background: linear-gradient(175deg, #fff 0%, var(--paper-dim) 100%);
    color: var(--charcoal);
    padding: 108px 0 96px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(179,135,63,0.06) 0px, rgba(179,135,63,0.06) 1px, transparent 1px, transparent 88px);
    opacity: 0.6;
}
.hero::after {
    content: '§';
    position: absolute;
    top: -140px; right: -40px;
    font-family: var(--serif);
    font-size: 640px;
    line-height: 1;
    font-weight: 600;
    color: var(--brass);
    opacity: 0.07;
    pointer-events: none;
    user-select: none;
}
.hero .container { position: relative; max-width: 760px; }
.hero .eyebrow { color: var(--brass); }
.hero .eyebrow::before { background: var(--brass); }
.hero h1 { color: var(--ink); font-size: 3.1rem; }
.hero p.lead { color: var(--slate); font-size: 1.14rem; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.credentials { position: relative; display: flex; flex-wrap: wrap; align-items: center; margin-top: 32px; }
.credentials span {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--slate);
    padding-right: 18px;
    margin-right: 18px;
    border-right: 1px solid var(--line);
    line-height: 1.4;
}
.credentials span:last-child { border-right: none; padding-right: 0; margin-right: 0; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    background: var(--brass);
    color: #fff;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid var(--brass);
    cursor: pointer;
    transition: all 0.18s ease;
}
.btn:hover { background: transparent; border-color: var(--brass-light); color: var(--brass); }
.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); background: rgba(10,20,32,0.03); }

/* --- Sections --- */
section { padding: 84px 0; }
section.alt { background: var(--paper-dim); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* --- Cards / Grid --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
}
.card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--brass); transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s ease; z-index: 2;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-dim); position: relative; }
.card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card .card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card h3 a { color: var(--ink); }
.card .card-body p { font-size: 0.92rem; margin-bottom: 14px; }
.card .card-link { margin-top: auto; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; color: var(--brass); }
.card .card-link:hover { color: var(--ink-2); }
.card .muted { font-size: 0.8rem; color: var(--slate); margin-bottom: 6px; }

/* --- Görsel-öncelikli faaliyet alanı kartı (resim üstünde başlık) --- */
.area-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    background: linear-gradient(150deg, var(--ink-2), var(--ink));
    box-shadow: 0 8px 22px -10px rgba(14,26,43,0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.area-card:hover { transform: translateY(-5px); box-shadow: 0 20px 34px -14px rgba(14,26,43,0.4); }
.area-card img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease; opacity: 0.88;
}
.area-card:hover img { transform: scale(1.08); }

/* Görseli henüz eklenmemiş faaliyet alanları için açık/ferah varyant */
.area-card.no-image {
    background: linear-gradient(150deg, #ffffff, var(--paper-dim));
    border: 1px solid var(--line);
    box-shadow: 0 6px 16px -10px rgba(14,26,43,0.12);
}
.area-card.no-image:hover { box-shadow: 0 16px 28px -12px rgba(14,26,43,0.18); }
.area-card.no-image .area-overlay { background: none; }
.area-card.no-image .area-num { color: var(--brass); }
.area-card.no-image .area-title { color: var(--ink); }
.area-card.no-image .area-title small { color: var(--brass); }
.area-card.no-image:hover .area-title small { color: var(--ink-2); }
.area-card.no-image .area-icon {
    position: absolute; top: 60px; left: 20px;
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(179, 135, 63, 0.14);
    border: 1px solid rgba(179, 135, 63, 0.3);
    border-radius: 50%;
    color: var(--ink-2);
    opacity: 1;
    pointer-events: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.area-card.no-image .area-icon svg { width: 28px; height: 28px; stroke-width: 1.7; }
.area-card.no-image:hover .area-icon { background: var(--brass); border-color: var(--brass); color: #fff; }

.area-detail-icon {
    width: 100%; aspect-ratio: 21/9;
    background: linear-gradient(150deg, #ffffff, var(--paper-dim));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 26px;
}
.area-detail-icon svg { width: 68px; height: 68px; color: var(--brass); opacity: 0.55; }
.area-card .area-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(9,16,27,0.92) 0%, rgba(9,16,27,0.45) 46%, rgba(9,16,27,0.05) 75%);
}
.area-card .area-num {
    position: absolute; top: 16px; left: 18px;
    font-family: var(--serif); font-size: 0.78rem; color: var(--brass-light);
    letter-spacing: 0.08em;
}
.area-card .area-title {
    position: absolute; left: 20px; right: 20px; bottom: 18px;
    color: #fff; font-family: var(--serif); font-size: 1.18rem; font-weight: 600; line-height: 1.25;
}
.area-card .area-title small {
    display: block; margin-top: 6px; font-family: var(--sans); font-weight: 600;
    font-size: 0.76rem; letter-spacing: 0.03em; color: var(--brass-light);
}
.area-card:hover .area-title small { color: #fff; }
.area-card::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--brass); transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s ease; z-index: 3;
}
.area-card:hover::after { transform: scaleX(1); }

/* --- Scroll ile beliren öğeler (imza hareket) --- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.grid .reveal:nth-child(1) { transition-delay: 0s; }
.grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid .reveal:nth-child(6) { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Forms --- */
form input, form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 0.96rem;
    background: #fff;
    color: var(--charcoal);
}
form input:focus, form textarea:focus {
    outline: 2px solid var(--brass-light);
    outline-offset: 1px;
    border-color: var(--brass);
}
form label { font-weight: 600; display: block; margin-bottom: 6px; font-size: 0.86rem; color: var(--ink); }

.alert { padding: 13px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.94rem; }
.alert-success { background: #eaf3ec; color: #1e6b34; border: 1px solid #c3ddc9; }
.alert-error { background: #fbeaea; color: #9a2c2c; border: 1px solid #f0c1c1; }

/* --- Footer --- */
footer.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.62);
    padding: 50px 0 30px;
}
footer.site-footer .footer-top {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px;
    padding-bottom: 30px; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
footer.site-footer .brand { color: #fff; font-family: var(--serif); font-size: 1.2rem; }
footer.site-footer a { color: rgba(255,255,255,0.62); }
footer.site-footer a:hover { color: var(--brass-light); }
footer.site-footer .foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.84rem; }

/* --- Detail pages --- */
.detail-hero { background: linear-gradient(175deg, #fff 0%, var(--paper-dim) 100%); color: var(--charcoal); padding: 64px 0 54px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.detail-hero::after {
    content: '§';
    position: absolute; top: -80px; right: -20px;
    font-family: var(--serif); font-size: 320px; font-weight: 600;
    color: var(--brass); opacity: 0.08; pointer-events: none;
}
.detail-hero .container { position: relative; max-width: 760px; }
.detail-hero h1 { color: var(--ink); }
.back-link { display: inline-block; margin-bottom: 16px; font-size: 0.86rem; color: var(--slate); }
.back-link:hover { color: var(--brass); }
.prose { max-width: 720px; }
.prose img { max-width: 100%; border-radius: var(--radius); }

/* --- Hakkımızda: yan görsel + metin --- */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 60px; align-items: start; }
.about-grid .prose { max-width: none; }
.about-photo { position: relative; }
.about-photo::before {
    content: ''; position: absolute; top: 20px; left: -20px; right: -20px; bottom: -20px;
    border: 1px solid var(--brass); border-radius: var(--radius); z-index: 0;
}
.about-photo img { position: relative; z-index: 1; width: 100%; display: block; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/4; object-fit: cover; }

/* --- Hakkımızda: alt tam-genişlik görsel bandı --- */
.about-bottom-photo { margin-top: 64px; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-bottom-photo img { width: 100%; display: block; max-height: 440px; object-fit: cover; }
.about-bottom-photo .caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 28px;
    background: linear-gradient(0deg, rgba(10,20,32,0.72) 0%, rgba(10,20,32,0) 100%);
    color: #fff; font-family: var(--serif); font-size: 1.05rem;
}

@media (max-width: 780px) {
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-photo::before { display: none; }
    .about-photo img { aspect-ratio: 16/10; }
}

/* --- Mobile --- */
@media (max-width: 880px) {
    .menu-toggle {
        display: inline-flex; align-items:center; justify-content:center;
        width: 40px; height: 40px; background: transparent; border: 1px solid rgba(255,255,255,0.3);
        border-radius: var(--radius); color: #fff; font-size: 1.2rem; cursor: pointer;
    }
    .nav-wrap {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--ink); flex-direction: column; align-items: flex-start;
        padding: 20px 28px 26px; gap: 18px;
        display: none;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .nav-wrap.open { display: flex; }
    nav.main-nav { flex-direction: column; gap: 16px; width: 100%; }
    .hero { padding: 70px 0 60px; }
    .hero h1 { font-size: 2.1rem; }
    section { padding: 56px 0; }
}

/* ============================================================
   Admin panel
   ============================================================ */
.admin-body { background: #eef1f4; font-family: var(--sans); }
.admin-header {
    background: var(--ink);
    color: #fff;
    padding: 14px 0;
    margin-bottom: 30px;
}
.admin-header .container { display: flex; justify-content: space-between; align-items: center; }
.admin-header a { color: #fff; margin-left: 18px; font-size: 0.9rem; }
.admin-nav { margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.admin-nav a {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--charcoal);
    font-size: 0.9rem;
}
.admin-nav a.active, .admin-nav a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
table.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
table.admin-table th, table.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 0.92rem;
}
.login-box {
    max-width: 380px;
    margin: 80px auto;
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.muted { color: var(--slate); font-size: 0.88rem; }
.actions a, .actions button { margin-right: 10px; font-size: 0.88rem; }
.lang-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.lang-tabs button {
    padding: 7px 16px; border: 1px solid var(--line); background: #fff; cursor: pointer;
    font-size: 0.85rem; font-weight: 600; border-radius: var(--radius);
}
.lang-tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.lang-pane { display: none; }
.lang-pane.active { display: block; }
