/* Maple Investment Group - Static Site Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --maple-teal: #1B6B7A;
  --maple-teal-50: #F0F9FA;
  --maple-teal-100: #D8F0F3;
  --maple-teal-200: #B4E0E6;
  --maple-teal-300: #85C8D2;
  --maple-teal-400: #52A8B6;
  --maple-teal-500: #1B6B7A;
  --maple-teal-600: #155461;
  --maple-teal-700: #12444F;
  --maple-dark: #0F172A;
  --maple-dark-bg: #0B1120;
  --maple-light: #F8F9FA;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --gold-accent: #D4AF37;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--maple-light);
  color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; letter-spacing: -0.02em; }
.font-heading { font-family: 'Playfair Display', serif; }
.font-body { font-family: 'Manrope', sans-serif; }

html { scroll-behavior: smooth; }

::selection { background-color: rgba(27, 107, 122, 0.2); color: #0F172A; }
:focus-visible { outline: 2px solid #1B6B7A; outline-offset: 2px; }

a { text-decoration: none; color: inherit; }

/* Button Glow */
.btn-glow { box-shadow: 0 4px 20px -4px rgba(27, 107, 122, 0.4); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-glow:hover { box-shadow: 0 8px 30px -4px rgba(27, 107, 122, 0.5); }

/* Card Hover */
.card-hover { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -12px rgba(27, 107, 122, 0.15); }

/* Hero Glow */
.hero-glow { background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(27, 107, 122, 0.12) 0%, transparent 70%); }

/* Results Overlay */
.results-overlay { background: linear-gradient(to top, rgba(11, 17, 32, 0.95) 0%, rgba(11, 17, 32, 0.7) 50%, transparent 100%); }

