/* =========================================================
   Nirvana Cam Balkon - Custom Stylesheet
   Mobile-first, kurumsal cam/lacivert tema
   ========================================================= */

/* ---------- Renk Değişkenleri ---------- */
:root {
  --navy-900: #0A1F44;
  --navy-800: #0F2A5C;
  --navy-700: #163A7A;
  --blue-600: #2E7DD7;
  --blue-500: #3B8FE0;
  --blue-400: #5BA8EE;
  --blue-200: #C7DFF8;
  --blue-50:  #EAF3FC;
  --white:    #FFFFFF;
  --ink:      #0F172A;
  --muted:    #475569;
  --line:     #E2E8F0;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Global Reset & Tipografi ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #F7FAFD;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
iframe { display: block; }

/* Mobil cihazlarda tap-highlight ve text-size adjust */
button, a {
  -webkit-tap-highlight-color: rgba(46, 125, 215, 0.15);
  touch-action: manipulation;
}

/* ---------- Yardımcı Sınıflar ---------- */

/* Cam efekti / glassmorphism kart */
.glass-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px -10px rgba(10, 31, 68, 0.18);
}
.glass-dark {
  background: rgba(10, 31, 68, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Hero arka plan: yumuşak mavi gradient + glow */
.hero-bg {
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(91, 168, 238, 0.35), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(46, 125, 215, 0.25), transparent 60%),
    linear-gradient(135deg, #0A1F44 0%, #163A7A 55%, #2E7DD7 100%);
}

/* İç sayfalar için sade hero */
.subhero-bg {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(91, 168, 238, 0.28), transparent 60%),
    linear-gradient(135deg, #0A1F44 0%, #163A7A 100%);
}

/* Soft mavi bölüm arka planları */
.section-soft {
  background: linear-gradient(180deg, #F7FAFD 0%, #EAF3FC 100%);
}

/* ---------- Butonlar ---------- */
.btn-primary, .btn-whatsapp, .btn-ghost, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #2E7DD7 0%, #163A7A 100%);
  color: #fff;
  box-shadow: 0 10px 25px -8px rgba(46, 125, 215, 0.55);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(46, 125, 215, 0.75);
  filter: brightness(1.05);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  box-shadow: 0 10px 25px -8px rgba(37, 211, 102, 0.55);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.75);
  filter: brightness(1.05);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background .25s ease, transform .25s ease;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--blue-600);
  color: var(--blue-600);
  background: #fff;
  transition: all .25s ease;
}
.btn-outline:hover {
  background: var(--blue-600);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Kart Hover Animasyonu ---------- */
.lift-card {
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.lift-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -16px rgba(10, 31, 68, 0.25);
  border-color: rgba(46, 125, 215, 0.4);
}

/* Touch cihazlarda hover takılı kalmaması için */
@media (hover: none) {
  .lift-card:hover { transform: none; box-shadow: 0 8px 20px -12px rgba(10,31,68,.15); }
  .btn-primary:hover, .btn-whatsapp:hover, .btn-ghost:hover, .btn-outline:hover { transform: none; }
  .nav-link:hover::after { width: 0; }
}

/* ---------- İkon Daire Arkaplanı ---------- */
.icon-bubble {
  background: linear-gradient(135deg, #EAF3FC 0%, #C7DFF8 100%);
  color: var(--navy-800);
  border: 1px solid rgba(46, 125, 215, 0.18);
}

/* ---------- Header Sticky Davranışı ---------- */
.site-header {
  transition: box-shadow .3s ease, background-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.45);
  background-color: rgba(10, 31, 68, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- Nav Underline ---------- */
.nav-link {
  position: relative;
  transition: color .25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #2E7DD7, #5BA8EE);
  transition: width .3s ease, left .3s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
  left: 0;
}

/* ---------- Mobil Menü Tap Targets ---------- */
#mobileMenu a {
  min-height: 48px;
  display: flex;
  align-items: center;
  font-size: 1rem;
}
#menuBtn {
  min-width: 44px;
  min-height: 44px;
}

/* ---------- Animasyonlar ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) both;
}
.fade-up.delay-1 { animation-delay: .15s; }
.fade-up.delay-2 { animation-delay: .30s; }
.fade-up.delay-3 { animation-delay: .45s; }
.fade-up.delay-4 { animation-delay: .60s; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce-motion saygısı */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .reveal { animation: none !important; transform: none !important; opacity: 1 !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Yumuşak ayraç ---------- */
.divider-soft {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,125,215,.25), transparent);
}

