/* ==========================================================================
   He Mekanik — Kurumsal Web Sitesi
   ========================================================================== */

:root {
  --navy-950: #050b16;
  --navy-900: #0a1428;
  --navy-800: #0f1f3d;
  --navy-700: #16294f;
  --navy-600: #1e3a63;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #60a5fa;
  --cyan-400: #22d3ee;
  --white: #ffffff;
  --gray-100: #f4f6fa;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-800: #1e293b;

  --font-head: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container-w: 1240px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-lg: 0 30px 60px -20px rgba(5, 11, 22, 0.45);
  --shadow-md: 0 16px 32px -12px rgba(5, 11, 22, 0.3);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
/* Sabit header, çapa hedeflerinin üstünü kesmesin */
:target, section[id], #main-content { scroll-margin-top: 140px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; }

body {
  background: var(--white);
  color: var(--gray-800);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; color: var(--navy-900); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-weight: 700; line-height: 1.16; letter-spacing: -0.015em; }

.container { max-width: var(--container-w); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--blue-500); color: var(--white); padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: 2px solid transparent; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--blue-500); color: var(--white); box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .55); }
.btn-primary:hover { background: var(--blue-400); transform: translateY(-3px); box-shadow: 0 16px 30px -8px rgba(37, 99, 235, .6); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: var(--white); color: var(--navy-900); transform: translateY(-3px); }
.btn-lg { padding: 18px 36px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn.is-magnetic { transition: box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease); will-change: transform; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center;
  background: var(--navy-950); transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
.preloader-mark { width: 74px; height: auto; opacity: 0; transform: scale(.85); }
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .preloader { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding-block: 22px;
}
.site-header.scrolled { background: rgba(10, 20, 40, 0.85); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); padding-block: 12px; }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--white); transition: transform .3s var(--ease); }
.logo:hover { transform: scale(1.03); }
.logo-mark { display: block; height: 84px; width: auto; flex-shrink: 0; }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; letter-spacing: .02em; display: flex; flex-direction: column; line-height: 1.1; }
.logo-text small { font-family: var(--font-body); font-weight: 500; font-size: .62rem; letter-spacing: .18em; color: var(--blue-300); }
.site-footer .logo-text { color: var(--white); }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.footer-logo .logo-mark { height: 88px; }

.main-nav ul { display: flex; gap: 32px; }
.main-nav a { color: var(--white); font-weight: 600; font-size: .92rem; position: relative; padding-block: 4px; }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--blue-400); transition: width .3s var(--ease); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }

/* Menü içi CTA yalnızca mobil menüde görünür (masaüstünde header'daki buton var) */
.nav-cta { display: none; }
.main-nav .nav-cta::after { display: none; }
/* Mobil menü açıkken arka planı kapatan katman */
.nav-scrim { display: none; }
/* Mobil menü veya modal açıkken arka plan kaymasın (scrollbar-gutter sayfayı sabit tutar) */
body.nav-open { overflow: hidden; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; padding: 0; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: radial-gradient(120% 120% at 15% 0%, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-canvas.is-ready { opacity: .85; }
.hero-grid {
  position: absolute; inset: -2px;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 60% at 50% 35%, black 20%, transparent 90%);
}
/* Katman GSAP parallax'ına, glow'un kendisi CSS float animasyonuna ait —
   ikisi aynı transform'u paylaşmasın diye ayrıldı. */
.hero-glow-layer { position: absolute; inset: 0; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: float 12s ease-in-out infinite; }
.hero-glow-1 { width: 480px; height: 480px; background: var(--blue-600); top: -140px; right: -100px; }
.hero-glow-2 { width: 380px; height: 380px; background: var(--cyan-400); bottom: -160px; left: -80px; opacity: .25; animation-delay: -6s; }
@keyframes float { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(24px, 30px); } }

.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
.hero-lines polyline { fill: none; stroke: rgba(96,165,250,.5); stroke-width: 1.5; }

.hero-content { position: relative; z-index: 2; text-align: center; padding-block: 160px 120px; max-width: 900px; margin-inline: auto; }
/* Varsayılan eyebrow AÇIK zemin içindir (koyu mavi). Koyu zeminli bölümlerde
   (hero + .section-head-light) açık maviye dönüyor — tersi kontrastı kırıyordu. */
