/* =============================================================
   AS Group — Public Website  v3.0  "2026"
   Dark · Arabic-first · RTL · Architectural
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700&family=Cairo:wght@400;600;700&display=swap');

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  --bg:          #07090e;
  --bg-2:        #0c1018;
  --bg-3:        #111620;
  --bg-4:        #161e2c;
  --gold:        #c9a558;
  --gold-up:     #d4b870;
  --gold-dim:    rgba(201, 165, 88, 0.14);
  --gold-border: rgba(201, 165, 88, 0.22);
  --white:       #ffffff;
  --t1:          #e8e0d4;
  --t2:          rgba(232, 224, 212, 0.62);
  --t3:          rgba(232, 224, 212, 0.34);
  --line:        rgba(255, 255, 255, 0.07);
  --line-gold:   rgba(201, 165, 88, 0.18);
  --nav-h:       68px;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Override Frappe body/page defaults ───────────────────── */
/* full_width=True removes Bootstrap container but Frappe still sets body bg */
body {
  background: var(--bg) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Suppress Frappe's Standard Footer and empty page-footer wrapper */
.web-footer,
footer.web-footer,
.page-footer {
  display: none !important;
}

/* Strip ALL Frappe/Bootstrap layout constraints from the main wrapper */
main.container,
main[class*="container"] {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Frappe wraps page_content in .page_content — strip ALL constraints */
.page_content,
.page-header-wrapper,
.page-breadcrumbs {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
}

/* ── Reset ────────────────────────────────────────────────── */
.as-site {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  color: var(--t1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

.as-site *, .as-site *::before, .as-site *::after { box-sizing: border-box; }

.as-site h1, .as-site h2, .as-site h3,
.as-site h4, .as-site h5, .as-site h6 {
  font-family: 'Tajawal', sans-serif;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0;
}

.as-site p   { margin: 0; }
.as-site a   { text-decoration: none; }
.as-site img { display: block; max-width: 100%; }
.as-site ul  { list-style: none; padding: 0; margin: 0; }

/* Grain — fixed, pointer-events-none */
.as-site::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Navigation — Floating Pill ───────────────────────────── */
.as-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.85rem 2rem;
  pointer-events: none;
}

.as-nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  pointer-events: all;
  transition: max-width 0.45s var(--ease),
              background 0.35s,
              border-color 0.35s,
              box-shadow 0.35s,
              padding 0.35s,
              border-radius 0.35s;
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  /* Solid dark pill — always readable regardless of page background */
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

/* Scroll state → tighter frosted pill with gold accent border */
.as-nav.scrolled .as-nav__inner {
  max-width: 880px;
  background: rgba(7, 9, 14, 0.96);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(201,165,88,0.15);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset,
              0 12px 40px rgba(0,0,0,0.6);
}

.as-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--t1);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.as-nav__logo-mark {
  width: 34px;
  height: 34px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.as-nav__links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.as-nav__links a {
  color: var(--t2);
  padding: 0.38rem 0.8rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.as-nav__links a:hover {
  color: var(--t1);
  background: rgba(255,255,255,0.07);
}

.as-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.as-nav__lang {
  color: var(--t3);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.as-nav__lang:hover { color: var(--t1); border-color: rgba(255,255,255,0.35); }

.as-nav__cta {
  background: var(--gold);
  color: var(--bg) !important;
  padding: 0.42rem 1.1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
}

.as-nav__cta:hover  { background: var(--gold-up); transform: scale(1.03); }
.as-nav__cta:active { transform: scale(0.97); }

/* Mobile toggle */
.as-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  margin-right: auto;
}

.as-nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--t1);
  border-radius: 2px;
  transition: 0.25s;
}

@media (max-width: 860px) {
  .as-nav { padding: 0.75rem 1.25rem; }
  .as-nav__toggle { display: flex; }
  .as-nav__links, .as-nav__actions { display: none; }

  .as-nav.open .as-nav__inner {
    background: rgba(7,9,14,0.96);
    border: 1px solid var(--line);
    border-radius: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 1rem 1.5rem;
  }

  .as-nav.open .as-nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
  }

  .as-nav.open .as-nav__links a {
    padding: 0.65rem 0;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }

  .as-nav.open .as-nav__links a:last-child { border-bottom: none; }

  .as-nav.open .as-nav__actions {
    display: flex;
    width: 100%;
    padding: 0.75rem 0 0;
    border-top: 1px solid var(--line);
  }
}

/* ── Hero — Full-Bleed Dark · Animated Mesh ───────────────── */
@keyframes mesh-drift {
  0%   { background-position: 70% 40%, 20% 70%, 50% 100%; }
  50%  { background-position: 60% 55%, 35% 45%, 70% 80%; }
  100% { background-position: 75% 35%, 15% 80%, 40% 95%; }
}

.as-hero {
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 70% 40%, rgba(201, 165, 88, 0.16) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 70%, rgba(20, 40, 80, 0.55) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 95%, rgba(201, 165, 88, 0.06) 0%, transparent 40%);
  background-size: 180% 180%, 140% 140%, 120% 120%;
  animation: mesh-drift 20s ease-in-out infinite alternate;
}

