/* ============================================================
   İST.DENTAL — Stil
   Palet: derin mürekkep-teal + buz mavisi + mineral kontrast
   Tip: Fraunces (başlık) / Inter (gövde)
   ============================================================ */

:root {
    --ink:        #0f3a3d;   /* derin teal-mürekkep, ana metin & marka */
    --ink-soft:   #2c5a5d;
    --ice:        #eef6f7;   /* buz mavisi arka plan */
    --ice-deep:   #dcecef;
    --paper:      #ffffff;
    --line:       #d4e2e4;
    --accent:     #1f8a8f;   /* doğrulama / vurgu teal */
    --accent-deep:#15686c;
    --mineral:    #c98a5e;   /* sıcak kontrast (sadece küçük dokunuşlar) */
    --muted:      #6b8385;
    --danger:     #b4452f;
    --ok:         #2c7a51;
    --radius:     14px;
    --radius-sm:  9px;
    --shadow:     0 1px 2px rgba(15,58,61,.06), 0 8px 24px -12px rgba(15,58,61,.18);
    --shadow-lg:  0 24px 60px -28px rgba(15,58,61,.35);
    --maxw:       1120px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--ice);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

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

/* ---- HEADER ---- */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.brand {
    display: inline-flex; align-items: center; gap: 9px;
    text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand__logo { height: 46px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--accent-deep); text-decoration: none; }
.nav-link-muted { color: var(--muted) !important; }
.nav-cta {
    background: var(--ink); color: #fff !important;
    padding: 9px 16px; border-radius: 999px; font-size: .9rem;
}
.nav-cta:hover { background: var(--accent-deep); text-decoration: none; }
.nav-cta--ghost {
    background: transparent; color: var(--ink) !important;
    border: 1px solid var(--line);
}

.nav-toggle {
    display: none; flex-direction: column; gap: 4px;
    background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---- HERO + ARAMA ---- */
.hero {
    background: linear-gradient(180deg, var(--paper) 0%, var(--ice) 100%);
    padding: 64px 0 40px;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; }
.hero__tooth {
    position: absolute;
    top: 50%; right: -40px;
    transform: translateY(-50%);
    height: 420px; width: auto;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}
.hero__eyebrow {
    font-size: .8rem; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 14px;
}
.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.3rem);
    max-width: 16ch; margin-bottom: .35em;
}
.hero__lead {
    font-size: 1.12rem; color: var(--ink-soft);
    max-width: 52ch; margin: 0 0 28px;
}

.search-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 12px; align-items: end;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select {
    height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 0 13px; font-size: .98rem; font-family: inherit; color: var(--ink);
    background: var(--paper);
}
.field input:focus, .field select:focus {
    outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.btn {
    height: 46px; padding: 0 22px; border-radius: var(--radius-sm);
    border: 0; font-family: inherit; font-size: .98rem; font-weight: 600;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; text-decoration: none;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); text-decoration: none; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-deep); text-decoration: none; }
.btn--block { width: 100%; }
.btn--sm { height: 38px; padding: 0 15px; font-size: .88rem; }

/* ---- KURUMSAL ÇAĞRI BANDI (cam efekti) ---- */
.corp-band {
    margin: 40px 0;
    background: linear-gradient(120deg, var(--ice-deep), var(--ice));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    position: relative; overflow: hidden;
}
.corp-band__glass {
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: var(--radius);
}
.corp-band__text { max-width: 60ch; }
.corp-band__text h3 { font-size: 1.3rem; margin-bottom: 6px; }
.corp-band__text p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.corp-band__actions { display: flex; gap: 10px; flex-shrink: 0; }
.corp-band__icon { color: var(--accent); flex-shrink: 0; }

