/* ============ RESET & ROOT ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* TURUNCU TEMA */
    --primary: #fa5603;
    --primary-dark: #d94900;
    --primary-light: #ff8c42;
    --primary-rgb: 250, 86, 3;

    --navy: #0a1a35;
    --navy-2: #12294d;
    --navy-3: #1a3a6b;
    --text: #1a2233;
    --muted: #6b7a90;
    --light: #f7f9fc;
    --border: #e6ecf5;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(10,26,53,.06);
    --shadow-md: 0 8px 24px rgba(10,26,53,.10);
    --shadow-lg: 0 20px 50px rgba(10,26,53,.15);
    --radius: 14px;
    --radius-lg: 20px;
    --transition: all .35s cubic-bezier(.4,0,.2,1);
}

/* ============ HTML & BODY ============ */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main,
body > .wrapper,
body > #wrapper,
body > #page,
body > .page {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

body > header,
body > footer,
footer {
    flex-shrink: 0;
}

footer {
    margin-bottom: 0 !important;
    padding-bottom: 0;
}

body > #page > main,
body > .wrapper > main {
    flex: 1 0 auto;
}

/* ============ TAŞMA ÖNLEYİCİ ============ */
section, header, footer, main {
    overflow-x: clip;
    max-width: 100%;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 24px; 
    width: 100%;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.25rem; }
h1 em, h2 em { color: var(--primary); font-style: normal; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: "";
    width: 30px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2 { color: var(--navy); margin-bottom: 18px; }
.section-desc { color: var(--muted); font-size: 1.05rem; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .95rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    border: 2px solid transparent;
    max-width: 100%;
}
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .6s;
}
.btn:hover::after { transform: translateX(100%); }
.btn i { font-size: .95em; transition: transform .3s; }
.btn:hover i.fa-arrow-right,
.btn:hover i.fa-paper-plane { transform: translateX(3px); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(250,86,3,.35);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(250,86,3,.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.4);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-size: 1.1rem;
    display: grid; place-items: center;
    box-shadow: 0 10px 25px rgba(250,86,3,.4);
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px) scale(1.05); }

/* ============ GLOBAL ANIMATIONS ============ */
.fade-up, .fade-left, .fade-right, .zoom-in {
    opacity: 0;
    transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
    will-change: opacity, transform;
    max-width: 100%;
}
.fade-up { transform: translateY(40px); }
.fade-left { transform: translateX(-50px); }
.fade-right { transform: translateX(50px); }
.zoom-in { transform: scale(.9); }
.fade-up.visible, .fade-left.visible, .fade-right.visible, .zoom-in.visible {
    opacity: 1; transform: translate(0,0) scale(1);
}
.delay-0 { transition-delay: 0s; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }
.delay-6 { transition-delay: .6s; }
.delay-7 { transition-delay: .7s; }

/* ============ RESPONSIVE (global) ============ */
@media (max-width: 1024px) {
    .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--navy); padding: 20px; gap: 4px; }
    .nav.open { display: flex; }
    .nav a { padding: 14px 20px; }
    .mobile-toggle { display: block; }
    .phone-link span { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { text-align: center; justify-content: center; }
    
    .fade-left, .fade-right {
        transform: translateX(0) translateY(30px);
    }
    .fade-left.visible, .fade-right.visible {
        transform: translate(0,0);
    }
    
    img, video, iframe, table {
        max-width: 100% !important;
        height: auto;
    }
    
    h1, h2, h3, h4, p, a, span, div {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}