/* Architectural grid — decorative left space */
.as-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to right, rgba(0,0,0,0.6) 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.6) 0%, transparent 55%);
  pointer-events: none;
}

/* Thin gold vertical line — left accent */
.as-hero::after {
  content: '';
  position: absolute;
  left: clamp(3rem, 10vw, 140px);
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.5;
  pointer-events: none;
}

/* Asymmetric: text anchors right in RTL, leaves left ~38% open */
.as-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-top: calc(var(--nav-h) + 7rem);
  padding-bottom: 8rem;
  padding-right: clamp(2rem, 3.5vw, 3.5rem);
  padding-left: clamp(2rem, 8vw, 6rem);
}

.as-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.as-hero__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  flex-shrink: 0;
}

.as-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: 0;
}

.as-hero__title-accent {
  color: var(--gold);
  display: inline-block;
}

.as-hero__sub {
  font-size: 0.95rem;
  color: var(--t2);
  max-width: 420px;
  line-height: 1.9;
  margin-bottom: 2.25rem;
  font-weight: 300;
}

.as-hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Scroll indicator */
.as-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--t3);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 1;
}

@keyframes scroll-pulse {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(6px); opacity: 1; }
}

.as-hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@media (max-width: 768px) {
  .as-hero::before, .as-hero::after { display: none; }
  .as-hero__content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: calc(var(--nav-h) + 5rem);
    padding-bottom: 5rem;
  }
  .as-hero__scroll { display: none; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.as-btn {
  display: inline-block;
  padding: 0.78rem 1.8rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: 'Cairo', sans-serif;
  transition: background 0.2s var(--ease), transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.as-btn--gold {
  background: var(--gold);
  color: var(--bg);
}

.as-btn--gold:hover {
  background: var(--gold-up);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 165, 88, 0.28);
  color: var(--bg);
}

.as-btn--gold:active { transform: scale(0.97); }

.as-btn--ghost {
  background: transparent;
  color: var(--t1);
  border: 1px solid rgba(255,255,255,0.18);
}

.as-btn--ghost:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.05);
  color: var(--t1);
}

.as-btn--ghost:active { transform: scale(0.97); }

.as-link {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid rgba(201,165,88,0.3);
  padding-bottom: 0.1rem;
  transition: border-color 0.2s, color 0.2s;
}

.as-link:hover { color: var(--gold-up); border-color: var(--gold); }

