/* ==========================================================================
   Housing Rubix brand layer — loaded last.
   Palette: Ink Teal #0F3D3E · Key Coral #D9431C · Sandstone #E8D9BF ·
            Limewash #FAF7F1 · Basalt #13201F · Tide #5FA8A0
   Type:    Archivo (display) + Instrument Sans (text), self-hosted (OFL)
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/Archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/InstrumentSans-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --hr-teal:      #0F3D3E;
  --hr-teal-700:  #164D4E;
  --hr-teal-500:  #2B6E6B;
  --hr-coral:     #D9431C;
  --hr-coral-700: #B8370F;
  --hr-sand:      #E8D9BF;
  --hr-sand-100:  #F4ECDD;
  --hr-lime:      #FAF7F1;
  --hr-basalt:    #13201F;
  --hr-tide:      #5FA8A0;

  /* Legacy tokens remapped so every existing component follows the brand */
  --dp-black:      var(--hr-basalt);
  --dp-black-soft: var(--hr-teal);
  --dp-charcoal:   var(--hr-teal-700);
  --dp-gray-700:   #3F4B49;
  --dp-gray-500:   #5E6B68;
  --dp-gray-400:   #8D9895;
  --dp-gray-200:   #E3DDD2;
  --dp-gray-100:   #F4F0E8;
  --dp-gold:       var(--hr-coral);
  --dp-gold-light: #F07A55;
  --dp-gold-dark:  var(--hr-coral-700);
  --dp-gold-bg:    var(--hr-sand-100);
  --dp-green:      #1F7A5A;

  --dp-font:         'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --dp-font-display: 'Archivo', 'Arial Narrow', 'Segoe UI', sans-serif;
}

body {
  font-family: var(--dp-font);
  color: var(--hr-basalt);
}

h1, h2, h3, h4, h5,
.dp-headline, .pg-title, .hs-title, .dp-hero__title {
  font-family: var(--dp-font-display);
  letter-spacing: -0.02em;
}
h1, .dp-hero__title { font-weight: 800; }
h2, h3, .dp-headline, .pg-title, .hs-title { font-weight: 700; }

/* Hero accent line: solid weight instead of a faux italic */
.dp-hero__title em { font-style: normal; color: #F07A55; }

/* Buttons: white text on coral and teal (AA contrast) */
.dp-btn-gold,
.dp-btn-gold:hover { color: #FFFFFF !important; }
.dp-btn-primary { background: var(--hr-teal); border-color: var(--hr-teal); }
.dp-btn-primary:hover { background: var(--hr-teal-700); border-color: var(--hr-teal-700); }
.dp-btn-outline { color: var(--hr-teal); border-color: var(--hr-teal); }
.dp-btn-outline:hover { background: var(--hr-teal); color: #FFFFFF; }

/* Stats and overlines */
.dp-overline { color: var(--hr-coral); }
.dp-stat-number { font-family: var(--dp-font-display); font-weight: 800; }

/* Header CTA and mobile CTA on coral */
.dp-header__cta,
.dp-header--hero.dp-header--scrolled .dp-header__cta,
.dp-header--hero .dp-header__cta:hover,
.dp-mobile-menu__cta-btn { color: #FFFFFF !important; }

:focus-visible { outline: 3px solid var(--hr-coral); outline-offset: 2px; }

/* ── Mobile dock (phones) ───────────────────────────────────────────── */
.hr-dock { display: none; }
@media (max-width: 767px) {
  .hr-dock {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1040;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(250, 247, 241, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid #E3DDD2;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .hr-dock a, .hr-dock button {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 52px;
    border: 0; background: transparent;
    font: 600 11px/1.1 var(--dp-font);
    color: var(--hr-basalt) !important;
    text-decoration: none !important;
    border-radius: 12px;
  }
  .hr-dock svg { width: 20px; height: 20px; }
  .hr-dock .hr-dock__wa { color: #128C4B !important; }
  .hr-dock .hr-dock__cta { background: var(--hr-coral); color: #FFFFFF !important; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .dp-floating-btns { display: none !important; }
  body #back-to-top.dp-back-to-top-hover { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
