/**
 * ============================================================
 * Anadolu Birlik Sigorta — Ana Stil Dosyası (main.css)
 * ============================================================
 * Design Tokens, Reset, Tipografi, Layout ve global bileşenler
 */

/* ═══════════════ CSS CUSTOM PROPERTIES (DESIGN TOKENS) ═══════════════ */
:root {
    /* Renk Paleti — Logo bazlı: Lacivert + Altın */
    --color-gold:          #D4AF37;
    --color-gold-light:    #E8CC6E;
    --color-gold-dark:     #B8960C;
    --color-gold-subtle:   rgba(212, 175, 55, 0.08);
    --color-gold-glow:     rgba(212, 175, 55, 0.25);

    --color-white:         #FFFFFF;
    --color-cream:         #F4F6FA;
    --color-ivory:         #EDF0F7;

    /* Lacivert (Navy Blue) — Logodaki koyu mavi arka plan */
    --color-anthracite:    #1B2D50;     /* Ana lacivert — başlıklar, metin */
    --color-charcoal:      #0F1D38;     /* Koyu lacivert — arka planlar */
    --color-navy:          #1B2D50;     /* Logo arka plan rengi */
    --color-navy-dark:     #0A1628;     /* En koyu navy ton */
    --color-navy-light:    #253A5C;     /* Açık navy ton */
    --color-gray:          #5A6B85;     /* Mavi-gri — ikincil metin */
    --color-gray-light:    #CED4E0;     /* Açık mavi-gri — kenarlıklar */
    --color-gray-muted:    #8494AC;     /* Gümüş mavi — soluk metin */

    --color-success:       #2ECC71;
    --color-danger:        #E74C3C;
    --color-info:          #3498DB;
    --color-warning:       #F39C12;

    /* Gradient'ler — Lacivert bazlı */
    --gradient-gold:       linear-gradient(135deg, #D4AF37 0%, #E8CC6E 50%, #D4AF37 100%);
    --gradient-dark:       linear-gradient(135deg, #0F1D38 0%, #1B2D50 100%);
    --gradient-hero:       linear-gradient(160deg, #0A1628 0%, #152747 45%, #1B2D50 100%);
    --gradient-cta:        linear-gradient(135deg, #1B2D50 0%, #0F1D38 50%, #162845 100%);

    /* Tipografi */
    --font-primary:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display:        'Playfair Display', 'Georgia', serif;

    --fs-xs:    0.75rem;     /* 12px */
    --fs-sm:    0.875rem;    /* 14px */
    --fs-base:  1rem;        /* 16px */
    --fs-md:    1.125rem;    /* 18px */
    --fs-lg:    1.25rem;     /* 20px */
    --fs-xl:    1.5rem;      /* 24px */
    --fs-2xl:   2rem;        /* 32px */
    --fs-3xl:   2.5rem;      /* 40px */
    --fs-4xl:   3.5rem;      /* 56px */
    --fs-hero:  4.5rem;      /* 72px */

    --fw-light:    300;
    --fw-regular:  400;
    --fw-medium:   500;
    --fw-semibold: 600;
    --fw-bold:     700;
    --fw-extrabold:800;

    --lh-tight:    1.2;
    --lh-normal:   1.6;
    --lh-relaxed:  1.8;

    /* Spacing */
    --space-xs:    0.5rem;
    --space-sm:    0.75rem;
    --space-md:    1rem;
    --space-lg:    1.5rem;
    --space-xl:    2rem;
    --space-2xl:   3rem;
    --space-3xl:   4rem;
    --space-4xl:   6rem;
    --space-5xl:   8rem;

    /* Radius */
    --radius-sm:   0.375rem;
    --radius-md:   0.5rem;
    --radius-lg:   0.75rem;
    --radius-xl:   1rem;
    --radius-2xl:  1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md:   0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-lg:   0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
    --shadow-xl:   0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);

    /* Transitions */
    --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index scale */
    --z-dropdown:  100;
    --z-sticky:    200;
    --z-header:    300;
    --z-overlay:   290; /* Header'ın (300) altında olmalı ki menü etkileşimi kesilmesin */
    --z-modal:     500;
    --z-toast:     600;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* Header yüksekliği */
    --header-height: 80px;
    --topbar-height: 40px;
}

/* ═══════════════ CSS RESET ═══════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--color-anthracite);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ═══════════════ LAYOUT ═══════════════ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ═══════════════ TİPOGRAFİ YARDIMCILARI ═══════════════ */
.text-gold    { color: var(--color-gold); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.fw-bold      { font-weight: var(--fw-bold); }
.fw-semibold  { font-weight: var(--fw-semibold); }

/* ═══════════════ TOP BAR ═══════════════ */
.top-bar {
    background: var(--color-charcoal);
    color: var(--color-white);
    font-size: var(--fs-sm);
    height: var(--topbar-height);
    display: flex;
    align-items: center;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar__left {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.top-bar__link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-gray-light);
    transition: color var(--transition-fast);
}

.top-bar__link:hover {
    color: var(--color-gold-light);
}

.top-bar__badge {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: var(--fw-semibold);
    font-size: var(--fs-xs);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ═══════════════ HEADER ═══════════════ */
.header {
    background: var(--color-white);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), background var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header__logo-img {
    height: 72px; /* Logo büyütüldü */
    width: auto;
}

.header__logo-text {
    display: flex;
    flex-direction: column;
    line-height: var(--lh-tight);
}

.header__brand {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-anthracite);
}

.header__sub {
    font-size: var(--fs-sm);
    color: var(--color-gold);
    font-weight: var(--fw-semibold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ═══════════════ NAVİGASYON ═══════════════ */
.nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav__link {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-anthracite);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width var(--transition-base);
    border-radius: var(--radius-full);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 60%;
}

.nav__link:hover {
    color: var(--color-gold-dark);
}

.nav__link.active {
    color: var(--color-gold-dark);
    font-weight: var(--fw-semibold);
}

/* CTA Nav butonu */
.nav__link--cta {
    background: var(--gradient-gold);
    color: var(--color-charcoal) !important;
    font-weight: var(--fw-semibold) !important;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-gold);
    transition: all var(--transition-base);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

/* Hamburger */
.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
    z-index: calc(var(--z-overlay) + 101); /* Nav panelinin (overlay+100) üstünde — menü açıkken kapatılabilir */
}

.header__hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-anthracite);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.header__hamburger.open .header__hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__hamburger.open .header__hamburger-line:nth-child(2) {
    opacity: 0;
}

.header__hamburger.open .header__hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════ HERO BÖLÜMÜ ═══════════════ */
.hero {
    background: var(--gradient-hero);
    color: var(--color-white);
    padding: var(--space-3xl) 0; /* Boşluk azaltıldı */
    position: relative;
    overflow: hidden;
    min-height: 80vh; /* Bir miktar daraltıldı */
    display: flex;
    align-items: center;
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-gold-light);
    margin-bottom: var(--space-lg);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--fs-hero);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-lg);
}

