/* =====================================================
   SCDC GLOBAL STYLES
   Variables, Base Reset, Scrollbar, Cursor, Utilities
   ===================================================== */

  :root {
    --gold-primary: #8D7B32;  
    --gold-luxe: #C1AC51;  
    --bg-page: #050505; 
    --bg-menu: #000000;
    --bg-header: rgba(0,0,0,0.98);
    --text-main: #FFFFFF;
    --text-sub: #CCCCCC;
    --text-gold-highlight: var(--gold-luxe);
    --border-color: #222222;
    --login-bg: #FFFFFF;
    --login-text: #000000;
    --font-head: 'LEMON MILK Pro', 'Arial Black', sans-serif; 
    --font-body: 'Inter', sans-serif;
    --header-height: 90px;
  }

  [data-theme="light"] {
    --bg-page: #FFFFFF;
    --bg-menu: #FFFFFF;
    --bg-header: rgba(255,255,255,0.98);
    --text-main: #000000;
    --text-sub: #000000;
    --text-gold-highlight: var(--gold-primary);
    --border-color: #E5E5E5;
    --login-bg: #000000;
    --login-text: #FFFFFF;
  }

  * { box-sizing: border-box; cursor: none !important; }
  body { margin: 0; padding: 0; background: var(--bg-page); color: var(--text-main); font-family: var(--font-body); overflow-x: hidden; transition: background 0.4s ease, color 0.4s ease; }

  ::-webkit-scrollbar { width: 12px; background-color: var(--bg-page); }
  ::-webkit-scrollbar-track { background-color: var(--bg-page); }
  ::-webkit-scrollbar-thumb { background-color: var(--gold-primary); border-radius: 12px; border: 3px solid var(--bg-page); background-clip: content-box; }
  ::-webkit-scrollbar-thumb:hover { background-color: var(--gold-luxe); }


  /* CURSOR DIAMOND - Original v4 baseline style */
  .cursor-diamond {
    position: fixed; top: 0; left: 0; width: 16px; height: 16px;
    background-color: var(--gold-primary); 
    transform: translate(-50%, -50%) rotate(45deg);
    pointer-events: none; z-index: 2147483647;
    mix-blend-mode: difference; border: 1px solid #FFFFFF;
    transition: transform 0.1s ease, width 0.2s, height 0.2s, background-color 0.2s; 
    box-shadow: 0 0 10px var(--gold-primary);
  }
  body.hovering .cursor-diamond {
    background-color: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-luxe);
    transform: translate(-50%, -50%) rotate(45deg) scale(1.3);
    width: 20px;
    height: 20px;
  }

  /* CURSOR TRAIL */
  .trail-dot {
    position: fixed; width: 6px; height: 6px;
    background-color: var(--gold-luxe);
    transform: translate(-50%, -50%) rotate(45deg);
    pointer-events: none; z-index: 2147483646;
    opacity: 0.6; 
    animation: trailFade 0.8s ease-out forwards;
  }
  @keyframes trailFade {
    0% { opacity: 0.6; transform: translate(-50%, -50%) rotate(45deg) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) rotate(45deg) scale(0.3); }
  }

  .scdc-header {
    display: grid; grid-template-columns: auto 1fr 220px; align-items: center;
    padding: 0 4%; position: fixed; width: 100%; top: 0; left: 0; z-index: 10000;
    background: transparent; border-bottom: 1px solid rgba(141, 123, 50, 0.3);
    height: var(--header-height); transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.3s ease;
  }
  .scdc-header.scrolled {
    background-color: var(--bg-header) !important; 
    border-bottom: 2px solid var(--gold-primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  .logo-wrapper { display: flex; align-items: center; height: 100%; min-width: 200px; }
  .logo-img { height: 180px; width: auto; margin: -55px 0 -55px -20px; object-fit: contain; }

  .scdc-nav { display: flex; justify-content: center; height: 100%; align-items: center; gap: 2vw; }
  .nav-item { position: relative; height: 100%; display: flex; align-items: center; }
  .nav-link {
    color: var(--text-main); text-decoration: none; text-transform: uppercase;
    font-family: var(--font-head); font-size: 10px; font-weight: 200; letter-spacing: 0.3em;
    height: 40px; line-height: 20px; display: inline-flex; align-items: center;
    transition: color 0.3s ease;
  }
  [data-theme="dark"] .scdc-header:not(.scrolled) .nav-link { color: #FFF; }
  [data-theme="light"] .scdc-header:not(.scrolled) .nav-link { color: #FFF; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
  .nav-link:hover, .nav-link.active { color: var(--text-gold-highlight); }
  .desktop-arrow { font-size: 10px; color: var(--gold-primary); margin-left: 5px; transition: 0.3s; background: none; border: none; cursor: pointer; }
  .nav-item:hover .desktop-arrow { transform: rotate(180deg); color: var(--gold-luxe); }

  .theme-switch-rect { 
    flex: 1; display: flex; border: 1px solid var(--gold-primary); border-radius: 4px; 
    overflow: hidden; cursor: pointer; height: 28px; 
  }
  .switch-btn { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 11px; }
  .sun-btn { background-color: #FFFFFF !important; color: var(--gold-primary); }
  .moon-btn { background-color: #000000 !important; color: var(--gold-primary); }
  [data-theme="light"] .sun-btn { opacity: 1; } [data-theme="light"] .moon-btn { opacity: 0.4; }
  [data-theme="dark"] .moon-btn { opacity: 1; } [data-theme="dark"] .sun-btn { opacity: 0.4; }
  
  /* Light theme scroll spacer - white wipe instead of black */
  [data-theme="light"] .scroll-spacer { background-color: #FFFFFF; }
  [data-theme="light"] .scroll-spacer::after { background: #FFFFFF; }

  @property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
  @keyframes rotateBorder { to { --angle: 360deg; } }
  .btn-hero-style {
    position: relative; border: 1px solid transparent; border-radius: 4px;
    background-image: 
      linear-gradient(135deg, #8D7B32 0%, #544615 30%, #C1AC51 50%, #544615 70%, #8D7B32 100%), 
      conic-gradient(from var(--angle), #544615 0%, #C1AC51 25%, #FFFFFF 30%, #C1AC51 35%, #544615 100%) !important;
    background-origin: padding-box, border-box !important;
    background-clip: padding-box, border-box !important;
    animation: rotateBorder 4s linear infinite;
    color: white; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-size: 10px; font-weight: 200; text-transform: uppercase; letter-spacing: 0.3em;
    height: 40px; line-height: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: 0.3s; cursor: pointer; z-index: 5;
  }
  .btn-hero-style:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 6px 20px rgba(141, 123, 50, 0.4); }
  .btn-request { width: 100%; padding: 12px 20px; }
  .btn-gold { padding: 14px 40px; }

  .mobile-toggle-btn { display: none; font-size: 24px; color: var(--gold-primary); background: none; border: none; cursor: pointer; }
  @media screen and (max-width: 1200px) {
    .scdc-header { grid-template-columns: 1fr auto; height: var(--header-height); }
    .scdc-nav, .header-actions { display: none; }
    .mobile-toggle-btn { display: block; margin-left: 20px; }
    .logo-img { height: 90px; margin: 0; }
  }

  .hero { height: 100vh; background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop') center/cover; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; }
  .hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%); }
  .headline-lemon { font-family: var(--font-head); font-weight: 900; font-size: 4rem; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 20px; position: relative; z-index: 2; background: linear-gradient(90deg, #8D7B32 0%, #FBF5B7 50%, #8D7B32 100%); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: liquidFlow 5s linear infinite; line-height: 1.2; display: flex; align-items: center; justify-content: center; }
  @keyframes liquidFlow { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
  .hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
  .hero-sub { color: #DDD; font-size: 1.2rem; margin-bottom: 30px; text-shadow: 0 2px 5px black; }

  .back-to-top-container { position: fixed; bottom: 30px; right: 30px; width: 26px; height: 26px; z-index: 8000; opacity: 0; visibility: hidden; transition: all 0.4s ease; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .back-to-top-container.visible { opacity: 1; visibility: visible; }
  .back-to-top { width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; color: var(--gold-primary); border: 1px solid var(--gold-primary); }
  .back-to-top i { font-size: 9px; }
  .progress-ring { position: absolute; top: -2px; left: -2px; width: 30px; height: 30px; transform: rotate(-90deg); pointer-events: none; }
  .progress-ring__circle { transition: stroke-dashoffset 0.1s; transform-origin: 50% 50%; stroke: var(--gold-luxe); }
  .scroll-spacer { height: 100vh; background: url('../images/scdc-multifamily-real-estate-development-blueprint.jpg') center/cover no-repeat; background-color: #000000; position: relative; overflow: hidden; }
  
  /* Image Reveal Effect - Black wipe from bottom */
  .scroll-spacer::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    height: var(--reveal-cover, 100%);
    background: #000000;
    pointer-events: none;
    z-index: 1;
    transition: height 0.05s linear;
  }
