/* ==========================================================================
   Vefa Medikal — Düzen: header, footer, bölüm ritmi, ışın
   ========================================================================== */

.container-vm {
    width: 100%; max-width: var(--container);
    margin-inline: auto; padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Bölümler — koyu vitrin / açık gövde ritmi
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: calc(var(--section-y) * .58); }
.section-light { background: var(--paper); color: var(--ink); }
.section-white { background: var(--surface); color: var(--ink); }
.section-dark  { background: var(--navy); color: #fff; }
.section-dark .lead, .section-dark p { color: var(--muted-dark); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--heading-dark); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .lead { margin-top: 16px; }
.section-head-row {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 28px; flex-wrap: wrap; margin-bottom: 48px;
}
.section-head-row .section-head { margin-bottom: 0; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1199px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   YARIK LAMBA IŞINI — bu tasarımın imzası
   Her göz muayenesinde gözün üzerinden dar bir ışık şeridi geçirilir.
   Sitedeki bütün çapraz geometri o ışın: hero'daki huzme, bölümler
   arasındaki çapraz kesim ve kesimin parlayan kenarı aynı şeyin
   üç görünümü. Süs değil, konunun kendi aleti.
   -------------------------------------------------------------------------- */
.beam-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.beam-field::before {
    content: ""; position: absolute;
    top: -45%; left: var(--beam-x, 16%);
    width: min(300px, 28vw); height: 190%;
    transform: rotate(14deg);
    background: linear-gradient(90deg,
        transparent,
        rgba(var(--beam-rgb), .10) 32%,
        rgba(var(--beam-rgb), .24) 50%,
        rgba(var(--beam-rgb), .10) 68%,
        transparent);
    filter: blur(8px);
}
.beam-field::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 78% 40%, rgba(var(--beam-rgb), .12), transparent 70%);
}

