/* ============================================================
   Quantum Financial Group – Pixel-perfect replica
   Colours: #05151b (dark) · #c9a060 (gold) · #f2ede6 (cream)
   Fonts:   Playfair Display · Jost
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', Arial, sans-serif;
  font-weight: 300;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Design tokens ── */
:root {
  --dark:  #05151b;
  --gold:  #c9a060;
  --cream: #f2ede6;
  --tr:    all 0.35s ease;
}

/* ── Container ── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =============================================================
   HEADER — floating, logo-only (matches original exactly)
============================================================= */
#site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 28px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.logo-img {
  height: 28px;
  width: auto;
  display: block;
}

/* Hamburger (visible all screen sizes — original has no text nav) */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: rgba(255,255,255,0.75);
  transition: var(--tr);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Full-screen mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  padding: 10px 30px;
  letter-spacing: 1px;
  transition: var(--tr);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu-close {
  position: absolute;
  top: 28px; right: 44px;
  font-size: 2rem;
  color: rgba(255,255,255,0.5);
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

/* =============================================================
   HERO SLIDER
============================================================= */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--dark);
}

/* Slides */
.slide {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
  overflow: hidden;
}
.slide.active {
  transform: translateX(0);
  z-index: 2;
  pointer-events: auto;
}
.slide.prev-slide {
  transform: translateX(-100%);
  z-index: 1;
  pointer-events: none;
}

.slide-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  transform: translateX(-25%);
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}
.slide.active .slide-img {
  transform: translateX(0);
}
.slide.prev-slide .slide-img {
  transform: translateX(25%);
}

/* Overlay: strong on left (text area), transparent on right */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5,21,27,0.82) 0%,
    rgba(5,21,27,0.62) 30%,
    rgba(5,21,27,0.22) 58%,
    rgba(5,21,27,0.00) 80%
  );
}

/* ── Hero text block (upper, left-aligned) ── */
.hero-text {
  position: absolute;
  left: 140px;
  top: 50%;
  transform: translateY(-55%) translateX(20%);
  z-index: 3;
  padding: 0;
  max-width: 800px;
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}
.slide.active .hero-text {
  transform: translateY(-55%) translateX(0);
}
.slide.prev-slide .hero-text {
  transform: translateY(-55%) translateX(-20%);
}

/* Eyebrow: "QUANTUM BANK" in small gold caps */
.hero-eyebrow {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4.5rem, 8.5vw, 8rem);
  font-weight: 400;
  font-style: normal;
  color: #fff;
  line-height: 0.88;
  letter-spacing: -1.57px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── SCROLL text + line — vertical, left edge ── */
.hero-scroll {
  position: absolute;
  left: 44px;
  bottom: 120px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: rgba(255,255,255,0.4);
  font-family: 'Jost', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 90px;
  background: var(--gold);
  margin-top: 15px;
}

/* ── Floating Progress Indicator (bottom right) ── */
.hero-floating-progress {
  position: absolute;
  bottom: 40px;
  right: 54px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-floating-progress .hero-progress-ring {
  width: 36px;
  height: 36px;
  position: relative;
}
.hero-floating-progress .ring-svg {
  width: 36px; height: 36px;
  transform: rotate(-90deg);
}
.hero-floating-progress .ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.15);
  stroke-width: 1.5;
}
.hero-floating-progress .ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 100.5;
  stroke-dashoffset: 100.5;
  animation: ringProgress 6s linear infinite;
}
@keyframes ringProgress {
  0%   { stroke-dashoffset: 100.5; }
  100% { stroke-dashoffset: 0; }
}
.hero-floating-progress .hero-total {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gold);
}

.hero-bottom {
  position: absolute;
  bottom: 0; left: 0;
  width: 62%;
  z-index: 4;
  background: #030f12;
  height: 120px;
  display: flex;
  align-items: stretch;
  transform: translateX(-180%);
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}
.slide.active .hero-bottom {
  transform: translateX(0);
}
.slide.prev-slide .hero-bottom {
  transform: translateX(-60%);
}

/* Left info: big number + description */
.hero-bottom-info {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 44px 0 140px;
  flex: 1;
  min-width: 0;
}

.hero-slide-num {
  font-family: 'Playfair Display', serif;
  font-size: 4.8rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  min-width: 80px;
  transition: var(--tr);
}

.hero-slide-desc {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  max-width: 440px;
}

/* Right controls: stacked vertical buttons */
.hero-controls {
  display: flex;
  flex-direction: column;
  width: 60px;
  flex-shrink: 0;
}

/* Prev / Next buttons */
.hero-btn {
  width: 100%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: var(--tr);
  border: none;
  background: none;
}
.hero-btn {
  color: rgba(255,255,255,0.6);
  transition: background 0.3s ease, color 0.3s ease;
}
.hero-btn.next {
  background: #132023;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hero-btn.prev {
  background: #09161a;
}
.hero-btn:hover {
  background: var(--gold);
  color: var(--dark);
}
.hero-btn svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

/* Hide dots since they aren't in this design layout */
.slide-dots {
  display: none;
}

/* =============================================================
   ABOUT SECTION — dark bg, centered text, 3-image strip
============================================================= */
#about {
  background: var(--dark);
  padding-bottom: 80px;
}

.about-text {
  padding: 140px 44px 100px 50%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: left;
}

.section-eyebrow {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.about-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 30px;
}

.about-body {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.48);
  line-height: 1.85;
  max-width: 520px;
}

/* Three-image strip */
.about-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 44px;
}
.about-strip img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.65) saturate(0.85);
  transition: filter 0.6s ease;
  display: block;
}
.about-strip img:hover { filter: brightness(0.85) saturate(1); }

