/*
Theme Name: Perfect Property
Theme URI: https://perfectproperty.com.tr
Author: Perfect Property Turkey
Author URI: https://perfectproperty.com.tr
Description: Bilingual Arabic/English luxury real estate theme for Istanbul investment. Elementor-compatible, Polylang-ready, with full project management, CSV bulk import, AJAX lead capture, and RTL layout.
Version: 2.0.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 8.0
License: Proprietary
Text Domain: perfectproperty
Tags: real-estate, rtl, arabic, bilingual, elementor, polylang
*/

/* =============================================
   BRAND TOKENS — from Perfect Property logo
   ============================================= */
:root {
  /* Primary greens (logo exact values) */
  --pp-dark:         #1e4d1e;   /* logo text – dark green */
  --pp-mid:          #2d7a2d;   /* logo icon body */
  --pp-bright:       #48b63e;   /* logo highlight */
  --pp-pale:         #e9f5e5;   /* light green bg */
  --pp-cream:        #f4f8f3;   /* off-white bg */
  --pp-off-white:    #f9fbf8;

  /* Neutral */
  --pp-black:        #0d1a0d;
  --pp-darkbg:       #1a2e1a;   /* dark sections */
  --pp-text:         #243024;
  --pp-muted:        #637563;
  --pp-border:       #d3e8cd;
  --pp-white:        #ffffff;

  /* Accents */
  --pp-gold:         #b8960c;   /* prices, premium */
  --pp-gold-lt:      #f5e9b5;
  --pp-red:          #c0392b;

  /* Typography */
  --font-display:    'Playfair Display', Georgia, serif;
  --font-body:       'DM Sans', 'Segoe UI', sans-serif;
  --font-arabic:     'Cairo', 'Tajawal', 'Noto Sans Arabic', sans-serif;

  /* Spacing */
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  16px;

  /* Shadows */
  --shadow-sm:  0 2px 10px rgba(30,77,30,.07);
  --shadow-md:  0 6px 28px rgba(30,77,30,.12);
  --shadow-lg:  0 16px 56px rgba(30,77,30,.18);
  --shadow-card:0 2px 16px rgba(30,77,30,.09);

  /* Motion */
  --ease:       0.28s cubic-bezier(.4,0,.2,1);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--pp-text);
  background: var(--pp-white);
  -webkit-font-smoothing: antialiased;
}

/* Arabic RTL */
body.rtl,
.rtl body,
html[dir="rtl"] body {
  font-family: var(--font-arabic);
  direction: rtl;
}

/* Headings */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--pp-dark);
}
.rtl h1,.rtl h2,.rtl h3,.rtl h4 { font-family: var(--font-arabic); }

/* =============================================
   LAYOUT
   ============================================= */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px;  margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.section        { padding: 80px 0; }
.section-tight  { padding: 48px 0; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }

/* Section header */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header.left { text-align: start; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--pp-mid); margin-bottom: 14px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; display: block; width: 28px; height: 1.5px; background: currentColor;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem,3.5vw,2.8rem);
  color: var(--pp-dark); margin-bottom: 16px; line-height: 1.2;
}
.section-title.light { color: var(--pp-white); }
.section-sub {
  font-size: 1.05rem; color: var(--pp-muted); max-width: 620px; margin: 0 auto;
  line-height: 1.7;
}
.section-sub.light { color: rgba(255,255,255,.72); }
.section-sub.center { text-align: center; }

.rtl .section-title,.rtl .section-sub { font-family: var(--font-arabic); }

/* =============================================
   NAVIGATION / HEADER
   ============================================= */
.pp-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
  height: 72px;
  display: flex; align-items: center;
}
.pp-header.scrolled {
  border-color: var(--pp-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; gap: 2rem;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.header-logo a { display: flex; align-items: center; }
.header-logo img { height: 44px; width: auto; }
.header-logo .logo-text {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--pp-dark); display: flex; flex-direction: column; line-height: 1.1;
}
.header-logo .logo-tagline { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pp-mid); }