/* ---------- Mobil Alt Sabit CTA Bar ---------- */
.mobile-cta-bar {
  padding-bottom: var(--safe-bottom);
}
.mobile-cta-bar a {
  min-height: 56px;
  transition: background-color .2s ease;
}
.mobile-cta-bar a:active { background-color: rgba(46,125,215,.08); }

/* ---------- Floating WhatsApp Pulse ---------- */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.float-wa { animation: pulse-ring 2.4s infinite; }

/* ---------- FAQ ---------- */
details.faq-item summary { list-style: none; cursor: pointer; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item .chev { transition: transform .25s ease; }
details.faq-item[open] .chev { transform: rotate(180deg); }
details.faq-item { transition: box-shadow .25s ease, border-color .25s ease; }
details.faq-item[open] {
  border-color: rgba(46,125,215,.45);
  box-shadow: 0 12px 30px -16px rgba(10,31,68,.18);
}

/* ---------- Form alanları ---------- */
.input-field {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #DCE6F2;
  background: #fff;
  transition: border-color .25s ease, box-shadow .25s ease;
  font-size: 16px; /* iOS zoom önler */
  color: var(--ink);
  min-height: 48px;
}
.input-field:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(46,125,215,.15);
}
textarea.input-field { min-height: 120px; resize: vertical; }

/* ---------- Placeholder görsel ---------- */
.img-placeholder {
  background:
    linear-gradient(135deg, rgba(46,125,215,.18), rgba(91,168,238,.10)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.45) 0 12px, rgba(199,223,248,.45) 12px 24px);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid rgba(46,125,215,.18);
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem;
}

/* ---------- Utility ---------- */
.text-balance { text-wrap: balance; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- MOBİL ÖZEL DÜZENLEMELER ---------- */

/* Mobil alt bar nedeniyle alt boşluk + safe-area */
@media (max-width: 767px) {
  body {
    padding-bottom: calc(64px + var(--safe-bottom));
  }

  /* Mobilde başlık boyutlarını dengele */
  h1 { letter-spacing: -0.02em; }

  /* Hero başlık mobilde dengeli */
  .hero-bg h1, .subhero-bg h1 {
    font-size: clamp(1.875rem, 8vw, 2.5rem);
    line-height: 1.15;
  }

  /* Mobilde section padding'lerini sıkılaştır */
  section.py-16 { padding-top: 3rem; padding-bottom: 3rem; }
  section.py-20 { padding-top: 3.25rem; padding-bottom: 3.25rem; }
  section.py-24 { padding-top: 3.5rem; padding-bottom: 3.5rem; }

  /* Mobilde card padding'lerini optimize et */
  .glass-card { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

  /* Mobilde CTA buton container'ları daha ferah */
  .mobile-stack-cta { flex-direction: column; align-items: stretch; }
  .mobile-stack-cta > a, .mobile-stack-cta > button {
    width: 100%;
    justify-content: center;
  }

  /* Hero CTA butonları mobilde tam genişlik */
  .hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 100%;
  }
  .hero-cta-group > a { width: 100%; justify-content: center; }

  /* Çok dar telefonlarda 2-col kart grid'i biraz daha sıkı */
  .grid-2-tight { gap: 0.625rem; }

  /* Floating WhatsApp mobilde gizli, alt bar var */
  .float-wa { display: none !important; }

  /* Trust card içindeki başlık ve metin dengelenmiş */
  .trust-card h3 { font-size: 0.95rem; line-height: 1.3; }
  .trust-card p  { font-size: 0.78rem; line-height: 1.4; margin-top: 0.25rem; }
  .trust-card    { padding: 0.875rem !important; }

  /* Breadcrumb mobilde */
  ol[aria-label], nav[aria-label="breadcrumb"] ol { font-size: 0.7rem; }

  /* Footer mobilde dengeli */
  footer h3 { font-size: 1rem; }
  footer ul li a { font-size: 0.875rem; line-height: 1.6; }

  /* Hero feature row */
  .hero-features {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Çok küçük ekranlarda (≤360px) ekstra koruma */
@media (max-width: 360px) {
  section.py-16, section.py-20, section.py-24 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hero-bg h1, .subhero-bg h1 { font-size: 1.75rem; }
  .max-w-7xl { padding-left: 0.875rem; padding-right: 0.875rem; }
}

/* Tablet (768-1024px) için ince ayar */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-bg h1 { font-size: 3rem; }
}

/* =========================================================
   HERO — GSAP "Cam Balkon Açılıyor" Animasyonu
   ========================================================= */

/* Cam panel sahnesi (decorative, aria-hidden) */
.hero-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

/* Cam panelleri — yan yana 4 tane */
.hero-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 26%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(91,168,238,0.10) 50%, rgba(255,255,255,0.04) 100%);
  border-left: 1px solid rgba(255,255,255,0.18);
  border-right: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 0 60px rgba(91,168,238,0.06),
    inset 0 1px 0 rgba(255,255,255,0.20);
  backdrop-filter: blur(6px) saturate(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  will-change: transform, opacity;
  transform-origin: center;
}

/* Cam üzerinde diagonal ışık yansıması — sahne açılırken tek seferlik shimmer */
.hero-panel::before {
  content: '';
  position: absolute;
  inset: -20% -10%;
  background: linear-gradient(115deg,
    transparent 35%,
    rgba(255,255,255,0.10) 47%,
    rgba(255,255,255,0.28) 50%,
    rgba(255,255,255,0.10) 53%,
    transparent 65%);
  transform: translateX(-110%);
  pointer-events: none;
  animation: heroPanelShimmer 2.6s cubic-bezier(.35,.05,.2,1) 0.4s 1 both;
}
.hero-panel--2::before { animation-delay: 0.55s; }
.hero-panel--3::before { animation-delay: 0.70s; }
.hero-panel--4::before { animation-delay: 0.85s; }

@keyframes heroPanelShimmer {
  0%   { transform: translateX(-110%); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateX(110%);  opacity: 0; }
}

/* Alüminyum profil — panel kenarlarında ince çizgi */
.hero-panel::after {
  content: '';
  position: absolute;
  top: 8%;
  bottom: 8%;
  right: -1px;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255,255,255,0.35) 25%,
    rgba(91,168,238,0.45) 50%,
    rgba(255,255,255,0.35) 75%,
    transparent 100%);
  border-radius: 2px;
  filter: blur(0.3px);
}

