/* ============================================
   Prime Istanbul Residences — Style
   ============================================ */

/* --- Variables --- */
:root {
  --color-dark: #231f25;
  --color-dark-alt: rgba(35,31,37,0.96);
  --color-white: #ffffff;
  --color-light: #f8f8f8;
  --color-accent: #2f576f;
  --color-accent-lt: #3a6e8a;
  --color-border: #e0dede;
  --color-text: #333333;
  --color-text-light: #666666;
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Inter', 'Roboto', sans-serif;
  --transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  --shadow: 0 4px 30px rgba(0,0,0,0.08);
  --shadow-heavy: 0 10px 60px rgba(0,0,0,0.15);
}

/* --- Reset --- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; font-size: 16px; overflow-x: clip; }
body { font-family: var(--font-body); color: var(--color-text); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; max-width: 100vw; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.4; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
nav#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem clamp(1.2rem,5vw,3.5rem);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: padding 0.35s, box-shadow 0.4s;
}
nav#nav.sc {
  padding-top: 0.6rem; padding-bottom: 0.6rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 50px; width: auto; display: block; }
.nav-r { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  color: var(--color-dark);
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  font-family: var(--font-heading); font-weight: 500;
  transition: color .25s;
}
.nav-links a:hover { color: var(--color-accent); }
.nav-cta {
  border: 1px solid var(--color-accent);
  color: var(--color-accent) !important;
  padding: .55rem 1.3rem;
  transition: background .25s, color .25s !important;
}
.nav-cta:hover { background: var(--color-accent) !important; color: #fff !important; }

/* Lang switcher */
.lang-sw { display: flex; gap: .25rem; align-items: center; }
.ls {
  font-size: .6rem; letter-spacing: .08em; font-weight: 600;
  border: 1px solid rgba(35,31,37,.18); color: rgba(35,31,37,.45);
  padding: .28rem .52rem; cursor: pointer; transition: all .25s;
  background: none; font-family: var(--font-heading);
}
.ls:hover, .ls.on { border-color: var(--color-accent); color: var(--color-accent); }

/* Hamburger */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; padding: 5px; background: none; border: none; cursor: pointer;
}
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--color-dark); transition: transform .3s, opacity .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 95;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 5.5rem clamp(1.4rem,6vw,3rem) 2.2rem;
  display: flex; flex-direction: column; gap: .2rem;
  transform: translateY(-105%); transition: transform .45s cubic-bezier(.76,0,.24,1);
  box-shadow: 0 14px 40px rgba(0,0,0,.1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  width: 40px; height: 40px; background: none; border: 1px solid rgba(0,0,0,.12);
  cursor: pointer; font-size: 1.2rem; color: var(--color-dark);
  display: flex; align-items: center; justify-content: center;
  transition: color .2s, border-color .2s; border-radius: 2px;
}
.mobile-close:hover { color: var(--color-accent); border-color: var(--color-accent); }
[dir=rtl] .mobile-close { right: auto; left: 1.4rem; }
.mobile-menu a {
  color: var(--color-dark); font-size: .82rem; letter-spacing: .16em;
  text-transform: uppercase; font-family: var(--font-heading); font-weight: 500;
  padding: 1rem .2rem; border-bottom: 1px solid rgba(0,0,0,.08); transition: color .25s;
}
.mobile-menu a:hover { color: var(--color-accent); }
.mobile-menu .nav-cta { margin-top: 1.3rem; text-align: center; padding: 1rem; border-bottom: 1px solid var(--color-accent); }
@media (min-width: 901px) { .mobile-menu { display: none; } }
@media (max-width: 900px) { .nav-links { display: none; } .nav-burger { display: flex; } }

/* ══════════════════════════════════════════════
   WHATSAPP
══════════════════════════════════════════════ */
#wa {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.42);
  transition: transform .3s, box-shadow .3s;
}
#wa:hover { transform: scale(1.1); box-shadow: 0 6px 26px rgba(37,211,102,.62); }
#wa svg { width: 28px; height: 28px; }
[dir=rtl] #wa { right: auto; left: 2rem; }

