/* ============================================================
   SYRAL - Syndicate of Real Estate Appraisers in Lebanon
   Stylesheet — Secure, Modern, RTL-first
   Color Palette: Dark Navy × Gold
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   COLOUR TOKENS — Dark Navy + Gold
   ============================================================ */
:root {
  /* Backgrounds */
  --color-darkest:    #060f1c;   /* page bg / footer base */
  --color-dark:       #0d1f35;   /* navbar / hero / section bg */
  --color-surface:    #162233;   /* card backgrounds */
  --color-surface-lt: #1e3248;   /* hover states */

  /* Gold accent */
  --color-gold:       #c9a84c;   /* primary accent — borders, icons, CTAs */
  --color-gold-lt:    #f0d98a;   /* gold hover / highlight */
  --color-gold-bg:    rgba(201,168,76,.12); /* gold tint bg */

  /* Text */
  --color-text:       #f0e8cc;   /* primary text — warm cream */
  --color-muted:      #8aa0b8;   /* secondary / caption text */
  --color-white:      #ffffff;   /* pure white (forms, modals) */

  /* Structure */
  --color-border:     #243447;   /* dividers and card borders */

  /* Semantic */
  --color-accent:     #1a6b4a;   /* kept — success states, news tags */
  --color-accent-lt:  #22a065;
  --color-accent-bg:  rgba(26,107,74,.15);
  --color-danger:     #c0392b;
  --color-success:    #1a6b4a;

  /* Legacy aliases (keep so nothing breaks) */
  --color-primary:    var(--color-gold);
  --color-primary-lt: var(--color-gold-lt);
  --color-primary-bg: var(--color-gold-bg);
  --color-light:      var(--color-darkest); /* legacy alias — now resolves to dark bg */

  /* ── Shadows (navy-tinted) */
  --shadow-sm: 0 1px 4px  rgba(8,21,41,.10);
  --shadow-md: 0 4px 16px rgba(8,21,41,.14);
  --shadow-lg: 0 8px 32px rgba(8,21,41,.20);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --font-ar: 'Tajawal', 'Segoe UI', Arial, sans-serif;
  --transition: .25s ease;
}

html {
  direction: rtl;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ar);
  background: var(--color-darkest);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-gold-lt); }

ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: .9rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.text-center { text-align: center; }
.text-muted   { color: var(--color-muted); }

/* ---------- Section Heading ---------- */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}
.section-heading h2 {
  display: inline-block;
  position: relative;
  padding-bottom: .6rem;
}
.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: 0; right: 50%;
  transform: translateX(50%);
  width: 60px; height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}
.section-heading p {
  color: var(--color-muted);
  max-width: 600px;
  margin: .8rem auto 0;
}

/* ============================================================
   NAV / HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark);
  border-bottom: 2px solid var(--color-gold);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
  /* isolation: isolate ensures mobile dropdown stacks correctly */
  isolation: isolate;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.nav-brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.2);
  object-fit: cover;
}
.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand-text .brand-ar {
  font-size: .88rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}
.nav-brand-text .brand-en {
  font-size: .72rem;
  color: var(--color-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  padding: .3rem .6rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nav-links a:hover {
  color: var(--color-gold);
  background: transparent;
}
.nav-links a.active {
  color: var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
  border-radius: 0;
  background: transparent;
}
.nav-links a i { font-size: .85rem; }

.nav-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  cursor: pointer;
  padding: .4rem;
  color: var(--color-text);
  font-size: 1.4rem;
}

@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; right: 0; left: 0;
    background: var(--color-dark);
    border-top: 2px solid var(--color-gold);
    padding: 1rem;
    gap: .25rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; justify-content: flex-start; }
  .nav-links a.active { border-bottom: none; border-right: 3px solid var(--color-gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
}

/* ============================================================
   HERO — Two-column layout: text (right) + seal (left)
   ============================================================ */
.hero {
  background: var(--color-dark);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold) 30%, var(--color-gold-lt) 50%, var(--color-gold) 70%, transparent);
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 3rem 0 2.5rem;
}
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column-reverse;
    gap: 1.5rem;
    padding: 2rem 0 1.5rem;
    text-align: center;
  }
}

.hero-content { flex: 1; }

