/* style.css */
:root {
  --bg-color: #f5f5f7; /* Apple off-white */
  --bg-alt: #ffffff; /* Pure white segments */
  --text-primary: #1d1d1f; 
  --text-secondary: #86868b;
  --text-muted: #a1a1a6;
  --accent: #111111;
  --border-radius: 24px; /* Soft round edges */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08); /* Minimal depth */
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: clip; /* Clamps X-axis width strictly without forming a new scroll container that would break position: sticky children */
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { font-size: 1.125rem; font-weight: 400; color: var(--text-secondary); max-width: 65ch; margin-bottom: 1.5rem; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }

.text-gradient { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 2rem; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245, 245, 247, 0.70);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}
.nav-container {
  max-width: 1400px; margin: 0 auto; padding: 1.25rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); }
.nav-links a:hover { color: var(--text-secondary); }

/* Buttons */
.btn {
  display: inline-block; padding: 0.8rem 1.75rem;
  font-weight: 600; font-size: 1rem; border-radius: 40px; 
  cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  background-color: var(--accent); color: #fff; text-align: center;
}
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.9rem; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.125rem; }
.btn-invert { background-color: #fff; color: var(--accent); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.btn-invert:hover { box-shadow: 0 8px 15px rgba(255,255,255,0.1); }

/* Hero */
.hero {
  min-height: 100vh; display: flex; justify-content: center; align-items: center;
  padding: 8rem 2rem; text-align: center; background: var(--bg-color);
  position: relative; overflow: hidden;
}

/* Live Ambient Art */
.hero-art {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden; z-index: 1; pointer-events: none;
}
.orb-wrapper {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  will-change: transform;
}
.cursor-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 60%);
  top: -300px; left: -300px; mix-blend-mode: overlay; opacity: 0;
  pointer-events: none; z-index: 5; will-change: transform;
  transition: opacity 0.5s ease;
}
.hero:hover .cursor-glow { opacity: 1; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); -webkit-filter: blur(80px);
  will-change: transform; opacity: 0.65;
}
.orb-1 {
  width: 65vw; height: 65vw; max-width: 800px; max-height: 800px;
  background: #A8C0D8; top: -10%; left: -10%;
  animation: orb-float-1 22s infinite alternate ease-in-out;
}
.orb-2 {
  width: 55vw; height: 55vw; max-width: 600px; max-height: 600px;
  background: #CBBFB5; bottom: -20%; right: -10%;
  animation: orb-float-2 28s infinite alternate-reverse ease-in-out;
}
.orb-3 {
  width: 50vw; height: 50vw; max-width: 500px; max-height: 500px;
  background: #E0E4EB; top: 30%; left: 30%;
  animation: orb-float-3 25s infinite alternate ease-in-out;
}

@keyframes orb-float-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10vw, 15vh) scale(1.15); }
}
@keyframes orb-float-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-15vw, -10vh) scale(1.2); }
}
@keyframes orb-float-3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(12vw, -12vh) scale(1.1); }
}

/* Traveling Premium Lines */
.traveling-lines {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2; pointer-events: none; opacity: 0.9;
}
.travel-line-1 { animation: line-travel-1 40s linear infinite; stroke-dasharray: 600 800; }
.travel-line-2 { animation: line-travel-2 60s linear infinite; stroke-dasharray: 800 1000; }
.travel-line-3 { animation: line-travel-3 50s linear infinite; stroke-dasharray: 400 600; }

@keyframes line-travel-1 { to { stroke-dashoffset: -2800; } }
@keyframes line-travel-2 { to { stroke-dashoffset: -3600; } }
@keyframes line-travel-3 { to { stroke-dashoffset: -2000; } }

/* Premium Scroll Toggle Button */
.scroll-toggle {
    position: absolute; top: 6rem; right: 2rem;
    background: transparent; border: none; color: rgba(17,17,17,0.2);
    cursor: pointer; opacity: 0; transition: all 0.4s ease; z-index: 20;
}
.scroll-toggle::before { content: ''; position: absolute; top: -80px; bottom: -80px; left: -80px; right: -2rem; z-index: -1; }
.scroll-toggle:hover, .scroll-toggle:focus { opacity: 1; color: #111; }
.scroll-toggle svg { transition: transform 0.4s ease; }
.scroll-toggle:hover svg { transform: scale(1.1); }
.scroll-toggle.is-active { color: #111; opacity: 0.6; }
.scroll-toggle.is-active:hover { opacity: 1; }

/* Lenis Boilerplate */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.hero-content {
  max-width: 900px; display: flex; flex-direction: column; align-items: center; gap: 2rem;
  position: relative; z-index: 10;
}
.hero-title {
  font-size: clamp(3.5rem, 8vw, 6.5rem); letter-spacing: -0.04em; font-weight: 800;
}
.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem); max-width: 800px; line-height: 1.4; color: var(--text-secondary);
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; }