/* ── Stats Strip ──────────────────────────────────────────── */
.as-stats {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.as-stats__row {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.as-stats__item {
  padding: 3rem 2rem;
  text-align: center;
  border-left: 1px solid var(--line);
  position: relative;
}

.as-stats__item:last-child { border-left: none; }

.as-stats__num {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.as-stats__label {
  font-size: 0.8rem;
  color: var(--t3);
  font-weight: 500;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .as-stats__row { grid-template-columns: repeat(2, 1fr); }
  .as-stats__item:nth-child(even) { border-left: none; }
  .as-stats__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ── Section Wrappers ─────────────────────────────────────── */
.as-section { padding: 7rem 0; }
.as-section--light { background: var(--bg-2); }

.as-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.as-section-head {
  margin-bottom: 3.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.as-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.as-eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.as-h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 400;
  color: var(--t1);
  line-height: 1.25;
  letter-spacing: 0;
}

.as-h2-en {
  display: block;
  font-size: 0.38em;
  font-weight: 400;
  color: var(--t3);
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

/* ── Bento Grid (Projects) ────────────────────────────────── */
.as-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 300px;
  gap: 10px;
}

/* Card sizing — asymmetric bento layout */
.as-bento .as-card:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.as-bento .as-card:nth-child(2) { grid-column: span 5; }
.as-bento .as-card:nth-child(3) { grid-column: span 5; }
.as-bento .as-card:nth-child(4) { grid-column: span 4; }
.as-bento .as-card:nth-child(5) { grid-column: span 4; }
.as-bento .as-card:nth-child(6) { grid-column: span 4; }
.as-bento .as-card:nth-child(n+7) { grid-column: span 4; }

@media (max-width: 1000px) {
  .as-bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 260px; }
  .as-bento .as-card:nth-child(1) { grid-column: span 6; grid-row: span 1; }
  .as-bento .as-card:nth-child(2), .as-bento .as-card:nth-child(3) { grid-column: span 3; }
  .as-bento .as-card:nth-child(n+4) { grid-column: span 3; }
}

@media (max-width: 580px) {
  .as-bento { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .as-bento .as-card { grid-column: span 1 !important; grid-row: span 1 !important; }
}

/* ── Project Card ─────────────────────────────────────────── */
.as-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-3);
  color: var(--t1);
  text-decoration: none;
  cursor: pointer;
}

.as-card__media {
  position: absolute;
  inset: 0;
}

.as-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.as-card:hover .as-card__media img { transform: scale(1.06); }

/* Architectural grid placeholder */
.as-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-3);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* Badge */
.as-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(7,9,14,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-gold);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Info overlay */
.as-card__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 1;
  padding: 3rem 1.4rem 1.4rem;
  background: linear-gradient(to top,
    rgba(7,9,14,0.97) 0%,
    rgba(7,9,14,0.55) 60%,
    transparent 100%);
  transform: translateY(4px);
  transition: transform 0.35s var(--ease);
}

.as-card:hover .as-card__info { transform: translateY(0); }

.as-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.as-card__meta {
  font-size: 0.78rem;
  color: var(--t3);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.as-card__meta span + span::before {
  content: '·';
  margin-left: 0.35rem;
  opacity: 0.4;
}

/* Stagger reveal */
.as-bento .as-card,
.as-news-grid .as-news-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.as-bento .as-card.in-view,
.as-news-grid .as-news-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── News Grid ────────────────────────────────────────────── */
.as-news-grid {
  display: grid;
  grid-template-columns: 5fr 3fr 4fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .as-news-grid { grid-template-columns: 1fr 1fr; }
  .as-news-grid .as-news-card:first-child { grid-column: span 2; }
}

@media (max-width: 560px) {
  .as-news-grid { grid-template-columns: 1fr; }
  .as-news-grid .as-news-card:first-child { grid-column: span 1; }
}

.as-news-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--t1);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.3s var(--ease);
}

.as-news-card:hover {
  border-color: var(--line-gold);
  transform: translateY(-3px);
  color: var(--t1);
}

.as-news-card:active { transform: scale(0.99); }

.as-news-card__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-3);
  flex-shrink: 0;
}

.as-news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.as-news-card:hover .as-news-card__img img { transform: scale(1.04); }

.as-news-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.as-news-card__date {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  display: block;
}

.as-news-card__title {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--t1);
  line-height: 1.5;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.as-news-card__intro {
  font-size: 0.85rem;
  color: var(--t3);
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── About Split ──────────────────────────────────────────── */
.as-about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 6rem;
  align-items: center;
}

.as-about__visual {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-3);
  position: relative;
}

.as-about__visual img { width: 100%; height: 100%; object-fit: cover; }

