/*
Theme Name: Rubari Consulting
Theme URI: https://rubariconsulting.com
Author: Rubari Consulting Ltd
Author URI: https://rubariconsulting.com
Description: Custom theme for Rubari Consulting — an AI-native software studio building ChurchOps, ClubOps, and FormForge. Premium dark, aurora-gradient design system.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rubari
*/

/* ============================================================
   Rubari Consulting — Design System v2
   Premium AI-native studio aesthetic
   ============================================================ */

:root {
  --bg: #06090f;
  --bg-panel: #0b1420;
  --bg-panel-warm: #0f0d10;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f8f7f4;
  --text-dim: #a4a3ad;
  --text-dimmer: #6b6a75;

  /* Brand palette — sourced from the Rubari emblem: navy, gold ring, blue wave accent */
  --navy: #0f2a44;
  --indigo: #2e7bc4;
  --amber: #d9b35c;
  --rose: #f4715c;
  --mint: #34d399;

  --gradient: linear-gradient(115deg, var(--indigo) 0%, var(--amber) 100%);
  --gradient-soft: linear-gradient(115deg, rgba(99,102,241,0.16), rgba(245,177,76,0.10));
  --gradient-text: linear-gradient(115deg, #a5a8ff 0%, var(--amber) 100%);

  --success: var(--mint);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

::selection { background: var(--indigo); color: #fff; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--text);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.28rem; }
p { color: var(--text-dim); margin: 0 0 16px; }
a { color: inherit; text-decoration: none; }

.serif {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

.grad-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(245, 177, 76, 0.08);
  border: 1px solid rgba(245, 177, 76, 0.22);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* ---------- Aurora background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) {
  width: 620px; height: 620px; background: var(--indigo);
  top: -220px; left: -120px; animation-delay: 0s;
}
.aurora span:nth-child(2) {
  width: 520px; height: 520px; background: var(--amber);
  top: -80px; right: -180px; animation-delay: -6s; opacity: 0.22;
}
.aurora span:nth-child(3) {
  width: 460px; height: 460px; background: var(--rose);
  bottom: -260px; left: 30%; animation-delay: -12s; opacity: 0.14;
}
@keyframes drift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(40px, 60px) scale(1.12); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 10, 0.7);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.logo .mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.logo .mark svg,
.logo .mark img { width: 100%; height: 100%; display: block; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

/* ---------- Sign in dropdown ---------- */
.signin-dropdown { position: relative; }
.signin-dropdown summary {
  list-style: none;
}
.signin-dropdown summary::-webkit-details-marker { display: none; }
.signin-dropdown summary::marker { content: ""; }
.signin-dropdown[open] summary { border-color: var(--border-strong); background: var(--surface-hover); }
.signin-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-width: 168px;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.65);
  z-index: 50;
}
.signin-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: background 0.15s ease, color 0.15s ease;
}
.signin-menu a:hover { background: var(--surface-hover); color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
  position: relative;
}

.btn-primary {
  background: var(--gradient);
  color: #08080b;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(245, 177, 76, 0.32); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--border-strong); transform: translateY(-2px); }

.btn-sm { padding: 9px 17px; font-size: 0.84rem; }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
section { padding: 108px 0; position: relative; }
section.tight { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Reveal on scroll ----------
   Progressive enhancement: elements are fully visible by default.
   JS adds .reveal-init (hidden) then .in-view (fades in) once observed —
   so content never disappears if JavaScript fails to run. */
[data-reveal] {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].reveal-init { opacity: 0; transform: translateY(28px); }
[data-reveal].reveal-init.in-view { opacity: 1; transform: translateY(0); }
[data-reveal="1"] { transition-delay: 0.05s; }
[data-reveal="2"] { transition-delay: 0.15s; }
[data-reveal="3"] { transition-delay: 0.25s; }
[data-reveal="4"] { transition-delay: 0.35s; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover { border-color: var(--border-strong); background: var(--surface-hover); transform: translateY(-3px); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 100px;
}
.badge-live { background: rgba(52, 211, 153, 0.12); color: var(--success); border: 1px solid rgba(52,211,153,0.3); }
.badge-dev { background: rgba(245, 177, 76, 0.1); color: var(--amber); border: 1px solid rgba(245,177,76,0.28); }
.badge-soon { background: rgba(99, 102, 241, 0.14); color: #b3b5ff; border: 1px solid rgba(99,102,241,0.32); }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Stats ---------- */
.stat { text-align: center; }
.stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .label { color: var(--text-dimmer); font-size: 0.85rem; margin-top: 6px; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: scroll-left 32s linear infinite;
}
.marquee-track span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  color: var(--text-dimmer);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee-track span::after { content: '✦'; color: var(--amber); margin-left: 48px; opacity: 0.6; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Browser-chrome product mockup ---------- */
.browser-mockup {
  background: linear-gradient(180deg, #101019 0%, #0a0a0f 100%);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03);
}
.browser-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.browser-url {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.76rem;
  color: var(--text-dimmer);
  font-family: 'Inter', sans-serif;
}
.browser-body { padding: 22px; }

.app-shell { display: grid; grid-template-columns: 56px 1fr; gap: 16px; }
.app-nav { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.app-nav span {
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.app-nav span.active { background: var(--gradient); }

/* ---------- Testimonial ---------- */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 12px; font-size: 0.9rem; }
.quote-attrib { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gradient); flex-shrink: 0;
}
.quote-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.quote-role { font-size: 0.8rem; color: var(--text-dimmer); }

/* ---------- Vision section ---------- */
.vision-section {
  background: radial-gradient(ellipse 120% 100% at 50% 0%, rgba(99,102,241,0.1), transparent 60%), var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 130px 0;
  text-align: center;
}
.vision-section .eyebrow { justify-content: center; }
.vision-statement {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 3.1rem);
  line-height: 1.28;
  max-width: 900px;
  margin: 0 auto 32px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.vision-statement .grad-text { font-style: italic; }
.vision-sub { max-width: 620px; margin: 0 auto; font-size: 1.02rem; }

/* ---------- Timeline (roadmap) ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--indigo), var(--amber), transparent);
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px; top: 6px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--amber);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 44px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--text-dim); font-size: 0.88rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-heading { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dimmer); margin-bottom: 15px; font-family: 'Space Grotesk', sans-serif; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dimmer);
}

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--indigo);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.items-center { align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  section { padding: 68px 0; }
  .cta-band { padding: 44px 26px; }
  .vision-section { padding: 80px 0; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7,7,10,0.98);
  backdrop-filter: blur(10px);
  flex-direction: column;
  padding: 24px 28px;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer .close-btn {
  align-self: flex-end;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 40px; height: 40px; color: var(--text); font-size: 1.1rem; margin-bottom: 32px;
}
.mobile-drawer a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