.hero-eyebrow {
  font-size: .65rem;
  letter-spacing: .14em;
  color: var(--color-gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.hero h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: .3rem;
}
.hero-en {
  font-size: .78rem;
  color: var(--color-muted);
  letter-spacing: .05em;
  margin-bottom: .9rem;
}
.hero-divider {
  width: 36px;
  height: 2px;
  background: var(--color-gold);
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .hero-divider { margin: 0 auto 1rem; }
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}
@media (max-width: 768px) {
  .hero-stats { justify-content: center; }
}
.hero-stat .stat-num {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
}
.hero-stat .stat-lbl {
  font-size: .62rem;
  color: var(--color-muted);
  margin-top: .15rem;
}

.hero-cta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .hero-cta { justify-content: center; }
}
.btn-gold {
  background: var(--color-gold);
  color: var(--color-dark);
  border: none;
  padding: .6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 800;
  font-family: var(--font-ar);
  cursor: pointer;
  transition: background var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}
.btn-gold:hover {
  background: var(--color-gold-lt);
  color: var(--color-dark);
}
.btn-ghost-gold {
  background: transparent;
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
  padding: .6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 700;
  font-family: var(--font-ar);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}
.btn-ghost-gold:hover {
  background: var(--color-gold-bg);
  color: var(--color-gold-lt);
}

.hero-logo {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid var(--color-gold);
  box-shadow: 0 0 0 6px var(--color-gold-bg), 0 8px 28px rgba(0,0,0,.4);
  overflow: hidden;
  background: var(--color-gold-bg);
}
.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .hero-logo { width: 110px; height: 110px; }
}

/* ============================================================
   STATS BAR — Dark Navy + Gold
   ============================================================ */
.stats-bar {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-surface) 100%);
  color: var(--color-text);
  padding: 1.5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='%23c9a84c' fill-opacity='0.04'%3E%3Cpolygon points='30,5 55,50 5,50'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  text-align: center;
  position: relative;
}
.stat-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-gold);
}
.stat-item span {
  font-size: .85rem;
  color: var(--color-muted);
}
/* Divider lines between stats */
.stat-item + .stat-item {
  border-right: 1px solid var(--color-border);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 5rem 0; background: var(--color-darkest); }
.section-alt { background: var(--color-dark); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  border-top-color: var(--color-gold-lt);
}
/* remove the old ::before gradient bar — top border replaces it */
.service-card::before { display: none; }
.service-card h3 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--color-text); }
.service-card p  { font-size: .88rem; color: var(--color-muted); }

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-gold-bg);
  border: 1px solid rgba(201,168,76,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
  color: var(--color-gold);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.service-card:hover .service-icon {
  background: var(--color-gold);
  color: var(--color-dark);
  transform: scale(1.08);
}

/* ============================================================
   ABOUT SECTION (homepage snippet)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-visual {
  background: linear-gradient(145deg, var(--color-dark) 0%, var(--color-surface) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.about-visual::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.about-visual::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--color-gold-bg);
}
.about-visual .big-year {
  font-size: 5rem;
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
  display: block;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.about-visual .year-label {
  color: var(--color-muted);
  font-size: .95rem;
  position: relative;
  z-index: 1;
}
.about-ivsc {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--color-accent);
  color: var(--color-white);
  padding: .5rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 12px rgba(26,107,74,.4);
}
.about-content h2 { margin-bottom: 1rem; color: var(--color-text); }
.about-content p   { color: var(--color-muted); margin-bottom: 1rem; }
.about-content .btn { margin-top: .5rem; }

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.news-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.news-card-img {
  height: 220px;
  max-height: 220px;
  overflow: hidden;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 3rem;
  position: relative;
}
.news-card-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-lt));
}
.news-card-img img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}
.news-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card-date {
  font-size: .8rem;
  color: var(--color-muted);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.news-card-date i { color: var(--color-accent); }
.news-card-body h3 {
  font-size: 1rem;
  margin-bottom: .5rem;
  color: var(--color-text);
}
.news-card-body p {
  font-size: .875rem;
  color: var(--color-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-footer {
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================================
   TAB BUTTONS (members page)
   ============================================================ */
.tab-btn {
  background: var(--color-surface);
  color: var(--color-muted);
  border-color: var(--color-border);
}
.tab-btn.active {
  background: var(--color-gold);
  color: var(--color-dark);
  border-color: var(--color-gold);
}

/* ============================================================
   MEMBER CARDS
   ============================================================ */
.members-filter {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: .45rem 1.1rem;
  border-radius: 50px;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  font-family: var(--font-ar);
  font-size: .875rem;
  font-weight: 600;
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.member-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
}
.member-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-gold), var(--color-gold-lt));
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}
.member-card:hover::before { opacity: 1; }

