:root {
  --navy: #293b58;
  --navy-2: #1e2c44;
  --navy-3: #16233a;
  --navy-700: #354a66;
  --gold: #b0903b;
  --gold-2: #d0b050;
  --cream: #faf8f5;
  --cream-2: #f3efe9;
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;
  --muted: #757575;
}



body {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-serif {
  font-family: "Fraunces", Georgia, serif;
}

.display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

.eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.7rem;
}

.hairline {
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.gold-tick {
  width: 2.4rem;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.95rem 1.6rem;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}

.btn-gold:hover {
  background: var(--gold-2);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(176, 144, 59, 0.6);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(41, 59, 88, 0.5);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn .arr {
  transition: transform 0.3s ease;
}

.btn:hover .arr {
  transform: translateX(4px);
}

/* Nav */
#nav {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#nav.scrolled {
  background: #ffffff;
  backdrop-filter: none;
  box-shadow: 0 4px 20px -5px rgba(41, 59, 88, 0.08), 0 1px 0 rgba(41, 59, 88, 0.05);
}

#nav .logo {
  filter: none;
  transition: filter 0.4s ease;
}

#nav a.navlink {
  color: var(--ink-2);
  transition: color 0.3s ease;
}

#nav a.navlink:hover,
#nav a.navlink.active {
  color: var(--navy);
}

.navlink {
  position: relative;
  font-weight: 600;
  font-size: 0.92rem;
}

.navlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s ease;
}

.navlink:hover::after,
.navlink.active::after {
  width: 100%;
}

#nav.scrolled .cta-pill {
  background: var(--navy);
  color: #fff;
}

.cta-pill {
  background: var(--gold);
  color: #fff;
}

/* Mobile active link */
#mobile-menu a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Hero decor */
.grid-fade {
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
}

.glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.5;
}

/* Cards */
.svc-card {
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -30px rgba(41, 59, 88, 0.4);
  border-color: rgba(176, 144, 59, 0.5);
}

.svc-card:hover .svc-num {
  color: var(--gold);
}

.svc-num {
  transition: color 0.4s ease;
}

/* Reveal on load */
.reveal {
  animation: reveal 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

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

.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.24s; }
.d4 { animation-delay: 0.32s; }
.d5 { animation-delay: 0.4s; }
.d6 { animation-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
  }
}

.field {
  width: 100%;
  border: 1px solid rgba(41, 59, 88, 0.18);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  background: #fff;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 144, 59, 0.16);
}

.marquee {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.link-gold {
  position: relative;
}

.link-gold::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 1.5px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.link-gold:hover::after {
  transform: scaleX(1);
}

/* Custom Scrollbar for better scroll friendliness */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--navy-700);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #1e2c44; /* Navy blue background matching image */
  color: #ffffff !important; /* White chevron */
  border: none; /* No border as shown in image */
  box-shadow: 0 4px 14px rgba(30, 44, 68, 0.25), 0 8px 24px rgba(30, 44, 68, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999; /* Higher z-index to stay on top of all content */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, box-shadow 0.2s ease, visibility 0.3s;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #293b58; /* Lighter navy on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 44, 68, 0.3);
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: #ffffff !important;
  stroke-width: 3px !important;
  display: block;
  transition: transform 0.2s ease;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}



/* Hide desktop CTA pill below lg */
@media (max-width: 1023px) {
  #nav .cta-pill {
    display: none !important;
  }
}

/* Mobile card density */
@media (max-width: 639px) {
  .svc-card {
    padding: 1.1rem;
  }
  .svc-card .p-7 {
    padding: 1rem;
  }
  .svc-card h3 {
    font-size: 1.02rem;
    line-height: 1.25;
  }
  .svc-card p,
  .svc-card li,
  .svc-card span.eyebrow {
    font-size: 0.74rem;
    line-height: 1.45;
  }
  .svc-card .eyebrow {
    font-size: 0.55rem;
    letter-spacing: 0.18em;
  }
  .svc-card svg {
    max-width: 20px;
    max-height: 20px;
  }
  .svc-card .svc-num {
    font-size: 1.35rem;
  }
  .mini-tile {
    padding: 1.1rem;
  }
  .mini-tile .display {
    font-size: 1rem;
    line-height: 1.25;
  }
  .mini-tile p {
    font-size: 0.74rem;
  }
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
  }
  #directors .svc-card > div:last-child {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
  #directors .svc-card > div:last-child span {
    font-size: 0.65rem !important;
    line-height: 1.25 !important;
    text-align: right;
  }
}