/* ---- ROZETLER (imza öğesi) ---- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 999px;
    border: 1px solid transparent;
}
.badge--verified {
    color: var(--accent-deep); background: #e3f1f1; border-color: #c5e3e3;
}
.badge--open  { color: var(--ok); background: #e6f3ec; }
.badge--closed{ color: var(--muted); background: #eef2f2; }
.badge--soft  { color: var(--ink-soft); background: var(--ice); }

/* ---- KLİNİK LİSTESİ ---- */
.list-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 32px 0 56px; }
.filters {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px; align-self: start;
    position: sticky; top: 84px;
}
.filters h3 { font-size: 1rem; margin-bottom: 14px; }
.filters .field { margin-bottom: 14px; }
.filters__check { display: flex; align-items: center; gap: 8px; font-size: .92rem; margin-bottom: 8px; color: var(--ink-soft); }

.list-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.list-head h1 { font-size: 1.6rem; margin: 0; }
.list-count { color: var(--muted); font-size: .92rem; }

.clinic-grid { display: grid; gap: 14px; }
.clinic-card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px 20px;
    display: flex; gap: 16px; align-items: flex-start;
    transition: border-color .15s, box-shadow .15s;
}
.clinic-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.clinic-card__body { flex: 1; min-width: 0; }
.clinic-card__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.clinic-card__name { font-family: 'Fraunces', serif; font-size: 1.18rem; font-weight: 600; color: var(--ink); }
.clinic-card__name a { color: inherit; }
.clinic-card__name a:hover { color: var(--accent-deep); text-decoration: none; }
.clinic-card__meta { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.clinic-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .76rem; color: var(--ink-soft); background: var(--ice); padding: 3px 9px; border-radius: 6px; }
.clinic-card__side { text-align: right; flex-shrink: 0; }

/* ---- PROFİL DETAY ---- */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; padding: 32px 0 56px; }
.detail-main { min-width: 0; }
.detail-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.detail-head h1 { font-size: 2rem; margin: 0; }
.detail-sub { color: var(--muted); margin-bottom: 22px; }
.detail-section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.detail-section h2 { font-size: 1.15rem; margin-bottom: 12px; }
.info-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ice-deep); }
.info-row:last-child { border-bottom: 0; }
.info-row__label { width: 130px; color: var(--muted); font-size: .9rem; flex-shrink: 0; }
.info-row__value { color: var(--ink); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 7px 0; border-bottom: 1px solid var(--ice-deep); font-size: .94rem; }
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }
.hours-table tr.today td { font-weight: 600; color: var(--accent-deep); }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 10px; }
.photo-strip img { border-radius: var(--radius-sm); height: 130px; object-fit: cover; width: 100%; }