/* Trust Badge */
.hero-trust {
  margin-top: 2rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  animation: fadeIn 2s ease-in-out;
}
.trust-stars { 
  font-size: 1rem; 
  display: flex; gap: 4px;
}
.trust-stars span {
  display: inline-block;
  opacity: 0.3; filter: grayscale(100%);
  animation: star-breathe-wave 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
  animation-delay: var(--delay);
  will-change: transform, filter, opacity;
}
@keyframes star-breathe-wave {
  0%, 100% { 
    opacity: 0.3; filter: grayscale(100%); 
    text-shadow: 0 0 0px rgba(0,0,0,0); transform: translateY(0) scale(1);
  }
  15% { 
    opacity: 1; filter: grayscale(10%); 
    text-shadow: 0 0 14px rgba(255, 215, 0, 0.6); transform: translateY(-2px) scale(1.15);
  }
  30% {
    opacity: 0.3; filter: grayscale(100%); 
    text-shadow: 0 0 0px rgba(0,0,0,0); transform: translateY(0) scale(1);
  }
}
.hero-trust p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }
.hero-trust strong { color: var(--text-primary); font-weight: 600; }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; z-index: 10;
  color: var(--text-muted); font-size: 0.70rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.15em; pointer-events: none;
}
.mouse {
  width: 22px; height: 34px; border: 2px solid var(--text-muted); border-radius: 12px;
  position: relative; opacity: 0.6;
}
.mouse::before {
  content: ''; width: 4px; height: 4px; background: var(--text-primary); border-radius: 50%;
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  animation: scroll-wheel 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}
@keyframes scroll-wheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Sections */
.section { padding: 12rem 2rem; }
.bg-alt { background-color: var(--bg-alt); }
.container { max-width: 1400px; margin: 0 auto; }
.section-title { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1.5rem; letter-spacing: -0.03em; }
.section-desc { font-size: clamp(1.125rem, 2vw, 1.35rem); line-height: 1.6; }
.overline { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 1rem; }

/* Grids */
.container-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; align-items: center; }
.container-grid.reverse .grid-text { order: 2; padding-left: 4rem; }
.container-grid.reverse .grid-image { order: 1; }

.grid-image, .expert-frame { 
  overflow: hidden; 
  background-color: #EFEFF4;
  box-shadow: var(--shadow-sm); 
}
.grid-image-family {
  border-radius: var(--border-radius);
  background-color: transparent;
  box-shadow: none;
  overflow: visible;
}
.grid-image img, .expert-frame img { 
  width: 100%; height: auto; display: block; object-fit: cover; 
  border-radius: var(--border-radius); 
}
.expert-frame img { max-height: 750px; object-position: center top; }
.expert-role { font-size: 1.25rem; font-weight: 500; margin-bottom: 2.5rem; }

/* Testimonials */
.testimonial-quote {
  font-size: 1.5rem; font-weight: 600; font-style: italic; color: var(--text-primary);
  border-left: 4px solid var(--accent); padding-left: 1.5rem; margin-top: 3.5rem; line-height: 1.4;
}

/* Services Array */
.services-grid {
  display: flex; flex-direction: column; gap: 80vh; margin-top: 5rem; max-width: 850px; margin-left: auto; margin-right: auto;
  position: relative; padding-bottom: 5vh; margin-bottom: 0;
}
.card {
  display: flex; flex-direction: column; background: #ffffff;
  padding: 2.5rem 2rem 1.5rem 2rem; gap: 1.5rem; 
  border: 1px solid rgba(0,0,0,0.08); border-radius: 0;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.02);
  position: sticky; transform-origin: center center;
  --card-rotate: 0deg;
}
.card:nth-child(1) { top: 12vh; z-index: 10; --card-rotate: -2.5deg; }
.card:nth-child(2) { top: 14vh; z-index: 11; --card-rotate: 1.5deg; }
.card:nth-child(3) { top: 16vh; z-index: 12; --card-rotate: -1deg; }