.eyebrow { color: var(--blue-500); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; margin-bottom: 18px; }
.hero .eyebrow { color: var(--blue-300); }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 24px; }
.hero h1 span { color: var(--blue-400); }
/* margin-inline kısayolu iki değer alınca sol=auto sağ=24px oluyordu ve blok
   sağa kayıyordu — ortalamak için tek değer. */
.hero-sub { color: var(--gray-300); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 640px; margin-inline: auto; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.scroll-indicator { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 20px; display: flex; justify-content: center; padding-top: 8px; z-index: 2; }
.scroll-indicator span { width: 4px; height: 8px; border-radius: 2px; background: var(--blue-400); animation: scrollDown 1.8s ease-in-out infinite; }
@keyframes scrollDown { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Stats ---------- */
.stats { background: var(--navy-900); padding-block: 70px; border-top: 1px solid rgba(255,255,255,.06); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 20px; text-align: center; }
.stat-item { display: flex; flex-direction: column; gap: 6px; }
.stat-number { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--white); }
.stat-number::before { content: attr(data-prefix); }
.stat-number::after { content: attr(data-suffix); }
.stat-label { color: var(--gray-300); font-size: .85rem; font-weight: 500; }

/* ---------- Section shared ---------- */
section { padding-block: 110px; }
.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head h2 { font-size: clamp(2.1rem, 3.4vw, 2.75rem); }
.section-head-light .eyebrow { color: var(--blue-300); }
.section-head-light h2 { color: var(--white); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
.about-text h2 { font-size: clamp(2.1rem, 3.4vw, 2.75rem); margin-bottom: 22px; }
.about-text > p { color: var(--gray-600); margin-bottom: 36px; font-size: 1.02rem; }
.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pillar h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--navy-800); }
.pillar p { color: var(--gray-600); font-size: .92rem; }

.timeline { position: relative; padding-left: 32px; border-left: 2px solid #e2e8f0; display: flex; flex-direction: column; gap: 36px; }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; left: -41px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-500); border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--blue-500); }
.timeline-year { display: inline-block; font-family: var(--font-head); font-weight: 800; color: var(--blue-500); font-size: 1rem; margin-bottom: 4px; }
.timeline-content h4 { font-size: 1.05rem; margin-bottom: 4px; }
.timeline-content p { color: var(--gray-600); font-size: .92rem; }

/* ---------- Services ---------- */
.services { background: var(--gray-100); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; perspective: 1400px; }
.service-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 34px 28px;
  box-shadow: var(--shadow-md); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  border: 1px solid rgba(15, 31, 61, .06);
}
.service-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-lg); }
/* Kart yüksekliklerini grid eşitliyor; bağlantı da hep en altta dursun. */
.service-card { transform-style: preserve-3d; will-change: transform; display: flex; flex-direction: column; }
.service-card .card-link { margin-top: auto; align-self: flex-start; }
.service-icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 16px; background: linear-gradient(135deg, var(--blue-500), var(--navy-700)); color: var(--white); margin-bottom: 20px; }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.service-card p { color: var(--gray-600); font-size: .92rem; margin-bottom: 16px; }
.service-points { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.service-points li { position: relative; padding-left: 20px; color: var(--gray-600); font-size: .87rem; line-height: 1.45; }
/* Eğik kare madde imi — endüstriyel çizgiye disk yerine daha iyi oturuyor */
.service-points li::before { content: ''; position: absolute; left: 1px; top: .48em; width: 7px; height: 7px; background: var(--blue-500); transform: rotate(45deg); }
.card-link { color: var(--blue-500); font-weight: 700; font-size: .88rem; transition: color .3s var(--ease); }
.card-link:hover { text-decoration: underline; }

/* ---------- Why Us ---------- */
.why-us { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 30px 26px; backdrop-filter: blur(10px); transition: transform .4s var(--ease), background .4s var(--ease); }
.why-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.07); }
.why-check { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(37,99,235,.2); color: var(--blue-300); font-weight: 800; margin-bottom: 16px; }
.why-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.why-card p { color: var(--gray-300); font-size: .9rem; }

