﻿/* ═══════════════════════════════════════════════════
   Emirsoft — site.css  |  Global styles & CSS vars
   ═══════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────── */
:root {
    --navy: #0B1A2E;
    --navy2: #102240;
    --navy3: #183050;
    --accent: #3B82F6;
    --accent2: #7BAEFF;
    --cyan: #22D3EE;
    --gold: #F59E0B;
    --text: #C8D4E8;
    --muted: #7A8FAD;
    --card: #0F1E35;
    --card2: #0C1828;
    --border: rgba(59, 130, 246, 0.14);
    --border-hover: rgba(59, 130, 246, 0.32);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 18px;
    --transition: 0.25s ease;
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--navy);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
}

/* ── Typography ────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.12;
    color: #D8E4F4;
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -2px;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

h4 {
    font-size: 1rem;
    font-weight: 700;
}

p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.78;
}

/* ── Shared section layout ─────────────────────── */
.section {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-full {
    padding: 6rem 0;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent2);
    margin-bottom: .75rem;
    opacity: .85;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -1px;
    color: #D8E4F4;
    margin-bottom: 1.25rem;
    line-height: 1.12;
}

.section-lead {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 580px;
    margin-top: .5rem;
    line-height: 1.78;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Buttons ────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--accent);
    color: #fff;
    padding: .85rem 1.9rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: .9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
}

    .btn-primary:hover {
        background: #2563EB;
        transform: translateY(-1px);
    }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: var(--text);
    padding: .85rem 1.9rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
    white-space: nowrap;
}

    .btn-ghost:hover {
        border-color: var(--accent2);
        color: var(--accent2);
    }

/* ── Tags / badges ──────────────────────────────── */
.tag {
    background: rgba(59, 130, 246, .09);
    border: 1px solid rgba(59, 130, 246, .20);
    color: var(--accent2);
    padding: .25rem .75rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 500;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 1rem;
}

/* ── Partner badge ──────────────────────────────── */
.partner-note {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(245, 158, 11, .07);
    border: 1px solid rgba(245, 158, 11, .20);
    color: #FBB040;
    padding: .2rem .7rem;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 500;
    margin-top: .75rem;
}

/* ── Pulse animation ────────────────────────────── */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

/* ── Alert / feedback ───────────────────────────── */
.alert {
    padding: .85rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    margin-bottom: 1.2rem;
}

.alert-success {
    background: rgba(0, 200, 120, .08);
    border: 1px solid rgba(0, 200, 120, .25);
    color: #4ADE80;
}

.alert-error {
    background: rgba(220, 60, 60, .08);
    border: 1px solid rgba(220, 60, 60, .25);
    color: #F87171;
}

/* ── Visually hidden ────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Alternate section bg ───────────────────────── */
.section-alt {
    background: var(--card2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
    .section {
        padding: 4rem 1.25rem;
    }

    .section-inner {
        padding: 0 1.25rem;
    }

    .section-full {
        padding: 4rem 0;
    }

    h1 {
        letter-spacing: -1px;
    }

    h2 {
        letter-spacing: -.5px;
    }
}

/* ── Başlık typography — canlı, basık değil ─── */
.section-title {
    line-height: 1.08 !important;
    letter-spacing: -1.5px !important;
}

    .section-title br + * {
        display: inline;
    }

h1.hero-title {
    line-height: 1.04 !important;
}

/* Başlıklara hafif gradient — sadece büyük h2'ler */
.hero-title em,
.section-title {
    background: linear-gradient(135deg, #D8E4F4 30%, #7BAEFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Accent em — farklı renk korusun */
.hero-title em {
    background: linear-gradient(135deg, #7BAEFF 0%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Faz 1: Mobil yatay kayma fix ──────────────── */
html {
    overflow-x: hidden;
}

/* Grid'ler dar ekranda taşmasın */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr !important;
    }

    .solutions-grid,
    .solutions-grid-3 {
        grid-template-columns: 1fr !important;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }

    .hero-cta {
        flex-wrap: wrap;
    }

    .btn-primary,
    .btn-ghost {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .process-steps {
        grid-template-columns: 1fr !important;
    }

    .section {
        padding: 3.5rem 1rem;
    }

    .section-inner {
        padding: 0 1rem;
    }
}

/* Footer 5 kolon → 2 → 1 */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr !important;
    }
}

/* ── Insight kartları (ana sayfa) ──────────────── */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.insight-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    transition: border-color .25s, transform .25s;
}

    .insight-card:hover {
        border-color: var(--border-hover);
        transform: translateY(-2px);
    }

.insight-icon {
    font-size: 1.6rem;
    margin-bottom: .25rem;
}

.insight-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #D8E4F4;
    line-height: 1.3;
}

.insight-card p {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
}

.insight-link {
    font-size: .82rem;
    font-weight: 600;
    color: var(--accent2);
    margin-top: .25rem;
}

/* digi-teaser link */
.digi-teaser-link {
    text-decoration: none;
    display: inline-block;
    margin-bottom: .75rem;
}

    .digi-teaser-link:hover .section-tag {
        color: #fff;
    }

@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
}