/* Logo Greyscale */
.logo-greyscale { filter: grayscale(100%) brightness(0.8); opacity: 0.6; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.logo-greyscale:hover { filter: grayscale(0%) brightness(1); opacity: 1; }

/* Line Clamp */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #F8F9FA; }
::-webkit-scrollbar-thumb { background: #94A3B8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #1B6B7A; }

/* Scroll Reveal Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.8); transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-scale.active { opacity: 1; transform: scale(1); }

/* Staggered children */
.stagger-children .reveal { transition-delay: calc(var(--i, 0) * 0.1s); }

/* Header animation */
.header-animate { animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* Floating card animation */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatReverse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-reverse { animation: floatReverse 5s ease-in-out infinite; }

/* Logo scroll */
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.animate-scroll { animation: scroll 25s linear infinite; }

/* Tab transition */
.tab-content { opacity: 0; transform: translateY(16px); transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.tab-content.active { opacity: 1; transform: translateY(0); }

/* Hero underline */
@keyframes growWidth { from { width: 0; } to { width: 100%; } }
.animate-grow-width { animation: growWidth 0.8s ease-out 0.8s forwards; width: 0; }

/* Progress bar grow */
@keyframes growBar { from { width: 0; } to { width: 78%; } }
.animate-grow-bar { animation: growBar 1.5s ease-out 1s forwards; width: 0; }

/* Pulse */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* Spin */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

/* Dropdown */
.dropdown-menu { opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.dropdown-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Mobile menu */
.mobile-overlay { display: none; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.mobile-overlay.open { display: block; opacity: 1; pointer-events: auto; }
@media (min-width: 1024px) { .mobile-overlay, .mobile-overlay.open { display: none !important; } }
.mobile-panel { transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.mobile-panel.open { transform: translateX(0); }

/* Review card transition */
.review-card { transition: opacity 0.5s ease, transform 0.5s ease; }

/* Property card hover overlay */
.property-default-overlay { transition: opacity 0.5s ease; }
.property-hover-overlay { opacity: 0; transition: opacity 0.4s ease; }
.property-card:hover .property-default-overlay { opacity: 0; }
.property-card:hover .property-hover-overlay { opacity: 1; }
.property-card:hover img { transform: scale(1.1); }
.property-card img { transition: transform 0.7s ease; }

/* FAQ animation */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease; opacity: 0; }
.faq-answer.open { opacity: 1; }

/* Timeline building animation */
.timeline-building { transition: all 0.5s ease; }

/* Nav underline hover */
.nav-link-underline { position: relative; }
.nav-link-underline::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: #1B6B7A; transition: width 0.3s ease; }
.nav-link-underline:hover::after { width: 100%; }

/* Print */
@media print { .no-print { display: none !important; } body { background: white !important; } .btn-glow { box-shadow: none !important; } }


/* Nested Investment Strategies submenu within the Services dropdown */
.strategies-trigger { position: relative; }
.strategies-submenu {
  opacity: 0; visibility: hidden;
  transform: translateX(-4px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  pointer-events: none;
}
.strategies-trigger:hover .strategies-submenu,
.strategies-submenu:hover {
  opacity: 1; visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

/* ============ Strategy Call Modal (JotForm) ============ */
.strategy-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.strategy-modal.open { display: flex; animation: strategyFadeIn 0.25s ease-out; }
@keyframes strategyFadeIn { from { opacity: 0; } to { opacity: 1; } }
.strategy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 17, 32, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.strategy-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 880px;
  height: 90vh;
  max-height: 900px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.45);
  transform: translateY(0);
  animation: strategySlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.strategy-modal-header {
  padding: 32px 56px 20px 40px;
  border-bottom: 1px solid #E2E8F0;
  text-align: center;
}
.strategy-modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  color: #0F172A;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.strategy-modal-subtitle {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.strategy-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
@keyframes strategySlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.strategy-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0F172A;
  font-size: 24px;
  line-height: 1;
  border: 0;
  cursor: pointer;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.strategy-modal-close:hover { background: rgba(15, 23, 42, 0.12); }
@media (max-width: 640px) {
  .strategy-modal { padding: 12px; }
  .strategy-modal-dialog { height: 92vh; border-radius: 16px; }
  .strategy-modal-header { padding: 24px 48px 16px 20px; }
  .strategy-modal-title { font-size: 1.375rem; }
  .strategy-modal-subtitle { font-size: 0.875rem; }
}

/* ============ Featured Case Study Stack (Hero) ============ */
.case-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  height: 540px;
  padding-left: 48px;     /* room for vertical label + rail */
  padding-right: 0;
  padding-bottom: 90px;   /* room for prev/next controls */
}
@media (min-width: 1024px) {
  .case-stack { max-width: none; height: 600px; padding-left: 56px; }
}
@media (max-width: 480px) {
  .case-stack { height: 500px; padding-left: 36px; padding-bottom: 80px; }
  .case-stack-rail { left: 26px; }
  .case-stack-label { left: 4px; font-size: 10px; letter-spacing: 0.28em; }
  .case-card { border-radius: 18px; }
  .case-card-suburb { font-size: 19px; }
  .case-card-stat-value { font-size: 15px; }
  .case-card-stat-label { font-size: 10px; }
  .case-card-body { padding: 16px 18px 20px; }
  .case-card-arrow { width: 38px; height: 38px; right: 16px; bottom: 16px; }
  .case-card-stats { grid-template-columns: 1fr 1fr; gap: 8px; padding-right: 44px; }
  /* Tighter peek offsets so cards don't bleed off-screen */
  .case-card.peek-1 { transform: translateX(20px) scale(0.96); }
  .case-card.peek-2 { transform: translateX(38px) scale(0.92); }
  .case-card.peek-3 { transform: translateX(54px) scale(0.88); }
  .case-card.peek-4 { transform: translateX(68px) scale(0.85); }
}
.case-stack-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  font-weight: 600;
  color: #94A3B8;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.case-stack-rail {
  position: absolute;
  left: 42px;
  top: 0;
  bottom: 90px;
  width: 2px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}
.case-stack-rail-fill {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  background: linear-gradient(to bottom, #1B6B7A, #52A8B6);
  border-radius: 999px;
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  height: 20%;
}
.case-stack-rail-dot {
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #1B6B7A;
  box-shadow: 0 0 0 4px rgba(27, 107, 122, 0.18);
  transform: translate(-50%, -50%);
  transition: top 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  top: 20%;
}
.case-stack-cards {
  position: relative;
  width: 100%;
  height: 100%;
}
.case-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25),
              0 8px 20px -8px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.55s ease,
              filter 0.55s ease;
  will-change: transform, opacity;
  transform-origin: center right;
}
/* Active (front) card */
.case-card.is-active { z-index: 5; transform: translateX(0) scale(1); opacity: 1; filter: none; }
/* Peek positions for next 4 cards */
.case-card.peek-1 { z-index: 4; transform: translateX(36px) scale(0.96); opacity: 1; filter: brightness(0.78) saturate(0.8); }
.case-card.peek-2 { z-index: 3; transform: translateX(68px) scale(0.92); opacity: 0.95; filter: brightness(0.65) saturate(0.7); }
.case-card.peek-3 { z-index: 2; transform: translateX(96px) scale(0.88); opacity: 0.85; filter: brightness(0.55) saturate(0.6); }
.case-card.peek-4 { z-index: 1; transform: translateX(120px) scale(0.85); opacity: 0.7; filter: brightness(0.45) saturate(0.5); }
/* Outgoing (exit animation) */
.case-card.is-leaving { z-index: 6; transform: translateX(-110%) scale(0.95); opacity: 0; filter: none; }

/* Card inner content (built by JS) */
.case-card-inner { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; }
.case-card-image {
  position: relative;
  height: 64%;
  overflow: hidden;
  background: #E2E8F0;
}
.case-card-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
.case-card-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0) 65%, rgba(255,255,255,0.95) 100%);
  pointer-events: none;
}
.case-card-badge {
  position: absolute;
  top: 18px; left: 18px;
  background: #1B6B7A;
  color: #fff;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  z-index: 2;
}
.case-card-counter {
  position: absolute;
  top: 18px; right: 22px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  letter-spacing: 0.08em;
  z-index: 2;
}
.case-card-body {
  flex: 1 1 auto;
  padding: 22px 26px 24px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  position: relative;
}
.case-card-suburb {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.01em;
}
.case-card-suburb i { color: #1B6B7A; }
.case-card-strategy {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  color: #475569;
  margin: 4px 0 18px;
}
.case-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: auto;
}
.case-card-stat-label {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: 0.05em;
  margin: 0 0 4px;
  text-transform: none;
}
.case-card-stat-value {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.01em;
}
.case-card-stat-value.is-accent { color: #1B6B7A; }
.case-card-arrow {
  position: absolute;
  right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: #1B6B7A;
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(27, 107, 122, 0.55);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.case-card-arrow:hover { transform: translateX(3px); background: #155461; }

/* Controls (prev/next) under stack */
.case-stack-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
}
.case-stack-btn {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
  background: #ffffff;
  color: #1B6B7A;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.case-stack-btn:hover { background: #1B6B7A; color: #fff; border-color: #1B6B7A; box-shadow: 0 10px 22px -8px rgba(27,107,122,0.5); }
.case-stack-btn-next { background: #1B6B7A; color: #fff; border-color: #1B6B7A; }
.case-stack-btn-next:hover { background: #155461; border-color: #155461; }

/* ============ Legal / Long-form Prose (Privacy, Terms, Disclosure pages) ============ */
.legal-prose { color: #334155; font-family: 'Manrope', system-ui, sans-serif; font-size: 1rem; line-height: 1.75; }
.legal-prose p { margin: 0 0 1.25em; }
.legal-prose h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.65rem; font-weight: 600; color: #0F172A; margin: 2.5em 0 0.75em; letter-spacing: -0.01em; line-height: 1.25; }
.legal-prose h3 { font-family: 'Manrope', system-ui, sans-serif; font-size: 1.15rem; font-weight: 600; color: #0F172A; margin: 2em 0 0.5em; }
.legal-prose ul { margin: 0 0 1.5em 1.5em; padding: 0; list-style: disc; }
.legal-prose ul ul { margin: 0.4em 0 0.4em 1.25em; list-style: circle; }
.legal-prose li { margin-bottom: 0.5em; }
.legal-prose strong { color: #0F172A; font-weight: 600; }
.legal-prose a { color: #1B6B7A; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal-prose a:hover { color: #155461; }
.legal-prose .legal-updated { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid #E2E8F0; color: #94A3B8; font-size: 0.875rem; }
@media (max-width: 640px) {
  .legal-prose { font-size: 0.95rem; }
  .legal-prose h2 { font-size: 1.4rem; }
}