/* Grid-pattern placeholder */
.as-about__placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-3);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.as-about__placeholder::after {
  content: 'AS';
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  letter-spacing: 0.1em;
}

.as-about__text p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--t2);
  margin-bottom: 1.25rem;
  text-align: justify;
  text-align-last: right;
}

@media (max-width: 820px) {
  .as-about { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── Filter Bar ───────────────────────────────────────────── */
.as-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.as-filter {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--t2);
  padding: 0.36rem 0.95rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-family: 'Cairo', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.as-filter:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--t1);
  background: rgba(255,255,255,0.05);
}

.as-filter.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 700;
}

/* ── Long-form content — justify Arabic prose ─────────────── */
.as-site .as-value-card__desc,
.as-site .as-srv-card__desc,
.as-site .as-news-card__exc,
.as-site .as-hero__sub,
.as-site .as-footer__desc {
  text-align: justify;
  text-align-last: right;
}

/* ── Page Header ──────────────────────────────────────────── */
@keyframes hero-glow {
  0%   { opacity: 0.55; transform: scale(1)    translateY(0); }
  50%  { opacity: 0.75; transform: scale(1.08) translateY(-8px); }
  100% { opacity: 0.55; transform: scale(1)    translateY(0); }
}

.as-page-hero {
  background: var(--bg);
  min-height: 46vh;
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
}

/* Architectural grid — fades toward right */
.as-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at 25% 65%, rgba(0,0,0,0.7) 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 25% 65%, rgba(0,0,0,0.7) 0%, transparent 60%);
}

/* Animated gold glow */
.as-page-hero::after {
  content: '';
  position: absolute;
  top: -80px;
  right: 5%;
  width: 550px;
  height: 480px;
  background: radial-gradient(ellipse, rgba(201,165,88,0.11) 0%, transparent 65%);
  pointer-events: none;
  animation: hero-glow 9s ease-in-out infinite;
}

.as-page-hero__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

.as-page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.as-page-hero__eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.as-page-hero__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.as-page-hero__sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--t2);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.85;
}

/* ── Empty State ──────────────────────────────────────────── */
.as-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--t3);
}

.as-empty__rule {
  width: 32px;
  height: 1px;
  background: var(--line-gold);
  margin: 0 auto 1.5rem;
}

.as-empty p { font-size: 0.9rem; line-height: 1.65; }

/* ── Project Detail ───────────────────────────────────────── */
.as-project-cover {
  height: 65vh;
  min-height: 440px;
  position: relative;
  background: var(--bg-2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.as-project-cover__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,9,14,0.3) 0%,
    rgba(7,9,14,0.85) 100%
  );
}

.as-project-cover__content {
  position: absolute;
  bottom: 2.5rem;
  right: 0; left: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 1;
}

.as-project-type-pill {
  display: inline-block;
  background: rgba(7,9,14,0.65);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-gold);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.as-project-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}

.as-project-meta-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.as-project-meta-bar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.35rem 2rem;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.as-meta-item__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 0.2rem;
  display: block;
}

.as-meta-item__value {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--t1);
}

.as-project-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.as-project-body .ql-editor,
.as-project-body .content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--t2);
  text-align: justify;
  text-align-last: right;
}

/* ── Newsletter strip (homepage) ─────────────────────────── */
.as-nl-strip {
  padding: 4rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.as-nl-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.as-nl-strip__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--t1);
  margin: 0 0 0.35rem;
}
.as-nl-strip__sub {
  font-size: 0.82rem;
  color: var(--t2);
  margin: 0;
  line-height: 1.6;
}
.as-nl-strip__action { flex-shrink: 0; min-width: 340px; }
.as-sub-inline {
  display: flex;
  gap: 0.6rem;
}
.as-sub-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--t1);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.88rem;
  direction: rtl;
  text-align: right;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.as-sub-input[dir="ltr"] { direction: ltr; text-align: left; }
