:root {
  --bg-dark: #0c1222;
  --bg-card: #141d33;
  --card-bg: #161f38;
  --accent: #c9a227;
  --accent-hover: #d4af37;
  --text: #e8ecf4;
  --text-muted: #8b9ab8;
  --border: #24304a;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
}

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

/* Announcement bar - appears above header on landing page */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  padding: 0.5rem 1.5rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

body.has-announcement-bar .header {
  top: 42px;
}

body.has-announcement-bar .section {
  scroll-margin-top: 122px;
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
}

/* Arabic text */
[lang="ar"],
:lang(ar) {
  font-family: 'Noto Kufi Arabic', 'Roboto', sans-serif;
}

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

ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 18, 34, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav a:hover { color: var(--accent); }

.nav-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

.btn-login {
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: var(--bg-dark) !important;
  border-radius: 6px;
  font-weight: 600;
}

.btn-login:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0c1222 0%, #0f1929 35%, #1a2847 70%, #0c1222 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-dark) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 820px;
}

.hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-image-wrap {
  margin-top: 2rem;
}

.hero-image {
  max-width: 100%;
  width: 100%;
  max-height: 40vh;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* Sections */
.section {
  padding: 4.5rem 0;
  scroll-margin-top: 80px;
}

.section-alt {
  background: var(--bg-card);
}

.section h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  width: 32px;
  height: 32px;
  stroke-width: 2;
  flex-shrink: 0;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.section > .container > p {
  margin-bottom: 2rem;
  max-width: 720px;
}

/* Mission & Vision */
.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(201, 162, 39, 0.4);
  transform: translateY(-2px);
}

.card-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(201, 162, 39, 0.12);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.card-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  color: var(--accent);
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.services-empty {
  text-align: center;
  padding: 2rem;
  font-size: 1rem;
}

.service-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.service-card ul {
  padding-left: 1.25rem;
}

.service-card li {
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.service-card li::marker {
  color: var(--accent);
}

.service-card .service-field-with-img {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card .service-field-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.service-card .service-file-badge {
  font-size: 0.85rem;
  color: var(--accent);
}

/* Why Choose */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.why-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.why-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(201, 162, 39, 0.12);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.why-icon-svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
  color: var(--accent);
}

.why-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  color: var(--accent);
  flex-shrink: 0;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.text-muted { color: var(--text-muted); }

/* Portfolio split layout & tabs */
.portfolio-split {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portfolio-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portfolio-tab {
  padding: 0.6rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: left;
  transition: all 0.2s;
}

.portfolio-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.portfolio-tab.active {
  background: rgba(201, 162, 39, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.portfolio-main {
  min-width: 0;
}

@media (max-width: 640px) {
  .portfolio-split {
    grid-template-columns: 1fr;
  }
  .portfolio-tabs {
    flex-direction: row;
  }
}

/* Content cards (Portfolio / Real Estate) */
.content-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.content-cards:empty::after {
  content: 'No items to display.';
  display: block;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  grid-column: 1 / -1;
}

.content-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.content-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.content-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--bg-dark);
}

.content-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.content-card-img-placeholder .placeholder-icon {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
  opacity: 0.5;
}

.content-card-body {
  padding: 1.25rem;
}

.content-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.content-card .content-card-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-dark);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1;
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--border);
}

.modal-body {
  padding: 2rem;
}

.modal-body .modal-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.modal-body .modal-imgs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.modal-body .modal-imgs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.modal-body h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.modal-body .modal-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.modal-body p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Welcome popup */
.welcome-popup {
  z-index: 1100;
}

.welcome-popup-content {
  max-width: 520px;
}

.welcome-popup-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.welcome-popup-img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 8px;
}

.welcome-popup-text {
  color: var(--text);
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  color: #fff;
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* Mobile */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(12, 18, 34, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-content { padding: 2rem 1.5rem; }
  .section { padding: 3rem 0; }
  .mission-vision,
  .services-grid,
  .why-grid { grid-template-columns: 1fr; }
  .content-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .header-inner { padding: 0.75rem 1rem; }
  .logo-img { height: 40px; }
}