.header-nav { display: flex; align-items: center; gap: .25rem; margin: 0 auto; }
.header-nav a {
  font-size: .875rem; font-weight: 500; color: var(--pp-text);
  padding: 6px 14px; border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
}
.header-nav a:hover, .header-nav a.current { color: var(--pp-mid); background: var(--pp-pale); }

.has-dropdown { position: relative; }
.has-dropdown > a::after { content: ' ▾'; font-size: .7rem; opacity: .5; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--pp-white); border: 1px solid var(--pp-border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  min-width: 200px; padding: 8px 0; z-index: 100;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--ease);
}
.rtl .nav-dropdown { left: auto; right: 0; }
.has-dropdown:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block; padding: 10px 20px; font-size: .85rem;
  border-radius: 0; color: var(--pp-text);
}
.nav-dropdown a:hover { background: var(--pp-pale); color: var(--pp-mid); }

/* Language switcher */
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  font-size: .8rem; font-weight: 600; padding: 5px 12px;
  border-radius: 50px; border: 1.5px solid var(--pp-border);
  color: var(--pp-muted); transition: all var(--ease); cursor: pointer;
}
.lang-btn.active, .lang-btn:hover { border-color: var(--pp-mid); color: var(--pp-mid); background: var(--pp-pale); }

/* Header CTA */
.header-cta {
  background: var(--pp-dark); color: var(--pp-white) !important;
  padding: 9px 20px !important; border-radius: var(--radius-sm) !important;
  font-weight: 600 !important; font-size: .85rem !important;
  white-space: nowrap;
}
.header-cta:hover { background: var(--pp-mid) !important; color: #fff !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; width: 28px; cursor: pointer; }
.hamburger span { display: block; height: 2px; background: var(--pp-dark); border-radius: 2px; transition: var(--ease); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.mobile-nav {
  position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--pp-white); z-index: 999;
  padding: 24px; overflow-y: auto;
  transform: translateX(-100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.rtl .mobile-nav { transform: translateX(100%); }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  display: block; padding: 14px 0;
  font-size: 1.05rem; font-weight: 500;
  border-bottom: 1px solid var(--pp-border); color: var(--pp-text);
}
.mobile-nav a:hover { color: var(--pp-mid); }
.mobile-nav .lang-switcher { margin-top: 24px; }

/* Push content below fixed header */
.header-spacer { height: 72px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem;
  transition: all var(--ease); cursor: pointer; white-space: nowrap;
  text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--pp-dark); color: var(--pp-white); }
.btn-primary:hover { background: var(--pp-mid); color: #fff; }

.btn-mid { background: var(--pp-mid); color: var(--pp-white); }
.btn-mid:hover { background: var(--pp-dark); }

.btn-gold { background: var(--pp-gold); color: var(--pp-white); }
.btn-gold:hover { background: #9c7b09; }

.btn-outline { border-color: var(--pp-dark); color: var(--pp-dark); background: transparent; }
.btn-outline:hover { background: var(--pp-dark); color: #fff; }

.btn-outline-white { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.1); }

.btn-white { background: #fff; color: var(--pp-dark); }
.btn-white:hover { background: var(--pp-pale); }

.btn-sm { padding: 8px 18px; font-size: .82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* =============================================
   BADGES
   ============================================= */
.badge {
  display: inline-block; padding: 3px 12px;
  border-radius: 50px; font-size: .75rem; font-weight: 700;
  letter-spacing: .04em;
}
.badge-status-under-construction { background: #fff3cd; color: #856404; }
.badge-status-ready              { background: #d1e7dd; color: #0a3622; }
.badge-status-upcoming           { background: #cfe2ff; color: #084298; }
.badge-status-sold-out           { background: #f8d7da; color: #842029; }
.badge-featured                  { background: var(--pp-gold); color: #fff; }
.badge-citizenship               { background: var(--pp-darkbg); color: #fff; }

/* =============================================
   HERO — Homepage
   ============================================= */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--pp-black) 0%, var(--pp-darkbg) 40%, var(--pp-dark) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .35;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,26,13,.85) 0%, rgba(30,77,30,.6) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 780px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px; padding: 6px 18px; margin-bottom: 28px;
  font-size: .8rem; color: rgba(255,255,255,.85);
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--pp-white); line-height: 1.1; margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--pp-bright); }
.rtl .hero h1 { font-family: var(--font-arabic); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 580px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* KPI strip */
.hero-kpi {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,.06); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-kpi-inner {
  display: grid; grid-template-columns: repeat(4,1fr);
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.hero-kpi-item {
  padding: 20px 24px;
  border-right: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.rtl .hero-kpi-item { border-right: none; border-left: 1px solid rgba(255,255,255,.1); }
.hero-kpi-item:last-child { border: none; }
.hero-kpi-val { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--pp-bright); line-height: 1; }
.hero-kpi-lbl { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: 4px; }

/* =============================================
   SEARCH BAR
   ============================================= */
.search-bar-wrap { background: var(--pp-white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 20px 24px; }
.search-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.search-field { flex: 1; min-width: 180px; }
.search-field label { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--pp-muted); margin-bottom: 6px; }
.search-field input, .search-field select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--pp-border);
  border-radius: var(--radius-sm); font-size: .9rem; color: var(--pp-text);
  background: var(--pp-off-white); transition: border-color var(--ease);
}
.search-field input:focus, .search-field select:focus { outline: none; border-color: var(--pp-mid); background: #fff; }

/* =============================================
   FILTER BAR
   ============================================= */
.filters-bar {
  position: sticky; top: 72px; z-index: 100;
  background: var(--pp-white); border-bottom: 1px solid var(--pp-border);
  box-shadow: var(--shadow-sm);
}
.filters-inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 0; }
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--pp-muted); white-space: nowrap; }
.filter-select {
  padding: 7px 12px; border: 1.5px solid var(--pp-border);
  border-radius: var(--radius-sm); font-size: .85rem; color: var(--pp-text);
  background: var(--pp-white); cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--pp-mid); }
.filter-chip {
  padding: 7px 16px; border-radius: 50px; font-size: .82rem; font-weight: 600;
  border: 1.5px solid var(--pp-border); color: var(--pp-muted);
  cursor: pointer; transition: all var(--ease);
}
.filter-chip.active { border-color: var(--pp-mid); color: var(--pp-mid); background: var(--pp-pale); }
.results-count { font-size: .82rem; color: var(--pp-muted); white-space: nowrap; }

/* =============================================
   PROJECTS GRID & CARDS
   ============================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.project-card {
  background: var(--pp-white);
  border: 1px solid var(--pp-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.card-thumb {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: var(--pp-pale);
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.project-card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pp-pale), var(--pp-cream));
  color: var(--pp-border); font-size: 3rem;
}

.card-badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.rtl .card-badges { left: auto; right: 12px; }

.card-price {
  position: absolute; bottom: 12px; right: 12px;
  background: var(--pp-dark); color: #fff;
  padding: 4px 12px; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 700;
}
.rtl .card-price { right: auto; left: 12px; }
.card-price-label { font-weight: 400; opacity: .75; font-size: .7rem; margin-inline-end: 4px; }

.card-body { padding: 20px 20px 16px; flex: 1; display: flex; flex-direction: column; }
.card-district { font-size: .78rem; color: var(--pp-mid); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--pp-dark); margin-bottom: 10px; line-height: 1.3; }
.card-desc { font-size: .88rem; color: var(--pp-muted); line-height: 1.6; margin-bottom: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.card-specs { display: flex; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--pp-border); padding-top: 14px; margin-bottom: 16px; }
.card-spec { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--pp-muted); }
.card-spec-icon { font-size: .95rem; }

.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-delivery { font-size: .78rem; color: var(--pp-muted); }
.card-cta {
  font-size: .82rem; font-weight: 600; color: var(--pp-mid);
  border: 1.5px solid var(--pp-mid); padding: 6px 16px;
  border-radius: var(--radius-sm); transition: all var(--ease);
}
.card-cta:hover { background: var(--pp-mid); color: #fff; }

/* =============================================
   SINGLE PROJECT
   ============================================= */
.project-hero {
  position: relative; height: 60vh; min-height: 420px;
  overflow: hidden;
  display: flex; align-items: flex-end;
  background-color: var(--pp-black);
  background-size: cover;
  background-position: center;
}
/* Gradient only darkens the BOTTOM where text sits — top stays clear */
.project-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.2) 40%, transparent 70%);
}
/* Fallback: if <img> is used, cover full hero */
.project-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 1; display: block; }
.project-hero-overlay { position: relative; z-index: 2; width: 100%; padding: 40px 0; }
.project-hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.project-hero-district { font-size: .8rem; color: var(--pp-bright); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.project-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem,4vw,3rem); color: #fff; margin-bottom: 16px; }
.rtl .project-hero h1 { font-family: var(--font-arabic); }
.project-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }

/* Layout: CSS Grid mirrors column order automatically with direction:rtl.
   NO manual flip. 1fr sidebar-at-end is correct for both LTR and RTL. */
.project-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding: 48px 0; }
.project-main  { min-width: 0; }
.project-sidebar { min-width: 0; }

/* Sections inside project */
.info-section { margin-bottom: 40px; }
.info-section-title {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--pp-mid); padding-bottom: 12px;
  border-bottom: 2px solid var(--pp-pale); margin-bottom: 20px;
}

/* Gallery */
.gallery-main {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden; background: var(--pp-pale);
  margin-bottom: 12px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.5); color: #fff;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  transition: background var(--ease); cursor: pointer; border: none;
}
.gallery-nav-btn.prev { left: 12px; }
.gallery-nav-btn.next { right: 12px; }
.rtl .gallery-nav-btn.prev { left: auto; right: 12px; }
.rtl .gallery-nav-btn.next { right: auto; left: 12px; }
.gallery-nav-btn:hover { background: rgba(0,0,0,.75); }

.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb {
  width: 80px; height: 56px; border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; opacity: .6;
  border: 2px solid transparent; transition: all var(--ease);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { opacity: 1; border-color: var(--pp-mid); }
.gallery-thumb:hover { opacity: .9; }

/* Specs grid */
.specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 1px; background: var(--pp-border); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--pp-border); }
.spec-item { background: var(--pp-white); padding: 16px 18px; }
.spec-key { font-size: .75rem; color: var(--pp-muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.spec-val { font-size: .95rem; font-weight: 700; color: var(--pp-dark); }

/* Features list */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 10px; }
.feature-item { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--pp-text); }
.feature-item::before { content: '✓'; color: var(--pp-mid); font-weight: 700; flex-shrink: 0; }