.as-sub-input::placeholder { color: var(--t3); }
.as-sub-input:focus {
  border-color: rgba(201,165,88,0.4);
  box-shadow: 0 0 0 3px rgba(201,165,88,0.08);
}
.as-sub-btn {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.as-sub-btn:hover { background: var(--gold-up); transform: translateY(-1px); }
.as-sub-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.as-sub-msg {
  font-size: 0.78rem;
  margin-top: 0.6rem;
  line-height: 1.5;
}
.as-sub-msg--ok  { color: #7bcf8f; }
.as-sub-msg--err { color: #e07070; }
@media (max-width: 800px) {
  .as-nl-strip__inner   { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .as-nl-strip__action  { width: 100%; min-width: unset; }
}

/* ── Footer ───────────────────────────────────────────────── */
.as-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 5rem 0 2rem;
  color: var(--t3);
}

.as-footer__grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 3.5rem;
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 1fr;
  gap: 3rem;
  border-bottom: 1px solid var(--line);
}

.as-footer__desc {
  font-size: 0.85rem;
  line-height: 1.85;
  margin-top: 1.1rem;
  max-width: 250px;
}

.as-footer__head {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.35rem;
  display: block;
}

.as-footer__links li { margin-bottom: 0.6rem; }

.as-footer__links a {
  color: var(--t3);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.as-footer__links a:hover { color: var(--t1); }

.as-footer__bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.75rem 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.as-footer__social { display: flex; gap: 0.5rem; }

.as-footer__social a {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t3);
  transition: all 0.2s;
}

.as-footer__social a:hover {
  border-color: var(--line-gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.as-footer__social svg { display: block; }

/* Desk access link in footer */
.as-footer__desk-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--t3);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  transition: all 0.2s;
}

.as-footer__desk-link:hover {
  color: var(--gold);
  border-color: var(--line-gold);
  background: rgba(201,165,88,0.06);
}

@media (max-width: 860px) {
  .as-footer__grid { grid-template-columns: 1fr 1fr; }
  .as-footer__desk-link { display: none; } /* hide on mobile, team uses desktop */
}

@media (max-width: 480px) {
  .as-footer__grid { grid-template-columns: 1fr; }
}

/* ── Services strip (home page) ───────────────────────────── */
.as-srv-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.as-srv-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 2rem 1.75rem;
  background: var(--bg-2);
  color: var(--t1);
  text-decoration: none;
  transition: background 0.2s;
}
.as-srv-item:hover { background: var(--bg-3); }
.as-srv-item__icon { color: var(--gold); }
.as-srv-item__title { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.as-srv-item__sub   { font-size: 0.78rem; color: var(--t3); line-height: 1.5; }

@media (max-width: 860px) {
  .as-srv-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .as-srv-strip { grid-template-columns: 1fr; }
}

/* ── About SVG architectural illustration ─────────────────── */
.as-about__arch-svg {
  width: 100%;
  height: 100%;
  max-height: 480px;
}

/* ── Clients strip ────────────────────────────────────────── */
.as-clients {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.as-clients__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t3);
  text-align: center !important;
  margin-bottom: 1.5rem;
}

.as-clients__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.as-clients__row::-webkit-scrollbar { display: none; }

.as-clients__item {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--t2);
  padding: 0.35rem 2rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.as-clients__item:hover { color: var(--t1); }

.as-clients__sep {
  width: 1px;
  height: 18px;
  background: var(--line);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .as-clients__sep { display: none; }
  .as-clients__item { padding: 0.4rem 1.25rem; font-size: 0.8rem; }
}

/* ── Contact map ──────────────────────────────────────────── */
.as-map-wrap { position: relative; }

.as-map-caption {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--t3);
}

/* ── Manifesto band ───────────────────────────────────────── */
.as-manifesto {
  padding: 5rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center !important;
}

.as-manifesto__line {
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 200;
  color: var(--t1);
  line-height: 1.6;
  letter-spacing: 0.01em;
  max-width: 720px;
  margin: 0 auto 1rem;
  text-align: center !important;
}

.as-manifesto__attr {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center !important;
}

/* ── Services row ─────────────────────────────────────────── */
.as-svc-row {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.as-svc-row__inner {
  display: flex;
  flex-direction: column;
}

.as-svc-row__item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--t2);
  text-decoration: none;
  transition: color 0.2s;
}

