/* ============================================================
   Sistem Anahtar - Ana CSS (Yalnızca fold-altı stiller)
   Kritik/fold-üstü stiller: includes/header.php içinde inline
   Bu dosya async yüklenir - LCP/CLS etkilemez
   ============================================================ */

/* CSS custom properties - async yüklemede var() çözümü için */
:root {
    --red: #C8102E;
    --red-dark: #A50D25;
    --red-light: #E8192F;
    --black: #0D0D0D;
    --dark: #1A1A1A;
    --dark-2: #2A2A2A;
    --gray: #6B6B6B;
    --gray-light: #E8E8E8;
    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --font-head: 'Impact', 'Arial Narrow Bold', 'Arial Narrow', 'Arial Black', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --shadow: 0 4px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.18);
    --radius: 6px;
    --transition: 0.25s ease;
}

/* ===== SECTION STYLES ===== */
/* section padding defined in critical-css */
/* defined in critical-css */

/* section styles defined in critical-css */

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    padding: 32px 28px;
    transition: color var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.section-dark .service-card {
    background: var(--dark-2);
    border-color: #333;
}
.section-dark .service-card:hover { border-color: transparent; }

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(200,16,46,0.1);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: var(--red);
    margin-bottom: 20px;
    transition: color var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover .service-icon {
    background: var(--red);
    color: var(--white);
    transform: rotate(-10deg) scale(1.1);
}
.service-card h3 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--dark);
    transition: color var(--transition);
}
.section-dark .service-card h3 { color: var(--white); }
.service-card p { color: var(--gray); font-size: 0.92rem; line-height: 1.6; }
.section-dark .service-card p { color: #bbb; }
.service-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--red);
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 16px;
    transition: gap var(--transition);
}
.service-card:hover .card-link { gap: 10px; }

/* ===== WHY US ===== */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.why-list { display: flex; flex-direction: column; gap: 20px; }
.why-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.why-icon {
    width: 48px;
    height: 48px;
    background: var(--red);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: var(--white);
    flex-shrink: 0;
}
.why-text h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 4px;
}
.why-text p { font-size: 0.9rem; color: #bbb; }

.why-image-box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}
.why-image-box img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
}
.why-image-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--red);
    border-radius: 16px;
    transform: translate(12px, 12px);
    z-index: -1;
}
.badge-24 {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--red);
    color: var(--white);
    padding: 16px;
    border-radius: 50%;
    text-align: center;
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1;
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* ===== REVIEWS ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.review-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    padding: 28px;
    transition: box-shadow var(--transition);
}
.review-card:hover { box-shadow: var(--shadow); }
.review-stars { color: #F5A623; margin-bottom: 14px; }
.review-text { font-size: 0.95rem; color: var(--gray); font-style: italic; margin-bottom: 16px; }
.review-author {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--red);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(0,0,0,0.05) 20px,
        rgba(0,0,0,0.05) 21px
    );
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 32px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--red);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    transition: color var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.btn-white:hover { background: var(--off-white); }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: var(--white);
    border: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.faq-question:hover { background: var(--off-white); }
.faq-question.active { background: var(--dark); color: var(--white); }
.faq-question i { transition: transform var(--transition); flex-shrink: 0; color: var(--red); }
.faq-question.active i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: var(--off-white);
}
.faq-answer.open { max-height: 300px; }
.faq-answer p { padding: 20px 24px; color: var(--gray); line-height: 1.7; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: var(--off-white);
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.88rem;
}
.breadcrumb nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--red); font-weight: 600; }
.breadcrumb i { font-size: 0.7rem; color: var(--gray); }

/* ===== PAGE HERO ===== */
.page-hero {
    background: var(--black);
    padding: 60px 0;
    border-bottom: 3px solid var(--red);
}
.page-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}
.page-hero h1 span { color: var(--red-light); }
.page-hero p { color: #bbb; max-width: 560px; }

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--off-white);
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--red);
}
.contact-card-icon {
    width: 48px;
    height: 48px;
    background: var(--red);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-card h4 {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 4px;
}
.contact-card p, .contact-card a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
}
.contact-card a:hover { color: var(--red); }

