/* ===== Lodestone Investment Limited - Custom Styles ===== */

body { font-family: 'Inter', sans-serif; scroll-behavior: smooth; overflow-x: hidden; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 100; transform: translateY(-200%); background: #1e3a5f; color: #fff; border-radius: .5rem; padding: .75rem 1rem; font-weight: 600; transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #c9a84c; outline-offset: 3px; }
.brand-lockup { text-decoration: none; }
.brand-logo { display: block; width: auto; height: 2.5rem; max-width: min(50vw, 10rem); object-fit: contain; }
.brand-logo-mobile-menu { height: 2rem; max-width: 10rem; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: .6rem; background: linear-gradient(145deg, #1e3a5f, #0b2a3e); box-shadow: 0 6px 14px rgba(11,42,62,.2); color: #c9a84c; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; line-height: 1; }
.brand-mark-footer { background: rgba(201,168,76,.16); box-shadow: none; }

@media (min-width: 768px) {
  .brand-logo { height: 3rem; max-width: 12rem; }
}

/* ---- Glass & Gradients ---- */
.glass-card { background: rgba(255,255,255,0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.2); }
.gradient-accent { background: linear-gradient(145deg, #1e3a5f 0%, #2a5f7a 100%); }
.gradient-hero { background: linear-gradient(135deg, #0b2a3e 0%, #1e4b66 100%); }
.shadow-premium { box-shadow: 0 20px 40px -12px rgba(0,20,30,0.25), 0 8px 24px -6px rgba(0,0,0,0.08); }
.hover-lift { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -16px rgba(0,20,30,0.3); }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: #c9a84c; margin-top: 8px; border-radius: 4px; }

/* ---- Nav ---- */
.nav-link { position: relative; color: #ffffff; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: #c9a84c; transition: width 0.2s ease; }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: #c9a84c; font-weight: 600; }
/* mobile active indicator */
.mobile-nav-link { display: flex; align-items: center; min-height: 3.25rem; border-radius: .75rem; padding: .75rem 1rem; font-size: 1rem; color: #1e3a5f; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.mobile-nav-link::after { display: none; }
.mobile-nav-link:hover { background-color: rgba(30,58,95,0.06); color: #1e3a5f; transform: translateX(3px); }
.mobile-nav-link.active { background-color: rgba(201,168,76,0.10); color: #c9a84c; font-weight: 700; box-shadow: inset 3px 0 0 #c9a84c; }

/* ---- Mobile Menu ---- */
.menu-toggle, .menu-close { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid rgba(30,58,95,.12); border-radius: .75rem; background: #fff; color: #1e3a5f; box-shadow: 0 4px 14px rgba(11,42,62,.08); transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.menu-toggle:hover, .menu-close:hover { background: #1e3a5f; color: #fff; transform: translateY(-1px); }
.mobile-menu-backdrop { position: fixed; inset: 0; z-index: 55; visibility: hidden; background: rgba(8,27,43,.48); opacity: 0; backdrop-filter: blur(2px); transition: opacity .3s ease, visibility .3s ease; }
.mobile-menu-backdrop.open { visibility: visible; opacity: 1; }
.mobile-menu { position: fixed; top: 0; right: 0; z-index: 60; display: flex; width: min(22rem, calc(100vw - 2.5rem)); height: 100dvh; flex-direction: column; visibility: hidden; overflow: hidden; background: rgba(255,255,255,.98); box-shadow: -24px 0 60px rgba(8,27,43,.22); transform: translateX(105%); transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility .35s; }
.mobile-menu.open { visibility: visible; transform: translateX(0); }
body.menu-open { overflow: hidden; }

/* ---- WhatsApp Floating Button ---- */
.whatsapp-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 9999px; background: #25D366; color: #fff; font-size: 1.85rem; box-shadow: 0 10px 24px rgba(37,211,102,0.4); transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease; animation: whatsappPulse 2.5s infinite; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { background: #1ebe5b; color: #fff; transform: scale(1.08); box-shadow: 0 14px 32px rgba(37,211,102,0.5); animation-play-state: paused; }
@keyframes whatsappPulse { 0% { box-shadow: 0 10px 24px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.45); } 70% { box-shadow: 0 10px 24px rgba(37,211,102,0.4), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 10px 24px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0); } }
@media (max-width: 640px) { .whatsapp-float { right: 1rem; bottom: 1rem; width: 3.25rem; height: 3.25rem; font-size: 1.65rem; } }

/* ---- Form ---- */
.input-error { border-color: #b91c1c; background-color: #fef2f2; }
.error-message { color: #b91c1c; font-size: 0.85rem; margin-top: 4px; display: none; }

/* ---- Hero Carousel ---- */
.hero-carousel { position: relative; min-height: 100vh; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity 0.8s ease, transform 0.8s ease; transform: scale(1.05); }
.hero-slide.active { opacity: 1; transform: scale(1); z-index: 10; }
.hero-slide-bg { position: absolute; inset: 0; }
.hero-slide-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11,42,62,0.85) 0%, rgba(30,75,102,0.7) 100%); }
.hero-carousel-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.3); border: 2px solid rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-carousel-dot.active { background: #c9a84c; border-color: #c9a84c; transform: scale(1.2); }
.hero-carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.1); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.2); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; font-size: 1.2rem; }
.hero-carousel-arrow:hover { background: rgba(201,168,76,0.3); border-color: #c9a84c; }
.hero-carousel-arrow.prev { left: 20px; }
.hero-carousel-arrow.next { right: 20px; }
@media (max-width: 768px) { .hero-carousel-arrow { display: none; } }

/* ---- Hero slide content animations ---- */
.hero-slide.active .hero-animate-in > * { animation: heroFadeUp 0.7s ease forwards; opacity: 0; }
.hero-slide.active .hero-animate-in > *:nth-child(1) { animation-delay: 0.1s; }
.hero-slide.active .hero-animate-in > *:nth-child(2) { animation-delay: 0.25s; }
.hero-slide.active .hero-animate-in > *:nth-child(3) { animation-delay: 0.4s; }
.hero-slide.active .hero-animate-in > *:nth-child(4) { animation-delay: 0.55s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .hero-slide { transform: none; }
}

/* ---- Parallax Sections ---- */
.parallax-section { position: relative; overflow: hidden; }
.parallax-bg { position: absolute; inset: 0; width: 100%; height: 130%; transform: translateY(0); will-change: transform; }
.parallax-bg::after { content: ''; position: absolute; inset: 0; }
.parallax-overlay-dark::after { background: linear-gradient(135deg, rgba(11,42,62,0.85) 0%, rgba(30,75,102,0.75) 100%); }
.parallax-overlay-light::after { background: rgba(248,246,241,0.92); }

/* ---- About image composition ---- */
.about-visual { position: relative; min-height: 520px; isolation: isolate; }
.about-visual::before { content: ''; position: absolute; inset: 2rem 2rem 1.75rem 3.5rem; z-index: -1; border: 1px solid rgba(201,168,76,0.28); border-radius: 2rem; background: linear-gradient(145deg, rgba(248,246,241,0.9), rgba(255,255,255,0.65)); }
.about-visual::after { content: ''; position: absolute; top: 1.4rem; right: 6.25rem; z-index: -1; width: 26%; height: 62%; background: rgba(201,168,76,0.1); border-radius: 1.4rem; transform: skewX(-8deg); }
.about-visual__frame { position: absolute; z-index: 1; overflow: hidden; background: #fff; }
.about-visual__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(11,42,62,0.34)); pointer-events: none; }
.about-visual__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.about-visual:hover .about-visual__frame img { transform: scale(1.045); }
.about-visual__frame--primary { inset: 0 5.5rem 5.25rem 0; border-radius: 1.75rem; }
.about-visual__frame--secondary { right: 0; bottom: 0; z-index: 2; width: 48%; aspect-ratio: 4 / 3; border: 8px solid #fff; border-radius: 1.25rem; }
.about-visual__note { position: absolute; left: 1.25rem; bottom: 2rem; z-index: 3; display: flex; align-items: center; gap: 0.875rem; max-width: 19rem; padding: 1rem 1.1rem; border: 1px solid rgba(30,58,95,0.12); border-radius: 1rem; background: rgba(255,255,255,0.94); box-shadow: 0 18px 45px rgba(15,23,42,0.16); backdrop-filter: blur(14px); }
.about-visual__icon { display: grid; flex: 0 0 3rem; width: 3rem; height: 3rem; place-items: center; border-radius: 0.875rem; color: #fff; background: linear-gradient(135deg, #1e3a5f, #2f5f82); }
.about-visual__icon i { color: #c9a84c; font-size: 1.25rem; }
.about-visual__note span:not(.about-visual__icon) { display: block; color: #1e3a5f; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.about-visual__note p { margin: 0.15rem 0 0; color: #4b5563; font-size: 0.9rem; line-height: 1.45; }

@media (max-width: 767px) {
  .about-visual { display: grid; min-height: auto; max-width: 36rem; margin-inline: auto; padding-bottom: 0; }
  .about-visual::before { inset: 1rem 0.8rem 3.7rem 1rem; border-radius: 1.5rem; }
  .about-visual::after { top: 0.8rem; right: 0.35rem; width: 46%; height: 12rem; }
  .about-visual__frame { position: relative; }
  .about-visual__frame--primary { inset: auto; width: calc(100% - 1rem); aspect-ratio: 4 / 3; border-radius: 1.4rem; }
  .about-visual__frame--secondary { right: auto; bottom: auto; justify-self: end; z-index: 2; width: min(72%, 21rem); margin-top: -3.75rem; border-width: 6px; border-radius: 1rem; }
  .about-visual__note { position: relative; left: auto; bottom: auto; z-index: 3; max-width: 100%; margin-top: 1rem; padding: 0.9rem; }
}

@media (max-width: 420px) {
  .about-visual::before { inset: 0.8rem 0.4rem 3.4rem 0.6rem; }
  .about-visual::after { height: 9rem; }
  .about-visual__frame--primary { width: calc(100% - 0.6rem); }
  .about-visual__frame--secondary { width: 68%; }
  .about-visual__note { gap: 0.7rem; }
  .about-visual__icon { flex-basis: 2.6rem; width: 2.6rem; height: 2.6rem; }
  .about-visual__note p { font-size: 0.84rem; }
}

/* ---- Owl Carousel Custom Theme ---- */
.client-carousel .owl-stage { display: flex; align-items: stretch; padding: 10px 0; }
.client-carousel .owl-item { display: flex; align-items: stretch; }
.client-carousel .owl-item > div { width: 100%; }
.client-carousel .owl-nav { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.client-carousel .owl-nav button { width: 44px; height: 44px; border-radius: 50% !important; background: #f8f6f1 !important; border: 1px solid #e5e0d6 !important; color: #1e3a5f !important; font-size: 18px !important; transition: all 0.3s ease; display: flex !important; align-items: center; justify-content: center; }
.client-carousel .owl-nav button:hover { background: #c9a84c !important; border-color: #c9a84c !important; color: #fff !important; }
.client-carousel .owl-nav button span { display: none; }
.client-carousel .owl-nav button:first-child::before { content: '\f104'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
.client-carousel .owl-nav button:last-child::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
.client-carousel .owl-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.client-carousel .owl-dots .owl-dot span { width: 10px; height: 10px; border-radius: 50%; background: #d1ccc4; transition: all 0.3s ease; margin: 0; }
.client-carousel .owl-dots .owl-dot.active span { width: 28px; border-radius: 5px; background: #c9a84c; }
.client-carousel .owl-dots .owl-dot:hover span { background: #c9a84c; }

/* ---- Scroll-triggered reveal ---- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.fade-in-scale { opacity: 0; transform: scale(0.9); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-scale.visible { opacity: 1; transform: scale(1); }

/* ---- Admin Charts ---- */
canvas {
    max-width: 100% !important;
    max-height: 250px !important;
}

.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}