.as-svc-row__item:last-child { border-bottom: none; }
.as-svc-row__item:hover { color: var(--t1); }
.as-svc-row__item:hover .as-svc-row__arrow { opacity: 1; transform: translateX(-4px); }

.as-svc-row__num {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.14em;
  min-width: 2rem;
  flex-shrink: 0;
}

.as-svc-row__name {
  font-size: 1rem;
  font-weight: 400;
  flex: 1;
}

.as-svc-row__arrow {
  color: var(--t3);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════
   ESTIMATE PAGE — premium
   ═══════════════════════════════════════════════════════════════ */

.as-est-page {
  padding: 4rem 0 6rem;
  background: var(--bg);
}

.as-est-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

/* ══ FORM ══════════════════════════════════════════════════════ */
.as-est-form { display: flex; flex-direction: column; gap: 0; }

.as-est-step-block {
  padding: 2.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.as-est-step-block:last-child { border-bottom: none; }

.as-est-step-hd {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.as-est-num {
  font-size: 2.8rem;
  font-weight: 200;
  color: var(--gold);
  line-height: 1;
  opacity: 0.65;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.as-est-step-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--t1);
  margin-bottom: 0.2rem;
  padding-top: 0.35rem;
}
.as-est-step-sub { font-size: 0.78rem; color: var(--t3); }

.as-est-fields { display: flex; flex-direction: column; gap: 1.5rem; }

.as-est-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Labels */
.as-est-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232,224,212,0.45);
  margin-bottom: 0.65rem;
}
.as-est-opt { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 0.72rem; }
.as-req { color: var(--gold); }

/* Inputs */
.as-est-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  color: var(--t1);
  direction: rtl;
  text-align: right;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.as-est-input--ltr { direction: ltr; text-align: left; }
.as-est-input:focus {
  outline: none;
  border-color: rgba(201,165,88,0.55);
  background: rgba(201,165,88,0.04);
  box-shadow: 0 0 0 3px rgba(201,165,88,0.08);
}
.as-est-input::placeholder { color: rgba(232,224,212,0.2); }
.as-est-ta { resize: vertical; min-height: 90px; }

/* Select wrapper */
.as-est-select-wrap { position: relative; }
.as-est-select-wrap select { padding-left: 2.5rem; cursor: pointer; }
.as-est-select-arrow {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(232,224,212,0.35);
  pointer-events: none;
}

/* Input + unit */
.as-est-input-wrap { position: relative; }
.as-est-input-wrap .as-est-input { padding-left: 3.5rem; }
.as-est-unit {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: rgba(232,224,212,0.35);
  pointer-events: none;
}

/* Complexity cards */
.as-est-level-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.as-est-lvl { cursor: pointer; position: relative; display: block; }
.as-est-lvl input { position: absolute; opacity: 0; width: 1px; height: 1px; top: 0; right: 0; }

.as-est-lvl__box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.as-est-lvl__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,165,88,0.3);
  transition: background 0.2s, border-color 0.2s;
}

.as-est-lvl input:checked + .as-est-lvl__box {
  border-color: rgba(201,165,88,0.55);
  background: rgba(201,165,88,0.06);
  box-shadow: 0 0 0 3px rgba(201,165,88,0.07), inset 0 0 0 1px rgba(201,165,88,0.1);
}
.as-est-lvl input:checked + .as-est-lvl__box .as-est-lvl__dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 6px rgba(201,165,88,0.5);
}

.as-est-lvl__title { font-size: 0.88rem; font-weight: 500; color: var(--t1); }
.as-est-lvl__desc  { font-size: 0.7rem; color: var(--t3); line-height: 1.4; }

/* Services */
.as-est-services { display: flex; flex-direction: column; gap: 0.5rem; }

.as-est-svc-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.as-est-svc-item--on {
  border-color: rgba(201,165,88,0.3);
  background: rgba(201,165,88,0.04);
  cursor: default;
}
.as-est-svc-item:has(input:checked) {
  border-color: rgba(201,165,88,0.45);
  background: rgba(201,165,88,0.05);
}

