/* ══════════════════════════════════════════════════════════════════════
   APEX FOUR VENTURES — BASE COMPONENTS
   Reset, buttons, cards, forms, navigation, dropdowns, tables, chips and
   utilities shared by the website, the client portal, /pay and /verify.
   Colours and sizes come from tokens.css (loaded first). Page layouts live in
   site.css (website) and portal/portal.css (portal).
   Part 1 is the original component layer; part 2 refines it (flat, compact
   cards, system fonts) and wins where both style the same thing.
   ══════════════════════════════════════════════════════════════════════ */

/* ─────────────── Part 1 · components ─────────────── */
/* Web fonts removed: the theme uses the system font stack (faster first paint). */

/* ── Reset & Fundamentals ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.68;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--claude-clay);
  border-radius: 4px;
}

/* ── THEME TOKENS ── */

/* ── Typography Utility (Claude Literary Pairing) ── */
h1, h2, h3, h4, .serif-font {
  font-family: 'Newsreader', 'Playfair Display', Georgia, serif;
  font-weight: 500;
  color: var(--heading);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.sans-font {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.mono-font {
  font-family: 'DM Mono', monospace;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--claude-clay);
  margin-bottom: 12px;
}

.eyebrow-blue {
  color: var(--claude-clay);
}

.eyebrow::before {
  content: '✦';
  display: inline-block;
  font-size: 0.8rem;
  color: var(--claude-clay);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-navy {
  background-color: var(--bg-navy-panel);
  color: var(--text-navy-panel);
  border-top: 1px solid var(--border-navy);
  border-bottom: 1px solid var(--border-navy);
}

.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 {
  color: #faf8f5;
}

/* ── TOP UTILITY BAR (Claude Refined Editorial) ── */
.top-utility-bar {
  background-color: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.top-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.utility-left {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.utility-item .dot {
  width: 7px;
  height: 7px;
  background-color: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
  animation: dotPulse 2s infinite ease-in-out;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.utility-link {
  color: var(--text-muted);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.utility-link:hover {
  color: var(--claude-clay);
  transform: translateY(-1px);
}

/* ── HEADER / NAVIGATION (Claude Floating Minimalist Nav with Generous Breathing Room) ── */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 6px 0;
}

[data-theme="light"] .main-header {
  background-color: rgba(250, 248, 245, 0.94);
  box-shadow: 0 4px 20px rgba(40, 30, 20, 0.03);
}
[data-theme="dark"] .main-header {
  background-color: rgba(20, 19, 18, 0.94);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 28px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.25s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

.brand-symbol {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.brand-logo:hover .brand-symbol {
  box-shadow: 0 0 16px var(--claude-clay-glow);
  border-color: var(--claude-clay);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Newsreader', serif;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--heading);
  line-height: 1.15;
}

.brand-tagline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--claude-clay);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-link-item {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  position: relative;
  padding: 8px 0;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--claude-clay);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.nav-link-item:hover {
  color: var(--claude-clay);
  transform: translateY(-1px);
}

.nav-link-item:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle-btn:hover {
  border-color: var(--claude-clay);
  color: var(--claude-clay);
  background: var(--bg-surface);
  transform: rotate(20deg) scale(1.08);
  box-shadow: 0 4px 14px var(--claude-clay-glow);
}

.theme-toggle-btn:active {
  transform: scale(0.92);
}

.mobile-menu-toggle {
  display: none;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  color: var(--heading);
  font-size: 1.3rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.mobile-menu-toggle:hover {
  border-color: var(--claude-clay);
  color: var(--claude-clay);
  transform: scale(1.05);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

/* ── GOOGLE MATERIAL ICONS / MATERIAL SYMBOLS ── */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga';
  vertical-align: middle;
  transition: transform 0.25s ease;
}

.btn:hover .material-symbols-outlined {
  transform: scale(1.1);
}

/* ── CLAUDE AI BUTTONS WITH PHYSICS ANIMATIONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.96) !important;
}

.btn-primary, .btn-gold {
  background-color: var(--claude-clay);
  color: #ffffff;
  border-color: var(--claude-clay);
  box-shadow: 0 3px 12px var(--claude-clay-glow);
}

.btn-primary:hover, .btn-gold:hover {
  background-color: var(--claude-clay-h);
  border-color: var(--claude-clay-h);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--claude-clay-glow);
  color: #ffffff;
}

.btn-navy {
  background-color: var(--heading);
  color: var(--bg);
  border-color: var(--heading);
}

.btn-navy:hover {
  background-color: #2c2a26;
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-dark);
  color: var(--heading);
}

.btn-outline:hover {
  border-color: var(--claude-clay);
  color: var(--claude-clay);
  background-color: var(--claude-clay-soft);
  transform: translateY(-2px);
}

.btn-white {
  background-color: #ffffff;
  color: #191816;
  border-color: #ffffff;
}

.btn-white:hover {
  background-color: #f4f0e8;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 0.96rem;
}

/* ── HERO SECTION (Claude Editorial Canvas) ── */
.hero-section {
  position: relative;
  padding: 80px 0 60px;
  background: radial-gradient(circle at 85% 15%, rgba(212, 98, 56, 0.06), transparent 45%),
              radial-gradient(circle at 10% 85%, rgba(197, 155, 39, 0.05), transparent 40%),
              var(--bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.9rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--heading);
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

.hero-title .serif-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--claude-clay);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-card-side {
  position: relative;
}

.hero-luxury-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-luxury-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--claude-clay), var(--gold));
}

.card-header-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.entity-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  font-size: 0.84rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 700;
}

.spec-value {
  font-weight: 600;
  color: var(--heading);
  margin-top: 2px;
}

.spec-value.highlight {
  color: var(--claude-clay);
}

/* ── CLAUDE AI INTERACTIVE PROMPT & CONSOLE BAR ── */
.claude-prompt-wrapper {
  margin-top: -30px;
  margin-bottom: 60px;
  position: relative;
  z-index: 20;
}

.claude-prompt-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
}

.claude-prompt-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 20px;
  transition: all 0.2s ease;
}

.claude-prompt-input-row:focus-within {
  border-color: var(--claude-clay);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--claude-clay-glow);
}