/* Bölümler arası çapraz kesim = ışının kenarı */
.wedge-top    { clip-path: polygon(0 4.2vw, 100% 0, 100% 100%, 0 100%); margin-top: -4.2vw; }
.wedge-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4.2vw), 0 100%); margin-bottom: -4.2vw; }
.wedge-top.section    { padding-block: calc(var(--section-y) + 4.2vw) var(--section-y); }
.wedge-bottom.section { padding-block: var(--section-y) calc(var(--section-y) + 4.2vw); }
/* Hero'nun hemen altındaki bölüm hero'ya yaklaşsın (ikisi de koyu) */
.hero + .section { padding-top: 44px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 200;
    background: rgba(8, 20, 38, .72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-stuck { background: var(--navy-deep); border-bottom-color: var(--navy-line); }

.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }

.brand-mark { display: flex; align-items: center; gap: 11px; flex: 0 1 auto; min-width: 0; }
.brand-mark img { max-height: 40px; width: auto; max-width: 100%; }
.brand-mark .mark-text { line-height: 1.15; }
.brand-mark .mark-title {
    font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
    font-size: 1.2rem; color: #fff; letter-spacing: .02em;
}
.brand-mark .mark-sub {
    font-family: var(--font-data); font-size: 9px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--muted-dark);
}

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > li { position: relative; list-style: none; }
.main-nav > li > a {
    display: flex; align-items: center; gap: 6px;
    padding: 26px 15px; font-size: var(--fs-small); font-weight: 500;
    color: rgba(255,255,255,.82); position: relative;
    transition: color .25s var(--ease);
}
.main-nav > li > a::after {
    content: ""; position: absolute; left: 15px; right: 15px; bottom: 20px; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform .28s var(--ease);
}
.main-nav > li > a:hover,
.main-nav > li > a.is-active { color: #fff; }
.main-nav > li > a:hover::after,
.main-nav > li > a.is-active::after { transform: scaleX(1); }

/* Ürünler açılır menüsü */
.has-drop > a .bi { font-size: 11px; transition: transform .25s var(--ease); }
.has-drop:hover > a .bi { transform: rotate(180deg); }
.drop {
    position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
    min-width: 320px; background: var(--navy-deep);
    border: 1px solid var(--navy-line); padding: 8px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    list-style: none;
}
@media (min-width: 1100px) {
    .has-drop:hover .drop, .has-drop:focus-within .drop {
        opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
    }
}
.drop a {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px;
    font-size: var(--fs-small); color: rgba(255,255,255,.82);
    border-left: 2px solid transparent;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.drop a:hover { background: rgba(255,255,255,.06); color: #fff; border-left-color: var(--accent); }
.drop a .bi { color: var(--accent-hi); font-size: 15px; flex: none; }
.drop a .count-badge { margin-left: auto; }
.drop .drop-all { border-top: 1px solid var(--navy-line); margin-top: 6px; padding-top: 6px; }
.drop .drop-all a { color: var(--accent-hi); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.lang-switch {
    font-family: var(--font-data); font-size: var(--fs-micro); font-weight: 600;
    letter-spacing: .1em; color: var(--muted-dark);
    border: 1px solid rgba(255,255,255,.2); padding: 7px 11px;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}
.lang-switch:hover { color: #fff; border-color: rgba(255,255,255,.5); }

.nav-toggle {
    display: none; background: none; border: 1px solid rgba(255,255,255,.2);
    color: #fff; width: 44px; height: 44px; align-items: center; justify-content: center;
    font-size: 20px; cursor: pointer;
}

/* Mobil */
@media (max-width: 1099px) {
    .nav-toggle { display: flex; order: 5; flex: none; }
    .header-inner { height: 66px; gap: 12px; }
    .header-actions { margin-left: auto; order: 4; }
    .brand-mark img { max-height: 30px; }
    .main-nav {
        position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch;
        background: var(--navy-deep); border-bottom: 1px solid var(--navy-line);
        padding: 12px 0 20px; gap: 0; margin-left: 0;
        max-height: calc(100vh - 66px); overflow-y: auto;
        transform: translateY(-12px); opacity: 0; visibility: hidden;
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }
    .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .main-nav > li > a { padding: 15px var(--gutter); }
    .main-nav > li > a::after { display: none; }
    .drop {
        position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
        min-width: 0; border: none; background: rgba(255,255,255,.04);
        margin: 0 var(--gutter) 8px; display: none;
    }
    .has-drop.is-open .drop { display: block; }
    .header-actions .btn-accent { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    min-height: min(66vh, 560px); display: flex; align-items: center;
    background: linear-gradient(105deg, #10373B 0%, #164B50 52%, #24626A 100%); /* hero bir tık açık petrol */
    color: #fff;
    margin-top: -76px; padding-top: 76px;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(100deg, rgba(8,20,38,.94) 0%, rgba(8,20,38,.78) 42%, rgba(8,20,38,.35) 100%);
}
.hero-inner { position: relative; z-index: 5; padding-block: 56px 48px; }
.hero-copy { max-width: 660px; }
.hero-copy h1 { color: var(--heading-dark); text-transform: none; }
.hero-copy .hero-title {
    font-family: var(--font-display); font-weight: 700; text-transform: none;
    color: var(--heading-dark); line-height: 1;
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    letter-spacing: .01em; margin: 0 0 20px;
    text-shadow: 0 6px 24px rgba(0,0,0,.4);
}
.hero-copy .hero-logo { margin: 0 0 22px; line-height: 0; }
.hero-copy .hero-logo img {
    width: min(320px, 66vw); height: auto;
    filter: drop-shadow(0 8px 26px rgba(0,0,0,.4));
}
.hero-copy .lead { color: var(--muted-dark); margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero altındaki teknik şerit — gerçek veri, dolgu değil */
.hero-facts {
    position: relative; z-index: 5;
    display: flex; flex-wrap: wrap; gap: 0;
    border-top: 1px solid rgba(255,255,255,.14);
    margin-top: 56px;
}
.hero-facts .fact {
    padding: 20px 30px 4px 0; margin-right: 30px;
    border-right: 1px solid rgba(255,255,255,.14);
}
.hero-facts .fact:last-child { border-right: none; }
.hero-facts .fact-value {
    font-family: var(--font-display); font-weight: 700; font-size: 2rem;
    line-height: 1; color: var(--heading-dark);
}
.hero-facts .fact-label {
    font-family: var(--font-data); font-size: var(--fs-micro); letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted-dark); margin-top: 6px;
}
@media (max-width: 767px) {
    .hero { min-height: 0; padding-block: 40px 0; }
    .hero-inner { padding-block: 56px; }
    .hero-facts .fact { padding-right: 20px; margin-right: 20px; }
    .hero-facts .fact-value { font-size: 1.5rem; }
}

/* Sayfa başlık bandı (iç sayfalar) */
.page-head {
    position: relative; overflow: hidden;
    background: linear-gradient(105deg, #10373B 0%, #164B50 60%, #24626A 100%); /* iç sayfa başlığı: hero ile aynı açık petrol */
    color: #fff; padding-block: 64px 60px;
    margin-top: -76px; padding-top: 140px;
}
.page-head-inner { position: relative; z-index: 5; }
.page-head h1, .page-head h2 { color: var(--heading-dark); }
.page-head .lead { color: var(--muted-dark); max-width: 620px; margin-top: 14px; }
@media (max-width: 1099px) { .page-head { margin-top: -66px; padding-top: 120px; } .hero { margin-top: -66px; padding-top: 66px; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative; overflow: hidden;
    background: var(--navy-deep); color: var(--muted-dark); padding-top: 72px;
}
.footer-grid {
    position: relative; z-index: 2;
    display: grid; gap: 40px; grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    padding-bottom: 48px;
}
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
    font-family: var(--font-data); font-size: var(--fs-micro); font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase; color: #fff;
    margin-bottom: 18px; line-height: 1.4;
}
.site-footer a { color: var(--muted-dark); transition: color .2s var(--ease); font-size: var(--fs-small); }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: var(--fs-small); line-height: 1.75; }
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-contact { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: var(--fs-small); }
.footer-contact .bi { color: var(--accent-hi); flex: none; margin-top: 3px; }

.footer-bottom {
    position: relative; z-index: 2;
    border-top: 1px solid rgba(255,255,255,.09); padding-block: 20px 24px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    font-size: var(--fs-small);
}
.social-row { display: flex; gap: 9px; }
.social-row a {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.16); color: var(--muted-dark);
    transition: border-color .25s var(--ease), color .25s var(--ease);
}
.social-row a:hover { border-color: var(--accent-hi); color: var(--accent-hi); }

/* Dev hayalet kelime işareti */
.ghost-mark {
    position: absolute; left: 50%; bottom: -3.2vw; transform: translateX(-50%);
    font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
    font-size: clamp(4.5rem, 15vw, 16rem); line-height: .8; white-space: nowrap;
    color: rgba(255,255,255,.035); z-index: 1; pointer-events: none; user-select: none;
}