.member-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.member-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-primary-bg);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-primary);
  flex-shrink: 0;
  overflow: hidden;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-info h4 { margin-bottom: .2rem; font-size: .95rem; color: var(--color-text); }
.member-title-badge {
  display: inline-block;
  background: var(--color-accent-bg);
  color: var(--color-accent);
  font-size: .75rem;
  font-weight: 700;
  padding: .15rem .6rem;
  border-radius: 50px;
  border: 1px solid rgba(26,107,74,.2);
}
.member-details { font-size: .83rem; }
.member-detail {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .3rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
}
.member-detail:last-child { border-bottom: none; }
.member-detail i {
  color: var(--color-primary);
  margin-top: .15rem;
  flex-shrink: 0;
  width: 14px;
}
.member-code {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: .72rem;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  padding: .15rem .5rem;
  border-radius: 50px;
  font-weight: 700;
}

/* ============================================================
   NEWS CARD — Read More Link
   ============================================================ */
.news-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--color-accent);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition), gap var(--transition);
}
.news-link:hover {
  color: var(--color-primary);
  gap: .65rem;
}
.news-link i { font-size: .75rem; }
.news-link-button {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.news-card-footer-date {
  font-size: .8rem;
  color: var(--color-muted);
}
.news-card-tag {
  font-size: .75rem;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  padding: .2rem .6rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.content-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 18, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 200;
}
.content-modal.open {
  display: flex;
}
.content-modal-card {
  width: min(680px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.content-modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}
.content-modal-title {
  padding-left: 3rem;
  margin-bottom: .5rem;
}
.content-modal-meta {
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.content-modal-body {
  color: var(--color-text);
  white-space: pre-line;
}

body.modal-open {
  overflow: hidden;
}

/* ============================================================
   PAST PRESIDENTS PANEL
   ============================================================ */
.past-intro {
  font-size: .95rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  text-align: center;
}
.past-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.past-president-card {
  border-color: rgba(184,142,54,.3);
}
.past-president-card::before {
  background: linear-gradient(to bottom, var(--color-gold), var(--color-gold-lt));
}
.past-president-card:hover {
  border-color: #b88e36;
}
.past-avatar {
  background: var(--color-gold-bg);
  border-color: #b88e36;
  color: #b88e36;
}
.member-title-badge.past-badge {
  background: var(--color-gold-bg);
  color: #b88e36;
  border-color: rgba(184,142,54,.25);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  border-top: 4px solid var(--color-primary);
}
.contact-info-card h3 { margin-bottom: 1.5rem; }
.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.contact-detail-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: var(--color-primary-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.1rem;
}
.contact-detail-text strong { display: block; font-size: .85rem; color: var(--color-text); margin-bottom: .15rem; }
.contact-detail-text span { font-size: .88rem; color: var(--color-muted); }
.contact-map {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  margin-top: 1.5rem;
  overflow: hidden;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Contact Form */
.contact-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  border-top: 4px solid var(--color-accent);
}
.contact-form-card h3 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--color-text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ar);
  font-size: .9rem;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  direction: rtl;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-muted);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-msg {
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  margin-top: 1rem;
  display: none;
}
.form-msg.success { background: var(--color-accent-bg); color: var(--color-accent); border: 1px solid rgba(26,107,74,.3); display: block; }
.form-msg.error   { background: #fde8e8; color: var(--color-danger); border: 1px solid #f5c0c0; display: block; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-ar);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

/* Primary = Gold (the action color) */
.btn-primary {
  background: var(--color-gold);
  color: var(--color-dark);
  border-color: var(--color-gold);
}
.btn-primary:hover {
  background: var(--color-gold-lt);
  border-color: var(--color-gold-lt);
  color: var(--color-dark);
  box-shadow: 0 4px 12px rgba(201,168,76,.3);
}

/* Outline = Navy (trust/institutional) */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* White (for dark backgrounds) */
.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}
.btn-white:hover {
  background: var(--color-primary-bg);
  border-color: var(--color-primary-bg);
}

.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--color-dark);
  padding: 3rem 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold) 30%, var(--color-gold-lt) 50%, var(--color-gold) 70%, transparent);
}
/* Watermark icon */
.page-hero-wm {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8rem;
  opacity: .04;
  color: var(--color-gold);
  pointer-events: none;
  line-height: 1;
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-gold-bg);
  border: 1px solid rgba(201,168,76,.25);
  color: var(--color-gold);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .9rem;
}
.page-hero h1 {
  color: var(--color-text);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: .5rem;
}
.page-hero p {
  color: var(--color-muted);
  font-size: .95rem;
  margin-bottom: .9rem;
}
.breadcrumb a { color: var(--color-gold); }
.breadcrumb span[aria-current] { color: var(--color-text); }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: .4rem;
  font-size: .82rem;
  margin-top: .75rem;
  color: rgba(255,255,255,.6);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-gold); }
