/* ═══════════════════════════════════════════
   yasalmetinler.com — Shared Stylesheet
   ═══════════════════════════════════════════ */

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

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

:root {
    --navy:         #0B1B3A;
    --navy-dark:    #07122A;
    --green:        #22B573;
    --green-bg:     #E8F8F1;
    --green-border: #B5E8D4;
    --gray-50:      #F9FAFB;
    --gray-100:     #F3F4F6;
    --gray-200:     #E5E7EB;
    --gray-300:     #D1D5DB;
    --gray-400:     #9CA3AF;
    --gray-500:     #6B7280;
    --gray-600:     #4B5563;
    --gray-700:     #374151;
    --gray-900:     #111827;
    --red-bg:       #FEE2E2;
    --red-text:     #DC2626;
    --yellow-bg:    #FEF3C7;
    --yellow-text:  #D97706;

    /* Typography scale */
    --text-xs:   12px;
    --text-sm:   13.5px;
    --text-base: 15.5px;
    --text-md:   17px;
    --text-lg:   20px;
    --text-xl:   24px;
    --text-2xl:  30px;
    --text-3xl:  38px;
    --text-4xl:  48px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--text-base);
    color: var(--gray-900);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Global heading defaults */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy);
}

p { line-height: 1.75; color: var(--gray-600); }

a { font-family: inherit; }

/* ─── HEADER ─── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    width: 36px; height: 36px;
    background: var(--navy);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
}
.logo-text {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.4px;
}
nav { display: flex; align-items: center; gap: 2px; flex: 1; }
nav a {
    text-decoration: none;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: 7px;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
nav a:hover, nav a.active { background: var(--gray-100); color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ─── BUTTONS ─── */
.btn-ghost {
    padding: 8px 18px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px; font-weight: 600;
    color: var(--gray-700);
    background: transparent;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn-navy {
    padding: 8px 18px;
    background: var(--navy);
    border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600;
    color: white; cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}
.btn-navy:hover {
    background: var(--navy-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(11,27,58,.28);
}

.btn-green {
    padding: 12px 24px;
    background: var(--green);
    border: none; border-radius: 9px;
    font-size: 15px; font-weight: 700;
    color: white; cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}
.btn-green:hover {
    background: #1da366;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(34,181,115,.35);
}

.btn-outline-navy {
    padding: 11px 22px;
    border: 2px solid var(--navy);
    border-radius: 9px;
    font-size: 14px; font-weight: 600;
    color: var(--navy);
    background: transparent;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}
.btn-outline-navy:hover { background: var(--navy); color: white; }

/* ─── PAGE HERO (for inner pages) ─── */
.page-hero {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 60px 24px;
    text-align: center;
}
.page-hero-inner { max-width: 700px; margin: 0 auto; }
.page-hero .eyebrow {
    font-size: var(--text-xs); font-weight: 700;
    color: var(--green); letter-spacing: 1.6px;
    text-transform: uppercase; margin-bottom: 12px;
}
.page-hero h1 {
    font-size: var(--text-3xl); font-weight: 800;
    color: var(--navy); letter-spacing: -0.8px;
    line-height: 1.2; margin-bottom: 16px;
}
.page-hero .subtitle {
    font-size: var(--text-md); color: var(--gray-500);
    line-height: 1.7; max-width: 560px; margin: 0 auto;
}

/* ─── SECTION HELPERS ─── */
.section-eyebrow {
    font-size: var(--text-xs); font-weight: 700;
    color: var(--green); letter-spacing: 1.6px;
    text-transform: uppercase; margin-bottom: 10px;
}
.section-title {
    font-size: var(--text-3xl); font-weight: 800;
    color: var(--navy); letter-spacing: -0.6px;
    line-height: 1.2; margin-bottom: 14px;
}
.section-sub {
    font-size: var(--text-md); color: var(--gray-500);
    line-height: 1.75; margin-bottom: 48px;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }

/* ─── BADGE ─── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    color: #0E7A4D;
    font-size: 12.5px; font-weight: 600;
    padding: 5px 13px;
    border-radius: 100px;
    margin-bottom: 20px;
}

/* ─── CARD ─── */
.card {
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: 14px;
    padding: 28px 24px;
    transition: all .2s;
}
.card:hover {
    border-color: var(--green);
    box-shadow: 0 8px 32px rgba(34,181,115,.1);
    transform: translateY(-2px);
}

/* ─── FOOTER ─── */
footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}
.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p {
    font-size: 13.5px; color: var(--gray-500);
    line-height: 1.65; max-width: 260px;
}
.footer-col h4 {
    font-size: 12px; font-weight: 700;
    color: var(--gray-400); letter-spacing: 1.2px;
    text-transform: uppercase; margin-bottom: 16px;
}
.footer-col a {
    display: block;
    font-size: 14px; color: var(--gray-600);
    text-decoration: none; margin-bottom: 10px;
    transition: color .15s;
}
.footer-col a:hover { color: var(--navy); }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    border-top: 1px solid var(--gray-200);
    display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom span { font-size: 13px; color: var(--gray-400); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
    font-size: 13px; color: var(--gray-500);
    text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--navy); }