.card-image-wrap { border-radius: 0; overflow: hidden; height: 550px; background-color: #EFEFF4;}
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.abstract-placeholder { background: #f0f0f4; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.card-content { text-align: center; padding: 0 1rem; }
.card-content h3 { font-size: 2.25rem; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.card-content p { font-size: 1.15rem; margin-left: auto; margin-right: auto; margin-bottom: 0; }

/* Services Prototype View Toggle / Conventional 3-Grid Overrides */
.services-toggle {
    position: absolute; top: 2rem; right: 2rem;
    background: transparent; border: none; color: rgba(0,0,0,0.15);
    cursor: pointer; opacity: 0; transition: all 0.4s ease; z-index: 20;
}
.services-toggle::before { content: ''; position: absolute; top: -80px; bottom: -80px; left: -80px; right: -2rem; z-index: -1; }
.services-toggle:hover, .services-toggle:focus { opacity: 1; color: #111; }
.services-toggle svg { transition: transform 0.4s ease; }
.services-toggle:hover svg { transform: rotate(90deg); }

.services-section.is-conventional .services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; 
    margin-top: 4rem; max-width: 1100px; padding-bottom: 0; margin-bottom: 0;
}
.services-section.is-conventional .card {
    position: relative !important; top: auto !important;
    padding: 0; border-radius: var(--border-radius); background: transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); border: none;
    --card-rotate: 0deg !important; gap: 0; height: 420px;
    cursor: pointer; overflow: hidden; transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.services-section.is-conventional .card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15); z-index: 100;
}
.services-section.is-conventional .card-image-wrap {
    height: 100%; border-radius: 0; margin: 0; background-color: #EFEFF4; position: relative;
}
.services-section.is-conventional .card-image-wrap img {
    border-radius: 0 !important;
}
.services-section.is-conventional .card-image-wrap::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
}
.services-section.is-conventional .card-content {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
    text-align: left; padding: 2rem; color: #fff;
}
.services-section.is-conventional .card-content h3 {
    font-size: 1.5rem; margin-bottom: 0; color: #fff; letter-spacing: -0.01em;
}
.services-section.is-conventional .card-content p {
    display: none; /* Hidden, pushed to modal instead */
}
.services-section.is-conventional .card-content::after {
    content: 'View Details ↗'; display: block; margin-top: 0.8rem;
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.7);
    opacity: 0; transform: translateY(10px); transition: all 0.3s ease;
}
.services-section.is-conventional .card:hover .card-content::after {
    opacity: 1; transform: translateY(0); color: #fff;
}

/* Service Modal Styles */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease; padding: 1rem;
}
.modal-overlay.is-active { opacity: 1; pointer-events: auto; }
.modal-content {
    background: var(--bg-color); width: 100%; max-width: 550px; border-radius: var(--border-radius); overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4); border: 1px solid rgba(0,0,0,0.05);
    transform: scale(0.95) translateY(20px); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.modal-overlay.is-active .modal-content { transform: scale(1) translateY(0); }
.modal-close {
    position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px;
    background: rgba(0,0,0,0.4); color: #fff; border: none; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: background 0.3s; backdrop-filter: blur(4px);
}
.modal-close:hover { background: rgba(0,0,0,0.8); }
.modal-image-wrap { height: 300px; overflow: hidden; background: #e5e5ea; }
.modal-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 2.5rem; text-align: left; }
.modal-body h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--text-primary); letter-spacing: -0.02em; }
.modal-body p { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }
body.modal-open { overflow: hidden; }
@media (max-width: 1024px) {
  .services-section.is-conventional .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .services-section.is-conventional .services-grid { grid-template-columns: 1fr; }
}

