/* ============================================
   ANA SAYFA (index.html)
   ============================================ */

.page-home { background: var(--color-off-white); }

.grad {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- HERO ---------- */
.h-hero {
    position: relative;
    padding: 150px 0 80px;
    background:
        radial-gradient(circle at 8% 12%, rgba(99, 102, 241, 0.14) 0, transparent 40%),
        radial-gradient(circle at 92% 18%, rgba(236, 72, 153, 0.10) 0, transparent 38%),
        radial-gradient(circle at 70% 95%, rgba(168, 85, 247, 0.10) 0, transparent 40%),
        var(--color-off-white);
    overflow: hidden;
}

.h-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.h-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
}

.h-eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.h-hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.75rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    color: var(--color-dark);
}

.h-lead {
    font-size: var(--text-lg);
    color: var(--color-gray);
    max-width: 560px;
    margin-bottom: var(--space-lg);
}

.h-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.h-hero-call {
    margin-top: var(--space-md);
    color: var(--color-gray);
    font-size: var(--text-sm);
}

.h-hero-call a { font-weight: 700; }

.h-hero-visual {
    position: relative;
    min-height: 460px;
}

.h-mock {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.h-mock img { display: block; width: 100%; height: auto; }

.h-mock-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.h-mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #f87171; }
.h-mock-bar i:nth-child(2) { background: #fbbf24; }
.h-mock-bar i:nth-child(3) { background: #34d399; }

.h-mock-bar span {
    margin-left: 8px;
    flex: 1;
    background: #fff;
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 11px;
    color: #64748b;
}

.h-mock-main { top: 0; left: 0; width: 88%; z-index: 1; }
.h-mock-panel { right: 0; bottom: 0; width: 62%; z-index: 2; }

.h-mock-phone {
    position: absolute;
    left: -4%;
    bottom: -10px;
    width: 23%;
    z-index: 3;
    border-radius: 22px;
    border: 6px solid #0f172a;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    background: #0f172a;
}

.h-mock-phone img { display: block; width: 100%; height: auto; }

.h-chip {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-dark);
    animation: hFloat 5s ease-in-out infinite;
}

.h-chip small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--color-gray); }
.h-chip-1 { top: 40%; left: -6%; }
.h-chip-2 { top: -18px; right: 6%; animation-delay: -2.5s; }

.h-chip .ic {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 32px;
}

.h-chip .ic svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ic-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.ic-purple { background: var(--gradient-primary); }

@keyframes hFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---------- GÜVEN ŞERİDİ ---------- */
.h-trust {
    background: var(--color-white);
    border-top: 1px solid var(--color-gray-light);
    border-bottom: 1px solid var(--color-gray-light);
    padding: var(--space-lg) 0;
}

.h-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    text-align: center;
}

.h-trust strong {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.h-trust span { color: var(--color-gray); font-weight: 500; font-size: var(--text-sm); }

/* ---------- HİZMETLER ---------- */
.h-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.h-service {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid transparent;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.h-service:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.25);
}

.h-service.featured {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.h-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient-accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
}

.h-service-ic {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--gradient-primary);
    margin-bottom: var(--space-md);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
}

.h-service-ic svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.h-service h3 { font-size: var(--text-2xl); margin-bottom: 0.5rem; }
.h-service h3 a { color: var(--color-dark); }
.h-service h3 a:hover { color: var(--color-primary); }
.h-service p { color: var(--color-gray); margin-bottom: var(--space-md); }

.h-service ul,
.h-checks {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
    display: grid;
    gap: 0.5rem;
}

.h-service li,
.h-checks li {
    position: relative;
    padding-left: 1.7rem;
    font-size: var(--text-sm);
    color: var(--color-dark-soft);
}

.h-service li::before,
.h-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.h-more {
    margin-top: auto;
    font-family: var(--font-heading);
    font-weight: 600;
}

.h-more span { display: inline-block; transition: transform var(--transition-fast); }
.h-more:hover span { transform: translateX(4px); }

/* ---------- SAĞLIK ---------- */
.h-health { background: var(--color-white); }

.h-health-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.h-health .section-title { text-align: left; }
.h-health-lead { font-size: var(--text-lg); color: var(--color-gray); margin-bottom: var(--space-lg); }
.h-checks li { font-size: var(--text-base); }

.h-branches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.h-branches a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-lg);
    background: var(--color-off-white);
    border: 1px solid var(--color-gray-light);
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.h-branches a::after { content: "→"; color: var(--color-primary); transition: transform var(--transition-fast); }

.h-branches a:hover {
    background: #fff;
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: var(--shadow-md);
    color: var(--color-primary-dark);
}

.h-branches a:hover::after { transform: translateX(3px); }

