/* ============================================================
   PYXIS INVESTMENT MANAGEMENT — ENHANCED STYLESHEET
   Same Theme | Premium Quality | Full Responsiveness
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

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

:root {
  --navy:        #0d1b2a;
  --navy-mid:    #14213d;
  --navy-light:  #1a2d50;
  --accent:      #7b2cbf;
  --accent-soft: #d9a5e6;
  --accent-hover:#90629b;
  --white:       #ffffff;
  --off-white:   #f7f9fc;
  --light-grey:  #eef1f6;
  --text-dark:   #1a1a2e;
  --text-mid:    #444;
  --footer-bg:   #111820;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.10);
  --shadow-md:   0 6px 28px rgba(0,0,0,0.16);
  --shadow-lg:   0 16px 56px rgba(0,0,0,0.22);
  --radius:      14px;
  --transition:  0.35s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin:0; padding:0; }
body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem,5vw,3.8rem); font-weight:700; line-height:1.15; }
h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem,3.5vw,2.6rem); font-weight:700; line-height:1.25; }
h3 { font-family: 'Playfair Display', serif; font-size: clamp(1.15rem,2.2vw,1.7rem); font-weight:600; line-height:1.3; }
h4 { font-family: 'Lato', sans-serif; font-size: clamp(0.95rem,1.5vw,1.1rem); font-weight:700; }
p  { font-size: clamp(0.95rem,1.2vw,1.05rem); }

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--navy);
  padding: 0 clamp(16px,4vw,48px);
  height: 80px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo { display:flex; align-items:center; height:100%; flex-shrink:0; }

.logo-img {
  height: 160px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.nav-links { display:flex; align-items:center; gap:2px; }

.nav-item, .dropbtn {
  color: rgba(255,255,255,0.9);
  background: none;
  border: none;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 13px;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}

.dropbtn::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--accent-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  border-radius: 2px;
}

.dropbtn:hover::after, .dropbtn.active::after { transform: scaleX(1); }
.dropbtn:hover, .dropbtn.active { color: var(--accent-soft); }

.dropdown { position: relative; }

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  flex-direction: column;
  background: var(--navy-mid);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.dropdown-content.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  color: rgba(255,255,255,0.85);
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 13px 20px;
  display: block;
  transition: background var(--transition), color var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background: var(--navy-light); color: var(--accent-soft); }

.menu-toggle {
  display: none;
  font-size: 1.7rem;
  color: white;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

/* ===== MOBILE NAV ===== */
@media (max-width: 900px) {
  .navbar { height: 68px; padding: 0 20px; }
  .logo-img { height: 110px; }
  .menu-toggle { display: block; }

  .nav-links {
    display: none !important;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-links.show { display: flex !important; }

  .nav-item, .dropbtn {
    width: 100%;
    text-align: left;
    padding: 16px 24px;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .dropbtn::after { display: none; }

  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    border: none;
    background: rgba(255,255,255,0.04);
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .dropdown-content a { padding: 13px 40px; }
}

@media (max-width: 480px) {
  .navbar { height: 60px; }
  .logo-img { height: 90px; }
  .nav-links { top: 60px; }
}

/* ===== GOVERNANCE BANNER ===== */
.governance-banner {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}

.governance-banner img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center 40%;
  image-rendering: -webkit-optimize-contrast;
  filter: brightness(0.85);
}

@media (max-width: 600px) { .governance-banner img { height: 200px; } }

/* ===== PEOPLE CARDS ===== */
.board-members, .team-category {
  padding: 40px 5% 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.governance-section h2, .teams-section h2 {
  text-align: center;
  color: var(--navy-mid);
  padding: 56px 5% 10px;
}

.board-title, .team-category h3 {
  color: var(--navy-mid);
  font-size: clamp(1.1rem,2vw,1.5rem);
  font-weight: 700;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-grey);
}

.board-members { display: flex; flex-wrap: wrap; gap: 36px; justify-content: center; }
.team-members  { display: flex; flex-wrap: wrap; gap: 36px; justify-content: center; }
.member {
  text-align: center;
  cursor: pointer;
  width: clamp(180px, 22%, 240px);
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);        /* ← shadow lives HERE now, not on the img */
  transition: transform var(--transition), box-shadow var(--transition);
  isolation: isolate;                  /* ← seals the stacking context, kills edge dots */
  will-change: transform;
}