.hero-panel--1 { left: -1%; }
.hero-panel--2 { left: 25%; }
.hero-panel--3 { left: 51%; }
.hero-panel--4 { left: 77%; }

/* Üst & Alt yatay alüminyum şerit */
.hero-stage > .hero-rail {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.20) 20%,
    rgba(91,168,238,0.45) 50%,
    rgba(255,255,255,0.20) 80%,
    transparent 100%);
  pointer-events: none;
}
.hero-rail--top    { top: 8%; }
.hero-rail--bottom { bottom: 8%; }

/* Yüzen ışık parçacıkları */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  filter: blur(0.5px);
  will-change: transform, opacity;
}

/* JS aktifken initial state — content gizli ve hazır */
.js-hero [data-hero-anim] {
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
}
.js-hero [data-hero-anim="title"] {
  opacity: 1;
  transform: translateY(40px) scale(0.985);
  clip-path: inset(0 0 100% 0);
  -webkit-clip-path: inset(0 0 100% 0);
  will-change: transform, clip-path;
}
.js-hero [data-hero-anim="cta"] {
  transform: translateY(28px) scale(0.94);
}
.js-hero [data-hero-anim="card"] {
  transform: translateY(36px) rotateX(-8deg);
  transform-origin: top center;
  perspective: 800px;
}

/* Reduced-motion: animasyonsuz, içerik direkt görünür */
@media (prefers-reduced-motion: reduce) {
  .js-hero [data-hero-anim],
  .js-hero [data-hero-anim="title"],
  .js-hero [data-hero-anim="cta"],
  .js-hero [data-hero-anim="card"] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }
  .hero-stage,
  .hero-particles { display: none !important; }
}

/* Mobilde panel sayısını azalt */
@media (max-width: 640px) {
  .hero-panel { width: 52%; }
  .hero-panel--1 { left: -2%; }
  .hero-panel--2 { left: 50%; }
  .hero-panel--3,
  .hero-panel--4 { display: none; }
  .hero-particle { width: 3px; height: 3px; }
}

/* JS yoksa fallback — CSS animasyonu çalışsın */
html:not(.js-hero) .hero-stage { display: none; }
html:not(.js-hero) [data-hero-anim] {
  animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) both;
}
html:not(.js-hero) [data-hero-anim="badge"]   { animation-delay: 0.10s; }
html:not(.js-hero) [data-hero-anim="title"]   { animation-delay: 0.20s; }
html:not(.js-hero) [data-hero-anim="text"]    { animation-delay: 0.35s; }
html:not(.js-hero) [data-hero-anim="cta"]     { animation-delay: 0.50s; }
html:not(.js-hero) [data-hero-anim="feature"] { animation-delay: 0.60s; }
html:not(.js-hero) [data-hero-anim="card"]    { animation-delay: 0.45s; }