/* ══════════════════════════════════════════════
   REVEAL ANIMATION
══════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.vis { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════
   HERO SLIDER
══════════════════════════════════════════════ */
.hero-slider {
  position: relative; width: 100%; height: 100vh; overflow: hidden;
}
.hero-slider .slides {
  display: flex; height: 100%;
  transition: transform 0.8s cubic-bezier(0.77,0,0.175,1);
}
.hero-slider .slide { min-width: 100%; height: 100%; position: relative; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; font-size: 2rem; color: #fff;
  transition: var(--transition); background: rgba(0,0,0,0.2); border-radius: 50%; border: none;
}
.slider-arrow:hover { background: rgba(0,0,0,0.5); }
.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }
.slider-dots {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 2px; z-index: 10;
}
.slider-dots .dot {
  width: 24px; height: 24px; padding: 0; border: none; background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.slider-dots .dot::after {
  content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
  transition: var(--transition);
}
.slider-dots .dot.active::after { background: #fff; }
.scroll-indicator {
  position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 50px; border: 2px solid rgba(255,255,255,.8);
  border-radius: 20px; z-index: 10; cursor: pointer;
}
.scroll-indicator::before {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%) translateY(0);
  width: 4px; height: 10px; background: #fff; border-radius: 2px; animation: scrollAnim 2s infinite;
}
@keyframes scrollAnim { 0%{opacity:1;transform:translateX(-50%) translateY(0)} 100%{opacity:0;transform:translateX(-50%) translateY(20px)} }

/* ══════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════ */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; position: relative; }
.section-title h2 {
  font-size: clamp(1.4rem,2.5vw,1.8rem); font-weight: 600; letter-spacing: 1px;
  display: inline-block; position: relative;
}
.section-title h2::before,
.section-title h2::after {
  content: ''; position: absolute; top: 50%; width: 60px; height: 1px; background: var(--color-border);
}
.section-title h2::before { right: calc(100% + 20px); }
.section-title h2::after { left: calc(100% + 20px); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }

/* --- Intro --- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.intro-col h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 15px; line-height: 1.5; }
.intro-col .text-content { font-size: .95rem; font-weight: 400; line-height: 1.8; color: var(--color-text-light); }
.intro-col:first-child { text-align: right; }

/* --- Services Bar --- */
.services-bar { padding: 40px 0; background: var(--color-white); overflow: hidden; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
  padding: 0 20px;
}
.service-item { padding: 12px 4px; transition: var(--transition); }
.service-item:hover { transform: translateY(-4px); }
.service-item img { width: 64px; height: 64px; margin: 0 auto 10px; object-fit: contain; }
.service-item span { display: block; font-size: .82rem; font-weight: 500; color: var(--color-text); line-height: 1.3; }

/* --- Split Sections --- */
.split-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; }
.split-image { background-size: cover; background-position: center; min-height: 400px; }
.split-content { display: flex; flex-direction: column; justify-content: center; padding: 8% 10%; }
.split-content.dark { background: var(--color-dark); color: var(--color-white); }
#konsept .split-content h2, #ayricaliklar .split-content h3 { font-size: clamp(1.2rem,2vw,1.6rem); margin-bottom: 20px; line-height: 1.5; }
.split-content p { font-size: .92rem; font-weight: 400; line-height: 1.8; opacity: .92; margin-bottom: 25px; }