.detail-aside { align-self: start; position: sticky; top: 84px; }
.claim-box {
    background: linear-gradient(135deg, var(--ice-deep), var(--ice));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.claim-box h3 { font-size: 1.1rem; margin-bottom: 8px; }
.claim-box p { font-size: .92rem; color: var(--ink-soft); margin: 0 0 14px; }
.claim-box .btn { width: 100%; margin-bottom: 8px; }
.map-embed { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }

/* ---- PAKET KARTLARI (/klinikler-icin) ---- */
.page-hero { padding: 56px 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: var(--ink-soft); max-width: 60ch; margin: 0 auto; font-size: 1.08rem; }
.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 32px 0; }
.pkg-card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column;
}
.pkg-card--feature { border-color: var(--accent); box-shadow: var(--shadow); }
.pkg-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.pkg-price { font-size: .92rem; color: var(--accent-deep); font-weight: 600; margin-bottom: 14px; }
.pkg-list { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.pkg-list li { font-size: .9rem; color: var(--ink-soft); padding: 6px 0 6px 22px; position: relative; }
.pkg-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.notice {
    background: #fff8f2; border: 1px solid #f0dcc8; border-radius: var(--radius);
    padding: 18px 20px; color: #7a5230; font-size: .92rem; margin: 24px 0;
}

/* ---- FORMLAR ---- */
.form-wrap { max-width: 560px; margin: 40px auto; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); margin-bottom: 22px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 11px 13px; font-size: .98rem; font-family: inherit; color: var(--ink); background: var(--paper);
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.check-grid label { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 400; color: var(--ink-soft); }
.form-foot { margin-top: 8px; font-size: .88rem; color: var(--muted); text-align: center; }

/* ---- FLASH ---- */
.flash { padding: 12px 18px; border-radius: var(--radius-sm); margin: 16px auto; max-width: var(--maxw); font-size: .94rem; }
.flash--info    { background: #e3f1f1; color: var(--accent-deep); }
.flash--success { background: #e6f3ec; color: var(--ok); }
.flash--error   { background: #fbeae6; color: var(--danger); }

/* ---- PANEL / ADMIN ---- */
.panel-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px 0 56px; }
.panel-nav { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; align-self: start; position: sticky; top: 84px; }
.panel-nav a { display: block; padding: 10px 13px; border-radius: var(--radius-sm); color: var(--ink-soft); font-size: .93rem; font-weight: 500; }
.panel-nav a:hover, .panel-nav a.active { background: var(--ice); color: var(--accent-deep); text-decoration: none; }
.panel-main { min-width: 0; }
.panel-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 16px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat__num { font-family: 'Fraunces', serif; font-size: 2rem; color: var(--ink); line-height: 1; }
.stat__label { color: var(--muted); font-size: .85rem; margin-top: 4px; }

table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th { text-align: left; padding: 10px; border-bottom: 2px solid var(--line); color: var(--ink-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
table.data td { padding: 10px; border-bottom: 1px solid var(--ice-deep); }
table.data tr:hover td { background: var(--ice); }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.pill--ucretsiz { background: #eef2f2; color: var(--muted); }
.pill--bekliyor { background: #fff4e3; color: #9a6a1e; }
.pill--ok { background: #e6f3ec; color: var(--ok); }
.pill--kurumsal { background: #e3f1f1; color: var(--accent-deep); }
.pill--pasif { background: #fbeae6; color: var(--danger); }

/* ---- FOOTER ---- */
.site-footer { background: var(--ink); color: #cfe2e3; padding: 48px 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-brand { font-family: 'Fraunces', serif; font-size: 1.5rem; color: #fff; margin-bottom: 10px; }
.footer-note { font-size: .9rem; color: #9dc3c4; max-width: 44ch; margin: 0; }
.footer-col h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer-col a { display: block; color: #9dc3c4; font-size: .92rem; padding: 4px 0; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-baseline { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 24px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.footer-baseline > span:first-child { font-size: .85rem; color: #7fa6a7; z-index: 1; }
.footer-watermark { font-family: 'Fraunces', serif; font-size: clamp(2rem, 9vw, 6rem); font-weight: 600; color: rgba(255,255,255,.05); letter-spacing: .02em; line-height: 1; user-select: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 920px) {
    .list-layout, .detail-layout, .panel-layout { grid-template-columns: 1fr; }
    .pkg-grid { grid-template-columns: repeat(2,1fr); }
    .stat-grid { grid-template-columns: repeat(2,1fr); }
    .filters, .detail-aside, .panel-nav { position: static; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 720px) {
    .hero__tooth { height: 240px; right: -60px; opacity: 0.05; }
    .nav-toggle { display: flex; }
    .site-nav {
        display: none; position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 20px 16px;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 11px 0; border-bottom: 1px solid var(--ice-deep); }
    .nav-cta, .nav-cta--ghost { text-align: center; margin-top: 8px; }
    .search-card { grid-template-columns: 1fr; }
    .corp-band { flex-direction: column; align-items: flex-start; }
    .corp-band__actions { width: 100%; flex-direction: column; }
    .corp-band__actions .btn { width: 100%; }
    .form-grid-2, .check-grid { grid-template-columns: 1fr; }
    .pkg-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
