/* =====================================================
   Hece Gayrimenkul Sapanca — Shared Stylesheet
   Minimal · Professional · Responsive
   ===================================================== */

:root {
  --green-900: #0a4a6b;
  --green-800: #1189c8;
  --green-700: #0f73a8;
  --green-600: #2da0d6;
  --gold: #c8a24a;
  --gold-soft: #e4cf9a;
  --cream: #f7f5f0;
  --cream-2: #efece4;
  --ink: #1a1d1b;
  --muted: #5b6660;
  --line: #e2ddd2;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(10, 74, 107, 0.12);
  --shadow-sm: 0 6px 20px rgba(10, 74, 107, 0.10);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1140px;
  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ar: "Tajawal", "Cairo", var(--sans);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

body[dir="rtl"] { font-family: var(--ar); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
body[dir="rtl"] h1, body[dir="rtl"] h2, body[dir="rtl"] h3 { font-family: var(--ar); font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
body[dir="rtl"] .eyebrow { letter-spacing: 0; font-family: var(--ar); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; }
/* Logo image slot (replace /assets/img/logo.svg with your own logo) */
.brand-logo { height: 44px; width: auto; display: block; }
.footer-logo-box {
  display: inline-flex;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.footer-logo-box .brand-logo { height: 40px; }
@media (max-width: 620px) { .brand-logo { height: 38px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--green-800);
  letter-spacing: 0.01em;
}
body[dir="rtl"] .brand-name { font-family: var(--ar); }
.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
body[dir="rtl"] .brand-sub { letter-spacing: 0.05em; }

/* ---------- Language switcher ---------- */
.lang-switch { display: flex; align-items: center; gap: 8px; }
.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.22s ease;
}
body[dir="rtl"] .lang-chip { padding: 7px 7px 7px 12px; }
.lang-chip:hover { border-color: var(--gold); color: var(--green-800); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.lang-chip.active { background: var(--green-800); border-color: var(--green-800); color: var(--white); }
.lang-flag { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.lang-flag svg { width: 100%; height: 100%; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 76px;
  background:
    radial-gradient(900px 480px at 75% -10%, rgba(17,137,200,0.10), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 59h60M59 0v60' stroke='%231189c8' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  text-align: center;
}
.hero-copy { max-width: 760px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(200,162,74,0.13);
  border: 1px solid rgba(200,162,74,0.35);
  color: #8a6d22;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(200,162,74,0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200,162,74,0.55); }
  70% { box-shadow: 0 0 0 9px rgba(200,162,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,162,74,0); }
}
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  color: var(--green-900);
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
}
body[dir="rtl"] .btn { font-family: var(--ar); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green-800); color: var(--white); }
.btn-primary:hover { background: var(--green-900); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: #2a2208; }
.btn-gold:hover { background: #b8923c; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: var(--white); color: var(--green-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green-600); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-wa { background: #25D366; color: #08351c; }
.btn-wa:hover { background: #1fb959; transform: translateY(-2px); box-shadow: var(--shadow); }

/* Hero card */
.hero-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-card .scene {
  height: 196px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 22px;
  background: linear-gradient(180deg, #cfe2da 0%, #eef3ef 100%);
}
.hero-card .scene svg { width: 100%; height: 100%; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { text-align: center; }
.stat .num { font-family: var(--serif); font-size: 1.7rem; color: var(--green-800); font-weight: 600; }
body[dir="rtl"] .stat .num { font-family: var(--ar); }
.stat .lbl { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
body[dir="rtl"] .stat .lbl { letter-spacing: 0; }

/* ---------- Sections ---------- */
section { padding: 78px 0; }
.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--green-900); margin: 14px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: all 0.25s ease;
}
.alt .card { background: var(--cream); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.card-ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(17,137,200,0.10);
  color: var(--green-700);
  margin-bottom: 18px;
}
.card-ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.24rem; color: var(--green-800); margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* Why Sapanca / features list */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; }
.feature { display: flex; gap: 16px; }
.feature .tick {
  flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-800); color: var(--gold-soft);
  display: grid; place-items: center;
}
.feature .tick svg { width: 16px; height: 16px; }
.feature h3 { font-size: 1.08rem; color: var(--green-900); margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 0.94rem; }

/* Areas / neighbourhoods */
.tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tag {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-800);
  transition: all 0.2s ease;
}
.alt .tag { background: var(--cream); }
.tag:hover { border-color: var(--gold); background: var(--gold); color: #2a2208; }

/* Contact + Map */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: stretch; }
.contact-panel {
  background: var(--green-800);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.contact-panel h2 { color: var(--white); font-size: 2rem; margin-bottom: 14px; }
.contact-panel p.lead { color: rgba(247,245,240,0.78); margin-bottom: 28px; }
.contact-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 26px; }
.c-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.c-row:last-child { border-bottom: none; }
.c-ic {
  flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center; color: var(--gold-soft);
}
.c-ic svg { width: 20px; height: 20px; }
.c-row .label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(247,245,240,0.55); }
body[dir="rtl"] .c-row .label { letter-spacing: 0; }
.c-row .value { font-size: 1.06rem; font-weight: 600; color: var(--white); }
.c-row a.value:hover { color: var(--gold-soft); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-height: 420px;
  background: var(--white);
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(247,245,240,0.72);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.site-footer .brand-name { color: var(--cream); }
.site-footer p { font-size: 0.94rem; max-width: 340px; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 16px;
}
body[dir="rtl"] .footer-col h4 { font-family: var(--ar); letter-spacing: 0; }
.footer-col a, .footer-col span { display: block; font-size: 0.95rem; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
  font-size: 0.85rem;
}
.footer-langs { display: flex; gap: 16px; }
.footer-langs a:hover { color: var(--gold-soft); }

/* Floating WhatsApp */
.fab {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.45);
  transition: transform 0.2s;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .status-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 50px; }
  .cards, .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .lang-chip span.lang-label { display: none; }
  .lang-chip { padding: 7px; }
  body[dir="rtl"] .lang-chip { padding: 7px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .header-inner { height: 64px; }
}
