/* ===================================================
   Gökçelik Sigorta — Premium Corporate Styles
   =================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Tam genişlik kullanan bloklar — viewport genişliğine taşır, alanı tam kaplar */
.wp-block-gokceliksigorta-trust-strip,
.wp-block-gokceliksigorta-hero-slider,
.wp-block-gokceliksigorta-partners-marquee {
    max-width: none !important;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

::selection { background: #002768; color: #fff; }

/* Sayfa başlığı — eklenen reset’ten etkilenmesin, eski belirgin stilde kalsın */
.entry-header .entry-title,
.wp-block-post-title,
.custom-content .wp-block-post-title,
h1.wp-block-post-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
    margin-top: 0;
    margin-bottom: 0.5em;
}
@media (min-width: 768px) {
    .entry-header .entry-title,
    .wp-block-post-title,
    .custom-content .wp-block-post-title,
    h1.wp-block-post-title {
        font-size: 2.25rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #002768; border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: #001c4d; }

/* ---- HEADER SCROLL STATE ---- */
.header-scrolled {
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 24px rgba(0,39,104,.04);
    border-bottom: 1px solid rgba(0,0,0,.04);
}

/* ---- HERO SLIDES ---- */
.hero-slide {
    opacity: 0;
    z-index: 0;
}
.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Slide Content */
.slide-content {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
    pointer-events: none;
    z-index: 0;
}
.slide-content.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 1;
}

/* ---- SLIDER DOTS ---- */
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 100px;
    background: rgba(255,255,255,.35);
    border: none;
    cursor: pointer;
    transition: all .4s ease;
}
.slider-dot.active {
    width: 32px;
    background: #fff;
}

/* ---- QUOTE FORM on Hero ---- */
.quote-form-enter {
    animation: formSlideIn .9s cubic-bezier(.16,1,.3,1) forwards;
    animation-delay: .3s;
    opacity: 0;
    transform: translateY(24px);
}
@keyframes formSlideIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 1.1rem;
    padding-right: 2.5rem;
}

/* ---- MARQUEE ---- */
.marquee-wrapper {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
    display: flex;
    gap: 1.5rem;
    animation: marquee 35s linear infinite;
    width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { flex-shrink: 0; }
.partner-card {
    background: #fff;
    border-radius: 1rem;
    padding: 0.5rem 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    min-width: 180px;
    transition: all .3s ease;
}
.partner-card:hover {
    box-shadow: 0 8px 24px rgba(0,39,104,.06);
    border-color: #d4ddef;
}

/* Partner logos: grayscale by default, color on hover */
.partner-logo {
    filter: grayscale(100%);
    opacity: .5;
    transition: filter .3s ease, opacity .3s ease;
}
.partner-card:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- FLOATING CARDS ---- */
.floating-card {
    animation: float 4s ease-in-out infinite;
}
.floating-card-2 {
    animation: float 4s ease-in-out infinite;
    animation-delay: 1s;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---- REVEAL ON SCROLL ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s cubic-bezier(.25,.46,.45,.94), transform .8s cubic-bezier(.25,.46,.45,.94);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal[data-delay="100"] { transition-delay: .1s; }
.reveal[data-delay="200"] { transition-delay: .2s; }
.reveal[data-delay="300"] { transition-delay: .3s; }

/* ---- SERVICE CARD HOVER ---- */
.service-card > div {
    transition: box-shadow .35s ease, border-color .35s ease, transform .35s ease;
}
.service-card:hover > div {
    box-shadow: 0 8px 32px rgba(0,39,104,.08);
    border-color: rgba(0,39,104,.1) !important;
    transform: translateY(-2px);
}

/* ---- WhatsApp Pulse ---- */
.whatsapp-pulse {
    position: relative;
}
.whatsapp-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: #22c55e;
    opacity: 0;
    animation: waPulse 2s ease-in-out infinite;
}
@keyframes waPulse {
    0% { transform: scale(1); opacity: .4; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ---- BACK TO TOP ---- */
#backToTop.show { display: flex !important; }

/* ---- MODAL ---- */
#successModal.show { opacity: 1 !important; }
#successModal.show #modalContent { transform: scale(1) !important; }

/* ---- NAV DROPDOWN ---- */
.mega-dropdown {
    transform: translateY(8px);
}
.group\/nav:hover .mega-dropdown {
    transform: translateY(0);
}
.group\/nav > div:last-child {
    transition: opacity .2s cubic-bezier(.4,0,.2,1), visibility .2s cubic-bezier(.4,0,.2,1), transform .25s cubic-bezier(.4,0,.2,1);
}

/* Diğer alt menüler (mega olmayan): hover'da görünsün */
#header nav .menu-item-has-children {
    position: relative;
}
#header nav .menu-item-has-children .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    transform: translateY(8px);
    z-index: 50;
    list-style: none;
}
#header nav .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#header nav .menu-item-has-children .sub-menu .menu-item {
    margin: 0;
}
#header nav .menu-item-has-children .sub-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    transition: color .2s, background .2s;
}
#header nav .menu-item-has-children .sub-menu a:hover {
    color: #002768;
    background: rgba(0,39,104,.06);
}
/* Hizmetlerimiz mega parent'ında .sub-menu yok, .grid var; bu stiller sadece .menu-item-has-children .sub-menu'ya uygulanır */