/* ---------- KLİNİK PANELİ ---------- */
.h-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: var(--space-2xl);
    align-items: center;
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
    color: #e2e8f0;
    overflow: hidden;
}

.h-panel::after {
    content: "";
    position: absolute;
    right: -140px;
    top: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.35), transparent 70%);
    pointer-events: none;
}

.h-panel-text { position: relative; z-index: 1; }

.h-new {
    display: inline-block;
    background: var(--gradient-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.h-panel h2 { color: #fff; font-size: var(--text-4xl); margin-bottom: var(--space-sm); }
.h-panel p { color: #c7d2fe; margin-bottom: var(--space-md); }

.h-panel-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.h-panel-list li {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 0.8rem 0.9rem;
    font-size: var(--text-sm);
    color: #cbd5e1;
}

.h-panel-list strong { display: block; color: #fff; font-family: var(--font-heading); margin-bottom: 0.15rem; }

.h-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.h-link-light { color: #c7d2fe; font-weight: 600; font-family: var(--font-heading); }
.h-link-light:hover { color: #fff; }

.h-panel-visual { position: relative; z-index: 1; padding-bottom: 40px; }

.h-panel-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.h-panel-visual .h-panel-sub {
    position: absolute;
    width: 36%;
    right: -12px;
    bottom: 0;
    border: 4px solid #fff;
}

/* ---------- SÜREÇ ---------- */
.h-process-wrap { background: var(--color-white); }

.h-process {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    counter-reset: none;
}

.h-process li {
    position: relative;
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    background: var(--color-off-white);
    border: 1px solid var(--color-gray-light);
}

.h-process li span {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.h-process h3 { font-size: var(--text-xl); margin-bottom: 0.35rem; }
.h-process p { color: var(--color-gray); font-size: var(--text-sm); margin: 0; }

/* ---------- PROJELER ---------- */
.h-portfolio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.h-pf {
    position: relative;
    display: block;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-md);
    color: #fff;
}

/* Üst sıra: Doktor, Fitness, Avukat — eşit ve daha büyük */
.h-pf-top { aspect-ratio: 1 / 1; }
.h-pf-top h3 { font-size: var(--text-2xl); }

.h-pf img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform var(--transition-slow);
}

.h-pf > div {
    position: absolute;
    inset: auto 0 0 0;
    padding: var(--space-md);
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0));
}

.h-pf h3 { color: #fff; font-size: var(--text-lg); margin: 0.4rem 0 0.1rem; }
.h-pf p { color: rgba(255, 255, 255, 0.85); font-size: var(--text-sm); margin: 0; }
.h-pf:hover img { transform: scale(1.06); }
.h-pf:hover { color: #fff; }

/* Son kart: tüm projelere yönlendiren CTA (2 sütun) */
.h-pf-cta {
    grid-column: span 2;
    aspect-ratio: auto;
    background: var(--gradient-primary, linear-gradient(135deg, #4f46e5, #a855f7));
    display: flex;
    align-items: center;
}
.h-pf-cta > div {
    position: static;
    background: none;
    padding: var(--space-xl, 2rem);
}
.h-pf-cta h3 { font-size: var(--text-2xl); }
.h-pf-cta-btn {
    display: inline-block;
    margin-top: var(--space-md);
    padding: 0.7rem 1.3rem;
    border-radius: var(--radius-full, 999px);
    background: #fff;
    color: var(--color-primary, #4f46e5);
    font-weight: 600;
    transition: transform var(--transition-fast);
}
.h-pf-cta:hover .h-pf-cta-btn { transform: translateX(4px); }

/* ---------- NEDEN ---------- */
.h-why {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.h-why > div {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-light);
    border-top: 4px solid var(--color-primary);
}

.h-why > div:nth-child(2n) { border-top-color: var(--color-secondary); }
.h-why > div:nth-child(3n) { border-top-color: var(--color-accent); }
.h-why h3 { font-size: var(--text-xl); margin-bottom: 0.35rem; }
.h-why p { color: var(--color-gray); font-size: var(--text-sm); margin: 0; }

/* ---------- SSS ---------- */
.h-faq-wrap { max-width: 860px; }

.h-faq { display: grid; gap: 0.75rem; }

.h-faq details {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-light);
    padding: 0 1.25rem;
    transition: box-shadow var(--transition-fast);
}

.h-faq details[open] { box-shadow: var(--shadow-md); border-color: rgba(99, 102, 241, 0.25); }

.h-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1.1rem 2rem 1.1rem 0;
    position: relative;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-lg);
    color: var(--color-dark);
}

.h-faq summary::-webkit-details-marker { display: none; }

.h-faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform var(--transition-fast);
}

.h-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.h-faq details p { color: var(--color-gray); padding-bottom: 1.1rem; margin: 0; }

/* ---------- SON ÇAĞRI ---------- */
.h-final-wrap { padding-top: 0; }
.h-final { margin: 0; }
.h-final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }

.h-btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.h-btn-ghost:hover { background: #fff; color: var(--color-primary-dark); }
.h-final-mail { margin: var(--space-md) 0 0 !important; font-size: var(--text-base) !important; }
.h-final-mail a { color: #fff; text-decoration: underline; }

/* ---------- HERO KOLAJ (ana sayfa) ---------- */
.h-collage { min-height: 500px; }

.h-collage > img {
    position: absolute;
    width: 52%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(15, 23, 42, 0.06);
    background: #fff;
}

.h-collage .c1 { top: 0; left: 4%; z-index: 2; transform: rotate(-3deg); }
.h-collage .c2 { top: 4%; right: 0; width: 44%; z-index: 1; transform: rotate(4deg); }
.h-collage .c3 { bottom: 0; left: 0; width: 42%; z-index: 3; transform: rotate(2deg); }
.h-collage .c4 { bottom: 2%; right: 6%; width: 46%; z-index: 2; transform: rotate(-2deg); }
.h-collage .h-chip-1 { top: auto; bottom: 34%; left: -4%; }
.h-collage .h-chip-2 { top: -10px; right: 4%; }

/* ---------- SEKTÖRLER ---------- */
.h-sectors-wrap { background: var(--color-white); }

.h-sectors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.h-sector {
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    background: var(--color-off-white);
    border: 1px solid var(--color-gray-light);
    color: var(--color-dark);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

.h-sector:hover {
    transform: translateY(-4px);
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--color-dark);
}

.h-sector-ic {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(99, 102, 241, 0.1);
    margin-bottom: var(--space-sm);
    transition: background var(--transition-base);
}

.h-sector-ic svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke var(--transition-base);
}

.h-sector:hover .h-sector-ic { background: var(--gradient-primary); }
.h-sector:hover .h-sector-ic svg { stroke: #fff; }
.h-sector h3 { font-size: var(--text-lg); margin-bottom: 0.3rem; }
.h-sector p { color: var(--color-gray); font-size: var(--text-sm); margin-bottom: var(--space-sm); }
.h-sector-more { margin-top: auto; color: var(--color-primary); font-family: var(--font-heading); font-weight: 600; font-size: var(--text-sm); }

/* ---------- DOKTOR SAYFASI ---------- */
.pf-feature-visual { position: relative; padding: 0 0 40px 40px; }

.pf-feature-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
}

.pf-feature-visual .pf-feature-phone {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 26%;
    border: 6px solid #0f172a;
    border-radius: 22px;
}

.page-doktor .kp-section { background: var(--color-white); }

@media (max-width: 1024px) {
    .h-collage { aspect-ratio: 1 / 0.9; }
    .h-sectors { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .h-sectors { grid-template-columns: 1fr; }
    .pf-feature-visual { padding-left: 24px; }
}

/* ---------- ERİŞİLEBİLİRLİK ---------- */
.page-home a:focus-visible,
.page-home summary:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- DUYARLI ---------- */
@media (max-width: 1024px) {
    .h-hero-grid, .h-health-grid, .h-panel { grid-template-columns: 1fr; }
    .h-hero { padding-top: 130px; }
    .h-hero-visual { min-height: 0; aspect-ratio: 16 / 11; max-width: 680px; margin: 0 auto; width: 100%; }
    .h-services { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
    .h-process { grid-template-columns: 1fr 1fr; }
    .h-portfolio { grid-template-columns: repeat(2, 1fr); }
    .h-pf-top:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
    .h-why { grid-template-columns: 1fr 1fr; }
    .h-trust-grid { grid-template-columns: repeat(2, 1fr); }
    .h-chip-1 { left: 0; }
}

@media (max-width: 640px) {
    .h-hero { padding: 120px 0 56px; }
    .h-hero-actions .btn { width: 100%; }
    .h-chip { display: none; }
    .h-mock-phone { left: 0; }
    .h-branches, .h-panel-list, .h-process, .h-why { grid-template-columns: 1fr; }
    .h-panel { padding: var(--space-lg); }
    .h-panel h2 { font-size: var(--text-3xl); }
    .h-portfolio { grid-template-columns: 1fr; }
    .h-pf, .h-pf-top, .h-pf-top:first-child { grid-column: auto; aspect-ratio: 16 / 11; }
    .h-pf-cta { grid-column: auto; aspect-ratio: auto; }
    .h-pf h3, .h-pf-top h3, .h-pf-cta h3 { font-size: var(--text-lg); }
    .h-trust strong { font-size: var(--text-3xl); }
}

@media (prefers-reduced-motion: reduce) {
    .h-chip { animation: none; }
    .h-service, .h-pf img { transition: none; }
}
