/**
 * Derya Anasayfa — kurumsal / etkileşimli / hareketli tema katmanı
 * body.page-home üzerinde çalışır; admin'i etkilemez.
 */

body.page-home {
    --dh-ink: #0E241C;
    --dh-forest: #143D32;
    --dh-canopy: #1F5C4A;
    --dh-copper: #C4782C;
    --dh-sand: #E8DCC8;
    --dh-mist: #F3F6F4;
    --dh-line: rgba(20, 61, 50, 0.12);
    --dh-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dh-dur: 0.85s;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(196, 120, 44, 0.08), transparent 55%),
        radial-gradient(900px 500px at 90% 5%, rgba(31, 92, 74, 0.1), transparent 50%),
        var(--surface, #fff);
}

body.page-home .header {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: background 0.35s var(--dh-ease), border-color 0.35s, box-shadow 0.35s;
}
body.page-home .header.scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: var(--dh-line);
    box-shadow: 0 10px 40px rgba(14, 36, 28, 0.06);
}

body.page-home .top-bar {
    background: linear-gradient(90deg, #0B2821, #143D32 55%, #1A4639);
    letter-spacing: 0.01em;
}

/* —— Hero (full-bleed composition) —— */
.dh-hero {
    position: relative;
    min-height: min(100svh, 920px);
    height: auto;
    overflow: hidden;
    background: var(--dh-ink);
    color: #fff;
}
.dh-hero-slider,
.dh-hero-slide {
    position: absolute;
    inset: 0;
}
.dh-hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s var(--dh-ease), visibility 1s;
}
.dh-hero-slide.active {
    opacity: 1;
    visibility: visible;
}
.dh-hero-media {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
}
.dh-hero-img {
    position: absolute;
    inset: -4%;
    width: 108%;
    height: 108%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 8s linear;
    will-change: transform;
}
.dh-hero-slide.active .dh-hero-img {
    transform: scale(1);
}
.dh-hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(11, 40, 33, 0.92) 0%, rgba(14, 36, 28, 0.72) 42%, rgba(14, 36, 28, 0.28) 100%),
        linear-gradient(0deg, rgba(11, 40, 33, 0.55) 0%, transparent 42%);
}
.dh-hero-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.18;
    pointer-events: none;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.dh-hero-frame {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: min(100svh, 920px);
    display: flex;
    align-items: flex-end;
    padding: 0 20px 120px;
}
.dh-hero-copy {
    max-width: 760px;
    transform: translateY(28px);
    opacity: 0;
}
.dh-hero-slide.active .dh-hero-copy {
    animation: dhRise 1s var(--dh-ease) 0.15s forwards;
}
@keyframes dhRise {
    to { transform: translateY(0); opacity: 1; }
}
.dh-brand {
    font-family: var(--font-display), Georgia, serif;
    font-size: clamp(1.65rem, 3.4vw, 2.55rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 18px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.dh-hero-logo {
    margin: 0 0 20px;
    max-width: min(420px, 88vw);
}
.dh-hero-logo img {
    display: block;
    width: min(420px, 88vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.28));
    background: transparent;
}
.dh-hero-slide.active .dh-hero-logo img {
    animation: dhLogoIn 0.9s var(--dh-ease) 0.05s both;
}
@keyframes dhLogoIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.dh-headline {
    font-family: var(--font), system-ui, sans-serif;
    font-size: clamp(1.55rem, 3.2vw, 2.45rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.96);
    max-width: 18ch;
}
.dh-lede {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.86);
    margin: 0 0 28px;
    max-width: 38ch;
}
.dh-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.dh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: transform 0.35s var(--dh-ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s;
}
.dh-btn-primary {
    background: var(--dh-copper);
    color: #fff;
    border-color: var(--dh-copper);
    box-shadow: 0 12px 32px rgba(196, 120, 44, 0.28);
}
.dh-btn-primary:hover {
    background: #a86422;
    border-color: #a86422;
    color: #fff;
    transform: translateY(-3px);
}
.dh-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
}
.dh-btn-ghost:hover {
    background: #fff;
    color: var(--dh-forest);
    border-color: #fff;
}
.dh-btn-outline {
    background: transparent;
    color: var(--dh-forest);
    border-color: rgba(20, 61, 50, 0.35);
}
.dh-btn-outline:hover {
    background: var(--dh-forest);
    color: #fff;
    border-color: var(--dh-forest);
}

