/* ═══════════════════════════════════════════════════
   MARKET CONNECT REALTY - BRAND SYSTEM v3.2
   Design reference: https://www.elliman.com/
   ═══════════════════════════════════════════════════ */

/* ── COLOR TOKENS ───────────────────────────────── */
:root {
  --mcr-black:        #0A0A0C;
  --mcr-royal:        #1E3A8A;
  --mcr-platinum:     #C0C4CC;
  --mcr-white:        #FFFFFF;
  --mcr-ink-soft:     #141418;
  --mcr-ink-line:     #23232A;
  --mcr-royal-hi:     #2B4FC9;
  --mcr-royal-glow:   rgba(43,79,201,0.35);
  --mcr-royal-tint:   rgba(30,58,138,0.08);
  --mcr-platinum-2:   #B8BCC4;
  --mcr-paper:        #F6F4EF;
  --mcr-paper-2:      #EFEBE3;
  --mcr-dark-text:    #1A1A1A;
  --mcr-mid-text:     #555555;
  --mcr-muted-text:   #8A8680;
  --mcr-line-light:   #DEDBD2;
  --mcr-line-ultra:   #E5E3DD;
  --mcr-success:      #1E8A3A;
  --mcr-warning:      #C28B1E;
  --mcr-error:        #C2362F;

  /* ── TYPOGRAPHY ── */
  --font-display: "Playfair Display", Georgia, serif;
  
  --font-sans:    "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── SPACING ── */
  --space-section-sm:  96px;
  --space-section:     160px;
  --space-section-lg:  240px;
  --space-section-xl:  320px;
  --container-max:     1440px;
  --container-tight:   1200px;
  --container-narrow:  880px;
  --gutter-desktop:    48px;
  --gutter-tablet:     32px;
  --gutter-mobile:     20px;

  /* ── RADII - ZERO RADIUS RULE ── */
  --radius:      0;
  --radius-sm:   0;
  --radius-md:   0;
  --radius-lg:   0;
  --radius-full: 9999px;

  /* ── BORDERS ── */
  --border-hairline: 1px solid var(--mcr-line-light);
  --border-platinum: 1px solid var(--mcr-platinum);
  --border-dark:     1px solid var(--mcr-ink-line);

  /* ── SHADOWS ── */
  --shadow-none:   none;
  --shadow-subtle: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover:  0 12px 40px rgba(0,0,0,0.08);
}

/* ── GLOBAL RESET OVERRIDES ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.002em;
  color: var(--mcr-dark-text);
  background: var(--mcr-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ZERO RADIUS - hard rule */
button, .btn, .card, input, textarea, select,
.elementor-widget-container, .wp-block,
img:not(.mcr-avatar) {
  border-radius: 0 !important;
}
.mcr-avatar { border-radius: var(--radius-full); }

/* NO GRADIENTS - enforced */
/* ITEM 5a - NO-GRADIENT ENFORCEMENT REMOVED 2026-07-03.
   Universal `* { background-image: none !important }` broke Showcase carousel.
   Scoped variant also broke it. Enforcing gradient ban via design review going forward.
   The specific overlays below still have their own explicit rules. */
.mcr-hero-overlay,
.mcr-hero-scrim {
  background-image: none !important;
  background: rgba(0,0,0,0.25) !important;
}

/* ── TYPOGRAPHY SCALE ────────────────────────────── */
.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero-headline--caps {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(3rem, 6vw, 6rem);
}

h1, .h1 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
h2, .h2 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(2.25rem, 3.5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h3, .h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.2;
}
h4, .h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.3;
}
p, li { max-width: 68ch; }

.editorial-lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--mcr-dark-text);
  max-width: 44ch;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mcr-muted-text);
}
nav a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── LAYOUT ──────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter-desktop);
  padding-right: var(--gutter-desktop);
}
.container--tight  { max-width: var(--container-tight); margin: 0 auto; padding-left: var(--gutter-desktop); padding-right: var(--gutter-desktop); }
.container--narrow { max-width: var(--container-narrow); margin: 0 auto; padding-left: var(--gutter-desktop); padding-right: var(--gutter-desktop); }

section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
section.section--hero    { padding: 0; }
section.section--editorial { padding: var(--space-section-lg) 0; }

.mcr-hero {
  height: 100vh;
  min-height: 680px;
  max-height: 1080px;
  position: relative;
  overflow: hidden;
}

/* ── EDITORIAL PULL PARAGRAPH ────────────────────── */
.editorial-lead-section {
  padding: var(--space-section-lg) 0;
  background: var(--mcr-paper);
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: var(--mcr-royal);
  color: var(--mcr-white);
  border: none;
  border-radius: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 200ms ease;
}
.btn-primary:hover { background: var(--mcr-royal-hi); color: var(--mcr-white); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: transparent;
  background-image: none;
  color: var(--mcr-dark-text);
  border: 1px solid var(--mcr-dark-text);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn-ghost:hover {
  background: var(--mcr-dark-text);
  color: var(--mcr-white);
  border-color: var(--mcr-dark-text);
}

/* Ghost button on a dark/photographic ground (hero overlays). */
.btn-ghost--invert {
  color: var(--mcr-white);
  border-color: var(--mcr-white);
}
.btn-ghost--invert:hover {
  background: var(--mcr-white);
  color: var(--mcr-black);
  border-color: var(--mcr-white);
}

/* ── FOCUS RING ──────────────────────────────────
   Royal is reserved for primary CTA, active nav underline, and this ring. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--mcr-royal);
  outline-offset: 2px;
}

/* ── DISABLED STATE ──────────────────────────────── */
.btn-primary[disabled],
.btn-ghost[disabled],
.btn-primary[aria-disabled="true"],
.btn-ghost[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}