.breadcrumb a:hover { color: var(--color-gold-lt); }
.breadcrumb span { color: var(--color-muted); }

/* ============================================================
   ABOUT PAGE (full)
   ============================================================ */
.about-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) { .about-full-grid { grid-template-columns: 1fr; } }

.about-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.about-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--color-primary-bg);
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--color-text);
}
.about-card h3 i { color: var(--color-primary); }
.about-card p, .about-card li { font-size: .925rem; color: var(--color-muted); margin-bottom: .5rem; }
.about-card ul { margin-right: 1rem; }
.about-card li::before { content: '✦ '; color: var(--color-accent); font-size: .7rem; }

.council-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.council-table th, .council-table td {
  padding: .7rem .9rem;
  text-align: right;
  border-bottom: 1px solid var(--color-border);
}
.council-table th { background: var(--color-primary-bg); color: var(--color-primary); font-weight: 700; }
.council-table tr:hover td { background: var(--color-surface-lt); }
.council-table td:first-child { color: var(--color-muted); font-size: .8rem; }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar {
  display: flex;
  gap: .75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.search-bar input {
  flex: 1;
  padding: .7rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ar);
  font-size: .9rem;
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  direction: rtl;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-width: 200px;
}
.search-bar input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27,63,110,.1);
}
.search-bar select {
  padding: .7rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ar);
  font-size: .9rem;
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.search-bar select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27,63,110,.1);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.page-btn {
  width: 38px; height: 38px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-ar);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.page-btn:hover {
  background: var(--color-primary-bg);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.page-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ============================================================
   RESULTS COUNT
   ============================================================ */
.results-count {
  font-size: .875rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.results-count strong { color: var(--color-accent); }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.empty-state {
  text-align: center;
  padding: 3rem 0;
  color: var(--color-muted);
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--color-sand);
  display: block;
  margin-bottom: 1rem;
}

/* ============================================================
   FOOTER — Deep Navy
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-darkest) 100%);
  color: var(--color-muted);
  padding: 3rem 0 1.5rem;
  position: relative;
  border-top: 3px solid var(--color-gold);
}
/* remove the old ::before gradient stripe */
.site-footer::before { display: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .5rem;
  line-height: 1.4;
}
.footer-brand p { font-size: .875rem; color: var(--color-muted); margin-bottom: 1rem; line-height: 1.6; }
.footer-social {
  display: flex;
  gap: .5rem;
}
.social-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.social-btn:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

.footer-col h4 {
  color: var(--color-gold);
  font-size: .9rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.footer-col h4::before {
  content: '';
  width: 12px; height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  display: inline-block;
}
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a {
  color: var(--color-muted);
  font-size: .875rem;
  transition: color var(--transition), padding-right var(--transition);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.footer-col ul li a:hover {
  color: var(--color-gold);
  padding-right: 4px;
}
.footer-col ul li a i { font-size: .75rem; color: var(--color-gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
}
.footer-bottom a { color: var(--color-gold); }
.footer-bottom a:hover { color: var(--color-gold-lt); }

.footer-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  object-fit: cover;
  margin-bottom: .75rem;
  display: block;
}

/* ============================================================
   BACK TO TOP — Emerald
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  background: var(--color-surface);
  border: 1px solid var(--color-gold);
  border-radius: 50px;
  padding: .4rem .85rem .4rem .4rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 99;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
#back-to-top:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold-lt);
}
#back-to-top .fab-icon {
  width: 30px;
  height: 30px;
  background: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  font-size: .85rem;
  flex-shrink: 0;
}
#back-to-top .fab-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--color-gold);
  font-family: var(--font-ar);
}

/* ============================================================
   ALERTS / NOTICES
   ============================================================ */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.alert i { margin-top: .1rem; flex-shrink: 0; }
.alert-info {
  background: var(--color-primary-bg);
  color: var(--color-primary);
  border: 1px solid rgba(27,63,110,.2);
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-lt) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-pulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 600px) {
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .stat-item + .stat-item { border-right: none; border-top: 1px solid rgba(255,255,255,.2); }
}
@media (max-width: 400px) {
  .services-grid { grid-template-columns: 1fr; }
}
