/* Akademi Hukuk — kurumsal palet (koyu lacivert + logo #f28c38) */
::selection {
    background: rgba(242, 140, 56, 0.3);
    color: #fff;
}

:root {
    --brand-50: #fef7f0;
    --brand-100: #fdecd8;
    --brand-200: #fad5b0;
    --brand-300: #fbbf7a;
    --brand-400: #f5a623;
    --brand-500: #f28c38;
    --brand-600: #e07a28;
    --brand-700: #c46520;

    --navy-950: #0f0d0c;
    --navy-900: #1a1716;
    --navy-800: #252220;
    --navy-700: #3a3532;

    --surface: #f4f3f1;
    --surface-card: #ffffff;
    --ink: #1a1716;
    --ink-muted: #64748b;
}

html {
    overflow-x: clip;
}

body {
    background-color: var(--surface);
    overflow-x: clip;
}

.parallax-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.parallax-fixed {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .parallax-fixed {
        background-attachment: scroll;
    }
}

.parallax-layer {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Hero — ilk tasarım: dengeli koyu örtü, fotoğraf hafif görünür */
.hero-gradient {
    background: linear-gradient(
        105deg,
        rgba(26, 23, 22, 0.9) 0%,
        rgba(26, 23, 22, 0.78) 42%,
        rgba(37, 34, 32, 0.62) 100%
    );
}

.page-hero-overlay {
    background: linear-gradient(
        105deg,
        rgba(26, 23, 22, 0.82) 0%,
        rgba(26, 23, 22, 0.68) 100%
    );
}

.section-muted {
    background-color: var(--surface);
}

.section-panel {
    background-color: var(--surface-card);
}

.brand-line::after,
.gold-line::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
    margin-top: 0.75rem;
    border-radius: 2px;
}

.brand-line-center::after,
.gold-line-center::after {
    margin-left: auto;
    margin-right: auto;
}

.card-lift {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px -10px rgba(15, 13, 12, 0.18);
}

.img-zoom {
    transition: transform 0.6s ease;
}

.group:hover .img-zoom {
    transform: scale(1.05);
}

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Menü — hero üstünde şeffaf; kaydırınca koyu kurumsal */
#site-nav.nav-transparent {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

#site-nav.nav-transparent .nav-brand {
    color: #fff;
}

#site-nav.nav-transparent .nav-tagline {
    color: #94a3b8;
}

#site-nav.nav-transparent .nav-link {
    color: #e2e8f0;
}

#site-nav.nav-transparent .nav-link:hover,
#site-nav.nav-transparent .nav-link.is-active {
    color: var(--brand-400);
}

#site-nav.nav-transparent .nav-menu-btn {
    color: #fff;
}

#site-nav.nav-scrolled {
    background: rgba(26, 23, 22, 0.97) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(242, 140, 56, 0.12) !important;
    box-shadow: 0 4px 24px rgba(15, 13, 12, 0.2) !important;
}

#site-nav.nav-scrolled .nav-brand {
    color: #fff;
}

#site-nav.nav-scrolled .nav-brand:hover {
    color: var(--brand-300);
}

#site-nav.nav-scrolled .nav-tagline {
    color: #94a3b8;
}

#site-nav.nav-scrolled .nav-link {
    color: #cbd5e1;
}

#site-nav.nav-scrolled .nav-link:hover,
#site-nav.nav-scrolled .nav-link.is-active {
    color: var(--brand-400);
}

#site-nav.nav-scrolled .nav-menu-btn {
    color: #fff;
}

#site-nav .nav-mobile-panel {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(26, 23, 22, 0.98);
}

.stat-number {
    font-variant-numeric: tabular-nums;
}

.expertise-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(242, 140, 56, 0.1);
    color: var(--brand-600);
    flex-shrink: 0;
}

.overlay-corporate {
    background: linear-gradient(
        to top,
        rgba(26, 23, 22, 0.92) 0%,
        rgba(26, 23, 22, 0.45) 55%,
        transparent 100%
    );
}

/* CV / Özgeçmiş */
.cv-document {
    background: var(--surface-card);
    border: 1px solid #e2e8f0;
    border-radius: 2px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1px 3px rgba(26, 23, 22, 0.05);
}

@media (min-width: 640px) {
    .cv-document {
        padding: 2rem 2.25rem;
    }
}

.cv-section + .cv-section {
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.cv-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cv-section-title::before {
    content: '';
    width: 4px;
    height: 1.25rem;
    background: linear-gradient(180deg, var(--brand-500), var(--brand-300));
    border-radius: 1px;
    flex-shrink: 0;
}

.cv-item {
    position: relative;
    padding-left: 1.25rem;
}

.cv-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-500);
}

/* Blog içerik */
.blog-content {
    color: #475569;
    line-height: 1.75;
}

