/* ═══════════════════════════════════════════════
   ME Capital — style.css v2 (design upgrade)
   ═══════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────── */
:root {
  --navy:        #0a1628;
  --navy-deep:   #06101e;
  --cream:       #f0ede6;
  --cream-light: #f7f5f0;
  --white:       #ffffff;
  --gold:        #c9a563;
  --gold-light:  #dfc07a;
  --text:        #1a1a2e;
  --text-muted:  #5a6272;
  --text-light:  #e8e4dc;
  --radius:      20px;
  --transition:  0.35s ease;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.07);
  --shadow:      0 6px 28px rgba(0,0,0,0.10);
  --shadow-lg:   0 24px 64px rgba(0,0,0,0.14);
  --font-serif:  'Heebo', 'Arial', sans-serif;
  --font-body:   'Heebo', 'Arial', sans-serif;
  --font-brand:  'Cormorant Garamond', 'Georgia', serif;
}

/* ── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ── Scroll Progress Bar ────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% 100%;
  z-index: 9999;
  transition: width 0.08s linear;
  animation: gold-shimmer 3s linear infinite;
}
@keyframes gold-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ── Skip Link ─────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  padding: 10px 24px;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Container ─────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ══ HEADER ════════════════════════════════════════ */
#header {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
#header.scrolled {
  background: rgba(6, 16, 30, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(201,165,99,0.18), 0 4px 32px rgba(0,0,0,0.55);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  gap: 24px;
}

/* Nav brand */
.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: opacity var(--transition);
}
.nav-brand:hover { opacity: 0.85; }
.nav-brand:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.nav-brand-title {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.12em;
  line-height: 1.2;
}
.nav-brand-tagline {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(232,228,220,0.6);
  letter-spacing: 0.06em;
}

/* Desktop nav */
#header nav ul { display: flex; gap: 36px; }
#header nav a {
  color: var(--text-light);
  font-size: 16px;
  font-weight: 500;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition);
}
#header nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}
#header nav a:hover,
#header nav a.active { color: var(--gold); }
#header nav a:hover::after,
#header nav a.active::after { width: 100%; }

/* CTA button */
.btn-cta {
  border: 1.5px solid rgba(232,228,220,0.5);
  color: var(--text-light);
  padding: 8px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  background: rgba(6, 16, 30, 0.98);
  padding: 12px 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  color: var(--text-light);
  font-size: 1.05rem;
  font-weight: 500;
  display: block;
  padding: 10px 8px;
  border-radius: 8px;
  transition: all var(--transition);
}
.mobile-menu a:hover { color: var(--gold); background: rgba(255,255,255,0.04); }

/* ══ HERO ══════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

@keyframes hero-appear {
  from { opacity: 0; transform: scale(0.9) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes tagline-appear {
  from { opacity: 0; letter-spacing: 0.04em; }
  to   { opacity: 1; letter-spacing: 0.18em; }
}

/* Cinematic logo reveal — blur-dissolve + scale bounce */
@keyframes logo-reveal {
  0%   {
    opacity: 0;
    transform: scale(0.84) translateY(28px);
    filter: brightness(0) invert(1) blur(22px) drop-shadow(0 6px 48px rgba(0,0,0,0.8));
  }
  35%  {
    opacity: 0.6;
    transform: scale(0.93) translateY(10px);
    filter: brightness(0) invert(1) blur(8px) drop-shadow(0 6px 48px rgba(0,0,0,0.75));
  }
  65%  {
    opacity: 1;
    transform: scale(1.032) translateY(-3px);
    filter: brightness(0) invert(1) blur(0) drop-shadow(0 6px 52px rgba(0,0,0,0.7));
  }
  80%  { transform: scale(0.997) translateY(1px); }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: brightness(0) invert(1) blur(0) drop-shadow(0 4px 40px rgba(0,0,0,0.7));
  }
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}

.hero-logo {
  width: 360px;
  max-width: 72vw;
  filter: brightness(0) invert(1) drop-shadow(0 4px 40px rgba(0,0,0,0.7));
  animation: logo-reveal 3.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
  position: relative;
  z-index: 1;
}