/* ---------- Process ---------- */
.process-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; position: relative; }
.process-flow::before { content: ''; position: absolute; top: 24px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, #cbd5e1 0 10px, transparent 10px 18px); z-index: 0; }
.process-flow li { position: relative; z-index: 1; text-align: center; }
.process-num { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy-900); color: var(--white); font-family: var(--font-head); font-weight: 800; margin-bottom: 16px; }
.process-flow h3 { font-size: .98rem; margin-bottom: 8px; }
.process-flow p { color: var(--gray-600); font-size: .85rem; }

/* ---------- Projects ---------- */
.projects { background: var(--navy-950); }
.project-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.filter-btn { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: var(--gray-300); padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .85rem; transition: all .3s var(--ease); }
.filter-btn:hover { background: rgba(255,255,255,.12); color: var(--white); }
.filter-btn.is-active { background: var(--blue-500); border-color: var(--blue-500); color: var(--white); }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; perspective: 1400px; }
.project-card { text-align: left; background: var(--navy-900); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); transform-style: preserve-3d; will-change: transform; cursor: pointer; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card.is-hidden { display: none; }
.project-thumb { display: block; height: 200px; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); position: relative; overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.project-card:hover .project-thumb img { transform: scale(1.06); }
/* Koyu kartta fotograf ile baslik arasinda yumusak gecis */
.project-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,20,40,.55) 100%); pointer-events: none; }
.project-info { display: block; padding: 20px 22px; }
.project-info h3 { color: var(--white); font-size: 1.02rem; margin-bottom: 6px; }
.project-info span { color: var(--blue-300); font-size: .8rem; font-weight: 600; }

/* ---------- Quality ---------- */
.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quality-card { text-align: center; padding: 36px 22px; border-radius: var(--radius-lg); background: var(--gray-100); transition: transform .4s var(--ease); }
.quality-card:hover { transform: translateY(-6px); }
.quality-badge { display: inline-flex; width: 84px; height: 84px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy-900); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: .82rem; line-height: 1.1; margin-bottom: 18px; border: 3px solid var(--blue-500); }
.quality-card h3 { font-size: 1rem; margin-bottom: 8px; }
.quality-card p { color: var(--gray-600); font-size: .88rem; }

/* Sertifika görselleri + büyütme penceresi */
.cert-block { margin-top: 64px; text-align: center; }
.cert-title { font-size: 1.35rem; margin-bottom: 8px; }
.cert-sub { color: var(--gray-600); font-size: .92rem; max-width: 620px; margin: 0 auto 34px; }
.cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 32px; }
.cert-item { display: flex; flex-direction: column; gap: 14px; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: center; font: inherit; }
.cert-item img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); background: var(--white); box-shadow: 0 0 0 1px #e2e8f0, var(--shadow-md); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.cert-item:hover img, .cert-item:focus-visible img { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--blue-500), var(--shadow-lg); }
.cert-caption { display: flex; flex-direction: column; gap: 2px; }
.cert-caption strong { font-family: var(--font-head); color: var(--navy-900); font-size: .98rem; }
.cert-caption small { color: var(--gray-600); font-size: .78rem; }
.cert-dialog { padding: 0; border: 0; background: transparent; max-width: min(92vw, 760px); max-height: 94vh; overflow: visible; }
.cert-dialog::backdrop { background: rgba(5, 11, 22, .82); }
.cert-dialog img { display: block; width: auto; max-width: 100%; max-height: 92vh; border-radius: var(--radius-sm); background: var(--white); }
.cert-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--blue-500); color: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-md); }
.cert-close:hover { background: var(--blue-400); }