.hero__title-accent {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: var(--fs-md);
    line-height: var(--lh-relaxed);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-2xl);
    max-width: 540px;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

/* Hero İstatistikler */
.hero__stats {
    display: flex;
    gap: var(--space-2xl);
}

.hero__stat {
    display: flex;
    flex-direction: column;
}

.hero__stat-value {
    display: flex;
    align-items: baseline;
    white-space: nowrap;
    line-height: 1;
}

.hero__stat-number {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-extrabold);
    color: var(--color-gold);
    line-height: 1;
}

.hero__stat-suffix {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--color-gold);
    line-height: 1;
    margin-left: 2px;
}

.hero__stat-label {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.4rem;
}
/* Hero Servis Izgarası — Kurumsal Kare Tasarım */
.hero__service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px; /* Boşluk azaltıldı (16px -> 12px) */
    width: 100%;
    max-width: 480px;
}

.hero__service-card {
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1;
    background: var(--color-anthracite);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    text-align: left;
    justify-content: flex-end; /* İçeriği alta yasla */
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.hero__service-image-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__service-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
                rgba(15, 29, 56, 0.95) 0%, 
                rgba(15, 29, 56, 0.6) 50%, 
                rgba(15, 29, 56, 0.2) 100%);
    z-index: 1;
}

