/* Twenty Seventeen esinli tema – Çınarcık-Teşvikiye ASM */

:root {
    --text: #3a3a3a;
    --muted: #6f6f6f;
    --heading: #1d1d1f;
    --line: #ececec;
    --accent: #c8102e;        /* Sağlık Bakanlığı kırmızısı */
    --accent-dark: #a00c24;
    --teal: #3fa9a2;          /* logodaki turkuaz */
    --teal-soft: #eaf6f5;
    --bg: #fff;
    --bg-soft: #f7f8f8;
    --footer: #1f2a2e;
    --radius: 8px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .06);
    --wrap: 1080px;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--heading);
    text-decoration: none;
    box-shadow: inset 0 -1px 0 currentColor;
    transition: color .2s, box-shadow .2s, background-color .2s, transform .2s;
}
a:hover,
a:focus-visible { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 1.25em;
}
@media (min-width: 48em) { .wrap { padding: 0 2em; } }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    background: #fff;
    padding: .8em 1.2em;
}
.skip-link:focus { left: 1em; top: 1em; }

/* ---------- Üst bilgi şeridi ---------- */

.topbar {
    background: var(--footer);
    color: rgba(255, 255, 255, .8);
    font-size: .8rem;
}
.topbar .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4em 1.6em;
    min-height: 38px;
    padding-top: .35em;
    padding-bottom: .35em;
}
.topbar-item { display: inline-flex; align-items: center; gap: .45em; }
.topbar svg { width: 14px; height: 14px; fill: var(--teal); flex: none; }
.topbar a { color: #fff; box-shadow: none; }
.topbar a:hover { color: #fff; box-shadow: inset 0 -1px 0 #fff; }
.topbar-right { margin-left: auto; }
.topbar .sep { opacity: .5; }
.topbar-address { display: none; }
@media (min-width: 48em) { .topbar-address { display: inline-flex; } }

/* ---------- Header ---------- */

.site-header { position: relative; background: var(--bg-soft); }

.custom-header { position: relative; overflow: hidden; }

.custom-header-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.custom-header-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}
.custom-header-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20, 28, 31, 0) 35%, rgba(20, 28, 31, .78) 100%);
    pointer-events: none;
}
/* Mobilde logonun alt yazısı başlığın arkasına düşmesin */
@media (max-width: 47.99em) {
    .home .custom-header-media img { height: 128%; object-position: center top; }
}
@media (min-width: 48em) {
    .custom-header-media::after { background: linear-gradient(to bottom, rgba(20, 28, 31, 0) 30%, rgba(20, 28, 31, .55) 100%); }
}
.inner .custom-header-media::after {
    background: linear-gradient(100deg, rgba(20, 28, 31, .72) 0%, rgba(20, 28, 31, .45) 55%, rgba(20, 28, 31, .15) 100%);
}

.site-branding {
    position: relative;
    z-index: 3;
    color: #fff;
}
.home .custom-header { height: 72vh; min-height: 420px; max-height: 900px; }
@media (min-width: 48em) { .home .custom-header { height: calc(100vh - 38px - 64px); min-height: 460px; } }
.home .site-branding {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding-bottom: 3.5em;
}
.inner .site-branding { padding: 3.5em 0 3em; }