.member-photo {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  box-shadow: none;
  image-rendering: auto;
}
.member:hover {
  transform: scale(1.03) translateY(-5px) translateZ(0);  /* ← Z kept on hover too */
  box-shadow: var(--shadow-lg);
}

/* Remove the old .member:hover .member-photo rule entirely */
.member h3, .member h4 { color: var(--accent); margin-top: 14px; font-size: 1rem; }
.member p { color: var(--text-mid); font-size: 0.88rem; margin-top: 4px; }

/* ===== MODAL (PEOPLE) ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,20,40,0.80);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.modal-content {
  background: var(--white);
  border-radius: 18px;
  padding: clamp(28px,5vw,52px);
  max-width: 600px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.35s cubic-bezier(0.34,1.4,0.64,1) both;
}

@keyframes modalIn {
  from { opacity:0; transform: scale(0.88) translateY(24px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}

.modal-content .member-photo {
  width: 130px;
  height: 165px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  float: left;
  margin: 0 24px 16px 0;
  box-shadow: var(--shadow-sm);
}

.modal-content h3 { color: var(--accent); margin-bottom: 4px; }
.modal-content h4 { color: var(--navy-mid); font-size: 0.95rem; margin-bottom: 4px; }
.modal-content p  { color: var(--text-mid); font-size: 0.95rem; line-height: 1.75; margin-top: 12px; }
.modal-content .clear { clear: both; }

.close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.8rem;
  color: #999;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
}
.close:hover { color: var(--accent); }

/* ===== HR ===== */
.p-line { border: none; border-top: 1px solid var(--light-grey); margin: 0; }
hr.hero-line { border: none; margin: 0; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--white);
  color: var(--navy-mid);
  padding: 15px 38px;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(123,44,191,0.38);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--footer-bg);
  color: #aaa;
  padding: clamp(48px,6vw,88px) 0 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px,5%,60px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: clamp(32px,5vw,64px);
}

.footer-left { display:flex; flex-direction:row; gap:clamp(24px,4vw,48px); align-items:flex-start; }

.footer-logo .logo-img {
  width: clamp(120px,10vw,180px);
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: clamp(12px,2vw,24px);
}

.footer-links a {
  color: #999;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent-soft); }

.footer-right { max-width: 420px; }
.footer-right h2 { font-family:'Playfair Display',serif; font-size:1.3rem; color:#ccc; margin-bottom:16px; }

.footer-contact p, .footer-contact a { font-size:0.9rem; color:#999; margin:5px 0; line-height:1.65; }
.footer-contact a:hover { color: var(--accent-soft); }

.footer-social { display:flex; gap:12px; margin-bottom:16px; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: #0A66C2;
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.footer-social a:hover {
  background: #0851a1;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(10,102,194,0.45);
}

.copyright { font-size:0.8rem; color:#555; margin-top:16px; }
.email a { color:#999; text-decoration:none; transition:color var(--transition); }
.email a:hover { color:var(--accent-soft); text-decoration:underline; }

.linkedin-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #0A66C2;
  color: #fff;
  border-radius: 50%;
  font-size: 1.3rem;
  transition: all var(--transition);
}

.linkedin-full:hover {
  background: #0851a1;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 24px rgba(10,102,194,0.45);
}

@media (max-width: 900px) {
  .footer-container { flex-direction: column; }
  .footer-left { flex-direction: column; }
  .footer-right { max-width: 100%; width: 100%; }
}

@media (max-width: 600px) {
  .footer-container { padding: 0 20px; }
}

/* ===== ANIMATIONS ===== */
.slide-in {
  opacity: 0;
  transform: translateX(-60px);
  animation: slideLeft 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
}

.delay-1 { animation-delay: 0.25s; }
.delay-2 { animation-delay: 0.5s; }

@keyframes slideLeft {
  to { opacity:1; transform:translateX(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity:1; transform:translateY(0); }

/* ===== MOBILE PEOPLE CARD ===== */
@media (max-width: 600px) {
  .member { width: calc(50% - 20px); }
  .modal-content .member-photo { float:none; width:100px; height:125px; margin: 0 auto 16px; display:block; }
}
