/*
Theme Name: Esen Rolik Theme
Theme URI: https://esenrolik.com.tr
Author: DeepMind Antigravity
Description: Özel, ultra hızlı ve modern endüstriyel WordPress teması.
Version: 1.4
Text Domain: esenrolik
*/

:root {
    --esen-navy: #0F172A;
    --esen-navy-light: #1E293B;
    --esen-blue: #2563EB;
    --esen-blue-dark: #1D4ED8;
    --esen-green: #059669;
    --esen-amber: #D97706;
    --esen-bg: #FAFAFD;
    --esen-card-bg: #FFFFFF;
    --esen-text: #0F172A;
    --esen-text-muted: #64748B;
    --esen-border: #E2E8F0;
    --esen-radius: 16px;
    --esen-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--esen-text);
    background-color: var(--esen-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--esen-navy);
    line-height: 1.25;
}

a { color: var(--esen-blue); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--esen-blue-dark); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header & Nav */
.esen-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--esen-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.esen-top-bar {
    background: var(--esen-navy);
    color: #94A3B8;
    font-size: 13px;
    padding: 8px 0;
}

.esen-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.esen-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.esen-brand-logo {
    display: flex;
    align-items: center;
}

.esen-main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.esen-main-nav a {
    color: #334155;
    font-weight: 600;
    font-size: 15px;
}

.esen-main-nav a:hover {
    color: var(--esen-blue);
}

.btn-header-quote {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #FFF !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* STRICT 3-COLUMN FLEXBOX GRID - 3 Cards per Row on Desktop */
.esen-grid-3 p, .esen-grid-3 br, .esen-grid-2 p, .esen-grid-4 p {
    display: contents !important;
}

.esen-grid-3 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.esen-grid-3 > div {
    flex: 0 0 calc(33.333% - 14px) !important;
    width: calc(33.333% - 14px) !important;
    max-width: calc(33.333% - 14px) !important;
    box-sizing: border-box !important;
}

.esen-grid-2 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.esen-grid-2 > div {
    flex: 0 0 calc(50% - 12px) !important;
    width: calc(50% - 12px) !important;
    max-width: calc(50% - 12px) !important;
    box-sizing: border-box !important;
}

.esen-grid-4 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.esen-grid-4 > div {
    flex: 0 0 calc(25% - 15px) !important;
    width: calc(25% - 15px) !important;
    max-width: calc(25% - 15px) !important;
    box-sizing: border-box !important;
}

@media (max-width: 991px) {
    .esen-grid-3 > div, .esen-grid-2 > div, .esen-grid-4 > div {
        flex: 0 0 calc(50% - 10px) !important;
        width: calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }
    .esen-main-nav { display: none; }
}

@media (max-width: 600px) {
    .esen-grid-3 > div, .esen-grid-2 > div, .esen-grid-4 > div {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Buttons & Highlights */
.btn-accent, .esen-btn-primary {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
    color: #FFFFFF !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 12px 28px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    transition: all 0.25s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none !important;
}

.btn-accent:hover, .esen-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5) !important;
}

/* Floating Quick Contact Widget */
.esen-floating-contact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.esen-float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.esen-float-wp { background: #25D366; }
.esen-float-phone { background: #2563EB; }
.esen-float-btn:hover { transform: scale(1.1) translateY(-3px); color: #FFF; }
.esen-float-btn svg { width: 26px; height: 26px; fill: currentColor; }

.esen-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
.esen-footer {
    background: var(--esen-navy);
    color: #94A3B8;
    padding: 60px 0 30px 0;
    margin-top: 80px;
}

.esen-footer h4 { color: #FFFFFF !important; margin-bottom: 20px; font-size: 18px; }
.esen-footer a { color: #CBD5E1; }
.esen-footer a:hover { color: #60A5FA; }