.claude-prompt-icon {
  font-size: 1.2rem;
  color: var(--claude-clay);
  flex-shrink: 0;
}

.claude-prompt-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--heading);
  font-weight: 500;
}

.claude-prompt-input::placeholder {
  color: var(--text-dim);
}

.claude-chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.claude-chip-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 4px;
}

.claude-prompt-chip {
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.claude-prompt-chip:hover {
  background-color: var(--claude-clay-soft);
  border-color: var(--claude-clay);
  color: var(--claude-clay);
}

/* Claude Response Bubble */
.claude-response-card {
  margin-top: 18px;
  padding: 20px;
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.65;
  display: none;
  animation: fadeIn 0.3s ease;
}

.claude-response-card.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── SEARCH & SOLUTIONS CONSOLE (Claude Tabbed) ── */
.search-console-wrapper {
  position: relative;
  z-index: 10;
  margin-bottom: 40px;
}

.search-console-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.console-tabs {
  display: flex;
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.console-tabs::-webkit-scrollbar {
  display: none;
}

.console-tab-btn {
  flex: 1;
  min-width: 170px;
  padding: 16px 20px;
  border: none;
  background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  position: relative;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

.console-tab-btn:last-child {
  border-right: none;
}

.console-tab-btn:hover {
  color: var(--heading);
  background-color: rgba(255, 255, 255, 0.4);
}

.console-tab-btn.active {
  color: var(--claude-clay);
  background-color: var(--bg-surface);
}

.console-tab-btn.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--claude-clay);
}

.console-pane {
  display: none;
  padding: 28px;
}

.console-pane.active {
  display: block;
}

.console-form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 16px;
  align-items: flex-end;
}

@media (max-width: 1024px) {
  .console-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .console-form-grid {
    grid-template-columns: 1fr;
  }
}

.console-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.console-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.console-input, .console-select {
  width: 100%;
  padding: 11px 14px;
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
}

.console-input:focus, .console-select:focus {
  border-color: var(--claude-clay);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--claude-clay-glow);
}

/* ── METRICS STRIP (Claude Clean Stats) ── */
.metrics-strip {
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-surface);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.metric-card {
  text-align: left;
  border-left: 2px solid var(--claude-clay);
  padding-left: 20px;
}

.metric-number {
  font-family: 'Newsreader', serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1;
}

.metric-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-top: 6px;
}

.metric-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── 4-PILLARS OF EXCELLENCE (Claude Warm Cards with 3D Tilt & Glare) ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  perspective: 1200px;
}

.pillar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.28s ease,
              border-color 0.28s ease,
              background-color 0.3s ease;
  cursor: default;
}

/* Subtle Interactive Glare Sheen */
.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(212, 98, 56, 0.12),
    transparent 45%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.pillar-card:hover::before {
  opacity: 1;
}

/* Subtle top border accent line */
.pillar-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--claude-clay), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.pillar-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.pillar-card:hover {
  transform: translateY(-8px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  box-shadow: 0 16px 36px -12px var(--claude-clay-glow), 0 4px 16px var(--shadow-sm);
  border-color: var(--claude-clay);
}

.pillar-num {
  font-family: 'Newsreader', serif;
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--border-dark);
  line-height: 1;
  margin-bottom: 14px;
  transition: color 0.3s ease, transform 0.3s ease;
  transform: translateZ(24px);
  position: relative;
  z-index: 3;
}