.hero__service-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--color-gold);
}

.hero__service-card:hover .hero__service-image-wrap {
    transform: scale(1.1);
}

.hero__service-body {
    position: relative;
    z-index: 2;
    transition: transform var(--transition-base);
}

.hero__service-card:hover .hero__service-body {
    transform: translateY(-5px);
}

.hero__service-title {
    font-size: 16px;
    font-weight: var(--fw-bold);
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero__service-desc {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gold-light);
    font-weight: var(--fw-bold);
    opacity: 0.9;
}

.hero__service-desc {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: var(--fw-semibold);
}

@media (max-width: 992px) {
    .hero__service-grid {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .hero__service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    .hero__service-icon { font-size: 2rem; }
    .hero__service-title { font-size: 13px; }
}

/* ═══════════════ SECTION HEADER ═══════════════ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header__badge {
    display: inline-block;
    background: var(--color-gold-subtle);
    color: var(--color-gold-dark);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-md);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-header__title {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--color-anthracite);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-md);
}

.section-header__desc {
    font-size: var(--fs-md);
    color: var(--color-gray);
    line-height: var(--lh-relaxed);
}

/* ═══════════════ FEATURES ═══════════════ */
.features {
    padding: var(--space-3xl) 0; /* 8rem -> 4rem seviyesine çekildi */
    background: var(--color-cream);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: var(--color-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-light);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(212, 175, 55, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    color: var(--color-gold);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-card__icon {
    background: var(--color-gold);
    color: var(--color-white);
}

.feature-card__title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-anthracite);
    margin-bottom: var(--space-xs);
}

.feature-card__desc {
    font-size: var(--fs-sm);
    color: var(--color-gray);
    line-height: var(--lh-relaxed);
}

/* ═══════════════ CTA SECTION ═══════════════ */
.cta-section {
    background: var(--gradient-cta);
    padding: var(--space-3xl) 0; /* 8rem -> 4rem seviyesine çekildi */
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section__content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-section__title {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.cta-section__desc {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-2xl);
}

/* ═══════════════ FOOTER ═══════════════ */
.footer__main {
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-2xl);
}

.footer__logo-img {
    height: 85px; /* Footer logo büyütüldü */
    width: auto;
    margin-bottom: var(--space-lg);
}

.footer__desc {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.6);
    line-height: var(--lh-relaxed);
}

.footer__heading {
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: var(--color-gold-light);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-gold);
    border-radius: var(--radius-full);
}

.footer__links li {
    margin-bottom: var(--space-xs);
}

.footer__links a {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.footer__links a:hover {
    color: var(--color-gold-light);
    transform: translateX(4px);
}

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.6);
}

.footer__contact svg {
    color: var(--color-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer__contact a {
    color: rgba(255, 255, 255, 0.6);
}

.footer__contact a:hover {
    color: var(--color-gold-light);
}

.footer__bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-lg) 0;
}

.footer__bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-sm);
    color: #000080; /* Navy Blue */
    font-weight: 600;
}

.footer__bottom-links {
    display: flex;
    gap: var(--space-lg);
}

.footer__bottom-links a {
    color: #000080; /* Navy Blue */
    transition: color var(--transition-fast);
}

.footer__bottom-links a:hover {
    color: var(--color-gold-light);
}

/* ═══════════════ ANİMASYONLAR ═══════════════ */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in:nth-child(2) { animation-delay: 0.15s; }
.animate-fade-in:nth-child(3) { animation-delay: 0.3s; }
.animate-fade-in:nth-child(4) { animation-delay: 0.45s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