/* Contact Form */
.contact-form { background: var(--off-white); padding: 36px; border-radius: 10px; }
.contact-form h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 24px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark);
    background: var(--white);
    transition: border-color var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 130px; }
.btn-submit {
    width: 100%;
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-submit:hover { background: var(--red-light); }

/* ===== FLOATING BUTTONS ===== */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #0f7a32;
    color: var(--white);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(15,122,50,0.4);
    transition: color var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(15,122,50,0.5);
}
.wp-tooltip {
    position: absolute;
    right: 70px;
    background: #0f7a32;
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-family: var(--font-head);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.whatsapp-float:hover .wp-tooltip { opacity: 1; }

.phone-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(200,16,46,0.4);
    animation: pulse 2s infinite;
    transition: transform var(--transition);
}
.phone-float:hover { transform: scale(1.1); animation: none; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(200,16,46,0.4); }
    50% { box-shadow: 0 4px 30px rgba(200,16,46,0.7), 0 0 0 10px rgba(200,16,46,0.1); }
}

/* ===== FOOTER ===== */
.main-footer { background: var(--black); color: var(--white); }
.footer-top { padding: 72px 0 48px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.footer-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--red);
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: var(--white);
}
.footer-logo strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.footer-logo span {
    display: block;
    font-size: 0.72rem;
    color: #ff6b80; /* #E8192F → #ff6b80: koyu zeminde WCAG AA geçer */
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.footer-about p { color: #aaa; font-size: 0.92rem; line-height: 1.7; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
    width: 38px;
    height: 38px;
    background: var(--dark-2);
    color: #ddd;
    border-radius: 8px;
    display: grid;
    place-items: center;
    transition: color var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.footer-socials a:hover { background: var(--red); color: var(--white); }

.footer-heading {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--red);
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #aaa;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.footer-links a i { color: var(--red); font-size: 0.7rem; }
.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: #aaa;
    font-size: 0.9rem;
}
.footer-contact li i { color: var(--red); margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: #aaa; }
.footer-contact a:hover { color: var(--white); }

.footer-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
    transition: color var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.footer-call-btn:hover { background: var(--red-light); }

.footer-bottom {
    border-top: 1px solid #222;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom p { color: #aaa; font-size: 0.85rem; }
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: var(--red-light); }
.footer-bottom-links { display: flex; gap: 12px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease both; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .why-grid { grid-template-columns: 1fr; }
    .why-image-box { display: none; }
}

@media (max-width: 768px) {
    /* topbar, header, hero responsive: critical inline CSS'e taşındı (CLS önleme) */

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid #222;
        background: #111;
        display: none;
    }
    .has-dropdown.open .dropdown { display: block; }

    section { padding: 60px 0; }

    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .cta-btns { flex-direction: column; align-items: center; }

    .phone-float, .whatsapp-float { width: 54px; height: 54px; font-size: 1.4rem; }
}

@media (max-width: 480px) {
    /* hero-btns, btn styles: critical inline CSS'e taşındı */
    .services-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
}

/* ===== ACCESSIBILITY UTILITIES ===== */
.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;
}

/* ===== SCROLL REVEAL =====
   JS .js-ready sınıfı eklenince animasyon aktif olur.
   JS yüklenmeden önce tüm içerik görünür → CLS yok, noscript güvenli */
.js-ready .service-card,
.js-ready .review-card,
.js-ready .why-item,
.js-ready .faq-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready .service-card.visible,
.js-ready .review-card.visible,
.js-ready .why-item.visible,
.js-ready .faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.js-ready .service-card:nth-child(2).visible { transition-delay: 0.1s; }
.js-ready .service-card:nth-child(3).visible { transition-delay: 0.2s; }
.js-ready .service-card:nth-child(4).visible { transition-delay: 0.3s; }
.js-ready .service-card:nth-child(5).visible { transition-delay: 0.4s; }
.js-ready .service-card:nth-child(6).visible { transition-delay: 0.5s; }
