/* Rexus v22: Obsidian + Champagne visual layer.
   This file intentionally changes presentation only. Media, content, forms,
   scripts, routes, and integrations remain owned by the v20 baseline. */

:root {
  color-scheme: dark;
  --ink: #070807;
  --bg: #070807;
  --surface: #151713;
  --surface2: #1e211c;
  --text: #f4f1e8;
  --muted: #b7bdb7;
  --line: rgba(214, 182, 117, .22);
  --accent: #d6b675;
  --accent2: #b99b62;
  --tint: rgba(214, 182, 117, .10);
  --service-icon-tint: rgba(214, 182, 117, .13);
  --shadow: 0 18px 48px rgba(0, 0, 0, .42);
}

body {
  background:
    radial-gradient(circle at 82% 8%, rgba(214, 182, 117, .055), transparent 31rem),
    var(--bg);
}

::selection { background: rgba(214, 182, 117, .30); color: var(--text); }

.site-header {
  height: 93px;
  background: rgba(7, 8, 7, .96);
  border-bottom-color: rgba(214, 182, 117, .22);
}

.header-inner { height: 92px; }
.brand { gap: 13px; }

.site-header .brand-mark {
  width: 72px;
  height: 72px;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.site-header .brand-mark .rx-mark-img,
.site-header .brand img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  animation: none !important;
  filter: none;
}

.brand-copy strong { color: var(--text); font-size: 19px; letter-spacing: -.02em; }
.brand-copy small { color: var(--muted); }

.mega-menu,
.primary-nav,
.media-badge {
  background-color: #10120f;
}

.mega-menu,
.primary-nav.open {
  border-color: rgba(214, 182, 117, .22);
}

.nav-link:hover,
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"],
.mega-menu a:hover { background: rgba(214, 182, 117, .10); }