/* ---- NAV ACTIVE ---- */
.nav-link.active { color: #002768; }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: #002768;
    border-radius: 100px;
}
.nav-link {
    position: relative;
}
.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 16px;
    height: 2px;
    background: #002768;
    border-radius: 100px;
    transition: transform .2s ease;
}
.nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}
.nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* ---- FAQ ACCORDION ---- */
.faq-item {
    transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item.faq-active {
    border-color: #d4ddef;
    box-shadow: 0 4px 16px rgba(0,39,104,.04);
}

/* ---- SECTION CARD LIFT ---- */
.card-lift {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.03);
    border-color: transparent !important;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .marquee-track { animation-duration: 20s; }
}

/* Hizmetlerimiz bölümü — özet max 2 satır */
#hizmetlerimiz .service-card p.text-gray-400 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog sidebar — başlık max 2 satır */
.sidebar-blog-post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- ACCESSIBILITY ---- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid #002768;
    outline-offset: 2px;
}

/* ---- PRINT ---- */
@media print {
    #topbar, #header, .fixed, #backToTop, #successModal, .whatsapp-pulse { display: none !important; }
}

/* ===================================================
   SAYFA İÇERİĞİ — entry-content (Gutenberg + klasik)
   Başlıklar, paragraf, liste, tablo vb. okunurluk ve tasarım
   =================================================== */

.custom-content {
    color: #374151;
    font-size: 1rem;
    line-height: 1.7;
    word-wrap: break-word;
}

