/* =====================================================================
       Apartment Business Bay - Editorial Design System
       Full-width, mobile-first, fully responsive
       All CSS tokens from the original system are preserved.
       Additional sub-page overrides ensure hero background is DARK on every interior page.
    ===================================================================== */
    /* ---------- Design Tokens ---------- */
    :root {
      --ink:        #0a2540;
      --ink-soft:   #1a3454;
      --ink-mid:    #4a5d75;
      --ink-light:  #7a8ba2;
      --paper:      #faf7f2;
      --paper-card: #ffffff;
      --paper-warm: #f3ecdc;
      --line:       #e9e2d4;
      --line-soft:  #f1ead9;
      --gold:       #b8893f;
      --gold-dark:  #8e6929;
      --gold-light: #e6d4a8;
      --success:    #1f6b3a;
      --danger:     #a3342f;

      --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
      --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

      --container-max: 1400px;
      --container-pad: clamp(1rem, 3vw, 2.5rem);

      --r-sm: 6px;
      --r-md: 10px;
      --r-lg: 16px;
      --r-xl: 24px;

      --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
      --shadow-md: 0 4px 16px rgba(10, 37, 64, 0.08);
      --shadow-lg: 0 12px 36px rgba(10, 37, 64, 0.12);

      --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* ---------- Reset ---------- */
    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
    body {
      margin: 0;
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.65;
      color: var(--ink);
      background: var(--paper);
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }
    img, picture, svg, video { max-width: 100%; height: auto; display: block; }
    a { color: var(--ink); text-decoration: none; transition: color var(--t); }
    a:hover { color: var(--gold-dark); }
    button, input, select, textarea { font: inherit; color: inherit; }
    h1, h2, h3, h4, h5, h6 {
      font-family: var(--font-display);
      font-weight: 600;
      line-height: 1.2;
      margin: 0 0 0.5em;
      color: var(--ink);
      letter-spacing: -0.01em;
    }
    p { margin: 0 0 1em; }

    h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
    h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
    h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
    h4 { font-size: clamp(1.05rem, 2vw, 1.25rem); }

    /* Layout */
    .container {
      width: 100%;
      max-width: var(--container-max);
      margin: 0 auto;
      padding-left: var(--container-pad);
      padding-right: var(--container-pad);
    }
    .container-narrow {
      width: 100%;
      max-width: 880px;
      margin: 0 auto;
      padding-left: var(--container-pad);
      padding-right: var(--container-pad);
    }
    .container-wide {
      width: 100%;
      max-width: 1600px;
      margin: 0 auto;
      padding-left: var(--container-pad);
      padding-right: var(--container-pad);
    }
    section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
    section.section-sm { padding: clamp(1.5rem, 4vw, 3rem) 0; }

    .skip-link {
      position: absolute; top: -100px; left: 0;
      background: var(--ink); color: #fff;
      padding: 0.75rem 1.25rem; z-index: 9999;
      text-decoration: none; font-weight: 500;
    }
    .skip-link:focus { top: 0; }

    /* Header */
    .site-header {
      position: sticky; top: 0; z-index: 100;
      background: rgba(250, 247, 242, 0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line);
    }
    .site-header .container {
      display: flex; align-items: center; justify-content: space-between;
      padding-top: 1rem; padding-bottom: 1rem;
      gap: 1.5rem;
    }
    .brand {
      display: flex; align-items: center; gap: 0.75rem;
      flex-shrink: 0;
    }
    .brand-mark {
      width: 44px; height: 44px;
      background: var(--ink); color: var(--gold-light);
      border-radius: var(--r-md);
      display: grid; place-items: center;
      font-family: var(--font-display);
      font-weight: 700; font-size: 1.4rem;
      letter-spacing: -0.02em;
    }
    .brand-text {
      display: flex; flex-direction: column; line-height: 1.1;
    }
    .brand-title {
      font-family: var(--font-display);
      font-size: 1.1rem; font-weight: 600;
      color: var(--ink);
    }
    .brand-tag {
      font-size: 0.7rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--ink-mid);
      font-weight: 500;
    }

    .nav-primary {
      display: flex; align-items: center; gap: 0.25rem;
      flex: 1; justify-content: flex-end;
    }
    .nav-primary a {
      position: relative;
      padding: 0.5rem 1rem;
      font-size: 0.95rem;
      font-weight: 500;
      color: var(--ink);
      border-radius: var(--r-sm);
    }
    .nav-primary a:hover { color: var(--gold-dark); background: rgba(184, 137, 63, 0.06); }
    .nav-primary a.is-active { color: var(--gold-dark); }
    .nav-primary a.is-active::after {
      content: ''; position: absolute; left: 1rem; right: 1rem; bottom: 4px;
      height: 2px; background: var(--gold);
    }

    .nav-toggle {
      display: none; background: none; border: none; cursor: pointer;
      padding: 0.5rem; border-radius: var(--r-sm);
    }
    .nav-toggle span {
      display: block; width: 24px; height: 2px;
      background: var(--ink); margin: 5px 0;
      transition: transform var(--t), opacity var(--t);
    }
    @media (max-width: 900px) {
      .nav-toggle { display: block; }
      .nav-primary {
        position: fixed; inset: 64px 0 auto 0;
        flex-direction: column;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 1rem var(--container-pad) 1.5rem;
        transform: translateY(-110%);
        transition: transform var(--t);
        box-shadow: var(--shadow-md);
      }
      .nav-primary.is-open { transform: translateY(0); }
      .nav-primary a { width: 100%; padding: 0.85rem 1rem; }
      .nav-primary a.is-active::after { display: none; }
    }

    /* Buttons */
    .btn {
      display: inline-flex; align-items: center; gap: 0.5rem;
      padding: 0.85rem 1.5rem;
      border-radius: var(--r-md);
      font-weight: 600; font-size: 0.95rem;
      border: 1.5px solid transparent;
      cursor: pointer;
      transition: all var(--t);
      text-decoration: none;
      white-space: nowrap;
    }
    .btn-primary { background: var(--ink); color: #fff; }
    .btn-primary:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
    .btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
    .btn-ghost:hover { background: var(--ink); color: #fff; }
    .btn-gold { background: var(--gold); color: #fff; }
    .btn-gold:hover { background: var(--gold-dark); }

    /* ========== HERO VARIANTS ========== */
    /* Homepage hero retains light/warm gradient */
    .hero {
      padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
      background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
    }
    /* Sub-page hero: DARK background as required. Used for interior pages (Buildings, Blog, etc) */
    .hero-dark {
      background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
      background-image: radial-gradient(circle at 15% 30%, rgba(184, 137, 63, 0.18) 0%, transparent 50%),
                        radial-gradient(circle at 85% 80%, rgba(230, 212, 168, 0.1) 0%, transparent 55%);
      color: #fff;
    }
    .hero-dark .hero-title, .hero-dark .hero-title em, 
    .hero-dark .hero-lead, .hero-dark .hero-eyebrow {
      color: #fff;
    }
    .hero-dark .hero-eyebrow {
      background: rgba(255, 255, 255, 0.12);
      color: var(--gold-light);
    }
    .hero-dark .hero-lead {
      color: rgba(255, 255, 255, 0.85);
    }
    .hero-dark .btn-ghost {
      border-color: rgba(255, 255, 255, 0.5);
      color: #fff;
    }
    .hero-dark .btn-ghost:hover {
      background: #fff;
      color: var(--ink);
      border-color: #fff;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: clamp(2rem, 5vw, 4rem);
      align-items: center;
    }
    @media (min-width: 900px) {
      .hero-grid { grid-template-columns: 1.1fr 1fr; }
    }
    .hero-eyebrow {
      display: inline-block;
      font-size: 0.75rem; font-weight: 600;
      letter-spacing: 0.2em; text-transform: uppercase;
      color: var(--gold-dark);
      margin-bottom: 1.25rem;
      padding: 0.4rem 0.85rem;
      background: rgba(184, 137, 63, 0.1);
      border-radius: 999px;
    }
    .hero-title { font-size: clamp(2.25rem, 6vw, 4.25rem); margin-bottom: 1.5rem; letter-spacing: -0.02em; }
    .hero-title em { font-style: italic; color: var(--gold-dark); font-weight: 500; }
    .hero-dark .hero-title em { color: var(--gold-light); }
    .hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-mid); margin-bottom: 2rem; max-width: 56ch; }
    .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
    .hero-visual {
      position: relative;
      aspect-ratio: 4 / 5;
      border-radius: var(--r-xl);
      background: var(--ink);
      background-image: radial-gradient(circle at 20% 30%, rgba(184, 137, 63, 0.4) 0%, transparent 50%),
                        radial-gradient(circle at 80% 70%, rgba(230, 212, 168, 0.2) 0%, transparent 50%);
      overflow: hidden;
      box-shadow: var(--shadow-lg);
    }
    .hero-visual-card {
      position: absolute;
      bottom: clamp(1rem, 3vw, 2rem);
      left: clamp(1rem, 3vw, 2rem);
      right: clamp(1rem, 3vw, 2rem);
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-radius: var(--r-lg);
      padding: 1.5rem;
    }
    /* stats, grids, cards, etc all unchanged from system */
    .stats-strip { background: var(--ink); color: #fff; padding: clamp(2rem, 4vw, 3rem) 0; }
    .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); text-align: center; }
    .stat-item .num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: var(--gold-light); line-height: 1; margin-bottom: 0.4rem; }
    .stat-item .lbl { font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }

    .section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
    .section-head h2 { margin: 0; }
    .section-head .lead { max-width: 50ch; color: var(--ink-mid); margin: 0.5rem 0 0; font-size: 1.05rem; }

    .grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
    .grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
    .grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

    .b-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: all var(--t); }
    .b-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold-light); }
    .b-card .img { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%); position: relative; overflow: hidden; }
    .b-card .img-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-light); font-family: var(--font-display); font-size: 3rem; font-weight: 700; }
    .b-card .body { padding: 1.5rem; flex: 1; }
    .b-card .developer { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: 0.5rem; }
    .b-card h3 { font-size: 1.4rem; margin: 0 0 0.5rem; }
    .b-card .summary { color: var(--ink-mid); font-size: 0.95rem; margin: 0 0 1.25rem; }
    .b-card .specs { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); font-size: 0.85rem; color: var(--ink-mid); }
    .featured-flag { position: absolute; top: 1rem; left: 1rem; background: var(--gold); color: #fff; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; z-index: 2; }

    .blog-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; transition: all var(--t); display: flex; flex-direction: column; }
    .blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold-light); }
    .blog-card .img { aspect-ratio: 16 / 9; background: var(--paper-warm); position: relative; overflow: hidden; }
    .blog-card .body { padding: 1.5rem; flex: 1; }
    .blog-card .cat { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: 0.6rem; }
    .blog-card h3 { font-size: 1.3rem; margin: 0 0 0.75rem; }
    .blog-card .excerpt { color: var(--ink-mid); font-size: 0.92rem; margin: 0 0 1.25rem; flex: 1; }
    .blog-card .meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ink-light); padding-top: 1rem; border-top: 1px solid var(--line-soft); }

    .site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.75); padding: clamp(3rem, 6vw, 5rem) 0 2rem; margin-top: clamp(3rem, 6vw, 5rem); }
    .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(2rem, 4vw, 3rem); margin-bottom: 3rem; }
    .footer-col h5 { color: var(--gold-light); font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; margin: 0 0 1.25rem; font-family: var(--font-body); font-weight: 600; }
    .footer-col ul { list-style: none; padding: 0; margin: 0; }
    .footer-col a { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
    .footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; font-size: 0.8rem; }
    .prose { font-size: 1.05rem; line-height: 1.8; color: var(--ink-soft); max-width: 72ch; }
    @media (max-width: 600px) { .b-card .body, .blog-card .body { padding: 1.25rem; } }