/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --cream:       #F7F4EE;
    --cream-dark:  #EDE8DC;
    --navy:        #1A2744;
    --sage:        #4A7666;
    --sage-light:  #6B9E8C;
    --terra:       #C4785A;
    --terra-light: #D4916F;
    --text:        #2A2A2A;
    --muted:       #777;
    --white:       #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
    animation: pageIn .35s ease forwards;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0);   }
}

@media (prefers-reduced-motion: reduce) {
    body { animation: none; }
}

/* ── NAVBAR ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 6%;
    transition: background .3s, box-shadow .3s;
}

nav.scrolled,
nav.solid {
    background: rgba(247,244,238,.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,.07);
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-emblem {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: var(--white);
    transition: color .3s;
}

nav.scrolled .logo-emblem,
nav.solid   .logo-emblem { color: var(--navy); }

.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: color .2s;
}

nav.scrolled .nav-links a,
nav.solid   .nav-links a { color: var(--muted); }

.nav-links a:hover { color: var(--white) !important; }
nav.scrolled .nav-links a:hover,
nav.solid   .nav-links a:hover { color: var(--navy) !important; }

.nav-links a.active { color: var(--terra) !important; }

/* burger */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: .5rem;
    z-index: 101;
}
.nav-burger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: background .3s;
}
nav.scrolled .nav-burger span,
nav.solid   .nav-burger span { background: var(--navy); }

/* mobile menu — her zaman display:flex, translateY ile gizli/görünür */
.nav-mobile {
    position: fixed;
    top: 0; right: 0; left: 0;
    height: auto;
    max-height: 90vh;
    background: var(--navy);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding-top: 5rem;
    padding-bottom: 2rem;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform .32s cubic-bezier(.22,1,.36,1);
    pointer-events: none;
}
.nav-mobile.open {
    transform: translateY(0);
    pointer-events: auto;
}
.nav-mobile a {
    font-family: 'DM Serif Display', serif;
    font-size: 1.35rem;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    transition: color .2s;
    padding: 0.6rem 0;
}
.nav-mobile a:hover,
.nav-mobile a:active { color: var(--white); }
.nav-mobile-close {
    position: absolute;
    top: 1.2rem; right: 6%;
    background: none; border: none;
    color: rgba(255,255,255,.45);
    font-size: 1.5rem;
    cursor: pointer;
    padding: .5rem;
    transition: color .2s;
    line-height: 1;
}
.nav-mobile-close:hover { color: var(--white); }

/* ── PAGE HEADER (non-index pages) ── */
.page-header {
    background: var(--navy);
    padding: 8.5rem 6% 4rem;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.page-header-inner {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
}
.page-header .label          { color: var(--sage-light); margin-bottom: .75rem; }
.page-header .label::before  { background: var(--sage-light); }
.page-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -.02em;
}
.page-header p {
    margin-top: .75rem;
    font-size: 1rem;
    color: rgba(255,255,255,.5);
    max-width: 480px;
}

/* ── FOOTER ── */
footer {
    background: var(--navy);
    padding: 3rem 6%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.08);
}
.footer-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,.4);
    letter-spacing: 0.05em;
}
.footer-copy {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255,255,255,.35);
    max-width: 650px;
}

.footer-credit {
    font-size: 0.65rem;
    color: rgba(255,255,255,.15);
    letter-spacing: 0.02em;
    margin-top: 0.3rem;
}

.footer-credit a {
    color: rgba(255,255,255,.15);
    text-decoration: none;
    transition: color .2s;
    border-bottom: none;
}

.footer-credit a:hover {
    color: rgba(255,255,255,.25);
}

/* ── SHARED UTILITIES ── */
section { padding: 5.5rem 6%; }

.inner { max-width: 1080px; margin: 0 auto; }

.label {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: .75rem;
}
.label::before {
    content: '';
    display: block;
    width: 2rem; height: 2px;
    background: var(--sage);
    flex-shrink: 0;
}

.title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.85rem, 3vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--navy);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.6rem;
    background: var(--terra);
    color: var(--white);
    border-radius: 6px;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--terra-light); transform: translateY(-2px); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.6rem;
    border: 1.5px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.75);
    border-radius: 6px;
    text-decoration: none;
    font-size: .875rem;
    transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.6); color: var(--white); }

.btn-sage {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.4rem;
    background: rgba(74,118,102,.1);
    color: var(--sage);
    border-radius: 6px;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 500;
    border: 1px solid rgba(74,118,102,.2);
    transition: background .2s;
}
.btn-sage:hover { background: rgba(74,118,102,.18); }

/* ── RESPONSIVE ── */

/* Tablet: burger menü göster */
@media (max-width: 900px) {
    .nav-links  { display: none; }
    .nav-burger { display: flex; }
}

/* Mobil genel */
@media (max-width: 768px) {
    section { padding: 3.5rem 5%; }
    footer  { flex-direction: column; gap: .5rem; text-align: center; padding: 2.5rem 6%; }
    .footer-credit { font-size: 0.6rem; color: rgba(255,255,255,.15); margin-top: 0.25rem; }
    .footer-credit a { color: rgba(255,255,255,.15); }
    .footer-credit a:hover { color: rgba(255,255,255,.25); }

    .page-header { padding: 6rem 5% 2.5rem; }
    .page-header h1 { font-size: clamp(1.75rem, 7vw, 2.4rem); }
    .page-header p  { font-size: .9rem; }

    .title { font-size: clamp(1.6rem, 6vw, 2.2rem); }

    .btn-primary, .btn-ghost { font-size: .82rem; padding: .7rem 1.25rem; }
}

/* Küçük telefon */
@media (max-width: 480px) {
    section { padding: 3rem 4.5%; }
    .page-header { padding: 5.5rem 4.5% 2rem; }
    footer { padding: 2rem 5%; gap: 0.3rem; }
    .footer-credit { font-size: 0.55rem; color: rgba(255,255,255,.12); margin-top: 0.2rem; }
    .footer-credit a { color: rgba(255,255,255,.12); }
    .footer-credit a:hover { color: rgba(255,255,255,.22); }
}