/* ---- BAŞLIKLAR ---- */
.custom-content h2,
.custom-content .wp-block-heading h2,
.custom-content h2.wp-block-heading {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    margin-top: 0;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
@media (min-width: 768px) {
    .custom-content h2,
    .custom-content .wp-block-heading h2,
    .custom-content h2.wp-block-heading {
        font-size: 1.75rem;
        margin-top: 0;
        margin-bottom: 1rem;
    }
}

.custom-content h3,
.custom-content .wp-block-heading h3,
.custom-content h3.wp-block-heading {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
@media (min-width: 768px) {
    .custom-content h3,
    .custom-content .wp-block-heading h3,
    .custom-content h3.wp-block-heading {
        font-size: 1.375rem;
        margin-top: 2rem;
    }
}

.custom-content h4,
.custom-content .wp-block-heading h4,
.custom-content h4.wp-block-heading {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
    .custom-content h4,
    .custom-content .wp-block-heading h4,
    .custom-content h4.wp-block-heading {
        font-size: 1.25rem;
    }
}

.custom-content h5,
.custom-content .wp-block-heading h5,
.custom-content h5.wp-block-heading {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    color: #374151;
    margin-top: 1.25rem;
    margin-bottom: 0.375rem;
}

.custom-content h6,
.custom-content .wp-block-heading h6,
.custom-content h6.wp-block-heading {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    color: #4b5563;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

/* ---- PARAGRAF ---- */
.custom-content p,
.custom-content .wp-block-paragraph {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.75;
    color: #374151;
}
.custom-content p:last-child,
.custom-content .wp-block-paragraph:last-child { margin-bottom: 0; }

/* ---- LİSTELER ---- */
.custom-content ul,
.custom-content .wp-block-list ul,
.custom-content ol,
.custom-content .wp-block-list ol {
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    line-height: 1.7;
    color: #374151;
}
.custom-content ul,
.custom-content .wp-block-list ul { list-style-type: disc; }
.custom-content ol,
.custom-content .wp-block-list ol { list-style-type: decimal; }
.custom-content ul ul,
.custom-content ul ol,
.custom-content ol ul,
.custom-content ol ol {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    padding-left: 1.25rem;
}
.custom-content li {
    margin-bottom: 0.35rem;
}
.custom-content li:last-child { margin-bottom: 0; }
/* Gutenberg list block wrapper */
.custom-content .wp-block-list {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

/* ---- LİNKLER ---- */
.custom-content a {
    color: #002768;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 39, 104, 0.25);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.custom-content a:hover {
    color: #001c4d;
    border-bottom-color: #002768;
}

/* ---- ALINTI ---- */
.custom-content blockquote,
.custom-content .wp-block-quote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem 1rem 1.5rem;
    border-left: 4px solid #002768;
    background: rgba(0, 39, 104, 0.04);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
    line-height: 1.7;
}
.custom-content .wp-block-quote cite,
.custom-content blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-style: normal;
    color: #6b7280;
}

/* ---- TABLO ---- */
.custom-content table,
.custom-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #374151;
}
.custom-content th,
.custom-content td,
.custom-content .wp-block-table th,
.custom-content .wp-block-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}
.custom-content th,
.custom-content .wp-block-table th {
    background: rgba(0, 39, 104, 0.06);
    font-weight: 600;
    color: #111827;
}
.custom-content tr:nth-child(even) td,
.custom-content .wp-block-table tbody tr:nth-child(even) td {
    background: #f9fafb;
}
.custom-content .wp-block-table figcaption {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
    text-align: center;
}

/* ---- KOD / PRE ---- */
.custom-content code,
.custom-content kbd {
    padding: 0.2em 0.4em;
    font-size: 0.875em;
    font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;
    background: #f3f4f6;
    border-radius: 4px;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}
.custom-content pre,
.custom-content .wp-block-code pre {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
    background: #1f2937;
    color: #e5e7eb;
    border-radius: 8px;
    border: 1px solid #374151;
}
.custom-content pre code,
.custom-content .wp-block-code code {
    padding: 0;
    font-size: inherit;
    background: none;
    border: none;
    color: inherit;
}

/* ---- AYIRICI ---- */
.custom-content hr,
.custom-content .wp-block-separator {
    margin: 2rem 0;
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
}
.custom-content .wp-block-separator.is-style-wide { width: 100%; }
.custom-content .wp-block-separator.is-style-dots {
    height: auto;
    background: none;
    text-align: center;
    line-height: 1;
}
.custom-content .wp-block-separator.is-style-dots::before {
    content: '···';
    font-size: 1.25rem;
    letter-spacing: 0.5em;
    color: #d1d5db;
}

/* ---- GÖRSEL ---- */
.custom-content img,
.custom-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-radius: 8px;
}
.custom-content .wp-block-image {
    margin: 1.5rem 0;
}
.custom-content .wp-block-image figcaption,
.custom-content figure figcaption {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.4;
}

/* ---- GUTENBERG BLOK BOŞLUKLARI ---- */
.custom-content .wp-block-paragraph + .wp-block-heading,
.custom-content p + h3,
.custom-content p + h4, .custom-content p + h5 {
    margin-top: 1.75rem;
}
.custom-content p + h2 {
    margin-top: 0;
}
.custom-content .wp-block-heading + .wp-block-paragraph,
.custom-content h2 + p, .custom-content h3 + p,
.custom-content h4 + p, .custom-content h5 + p {
    margin-top: 0.75rem;
}
.custom-content .wp-block-list + .wp-block-paragraph,
.custom-content ul + p, .custom-content ol + p {
    margin-top: 1rem;
}
.custom-content .wp-block-image + .wp-block-paragraph,
.custom-content .wp-block-image + p {
    margin-top: 1rem;
}
.custom-content .wp-block-table + .wp-block-paragraph,
.custom-content table + p {
    margin-top: 1rem;
}

/* İletişim sayfası harita alanı */
.contact-map-wrap {
    position: relative;
}
.contact-map-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}
