/* Şumnulu Madencilik — mobil öncelikli */

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter.woff") format("woff");
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --bg: #181818;
    --dark: #202020;
    --surface: #282828;
    --raised: #303030;
    --card: #262626;
    --line: #404040;
    --line-soft: rgb(216 216 216 / .075);
    --text: #d8d8d8;
    --muted: rgb(216 216 216 / .76);
    --faint: rgb(216 216 216 / .62);
    --red: #ff4040;
    --orange: #ff8020;
    --grad: linear-gradient(90deg, var(--red), var(--orange));
    --accent-soft: rgb(255 64 64 / .08);
    --accent-line: rgb(255 64 64 / .22);

    --wrap: 80rem;
    --gutter: 1.25rem;
    --r-btn: 6px;
    --r-card: 12px;
    --dock-h: 4.6rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
    margin: 0;
    padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
    background: var(--bg);
    color: var(--text);
    font: 400 .9375rem/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 520; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--text); text-underline-offset: .2em; text-decoration-color: rgb(216 216 216 / .35); }
a:hover { color: var(--orange); text-decoration-color: currentColor; }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip { position: absolute; left: -999px; top: .5rem; z-index: 30; padding: .6rem 1rem; background: var(--red); color: #fff; border-radius: var(--r-btn); }
.skip:focus { left: .5rem; }

/* Küçük üst etiket */
.eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgb(255 64 64 / .7); }

/* Üst bant */
.top { position: sticky; top: 0; z-index: 20; background: var(--dark); border-bottom: 1px solid var(--line-soft); }
.top__in { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }

.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand__mark { height: 2rem; width: auto; display: block; }
.brand__text { font-size: 1.15rem; font-weight: 650; letter-spacing: -.03em; }
.brand__text .grad { margin-left: .3em; }

.nav { display: none; }
.top .top__call { display: none; }