/* Premium LinkedIn social link style */
.director-social {
  margin-top: 1rem;
  display: inline-flex;
}

.linkedin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--gold); /* Elegant Gold border */
  color: var(--navy); /* Theme Navy color */
  background: transparent;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  flex-shrink: 0;
}

.linkedin-link:hover {
  border-color: var(--gold-2);
  color: #ffffff; /* Turns white inside on hover */
  background: var(--gold); /* Turns gold background on hover */
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(176, 144, 59, 0.3);
}

.linkedin-link svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
  display: block;
}

/* Make specific last cards span a full row on mobile/responsive layouts below 860px */
@media (max-width: 860px) {
  .director-card-last,
  .service-card-last {
    grid-column: span 2 / span 2;
  }
}
@media (max-width: 767px) {
  .why-card-last {
    grid-column: span 2 / span 2;
  }
}

/* Mobile Sidebar Menu Styles (width < 1024px) */
@media (max-width: 1023px) {
  #menu-overlay {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 40 !important;
    transition: opacity 0.3s ease !important;
    opacity: 0;
    pointer-events: none;
  }
  
  #menu-overlay.opacity-100 {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  #mobile-menu {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 75% !important;
    max-width: 320px !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 50 !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    border-top: none !important;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15) !important;
  }
  
  #mobile-menu:not(.hidden) {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  #menu-close-btn {
    position: absolute !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--navy) !important;
    background: var(--cream) !important;
    border: 1px solid rgba(41, 59, 88, 0.15) !important;
    border-radius: 50% !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 60 !important;
  }

  #menu-close-btn:hover {
    color: var(--gold) !important;
    border-color: var(--gold) !important;
    transform: rotate(90deg) !important;
    box-shadow: 0 4px 12px rgba(176, 144, 59, 0.15) !important;
  }


  #mobile-menu > div {
    width: 100% !important;
    padding: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    text-align: center !important;
  }

  #mobile-menu a {
    font-family: "Fraunces", Georgia, serif !important;
    font-size: 1.85rem !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    color: var(--navy) !important;
    border-bottom: none !important;
    padding: 0.6rem 0 !important;
    transition: all 0.3s ease !important;
    display: inline-block;
  }

  #mobile-menu a:hover,
  #mobile-menu a.active {
    color: var(--gold) !important;
    transform: scale(1.05) !important;
  }

  #mobile-menu .btn-gold {
    margin-top: 1.5rem !important;
    font-size: 1.1rem !important;
    padding: 1.1rem 2rem !important;
    text-align: center !important;
    justify-content: center !important;
    color: #fff !important;
  }
}


@media (max-width: 860px) {
   .mob-image .object-cover
   {
       object-fit: contain;
   }
}

/* Side-Center Toast Notification Styles */
#privy-toast,
.privy-toast {
  position: fixed !important;
  right: 24px !important;
  top: 50% !important;
  transform: translateY(-50%) translateX(50px) !important;
  z-index: 999999 !important;
  max-width: 350px !important;
  width: calc(100vw - 48px) !important;
  padding: 16px 20px !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 6px 16px rgba(0, 0, 0, 0.2) !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  opacity: 0 !important;
  pointer-events: auto !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  font-family: inherit !important;
}

#privy-toast.privy-toast-show,
.privy-toast.privy-toast-show {
  opacity: 1 !important;
  transform: translateY(-50%) translateX(0) !important;
}

.privy-toast-error {
  background-color: #dc2626 !important; /* Bright Red */
  border-left: 5px solid #991b1b !important;
}

.privy-toast-success {
  background-color: #15803d !important; /* Dark Green */
  border-left: 5px solid #166534 !important;
}

.privy-toast-icon {
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0 !important;
  margin-top: 1px !important;
}

.privy-toast-body {
  flex: 1 !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

.privy-toast-close {
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 24px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin-left: 8px !important;
  margin-top: -3px !important;
}

.privy-toast-close:hover {
  color: #ffffff !important;
}

