/* Erad İnşaat: Konsept A "Lüks Minimal". Dark stone background, full-width imagery, thin gold rules. */
:root {
    --bg: #141412;
    --bg2: #1c1c19;
    --line: #34322c;
    --fg: #efebe3;
    --muted: #a39e92;
    --gold: #c8b07e;
    --gold-ink: #141412;
    --wa: #25d366;
    --danger: #e58f7b;
    --display: "Bodoni Moda", "Didot", Georgia, serif;
    --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 96px); line-height: 1; letter-spacing: -.01em; margin-top: 18px; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06; margin-top: 14px; }
h3, .h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.lead { font-size: 18px; max-width: 58ch; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 700px) { .wrap { padding-inline: 32px; } }
.eyebrow { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0; }
.eyebrow a { text-decoration: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 15px 22px; border: 1px solid var(--gold); color: var(--gold); background: transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover, .btn:focus-visible { background: var(--gold); color: var(--gold-ink); }
.btn.solid { background: var(--gold); color: var(--gold-ink); }
.btn.solid:hover, .btn.solid:focus-visible { background: var(--fg); border-color: var(--fg); }
.btn-sm { padding: 12px 18px; font-size: 12px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(20, 20, 18, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; padding-block: 12px; }
.brand img { height: 46px; width: auto; }
.menu { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.menu > ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 14px; letter-spacing: .04em; }
.menu a { text-decoration: none; color: var(--muted); transition: color .2s; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--fg); }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: -18px; min-width: 240px; list-style: none; margin: 0; padding: 14px 0; background: var(--bg2); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.sub a { display: block; padding: 8px 18px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.lang { display: flex; gap: 6px; font-size: 12px; letter-spacing: .12em; color: var(--line); }
.lang a[aria-current="true"] { color: var(--gold); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; cursor: pointer; padding: 0; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--fg); transition: transform .2s, top .2s; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 18, .15) 0%, rgba(20, 20, 18, .2) 40%, rgba(20, 20, 18, .92) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-block: 72px 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.hero .lead { color: #d8d3c8; font-size: 16px; max-width: 40ch; margin-bottom: 26px; }

/* Trust row */
.trust { border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.trust .t { padding: 34px 24px 30px 0; border-right: 1px solid var(--line); }
.trust .t:last-child { border-right: 0; }
.trust .t + .t { padding-left: 24px; }
.trust b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.trust span { font-size: 13px; color: var(--muted); letter-spacing: .04em; }

/* Sections */
.block { padding-block: 96px; }
.block.tight { padding-block: 56px 96px; }
.alt { background: var(--bg2); }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.split-head p { max-width: 52ch; margin: 0; }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }

/* Services */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc a { background: var(--bg); text-decoration: none; display: flex; flex-direction: column; }
.svc figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.svc figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.svc a:hover img { transform: scale(1.04); }
.svc .txt { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc h3 { font-size: 28px; }
.svc p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.svc .more { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 14px; }

/* Project cards */
.card { position: relative; overflow: hidden; text-decoration: none; display: block; background: var(--bg2); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover img { transform: scale(1.05); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(10, 10, 9, .88) 100%); }
.card .cap { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; color: #fff; }
.card .cap small { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.card .cap strong { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 240px; gap: 14px; }
.c1 { grid-column: span 4; grid-row: span 2; }
.c2, .c3, .c4, .c5, .c6 { grid-column: span 2; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card.tall { aspect-ratio: 4 / 5; }

/* CTA */
.cta .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 28px 0 34px; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li span { color: var(--muted); text-align: right; }

/* Band (inline call to action) */
.band { border-block: 1px solid var(--line); background: var(--bg2); padding-block: 48px; }
.band-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 6px; }
.band p { margin: 0; }

/* Page heads */
.page-head { padding-block: 72px 48px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(40px, 5.6vw, 80px); margin-bottom: 20px; }
.page-head .two, .wrap.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tabs a { text-decoration: none; font-size: 13px; letter-spacing: .06em; padding: 10px 16px; border: 1px solid var(--line); color: var(--muted); }
.tabs a:hover { color: var(--fg); border-color: var(--muted); }
.tabs a[aria-current="page"] { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
.meta { display: flex; flex-wrap: wrap; gap: 0; margin: 8px 0 28px; border-top: 1px solid var(--line); }
.meta div { padding: 14px 32px 14px 0; margin-right: 32px; border-right: 1px solid var(--line); }
.meta div:last-child { border-right: 0; }
.meta dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.meta dd { margin: 4px 0 0; }
.project-desc { color: #d8d3c8; max-width: 70ch; white-space: pre-line; }
.prose p { color: #d8d3c8; }
.prose h2 { margin: 36px 0 12px; }
.prose a { color: var(--gold); }
.narrow { max-width: 780px; }

/* Gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg2); }
.gallery a.wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(10, 10, 9, .96); color: var(--fg); }
.lightbox::backdrop { background: rgba(10, 10, 9, .9); }
.lightbox img { position: absolute; inset: 56px 64px; width: calc(100% - 128px); height: calc(100% - 112px); object-fit: contain; }
.lightbox button { position: absolute; background: transparent; border: 1px solid var(--line); color: var(--fg); width: 48px; height: 48px; font-size: 22px; cursor: pointer; }
.lightbox button:hover { border-color: var(--gold); color: var(--gold); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 13px; color: var(--muted); letter-spacing: .1em; }

/* About */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.person { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 24px; border: 1px solid var(--line); background: var(--bg2); }
.person img { width: 160px; height: 200px; object-fit: cover; filter: grayscale(.2); }
.person .role { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 6px 0 12px; }
.person ul { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }

/* Contact */
.contact-list { margin: 32px 0 0; border-top: 1px solid var(--line); }
.contact-list div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; text-align: right; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold); }
.panel { background: var(--bg2); border: 1px solid var(--line); padding: 32px; }
.panel h2 { margin: 0 0 20px; }
.video-band { height: 340px; overflow: hidden; border-top: 1px solid var(--line); }
.video-band video { width: 100%; height: 100%; object-fit: cover; opacity: .75; }

/* Forms */
.quote-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form input[type="text"], .quote-form input[type="tel"], .quote-form input[type="email"], .quote-form select, .quote-form textarea {
    width: 100%; font: 400 16px/1.4 var(--body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; transition: border-color .2s;
}
.quote-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.quote-form textarea { resize: vertical; min-height: 96px; }
.quote-form :is(input, select, textarea):focus { outline: none; border-color: var(--gold); }
.quote-form .invalid { border-color: var(--danger) !important; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--gold); }
.check.invalid span { color: var(--danger); }
.check a { color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 0; margin: 0; font-size: 14px; color: var(--danger); }
.form-msg:empty { display: none; }
.form-done { padding: 8px 0; }
.form-done h3 { color: var(--gold); margin-bottom: 10px; }

/* Quote dialog */
.quote { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 36px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); overflow: auto; }
.quote::backdrop { background: rgba(10, 10, 9, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.quote[open] { animation: rise .35s ease-out; }
.quote h2 { font-size: clamp(28px, 4vw, 38px); margin: 10px 0 10px; }
.quote .x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; background: transparent; border: 0; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; }
.quote .x:hover { color: var(--fg); }
.choices { display: grid; gap: 10px; margin: 22px 0 18px; }
@media (min-width: 700px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; justify-content: space-between; gap: 12px; align-items: center; width: 100%; text-align: left; font: 500 17px/1.3 var(--body); color: var(--fg); background: var(--bg2); border: 1px solid var(--line); padding: 18px 20px; cursor: pointer; transition: border-color .2s, color .2s; }
.choice span { color: var(--gold); transition: transform .2s; }
.choice:hover, .choice:focus-visible { border-color: var(--gold); }
.choice:hover span { transform: translateX(4px); }
.or { font-size: 14px; color: var(--muted); margin: 0; }
.or a { color: var(--gold); text-decoration: none; }
.back { background: none; border: 0; color: var(--muted); font: 500 13px var(--body); letter-spacing: .08em; padding: 0; cursor: pointer; }
.back:hover { color: var(--fg); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 40px; font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.foot img { height: 56px; width: auto; }
.foot h2 { font-family: var(--body); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 8px; }
.foot p, .foot a { color: var(--muted); text-decoration: none; margin: 0; }
.foot a:hover { color: var(--fg); }
.foot .col { display: flex; flex-direction: column; gap: 8px; }
.foot .tagline { margin-top: 12px; max-width: 30ch; }
.legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.legal a { color: var(--muted); }

/* WhatsApp */
.wa { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; align-items: center; gap: 10px; background: var(--wa); color: #06331a; text-decoration: none; font-weight: 600; font-size: 14px; padding: 12px 18px 12px 12px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.wa svg { width: 28px; height: 28px; }

.error-page { min-height: 60vh; display: flex; align-items: center; border: 0; }

@media (max-width: 900px) {
    html { scroll-padding-top: 72px; }
    .brand img { height: 40px; }
    .nav { gap: 12px; }
    .nav > .btn { margin-left: auto; }
    .menu-toggle { display: block; }
    .menu { position: fixed; inset: 65px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 16px 24px; background: var(--bg); border-bottom: 1px solid var(--line); max-height: calc(100dvh - 65px); overflow: auto; display: none; }
    .menu.open { display: flex; }
    .menu > ul { flex-direction: column; gap: 0; font-size: 18px; }
    .menu > ul > li { border-bottom: 1px solid var(--line); }
    .menu > ul a { display: block; padding: 14px 0; color: var(--fg); }
    .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: none; padding: 0 0 10px 14px; min-width: 0; }
    .sub a { padding: 8px 0; font-size: 15px; color: var(--muted); }
    .lang { padding-top: 18px; font-size: 14px; }
    .hero { min-height: 82vh; }
    .hero .wrap, .split-head, .cta .wrap, .page-head .two, .wrap.two { grid-template-columns: 1fr; }
    .hero .wrap { gap: 20px; padding-block: 48px 40px; }
    .trust .wrap { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
    .trust .t { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 12px 22px 0 !important; }
    .trust .t:nth-child(odd) { border-right: 1px solid var(--line); }
    .trust .t:nth-child(even) { padding-left: 16px !important; }
    .svc, .grid3, .team { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 10px; }
    .c1 { grid-column: span 2; grid-row: span 2; }
    .c2, .c3, .c4, .c5, .c6 { grid-column: span 1; grid-row: span 1; }
    .card .cap { left: 14px; right: 14px; bottom: 14px; }
    .card .cap strong { font-size: 19px; }
    .card.tall { aspect-ratio: 4 / 3; }
    .foot { grid-template-columns: 1fr 1fr; }
    .foot .col:first-child { grid-column: span 2; }
    .block { padding-block: 64px; }
    .block.tight { padding-block: 40px 64px; }
    .page-head { padding-block: 48px 36px; }
    .gallery { grid-template-columns: 1fr 1fr; gap: 6px; }
    .person { grid-template-columns: 96px 1fr; padding: 16px; gap: 16px; }
    .person img { width: 96px; height: 120px; }
    .row2 { grid-template-columns: 1fr; }
    .panel { padding: 22px; }
    .video-band { height: 220px; }
    .wa span { display: none; }
    .wa { padding: 12px; }
    .lightbox img { inset: 64px 8px; width: calc(100% - 16px); height: calc(100% - 128px); }
    .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 8px; transform: none; }
    /* Popup: bottom sheet that leaves the page visible above it. */
    .quote { margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: 88dvh; padding: 28px 20px calc(24px + env(safe-area-inset-bottom, 0px)); border-width: 1px 0 0; }
    .quote h2 { font-size: 28px; }
    .choice { padding: 15px 16px; font-size: 16px; }
}
@media (max-width: 420px) {
    .nav > .btn { padding: 11px 12px; letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}