/* --- Social Cards --- */
.social-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; }
.social-card { padding: 0 5%; text-align: center; }
.card-img-wrap { overflow: hidden; border-radius: 4px; margin-bottom: 20px; }
.card-img-wrap img { width: 100%; display: block; transition: transform 0.5s ease; }
.social-card:hover .card-img-wrap img { transform: scale(1.05); }
.social-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 15px; }
.social-card p { font-size: .88rem; line-height: 1.8; color: var(--color-text-light); }
.sosyal-cta { text-align: center; margin-top: 3rem; }
.btn-sosyal {
  display: inline-block; font-family: var(--font-heading); font-size: .72rem;
  letter-spacing: .22em; text-transform: uppercase; font-weight: 700;
  padding: 1rem 2.8rem; border: 2px solid var(--color-accent); color: var(--color-accent);
  transition: background .3s, color .3s;
}
.btn-sosyal:hover { background: var(--color-accent); color: #fff; }

/* --- Tabs (Oda Planları) --- */
.tabs-container { margin-top: 20px; }
.tab-buttons { display: flex; border-bottom: 2px solid var(--color-border); margin-bottom: 30px; }
.tab-btn {
  padding: 12px 30px; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600;
  cursor: pointer; border: none; background: #ebeaea; color: var(--color-text);
  transition: var(--transition); border-top: 2px solid transparent;
}
.tab-btn.active, .tab-btn:hover { background: var(--color-white); border-top-color: var(--color-accent); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.tab-panel img { width: 100%; border-radius: 4px; }
.tab-panel .plan-details h3 { font-size: 1.4rem; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--color-border); }
.tab-panel .plan-details p { font-size: .95rem; line-height: 2; }
.tab-panel .plan-details strong { font-weight: 600; }

/* --- Gallery --- */
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; }
.gallery-item { overflow: hidden; cursor: pointer; position: relative; aspect-ratio: 3/2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: var(--transition); }
.gallery-item:hover::after { background: rgba(0,0,0,0.15); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.95); z-index: 2000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease; }
.lightbox.active { display: flex; opacity: 1; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 2px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 2rem; color: #fff; cursor: pointer; z-index: 2001; background: none; border: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2rem; color: #fff; cursor: pointer; z-index: 2001; background: rgba(255,255,255,.1); border: none; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--transition); }
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-nav.lb-prev { left: 20px; }
.lightbox-nav.lb-next { right: 20px; }

/* --- Location --- */
.location-section { padding: 0; }

/* ══════════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════════ */
.contact-sec { background: var(--color-dark); color: var(--color-white); padding: clamp(5rem,10vw,8rem) 0; }
.ct-head { text-align: center; margin-bottom: clamp(2.5rem,5vw,4rem); }
.eyebrow {
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--color-accent); font-weight: 600; font-family: var(--font-heading);
  display: block; margin-bottom: .8rem;
}
.contact-sec .eyebrow { color: #7caabf; }
.ct-head h2 { font-size: clamp(2rem,4vw,3rem); color: #fff; font-weight: 600; margin-bottom: 1rem; }
.ct-head p { color: rgba(255,255,255,.6); font-size: .95rem; max-width: 52ch; margin: 0 auto; line-height: 1.8; }
.ct-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem,6vw,6rem); }
.ct-info h3 { font-family: var(--font-heading); font-size: 1.05rem; color: #fff; margin: 1.6rem 0 .35rem; font-weight: 600; }
.ct-info h3:first-child { margin-top: 0; }
.ct-info p { color: rgba(255,255,255,.6); line-height: 1.8; font-size: .9rem; }
.ct-info a { color: #7caabf; transition: color .25s; }
.ct-info a:hover { color: #fff; }
.ct-shuttle-note { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); color: #7caabf; font-size: .88rem; line-height: 1.7; }

/* Contact form */
.ct-form { display: flex; flex-direction: column; gap: .9rem; }
.cf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cf-f { display: flex; flex-direction: column; }
.cf-f label { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: .5rem; font-family: var(--font-heading); font-weight: 600; }
.cf-f input, .cf-f textarea, .cf-f select {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #fff; padding: .85rem 1rem; font-size: .88rem; font-family: var(--font-body);
  outline: none; transition: border-color .25s; border-radius: 0; width: 100%;
}
.cf-f select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.45)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.cf-f select option { background: #2f576f; color: #fff; }
.cf-f input:focus, .cf-f textarea:focus, .cf-f select:focus { border-color: rgba(124,170,191,.7); }
.cf-f input::placeholder, .cf-f textarea::placeholder { color: rgba(255,255,255,.22); }
.cf-f textarea { resize: vertical; min-height: 110px; }
.cf-row { display: flex; align-items: center; gap: 1.5rem; margin-top: .3rem; }
.btn-submit {
  display: inline-block; font-family: var(--font-heading); font-size: .7rem; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 700; padding: 1rem 2.4rem; cursor: pointer;
  border: none; background: var(--color-accent); color: #fff;
  transition: background .25s, transform .25s;
}
.btn-submit:hover { background: var(--color-accent-lt); transform: translateY(-2px); }
.btn-submit:disabled { opacity: .6; cursor: default; transform: none; }
.cf-note { font-size: .8rem; color: rgba(255,255,255,.5); }
.cf-note.ok { color: #7caabf; }
.cf-note.err { color: #e07070; }

/* ══════════════════════════════════════════════
   TRANSPORTATION
══════════════════════════════════════════════ */
.transport-sec { background: var(--color-light); padding: clamp(2rem,4vw,2.6rem) 0; }
.transport-row { width: 100%; display: flex; flex-direction: row; align-items: center; gap: 1.5rem; }
.transport-logo-col { width: 15%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.transport-logo { width: 100%; max-width: 130px; height: auto; object-fit: contain; }
.transport-content { width: 85%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.transport-content h2 { font-size: clamp(1.3rem,2.2vw,1.7rem); color: var(--color-dark); margin-bottom: .3rem; }
.transport-desc { color: var(--color-text-light); font-size: .92rem; line-height: 1.7; max-width: 480px; }
.transport-info { display: flex; flex-direction: column; align-items: center; gap: .3rem; margin-top: .3rem; }
.transport-info a { color: var(--color-accent); transition: color .25s; }
.transport-info a:hover { color: var(--color-accent-lt); }
.transport-info[hidden] { display: none; }
@media (max-width: 768px) {
  .transport-row { flex-direction: column; }
  .transport-logo-col, .transport-content { width: 100%; }
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer { background: #1a1720; color: var(--color-white); text-align: center; padding: 50px 20px 30px; }
.footer img { margin: 0 auto 20px; height: 55px; width: auto; }
.footer-address { font-size: .88rem; line-height: 1.8; opacity: .7; margin-bottom: 25px; }
.footer-copyright { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; opacity: .55; }

/* ══════════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════════ */
.back-to-top {
  position: fixed; bottom: 5.5rem; right: 2rem; width: 44px; height: 44px;
  background: var(--color-dark); color: var(--color-white); border: none; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: var(--transition); z-index: 89; box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-accent); transform: translateY(-3px); }
[dir=rtl] .back-to-top { right: auto; left: 2rem; }

/* ══════════════════════════════════════════════
   FADE ANIMATION
══════════════════════════════════════════════ */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { gap: 15px; }
  .gallery-grid { grid-template-columns: repeat(3,1fr); }
  .intro-grid { gap: 30px; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 70px; }
  .nav-logo { height: 42px; }
  .section { padding: 50px 0; }
  .container { padding: 0 20px; }
  .intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .intro-col:first-child { text-align: left; }
  .services-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .service-item img { width: 50px; height: 50px; }
  .service-item span { font-size: .72rem; }
  .split-section { grid-template-columns: 1fr; }
  .split-image { min-height: 300px; }
  .split-content { padding: 40px 25px; }
  .social-cards { grid-template-columns: 1fr; gap: 40px; }
  .tab-buttons { flex-wrap: wrap; }
  .tab-btn { flex: 1; min-width: 80px; font-size: .95rem; padding: 10px 15px; }
  .tab-panel.active { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .ct-grid { grid-template-columns: 1fr; }
  .cf-row2 { grid-template-columns: 1fr; }
  .section-title h2::before, .section-title h2::after { width: 30px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .slider-arrow { width: 40px; height: 40px; font-size: 1.5rem; }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
}