/* Sub Footer (State A / Base) */
.footer { position: relative; background-color: var(--text-primary); color: #fff; padding: 18rem 2rem 4rem; transition: padding 0.5s ease; }
.footer .hero-title { color: #fff; margin-bottom: 1.5rem; font-size: clamp(4rem, 8vw, 7rem); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 14rem; padding-top: 3rem; display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.95rem; font-weight: 500;}

/* Contact Section Toggle Button */
.contact-toggle {
    position: absolute; top: 2rem; right: 2rem;
    background: transparent; border: none; color: rgba(255,255,255,0.15);
    cursor: pointer; opacity: 0; transition: all 0.4s ease; z-index: 20;
}
.contact-toggle::before { content: ''; position: absolute; top: -80px; bottom: -80px; left: -80px; right: -2rem; z-index: -1; }
.contact-toggle:hover, .contact-toggle:focus { opacity: 1; color: #fff; }
.contact-toggle svg { transition: transform 0.4s ease; }
.contact-toggle:hover svg { transform: rotate(90deg); }

/* State B (Expanded Contact Format) */
.contact-full { opacity: 1; transition: opacity 0.5s ease; width: 100%; max-width: 1000px; margin: 0 auto; text-align: left; }
.contact-full .section-title { color: #fff; font-size: 3rem; margin-bottom: 1rem; }
.contact-full .section-desc { color: var(--text-muted); font-size: 1.25rem; margin-bottom: 0; }
.footer.is-expanded .contact-minimal { display: none; }
.footer.is-expanded .contact-full { display: block !important; opacity: 1; animation: fadeIn 0.8s ease forwards; }
.footer.is-expanded { padding-top: 6rem; }

/* Expanded Form & Info Grid */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6rem; margin-bottom: 5rem; }
.contact-details { list-style: none; padding: 0; margin-top: 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
.contact-details li strong { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.4); }
.minimal-form { display: flex; flex-direction: column; gap: 2rem; margin-top: 1rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 1rem 0; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-family: inherit; font-size: 1.1rem; outline: none; transition: border-color 0.4s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus, .form-group textarea:focus { border-bottom-color: #fff; }
.form-group textarea { resize: none; }
.w-100 { width: 100%; padding: 1.3rem 0; font-size: 1.1rem; border: 1px solid #fff; background: transparent; color: #fff; cursor: pointer; transition: all 0.3s; margin-top: 1rem;}
.w-100:hover { background: #fff; color: var(--text-primary); }

/* Contact State Minimal Overrides */
.contact-minimal .section-desc { color: var(--text-muted); margin-bottom: 4rem; font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
.contact-minimal .btn { margin-top: 1rem; padding: 1.3rem 3.5rem; font-size: 1.25rem; }

/* Real Interactive Map */
.map-container {
    width: 100%; height: 350px; background: #161616; border-radius: 4px;
    position: relative; overflow: hidden;
}
.map-container iframe {
    width: 100%; height: 100%; border: none;
    filter: grayscale(100%) contrast(1.1) brightness(0.8);
    transition: filter 0.6s ease;
    background: #eaeaea;
}
.map-container iframe:hover {
    filter: grayscale(0%) contrast(1) brightness(1);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
}
.footer-links { display: flex; gap: 2rem; }

/* Animations & Reveal */
.reveal { opacity: 0; transform: translateY(50px) rotate(var(--card-rotate, 0deg)); transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in-view { opacity: 1; transform: translateY(0) rotate(var(--card-rotate, 0deg)); }
.reveal-delay { transition-delay: 0.15s; }

/* Parallax image styles */
.parallax-img {
  --image-scale: 1.08;
  --parallax-offset: 0px;
  transform: translate3d(0, var(--parallax-offset), 0) scale(var(--image-scale));
  will-change: transform;
  transform-origin: center center;
}

.family-image {
  --image-scale: 1;
}

.workshop-image {
  --image-scale: 1.08;
  object-position: center 58%;
}

.mentorship-image {
  --image-scale: 1.08;
  object-position: center 30%;
}

.wealth-image {
  --image-scale: 1.08;
  object-position: center 50%;
}

@media (max-width: 1024px) {
  .container-grid { gap: 4rem; }
  .container-grid.reverse .grid-text { padding-left: 0; }
  .section { padding: 8rem 2rem; }
}

@media (max-width: 768px) {
  .container-grid { grid-template-columns: 1fr; gap: 3rem; }
  .container-grid.reverse .grid-text { order: 1; }
  .container-grid.reverse .grid-image { order: 2; }
  .nav-links { display: none; }
  .section { padding: 6rem 1.5rem; }
  .hero { padding: 8rem 1.5rem; }
  .card { padding: 2rem; }
  .card-image-wrap { height: 250px; }
  .hero-title { font-size: 3rem; }
  .footer { padding: 8rem 1.5rem 2rem; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 2rem; margin-top: 6rem; }
}