/* ---------- Testimonials & Marquee ---------- */
.testimonials { background: var(--navy-900); overflow: hidden; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
/* Boşluk kartın margin'inde; `gap` kullanılırsa şeritte 20 kart + 19 boşluk
   olur ve -50% dönüşü tam bir sete denk gelmeyip her turda ~12px zıplar. */
.marquee-track { display: flex; width: max-content; animation: scrollX 42s linear infinite; }
.marquee-reverse .marquee-track { animation-direction: reverse; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

.reference-card {
  flex: 0 0 220px; margin-right: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg);
  padding: 34px 20px; transition: transform .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.reference-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.reference-logo {
  width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
  color: var(--white); display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; flex-shrink: 0;
}
.reference-name { color: var(--gray-300); font-weight: 700; font-size: .92rem; text-align: center; }
.reference-plate {
  width: 148px; height: 68px; border-radius: var(--radius-sm); background: var(--white);
  display: flex; align-items: center; justify-content: center; padding: 12px 16px;
}
.reference-plate img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; }
/* Grid/flex çocuklarının varsayılan min-width:auto değeri, içindeki en geniş
   öğeyi taban genişlik yapıp dar ekranlarda taşmaya yol açıyor. */
.contact-grid > * { min-width: 0; }
.contact-info h2 { font-size: clamp(2.1rem, 3.4vw, 2.75rem); margin-bottom: 16px; }
.contact-info > p { color: var(--gray-600); margin-bottom: 30px; }
.info-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.info-list li { display: flex; flex-direction: column; gap: 2px; }
.info-list strong { color: var(--navy-900); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.info-list span, .info-list a { color: var(--gray-600); }
.info-list a:hover { color: var(--blue-500); }

.social-row { display: flex; gap: 12px; margin-bottom: 30px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; background: var(--gray-100); display: inline-flex; align-items: center; justify-content: center; color: var(--navy-800); transition: background .3s var(--ease), color .3s var(--ease); }
.social-row svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.social-row a:hover { background: var(--blue-500); color: var(--white); }
.site-footer .social-row a { background: rgba(255,255,255,.08); color: var(--white); }

.map-embed { border-radius: var(--radius-md); overflow: hidden; background: var(--gray-100); aspect-ratio: 4 / 3; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* align-self olmadan form paneli, haritalı sol sütunun boyuna kadar uzayıp
   altında koca boş gri alan bırakıyordu. */
.contact-form { background: var(--gray-100); border-radius: var(--radius-lg); padding: 40px; align-self: start; }
.contact-form h3 { font-size: 1.3rem; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--navy-800); }
/* width/min-width olmadan <select>, en uzun seçeneğinin ("Çelik Konstrüksiyon ve
   Yapısal Çelik İmalat") genişliğini asgari genişlik olarak dayatıyor; bu da
   ~430px altındaki telefonlarda formu ekrandan taşırıp tüm sayfayı yatay
   kaydırılabilir hâle getiriyordu. Aynı koruma input/textarea için de geçerli. */
.form-group input, .form-group textarea, .form-group select {
  width: 100%; min-width: 0;
  padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid #dbe2ea; background: var(--white);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.form-note { margin-top: 14px; font-size: .85rem; color: var(--blue-600); font-weight: 600; min-height: 1em; }
/* Hata mesajı başarı mesajıyla aynı renkte kalıyordu; ayırt edilebilsin. */
.form-note.is-error { color: #b91c1c; }
.newsletter-note.is-error { color: #fca5a5; }
.form-consent { margin-top: 14px; font-size: .74rem; line-height: 1.5; color: var(--gray-600); }
.form-consent a { color: var(--blue-500); font-weight: 600; }
.form-consent a:hover { text-decoration: underline; }
/* Koyu altbilgide gray-500 kontrastı düşük kalıyor */
.newsletter-form .form-consent { color: rgba(203, 213, 225, .78); margin-top: 10px; max-width: 320px; }
.newsletter-form .form-consent a { color: var(--blue-300); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,11,22,.72); backdrop-filter: blur(6px); }
.modal-panel { position: relative; background: var(--white); border-radius: var(--radius-lg); max-width: 680px; width: 100%; max-height: calc(100vh - 48px); overflow-y: auto; padding: 36px; box-shadow: var(--shadow-lg); animation: modalIn .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close { position: absolute; top: 18px; right: 18px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); box-shadow: var(--shadow-md); font-size: 1rem; }

/* ---------- Modal galeri ---------- */
.modal-gallery { margin: 0 0 22px; }
.modal-gallery[hidden] { display: none; }
.modal-stage { aspect-ratio: 16 / 10; border-radius: var(--radius-md); overflow: hidden; background: var(--navy-900); }
.modal-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.modal-thumbs[hidden] { display: none; }
.modal-thumb-btn { flex: 1 1 0; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: none; line-height: 0; transition: border-color .3s var(--ease), opacity .3s var(--ease); opacity: .6; }
.modal-thumb-btn img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.modal-thumb-btn:hover { opacity: 1; }
.modal-thumb-btn.is-active { border-color: var(--blue-500); opacity: 1; }

.modal-panel h3 { font-size: 1.25rem; margin-bottom: 12px; }
.modal-panel p { color: var(--gray-600); }
.modal-meta { margin-top: 14px; font-size: .82rem; font-weight: 600; color: var(--blue-500); }
.modal-credit { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e2e8f0; font-size: .76rem; color: var(--gray-500); }
.modal-credit a { color: var(--blue-500); font-weight: 600; }
.modal-credit a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid > * { min-width: 0; }
.footer-brand p { color: var(--gray-300); font-size: .88rem; margin-block: 18px 22px; max-width: 320px; }
.newsletter-form label { display: block; color: var(--white); font-size: .82rem; font-weight: 600; margin-bottom: 10px; }
.newsletter-row { display: flex; gap: 8px; }
.newsletter-row input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: var(--white); }
.newsletter-row input::placeholder { color: var(--gray-400); opacity: 1; }
.newsletter-note { color: var(--blue-300); }

.footer-col h4 { color: var(--white); font-size: .92rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--gray-300); font-size: .88rem; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--blue-400); }

.footer-bottom { padding-block: 24px; }
/* gray-500 navy-950 üzerinde 4.5:1'in altında kalıyordu */
.footer-bottom p { color: var(--gray-400); font-size: .8rem; text-align: center; }

/* ==========================================================================
   Yasal sayfalar (kvkk.html, gizlilik.html)
   ========================================================================== */
/* Bu sayfalarda hero yok; şeffaf header beyaz zeminde okunmaz, hep dolu dursun. */
.legal-page .site-header { background: rgba(10, 20, 40, .96); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); }
.legal-page .logo-mark { height: 58px; }
.legal-page .logo-text { font-size: 1.15rem; }
.legal-page .logo-text small { font-size: .54rem; }