/* Logo wrap — gentle float starts after reveal completes */
.hero-logo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: logo-float 7s ease-in-out 4.6s infinite;
}
.hero-logo-glow {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 38px;
  background: radial-gradient(ellipse, rgba(201,165,99,0.38) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: hero-appear 1s ease 2.8s both, glow-breathe 4.5s ease-in-out 3.8s infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.52; transform: translateX(-50%) scaleX(1); }
  50%       { opacity: 1;    transform: translateX(-50%) scaleX(1.14); }
}

/* Decorative lines flanking the tagline */
.hero-divider-lines {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 300px;
  margin: 22px auto 10px;
  opacity: 0;
  animation: hero-appear 1s ease 3.0s both;
}
.hero-divider-lines span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,165,99,0.42), transparent);
}

/* Tagline wrap — hidden when empty */
.hero-tagline-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 0;
  margin-top: 0;
}
.hero-divider-lines { display: none; }
.hero-tagline-text {
  font-family: var(--font-brand);
  font-size: clamp(0.85rem, 1.8vw, 1.2rem);
  font-weight: 400;
  color: rgba(201,165,99,0.85);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-tagline-sep {
  color: rgba(201,165,99,0.3);
  font-size: 1.1rem;
}

/* Typewriter cursor */
.tw-cursor {
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  background: rgba(201,165,99,0.75);
  vertical-align: middle;
  margin: 0 1px;
  animation: cursor-blink 0.85s step-end infinite;
}
.tw-cursor.done {
  animation: none;
  opacity: 0;
  transition: opacity 0.8s ease 0.4s;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Scroll mouse indicator */
.hero-scroll-cue {
  position: absolute;
  bottom: 104px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: hero-appear 0.8s ease 2.2s both;
}
.scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.22);
  border-radius: 13px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 7px;
}
.scroll-wheel {
  width: 4px;
  height: 8px;
  background: rgba(201,165,99,0.65);
  border-radius: 2px;
  animation: scroll-bounce 2.2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(10px); opacity: 0.2; }
}

.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
}
.wave-divider svg { width: 100%; height: 90px; display: block; }

/* ══ SECTION TITLES ════════════════════════════════ */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--text);
  text-align: center;
  margin-bottom: 56px;
  display: block;
}
.section-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ══ ABOUT ═════════════════════════════════════════ */
#about {
  background: var(--cream);
  padding: 100px 0 90px;
  text-align: center;
}
.about-text {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.95;
  color: var(--text);
}

/* Stats row */
.stats-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin-top: 64px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}
.stat-item {
  flex: 1;
  padding: 48px 32px;
  text-align: center;
  transition: background var(--transition);
  position: relative;
}
.stat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(201,165,99,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.stat-item:hover::before { opacity: 1; }
.stat-number {
  font-family: var(--font-brand);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: block;
}
.stat-divider {
  width: 1px;
  background: rgba(0,0,0,0.07);
  flex-shrink: 0;
  margin: 32px 0;
}

/* ══ TEAM ══════════════════════════════════════════ */
#team .animate {
  transition:
    opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}
#team { background: var(--cream); }
.team-header {
  background: var(--navy);
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.team-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(201,165,99,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.team-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text-light);
  position: relative;
  z-index: 1;
}
.team-body { background: var(--cream); padding: 72px 0 84px; }
.team-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 52px;
  align-items: center;
}

/* Team photo with gold frame */
.team-photo { display: flex; justify-content: center; }
.team-photo-wrap {
  position: relative;
  display: inline-block;
}
.team-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(201,165,99,0.55), rgba(201,165,99,0.05) 50%, rgba(201,165,99,0.45));
  z-index: 0;
}
.team-photo-wrap img {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 16px 56px rgba(0,0,0,0.22);
  position: relative;
  z-index: 1;
  display: block;
}