.btn-primary {
  color: #090a08;
  background: linear-gradient(120deg, #e3ca92, var(--accent) 48%, var(--accent2));
  box-shadow: 0 12px 30px rgba(185, 155, 98, .20);
}

.btn-primary:hover { box-shadow: 0 15px 36px rgba(214, 182, 117, .27); }

.btn-outline {
  background: rgba(21, 23, 19, .82);
  border-color: rgba(214, 182, 117, .24);
}

.btn-outline:hover {
  background: #22251f;
  border-color: rgba(214, 182, 117, .58);
}

.language .active,
.filter-button.active,
.plan-card .ribbon,
.skip,
.skip-link { color: #090a08; }

.hero {
  background: radial-gradient(ellipse at 70% 70%, #23231d 0, transparent 55%), #0b0c0a;
}

.hero::after {
  background: linear-gradient(90deg, rgba(7, 8, 7, .88), rgba(7, 8, 7, .34));
}

.hero-description,
.page-hero p { color: #c8cbc4; }

.hero-frame {
  border-color: rgba(214, 182, 117, .24);
  background: rgba(18, 19, 16, .84);
}

.carousel { background: var(--surface2); }
.media-badge { border-color: rgba(214, 182, 117, .24); }

.trust-band,
.quick-answer {
  background: #121410;
  border-color: rgba(214, 182, 117, .16);
}

.service-card {
  background: linear-gradient(150deg, #23251f, #10120f);
}

.service-card::after {
  background: linear-gradient(90deg, rgba(8, 9, 7, .88), rgba(8, 9, 7, .50));
}

.service-card .icon-box { background: rgba(214, 182, 117, .13); }
.service-card p,
.commitment-card p { color: #c5c8c1; }

.service-card:hover,
.faq-list details[open] {
  border-color: rgba(214, 182, 117, .62);
}

.soft { background: rgba(214, 182, 117, .026); }

.audience-card,
.plan-card,
.commitment-card,
.feature-card,
.problem-card,
.quote-form,
.gallery-card,
.blog-card,
.faq-list details,
.area-chips a,
.filter-button,
.map-frame,
.brand-tile {
  background: var(--surface);
}

.metric { background: rgba(13, 14, 12, .93); }

.plan-card.featured {
  box-shadow: 0 16px 48px rgba(214, 182, 117, .10);
}

.page-hero {
  background: radial-gradient(ellipse at 60% 10%, #28271f, transparent 65%), #0d0e0c;
}

.cta-box {
  border-color: rgba(214, 182, 117, .28);
  background: linear-gradient(125deg, #24251f, #171916);
}

.system-visual {
  background: linear-gradient(145deg, #20221c, #0d0f0c);
  border-color: rgba(214, 182, 117, .23);
}

.support-callout { background: var(--surface2); }
.system-cover { background: radial-gradient(ellipse at 50% 35%, #292820, #10120f); }

.field input,
.field select,
.field textarea {
  background: #0d0f0c;
  border-color: rgba(214, 182, 117, .22);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(214, 182, 117, .10);
}

.consultation-callout {
  border-color: rgba(214, 182, 117, .28);
  background: rgba(214, 182, 117, .08);
}

.gallery-image .tag { background: rgba(8, 9, 7, .92); }

.site-footer {
  background: #050605;
  border-top-color: rgba(214, 182, 117, .20);
}

.fab.whatsapp {
  background: #b99b62;
  color: #090a08;
}

.fab.quote {
  background: #d6b675;
  color: #090a08;
}

.icon-box,
.text-link,
.learn,
.accent,
.eyebrow,
.footer-contact svg,
.header-support svg,
.check-list svg,
.system-node > svg,
.breadcrumb a:hover,
.footer-links a:hover,
.contact-row a:hover { color: var(--accent); }

.eyebrow,
.consultation-callout,
.cta-box { border-color: rgba(214, 182, 117, .28); }

.single-hero-image::after {
  background: linear-gradient(150deg, rgba(30, 31, 26, .10), rgba(8, 9, 7, .20) 55%, rgba(5, 6, 5, .67));
}

@media (max-width: 1100px) {
  .primary-nav { top: 92px; background: #10120f; }
}

@media (max-width: 560px) {
  .site-header { height: 79px; }
  .header-inner { height: 78px; }
  .primary-nav { top: 78px; }
  .site-header .brand-mark { width: 60px !important; height: 60px !important; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 9px; }
}


/* Shared colors sampled from the architectural concepts. */
:root {
  --ink: #080f13;
  --bg: #080f13;
  --surface: #111d21;
  --surface2: #1a292e;
  --text: #f1f1ec;
  --muted: #b9c4c5;
  --accent: #dbc19a;
  --accent2: #8fbfc0;
  --line: rgba(143, 191, 192, .24);
}

.site-header, .primary-nav.open, .site-footer { background-color: #080f13; border-color: var(--line); }
.service-card { background: var(--surface); border-color: var(--line); }
.service-card .icon-box { background: var(--service-icon-tint); color: var(--accent2); }
.btn-primary { background: var(--accent); color: #131514; }
.btn-outline { border-color: var(--accent2); }

.hero-reel-toggle {
  display: inline-block;
  margin-top: .75rem;
  padding: .48rem .8rem;
  border: 1px solid var(--accent2);
  border-radius: .35rem;
  background: #080f13;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.hero-reel-toggle[hidden] { display: none; }
.hero-reel-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.rx-property {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(28rem, 46vw, 43rem);
  overflow: hidden;
  background: var(--bg);
  border-block-start: 1px solid var(--line);
}

.rx-property-art, .rx-property::after { position: absolute; inset: 0; z-index: -1; }

.rx-property-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 55%;
}

.rx-property::after {
  content: "";
  background: linear-gradient(90deg, #080f13 0%, rgba(8, 15, 19, .92) 31%, rgba(8, 15, 19, .18) 73%);
}

.rx-property--building::after {
  background: linear-gradient(270deg, #080f13 0%, rgba(8, 15, 19, .92) 31%, rgba(8, 15, 19, .18) 73%);
}

.rx-property-inner { padding-block: clamp(2.5rem, 5vw, 5rem); }
.rx-property--building .rx-property-inner { text-align: right; }
.rx-property h2 { font-size: clamp(2rem, 4vw, 3.75rem); color: var(--text); }
.rx-property p { max-width: 32ch; margin-block: .85rem 1.4rem; color: var(--text); }
.rx-property--building p { margin-inline-start: auto; }
.rx-property small { display: block; margin-top: .75rem; color: var(--muted); }

.rexus-architecture-gallery {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  background: var(--surface);
}
.rexus-architecture-gallery h2 { margin-block: .65rem 1.25rem; }
.rx-architecture-kicker { color: var(--accent2); }
.rx-architecture-grid { max-width: 560px; }
.rx-architecture-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; }
.rx-architecture-grid img { display: block; width: 100%; height: auto; }
.rx-architecture-grid figcaption { padding: .8rem 1rem; color: var(--text); }
.rx-architecture-grid figcaption span { color: var(--muted); }

@media (max-width: 760px) {
  .rx-property { align-items: end; min-height: 31rem; }
  .rx-property-art img { object-position: 58% 42%; }
  .rx-property--building .rx-property-art img { object-position: 39% 42%; }
  .rx-property::after, .rx-property--building::after {
    background: linear-gradient(0deg, #080f13 4%, rgba(8, 15, 19, .95) 31%, rgba(8, 15, 19, .08) 76%);
  }
  .rx-property--building .rx-property-inner { text-align: left; }
  .rx-property--building p { margin-inline-start: 0; }
}

/* The logo trace follows the existing mark and ends after one pass. */
.site-header .brand-mark { animation: none; position: relative; }
.rx-logo-trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rx-logo-trace path { fill: none; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.rx-logo-trace .rx-logo-building { stroke: #dbc19a; filter: drop-shadow(0 0 1.5px rgba(219, 193, 154, .75)); animation: rx-mark-trace 1.45s .2s ease-out both; }
.rx-logo-trace .rx-logo-circuit { stroke: #8fbfc0; filter: drop-shadow(0 0 1.5px rgba(143, 191, 192, .75)); animation: rx-mark-trace 1.05s 1.1s ease-out both; }
@keyframes rx-mark-trace {
  0% { opacity: 0; stroke-dashoffset: 100; }
  12% { opacity: .9; }
  78% { opacity: .8; stroke-dashoffset: 0; }
  100% { opacity: 0; stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) { .rx-logo-trace { display: none; } }

.floating-contact .rx-ask-rex {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  width: auto; min-height: 44px; padding: 0 .9rem; border: 1px solid #8fbfc0;
  border-radius: 24px; color: #f1f1ec; background: #111d21; font: 600 .82rem var(--font-sans, sans-serif); cursor: pointer;
  box-shadow: 0 6px 20px rgb(8 15 19 / 35%);
}
.rx-ask-rex svg { width: 18px; height: 18px; flex: none; color: #8fbfc0; }
.floating-contact .rx-ask-rex:hover { background: #1a2a30; }
.rx-ask-rex:focus-visible, .rx-rex-panel button:focus-visible { outline: 2px solid #dbc19a; outline-offset: 3px; }
.rx-rex-panel {
  width: min(29rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); margin: auto;
  padding: 1rem; border: 1px solid #8fbfc0; border-radius: 1rem; background: #111d21; color: #f1f1ec;
  box-shadow: 0 20px 70px rgb(0 0 0 / 45%);
}
.rx-rex-panel::backdrop { background: rgba(8, 15, 19, .73); }
.rx-rex-panel header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.rx-rex-panel h2 { font-size: 1.25rem; margin: 0; }
.rx-rex-panel button { min-width: 44px; min-height: 44px; color: inherit; background: transparent; border: 1px solid #8fbfc0; border-radius: .45rem; cursor: pointer; }
.rx-rex-panel p { margin: .75rem 0; }
.rx-rex-panel a { color: #dbc19a; text-decoration: underline; }
.rx-rex-panel elevenlabs-convai { display: block; margin-top: .75rem; }

.floating-contact.fc-away:has(.rx-ask-rex) { opacity: 1; transform: none; }
.floating-contact.fc-away:has(.rx-ask-rex) .fab { display: none; }
.floating-contact .rx-ask-rex { pointer-events: auto; }

/* Use the display face for major headings and the reading face for smaller ones. */
:is(h3, h4, h5, h6) { font-family: var(--font-body); }