.pillar-card:hover .pillar-num {
  color: var(--claude-clay);
  transform: translateZ(28px) scale(1.03);
}

.pillar-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--claude-clay);
  transform: translateZ(30px);
  position: relative;
  z-index: 3;
}

.pillar-icon img, .pillar-icon svg {
  width: 36px;
  height: 36px;
  display: block;
  transition: transform 0.3s ease;
}

.pillar-card:hover .pillar-icon {
  transform: translateZ(36px) translateY(-3px) scale(1.08);
  border-color: var(--claude-clay);
  box-shadow: 0 8px 22px var(--claude-clay-glow);
  background-color: var(--bg-surface);
}

.pillar-card:hover .pillar-icon img,
.pillar-card:hover .pillar-icon svg {
  transform: scale(1.05);
}

.pillar-title {
  font-size: 1.24rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--heading);
  transform: translateZ(20px);
  position: relative;
  z-index: 3;
  transition: color 0.25s ease;
}

.pillar-card:hover .pillar-title {
  color: var(--claude-clay);
}

.pillar-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
  transform: translateZ(14px);
  position: relative;
  z-index: 3;
}

.pillar-features {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateZ(18px);
  position: relative;
  z-index: 3;
}

.pillar-card .btn {
  transform: translateZ(24px);
  position: relative;
  z-index: 3;
  align-self: flex-start;
}

.pillar-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-features li::before {
  content: '✓';
  color: var(--emerald);
  font-weight: 700;
}

/* ── INTERACTIVE GIS & CADASTRAL MAP SECTION ── */
.map-stage-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 14px;
}

.map-layers-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.layer-chip {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.layer-chip:hover {
  border-color: var(--claude-clay);
  color: var(--heading);
}

.layer-chip.active {
  background-color: var(--claude-clay);
  border-color: var(--claude-clay);
  color: #ffffff;
}

.map-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  height: 520px;
}

#gis-map-canvas {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-info-panel {
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.parcel-meta-table {
  width: 100%;
  font-size: 0.82rem;
  border-collapse: collapse;
  margin: 16px 0;
}

.parcel-meta-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.parcel-meta-table td:first-child {
  color: var(--text-dim);
}

.parcel-meta-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--heading);
}

/* ── INSTANT LAND & PROJECT COST ESTIMATOR ── */
.estimator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.estimator-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
}

.estimator-result-card {
  background-color: var(--bg-navy-panel);
  color: #faf8f5;
  border-radius: var(--radius-lg);
  padding: 34px;
  border: 1px solid var(--border-navy);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}

.price-display {
  font-family: 'Newsreader', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin: 14px 0 8px;
}

.estimate-breakdown-list {
  list-style: none;
  font-size: 0.85rem;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.estimate-breakdown-list li {
  display: flex;
  justify-content: space-between;
  color: #d6d0c7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

/* ── FEATURED PORTFOLIO ── */
.portfolio-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--claude-clay);
  color: var(--heading);
}

.filter-btn.active {
  background-color: var(--claude-clay);
  border-color: var(--claude-clay);
  color: #ffffff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--claude-clay);
}

.portfolio-media {
  position: relative;
  height: 220px;
  background-color: #191816;
  overflow: hidden;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(25, 24, 22, 0.88);
  backdrop-filter: blur(8px);
  color: #faf8f5;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.portfolio-coords {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(25, 24, 22, 0.88);
  color: var(--gold);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
}

.portfolio-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-title {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--heading);
}

.portfolio-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.portfolio-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.ps-item {
  color: var(--text);
}
.ps-item strong {
  color: var(--heading);
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── LEADERSHIP & DIRECTORS ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.team-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: left;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--claude-clay);
}

.team-photo-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
  background-color: var(--bg-alt);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.team-card:hover .team-photo {
  transform: scale(1.04);
}

.team-role-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(25, 24, 22, 0.9);
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-info {
  padding: 20px;
}

.team-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 4px;
}

.team-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.team-contact-row {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

/* ── RESOURCE LIBRARY & KNOWLEDGE HUB ── */
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.library-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.library-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--claude-clay);
}

.library-type {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--claude-clay);
  margin-bottom: 10px;
}

.library-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 12px;
  line-height: 1.35;
}

.library-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  flex: 1;
}

