/* ================================================================
 * Yapı Denetim Birliği — Kurumsal Motif CSS
 * Logodaki "yükselen çatı" silüetinden esinlenilmiş desenler.
 * ================================================================ */

:root {
    --corp-primary: #2d338a;
    --corp-primary-dark: #1f2464;
    --corp-accent: #b28929;
}

/* ─── Chevron Pattern (arka plan dokusu) ──────────────────────
 * Logodaki üçgen çatı şeklini SVG data URI ile tile yapıyoruz.
 * Hero ve section arka planlarında %5-10 opaklık ile kullanılır.
 */
.yd-pattern-roof {
    position: relative;
    overflow: hidden;
}
/*
 * Pattern: tek eşit 24° üçgen, tile halinde tekrar eder.
 * Tile 200×50: taban 200, tepe yüksekliği 45 → slope = atan(45/100) = 24.2°
 * Bu tekrar edince sonsuz 6+ eşit üçgenli şerit oluşur.
 */
.yd-pattern-roof::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='50' viewBox='0 0 200 50' fill='none'><path d='M0 48 L100 5 L200 48' stroke='%232d338a' stroke-width='1.4'/></svg>");
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: 200px 50px;
    pointer-events: none;
    z-index: 0;
}
.yd-pattern-roof > * { position: relative; z-index: 1; }

/* Açık renk pattern — koyu arka planlar için */
.yd-pattern-roof-light::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='50' viewBox='0 0 200 50' fill='none'><path d='M0 48 L100 5 L200 48' stroke='%23ffffff' stroke-width='1.4'/></svg>");
    opacity: 0.12;
}

/* ─── Üç Çatı Silueti (dekoratif SVG motif) ──────────────────
 * Bileşen olarak kullanılır, <div class="yd-roofs"></div>
 * Hero section'larda, cards köşelerinde, divider olarak.
 */
.yd-roofs {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    line-height: 0;
}
.yd-roofs svg {
    display: block;
}

/* ─── Section Header Accent ─────────────────────────────────
 * Başlığın üstünde küçük chevron + altında ince aksan çizgi.
 */
.yd-section-head {
    margin-bottom: 32px;
}
.yd-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--corp-primary);
    margin-bottom: 12px;
}
.yd-section-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--corp-primary), transparent);
}
.yd-section-eyebrow svg {
    width: 14px;
    height: 14px;
    color: var(--corp-accent);
}

.yd-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f1419;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}
@media (max-width: 640px) {
    .yd-section-title { font-size: 22px; }
}

.yd-section-sub {
    font-size: 15px;
    color: #667683;
    margin-top: 8px;
    max-width: 640px;
}

/* ─── Footer Divider (chevron separator) ───────────────────
 * Footer üstünde lacivert chevron silueti (kesik dekorasyon).
 */
.yd-footer-divider {
    height: 60px;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 60px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0 60 L150 30 L300 55 L450 25 L600 45 L750 20 L900 40 L1050 15 L1200 35 L1200 60 Z' fill='%232d338a'/></svg>");
}

/* Alternatif: daha belirgin chevron */
.yd-footer-chevrons {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 48px;
    gap: 2px;
    opacity: 0.12;
    margin-bottom: -1px;
}
.yd-footer-chevrons svg {
    height: 100%;
}

/* ─── Card Top Accent ───────────────────────────────────────
 * Kartın üstüne küçük çatı silueti ekler, hover'da büyür.
 */
.yd-card-corporate {
    position: relative;
    background: #fff;
    border: 1px solid #e4e9ed;
    border-radius: 10px;
    padding: 24px;
    transition: transform 200ms, box-shadow 200ms, border-color 200ms;
    overflow: hidden;
}
.yd-card-corporate::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--corp-primary) 0%, var(--corp-primary) 60%, var(--corp-accent) 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.yd-card-corporate:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(45, 51, 138, 0.08), 0 4px 8px rgba(15, 20, 25, 0.04);
    border-color: rgba(45, 51, 138, 0.2);
}
.yd-card-corporate:hover::before {
    transform: scaleX(1);
}

/* ─── Hero Gradient + Pattern ────────────────────────────── */
.yd-hero-corp {
    position: relative;
    background: linear-gradient(135deg, var(--corp-primary) 0%, var(--corp-primary-dark) 100%);
    color: #fff;
    overflow: hidden;
}
.yd-hero-corp::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(178, 137, 41, 0.06) 0%, transparent 40%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='50' viewBox='0 0 200 50' fill='none'><path d='M0 48 L100 5 L200 48' stroke='%23ffffff' stroke-width='1' opacity='0.18'/></svg>");
    background-repeat: no-repeat, no-repeat, repeat-x;
    background-position: 0 0, 0 0, bottom center;
    background-size: auto, auto, 200px 50px;
    pointer-events: none;
}
.yd-hero-corp > * { position: relative; z-index: 1; }

/* ─── Stat Kart Kurumsal ───────────────────────────────────
 * Sayısal istatistik kartları için kurumsal stil.
 */
.yd-stat-corp {
    position: relative;
    padding: 24px;
    background: #fff;
    border: 1px solid #e4e9ed;
    border-radius: 10px;
    overflow: hidden;
}
.yd-stat-corp::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 140px;
    height: 35px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='50' viewBox='0 0 200 50' fill='none'><path d='M0 48 L100 5 L200 48' stroke='%232d338a' stroke-width='1.4'/></svg>");
    background-repeat: repeat-x;
    background-size: 70px 35px;
    background-position: bottom right;
    opacity: 0.12;
}

/* ─── Premium button — chevron hover ────────────────────── */
.yd-btn-corp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    background: var(--corp-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms, box-shadow 180ms, background 180ms;
    box-shadow: 0 2px 6px rgba(45, 51, 138, 0.18);
    position: relative;
    overflow: hidden;
}
.yd-btn-corp::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 600ms;
}
.yd-btn-corp:hover {
    background: var(--corp-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(45, 51, 138, 0.3);
}
.yd-btn-corp:hover::before {
    transform: translateX(100%);
}

.yd-btn-corp-outline {
    background: transparent;
    color: var(--corp-primary);
    border: 1.5px solid var(--corp-primary);
    box-shadow: none;
}
.yd-btn-corp-outline:hover {
    background: var(--corp-primary);
    color: #fff;
}