.legal { padding-block: 190px 110px; }
.legal-inner { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 12px; }
/* .legal p'den daha özgül olmalı, yoksa alt boşlukları 14px'e düşüyor */
.legal p.legal-updated { color: var(--gray-500); font-size: .85rem; margin-bottom: 44px; }
.legal p.legal-intro { color: var(--gray-600); font-size: 1.02rem; margin-bottom: 46px; }

.legal section { padding-block: 0; margin-bottom: 40px; }
.legal h2 { font-size: 1.3rem; margin-bottom: 14px; }
.legal h3 { font-size: 1.02rem; margin-block: 22px 8px; color: var(--navy-800); }
.legal p { color: var(--gray-600); margin-bottom: 14px; }
.legal a { color: var(--blue-500); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal ul { list-style: disc; padding-left: 22px; color: var(--gray-600); margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.legal ul li { padding-left: 4px; }

.legal-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: .92rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid #e2e8f0; color: var(--gray-600); }
.legal-table th { background: var(--gray-100); color: var(--navy-800); font-weight: 700; }
.legal-scroll { overflow-x: auto; }

.legal-callout { background: var(--gray-100); border-left: 4px solid var(--blue-500); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 20px 24px; margin-bottom: 40px; }
.legal-callout p:last-child { margin-bottom: 0; }

.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 700; color: var(--blue-500); }
.legal-back:hover { text-decoration: underline; }

.legal-footer { padding-top: 0; }
.legal-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }

@media (max-width: 620px) {
  .legal { padding-block: 150px 74px; }
  .legal-page .logo-text { display: none; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue-500); color: var(--white); border: none; font-size: 1.1rem; box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.back-to-top:hover { transform: translateY(-4px); }
.back-to-top[hidden] { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .process-flow { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process-flow::before { display: none; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); background: var(--navy-950);
    padding: 100px 32px 40px; transform: translateX(100%); visibility: hidden;
    transition: transform .4s var(--ease), visibility .4s var(--ease);
    box-shadow: -20px 0 40px rgba(0,0,0,.3); overflow-y: auto; z-index: 101;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 26px; }
  .main-nav a { font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  .nav-cta { display: inline-flex; margin-top: 10px; }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 99; background: rgba(5,11,22,.6); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
  .nav-scrim.is-visible { opacity: 1; pointer-events: auto; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  section { padding-block: 74px; }
  .services-grid, .why-grid, .quality-grid, .projects-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: minmax(0, 260px); }
  .cert-close { top: 8px; right: 8px; }
  .process-flow { grid-template-columns: 1fr; }
  .hero-content { padding-block: 140px 90px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 26px; }
}
