/* ─── Kahvecioğlu Yapı İnşaat — modern tema ─────────────────────────── */
:root {
  --accent: #E32227;
  --accent-dark: #B5121B;
  --accent-soft: #FDECEC;
  --navy: #161E28;
  --navy-2: #202B38;
  --ink: #1B232C;
  --gray: #5E6973;
  --line: #E6E9ED;
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --r-sm: 16px;
  --r-md: 24px;
  --r-lg: 36px;
  --ease: cubic-bezier(0.25, 0.8, 0.3, 1);
  --shadow-soft: 0 2px 8px rgba(18, 26, 36, 0.05), 0 18px 44px rgba(18, 26, 36, 0.09);
}

html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
p { text-wrap: pretty; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3 {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--navy);
}

/* ─── Pills & kickers ───────────────────────────────────── */
.pill-kicker {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.pill-kicker::before {
  content: ""; width: 7px; height: 7px;
  border-radius: 999px; background: var(--accent);
}
.sec-title { font-size: clamp(1.9rem, 4.4vw, 3rem); }

/* ─── Üst bant ──────────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  position: relative; z-index: 72;
}
.topbar a { color: inherit; text-decoration: none; transition: color 0.25s; }
.topbar a:hover { color: #fff; }
.topbar .dot { width: 4px; height: 4px; border-radius: 999px; background: var(--accent); display: inline-block; flex: none; }

/* ─── Ana menü ──────────────────────────────────────────── */
.mainnav {
  position: sticky; top: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.mainnav.scrolled { box-shadow: 0 10px 30px rgba(18, 26, 36, 0.1); }

.phone-chip {
  display: inline-flex; align-items: center; gap: 0.75em;
  font-weight: 700; font-size: 0.95rem;
  color: var(--navy); text-decoration: none;
}
.phone-chip .ico {
  width: 44px; height: 44px; flex: none;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.phone-chip:hover .ico { background: var(--accent); color: #fff; transform: rotate(-10deg); }
.nav-link {
  position: relative;
  font-weight: 600; font-size: 0.92rem;
  color: var(--ink); text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition: background-color 0.25s, color 0.25s;
}
.nav-link:hover { background: var(--accent-soft); color: var(--accent-dark); }

.nav-toggle {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--navy);
  cursor: pointer; border: none;
}
.nav-toggle .bars { display: grid; gap: 5px; width: 18px; }
.nav-toggle .bars span { height: 2px; background: #fff; border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s; }
body.nav-open .nav-toggle .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-sheet {
  position: absolute;
  left: 14px; right: 14px;
  top: calc(100% + 10px);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 18px 44px rgba(18, 26, 36, 0.16);
  overflow: hidden;
  display: grid; grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.45s var(--ease), opacity 0.3s;
}
.mobile-sheet > div { overflow: hidden; }
body.nav-open .mobile-sheet { grid-template-rows: 1fr; opacity: 1; }
.mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 54px; padding: 0 1.4rem;
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-radius: var(--r-sm);
  transition: background-color 0.25s;
}
.mobile-link:hover { background: var(--accent-soft); }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 54px; padding: 0 1.8em;
  border-radius: 999px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(227, 34, 39, 0.32); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--accent); color: #fff; }
.footer a.btn-white { color: var(--navy); }
.footer a.btn-white:hover { color: #fff; }

/* ─── Hero ──────────────────────────────────────────────── */
.hero-title {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  letter-spacing: -0.03em;
}
.hero-title .mark {
  position: relative;
  color: var(--accent);
  white-space: nowrap;
}
.hero-title .mark::after {
  content: "";
  position: absolute; left: 2%; right: 2%; bottom: 0.02em;
  height: 0.16em;
  background: var(--accent-soft);
  border-radius: 999px;
  z-index: -1;
}
.hero-up {
  opacity: 0; transform: translateY(24px);
  animation: hero-up 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes hero-up { to { opacity: 1; transform: none; } }

.hero-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: clip;
  box-shadow: var(--shadow-soft);
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center bottom;
  display: block;
  animation: hero-zoom 16s var(--ease) forwards;
}
@keyframes hero-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }

.glass-chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 0.9rem 1.3rem;
  box-shadow: 0 10px 30px rgba(18, 26, 36, 0.18);
}
.glass-chip .num {
  font-family: "Sora", sans-serif;
  font-weight: 700; font-size: 1.5rem; line-height: 1.1;
  color: var(--navy);
}
.glass-chip .num em { font-style: normal; color: var(--accent); }
.glass-chip .lbl { font-size: 0.74rem; font-weight: 600; color: var(--gray); }

/* ─── Reveal ────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].in-view { opacity: 1; transform: none; }

/* ─── Stat cards ────────────────────────────────────────── */
.stat-card {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 1.6rem 1.7rem;
  box-shadow: 0 1px 3px rgba(18, 26, 36, 0.04);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.stat-val {
  font-family: "Sora", sans-serif;
  font-weight: 700; font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1; color: var(--navy);
}
.stat-val .plus { color: var(--accent); }

/* ─── Bento services ────────────────────────────────────── */
.bento {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 1.9rem;
  position: relative; overflow: clip;
  box-shadow: 0 1px 3px rgba(18, 26, 36, 0.04);
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.bento:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.bento-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 1.2rem;
  transition: background-color 0.35s, color 0.35s, transform 0.45s var(--ease);
}
.bento:hover .bento-icon { background: var(--accent); color: #fff; transform: rotate(-8deg) scale(1.06); }
.bento-img {
  border-radius: var(--r-sm);
  overflow: clip;
  margin-top: 1.4rem;
}
.bento-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease); }
.bento:hover .bento-img img { transform: scale(1.05); }

/* ─── Project cards ─────────────────────────────────────── */
.proj {
  background: var(--card);
  border-radius: var(--r-md);
  overflow: clip;
  box-shadow: 0 1px 3px rgba(18, 26, 36, 0.04);
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.proj:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.proj-media { position: relative; aspect-ratio: 4/3; overflow: clip; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease); }
.proj:hover .proj-media img { transform: scale(1.06); }
.proj-status {
  position: absolute; top: 14px; left: 14px;
  padding: 0.4em 1em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.proj-status.hot { background: var(--accent); color: #fff; }
.proj-arrow {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--bg); color: var(--navy);
  transition: background-color 0.3s, color 0.3s, transform 0.45s var(--ease);
}
.proj:hover .proj-arrow { background: var(--accent); color: #fff; transform: rotate(45deg); }

/* ─── Process ───────────────────────────────────────────── */
.step-dot {
  width: 64px; height: 64px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(18, 26, 36, 0.06);
  font-family: "Sora", sans-serif;
  font-weight: 700; font-size: 1.15rem;
  color: var(--accent);
  border: 1.5px dashed rgba(227, 34, 39, 0.4);
}
.step-line { flex: 1; height: 1.5px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); }

/* ─── Ticks ─────────────────────────────────────────────── */
.tick { display: flex; gap: 0.9rem; align-items: flex-start; }
.tick-ico {
  flex: none; width: 28px; height: 28px; margin-top: 1px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}

/* ─── Form ──────────────────────────────────────────────── */
.field {
  width: 100%; min-height: 54px;
  padding: 0.85rem 1.2rem;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font: inherit; color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(227, 34, 39, 0.12);
}
textarea.field { min-height: 130px; resize: vertical; }
.form-ok {
  display: none;
  padding: 1rem 1.3rem;
  border-radius: 16px;
  background: #E8F6EC; color: #1E7A3C;
  font-weight: 600;
}
.form-ok.show { display: block; }

/* ─── 3-layer footer ────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.68);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  position: relative; overflow: clip;
}
.footer::before {
  content: "";
  position: absolute; top: -140px; right: -140px;
  width: 420px; height: 420px;
  border-radius: 999px;
  border: 60px solid rgba(255, 255, 255, 0.04);
}
.footer a { color: inherit; text-decoration: none; transition: color 0.25s; }
.footer a:hover { color: #fff; }
.footer .head {
  font-family: "Sora", sans-serif;
  font-weight: 600; font-size: 0.95rem; color: #fff;
}
.footer-cta-title { font-size: clamp(1.7rem, 4vw, 2.6rem); color: #fff; }
.logo-chip { display: inline-block; }
.logo-chip img { filter: brightness(0) invert(1); }
.soc {
  width: 44px; height: 44px;
  border-radius: 999px;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s, border-color 0.3s;
}
.soc:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ─── Motion prefs ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-up, [data-reveal] { opacity: 1; transform: none; }
}
html[data-motion="off"] .hero-media img { animation: none; }
html[data-motion="off"] .hero-up { animation: none; opacity: 1; transform: none; }
html[data-motion="off"] [data-reveal] { opacity: 1; transform: none; transition: none; }

/* ─── Hero slider ───────────────────────────────────────── */
.hero-swiper {
  border-radius: var(--r-lg);
  overflow: clip;
  box-shadow: var(--shadow-soft);
}
.hero-swiper .swiper-slide { position: relative; overflow: clip; }
.hero-swiper .swiper-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transform: scale(1.08);
  transition: transform 6s linear;
}
.hero-swiper .swiper-slide-active img { transform: scale(1); }
.slide-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13, 18, 25, 0.74) 0%, rgba(13, 18, 25, 0.16) 46%, transparent 72%);
}
.slide-cap {
  position: absolute;
  left: 20px; right: 140px; bottom: 22px;
  z-index: 5; color: #fff;
  display: grid; gap: 0.7rem; justify-items: start;
}
@media (min-width: 768px) { .slide-cap { left: 30px; bottom: 30px; } }
.slide-tag {
  display: inline-flex;
  padding: 0.42em 1.1em;
  border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.slide-title {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 3.4vw, 2.1rem);
  letter-spacing: -0.02em; line-height: 1.15;
  max-width: 560px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero-swiper .hs-frac {
  position: absolute;
  top: 18px; right: 18px;
  left: auto; bottom: auto; width: auto;
  z-index: 6;
  display: inline-flex; align-items: center; gap: 0.3em;
  padding: 0.5em 1.15em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: "Sora", sans-serif;
  font-weight: 600; font-size: 0.85rem;
  color: var(--navy);
}
.hs-ctrls {
  position: absolute;
  right: 18px; bottom: 18px;
  z-index: 6;
  display: flex; gap: 10px;
}
@media (min-width: 768px) { .hs-ctrls { right: 26px; bottom: 26px; } }
.hs-btn {
  width: 50px; height: 50px;
  border-radius: 999px; border: none; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--navy);
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.hs-btn:hover { background: var(--accent); color: #fff; }
.hs-btn:active { transform: scale(0.93); }
html[data-motion="off"] .hero-swiper .swiper-slide img { transform: none; transition: none; }

/* ─── Form durum mesajları ──────────────────────────────── */
.form-error {
  display: none;
  padding: 1rem 1.3rem;
  border-radius: 16px;
  background: var(--accent-soft); color: var(--accent-dark);
  font-weight: 600;
}
.form-error.show { display: block; }

/* ─── Galeri karoları ───────────────────────────────────── */
.gallery-tile img { transition: transform 0.7s var(--ease); }
.gallery-tile:hover img { transform: scale(1.06); }