.blog-content h2,
.blog-content h3 {
    color: var(--ink);
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-content h2 {
    font-size: 1.75rem;
}

.blog-content h3 {
    font-size: 1.35rem;
}

.blog-content p {
    margin-bottom: 1.25rem;
}

.blog-content a {
    color: var(--brand-600);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-content a:hover {
    color: var(--brand-500);
}

.blog-content ul,
.blog-content ol {
    margin: 1rem 0 1.25rem 1.25rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content blockquote {
    border-left: 3px solid var(--brand-500);
    padding: 1rem 1rem 1rem 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--ink-muted);
    background: var(--brand-50);
    border-radius: 0 4px 4px 0;
}

.blog-content strong {
    color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand-500) !important;
    --tw-ring-color: rgba(242, 140, 56, 0.25);
}

.contact-map {
    position: relative;
    aspect-ratio: 21 / 9;
    min-height: 280px;
}

@media (max-width: 768px) {
    .contact-map {
        aspect-ratio: 4 / 3;
        min-height: 260px;
    }
}

.contact-map__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* İmza / kalem yükleme animasyonu */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.is-loading {
    overflow: hidden;
}

html.skip-intro-loader body.is-loading {
    overflow: auto;
}

html.skip-intro-loader #site-loader {
    display: none !important;
}

.site-loader__inner {
    text-align: center;
    padding: 2rem;
    max-width: 22rem;
}

.site-loader__emblem-wrap {
    position: relative;
    width: 6rem;
    height: 6rem;
    margin: 0 auto;
}

.site-loader__logo-final {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    animation: logo-final-in 0.45s ease 2s forwards;
}

.site-loader__svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    filter: drop-shadow(0 4px 18px rgba(242, 140, 56, 0.28));
    animation: emblem-svg-out 0.35s ease 2.05s forwards;
}

.site-loader__shape {
    stroke: var(--brand-500);
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: var(--brand-500);
    fill-opacity: 0;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation:
        emblem-draw 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        emblem-fill-in 0.3s ease forwards;
}

.site-loader__shape--nib {
    stroke-width: 2.2;
    animation-delay: 0.1s, 0.95s;
    animation-duration: 1s, 0.3s;
}

.site-loader__shape--slit {
    stroke-width: 1.4;
    fill: none;
    animation-delay: 0.85s, 999s;
    animation-duration: 0.35s, 0s;
}

.site-loader__shape--beam {
    stroke-width: 2;
    fill: none;
    animation-delay: 0.75s, 999s;
    animation-duration: 0.4s, 0s;
}

.site-loader__shape--scale-l,
.site-loader__shape--scale-r {
    stroke-width: 1.6;
    fill: none;
    animation-delay: 1s, 999s;
    animation-duration: 0.55s, 0s;
}

.site-loader__shape--crescent {
    stroke-width: 1.4;
    animation-delay: 1.45s, 1.75s;
    animation-duration: 0.4s, 0.25s;
}

.site-loader__shape--star {
    stroke-width: 1.25;
    animation-delay: 1.7s, 1.9s;
    animation-duration: 0.35s, 0.2s;
}

.site-loader__shape--cutout {
    stroke: var(--navy-950);
    fill: var(--navy-900);
}

.site-loader__pen {
    opacity: 0;
    animation: loader-pen-nib 1s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
    -webkit-offset-path: path('M 50 7 L 57.5 26 L 55.5 64 L 50 80 L 44.5 64 L 42.5 26 Z');
    offset-path: path('M 50 7 L 57.5 26 L 55.5 64 L 50 80 L 44.5 64 L 42.5 26 Z');
    offset-distance: 0%;
    offset-rotate: auto;
}

.site-loader__pen-dot {
    filter: drop-shadow(0 0 4px rgba(242, 140, 56, 0.85));
}

@keyframes emblem-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes emblem-fill-in {
    to {
        fill-opacity: 1;
    }
}

@keyframes logo-final-in {
    to {
        opacity: 1;
    }
}

@keyframes emblem-svg-out {
    to {
        opacity: 0;
    }
}

@keyframes loader-pen-nib {
    0% {
        opacity: 1;
        offset-distance: 0%;
    }
    88% {
        opacity: 1;
        offset-distance: 100%;
    }
    100% {
        opacity: 0;
        offset-distance: 100%;
    }
}

.site-loader__name {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.04em;
    opacity: 0;
    animation: loader-fade-up 0.5s ease 2.2s forwards;
}

.site-loader__tagline {
    margin-top: 0.4rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: #64748b;
    opacity: 0;
    animation: loader-fade-up 0.45s ease 2.45s forwards;
}