.site-overline {
    display: inline-flex;
    align-items: center;
    gap: .7em;
    margin: 0 0 .7em;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .95;
}
.site-overline::before {
    content: "";
    width: 28px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.site-title {
    margin: 0;
    max-width: 16em;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.01em;
}
.site-title a { color: #fff; box-shadow: none; }
.site-title a:hover { color: #fff; box-shadow: none; opacity: .85; }

.site-overline,
.site-title { text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }

@media (min-width: 48em) {
    .site-title { font-size: 3.1rem; }
    .inner .site-title { font-size: 2.3rem; }
    .inner .site-branding { padding: 5em 0 4em; }
}
@media (min-width: 75em) {
    .home .site-title { font-size: 3.8rem; }
}

/* ---------- Menü ---------- */

.navigation-top {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
}
.navigation-top.fixed {
    position: fixed;
    top: 0; left: 0; right: 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
    backdrop-filter: saturate(1.4) blur(6px);
}
.nav-placeholder { height: 0; }

.main-navigation {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.nav-brand {
    display: none;
    align-items: center;
    gap: .55em;
    margin-right: 1.5em;
    box-shadow: none;
    font-weight: 800;
    color: var(--heading);
}
.nav-brand:hover { box-shadow: none; }
.nav-brand img { width: 28px; height: 28px; }

.menu-toggle {
    display: flex;
    align-items: center;
    gap: .6em;
    margin: 0 auto;
    padding: 1.1em 1.2em;
    background: transparent;
    border: 0;
    color: var(--heading);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.icon-bars,
.icon-bars::before,
.icon-bars::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: transform .2s;
}
.icon-bars::before,
.icon-bars::after { content: ""; position: absolute; left: 0; }
.icon-bars::before { top: -5px; }
.icon-bars::after { top: 5px; }
.toggled .icon-bars { background: transparent; }
.toggled .icon-bars::before { top: 0; transform: rotate(45deg); }
.toggled .icon-bars::after { top: 0; transform: rotate(-45deg); }

.menu {
    display: none;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0 0 1em;
}
.toggled .menu { display: block; }
.menu li { border-top: 1px solid var(--line); }
.menu a {
    display: block;
    padding: .8em 0;
    box-shadow: none;
    font-weight: 600;
    color: var(--heading);
}
.menu a:hover { color: var(--accent); box-shadow: none; }
.menu .current > a { color: var(--accent); }

.menu-scroll-down { display: none; }

@media (min-width: 48em) {
    .menu-toggle { display: none; }
    .navigation-top.fixed .nav-brand { display: inline-flex; }
    .menu { display: flex !important; width: auto; padding: 0; }
    .menu li { border: 0; }
    .menu a { position: relative; padding: 1.3em 1.1em; }
    .main-navigation > .menu li:first-child a { padding-left: 0; }
    .navigation-top.fixed .menu li:first-child a { padding-left: 1.1em; }
    .menu a::after {
        content: "";
        position: absolute;
        left: 1.1em; right: 1.1em; bottom: -1px;
        height: 3px;
        background: var(--accent);
        border-radius: 3px 3px 0 0;
        transform: scaleX(0);
        transition: transform .2s;
    }
    .main-navigation > .menu li:first-child a::after { left: 0; }
    .navigation-top.fixed .menu li:first-child a::after { left: 1.1em; }
    .menu a:hover::after,
    .menu .current > a::after { transform: scaleX(1); }

    .home .menu-scroll-down {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        width: 34px;
        height: 34px;
        margin-top: -17px;
        border-radius: 50%;
        background: var(--bg-soft);
        box-shadow: none;
    }
    .home .menu-scroll-down::before {
        content: "";
        position: absolute;
        left: 12px; top: 9px;
        width: 9px; height: 9px;
        border-right: 2px solid var(--heading);
        border-bottom: 2px solid var(--heading);
        transform: rotate(45deg);
    }
    .home .menu-scroll-down:hover { background: var(--teal-soft); }
    .navigation-top.fixed .menu-scroll-down { display: none; }
}

/* ---------- İçerik ---------- */

.site-content { padding: 2.5em 0 1em; }

.page-article { padding-bottom: 3em; }

.entry-header { margin-bottom: 1.6em; }

.entry-title {
    margin: 0;
    padding-left: .9em;
    border-left: 3px solid var(--accent);
    color: var(--heading);
    font-size: .85rem;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.entry-content { min-width: 0; }
.entry-content h3 {
    margin: 2em 0 .5em;
    color: var(--heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}
.entry-content h3:first-child { margin-top: 0; }
.entry-content h4 {
    margin: 1em 0 .1em;
    color: var(--teal);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.entry-content p { margin: 0 0 1.3em; }
.entry-content .lead { font-size: 1.3rem; font-weight: 300; line-height: 1.5; color: var(--heading); }

.entry-content figure { margin: 0 0 1.8em; }
.entry-content figure a { box-shadow: none; display: inline-block; }
.content-image img { border-radius: var(--radius); box-shadow: var(--shadow); }

@media (min-width: 48em) {
    .site-content { padding: 4.5em 0 1em; }
    .page-article .wrap {
        display: grid;
        grid-template-columns: 30% 1fr;
        gap: 0 5%;
    }
    .entry-header { margin: 0; }
    .entry-title { position: sticky; top: 100px; }
    .page-article.wide .wrap { display: block; }
    .page-article.wide .entry-header { margin-bottom: 1.8em; }
    .page-article.wide .entry-title { position: static; }
}

/* Link listesi (Kurumsal) */

.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .6em;
}
.link-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 1.2em;
    background: var(--bg-soft);
    border-radius: var(--radius);
    box-shadow: none;
    font-weight: 600;
}
.link-list a::after {
    content: "";
    flex: none;
    width: 8px; height: 8px;
    margin-left: 1em;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform .2s;
}
.link-list a:hover { background: var(--teal-soft); color: var(--heading); box-shadow: none; }
.link-list a:hover::after { transform: translateX(4px) rotate(45deg); }

/* Anasayfa */

.home-image { margin: 0 0 1.6em !important; }
.home-image img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.service-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .9em;
}
@media (min-width: 36em) { .service-grid { grid-template-columns: 1fr 1fr; } }

.service-grid a {
    position: relative;
    display: block;
    height: 100%;
    padding: 1.15em 2.6em 1.15em 1.2em;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--teal);
    border-radius: var(--radius);
    box-shadow: none;
}
.service-grid a::after {
    content: "";
    position: absolute;
    right: 1.2em; top: 50%;
    width: 8px; height: 8px;
    margin-top: -4px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform .2s;
}
.service-grid strong { display: block; color: var(--heading); font-weight: 700; line-height: 1.35; }
.service-grid span { display: block; margin-top: .3em; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.service-grid a:hover {
    border-color: var(--line);
    border-top-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.service-grid a:hover::after { transform: translateX(3px) rotate(45deg); }

/* Kadromuz */

.staff { display: grid; gap: 1em; }
@media (min-width: 36em) { .staff { grid-template-columns: 1fr 1fr; } }
.staff-card {
    padding: 1.4em 1.5em .5em;
    background: var(--bg-soft);
    border-top: 3px solid var(--teal);
    border-radius: var(--radius);
}
.staff-card h3 { margin: 0 0 .1em; font-size: .95rem; color: var(--muted); font-weight: 600; }
.staff-card h3 + p { font-size: 1.15rem; font-weight: 700; color: var(--heading); }
.staff-card h4:first-child { margin-top: 0; }
.staff-card p { margin: 0 0 1em; }

/* Tablolar */

.table-caption {
    margin: 0 0 1em !important;
    color: var(--muted);
    font-size: .85rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.5;
}
.table-caption strong { display: block; color: var(--heading); font-size: 1rem; letter-spacing: .02em; }

.table-wrap {
    margin: 0 0 2em;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    -webkit-overflow-scrolling: touch;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    line-height: 1.45;
}
.data-table th,
.data-table td {
    padding: .75em .9em;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}
.data-table thead th {
    background: var(--footer);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    vertical-align: bottom;
}
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table .num { width: 3.5em; text-align: center; color: var(--muted); font-weight: 600; }
.data-table .time { text-align: center; white-space: nowrap; }
.data-table thead .num { color: #fff; }
.data-table thead .time { width: 11em; white-space: normal; }
.standards { min-width: 600px; }
.standards tbody tr:nth-child(even) { background: var(--bg-soft); }
.standards tbody tr:hover { background: var(--teal-soft); }
.standards td.time { font-weight: 700; color: var(--accent-dark); }

.schedule { min-width: 640px; }
.schedule thead th span {
    display: block;
    margin-top: .3em;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    opacity: .7;
}
.schedule td { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.schedule tbody th { font-weight: 600; color: var(--heading); white-space: nowrap; }
.schedule tbody + tbody { border-top: 2px solid var(--line); }
.schedule .doctor { background: var(--bg-soft); border-right: 1px solid var(--line); vertical-align: top; }
.schedule .total > * { background: var(--teal-soft); font-weight: 700; }

/* Galeri */

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.gallery a { box-shadow: none; overflow: hidden; aspect-ratio: 1; display: block; border-radius: var(--radius); }
.gallery img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.gallery a:hover img { transform: scale(1.06); }
@media (min-width: 48em) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* İletişim */

.contact { display: grid; gap: 1em; }
.contact section {
    padding: 1.3em 1.5em .4em;
    background: var(--bg-soft);
    border-left: 3px solid var(--teal);
    border-radius: var(--radius);
}
.contact section:first-child { border-left-color: var(--accent); }
.contact h3 { margin-top: 0; }
.contact p { margin-bottom: .7em; }

/* Lightbox */

.lb {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3em 1em;
    background: rgba(10, 14, 16, .92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
}
.lb.open { opacity: 1; visibility: visible; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lb button {
    position: absolute;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    padding: .3em .5em;
    cursor: pointer;
    opacity: .8;
}
.lb button:hover { opacity: 1; }
.lb .lb-close { top: .3em; right: .3em; }
.lb .lb-prev { left: .2em; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: .2em; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */

.site-footer {
    margin-top: 3em;
    background: var(--footer);
    color: rgba(255, 255, 255, .72);
    font-size: .9rem;
}
.site-footer a { color: #fff; box-shadow: none; }
.site-footer a:hover { color: #fff; box-shadow: inset 0 -1px 0 #fff; }
.footer-grid {
    display: grid;
    gap: 2em;
    padding-top: 3em;
    padding-bottom: 2.5em;
}
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-col p { margin: 0 0 .7em; }
.footer-col h2 {
    margin: 0 0 1em;
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .6em; line-height: 1.45; }
.footer-overline {
    color: var(--teal);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.footer-title { color: #fff; font-size: 1.2rem; font-weight: 800; line-height: 1.3; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5em 2em;
    padding-top: 1.2em;
    padding-bottom: 1.4em;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .8rem;
}
.footer-bottom p { margin: 0; }
