/* ============================================================
   MESHA YAPI İNŞAAT — Paylaşımlı Stylesheet
   assets/css/style.css
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #f8f8f6; color: #2b2b2b; overflow-x: hidden; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1c1c1c; }
::-webkit-scrollbar-thumb { background: #c8a96e; border-radius: 3px; }

/* --- Reveal Scroll Animasyonları --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity .7s ease, transform .7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* --- Üst Bilgi Şeridi (Topbar) --- */
#topbar {
  background: #1c1c1c;
  border-bottom: 1px solid rgba(200,169,110,.15);
  font-size: .72rem;
  letter-spacing: .04em;
  overflow: hidden;
  max-height: 48px;
  transition: max-height .3s ease, opacity .3s ease;
}
#topbar.hidden-bar { max-height: 0; opacity: 0; }

/* --- Navigasyon (Navbar) --- */
#navbar {
  background: rgba(20,20,20,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200,169,110,.12);
  transition: box-shadow .3s ease;
}
#navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.5); }

.nav-divider { width: 1px; height: 20px; background: rgba(255,255,255,.12); }

.nav-link {
  position: relative;
  letter-spacing: .06em;
  font-size: .72rem;
  font-weight: 600;
  transition: color .25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #c8a96e, #d9be8d);
  border-radius: 1px;
  transition: width .3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover { color: #c8a96e !important; }

/* --- Teklif Al Butonu (Navbar) --- */
.btn-cta-nav {
  background: transparent;
  border: 1.5px solid rgba(200,169,110,.7);
  color: #c8a96e;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  transition: color .3s ease, border-color .3s ease;
}
.btn-cta-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #c8a96e, #d9be8d);
  transform: translateX(-101%);
  transition: transform .35s cubic-bezier(.23,1,.32,1);
}
.btn-cta-nav:hover { color: #1c1c1c; border-color: #c8a96e; }
.btn-cta-nav:hover::before { transform: translateX(0); }
.btn-cta-nav span { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; }

/* --- Mobil Menü --- */
#mobile-menu { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.23,1,.32,1); }
#mobile-menu.open { max-height: 440px; }

/* --- Yardımcı Sınıflar --- */
.accent-bar { width: 48px; height: 3px; background: linear-gradient(90deg, #c8a96e, #d9be8d); border-radius: 2px; }

.gradient-text {
  background: linear-gradient(135deg, #c8a96e, #e8d09f, #c8a96e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Butonlar --- */
.btn-primary {
  background: linear-gradient(135deg, #c8a96e, #d9be8d);
  color: #1c1c1c;
  font-weight: 700;
  transition: all .3s ease;
  box-shadow: 0 8px 32px rgba(200,169,110,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(200,169,110,.5);
  background: linear-gradient(135deg, #d9be8d, #e8d09f);
}

.btn-dark { background: #2b2b2b; color: #fff; transition: all .3s ease; }
.btn-dark:hover { background: #1c1c1c; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

.btn-outline {
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
  transition: all .3s ease;
  backdrop-filter: blur(4px);
}
.btn-outline:hover { border-color: #c8a96e; color: #c8a96e; background: rgba(200,169,110,.08); }

.btn-outline-accent { border: 2px solid #c8a96e; color: #c8a96e; transition: all .3s ease; border-radius: 3px; }
.btn-outline-accent:hover { background: #c8a96e; color: #1c1c1c; }

/* --- Footer Linkleri --- */
.footer-link { color: #9a9a9a; transition: color .3s ease; }
.footer-link:hover { color: #c8a96e; }

/* --- Sayfa Hero (Ortak yapı) --- */
.page-hero { background-size: cover; background-position: center 35%; }

/* --- Keyframe Animasyonlar --- */
@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp .7s ease-out forwards; }

@keyframes fadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
.animate-fade-in { animation: fadeIn 1s ease-out forwards; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
