/*
 * Samfor İnşaat — tema tabanı
 * Kaynak: Claude Design handoff (design_handoff_samfor_website). Tasarım tokenları,
 * <helmet> stilleri ve prototipte JS ile hesaplanan (responsive / durum) değerlerin CSS karşılıkları.
 * Sabit görünüm değerleri blade'lerde inline stil olarak, tasarımdaki haliyle durur.
 */

:root {
    --navy: #00213e;
    --navy-2: #0b3157;
    --navy-h: #0d3a66;
    --sand: #ebe3d6;
    --sand-2: #f3eee5;
    --sand-3: #d9cfbf;
    --ink-2: #3b4d5f;
    --cyan: #3fc5ff;
    --blue: #075e8c;
    --line: rgba(0, 33, 62, .16);
    --line-d: rgba(235, 227, 214, .2);
    --serif: 'Big Shoulders', 'Readex Pro', Impact, sans-serif;
    --sans: 'Archivo', 'Readex Pro', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    position: relative;
    min-height: 100vh;
    color: #00213e;
    background-color: #ebe3d6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 .13 0 0 0 0 .24 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

a { color: #075e8c; text-underline-offset: 3px; }
a:hover { color: #00213e; }
:focus-visible { outline: 2px solid #3fc5ff; outline-offset: 3px; }
::selection { background: #3fc5ff; color: #00213e; }

[dir="rtl"] * { letter-spacing: 0 !important; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.25 !important; }
[dir="rtl"] .sf-flip { transform: scaleX(-1); }

@keyframes samforRing { to { stroke-dashoffset: 0; } }
@keyframes samforFloorDown { from { transform: translateY(-110%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes samforFloorUp { from { transform: translateY(110%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes samforIntroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes samforIntroRise { from { transform: translateY(28px); } to { transform: none; } }

/* Hero'suz sayfalarda içerik sabit header'ın altından başlar */
body:not(.sf-has-hero) main { padding-top: 84px; }

/* ------------------------------------------------------------------
 * Header (SiteHeader) — açık mod varsayılan; hero üzerinde ve menü açıkken koyu mod
 * ------------------------------------------------------------------ */
.sf-header {
    background: rgba(238, 232, 221, .58);
    border-bottom: 1px solid rgba(0, 33, 62, .14);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    backdrop-filter: blur(24px) saturate(1.8);
    color: #00213e;
    --sf-tag: #075e8c;
    --sf-hdr-line: rgba(0, 33, 62, .14);
}

.sf-has-hero .sf-header:not(.is-scrolled),
.sf-menu-open .sf-header {
    background: transparent;
    border-bottom-color: rgba(235, 227, 214, .22);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: #ebe3d6;
    --sf-tag: #3fc5ff;
    --sf-hdr-line: rgba(235, 227, 214, .22);
}

.sf-hdr-sep { border-inline-start: 1px solid var(--sf-hdr-line); }

.sf-logo-light { opacity: 1; }
.sf-logo-dark { opacity: 0; filter: brightness(0) invert(1); }
.sf-has-hero .sf-header:not(.is-scrolled) .sf-logo-light,
.sf-menu-open .sf-header .sf-logo-light { opacity: 0; }
.sf-has-hero .sf-header:not(.is-scrolled) .sf-logo-dark,
.sf-menu-open .sf-header .sf-logo-dark { opacity: 1; }

/* Geniş / dar ekran (prototipte vw >= 1180) */
@media (max-width: 1179.98px) { .sf-w { display: none !important; } }
@media (min-width: 1180px) { .sf-n { display: none !important; } }

/* Burger simgesi */
.sf-ico-close { display: none; }
.sf-menu-open .sf-ico-close { display: block; }
.sf-menu-open .sf-ico-menu { display: none; }

/* Masaüstü menü — kat numaraları sayaçla basılır (ilk kat "Z") */
.sf-nav > ul {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.2vw, 34px);
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: sf-floor -1;
}

.sf-nav > ul > li {
    position: relative;
    display: flex;
    align-items: center;
    height: 84px;
    counter-increment: sf-floor;
}

.sf-nav > ul > li > a {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .02em;
    white-space: nowrap;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid transparent;
    transition: border-color .25s;
}

.sf-nav > ul > li > a::before {
    content: counter(sf-floor);
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    color: var(--sf-tag);
}

.sf-nav > ul > li:first-child > a::before,
.sf-mnav > ul > li:first-child > a::before { content: var(--sf-ground, '0'); }

.sf-nav > ul > li > a:hover,
.sf-nav > ul > li > a:focus-visible,
.sf-nav > ul > li.is-current > a { border-bottom-color: currentColor; }

.sf-nav .sf-chev { margin-top: 3px; flex: none; }

.sf-nav .sf-sub {
    display: none;
    position: absolute;
    top: 74px;
    inset-inline-start: -18px;
    min-width: 260px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border-radius: 18px;
    background: rgba(243, 238, 229, .72);
    -webkit-backdrop-filter: blur(26px) saturate(1.8);
    backdrop-filter: blur(26px) saturate(1.8);
    color: #00213e;
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: 0 18px 40px rgba(0, 20, 40, .22), inset 0 1px 0 rgba(255, 255, 255, .6);
    box-sizing: border-box;
}

.sf-nav li:hover > .sf-sub,
.sf-nav li:focus-within > .sf-sub { display: block; }

.sf-nav .sf-sub a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #00213e;
    text-decoration: none;
    transition: background-color .2s;
}

.sf-nav .sf-sub a:hover,
.sf-nav .sf-sub a:focus-visible { background-color: rgba(0, 33, 62, .07); color: #00213e; }

/* Mobil tam ekran menü paneli */
.sf-mmenu { display: none !important; }
.sf-menu-open .sf-mmenu { display: flex !important; }
@media (min-width: 1180px) { .sf-menu-open .sf-mmenu { display: none !important; } }

.sf-mnav > ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: sf-floor -1;
}

.sf-mnav > ul > li {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--line-d);
    counter-increment: sf-floor;
}

.sf-mnav > ul > li > a {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 14px 0;
    color: var(--sand);
    text-decoration: none;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 44px;
    line-height: 1.08;
}

.sf-mnav > ul > li > a::before {
    content: counter(sf-floor);
    flex: none;
    width: 22px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--cyan);
}

.sf-mnav .sf-chev { display: none; }

.sf-mnav .sf-sub {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding-block: 0 14px;
    padding-inline: 40px 0;
}

.sf-mnav .sf-sub a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 16px;
    color: #c9d3dc;
    text-decoration: none;
}

.sf-mnav .sf-sub a:hover { color: #ffffff; }

/* Dil seçici */
.sf-lang { opacity: .62; font-weight: 400; }
.sf-lang.is-active { opacity: 1; font-weight: 600; }
.sf-lang:hover { opacity: 1; }
.sf-mlang { background: transparent; color: #ebe3d6; }
.sf-mlang.is-active { background: #ebe3d6; color: #00213e; }
.sf-flang { color: #9fb0c0; }
.sf-flang.is-active { color: #ffffff; }

/* ------------------------------------------------------------------
 * Kat paneli (asansör) — ≥1200px ve ≥640px yükseklikte görünür
 * ------------------------------------------------------------------ */
.sf-floors { display: none; }
@media (min-width: 1200px) and (min-height: 640px) { .sf-floors { display: flex; } }
.sf-floors[hidden], .sf-menu-open .sf-floors { display: none !important; }

.sf-floor-arrow { color: rgba(235, 227, 214, .4); transition: color .25s; }
.sf-floors.is-moving-up .sf-floor-arrow-up,
.sf-floors.is-moving-down .sf-floor-arrow-down { color: #3fc5ff; }

.sf-floor-digit {
    display: block;
    font-family: 'Archivo', system-ui, sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1;
    color: #3fc5ff;
    text-shadow: 0 0 14px rgba(63, 197, 255, .55);
    font-variant-numeric: tabular-nums;
}

.sf-floor-digit.is-up { animation: samforFloorUp .42s cubic-bezier(.2, .7, .2, 1); }
.sf-floor-digit.is-down { animation: samforFloorDown .42s cubic-bezier(.2, .7, .2, 1); }

.sf-floor-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(235, 227, 214, .35);
    background: transparent;
    color: #ebe3d6;
    box-shadow: none;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    box-sizing: border-box;
    transition: border-color .3s, color .3s, background-color .3s, box-shadow .3s;
}

.sf-floor-btn:hover, .sf-floor-btn:focus-visible { border-color: #3fc5ff; color: #3fc5ff; }
.sf-floor-btn.is-on {
    border-color: #3fc5ff;
    background: rgba(63, 197, 255, .12);
    color: #3fc5ff;
    box-shadow: 0 0 14px rgba(63, 197, 255, .35);
}

/* ------------------------------------------------------------------
 * Ana sayfa hero slaytı
 * ------------------------------------------------------------------ */
.sf-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: scale(1.07);
    transition: opacity 1.4s ease, transform 10s cubic-bezier(.2, .6, .3, 1);
}

.sf-hero-img.is-active { opacity: 1; transform: scale(1); }

.sf-intro {
    animation: samforIntroFade 1.1s ease .09s both, samforIntroRise 1.1s cubic-bezier(.2, .7, .2, 1) .09s both;
}

.sf-hero-slide,
.sf-hero-cta {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity .8s ease, transform .8s ease, visibility .8s;
}

.sf-hero-cta { transform: none; transition: opacity .5s ease, visibility .5s; }

/* Yalnız aktif slaytın CTA satırı yer kaplar (prototipte yalnız aktif olan render edilir) */
.sf-hero-ctas { position: relative; }
.sf-hero-cta:not(.is-active) { position: absolute; top: 0; inset-inline-start: 0; }
.sf-hero-slide.is-active,
.sf-hero-cta.is-active { opacity: 1; visibility: visible; transform: none; }

.sf-hero-thumb {
    position: relative;
    width: 62px;
    height: 62px;
    padding: 0;
    border-radius: 50%;
    background: none;
    border: 1px solid rgba(235, 227, 214, .45);
    cursor: pointer;
    transition: border-color .3s;
}

.sf-hero-thumb.is-active { border-color: transparent; }

.sf-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .7;
    transition: opacity .3s, transform .5s;
}

.sf-hero-thumb.is-active img { opacity: 1; }
.sf-hero-thumb:hover img { opacity: 1; transform: scale(1.08); }

.sf-ring {
    display: none;
    position: absolute;
    inset: -1px;
    width: 62px;
    height: 62px;
    transform: rotate(-90deg);
    pointer-events: none;
}

.sf-hero-thumb.is-active .sf-ring { display: block; }

.sf-ring-bar {
    stroke-dasharray: 182.212;
    stroke-dashoffset: 182.212;
}

.sf-hero-thumb.is-active .sf-ring-bar { animation: samforRing var(--sf-slide-ms, 6000ms) linear forwards; }
.sf-hero.is-single .sf-ring-bar { animation: none; stroke-dashoffset: 0; }

/* ------------------------------------------------------------------
 * Faaliyet alanları — ≥900px akordeon şerit, altında dikey liste
 * ------------------------------------------------------------------ */
.sf-fields-wide { display: none; }
.sf-fields-stack { display: flex; }
@media (min-width: 900px) {
    .sf-fields-wide { display: flex; }
    .sf-fields-stack { display: none; }
}

.sf-field { flex: 1 1 0; }
.sf-field.is-active { flex: 5 1 0; }

.sf-field-img { transform: scale(1.12); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.sf-field.is-active .sf-field-img { transform: scale(1); }

.sf-field-flat { opacity: 1; transition: opacity .5s; }
.sf-field.is-active .sf-field-flat { opacity: 0; }

.sf-field-grad { opacity: 0; transition: opacity .5s; }
.sf-field.is-active .sf-field-grad { opacity: 1; }

.sf-field-v { opacity: 1; transition: opacity .3s; }
.sf-field.is-active .sf-field-v { opacity: 0; }

.sf-field-body { opacity: 0; transform: translateY(16px); transition: opacity .5s .15s, transform .6s .1s; }
.sf-field.is-active .sf-field-body { opacity: 1; transform: none; }

/* ------------------------------------------------------------------
 * Proje kartları
 * ------------------------------------------------------------------ */
.sf-card-img { transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.sf-card:hover .sf-card-img { transform: scale(1.045); }

/* Ana sayfa "Devam Eden Projeler" düzeni (≥980px: 7/5 kolon, ilk kart iki satır) */
.sf-ongoing { grid-template-columns: minmax(0, 1fr); }
.sf-ongoing .sf-oc-media { flex: 0 0 auto; min-height: 0; aspect-ratio: 4 / 3; }
.sf-ongoing .sf-oc-name { font-size: 36px; }

@media (min-width: 980px) {
    .sf-ongoing { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
    .sf-ongoing .sf-oc-media { aspect-ratio: 16 / 10; }
    .sf-ongoing > .sf-oc:first-child { grid-row: span 2; }
    .sf-ongoing > .sf-oc:first-child .sf-oc-media { flex: 1 1 auto; min-height: 440px; aspect-ratio: auto; }
    .sf-ongoing > .sf-oc:first-child .sf-oc-name { font-size: clamp(40px, 3.8vw, 60px); }
}

/* ------------------------------------------------------------------
 * Kurumsal — değerler ızgarası (1 / 2 / 4 kolon) ve kaydırmalı ortak listesi
 * ------------------------------------------------------------------ */
.sf-values { grid-template-columns: repeat(1, minmax(0, 1fr)); }

.sf-val {
    padding-inline: 0 clamp(20px, 2.4vw, 36px);
    border-inline-start: none;
}

@media (min-width: 640px) {
    .sf-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sf-val { padding-inline-start: clamp(20px, 2.4vw, 36px); border-inline-start: 1px solid rgba(235, 227, 214, .2); }
    .sf-val:nth-child(2n+1) { padding-inline-start: 0; border-inline-start: none; }
}

@media (min-width: 1100px) {
    .sf-values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sf-val:nth-child(2n+1) { padding-inline-start: clamp(20px, 2.4vw, 36px); border-inline-start: 1px solid rgba(235, 227, 214, .2); }
    .sf-val:nth-child(4n+1) { padding-inline-start: 0; border-inline-start: none; }
}

@media (min-width: 760px) {
    .sf-partner:nth-child(2) { margin-inline-start: 6%; }
    .sf-partner:nth-child(3) { margin-inline-start: 12%; }
}

/* ------------------------------------------------------------------
 * Galeri (sütunlu) — 1 / 2 / 3 kolon
 * ------------------------------------------------------------------ */
.sf-gal { columns: 1; column-gap: 14px; }
@media (min-width: 640px) { .sf-gal { columns: 2; } }
@media (min-width: 1100px) { .sf-gal { columns: 3; } }

.sf-gal-item img { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.sf-gal-item:hover img { transform: scale(1.03); }

/* ------------------------------------------------------------------
 * Lightbox (Proje Detay tasarımı)
 * ------------------------------------------------------------------ */
.sf-lb[hidden] { display: none !important; }
.sf-lb-open { overflow: hidden; }

.sf-lb-btn {
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    background: none;
    border: 1px solid rgba(235, 227, 214, .35);
    color: inherit;
    cursor: pointer;
    transition: border-color .2s;
}

.sf-lb-btn:hover, .sf-lb-btn:focus-visible { border-color: #ebe3d6; }

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