/* Payment plans */
.payment-plans { display: flex; flex-direction: column; gap: 14px; }
.payment-plan {
  background: var(--pp-cream); border-radius: var(--radius);
  padding: 18px 20px; border-left: 4px solid var(--pp-mid);
}
.rtl .payment-plan { border-left: none; border-right: 4px solid var(--pp-mid); }
.payment-plan-title { font-weight: 700; font-size: .95rem; color: var(--pp-dark); margin-bottom: 6px; }
.payment-plan-detail { font-size: .85rem; color: var(--pp-muted); }

/* Sidebar card */
.sidebar-card {
  background: var(--pp-white); border: 1px solid var(--pp-border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); position: sticky; top: 92px;
}
.sidebar-price-band {
  background: var(--pp-dark); padding: 24px 20px; text-align: center; color: #fff;
}
.sidebar-price-label { font-size: .8rem; opacity: .7; margin-bottom: 4px; }
.sidebar-price-value { font-family: var(--font-display); font-size: 1.9rem; color: var(--pp-bright); }
.sidebar-price-sub { font-size: .85rem; opacity: .65; margin-top: 4px; }

.sidebar-quick-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--pp-border); }
.sidebar-quick-spec { background: var(--pp-cream); padding: 14px 16px; text-align: center; }
.spec-box-val { font-weight: 700; color: var(--pp-dark); font-size: .9rem; }
.spec-box-key { font-size: .72rem; color: var(--pp-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }

.sidebar-form { padding: 20px; }
.sidebar-form-title { font-weight: 700; font-size: .95rem; color: var(--pp-dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--pp-border); }

/* =============================================
   LEAD FORM
   ============================================= */
.lead-form { }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: .8rem; font-weight: 600; color: var(--pp-dark); margin-bottom: 5px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--pp-border); border-radius: var(--radius-sm);
  font-size: .88rem; color: var(--pp-text); background: var(--pp-off-white);
  transition: border-color var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--pp-mid); background: #fff; }