/* ── OFFICIAL RECEIPT & INVOICE BOOK PWA SPOTLIGHT ── */
.pwa-banner-card {
  background: linear-gradient(135deg, #191816 0%, #282622 100%);
  border-radius: var(--radius-lg);
  padding: 44px;
  color: #faf8f5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.pwa-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 26px;
}

.pwa-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: #d6d0c7;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
}

/* ── CONTACT & APPRAISAL BOOKING ── */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.contact-info-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.contact-direct-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.contact-direct-item:last-child {
  border-bottom: none;
}

.direct-icon {
  width: 42px;
  height: 42px;
  background-color: var(--claude-clay-soft);
  color: var(--claude-clay);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.direct-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 700;
}

.direct-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  margin-top: 2px;
}

.booking-form-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--heading);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--heading);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--claude-clay);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--claude-clay-glow);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* ── FOOTER ── */
.main-footer {
  background-color: #141312;
  color: #a39d93;
  padding: 75px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px;
  margin-bottom: 50px;
}

.footer-col-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #faf8f5;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.88rem;
}

.footer-links a {
  color: #a39d93;
}

.footer-links a:hover {
  color: var(--claude-clay);
}

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
}

/* ── FLOATING WHATSAPP & LIVE INTERACTION BAR ── */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 1px rgba(255,255,255,0.2) inset;
  z-index: 990;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.floating-whatsapp .material-symbols-outlined {
  font-size: 28px;
  color: #ffffff;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55), 0 0 0 2px rgba(255,255,255,0.4) inset;
  color: #ffffff;
}

.floating-whatsapp:hover .material-symbols-outlined {
  transform: rotate(-8deg) scale(1.08);
}

.whatsapp-ping-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: #22c55e;
  border: 2.5px solid var(--bg-surface, #ffffff);
  border-radius: 50%;
}

.whatsapp-ping-badge::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.6);
  animation: pingRing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingRing {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: #141312;
  color: #faf8f5;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-whatsapp:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ── LIVE TELEMETRY & HARARE RADAR BAR ── */
.live-telemetry-strip {
  background: var(--bg-navy-panel, #191816);
  color: var(--text-navy-panel, #faf8f5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.76rem;
  padding: 6px 0;
  overflow: hidden;
  position: relative;
  z-index: 100;
}

.telemetry-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: radarBlink 1.6s infinite ease-in-out;
}

@keyframes radarBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Hero Canvas Background */
.hero-section {
  position: relative;
  overflow: hidden;
}

#hero-geospatial-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

[data-theme="dark"] #hero-geospatial-canvas {
  opacity: 0.55;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Interactive Ripple on Buttons */
.btn {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 19, 18, 0.82);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-dialog {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--heading);
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background-color: var(--claude-clay);
  color: #ffffff;
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background-color: #191816;
  color: #faf8f5;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── RESPONSIVE MEDIA QUERIES ── */
@media (max-width: 1100px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .map-layout-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  #gis-map-canvas {
    height: 380px;
  }
  .estimator-grid {
    grid-template-columns: 1fr;
  }
  .pwa-banner-card {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .library-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Mobile Drawer */
#mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: var(--bg);
  padding: 24px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

#mobile-drawer.open {
  display: flex;
}

/* ══════════════════════════════════════════════════════════════
   GLOBAL ANIMATIONS & MICRO-INTERACTIONS
   ══════════════════════════════════════════════════════════════ */

/* Entrance Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 10px var(--claude-clay-glow);
  }
  50% {
    box-shadow: 0 0 24px var(--claude-clay-glow), 0 0 36px rgba(212, 98, 56, 0.2);
  }
}

@keyframes shimmerEffect {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

/* Universal Animation Utility Classes */
.animate-fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
  animation: floatSlow 5s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 3s infinite ease-in-out;
}

/* Card Interactive Lifts & Hover Elevations across the app */
.service-card,
.portfolio-card,
.director-card,
.resource-card,
.hero-luxury-card,
.search-console-card,
.claude-prompt-card,
.pwa-banner-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

.service-card:hover,
.portfolio-card:hover,
.director-card:hover,
.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--claude-clay);
}

/* Interactive Map Toolbar Buttons */
.map-tool-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-tool-btn:active {
  transform: scale(0.95);
}

/* Estimator inputs and sliders */
.estimator-calc-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.estimator-calc-card:hover {
  box-shadow: 0 16px 48px var(--shadow-clay);
}

/* Badges pulse on hover */
.eyebrow, .badge {
  transition: transform 0.25s ease;
}

.eyebrow:hover {
  transform: translateX(3px);
}