.dh-hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}
.dh-hero-nav {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.dh-hero-nav:hover {
    background: var(--dh-copper);
    border-color: var(--dh-copper);
    transform: scale(1.05);
}
.dh-hero-dots {
    display: flex;
    gap: 6px;
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
}
.dh-hero-dots button {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
}
.dh-hero-dots button::after {
    content: '';
    width: 28px;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.3s, width 0.35s var(--dh-ease);
}
.dh-hero-dots button.active::after {
    width: 42px;
    background: var(--dh-copper);
}

.dh-scroll-cue {
    position: absolute;
    right: 28px;
    bottom: 40px;
    z-index: 5;
    width: 28px;
    height: 44px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    display: grid;
    place-items: start center;
    padding-top: 8px;
}
.dh-scroll-cue span {
    width: 4px;
    height: 10px;
    border-radius: 4px;
    background: #fff;
    animation: dhScroll 1.6s var(--dh-ease) infinite;
}
@keyframes dhScroll {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* —— Pulse / trust —— */
.dh-pulse {
    position: relative;
    z-index: 4;
    margin-top: -42px;
    padding: 0 0 8px;
}
.dh-pulse-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--dh-line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(14, 36, 28, 0.1);
}
.dh-pulse-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 22px 20px;
    border-right: 1px solid var(--dh-line);
}
.dh-pulse-item:last-child { border-right: 0; }
.dh-pulse-item i {
    font-size: 1.25rem;
    color: var(--dh-copper);
    margin-top: 3px;
}
.dh-pulse-item strong {
    display: block;
    color: var(--dh-forest);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}
.dh-pulse-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted, #6B7A72);
    margin-top: 2px;
}