/* ─── ALERT / NOTICE ─── */
.notice-green {
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    border-radius: 9px;
    padding: 12px 16px;
    font-size: 13.5px;
    color: #0E7A4D;
    font-weight: 500;
}

/* ─── DIVIDER ─── */
.divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 40px 0;
}

/* ─── FORM ELEMENTS ─── */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13.5px; font-weight: 600;
    color: var(--gray-700); margin-bottom: 6px;
}
.form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14.5px;
    color: var(--gray-900);
    background: white;
    outline: none;
    transition: all .15s;
}
.form-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(34,181,115,.1);
}
.form-input::placeholder { color: var(--gray-400); }

/* ─── EMPTY STATE ─── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}
.empty-state svg { margin: 0 auto 16px; display: block; opacity: .4; }
.empty-state h3 { font-size: 17px; color: var(--gray-600); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile First
   ═══════════════════════════════════════════ */

/* Tablet (≤ 900px) */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .section-title { font-size: var(--text-2xl); }
    .page-hero h1  { font-size: var(--text-2xl); }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
    /* Header */
    nav { display: none; }
    .header-inner { gap: 0; justify-content: space-between; padding: 0 16px; }
    .header-actions .btn-ghost { display: none; }

    /* Typography */
    :root {
        --text-3xl: 26px;
        --text-2xl: 22px;
        --text-xl:  20px;
        --text-md:  16px;
    }

    /* Sections */
    .section  { padding: 48px 0; }
    .container { padding: 0 16px; }

    /* Page hero */
    .page-hero { padding: 40px 16px; }
    .page-hero h1 { font-size: 24px; }

    /* Section helpers */
    .section-title { font-size: 24px; letter-spacing: -0.3px; }
    .section-sub   { font-size: 15px; margin-bottom: 32px; }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 16px 28px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px;
    }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }

    /* Cards — full width on mobile */
    .card { padding: 20px 16px; }

    /* Buttons — full width when stacked */
    .btn-green, .btn-navy, .btn-outline-navy { width: 100%; text-align: center; }

    /* Forms */
    .form-group { margin-bottom: 14px; }
}

/* Hamburger menu (mobile nav toggle) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--navy);
}
@media (max-width: 640px) {
    .nav-toggle { display: flex; align-items: center; }
    .mobile-menu {
        display: none;
        position: fixed;
        top: 68px; left: 0; right: 0;
        background: white;
        border-bottom: 1px solid var(--gray-200);
        padding: 16px;
        z-index: 99;
        flex-direction: column;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0,0,0,.08);
    }
    .mobile-menu.open { display: flex; }
    .mobile-menu a {
        display: block;
        padding: 11px 14px;
        font-size: 15px;
        font-weight: 500;
        color: var(--gray-700);
        text-decoration: none;
        border-radius: 8px;
        transition: background .15s;
    }
    .mobile-menu a:hover { background: var(--gray-100); color: var(--navy); }
    .mobile-menu .mobile-divider {
        border: none;
        border-top: 1px solid var(--gray-200);
        margin: 8px 0;
    }
    .mobile-menu .btn-navy {
        width: 100%;
        text-align: center;
        margin-top: 4px;
        padding: 12px;
    }
}