/* Team bio cards */
.team-bio { display: flex; }
.team-bio-inner {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  border-top: 3px solid var(--gold);
  flex: 1;
  transition: box-shadow 0.4s, transform 0.4s;
}
.team-bio-inner:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.team-bio h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  text-align: center;
}
.bio-items p {
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--text-muted);
  text-align: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.bio-items p:last-child { border-bottom: none; }
.bio-highlight {
  color: var(--gold) !important;
  font-weight: 700 !important;
}

/* ══ STATEMENT ═════════════════════════════════════ */
#statement {
  background: linear-gradient(160deg, #050c1a 0%, #0d1f3c 45%, #091529 60%, #06101e 100%);
  padding: 84px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#statement::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(201,165,99,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.statement-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,165,99,0.05) 0%, transparent 68%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: glow-pulse 5s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.12); }
}
.statement-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 40px;
}
.statement-quote-mark {
  font-family: var(--font-brand);
  font-size: 9rem;
  line-height: 0.4;
  color: rgba(201,165,99,0.18);
  margin-bottom: 20px;
  display: block;
  font-weight: 300;
  user-select: none;
}
.statement-content p {
  font-family: var(--font-brand);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.95;
  letter-spacing: 0.01em;
}
/* Word-reveal spans added by JS */
.word-span {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--wd, 0s);
}
.statement-content.visible .word-span {
  opacity: 1;
  transform: translateY(0);
}

/* ══ SERVICES ══════════════════════════════════════ */
#services {
  background: var(--cream);
  padding: 100px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  text-align: center;
  padding: 44px 28px 38px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition:
    transform   0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow  0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 64px rgba(0,0,0,0.13);
  border-color: rgba(201,165,99,0.22);
}
.service-card:hover::before { transform: scaleX(1); }

/* Card ambient glow on hover */
.service-card-glow {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 0%, rgba(201,165,99,0.07) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.service-card:hover .service-card-glow { opacity: 1; }

/* Service icon — circular gold bg */
.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 26px;
  color: var(--gold);
  background: rgba(201,165,99,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-icon svg { width: 36px; height: 36px; }
.service-card:hover .service-icon {
  background: rgba(201,165,99,0.18);
  transform: scale(1.1) translateY(-2px);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.service-card p {
  font-size: 0.94rem;
  line-height: 1.82;
  color: var(--text-muted);
}

/* ══ COVENANT ══════════════════════════════════════ */
#covenant {
  background: var(--navy);
  padding: 100px 0;
}
#covenant h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 72px;
  line-height: 1.5;
}
.covenant-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.covenant-item { flex: 1; text-align: center; max-width: 240px; }

/* Animated connector between items */
.covenant-connector {
  flex: 0 0 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
}
.covenant-connector span {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(201,165,99,0.08),
    rgba(201,165,99,0.5) 50%,
    rgba(201,165,99,0.08));
  position: relative;
}
.covenant-connector span::before,
.covenant-connector span::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.45;
}
.covenant-connector span::before { left: 0; }
.covenant-connector span::after  { right: 0; }

/* Circular icon wrapper */
.covenant-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(201,165,99,0.07);
  border: 1px solid rgba(201,165,99,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s, border-color 0.35s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.covenant-item:hover .covenant-icon-wrap {
  background: rgba(201,165,99,0.14);
  border-color: rgba(201,165,99,0.38);
  transform: scale(1.08) translateY(-3px);
}
.covenant-item .service-icon {
  width: 44px;
  height: 44px;
  margin: 0;
  background: none;
  border-radius: 0;
  color: var(--gold);
  transform: none;
  transition: none;
}
.covenant-item:hover .service-icon { background: none; transform: none; }
.covenant-item h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}
.covenant-item p {
  font-size: 0.93rem;
  line-height: 1.82;
  color: rgba(232,228,220,0.68);
}