.form-field textarea { resize: vertical; min-height: 80px; }
.form-hp { display: none !important; }
.form-alert {
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: .88rem;
  margin-bottom: 14px; display: none;
}
.form-alert.success { background: #d1e7dd; color: #0a3622; display: block; }
.form-alert.error   { background: #f8d7da; color: #842029; display: block; }

/* =============================================
   CITIZENSHIP SECTION (homepage band + page)
   ============================================= */
.citizenship-band {
  background: linear-gradient(135deg, var(--pp-black) 0%, var(--pp-darkbg) 50%, var(--pp-dark) 100%);
  color: #fff; padding: 80px 0; position: relative; overflow: hidden;
}
.citizenship-band::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(72,182,62,.12) 0%, transparent 70%);
  pointer-events: none;
}
.citizenship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.citizenship-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.citizenship-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 20px; }
.citizenship-stat-val { font-family: var(--font-display); font-size: 2rem; color: var(--pp-bright); line-height: 1; }
.citizenship-stat-lbl { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 6px; }
.citizenship-steps { display: flex; flex-direction: column; gap: 20px; }
.citizenship-step { display: flex; gap: 16px; align-items: flex-start; }
.citizenship-step-num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--pp-bright); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.citizenship-step-content h4 { color: #fff; font-size: .95rem; margin-bottom: 4px; }
.citizenship-step-content p  { font-size: .85rem; color: rgba(255,255,255,.65); }
.rtl .citizenship-step-content h4 { font-family: var(--font-arabic); }

/* =============================================
   WHY ISTANBUL / INVEST CARDS
   ============================================= */
.invest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 28px; }
.invest-card {
  background: var(--pp-white); border: 1px solid var(--pp-border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform var(--ease), box-shadow var(--ease);
}
.invest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.invest-icon { font-size: 2.4rem; margin-bottom: 16px; display: block; }
.invest-card h3 { font-size: 1.05rem; color: var(--pp-dark); margin-bottom: 10px; }
.invest-card p  { font-size: .9rem; color: var(--pp-muted); line-height: 1.7; }

/* =============================================
   PROCESS TIMELINE
   ============================================= */
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step { display: flex; gap: 24px; align-items: flex-start; padding: 28px 0; border-bottom: 1px solid var(--pp-border); }
.process-step:last-child { border-bottom: none; }
.process-num { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--pp-mid); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.process-content h3 { font-size: 1.05rem; color: var(--pp-dark); margin-bottom: 8px; }
.process-content p  { font-size: .9rem; color: var(--pp-muted); line-height: 1.7; }
.rtl .process-content h3,.rtl .process-content p { font-family: var(--font-arabic); }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 24px; }
.testimonial-card { background: var(--pp-cream); border-radius: var(--radius); padding: 28px; border: 1px solid var(--pp-border); }
.testimonial-stars { color: var(--pp-gold); font-size: 1.1rem; margin-bottom: 14px; }
.testimonial-text { font-size: .92rem; line-height: 1.75; color: var(--pp-text); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--pp-pale); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--pp-mid); font-weight: 700; }
.testimonial-name { font-weight: 700; font-size: .9rem; color: var(--pp-dark); }
.testimonial-origin { font-size: .8rem; color: var(--pp-muted); }

/* =============================================
   FOOTER
   ============================================= */
.pp-footer { background: var(--pp-darkbg); color: rgba(255,255,255,.75); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .footer-logo { height: 40px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-body); font-weight: 700; margin-bottom: 20px; }
.rtl .footer-col h4 { font-family: var(--font-arabic); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color var(--ease); }
.footer-col ul li a:hover { color: var(--pp-bright); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; margin-bottom: 12px; color: rgba(255,255,255,.65); }
.footer-contact-icon { flex-shrink: 0; width: 20px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); display: flex;
  align-items: center; justify-content: center; font-size: .9rem;
  transition: all var(--ease);
}
.footer-social a:hover { background: var(--pp-mid); border-color: var(--pp-mid); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; font-size: .8rem; color: rgba(255,255,255,.4);
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--pp-bright); }