/* —— Section heads —— */
.dh-section-head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: left;
}
.dh-section-head h2,
.dh-section-head-light h2 {
    font-family: var(--font-display), Georgia, serif;
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--dh-forest);
    margin: 0 0 14px;
}
.dh-section-head p,
.dh-section-lede {
    color: var(--text-body, #3A4641);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 46ch;
}
.dh-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dh-copper);
    margin: 0 0 12px;
}
.dh-section-head-light h2 { color: #F7FBF8; }
.dh-section-head-light p { color: rgba(247, 251, 248, 0.78); }
.dh-section-head-light .dh-kicker { color: #E0A05A; }

/* —— Interactive calc zone —— */
.dh-interact {
    position: relative;
    padding: 88px 0 40px;
    overflow: hidden;
}
.dh-interact-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 400px at 20% 0%, rgba(196, 120, 44, 0.18), transparent 60%),
        linear-gradient(165deg, #0B2821 0%, #143D32 48%, #0E241C 100%);
}
.dh-interact > .container { position: relative; z-index: 1; }

/* Beyaz panel içinde koyu metin — kontrast düzeltmesi */
.dh-interact .calc-section {
    position: relative;
    z-index: 1;
    background: transparent;
    padding: 12px 0 8px;
    color: var(--dh-ink);
}
.dh-interact .calc-section::before { display: none; }
.dh-interact .calc-section > .container {
    background: #fff;
    border-radius: 22px;
    padding: 28px 24px 32px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    color: var(--dh-ink);
}
.dh-interact .calc-intro h2 {
    color: var(--dh-forest) !important;
}
.dh-interact .calc-intro p {
    color: var(--text-body, #3A4641) !important;
}
.dh-interact .calc-features li {
    color: var(--text-body, #3A4641) !important;
}
.dh-interact .calc-features i {
    background: rgba(20, 61, 50, 0.08);
    color: #9A5C20;
}
.dh-interact .calc-intro .section-tag,
.dh-interact .calc-section .section-tag {
    background: rgba(196, 120, 44, 0.14) !important;
    color: #8A5018 !important;
    border-radius: 8px;
}
.dh-interact .calc-student-links a {
    color: var(--dh-forest) !important;
    opacity: 1;
}
.dh-interact .calc-student-links a:hover {
    color: #9A5C20 !important;
}
.dh-interact .calc-matrix-wrap {
    margin-top: 28px;
    padding-top: 8px;
}
.dh-interact .calc-matrix-title {
    color: var(--dh-forest) !important;
}
.dh-interact .calc-matrix-item {
    background: var(--dh-mist, #F3F6F4);
    border: 1px solid var(--dh-line, rgba(20, 61, 50, 0.12));
    color: var(--dh-forest);
}
.dh-interact .calc-matrix-item:hover {
    background: #fff;
    border-color: var(--dh-copper);
    color: var(--dh-forest);
}
.dh-interact .calc-matrix-city {
    color: var(--dh-forest);
}
.dh-interact .calc-matrix-km {
    color: var(--text-muted, #6B7A72);
    opacity: 1;
}
.dh-interact .calc-matrix-price {
    color: #8A5018;
}
.dh-interact .calc-matrix-loading,
.dh-interact .calc-matrix-empty {
    color: var(--text-muted, #6B7A72);
}
.dh-interact .calc-result-price {
    color: #8A5018;
}
.dh-interact .calc-panel {
    color: var(--text-body, #3A4641);
}
.dh-interact .calc-route-map-frame {
    border-color: rgba(20, 61, 50, 0.1);
    background:
        radial-gradient(ellipse at 18% 28%, rgba(196, 120, 44, 0.1), transparent 52%),
        linear-gradient(165deg, #f7faf8 0%, #e9f0ec 100%);
}
.dh-interact .calc-route-sea { fill: #d5e6df; }
.dh-interact .calc-route-province {
    fill: #1a4a3c;
    stroke: rgba(11, 40, 33, 0.5);
}
.dh-interact .calc-route-province.is-from { fill: #C4782C; }
.dh-interact .calc-route-province.is-to { fill: #2f7a64; }
.dh-interact .calc-route-land {
    fill: url(#calcLandGrad);
    stroke: var(--dh-deep, #0B2821);
}
.dh-interact .calc-route-chip {
    color: var(--dh-forest, #143D32);
}

.dh-volume-slot {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    color: var(--text-body, #3A4641);
}
.dh-volume-slot .vol-calc-section,
.dh-volume-slot .vol-section,
.dh-volume-slot .volume-section,
.dh-volume-slot > section {
    background: transparent !important;
    padding-top: 0;
    padding-bottom: 0;
}
.dh-volume-slot > section > .container,
.dh-volume-slot .container {
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    color: var(--text-body, #3A4641);
}
.dh-volume-slot h2,
.dh-volume-slot .vol-calc-header h2,
.dh-volume-slot .section-header h2 {
    color: var(--dh-forest) !important;
}
.dh-volume-slot .vol-calc-intro,
.dh-volume-slot .section-header p {
    color: var(--text-muted, #6B7A72) !important;
}

/* —— Services —— */
.dh-services {
    padding-top: 96px;
    background:
        linear-gradient(180deg, var(--dh-mist) 0%, #fff 28%, #fff 100%);
}
.dh-services .section-header { display: none; }
.dh-services-grid .service-card {
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 0 var(--dh-line), 0 18px 40px rgba(14, 36, 28, 0.05);
    overflow: hidden;
    transition: transform 0.45s var(--dh-ease), box-shadow 0.45s;
}
.dh-services-grid .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(14, 36, 28, 0.12);
    border-color: transparent;
}
.dh-services-grid .service-card-image {
    height: 200px;
}
.dh-services-grid .service-card-image::after {
    background: linear-gradient(180deg, transparent 35%, rgba(11, 40, 33, 0.55) 100%);
}

body.page-home .cta-section .cta-box,
body.page-home .cta-box {
    border-radius: 22px;
    background:
        radial-gradient(600px 240px at 90% 0%, rgba(196, 120, 44, 0.25), transparent 55%),
        linear-gradient(135deg, #0B2821, #1F5C4A);
    border: 0;
    box-shadow: 0 28px 70px rgba(14, 36, 28, 0.2);
}

/* —— Proof / reviews —— */
.dh-proof {
    background: var(--dh-mist);
}
.dh-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 8px;
}
.dh-rating-score {
    font-family: var(--font-display), Georgia, serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--dh-forest);
    line-height: 1;
}
.dh-rating-meta { color: var(--text-muted, #6B7A72); font-size: 0.9rem; }
.dh-review {
    background: #fff;
    border: 0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 14px 36px rgba(14, 36, 28, 0.06);
}
.dh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 36px;
}

/* —— Presence / map —— */
.dh-presence {
    padding: 0;
    background: #fff;
}
.dh-presence-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
    min-height: 520px;
}
.dh-presence-copy {
    padding: clamp(40px, 6vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(160deg, #F7FBF8, #E8EEEA);
}
.dh-presence-copy h2 {
    font-family: var(--font-display), Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--dh-forest);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}
.dh-presence-addr {
    color: var(--text-body);
    margin: 0 0 28px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 36ch;
}
.dh-presence-addr i { color: var(--dh-copper); margin-top: 4px; }
.dh-presence-map {
    min-height: 360px;
    position: relative;
}
.dh-presence-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* —— Journal —— */
.dh-journal {
    background: #fff;
}
.dh-journal-card {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--dh-mist);
    box-shadow: none;
    transition: transform 0.4s var(--dh-ease);
}
.dh-journal-card:hover { transform: translateY(-6px); }
.dh-journal-card .blog-image img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
    height: auto;
}

/* —— Reveal motion —— */
[data-dh-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--dh-dur) var(--dh-ease), transform var(--dh-dur) var(--dh-ease);
}
[data-dh-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* Hide unused legacy home hero if present */
body.page-home > .hero:not(.dh-hero) { display: none; }

@media (max-width: 980px) {
    .dh-pulse-rail { grid-template-columns: 1fr 1fr; }
    .dh-pulse-item:nth-child(2) { border-right: 0; }
    .dh-pulse-item:nth-child(1),
    .dh-pulse-item:nth-child(2) { border-bottom: 1px solid var(--dh-line); }
    .dh-presence-grid { grid-template-columns: 1fr; }
    .dh-presence-map { min-height: 320px; }
    .dh-hero-frame { padding-bottom: 110px; align-items: flex-end; }
    .dh-scroll-cue { display: none; }
}

@media (max-width: 640px) {
    .dh-pulse { margin-top: -28px; }
    .dh-pulse-rail { grid-template-columns: 1fr; }
    .dh-pulse-item { border-right: 0; border-bottom: 1px solid var(--dh-line); }
    .dh-pulse-item:last-child { border-bottom: 0; }
    .dh-headline { max-width: none; }
    .dh-brand { font-size: 1.55rem; }
    .dh-hero-logo { margin-bottom: 14px; max-width: min(280px, 78vw); }
    .dh-hero-logo img { width: min(280px, 78vw); }
    .dh-hero { min-height: 88svh; }
    .dh-hero-frame { min-height: 88svh; }
}

body.page-home .site-footer,
body.page-home footer.footer {
    background: linear-gradient(180deg, #0B2821 0%, #071914 100%);
}
body.page-home .footer-bottom,
body.page-home .site-footer a:hover {
    color: #E0A05A;
}

@media (prefers-reduced-motion: reduce) {
    .dh-hero-img,
    .dh-hero-slide.active .dh-hero-img,
    .dh-scroll-cue span,
    [data-dh-reveal],
    .dh-hero-slide.active .dh-hero-copy {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