/* ══ PARTNERS ══════════════════════════════════════ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
#partners {
  background: var(--cream);
  padding: 72px 0;
  overflow: hidden;
  border-top: 3px solid var(--navy);
}
.partners-tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  color: var(--text);
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
  line-height: 1.82;
}
.partners-track-wrapper {
  overflow: hidden;
  width: 100%;
  direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.partners-track img {
  height: 60px;
  width: 140px;
  object-fit: contain;
  opacity: 0.62;
  transition: opacity 0.4s, transform 0.4s;
  flex-shrink: 0;
  filter: grayscale(15%);
}
.partners-track:hover { animation-play-state: paused; }
.partners-track img:hover { opacity: 1; transform: scale(1.06); filter: none; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══ TESTIMONIALS ══════════════════════════════════ */
#testimonials {
  background: var(--cream);
  padding: 60px 0 56px;
}
#testimonials h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: var(--text);
  text-align: center;
  margin-bottom: 40px;
}
.testimonials-slider { display: flex; align-items: center; gap: 16px; }
.testimonials-viewport { overflow: hidden; flex: 1; direction: ltr; }
.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.14);
}
.wa-frame { display: flex; flex-direction: column; aspect-ratio: 9 / 12; }
.wa-frame-header {
  background: #128c7e;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.wa-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.3); flex-shrink: 0;
}
.wa-frame-header span { color: #fff; font-size: 0.9rem; font-weight: 600; }
.wa-frame-body {
  flex: 1; background: #e5ddd5;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: #777; font-size: 0.9rem;
  text-align: center; padding: 16px;
}
.wa-icon { font-size: 2.2rem; }
.wa-hint { font-size: 0.75rem; color: #aaa; }

.slider-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: transparent; color: var(--gold);
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
  transition: all var(--transition);
}
.slider-arrow:hover { background: var(--gold); color: var(--navy); }
.slider-arrow svg { width: 20px; height: 20px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.16);
  cursor: pointer; padding: 0; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.dot.active { background: var(--gold); width: 28px; border-radius: 4px; }

/* ══ CONTACT ═══════════════════════════════════════ */
#contact { background: var(--navy); padding: 100px 0 110px; }
#contact .section-title { color: var(--text-light); }
.contact-sub {
  text-align: center;
  color: rgba(232,228,220,0.58);
  font-size: 1rem;
  margin-bottom: 48px;
  margin-top: -28px;
}
.contact-form { max-width: 600px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Floating label groups */
.float-group { position: relative; margin-bottom: 20px; }
.float-group input,
.float-group textarea {
  padding: 24px 16px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  direction: rtl;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.float-group input:focus,
.float-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(201,165,99,0.12);
}
.float-group label {
  position: absolute;
  top: 17px;
  right: 16px;
  font-size: 1rem;
  color: rgba(255,255,255,0.35);
  transition: top 0.22s ease, font-size 0.22s ease, color 0.22s ease;
  pointer-events: none;
}
.float-group input:focus ~ label,
.float-group input:not(:placeholder-shown) ~ label,
.float-group textarea:focus ~ label,
.float-group textarea:not(:placeholder-shown) ~ label {
  top: 7px;
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.float-group input::placeholder,
.float-group textarea::placeholder { color: transparent; }
.float-group textarea { resize: vertical; min-height: 130px; }
.textarea-group label { top: 17px; }
.required { color: var(--gold); }

.form-checkbox-wrap {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; direction: rtl;
}
.checkbox-label { color: rgba(232,228,220,0.68); font-size: 0.92rem; cursor: pointer; }
input[type="checkbox"].privacy-check {
  width: 17px; height: 17px; min-width: 17px; padding: 0;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 4px; accent-color: var(--gold);
  cursor: pointer; flex-shrink: 0;
}
.form-privacy-link { color: var(--gold); text-decoration: underline; transition: color var(--transition); }
.form-privacy-link:hover { color: var(--gold-light); }

.btn-submit {
  background: linear-gradient(110deg, var(--gold) 0%, var(--gold-light) 60%, var(--gold) 100%);
  background-size: 200% 100%;
  color: var(--navy);
  border: none;
  padding: 16px 40px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-position 0.4s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.btn-submit:hover {
  background-position: 100% 0;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(201,165,99,0.42);
}
.btn-submit:active { transform: translateY(0); box-shadow: none; }
.btn-submit-icon { width: 18px; height: 18px; }

/* ══ FOOTER ════════════════════════════════════════ */
#footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-body {
  max-width: 1100px; margin: 0 auto;
  padding: 48px 40px 38px;
  display: flex; align-items: stretch; gap: 0;
}
.footer-brand {
  flex: 0 0 260px;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; border-left: 1px solid rgba(255,255,255,0.07);
  padding-left: 44px; text-align: center;
}
.footer-logo-img {
  height: 88px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.84;
  transition: opacity 0.3s;
}
.footer-logo-img:hover { opacity: 1; }
.footer-meta-link {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; color: rgba(232,228,220,0.42);
  font-size: 0.84rem; transition: color var(--transition);
}
.footer-meta-link:hover { color: var(--gold); }
.footer-legal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.footer-sep { color: rgba(255,255,255,0.18); font-size: 0.8rem; }
.footer-socials { display: flex; gap: 10px; margin-top: 4px; justify-content: center; }
.footer-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; min-width: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(232,228,220,0.48);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.footer-social-link svg { width: 14px; height: 14px; flex-shrink: 0; display: block; }
.footer-social-link:hover {
  background: rgba(201,165,99,0.14);
  border-color: rgba(201,165,99,0.35);
  color: var(--gold);
  transform: translateY(-2px);
}
.footer-cards {
  flex: 1; display: flex; gap: 20px;
  padding-right: 44px; align-items: center;
}
.footer-card {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,165,99,0.14);
  border-radius: 14px;
  padding: 16px 16px 14px;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color 0.3s, background 0.3s;
}
.footer-card:hover {
  border-color: rgba(201,165,99,0.28);
  background: rgba(255,255,255,0.05);
}
.footer-card-head {
  font-size: 0.88rem; font-weight: 700;
  color: var(--gold); padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,165,99,0.12);
  text-align: center; margin-bottom: 4px;
}
.footer-card-link {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; direction: ltr;
  color: rgba(232,228,220,0.52);
  font-size: 0.82rem; padding: 3px 0;
  transition: color var(--transition);
}
.footer-card-link:hover { color: var(--gold); }
.footer-icon-svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--gold); opacity: 0.72; }
.footer-bar { border-top: 1px solid rgba(255,255,255,0.05); padding: 14px 40px; text-align: center; }
.footer-copy { color: rgba(232,228,220,0.2); font-size: 0.8rem; }

