﻿/*
Theme Name: CST Real Estate
Theme URI: https://cselection.com
Author: C-Selection Technologies
Author URI: https://cselection.com
Description: Konstruktion-style WordPress theme rebuilt from scratch for CST Real Estate with Arabic RTL and Elementor compatibility.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: cst-real-estate
License: Proprietary
License URI: https://cselection.com
*/

:root {
  --bg: #f4f4f4;
  --text: #111111;
  --muted: #595959;
  --line: #dcdcdc;
  --white: #ffffff;
  --accent: #ef7f3a;
}

[data-theme="dark"] {
  --bg: #101010;
  --text: #f4f4f4;
  --muted: #bebebe;
  --line: #323232;
  --white: #171717;
  --accent: #ef9349;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Barlow", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.cst-container { width: min(1320px, calc(100% - 80px)); margin: 0 auto; }

.cst-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.cst-nav-wrap {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.cst-logo {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: .5px;
  white-space: nowrap;
}
.cst-logo span { color: var(--accent); }

.cst-menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  font-weight: 700;
}

.cst-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}
.cst-top-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}
.cst-top-menu > li > a {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .4px;
}

.cst-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cst-v-line { width: 1px; height: 22px; background: var(--line); }
.cst-touch { font-size: .82rem; font-weight: 900; }
.cst-theme-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: .72rem;
  padding: 7px 9px;
  cursor: pointer;
}

.has-mega { position: static; }
.cst-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 92px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: all .2s ease;
}
.has-mega:hover .cst-mega,
.has-mega.open .cst-mega,
.has-mega:focus-within .cst-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.cst-mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr .9fr;
  min-height: 560px;
}
.cst-mega-grid > div { padding: 52px 42px; }
.cst-mega-grid h4 {
  margin: 0 0 8px;
  font-family: "Teko", sans-serif;
  font-size: 2.9rem;
  line-height: 1;
}
.cst-mega-grid p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 35ch;
  font-size: 1.08rem;
}
.cst-mega-image { background-size: cover; background-position: center; }

.cst-hero-home {
  position: relative;
  min-height: 830px;
  display: grid;
  align-items: end;
  background: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=2000&q=80') center/cover;
}
.cst-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 34, 45, .42);
}
.cst-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 160px;
}
.cst-hero-content h1 {
  font-family: "Teko", sans-serif;
  font-size: clamp(4rem, 11vw, 10rem);
  line-height: .9;
  margin: 0 0 22px;
  color: #fff;
}
.cst-btn {
  display: inline-block;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  padding: 14px 24px;
  text-transform: uppercase;
  font-size: .74rem;
  letter-spacing: .6px;
  font-weight: 800;
}
.cst-white-btn {
  background: #fff;
  color: #111;
  border-color: #fff;
}
.cst-btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.cst-contact-card {
  position: absolute;
  right: min(8vw, 140px);
  bottom: -84px;
  background: #fff;
  color: #111;
  width: 420px;
  max-width: calc(100% - 40px);
  padding: 48px;
  z-index: 3;
}
.cst-contact-card h3 {
  margin: 0 0 20px;
  font-family: "Teko", sans-serif;
  font-size: 3.7rem;
  line-height: .95;
}
.cst-contact-card h3 span {
  display: inline-block;
  width: 56px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 12px;
}
.cst-contact-card a { font-weight: 700; }

.cst-intro-row { padding: 156px 0 72px; }
.cst-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cst-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cst-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cst-intro-row small { color: #6e6e6e; display: block; margin-bottom: 12px; }
.cst-intro-row p { font-size: clamp(1.4rem, 2.8vw, 2.2rem); line-height: 1.15; margin: 0; font-family: "Teko", sans-serif; }

.cst-section { padding: 90px 0; border-top: 1px solid var(--line); }
.cst-eyebrow { margin: 0 0 6px; color: var(--accent); font-size: .78rem; letter-spacing: .8px; font-weight: 800; }
h1, h2, h3, h4 { margin: 0 0 12px; font-family: "Teko", sans-serif; }
h2 { font-size: clamp(2.7rem, 5vw, 4.7rem); line-height: .95; }

.cst-project-grid { margin-top: 16px; }
.cst-project {
  min-height: 360px;
  display: flex;
  align-items: end;
  padding: 24px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.cst-project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,22,22,.08), rgba(22,22,22,.78));
}
.cst-project h3 { position: relative; z-index: 1; color: #fff; font-size: 2.2rem; }

.cst-sustainability {
  background: radial-gradient(circle at 90% 20%, rgba(239,127,58,.2), transparent 35%), var(--white);
}

.cst-card, .cst-rtl-box, .cst-news-card, .cst-offices article {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 24px;
}

.cst-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cst-news-card h3 { font-size: 2rem; margin-bottom: 6px; }
.cst-news-card p { margin: 0 0 10px; color: var(--muted); }

.cst-footer { border-top: 1px solid var(--line); }
.cst-cta { padding: 64px 0; background: var(--white); }
.cst-cta-wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cst-cta-wrap h2 { margin: 0; }
.cst-offices { padding: 40px 0; }
.cst-offices h4 { margin: 0 0 8px; font-size: 2rem; }
.cst-offices p { margin: 0; color: var(--muted); }
.cst-footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .9rem;
}

@media (max-width: 1100px) {
  .cst-grid-3,
  .cst-news-grid,
  .cst-grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .cst-menu-toggle { display: inline-block; }

  .cst-nav {
    position: absolute;
    top: 92px;
    right: 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    width: min(340px, calc(100% - 40px));
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .cst-nav.open { display: flex; }

  .cst-top-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .cst-mega,
  .cst-header-right { display: none; }

  .cst-contact-card {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
  }

  .cst-hero-home { padding: 0 0 30px; min-height: 680px; }
  .cst-hero-content { padding-bottom: 20px; }

  .cst-cta-wrap,
  .cst-footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .cst-container { width: calc(100% - 30px); }
  .cst-grid-2,
  .cst-grid-3,
  .cst-grid-4,
  .cst-news-grid { grid-template-columns: 1fr; }
  .cst-intro-row { padding-top: 60px; }
}
