/* =============================================================
   Ilka Group - Design System
   Beyaz + lacivert minimal kurumsal tema
   ============================================================= */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

:root {
  --navy: #0e2a47;
  --navy-dark: #0a1f36;
  --navy-light: #1f5788;
  --accent: #2d6cdf;
  --ink: #22303f;
  --muted: #64748b;
  --line: #e6eaf0;
  --bg-soft: #f6f8fb;
}

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .navbar-brand {
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn { border-radius: 4px; font-weight: 600; padding: 0.6rem 1.4rem; }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-outline-navy { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-light-ghost { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-light-ghost:hover { background: #fff; color: var(--navy); }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
}
.topbar a { color: #cbd5e1; }
.topbar a:hover { color: #fff; }

.navbar-main {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.navbar-main .navbar-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.navbar-main .navbar-brand span { color: var(--accent); }
.navbar-main .nav-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0.35rem;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active { color: var(--accent); }
.lang-switch a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.2rem 0.45rem;
}
.lang-switch a.active { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title { font-size: 2rem; margin-bottom: 1rem; }
.section-head p { color: var(--muted); max-width: 620px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: #fff;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { padding: 8rem 0 7rem; max-width: 720px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
}
.hero p.lead { color: #c9d6e6; font-size: 1.15rem; max-width: 560px; }
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-layer {
  position: absolute;
  inset: -60px;                 /* parallax hareketi kenar bosluklarini gostermesin */
  background-position: center bottom;
  background-repeat: repeat-x;
  background-size: auto 100%;
  will-change: transform;
}
.hero-glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 55%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(126, 168, 216, 0.18) 0%, transparent 65%);
  animation: heroGlow 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroGlow {
  from { transform: translate(0, 0) scale(1); opacity: 0.8; }
  to   { transform: translate(-4%, 4%) scale(1.08); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
}
.hero-badges { color: #9fb3ca; font-size: 0.9rem; }
.hero-badges .bi { color: #7ea8d8; margin-right: 0.35rem; }

/* ---------- Service cards ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.6rem 1.35rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(14, 42, 71, 0.10);
  border-color: transparent;
}
.service-card .icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.service-card h5 { font-size: 0.98rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); font-size: 0.87rem; margin-bottom: 0.75rem; }
.service-card .more { font-size: 0.88rem; font-weight: 700; }

/* ---------- Project cards ---------- */
.project-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  display: block;
}
.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.project-card:hover img { transform: scale(1.05); }
.project-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 31, 54, 0.85) 0%, rgba(10, 31, 54, 0.05) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  color: #fff;
}
.project-card .overlay h5 { color: #fff; margin-bottom: 0.2rem; }
.project-card .overlay .meta { color: #b9c8da; font-size: 0.85rem; }
.project-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: #fff;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
}
.project-badge.ongoing { background: var(--accent); color: #fff; }

/* ---------- Process strip ---------- */
.process-step { text-align: center; padding: 0 1rem; }
.process-step .num {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--navy);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
}
.process-step h6 { font-size: 1rem; }
.process-step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- News cards ---------- */
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s ease;
}
.news-card:hover { box-shadow: 0 14px 34px rgba(14, 42, 71, 0.10); }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card .body { padding: 1.4rem; }
.news-card .date { color: var(--muted); font-size: 0.82rem; }
.news-card h5 { font-size: 1.02rem; margin: 0.4rem 0 0.5rem; }
.news-card h5 a { color: var(--navy); }
.news-card p { color: var(--muted); font-size: 0.9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy-light));
  color: #fff;
  padding: 4rem 0;
}
.cta-band h3 { color: #fff; font-size: 1.7rem; }
.cta-band p { color: #c9d6e6; }

/* ---------- Page header (ic sayfalar) ---------- */
.page-head {
  background: var(--navy);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
}
.page-head h1 { color: #fff; font-size: 2.1rem; }
.page-head .breadcrumb { margin: 0; }
.page-head .breadcrumb-item, .page-head .breadcrumb-item a { color: #9fb3ca; font-size: 0.85rem; }
.page-head .breadcrumb-item.active { color: #fff; }

/* ---------- Filters ---------- */
.filter-pills .btn {
  border-radius: 30px;
  font-size: 0.88rem;
  padding: 0.4rem 1.1rem;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: 4px;
  border-color: var(--line);
  padding: 0.65rem 0.9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(45, 108, 223, 0.12);
}
.form-label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }

/* ---------- Detail pages ---------- */
.detail-meta {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.4rem;
}
.detail-meta .row-item {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.detail-meta .row-item:last-child { border-bottom: 0; }
.detail-meta .k { color: var(--muted); }
.detail-meta .v { font-weight: 700; color: var(--navy); }
.gallery-thumb { border-radius: 6px; overflow: hidden; display: block; }
.gallery-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity 0.2s; }
.gallery-thumb:hover img { opacity: 0.85; }

.prose { line-height: 1.8; color: var(--ink); }
.prose p { margin-bottom: 1.1rem; }

/* ---------- Footer ---------- */
.footer-main {
  background: var(--navy-dark);
  color: #9fb3ca;
  padding: 4rem 0 0;
  font-size: 0.92rem;
}
.footer-main h6 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}
.footer-main a { color: #9fb3ca; display: inline-block; padding: 0.18rem 0; }
.footer-main a:hover { color: #fff; }
.footer-main .brand { color: #fff; font-size: 1.3rem; font-weight: 800; }
.footer-main .brand span { color: #7ea8d8; }
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  margin-right: 0.4rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 3rem;
  padding: 1.2rem 0;
  font-size: 0.83rem;
  color: #64748b;
}

/* ---------- Utilities ---------- */
.shadow-soft { box-shadow: 0 10px 30px rgba(14, 42, 71, 0.08); }

@media (max-width: 767.98px) {
  .section { padding: 3.5rem 0; }
  .hero-inner { padding: 5rem 0 4.5rem; }
}

/* ---- Quill 2 editor ciktisi (panelden girilen zengin icerik) ---- */
.prose ul, .prose ol { margin: 0 0 1.1rem 1.4rem; padding: 0; }
.prose li { margin-bottom: .35rem; }
.prose li[data-list="bullet"] { list-style-type: disc; }
.prose li[data-list="ordered"] { list-style-type: decimal; }
.prose li > .ql-ui { display: none; }
.prose h2, .prose h3, .prose h4 { margin: 1.6rem 0 .7rem; font-weight: 700; line-height: 1.3; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.1rem; }
.prose blockquote { border-left: 4px solid var(--accent); padding: .5rem 1rem; margin: 1.2rem 0; color: #555; }
.prose img { max-width: 100%; height: auto; border-radius: .5rem; }
.prose a { text-decoration: underline; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { padding-left: 3em; }
.prose .ql-indent-2 { padding-left: 6em; }
.prose .ql-indent-3 { padding-left: 9em; }
.prose strong { font-weight: 700; }

/* ---- Lightbox (proje galerisi) ---- */
.lb-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10, 14, 24, 0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease;
  touch-action: pan-y;
}
.lb-overlay.is-open { opacity: 1; }
.lb-overlay img {
  max-width: 92vw; max-height: 86vh;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  user-select: none; -webkit-user-drag: none;
}
.lb-btn {
  position: absolute; border: 0; background: rgba(255,255,255,0.08); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.15s;
}
.lb-btn:hover { background: rgba(255,255,255,0.2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.75); font-size: 0.9rem; letter-spacing: 0.04em;
}
@media (max-width: 576px) {
  .lb-btn { width: 40px; height: 40px; font-size: 1.3rem; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-overlay img { max-width: 100vw; max-height: 80vh; border-radius: 0; }
}
body.lb-lock { overflow: hidden; }

/* ---- Hero fotografi ---- */
.hero-photo {
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
  filter: saturate(0.9);
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.78) 45%, rgba(10, 22, 40, 0.45) 100%);
}

/* ---- Hizmet karti kapak gorseli ---- */
.service-card { display: flex; flex-direction: column; overflow: hidden; }
.service-card .cover { display: block; margin: -1.6rem -1.35rem 1.2rem; }
.service-card .cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform 0.4s ease; }
.service-card:hover .cover img { transform: scale(1.04); }
.service-card .more { margin-top: auto; }

/* ---- Detay sayfasi kapak gorseli ---- */
.detail-cover { aspect-ratio: 16 / 8; object-fit: cover; }

/* ---- Footer yasal linkler ---- */
.footer-legal a { color: inherit; opacity: 0.75; margin-left: 1.25rem; }
.footer-legal a:first-child { margin-left: 0; }
.footer-legal a:hover { opacity: 1; }
@media (max-width: 767.98px) { .footer-legal { margin-top: .5rem; } }

/* ---- Dil secici bayraklar ---- */
.lang-switch { display: inline-flex; align-items: center; }
.lang-switch a { display: inline-flex; align-items: center; gap: 0.3rem; }
.lang-switch svg { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); flex: none; }
.lang-switch a:not(.active) svg { opacity: 0.75; }