/* Düğmeler */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 2.75rem; padding: 0 1.1rem;
    border: 1px solid transparent; border-radius: var(--r-btn);
    font-size: .875rem; font-weight: 650; text-decoration: none; white-space: nowrap;
    transition: filter .15s, background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn--grad { background: var(--grad); border-color: rgb(255 255 255 / .9); color: #fff; }
.btn--grad:hover { color: #fff; filter: brightness(1.08); }
.btn--dark { background: var(--raised); border-color: var(--line); color: var(--text); font-weight: 550; }
.btn--dark:hover { color: var(--text); background: #383838; }
.btn--dark .arrow { color: var(--red); }
.btn--sm { min-height: 2.5rem; font-size: .8rem; }
.btn--lg { min-height: 3.25rem; padding: 0 1.4rem; font-size: .95rem; }
.arrow { font-weight: 400; transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

.link { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-size: .875rem; font-weight: 500; text-decoration: none; }
.link:hover .arrow { transform: translateY(2px); }

/* Mobil alt çubuk */
.dock {
    position: fixed; inset: auto 0 0 0; z-index: 20;
    display: grid; grid-template-columns: 1.5fr 1fr; gap: .5rem;
    padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom));
    background: rgb(32 32 32 / .96);
    border-top: 1px solid var(--line-soft);
    backdrop-filter: blur(10px);
}
.dock .btn { min-height: 3rem; }

/* Açılış */
.hero { position: relative; padding-block: 2.75rem 3.5rem; overflow: hidden; isolation: isolate; }
.hero::before {
    content: ""; position: absolute; z-index: -1; top: -30%; right: -30%; width: 80vw; height: 80vw; max-width: 46rem; max-height: 46rem;
    background: radial-gradient(closest-side, rgb(255 96 48 / .12), transparent);
    pointer-events: none;
}
.hero h1 { margin-top: 1.4rem; font-size: clamp(2.6rem, 11vw, 6.5rem); letter-spacing: -.065em; line-height: .98; color: var(--text); }
.hero h1 .grad { display: block; padding-bottom: .08em; }
.hero__row { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.hero__list { font-size: clamp(1.2rem, 4.5vw, 1.5rem); line-height: 1.35; color: var(--muted); letter-spacing: -.02em; }
.lead { max-width: 30rem; color: var(--muted); font-size: 1rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.hero__note { margin-top: 1.25rem; color: var(--muted); font-size: .875rem; }
.hero__note a { color: var(--text); font-weight: 600; text-decoration: none; }
.spark { color: var(--red); margin-right: .5rem; }

/* Bölümler */
.block { padding-block: 3.5rem; border-top: 1px solid var(--line-soft); }
.block__head { display: grid; gap: 1rem; margin-bottom: 2rem; }
.block h2 { font-size: clamp(2rem, 7vw, 3.5rem); letter-spacing: -.05em; color: var(--text); }
.block h2 .grad { display: block; padding-bottom: .06em; }
.block__sub { max-width: 36rem; color: var(--muted); }
.block h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.note { margin-top: 1.5rem; color: var(--faint); font-size: .875rem; max-width: 40rem; }

.card { background: var(--card); border: 1px solid #444; border-radius: var(--r-card); box-shadow: 0 12px 30px rgb(0 0 0 / .4); }

/* Malzemeler */
.materials { display: grid; gap: .75rem; }
.material { position: relative; padding: 1.4rem 1.4rem 1.5rem; overflow: hidden; }
.material::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); opacity: .85; }
.material p { margin-top: .5rem; color: var(--muted); }

/* Teslimat haritası çerçevesi */
.frame { margin-inline: calc(var(--gutter) * -1); background: var(--card); border-block: 1px solid #444; box-shadow: 0 12px 30px rgb(0 0 0 / .4); overflow: hidden; }
.frame__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem var(--gutter); border-bottom: 1px solid var(--line-soft); background: var(--dark); }
.frame__title { display: flex; align-items: center; gap: .55rem; font-size: .875rem; font-weight: 600; }
.frame__title img { height: 1rem; width: auto; }
.frame__badge { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .8rem; }
.frame__badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

.harita { position: relative; padding: 1.5rem 0 0; }
.harita__kadraj { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
.harita__kadraj::-webkit-scrollbar { display: none; }
.harita svg { display: block; width: 185%; height: auto; padding-inline: var(--gutter); overflow: visible; }

.il {
    stroke: var(--card);
    stroke-width: 1.2;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    transition: fill .15s;
    cursor: pointer;
    outline: none;
}
.il:not(.il--tam, .il--kismi) { fill: var(--raised); }
.il:not(.il--tam, .il--kismi):hover { fill: #3c3c3c; }
/* .il--tam ve .il--kismi: dolgu SVG içinde fill="url(#teslim)" ve fill="url(#tarama)" ile verilir */
.tarama__zemin { fill: #3a2422; }
.tarama__cizgi { fill: #ff6030; }

.harita__kabar {
    pointer-events: none;
    transform-box: fill-box;
    transform-origin: center;
    stroke: #fff;
    stroke-width: 1.5;
    filter: drop-shadow(0 6px 10px rgb(0 0 0 / .6));
}
.harita__kabar.is-on { animation: kabar .2s cubic-bezier(.2, .8, .3, 1.3) forwards; }
@keyframes kabar { to { transform: scale(1.08); } }

.harita__ocak { pointer-events: none; }
.harita__ocak-halka { fill: none; stroke: #fff; stroke-width: 2.5; }
.harita__ocak-nokta { fill: var(--card); stroke: #fff; stroke-width: 2; }

.harita__ipucu {
    position: absolute; z-index: 2;
    transform: translate(-50%, calc(-100% - 10px));
    padding: .5rem .75rem; border-radius: 8px;
    background: var(--raised); border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgb(0 0 0 / .5);
    color: var(--muted); font-size: .8rem; line-height: 1.4; white-space: nowrap;
    pointer-events: none;
}
.harita__ipucu strong { display: block; color: var(--text); font-size: .95rem; font-weight: 600; }

.harita__lejant { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 1.1rem var(--gutter); margin-top: 1rem; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .8rem; }
.lejant::before { content: ""; display: inline-block; width: .8rem; height: .8rem; margin-right: .45rem; border-radius: 3px; vertical-align: -.1em; }
.lejant--tam::before { background: var(--grad); }
.lejant--kismi::before { background: repeating-linear-gradient(45deg, #ff6030 0 2.5px, #3a2422 2.5px 5px); }
.lejant--ocak::before { border-radius: 50%; background: var(--card); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px #fff; width: .55rem; height: .55rem; margin-right: .7rem; margin-left: .2rem; vertical-align: 0; }

.bolge-liste { margin-top: 1.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); font-size: .85rem; font-weight: 500; }
.chip small { color: var(--faint); font-size: .75rem; }
.chip--on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--orange); }

/* Sipariş adımları */
.steps { display: grid; gap: .75rem; }
.steps li { padding: 1.4rem 1.4rem 1.5rem; }
.steps__n { display: inline-block; margin-bottom: 1.25rem; font-size: .8rem; font-weight: 650; letter-spacing: .1em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps p { color: var(--muted); margin-top: .5rem; }

/* İletişim */
.contact { display: grid; gap: .75rem; }
.contact .card { padding: 1.2rem 1.4rem; }
.contact dt { color: var(--faint); font-size: .8rem; font-weight: 500; }
.contact dd { margin-top: .3rem; overflow-wrap: anywhere; }
.contact__big { font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-decoration: none; }

/* Hata sayfaları */
.status { min-height: 62vh; display: flex; align-items: center; border-top: 0; }
.status__code { font-size: clamp(5rem, 24vw, 10rem); font-weight: 650; letter-spacing: -.07em; line-height: .9; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.status h1 { font-size: clamp(1.75rem, 6vw, 2.75rem); letter-spacing: -.045em; margin-top: .75rem; }
.status p:not(.status__code) { color: var(--muted); margin-top: .75rem; }
.status .hero__actions { margin-top: 1.75rem; }

/* Alt bilgi */
.foot { padding-block: 3rem 2rem; border-top: 1px solid var(--line-soft); background: var(--dark); color: var(--muted); font-size: .875rem; }
.foot__grid { display: grid; gap: 2rem; }
.foot__brand p { margin-top: .9rem; max-width: 20rem; }
.foot__title { margin-bottom: .75rem; color: var(--text); font-weight: 600; }
.foot ul { display: grid; gap: .45rem; }
.foot ul a { color: var(--muted); text-decoration: none; }
.foot ul a:hover { color: var(--orange); }
.foot__copy { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: .8rem; }

/* Tablet ve üstü */
@media (min-width: 40rem) {
    :root { --gutter: 2rem; }
    .hero__row { grid-template-columns: 1fr 1fr; align-items: start; gap: 2rem; }
    .materials, .contact { grid-template-columns: 1fr 1fr; }
    .frame { margin-inline: 0; border: 1px solid #444; border-radius: var(--r-card); }
    .foot__grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* Masaüstü */
@media (min-width: 64rem) {
    :root { --dock-h: 0rem; }
    .dock { display: none; }

    .nav { display: flex; gap: 1.75rem; margin-left: auto; }
    .nav a { color: var(--muted); font-size: .875rem; text-decoration: none; }
    .nav a:hover { color: var(--text); }
    .top .top__call { display: inline-flex; margin-left: .5rem; }

    .hero { padding-block: 5rem 6rem; }
    .hero__row { max-width: 62rem; gap: 4rem; }
    .lead { padding-top: .25rem; }

    .block { padding-block: 6rem; }
    .materials { grid-template-columns: repeat(4, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .contact { grid-template-columns: repeat(4, 1fr); }

    .harita__kadraj { overflow: visible; -webkit-mask-image: none; mask-image: none; }
    .harita svg { width: 100%; padding-inline: 2rem; }
    .harita__lejant { padding-inline: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