@keyframes loader-fade-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.seo-content h2 {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.seo-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.seo-content p,
.seo-content li {
    color: var(--ink-muted);
    line-height: 1.75;
}

.seo-content p {
    margin-bottom: 1rem;
}

.seo-content ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.seo-content a {
    color: var(--brand-600);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .site-loader {
        display: none !important;
    }

    body.is-loading {
        overflow: auto;
    }

    .wp-widget__toggle-pulse,
    .wp-widget__item,
    .wp-widget__intro,
    .contact-dock__btn-glow {
        animation: none !important;
        transition: none !important;
    }
}

/* Floating contact dock (Instagram + WhatsApp) */
.contact-dock {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 70;
}

@media (min-width: 640px) {
    .contact-dock {
        right: 1.5rem;
        bottom: 1.5rem;
    }
}

.contact-dock__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.contact-dock__solo {
    display: block;
}

.contact-dock__btn {
    position: relative;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    color: #fff;
    text-decoration: none;
    box-shadow:
        0 8px 20px rgba(15, 13, 12, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.14) inset;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

@media (min-width: 640px) {
    .contact-dock__btn {
        width: 3.5rem;
        height: 3.5rem;
    }
}

.contact-dock__btn:hover {
    transform: translateY(-2px);
}

.contact-dock__btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.contact-dock__btn--instagram {
    background: linear-gradient(
        135deg,
        #f9ce34 0%,
        #ee2a7b 45%,
        #6228d7 100%
    );
}

.contact-dock__btn--instagram:hover {
    box-shadow:
        0 14px 30px rgba(188, 24, 136, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.contact-dock__btn-glow {
    position: absolute;
    inset: -5px;
    border-radius: 9999px;
    background: linear-gradient(
        135deg,
        rgba(249, 206, 52, 0.45),
        rgba(238, 42, 123, 0.35),
        rgba(98, 40, 215, 0.4)
    );
    filter: blur(8px);
    opacity: 0.55;
    z-index: -1;
    transition: opacity 0.22s ease;
}

.contact-dock__btn--instagram:hover .contact-dock__btn-glow {
    opacity: 0.85;
}

.contact-dock__icon {
    width: 1.4rem;
    height: 1.4rem;
}

@media (min-width: 640px) {
    .contact-dock__icon {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* WhatsApp floating widget */
.wp-widget {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wp-widget__backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(15, 13, 12, 0.28);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.wp-widget[data-open="true"] .wp-widget__backdrop {
    opacity: 1;
    pointer-events: auto;
}

.wp-widget__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.75rem);
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    width: max-content;
    max-width: min(17rem, calc(100vw - 2rem));
    max-height: min(70vh, 28rem);
    pointer-events: none;
}

.wp-widget[data-open="true"] .wp-widget__panel {
    display: flex;
    pointer-events: auto;
}

.wp-widget__intro {
    text-align: right;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.wp-widget__heading {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy-900);
}

.wp-widget__subheading {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: var(--ink-muted);
}

.wp-widget[data-open="true"] .wp-widget__intro {
    opacity: 1;
    transform: translateY(0);
}

.wp-widget__list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 0.1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.wp-widget__list::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.wp-widget__item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 13.5rem;
    max-width: 17rem;
    padding: 0.4rem 0.45rem 0.4rem 0.85rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(37, 211, 102, 0.22);
    box-shadow: 0 10px 24px rgba(15, 13, 12, 0.14);
    text-decoration: none;
    opacity: 0;
    transform: translateX(12px) scale(0.96);
    transition:
        opacity 0.25s ease,
        transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1),
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    transition-delay: var(--delay, 0ms);
    pointer-events: none;
}

.wp-widget[data-open="true"] .wp-widget__item {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.wp-widget__item:hover,
.wp-widget__item:focus-visible {
    border-color: rgba(37, 211, 102, 0.55);
    box-shadow: 0 14px 28px rgba(15, 13, 12, 0.18);
}

.wp-widget__item-text {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.wp-widget__item-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--navy-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wp-widget__item-title {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.65rem;
    line-height: 1.25;
    color: var(--ink-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wp-widget__avatar-ring {
    flex-shrink: 0;
    display: block;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-widget__item:hover .wp-widget__avatar-ring,
.wp-widget__item:focus-visible .wp-widget__avatar-ring {
    transform: scale(1.04);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.7);
}

.wp-widget__avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.wp-widget__toggle {
    position: relative;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border: 0;
    border-radius: 9999px;
    background: linear-gradient(145deg, #2bdc6a 0%, #25d366 55%, #1ebe5d 100%);
    color: #fff;
    cursor: pointer;
    box-shadow:
        0 8px 22px rgba(37, 211, 102, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-widget__toggle:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 32px rgba(37, 211, 102, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.wp-widget__toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (min-width: 640px) {
    .wp-widget__toggle {
        width: 3.5rem;
        height: 3.5rem;
    }
}

.wp-widget__toggle-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    border: 2px solid rgba(37, 211, 102, 0.45);
    animation: wp-widget-pulse 2.2s ease-out infinite;
    pointer-events: none;
}

.wp-widget[data-open="true"] .wp-widget__toggle-pulse {
    display: none;
}

.wp-widget__toggle-icon {
    width: 1.5rem;
    height: 1.5rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wp-widget__toggle-icon--close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0.7);
}

.wp-widget[data-open="true"] .wp-widget__toggle {
    background: linear-gradient(145deg, #2a2624 0%, #1a1716 100%);
    box-shadow: 0 12px 28px rgba(15, 13, 12, 0.35);
}

.wp-widget[data-open="true"] .wp-widget__toggle-icon--open {
    opacity: 0;
    transform: rotate(90deg) scale(0.7);
}

.wp-widget[data-open="true"] .wp-widget__toggle-icon--close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

@keyframes wp-widget-pulse {
    0% {
        transform: scale(0.92);
        opacity: 0.85;
    }

    70% {
        transform: scale(1.18);
        opacity: 0;
    }

    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}