.as-est-svc-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.as-est-svc-check {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.as-est-svc-check--fixed {
  background: rgba(201,165,88,0.18);
  border-color: rgba(201,165,88,0.45);
  color: var(--gold);
}
.as-est-svc-item:has(input:checked) .as-est-svc-check {
  background: rgba(201,165,88,0.18);
  border-color: rgba(201,165,88,0.55);
  color: var(--gold);
}

.as-est-svc-info   { flex: 1; }
.as-est-svc-name   { display: block; font-size: 0.88rem; font-weight: 500; color: var(--t1); }
.as-est-svc-desc   { display: block; font-size: 0.72rem; color: var(--t3); margin-top: 0.15rem; }
.as-est-svc-tag    {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,165,88,0.3);
  padding: 0.1rem 0.5rem;
  border-radius: 100px;
  margin-top: 0.25rem;
}

/* Timeline */
.as-est-tl-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.as-est-tl { cursor: pointer; position: relative; display: block; }
.as-est-tl input { position: absolute; opacity: 0; width: 1px; height: 1px; top: 0; right: 0; }

.as-est-tl__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  text-align: center !important;
  color: rgba(232,224,212,0.35);
}
.as-est-tl input:checked + .as-est-tl__box {
  border-color: rgba(201,165,88,0.55);
  background: rgba(201,165,88,0.06);
  box-shadow: 0 0 0 3px rgba(201,165,88,0.07);
  color: var(--gold);
}
.as-est-tl__title { font-size: 0.88rem; font-weight: 500; color: var(--t1); }
.as-est-tl__desc  { font-size: 0.68rem; color: var(--t3); }

/* ══ RESULT PANEL ═══════════════════════════════════════════════ */
.as-est-panel {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  border: 1px solid rgba(201,165,88,0.18);
  border-radius: 14px;
  background: var(--bg-2);
  overflow: hidden;
}

/* Architectural drawing header */
.as-est-drawing {
  background: var(--bg-3);
  border-bottom: 1px solid rgba(201,165,88,0.1);
  padding: 1.25rem 1rem 0.75rem;
}
.as-est-drawing svg { width: 100%; display: block; }

/* Placeholder hint */
.as-est-panel__hint {
  padding: 1.5rem 1.75rem 2rem;
  text-align: center !important;
}
.as-est-panel__hint-line {
  width: 28px;
  height: 1px;
  background: rgba(201,165,88,0.3);
  margin: 0 auto 1rem;
}
.as-est-panel__hint p {
  font-size: 0.8rem;
  color: var(--t3);
  line-height: 1.9;
}

/* Live result */
.as-est-panel__live { padding: 1.75rem; }

.as-est-fee-block {
  text-align: center !important;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.as-est-fee-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232,224,212,0.35);
  margin-bottom: 0.75rem;
}
.as-est-fee-num {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 200;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}
.as-est-fee-sub { font-size: 0.65rem; color: var(--t3); }

.as-est-divider { height: 1px; background: rgba(255,255,255,0.07); margin-bottom: 1.5rem; }

/* Phase rows */
.as-est-phases-hd,
.as-est-svc-hd {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232,224,212,0.35);
  margin-bottom: 0.85rem;
}

.as-est-phase-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.as-est-phase-row--dim { opacity: 0.5; }

.as-est-phase-n {
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(201,165,88,0.6);
  flex-shrink: 0;
  width: 16px;
}

.as-est-phase-info { flex: 1; min-width: 0; }
.as-est-phase-lbl  { display: block; font-size: 0.72rem; color: var(--t2); margin-bottom: 0.3rem; line-height: 1.3; }

.as-est-phase-bar {
  height: 2px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}
.as-est-phase-bar__fill {
  height: 100%;
  background: linear-gradient(to left, rgba(201,165,88,0.7), rgba(201,165,88,0.2));
  border-radius: 2px;
}

.as-est-phase-wk {
  font-size: 0.7rem;
  color: var(--t1);
  white-space: nowrap;
  flex-shrink: 0;
}