/* ── WhatsApp float ─────────────────────────────── */
@keyframes wa-slide-up {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.wa-float {
  position: fixed; bottom: 28px; right: 28px;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.48);
  z-index: 500;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: wa-slide-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 8px 32px rgba(37,211,102,0.64); }
.wa-float svg { width: 33px; height: 33px; }

/* ══ SCROLL ANIMATIONS ══════════════════════════════ */
.animate {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity  2.0s cubic-bezier(0.16, 1, 0.3, 1),
    transform 2.0s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}
.animate.visible { opacity: 1; transform: translateY(0); }
.animate-left  { transform: translateX(56px); }
.animate-right { transform: translateX(-56px); }
.animate-left.visible,
.animate-right.visible { transform: translateX(0); }

section { scroll-margin-top: 80px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ══ TWEAKS PANEL ══════════════════════════════════ */
.tweaks-panel {
  position: fixed;
  bottom: 100px;
  left: 28px;
  width: 240px;
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201,165,99,0.25);
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(0,0,0,0.5);
  z-index: 9000;
  overflow: hidden;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tweaks-panel[hidden] { display: none; }
.tweaks-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(201,165,99,0.14);
}
.tweaks-panel-header h3 {
  font-size: 0.85rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase;
}
.tweaks-close-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(232,228,220,0.4); font-size: 1.2rem; line-height: 1;
  transition: color 0.2s; padding: 2px;
}
.tweaks-close-btn:hover { color: var(--gold); }
.tweaks-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.tweak-group label {
  display: block; font-size: 0.74rem; font-weight: 600;
  color: rgba(232,228,220,0.5); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 8px;
}
.tweak-options { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-btn {
  flex: 1; min-width: 0;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: rgba(232,228,220,0.6);
  font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.tweak-btn:hover { border-color: rgba(201,165,99,0.3); color: var(--text-light); }
.tweak-btn.active {
  background: rgba(201,165,99,0.15);
  border-color: rgba(201,165,99,0.45);
  color: var(--gold); font-weight: 700;
}
.tweak-slider-wrap { display: flex; flex-direction: column; gap: 6px; }
.tweak-slider {
  width: 100%; accent-color: var(--gold);
  -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.1); cursor: pointer;
}
.tweak-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 2px 8px rgba(201,165,99,0.4);
}
.tweak-slider-val { font-size: 0.76rem; color: var(--gold); text-align: right; }

