/*
 * Süslü Yapı — ön yüz stilleri.
 * Motif: giydirme cephe. Proje ızgarası ince "kayıt" aralıklarıyla ayrılan cam paneller gibi.
 */

:root {
    --blue: #005ead;
    --blue-dark: #004a8a;
    --graphite: #2b3036;
    --ink: #23272c;
    --steel: #5f6670;
    --alu: #e7eaed;
    --line: #cdd2d8;
    --glass: #e6eff7;
    --white: #fff;
    --danger: #b3261e;
    --success: #1d6b3a;

    --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;

    --step--1: 0.875rem;
    --step-0: 1.0625rem;
    --step-1: 1.25rem;
    --step-2: 1.5625rem;
    --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
    --step-4: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);

    --gutter: clamp(1rem, 3vw, 2rem);
    --mullion: 3px;
    --radius: 2px;
}

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

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

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font: 400 var(--step-0)/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-dark); }

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

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.005em;
    color: var(--graphite);
}

p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 50;
    padding: 0.6rem 1rem; background: var(--graphite); color: var(--white);
}
.skip-link:focus { top: 1rem; }

/* Üst bölüm */

.masthead {
    position: sticky; top: 0; z-index: 20;
    background: rgb(255 255 255 / 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(6px);
}

.masthead__row { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }

.brand img { width: 176px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.main-nav ul { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.main-nav ul a {
    display: block; padding: 0.5rem 0.75rem;
    color: var(--graphite); font-weight: 500; text-decoration: none;
    border-bottom: 2px solid transparent;
}
.main-nav ul a:hover { color: var(--blue); }
.main-nav ul a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

.nav-phone {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 0.9rem; border-radius: var(--radius);
    background: var(--glass); color: var(--blue-dark);
    font-weight: 600; text-decoration: none; white-space: nowrap;
}

.nav-toggle { display: none; }

@media (max-width: 1060px) {
    .nav-toggle {
        display: inline-flex; align-items: center; gap: 0.5rem; margin-left: auto;
        padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius);
        background: var(--white); color: var(--graphite); font: 500 1rem var(--font); cursor: pointer;
    }
    .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
        display: block; width: 18px; height: 2px; background: currentColor; content: ""; position: relative;
    }
    .nav-toggle__bars::before { position: absolute; top: -6px; }
    .nav-toggle__bars::after { position: absolute; top: 6px; }

    .main-nav {
        display: none; position: absolute; inset: 100% 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 0.5rem var(--gutter) 1.25rem;
        background: var(--white); border-bottom: 1px solid var(--line);
    }
    .main-nav.is-open { display: flex; }
    .main-nav ul { flex-direction: column; }
    .main-nav ul a { padding: 0.8rem 0; border-bottom: 1px solid var(--alu); }
    .main-nav ul a[aria-current="page"] { border-bottom-color: var(--alu); }
    .nav-phone { justify-content: center; margin-top: 1rem; padding: 0.8rem; }
}

/* Düğmeler */

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 48px; padding: 0.7rem 1.4rem;
    border: 2px solid var(--blue); border-radius: var(--radius);
    background: var(--blue); color: var(--white);
    font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.button--ghost { background: transparent; border-color: rgb(255 255 255 / 0.7); }
.button--ghost:hover { background: var(--white); border-color: var(--white); color: var(--graphite); }
.button--light { background: var(--white); border-color: var(--white); color: var(--blue-dark); }
.button--light:hover { background: var(--glass); border-color: var(--glass); color: var(--blue-dark); }
.button--outline-light { background: transparent; border-color: var(--white); }
.button--outline-light:hover { background: var(--white); border-color: var(--white); color: var(--blue-dark); }
.button--whatsapp { width: 100%; margin-top: 1.5rem; background: #1a7f4b; border-color: #1a7f4b; }
.button--whatsapp:hover { background: #136039; border-color: #136039; }

.text-link { font-weight: 600; white-space: nowrap; }

/* Ana sayfa: hero */

.hero { position: relative; background: var(--graphite); color: var(--white); }

.hero__slides {
    position: relative; overflow: hidden;
    height: clamp(340px, 62vh, 640px);
}
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide figcaption {
    position: absolute; right: var(--gutter); top: 1.25rem;
    padding: 0.35rem 0.7rem; background: rgb(43 48 54 / 0.8);
    font-size: var(--step--1); font-weight: 500;
}

.hero__body { position: relative; margin-top: -7rem; }
.hero__panel {
    position: relative; max-width: 40rem;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background: var(--graphite);
    border-top: 6px solid var(--blue);
}
.hero__panel h1 { color: var(--white); font-size: var(--step-4); font-weight: 700; line-height: 1.02; }
.hero__panel p { max-width: 34rem; color: #d6dbe0; font-size: var(--step-1); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

@media (max-width: 640px) {
    .hero__slides { height: 260px; }
    .hero__body { margin-top: 0; width: 100%; }
    .hero__panel { border-top-width: 4px; }
    .hero__actions .button { flex: 1 1 100%; }
}

/* Bölümler */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--alu { background: var(--alu); }

.section__head {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
    gap: 0.5rem 1.5rem; margin-bottom: 1.5rem;
}
.section__head .section__title { margin: 0; }
.section__title { font-size: var(--step-3); margin-bottom: 1.5rem; }

/* Uzmanlık alanları: dikey kayıtlarla ayrılmış üç sütun */

.specs { display: grid; grid-template-columns: repeat(3, 1fr); }
.specs__item { padding: 0 2rem; border-left: var(--mullion) solid var(--alu); }
.specs__item:first-child { padding-left: 0; border-left: 0; }
.specs__item h3 { font-size: var(--step-2); color: var(--blue-dark); }

@media (max-width: 900px) {
    .specs { grid-template-columns: 1fr; gap: 2rem; }
    .specs__item, .specs__item:first-child { padding: 1.5rem 0 0; border-left: 0; border-top: var(--mullion) solid var(--alu); }
}

/* Metin */

.prose { max-width: 70ch; }
.prose h3, .prose h4 { margin-top: 1.5em; font-size: var(--step-1); }
.prose ul { margin: 0 0 1.2em; padding: 0; list-style: none; }
.prose li { position: relative; padding-left: 1.25rem; margin-bottom: 0.45em; }
.prose li::before {
    content: ""; position: absolute; left: 0; top: 0.62em;
    width: 0.5rem; height: 0.5rem; background: var(--blue);
}
.prose--compact { font-size: 1rem; line-height: 1.55; }

/* Proje ızgarası (cephe) */

.facade {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: var(--mullion); margin: 0; padding: var(--mullion);
    list-style: none; background: var(--graphite);
}
.facade--feature .facade__panel:first-child { grid-column: span 2; grid-row: span 2; }

.facade__panel a { position: relative; display: block; height: 100%; color: var(--white); text-decoration: none; background: #3a4048; }
.facade__panel img { width: 100%; height: 100%; aspect-ratio: 7 / 5; object-fit: cover; }
.facade__caption {
    position: absolute; inset: auto 0 0 0;
    display: grid; gap: 0.1rem;
    padding: 0.6rem 0.85rem 0.7rem;
    background: rgb(43 48 54 / 0.88);
}
.facade__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.facade__meta { color: #c4cbd2; font-size: var(--step--1); }
.facade--feature .facade__panel:first-child .facade__name { font-size: var(--step-2); }

.facade__panel a:hover .facade__caption,
.facade__panel a:focus-visible .facade__caption { background: var(--blue); }
.facade__panel a:hover .facade__meta,
.facade__panel a:focus-visible .facade__meta { color: #dbe8f5; }
.facade__panel a:focus-visible { outline-offset: -3px; outline-color: var(--white); }

@media (max-width: 1000px) { .facade { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
    .facade { grid-template-columns: repeat(2, 1fr); }
    .facade__name { font-size: 0.95rem; }
}
@media (max-width: 420px) {
    .facade { grid-template-columns: 1fr; }
    .facade--feature .facade__panel:first-child { grid-column: auto; grid-row: auto; }
}

/* Ürün listesi (ana sayfa) */

.system-list {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem;
    margin: 0; padding: 0; list-style: none;
}
.system-list a {
    display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 1.25rem;
    padding: 0.85rem 0; border-bottom: 1px solid var(--line);
    color: var(--graphite); text-decoration: none;
}
.system-list img, .system-list__blank { width: 112px; height: 80px; object-fit: cover; background: var(--line); }
.system-list__name { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.2; }
.system-list__count { color: var(--steel); font-size: var(--step--1); white-space: nowrap; }
.system-list a:hover .system-list__name { color: var(--blue); }

@media (max-width: 800px) {
    .system-list { grid-template-columns: 1fr; }
    .system-list a { grid-template-columns: 84px 1fr; }
    .system-list img, .system-list__blank { width: 84px; height: 60px; }
    .system-list__count { grid-column: 2; margin-top: -1rem; }
}

/* Referans logoları */

.logo-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    margin: 0; padding: 0; list-style: none;
    border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.logo-grid li {
    display: grid; grid-template-rows: 1fr auto; gap: 0.5rem;
    padding: 1rem; text-align: center;
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.logo-grid img { width: 100%; height: 96px; object-fit: contain; }
.logo-grid span { color: var(--steel); font-size: var(--step--1); line-height: 1.3; }

/* Çağrı bandı */

.cta { background: var(--blue); color: var(--white); padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta h2 { color: var(--white); font-size: var(--step-3); }
.cta p { max-width: 38rem; margin: 0; color: #d9e7f5; }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* İç sayfa başlığı */

.page-head { padding-block: clamp(1.75rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem); background: var(--alu); }
.page-head h1 { margin: 0; font-size: var(--step-4); font-weight: 700; }
.page-head__lead { max-width: 42rem; margin: 0.75rem 0 0; color: var(--steel); font-size: var(--step-1); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0 0 0.75rem; padding: 0; list-style: none; font-size: var(--step--1); color: var(--steel); }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--line); }
.crumbs a { color: var(--steel); }

.layout-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .layout-split { grid-template-columns: 1fr; } }

.sidebar { padding-left: 1.5rem; border-left: var(--mullion) solid var(--alu); }
.sidebar__title { font-size: var(--step-1); }
@media (max-width: 900px) { .sidebar { padding: 1.5rem 0 0; border-left: 0; border-top: var(--mullion) solid var(--alu); } }

.link-list { margin: 0; padding: 0; list-style: none; }
.link-list a { display: block; padding: 0.5rem 0; border-bottom: 1px solid var(--alu); color: var(--graphite); text-decoration: none; }
.link-list a:hover { color: var(--blue); }
.link-list a[aria-current="page"] { color: var(--blue); font-weight: 600; }

.banner { width: 100%; max-height: 420px; object-fit: cover; margin-top: clamp(1.5rem, 4vw, 2.5rem); }

.feature-image { width: 100%; max-width: 420px; margin-bottom: 1.5rem; }
@media (min-width: 1100px) {
    .feature-image { float: right; width: 40%; margin: 0.3rem 0 1rem 2rem; }
}

/* Ürünler sayfası */

.category-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2.5rem 2rem;
    margin: 0; padding: 0; list-style: none;
}
.category-grid a { display: block; color: var(--ink); text-decoration: none; }
.category-grid img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; background: var(--alu); }
.category-grid__body { display: grid; gap: 0.4rem; padding-top: 1rem; border-top: 6px solid var(--blue); margin-top: -6px; position: relative; }
.category-grid__name { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.15; color: var(--graphite); }
.category-grid__text { color: var(--steel); font-size: 1rem; line-height: 1.5; }
.category-grid__count { font-size: var(--step--1); font-weight: 600; color: var(--blue); }
.category-grid a:hover .category-grid__name { color: var(--blue); }

/* Proje süzgeci */

.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.filter a {
    padding: 0.45rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--graphite); font-size: 0.95rem; text-decoration: none;
}
.filter a span { color: var(--steel); margin-left: 0.2rem; }
.filter a:hover { border-color: var(--blue); color: var(--blue); }
.filter a[aria-current="page"] { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.filter a[aria-current="page"] span { color: #c4cbd2; }

.empty { padding: 2rem; background: var(--alu); }

/* Proje detayı */

.project { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .project { grid-template-columns: 1fr; } }

.gallery__main { display: block; background: var(--graphite); }
.gallery__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.gallery__thumbs {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: var(--mullion); margin: var(--mullion) 0 0; padding: var(--mullion); list-style: none; background: var(--graphite);
}
.gallery__thumbs a { display: block; opacity: 0.6; }
.gallery__thumbs a:hover, .gallery__thumbs a[aria-current="true"] { opacity: 1; }
.gallery__thumbs a[aria-current="true"] { outline: 2px solid var(--blue); outline-offset: -2px; }
.gallery__thumbs img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; }

.project__facts dl { margin: 0 0 2rem; border-top: var(--mullion) solid var(--graphite); }
.project__facts dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.project__facts dt { color: var(--steel); }
.project__facts dd { margin: 0; font-weight: 500; }
.project__facts h2 { font-size: var(--step-1); }
.project__ask { margin-top: 2rem; padding: 1rem 1.25rem; background: var(--glass); }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(20 23 27 / 0.96); }
.lightbox::backdrop { background: rgb(20 23 27 / 0.96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 7rem); max-height: calc(100dvh - 5rem); object-fit: contain; }
.lightbox button {
    position: absolute; display: grid; place-items: center;
    width: 48px; height: 48px; border: 0; border-radius: var(--radius);
    background: rgb(255 255 255 / 0.12); color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: var(--blue); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; bottom: 1rem; left: 50%; translate: -50% 0; margin: 0; color: #c4cbd2; font-size: var(--step--1); }
@media (max-width: 640px) {
    .lightbox img { max-width: 100vw; }
    .lightbox__nav--prev, .lightbox__nav--next { top: auto; bottom: 0.75rem; translate: none; }
}

/* İletişim */

.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.contact h2 { font-size: var(--step-3); }
.contact__intro { color: var(--steel); }

.contact__info { padding: 1.75rem; background: var(--alu); border-top: 6px solid var(--blue); }
.contact__info h2 { font-size: var(--step-2); }
.contact__info dl { margin: 0; }
.contact__info dl > div { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.contact__info dt { color: var(--steel); font-size: var(--step--1); }
.contact__info dd { margin: 0; font-weight: 500; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.15rem; }
.field label { display: block; margin-bottom: 0.35rem; font-weight: 600; }
.field .optional { color: var(--steel); font-weight: 400; }
.field input, .field textarea {
    width: 100%; padding: 0.7rem 0.85rem;
    border: 1px solid #aab2bb; border-radius: var(--radius);
    background: var(--white); color: var(--ink); font: inherit;
}
.field input:focus, .field textarea:focus { outline: 3px solid rgb(0 94 173 / 0.25); border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin: 0.35rem 0 0; color: var(--danger); font-size: 0.95rem; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { margin-bottom: 1.5rem; padding: 0.9rem 1.1rem; border-left: 4px solid; }
.notice--success { border-color: var(--success); background: #e8f3ec; color: #154d2a; }
.notice--error { border-color: var(--danger); background: #fbeceb; color: #7d1b15; }

.map { height: 380px; background: var(--alu); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Alt bilgi */

.site-footer { background: var(--alu); color: var(--ink); font-size: 1rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand p { max-width: 22rem; margin-top: 1rem; color: var(--steel); }
.site-footer__title { font-size: var(--step-1); margin-bottom: 0.9rem; }
.site-footer__links { columns: 2 12rem; column-gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.site-footer__links li { break-inside: avoid; margin-bottom: 0.4rem; }
.site-footer a { color: var(--graphite); }
.site-footer a:hover { color: var(--blue); }
.site-footer__contact { font-style: normal; }
.site-footer__contact p { margin-bottom: 0.4rem; }
.site-footer__social { display: flex; gap: 1rem; margin: 1rem 0 0; padding: 0; list-style: none; font-weight: 600; }
.site-footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
    padding-block: 1.25rem; border-top: 1px solid var(--line);
    color: var(--steel); font-size: var(--step--1);
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: var(--steel); }

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