.as-est-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0 1.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--t2);
}

/* Services pills */
.as-est-svc-hd { margin-top: 0.25rem; }
.as-est-svc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.as-est-svc-pill {
  font-size: 0.7rem;
  color: var(--t2);
  border: 1px solid rgba(201,165,88,0.2);
  border-radius: 100px;
  padding: 0.28rem 0.85rem;
  background: rgba(201,165,88,0.05);
}

/* Note */
.as-est-note {
  font-size: 0.68rem;
  color: var(--t3);
  line-height: 1.7;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(201,165,88,0.1);
  border-radius: 8px;
  background: rgba(201,165,88,0.03);
  margin-bottom: 1.25rem;
  text-align: right;
}

/* CTA button */
.as-est-cta {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--gold);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center !important;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-sizing: border-box;
  letter-spacing: 0.02em;
}
.as-est-cta:hover {
  background: var(--gold-up);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,165,88,0.28);
}
.as-est-cta:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

.as-est-msg { margin-top: 0.9rem; font-size: 0.78rem; text-align: center !important; line-height: 1.6; }
.as-est-msg--ok  { color: #7bcf8f; }
.as-est-msg--err { color: #e07070; }

/* Three-column grid: land area / built area / floors */
.as-est-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

/* FAR (Floor Area Ratio) inline display */
.as-est-far-display {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.as-est-far-label {
  font-size: 0.75rem;
  color: var(--t3);
  flex-shrink: 0;
}
.as-est-far-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}
.as-est-far-note {
  font-size: 0.72rem;
  line-height: 1.4;
  flex: 1;
  min-width: 120px;
}
.as-est-far-note--warn { color: #e09060; }
.as-est-far-note--ok   { color: #7bcf8f; }

/* Hint / helper text inside step blocks */
.as-est-hint {
  font-size: 0.76rem;
  color: var(--t3);
  margin: 0 0 1.1rem;
  line-height: 1.6;
  text-align: right;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .as-est-layout { grid-template-columns: 1fr; gap: 2rem; }
  .as-est-panel  { position: static; }
}

@media (max-width: 600px) {
  .as-est-level-cards,
  .as-est-tl-row { grid-template-columns: 1fr; }
  .as-est-2col   { grid-template-columns: 1fr; gap: 1.25rem; }
  .as-est-3col   { grid-template-columns: 1fr; gap: 1rem; }
  .as-est-num    { font-size: 2rem; }
  .as-est-step-block { padding: 1.75rem 0; }
}

/* ── Frappe Blog post — dark theme overrides ─────────────── */
.blog-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  color: var(--t1);
}
.blog-header { margin-bottom: 2.5rem; }
.blog-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--t1);
  line-height: 1.35;
  margin: 1rem 0 0.75rem;
}
.blog-intro {
  font-size: 1.05rem;
  color: var(--t2);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.blog-container .text-muted,
.blog-container a.mr-2,
.blog-container a.ml-2,
.blog-container time {
  color: var(--t3) !important;
  font-size: 0.82rem;
}
.blog-container hr { border-color: var(--line); }

/* article body text */
.from-markdown,
.from-markdown p,
.from-markdown li {
  color: var(--t1);
  font-size: 0.97rem;
  line-height: 1.9;
}
.from-markdown h1,
.from-markdown h2,
.from-markdown h3,
.from-markdown h4 {
  color: var(--t1);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.from-markdown h2 { font-size: 1.35rem; }
.from-markdown h3 { font-size: 1.1rem; }
.from-markdown a  { color: var(--gold); }
.from-markdown a:hover { color: var(--gold-up); }
.from-markdown blockquote {
  border-right: 3px solid var(--gold);
  border-left: none;
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--t2);
  background: rgba(201,165,88,0.04);
  border-radius: 0 8px 8px 0;
}
.from-markdown code {
  background: var(--bg-3);
  color: var(--gold);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
}
.from-markdown pre {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
}
.from-markdown img {
  max-width: 100%;
  border-radius: 10px;
  margin: 1.5rem 0;
}

/* blog footer / likes / comments */
.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--t3);
}
.blog-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