/* Modal Dialog Scale Entrance */
.modal-overlay.open .modal-dialog {
  animation: fadeInScale 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ─────────────── Part 2 · refinements ─────────────── */
:root, [data-theme="light"] { color-scheme: light; }

[data-theme="dark"] { color-scheme: dark; }

/* ── Typography: system font stack, flat & bold ── */
body, button, input, select, textarea, .btn, .eyebrow, .sans-font {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}
h1, h2, h3, h4, .serif-font, .metric-number, .price-display, .brand-name, .hero-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}
.serif-italic, h1 em, h2 em, h1 i, h2 i {
  font-family: inherit !important;
  font-style: normal;
  color: var(--fb-blue);
}
body { line-height: 1.5; }
.eyebrow { color: var(--fb-blue); letter-spacing: 0.06em; font-weight: 700; }
.eyebrow-blue { color: var(--fb-blue); }

/* ── Header: white bar, shadow, blue accents ── */
.top-utility-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.main-header {
  background: var(--bg-surface);
  border-bottom: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.brand-symbol { border-radius: 50%; box-shadow: none; }
.brand-name { color: var(--fb-blue) !important; font-size: 1.25rem; }
.brand-tagline { color: var(--text-muted); letter-spacing: 0.04em; }
.nav-link-item {
  color: var(--text-muted);
  font-weight: 600;
  border-radius: 6px;
}
.nav-link-item:hover { background: var(--fb-hover); color: var(--text); }
.nav-link-item.active { color: var(--fb-blue); box-shadow: inset 0 -3px 0 var(--fb-blue); border-radius: 0; }
.theme-toggle-btn, .mobile-menu-toggle {
  background: var(--fb-btn2);
  border: none;
  color: var(--text);
  border-radius: 50%;
}
.theme-toggle-btn:hover, .mobile-menu-toggle:hover { background: var(--fb-btn2-h); }

/* ── Buttons ── */
.btn { border-radius: 6px; font-weight: 600; letter-spacing: 0; box-shadow: none; transform: none !important; }
.btn-primary, .btn-gold {
  background: var(--fb-blue-fill);
  border-color: var(--fb-blue-fill);
  color: #ffffff !important;
  box-shadow: none;
}
.btn-primary:hover, .btn-gold:hover { background: var(--fb-blue-fill-h); border-color: var(--fb-blue-fill-h); }
.btn-primary .material-symbols-outlined, .btn-gold .material-symbols-outlined { color: #ffffff; }
.btn-navy, .btn-outline, .btn-white {
  background: var(--fb-btn2);
  border-color: transparent;
  color: var(--text);
}
.btn-navy:hover, .btn-outline:hover, .btn-white:hover { background: var(--fb-btn2-h); color: var(--text); }

/* ── Hero: plain canvas, white card ── */
.hero-section {
  background: var(--bg);
  padding: 72px 0 56px;
}
.hero-title { font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.1; letter-spacing: -0.02em; }
.hero-subtitle { color: var(--text-muted); }
.hero-luxury-card, .card-header-badge { box-shadow: var(--shadow-sm); }
.hero-luxury-card { background: var(--bg-surface); border: none; }
.card-header-badge { background: #e6f4ea; color: #1e7e34; border: none; box-shadow: none; }
[data-theme="dark"] .card-header-badge { background: rgba(69, 189, 98, 0.15); color: #45bd62; }

/* ── Cards everywhere: white, 8px, soft shadow, no borders ── */
.claude-prompt-card, .search-console-card, .estimator-card, .booking-form-card,
.contact-info-card, .map-stage-wrapper, .claude-response-card,
.pillar-card, .portfolio-card, .team-card, .library-card, .metric-card,
.pwa-banner-card, .estimator-result-card {
  background: var(--bg-surface) !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: var(--shadow-sm) !important;
  backdrop-filter: none;
}
.pillar-card:hover, .portfolio-card:hover, .team-card:hover, .library-card:hover {
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}
.pillar-card::before, .pillar-card::after { display: none; }
.pillar-num { color: var(--text-dim); }
.pillar-icon { background: var(--fb-blue-soft); border: none; border-radius: 50%; box-shadow: none; }
.pillar-features li::marker, .pillar-features li::before { color: var(--fb-blue); }

.estimator-result-card, .estimator-result-card * { color: var(--text); }
.price-display { color: var(--fb-blue) !important; }
.metric-number { color: var(--fb-blue); }

/* Inputs: grey pill-ish fields like a search box */
.console-input, .console-select, .form-control, .claude-prompt-input-row {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  color: var(--text) !important;
}
.claude-prompt-input-row { border-radius: 50px !important; }
.console-input:focus, .console-select:focus, .form-control:focus, .claude-prompt-input-row:focus-within {
  border-color: var(--fb-blue) !important;
  box-shadow: 0 0 0 2px var(--fb-blue-soft) !important;
}
.claude-prompt-chip, .layer-chip, .filter-btn, .pwa-chip, .console-tab-btn {
  background: var(--fb-btn2);
  border: none;
  color: var(--text);
  border-radius: 18px;
  font-weight: 600;
}
.console-tab-btn { border-radius: 0; background: transparent; color: var(--text-muted); }
.claude-prompt-chip:hover, .layer-chip:hover, .filter-btn:hover { background: var(--fb-btn2-h); }
.layer-chip.active, .filter-btn.active {
  background: var(--fb-blue-soft);
  color: var(--fb-blue) !important;
}
.console-tab-btn.active {
  background: transparent;
  color: var(--fb-blue) !important;
  box-shadow: inset 0 -3px 0 var(--fb-blue);
}
.console-tabs { background: var(--bg-surface); border-bottom: 1px solid var(--border); }

/* ── Sections: alternate white / grey ── */
.section { background: var(--bg); }
.section-alt { background: var(--bg-surface); }
.section-navy { background: var(--bg-surface); color: var(--text); }
.section-navy h2, .section-navy h3, .section-navy [style*="color:#ffffff"], .section-navy [style*="color:#fff"] { color: var(--heading) !important; }
.section-navy [style*="color:#cbd5e1"], .section-navy [style*="color:#94a3b8"] { color: var(--text-muted) !important; }
.metrics-strip { background: var(--bg-surface); border-color: var(--border); }

.portfolio-tag, .team-role-tag {
  background: var(--fb-blue-fill);
  color: #ffffff;
  border: none;
  border-radius: 6px;
}
.portfolio-coords, .library-type { color: var(--fb-blue); }
.team-photo-wrap { border-radius: 8px 8px 0 0; }
.direct-icon { background: var(--fb-blue-soft); color: var(--fb-blue); border: none; border-radius: 50%; }

/* ── Footer: Facebook-style light footer ── */
.main-footer {
  background: var(--bg-surface);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.main-footer h1, .main-footer h2, .main-footer h3, .main-footer h4,
.main-footer [style*="color:#ffffff"], .main-footer [style*="color:#fff"] { color: var(--heading) !important; }
.main-footer a { color: var(--text-muted); }
.main-footer a:hover { color: var(--fb-blue) !important; text-decoration: underline; }
.main-footer [style*="color:#94a3b8"], .main-footer [style*="color:#cbd5e1"], .main-footer [style*="color:#64748b"] { color: var(--text-muted) !important; }

#mobile-drawer { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: #bcc0c4; }
::selection { background: rgba(24, 119, 242, 0.25); }

/* ── MOBILE: compact chrome, no sideways scrolling ── */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; }
.brand-name, .brand-tagline { white-space: nowrap; }
@media (max-width: 640px) {
  .top-utility-bar { padding: 6px 0; }
  .top-utility-inner, .utility-left { flex-wrap: wrap; gap: 4px 14px; }
  .container { padding: 0 16px; }
  .nav-container { gap: 10px; min-height: 60px; }
  .brand-logo { gap: 10px; min-width: 0; }
  .brand-tagline { display: none; }
  .brand-name { font-size: 1.1rem; }
  .brand-symbol { width: 38px; height: 38px; }
  .nav-actions { gap: 6px; flex-shrink: 0; }
  .theme-toggle-btn, .mobile-menu-toggle { width: 38px; height: 38px; }
  .nav-actions .btn-primary { padding: 0; width: 38px; height: 38px; border-radius: 50%; }
  .nav-actions .btn-primary > span:not(.material-symbols-outlined) { display: none; }
  .hero-section { padding: 40px 0 40px; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-actions .btn { width: 100%; }
  .console-tab-btn { min-width: 150px; }
}

/* Live telemetry strip: slim dark bar (its text colours are hardcoded light) */
.live-telemetry-strip { background: #1c1e21; color: #e4e6eb; border-bottom: none; }
.live-telemetry-strip #harareClockDisplay { color: #4599ff !important; }

/* Inline serif leftovers → system font */
[style*="Playfair"], [style*="Newsreader"], [style*="serif"] {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-weight: 700;
}

/* Receipt Book promo: blue promo card (its text is hardcoded white) */
.pwa-banner-card {
  background: linear-gradient(135deg, #1877f2, #0b5fcc) !important;
  color: #ffffff;
}
.pwa-banner-card .tag-pill { background: rgba(255, 255, 255, 0.2) !important; color: #ffffff; border: none; }
.pwa-banner-card .pwa-chip { background: rgba(255, 255, 255, 0.16); color: #ffffff; }
.pwa-banner-card .btn-gold { background: #ffffff; border-color: #ffffff; color: #1877f2 !important; }
.pwa-banner-card .btn-gold:hover { background: #f0f2f5; }
.pwa-banner-card [style*="color:var(--gold)"] { color: #ffffff !important; }
.pwa-banner-card [style*="color:#94a3b8"] { color: rgba(255, 255, 255, 0.75) !important; }

/* GIS division stat boxes */
.section-navy [style*="background:rgba(255,255,255"] {
  background: var(--bg) !important;
  border-color: var(--border) !important;
}

/* Desktop header: keep everything inside the bar */
.nav-container { gap: 16px; }
.nav-link-item { padding-left: 10px !important; padding-right: 10px !important; }
@media (max-width: 1499px) {
  .nav-actions .btn-primary > span:not(.material-symbols-outlined) { display: none; }
  .nav-actions .btn-primary { padding: 0; width: 40px; height: 40px; border-radius: 50%; }
  .brand-tagline { display: none; }
}

.brand-titles { min-width: 0; }
.brand-name { overflow: hidden; text-overflow: ellipsis; display: block; }
@media (max-width: 400px) { .brand-name { font-size: 1rem; } }

/* ── Top nav: single uniform line (logo · name · links · actions) ── */
.nav-container { flex-wrap: nowrap; min-height: 64px; gap: 20px; }
.brand-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; }
.brand-titles { display: flex; align-items: center; }
.brand-tagline { display: none !important; }
.brand-name { font-size: 1.2rem !important; line-height: 1; margin: 0; }
.brand-symbol { width: 40px; height: 40px; flex-shrink: 0; }
.main-header nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; justify-content: safe center; }
.nav-links { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; margin: 0; }
.nav-link-item {
  white-space: nowrap;
  font-size: 0.9rem;
  line-height: 1;
  padding: 11px 10px !important;
  display: inline-flex;
  align-items: center;
}
.nav-actions { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.nav-actions .btn-primary { white-space: nowrap; }

.main-header .container { max-width: 1440px; }
@media (max-width: 1199px) {
  .nav-links { display: none !important; }
  .mobile-menu-toggle { display: inline-flex !important; }
}
@media (max-width: 640px) {
  .nav-container { gap: 8px; }
  .brand-logo { flex-shrink: 1; min-width: 0; gap: 8px; }
  .brand-titles { min-width: 0; overflow: hidden; }
  .brand-name { font-size: 1.02rem !important; }
  .brand-symbol { width: 34px; height: 34px; }
  .theme-toggle-btn, .mobile-menu-toggle, .nav-actions .btn-primary { width: 36px !important; height: 36px !important; }
}

/* Solid header (overrides the old translucent per-theme rule) */
[data-theme="light"] .main-header, [data-theme="dark"] .main-header, .main-header {
  background-color: var(--bg-surface) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  padding: 0 !important;
}

/* ── Instant theme switch ── */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
  transition: none !important;
}
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: ease-out;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE + CROSS-BROWSER HARDENING (Safari / Chrome / Firefox / Samsung)
   Root-cause fixes so nothing is ever wider than the screen.
   ══════════════════════════════════════════════════════════════ */
img, svg, video, canvas, iframe { max-width: 100%; }
img { height: auto; }
.brand-symbol, .pillar-icon img, .direct-icon img { height: auto; object-fit: contain; }
input, select, textarea, button { max-width: 100%; }
a, p, span, li, td, h1, h2, h3, h4, .direct-val { overflow-wrap: break-word; }
.direct-val a, a[href^="mailto:"] { overflow-wrap: anywhere; }
* { -webkit-tap-highlight-color: rgba(24, 119, 242, 0.12); }

/* Grid/flex children must be allowed to shrink below their content width */
.hero-grid > *, .estimator-grid > *, .contact-grid > *, .map-layout-grid > *,
.pwa-banner-card > *, .library-grid > *, .portfolio-grid > *, .team-grid > *,
.pillars-grid > *, .metrics-grid > *, .footer-top-grid > *, .form-row > *,
.console-form-grid > *, .entity-spec-grid > * { min-width: 0; }
.claude-prompt-input { min-width: 0; flex: 1 1 auto; }

@media (max-width: 900px) {
  .hero-grid, .estimator-grid, .contact-grid, .map-layout-grid, .pwa-banner-card, .library-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  /* inline two-column grids (GIS division, stat boxes) */
  #gis-division .container > div[style*="grid"], #gis-division .container > div { grid-template-columns: minmax(0, 1fr) !important; }
  #interactive-map .container > div > div[style*="display:flex"] { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  /* iOS Safari zooms into any field with text under 16px — prevent it */
  input, select, textarea, .console-input, .console-select, .form-control, .claude-prompt-input { font-size: 16px !important; }

  .section { padding-top: 56px !important; padding-bottom: 56px !important; }

  /* AI prompt bar: button drops under the input */
  .claude-prompt-input-row { flex-wrap: wrap; border-radius: 18px !important; padding: 10px !important; gap: 8px; }
  .claude-prompt-input-row .btn { width: 100%; justify-content: center; }
  .claude-chips-row { gap: 6px; }

  /* Map header buttons stack full width */
  #interactive-map .container > div > div[style*="display:flex"] > * { flex: 1 1 100%; justify-content: center; }
  .map-control-bar { flex-wrap: wrap; gap: 8px; }
  .map-layers-switch { flex-wrap: wrap; }
  #gis-map-canvas { height: 300px !important; }

  /* Cards: a little tighter */
  .estimator-card, .estimator-result-card, .contact-info-card, .booking-form-card, .hero-luxury-card,
  .pwa-banner-card, .claude-prompt-card, .pillar-card { padding: 20px !important; }
  .entity-spec-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .price-display { font-size: clamp(1.8rem, 9vw, 2.4rem) !important; }
  #gis-division .container > div > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }

  .metrics-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 12px; }
  .metric-number { font-size: 2rem !important; }

  /* Floating WhatsApp clear of the iPhone home bar */
  .floating-whatsapp { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; }
  .main-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 360px) {
  .metrics-grid, .entity-spec-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 640px) {
  .btn-lg, .pwa-banner-card .btn, .hero-actions .btn { white-space: normal; width: 100%; text-align: center; justify-content: center; }
}
/* header: name shrinks with ellipsis instead of sliding under logo/buttons */
.brand-logo { min-width: 0; }
.brand-titles { min-width: 0; overflow: hidden; }
@media (max-width: 640px) {
  .brand-logo { flex: 1 1 auto; }
  .brand-name { max-width: 100%; }
}
@media (max-width: 359px) {
  .brand-name { font-size: 0.95rem !important; }
  .nav-actions { gap: 4px; }
}

/* Safari: prefixed backdrop blur where the base stylesheet only had the standard property */
.modal-overlay { -webkit-backdrop-filter: blur(12px); }
.portfolio-tag { -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 414px) {
  .container { padding: 0 12px; }
  .nav-container { gap: 6px; }
  .brand-logo { gap: 6px; }
  .brand-symbol { width: 30px !important; height: 30px !important; }
  .brand-name { font-size: 0.98rem !important; letter-spacing: -0.02em; }
  .nav-actions { gap: 4px; }
  .theme-toggle-btn, .mobile-menu-toggle, .nav-actions .btn-primary { width: 34px !important; height: 34px !important; }
}

/* ── Info strips now live at the bottom of the page (below the footer) ── */
.bottom-info-strips { position: relative; z-index: 1; }
.bottom-info-strips .top-utility-bar {
  border-top: 1px solid var(--border);
  border-bottom: none;
  padding: 12px 0;
}
.bottom-info-strips .top-utility-inner { flex-wrap: wrap; gap: 8px 24px; }
.bottom-info-strips .utility-left, .bottom-info-strips .utility-right { flex-wrap: wrap; gap: 6px 18px; }
.bottom-info-strips .live-telemetry-strip { position: static; padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px)); }
.bottom-info-strips .telemetry-inner { flex-wrap: wrap; gap: 4px 20px; }
@media (max-width: 640px) {
  .bottom-info-strips .top-utility-inner, .bottom-info-strips .telemetry-inner { flex-direction: column; align-items: flex-start; }
  .bottom-info-strips .utility-right { display: flex !important; }
  .bottom-info-strips .telemetry-item { flex-wrap: wrap; font-size: 0.72rem; }
  .main-footer { padding-bottom: 32px !important; }
  /* keep last strip clear of the floating WhatsApp button */
  .bottom-info-strips .live-telemetry-strip { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 641px) {
  .bottom-info-strips .container { padding-right: 100px; }   /* clear of the floating WhatsApp button */
}

/* Director email under each leadership card */
.team-email {
  display: block;
  margin: 4px 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fb-blue);
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.team-email:hover { text-decoration: underline; }
.team-email, .direct-val a, .main-footer a[href^="mailto:"], .utility-link span { overflow-wrap: normal; word-break: normal; }
@media (max-width: 640px) {
  .direct-val a[href^="mailto:"] { font-size: 0.95rem; }
}

/* Header fit: links never run under the logo or the buttons (1200px and wider) */
.nav-link-item { padding-left: 8px !important; padding-right: 8px !important; }
@media (max-width: 1399px) { .nav-link-item { padding-left: 6px !important; padding-right: 6px !important; font-size: 0.86rem; } .nav-container { gap: 14px; } }