/* WhatsApp float */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform var(--ease), box-shadow var(--ease);
}
.rtl .wa-float { right: auto; left: 28px; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* =============================================
   ABOUT / PAGE HERO
   ============================================= */
.page-hero { padding: 120px 0 80px; text-align: center; position: relative; }
.page-hero-dark {
  background: linear-gradient(135deg, var(--pp-black) 0%, var(--pp-dark) 100%); color: #fff;
}
.page-hero-dark .section-title { color: #fff; }
.page-hero-dark .section-sub { color: rgba(255,255,255,.75); }
.page-eyebrow { /* alias */ }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h3 { font-size: 1.15rem; color: var(--pp-dark); margin-bottom: 24px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--pp-pale); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-detail-text strong { display: block; font-size: .88rem; color: var(--pp-dark); margin-bottom: 2px; }
.contact-detail-text span { font-size: .9rem; color: var(--pp-muted); }
.contact-map { border-radius: var(--radius); overflow: hidden; margin-top: 28px; }

/* =============================================
   TABLES
   ============================================= */
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { text-align: start; padding: 12px 16px; background: var(--pp-dark); color: #fff; font-weight: 600; white-space: nowrap; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--pp-border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--pp-cream); }
.data-table .highlight { background: rgba(72,182,62,.1); font-weight: 600; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--pp-border); }

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--pp-border); }
.faq-q {
  width: 100%; text-align: start; padding: 20px 0;
  font-size: 1rem; font-weight: 600; color: var(--pp-text);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer; background: none; border: none; font-family: inherit;
  transition: color var(--ease);
}
.faq-q:hover, .faq-q[aria-expanded="true"] { color: var(--pp-mid); }
.faq-icon { flex-shrink: 0; font-size: 1.3rem; font-weight: 300; color: var(--pp-mid); transition: transform .2s; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 20px; color: var(--pp-muted); line-height: 1.8; font-size: .95rem; }
.faq-q[aria-expanded="true"] + .faq-a { display: block; }

/* =============================================
   REVEAL ANIMATION
   ============================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =============================================
   ELEMENTOR COMPATIBILITY
   ============================================= */
/* Ensure Elementor sections don't get crunched by our header */
.elementor-section { box-sizing: border-box; }
.elementor-widget-container { word-break: break-word; }

/* Elementor canvas (no header/footer) */
body.elementor-page-landing .pp-header,
body.elementor-page-landing .pp-footer,
body.elementor-page-landing .wa-float { display: none; }

/* Elementor Full Width */
body.pp-full-width .entry-content { max-width: 100%; padding: 0; }

/* =============================================
   UTILITY
   ============================================= */
.text-center { text-align: center; }
.text-start  { text-align: start;  }
.text-muted  { color: var(--pp-muted); }
.text-green  { color: var(--pp-mid); }
.text-white  { color: #fff; }
.text-gold   { color: var(--pp-gold); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =============================================
   PAGINATION
   ============================================= */
.page-numbers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; }
.page-numbers li a,
.page-numbers li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--pp-border); font-size: .88rem; font-weight: 600;
  color: var(--pp-text); transition: all var(--ease);
}
.page-numbers li .current,
.page-numbers li a:hover { background: var(--pp-mid); border-color: var(--pp-mid); color: #fff; }

/* =============================================
   ADMIN / BULK IMPORT (scoped to wp-admin)
   ============================================= */
.pp-admin-wrap { max-width: 960px; }
.pp-import-log { background: #f6f7f7; border: 1px solid #e0e0e0; border-radius: 6px; padding: 16px; font-family: monospace; font-size: 12px; max-height: 300px; overflow-y: auto; margin-top: 16px; }
.pp-import-log .ok   { color: #0a3622; }
.pp-import-log .warn { color: #664d03; }
.pp-import-log .err  { color: #842029; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .project-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .citizenship-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-kpi-inner { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .header-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .section { padding: 56px 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .citizenship-stats { grid-template-columns: 1fr 1fr; }
  .invest-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 100px 0 60px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-kpi-inner { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 16px; }
}