/* =============================================================
   CORE SERVICES — warm cream bg, asymmetrical layout
============================================================= */
#core {
  background: var(--cream);
  padding: 140px 0;
}

@media (min-width: 981px) {
  .core-header {
    margin-bottom: 72px;
  }
  .core-grid {
    margin-left: 36%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px 48px;
  }
}

@media (max-width: 980px) {
  .core-header {
    margin-bottom: 54px;
  }
  .core-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 58px 44px;
  }
}

@media (max-width: 600px) {
  .core-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

/* Heading block */
.core-header .section-eyebrow {
  text-align: left;
  display: block;
}
.core-main-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 4.6vw, 4.2rem);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.12;
}

.core-card {}
.core-icon {
  width: 44px; height: 44px;
  margin-bottom: 24px;
  stroke: var(--dark);
  stroke-width: 1.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.core-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}
.core-card p {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: #4a5457;
  line-height: 1.85;
}

/* =============================================================
   FOOTER — dark, CTA, info bar, copyright
============================================================= */
#footer {
  background: var(--dark);
}

/* CTA block — centered with skyscrapers backdrop */
.footer-cta {
  padding: 110px 44px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  background-image: linear-gradient(rgba(5, 21, 27, 0.84), rgba(5, 21, 27, 0.84)), url('../images/footer-bg2.jpg');
  background-size: cover;
  background-position: center;
}

.footer-cta-icon {
  width: 44px;
  height: 44px;
  stroke: var(--gold);
  margin-bottom: 24px;
}

.footer-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.55;
  letter-spacing: 0.5px;
  margin-bottom: 36px;
}

.btn-touch {
  display: inline-block;
  padding: 14px 48px;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: opacity 0.3s ease, background 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-touch:hover {
  opacity: 0.9;
}

/* Info bar — email left, locations right */
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 58px 44px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 300;
  color: #fff;
  transition: var(--tr);
}
.footer-bar-item:hover { color: var(--gold); }
.footer-bar-item svg {
  width: 18px; height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
}

/* Copyright bottom — centered and stacked */
.footer-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 38px 44px 54px;
}
.footer-copy p {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

/* =============================================================
   BACK TO TOP
============================================================= */
#btt {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 40px; height: 40px;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: var(--tr);
  z-index: 990;
}
#btt.show { opacity: 1; pointer-events: auto; }
#btt:hover { background: var(--gold); border-color: var(--gold); }
#btt svg {
  width: 15px; height: 15px;
  stroke: rgba(255,255,255,0.7);
  fill: none;
  stroke-width: 2;
}
#btt:hover svg { stroke: var(--dark); }

/* =============================================================
   SCROLL REVEAL
============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.10s; }
.d2 { transition-delay: 0.20s; }
.d3 { transition-delay: 0.30s; }
.d4 { transition-delay: 0.40s; }

/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 980px) {
  .core-grid { grid-template-columns: 1fr; gap: 44px; }
  .wrap      { padding: 0 28px; }
  #site-header { padding: 18px 28px; }
  .hero-text { left: 44px; max-width: 90%; }
  .hero-bottom-info { padding: 0 28px; gap: 20px; }
  .footer-bar, .footer-cta { padding-left: 28px; padding-right: 28px; }
  .footer-copy { padding: 16px 28px; }
  .about-text { padding: 100px 28px 60px; }
}

@media (max-width: 768px) {
  #site-header {
    background: #030f12;
    padding: 16px 28px;
    position: absolute;
  }
  .logo-img {
    height: 18px;
  }
  .hero-text {
    left: 28px;
    top: 48%;
    transform: translateY(-50%) translateX(20%);
    padding: 0;
  }
  .slide.active .hero-text {
    transform: translateY(-50%) translateX(0);
  }
  .slide.prev-slide .hero-text {
    transform: translateY(-50%) translateX(-20%);
  }
  .hero-title {
    font-size: clamp(2.6rem, 9vw, 4.5rem);
    line-height: 0.92;
  }
  .hero-floating-progress {
    display: none;
  }
  .about-strip {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 16px;
  }
  .about-strip img {
    height: 200px;
  }
  .about-text {
    padding: 54px 20px 54px;
  }
  #btt {
    display: none !important;
  }
  #core {
    padding: 68px 20px;
    text-align: center;
  }
  .core-header {
    margin-bottom: 48px;
  }
  .core-header .section-eyebrow {
    text-align: center;
  }
  .core-main-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
    line-height: 1.15;
    margin: 0 auto;
  }
  .core-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .core-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .core-icon {
    margin-bottom: 18px;
  }
  .core-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }
  .core-card p {
    font-size: 0.82rem;
    line-height: 1.75;
    max-width: 320px;
    margin: 0 auto;
  }
  .footer-cta { padding: 80px 28px; }
  .footer-cta-title { font-size: clamp(1.2rem, 5.2vw, 1.55rem); }
  .footer-bar { flex-direction: column; align-items: flex-start; padding: 44px 28px; gap: 24px; }
  .footer-bar-item { font-size: 1.15rem; }

  /* Bottom slider bar on mobile */
  .hero-bottom {
    width: 100%;
    height: 120px;
  }
  .hero-bottom-info {
    padding: 0 80px 0 28px;
  }
  .hero-slide-desc {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.52);
    line-height: 1.55;
    max-width: 100%;
  }
  /* Floating page number on image */
  .hero-slide-num {
    position: absolute;
    bottom: 120px;
    left: 28px;
    z-index: 5;
    font-size: 4.8rem;
    line-height: 1;
    color: var(--gold);
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.2rem, 11vw, 3.6rem); }
  .hero-scroll { display: none; }
  .hero-text { left: 20px; }
  .hero-slide-num { left: 20px; font-size: 4.2rem; }
  .hero-bottom-info { padding-left: 20px; padding-right: 70px; }
}