/* ══ RESPONSIVE ════════════════════════════════════ */
@media (max-width: 960px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 440px; margin: 0 auto;
  }
  .team-photo { order: -1; }
  .team-photo-wrap img { width: 260px; height: 340px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .covenant-grid { flex-direction: column; align-items: center; gap: 28px; }
  .covenant-connector { display: none; }
  .testimonial-card { flex: 0 0 calc(50% - 12px); }
  .footer-body { flex-direction: column; padding: 36px 28px 28px; gap: 24px; }
  .footer-brand {
    flex: none; border-left: none; padding-left: 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 24px; flex-direction: row; flex-wrap: wrap;
    gap: 12px 28px; align-items: flex-start;
  }
  .footer-cards { padding-right: 0; }
  .stats-row { flex-direction: column; }
  .stat-divider { width: 80%; height: 1px; margin: 0 auto; }
  .stat-item { padding: 36px 24px; }
}
@media (max-width: 768px) {
  .header-inner { padding: 12px 20px; }
  #header nav { display: none; }
  .btn-cta { display: none; }
  .hamburger { display: flex; }
  .footer-body { padding: 32px 20px 24px; gap: 20px; }
  .footer-brand { flex-direction: column; }
  .footer-cards { flex-direction: column; }
  .footer-logo-img { height: 76px; }
  .footer-bar { padding: 12px 20px; }
  .services-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .form-row { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .tweaks-panel { left: 16px; bottom: 90px; width: 210px; }
}
@media (max-width: 480px) {
  .hero-logo { width: 260px; }
  .hero-scroll-cue { bottom: 72px; }
  .testimonial-card { flex: 0 0 100%; }
  .wa-float { width: 52px; height: 52px; bottom: 20px; right: 20px; }
  .wa-float svg { width: 28px; height: 28px; }
  .team-photo-wrap img { width: 220px; height: 290px; }
  .partners-track { gap: 44px; }
  .partners-track img { height: 44px; }
  /* Mobile: tighter hero content spacing */
  .hero-logo-glow { width: 200px; }
  /* Mobile: compact section padding */
  #about, #services, #covenant, #contact { padding: 72px 0 64px; }
  .team-body { padding: 52px 0 60px; }
  /* Mobile: readable service card text */
  .service-card { padding: 36px 22px 28px; }
  /* Mobile: fix footer cards full-width */
  .footer-card { min-width: 0; }
  /* Mobile: statement padding */
  .statement-content { padding: 0 24px; }
  .statement-quote-mark { font-size: 6rem; }
  /* Mobile: covenant tighter */
  #covenant { padding: 72px 0 64px; }
  .covenant-grid { gap: 20px; }
}

/* ══ REDUCED MOTION ════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate { opacity: 1; transform: none; transition: none; }
  .hero-logo { animation: none; opacity: 1; filter: brightness(0) invert(1) drop-shadow(0 4px 40px rgba(0,0,0,0.7)); }
  .hero-logo-wrap { animation: none; }
  .hero-tagline-wrap { animation: none; opacity: 1; }
  .hero-scroll-cue { animation: none; opacity: 1; }
  .partners-track { animation: none; }
  .statement-glow { animation: none; }
  .scroll-wheel { animation: none; }
  .scroll-progress { animation: none; }
  .btn-submit:hover { transform: none; }
  .service-card:hover { transform: none; }
  .word-span { opacity: 1; transform: none; transition: none; }
}
