/* ==========================================================================
   About Us Page — Sanjeev Mansotra Foundation
   Figma-accurate composition. Only scopes to .founders-hero, .advisory-board,
   .our-story, .execution-team, .our-philosophy, and the modal.
   ========================================================================== */

/* Design tokens (fall back to values already declared in style.css if missing) */
:root {
  --smf-blue: var(--color-primary-blue, #005598);
  --smf-blue-deep: #003c73;
  --smf-cream: var(--color-cream, #FDF7EC);
  --smf-gold: var(--color-gold, #C18E3D);
  --smf-black: var(--color-black, #101010);
  --smf-gray: var(--color-gray, #6B6B6B);
  --smf-white: var(--color-white, #ffffff);
  --smf-radius-lg: 12px;
  --smf-heading: var(--font-heading, 'Bespoke Serif', 'Times New Roman', serif);
  --smf-body: var(--font-body, 'DM Sans', system-ui, sans-serif);
}

/* ==========================================================================
   1. FOUNDERS HERO
   ========================================================================== */
.founders-hero {
  position: relative;
  aspect-ratio: 1920 / 1500;
  min-height: 720px;
  background: #050505;
  overflow: hidden;
  color: var(--smf-white);
}

.founders-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.founders-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}

.founders-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.25) 32%, rgba(0,0,0,0.05) 55%, rgba(0,0,0,0.25) 100%);
}

.founders-hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
}

.founders-hero-text {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.founders-hero-title {
  font-family: var(--smf-heading);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.15;
  letter-spacing: 0.5px;
  color: var(--smf-white);
  margin: 0 0 24px;
}

.founders-hero-intro {
  font-family: var(--smf-body);
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 16px;
}

.founders-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.founder-label {
  pointer-events: auto;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--smf-white);
  cursor: pointer;
  padding: 6px 4px;
  text-align: left;
  font-family: var(--smf-body);
  transition: transform 0.35s ease;
}

.founder-label-name {
  font-family: var(--smf-heading);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--smf-white);
  line-height: 1.15;
}

.founder-label-title {
  font-family: var(--smf-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

.founder-label-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--smf-white);
  font-size: 14px;
  font-weight: 600;
}

.founder-label-cta .arrow-icon {
  transition: transform 0.35s ease;
}

.founder-label:hover .arrow-icon,
.founder-label:focus-visible .arrow-icon {
  transform: translate(3px, -3px) rotate(-6deg);
}

.founder-label--sanjeev {
  left: 5%;
  top: 62%;
}

.founder-label--neelam {
  right: 5%;
  top: 42%;
  align-items: flex-start;
}

/* ==========================================================================
   2. ADVISORY BOARD
   ========================================================================== */
.advisory-board {
  padding: 100px 0 130px;
  background: var(--smf-white);
  text-align: center;
}

.advisory-board h2 {
  font-family: var(--smf-heading);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.15;
  color: var(--smf-black);
  margin: 0 0 16px;
}

.advisory-board-intro {
  max-width: 700px;
  margin: 0 auto 64px;
  font-family: var(--smf-body);
  color: var(--smf-gray);
  font-size: 16px;
  line-height: 1.7;
}

.advisory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 56px;
  justify-content: center;
  align-items: start;
}

.advisory-card {
  position: relative;
  padding-left: 18px;
  padding-bottom: 40px;
}

.advisory-card-image {
  width: 100%;
  aspect-ratio: 3 / 3.6;
  overflow: hidden;
  border-radius: 0;
  background: #f0f0f0;
  position: relative;
  z-index: 1;
}

.advisory-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.advisory-card:hover .advisory-card-image img {
  transform: scale(1.04);
}

.advisory-card-panel {
  position: absolute;
  left: 0;
  right: 22%;
  bottom: 0;
  z-index: 2;
  background: var(--smf-blue);
  color: var(--smf-white);
  text-align: left;
  padding: 28px 28px 26px;
  min-height: 190px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--smf-body);
  transition: background 0.25s ease;
}

.advisory-card-panel:hover,
.advisory-card-panel:focus-visible {
  background: var(--smf-blue-deep);
}

.advisory-card-panel h3 {
  font-family: var(--smf-heading);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--smf-white);
  margin: 0 0 4px;
  line-height: 1.15;
}

.advisory-card-panel p {
  font-family: var(--smf-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0 0 18px;
}

.advisory-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--smf-white);
  font-size: 15px;
  font-weight: 600;
}

.advisory-card-cta .arrow-icon {
  transition: transform 0.35s ease;
}

.advisory-card:hover .advisory-card-cta .arrow-icon,
.advisory-card-panel:focus-visible .arrow-icon {
  transform: translate(4px, -4px) rotate(-10deg);
}

/* Shared eyebrow tag */
.tag {
  display: inline-block;
  font-family: var(--smf-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--smf-white);
  letter-spacing: 0.3px;
  margin: 0 0 18px;
}

/* ==========================================================================
   3. OUR STORY
   ========================================================================== */
.our-story {
  padding: 100px 0;
  background: var(--smf-cream);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  row-gap: 0;
}

.story-col--left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.story-col--right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.story-heading .tag {
  color: var(--smf-white);
  margin-bottom: 12px;
}

.story-heading h2 {
  font-family: var(--smf-heading);
  font-weight: 500;
  font-size: 46px;
  line-height: 1.1;
  color: var(--smf-black);
  margin: 0;
}

.story-text p {
  font-family: var(--smf-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--smf-gray);
  margin: 0 0 16px;
}

.story-text p:last-child {
  margin-bottom: 0;
}

.story-text strong {
  color: var(--smf-black);
  font-weight: 700;
}

.story-image {
  overflow: hidden;
  border-radius: 2px;
  background: #e9e9e9;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-image--portrait {
  aspect-ratio: 4 / 3.6;
}

.story-image--landscape {
  aspect-ratio: 16 / 10;
}

/* ==========================================================================
   4. EXECUTION TEAM
   ========================================================================== */
.execution-team {
  padding: 110px 0;
  background: var(--smf-white);
}

.execution-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: center;
}

.execution-content .tag {
  margin-bottom: 14px;
}

.execution-content h2 {
  font-family: var(--smf-heading);
  font-weight: 500;
  font-size: 46px;
  line-height: 1.1;
  color: var(--smf-black);
  margin: 0 0 22px;
}

.execution-content p {
  font-family: var(--smf-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--smf-gray);
  margin: 0;
  max-width: 460px;
}

.execution-media {
  position: relative;
  padding-bottom: 40px;
  padding-left: 18px;
}

.execution-media-image {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  border-radius: 0;
  background: #eeeeee;
  position: relative;
  z-index: 1;
}

.execution-media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.execution-media-panel {
  position: absolute;
  left: 0;
  right: 22%;
  bottom: 0;
  z-index: 2;
  background: var(--smf-blue);
  color: var(--smf-white);
  text-align: left;
  padding: 28px 28px 26px;
  min-height: 190px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--smf-body);
  transition: background 0.25s ease;
}

.execution-media-panel:hover,
.execution-media-panel:focus-visible {
  background: var(--smf-blue-deep);
}

.execution-media-panel h3 {
  font-family: var(--smf-heading);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--smf-white);
  margin: 0 0 4px;
  line-height: 1.15;
}

.execution-media-panel p {
  font-family: var(--smf-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  margin: 0 0 16px;
  max-width: none;
}

.execution-media-panel .advisory-card-cta .arrow-icon {
  transition: transform 0.35s ease;
}

.execution-media-panel:hover .advisory-card-cta .arrow-icon,
.execution-media-panel:focus-visible .advisory-card-cta .arrow-icon {
  transform: translate(4px, -4px) rotate(-10deg);
}

/* ==========================================================================
   5. OUR PHILOSOPHY
   ========================================================================== */
.our-philosophy {
  padding: 110px 0;
  background: var(--smf-white);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}

.philosophy-media {
  position: relative;
  padding: 0 0 40px 40px;
}

.philosophy-frame {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  border-left: 25px solid var(--smf-blue);
  border-bottom: 25px solid var(--smf-blue);
  border-bottom-left-radius: 2px;
  z-index: 1;
  pointer-events: none;
}

.philosophy-image {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 3.2;
  background: #eaeaea;
}

.philosophy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.philosophy-content .tag {
  margin-bottom: 14px;
}

.philosophy-content h2 {
  font-family: var(--smf-heading);
  font-weight: 500;
  font-size: 46px;
  line-height: 1.1;
  color: var(--smf-black);
  margin: 0 0 22px;
}

.philosophy-content p {
  font-family: var(--smf-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--smf-gray);
  margin: 0 0 16px;
}

.philosophy-content .btn {
  margin-top: 22px;
}

/* ==========================================================================
   6. MODAL — Dark navy design matching Figma (desktop / tablet)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-overlay.is-active {
  opacity: 1;
}

.modal {
  background: #005598;
  border-radius: 0;
  max-width: 960px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.is-active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: var(--smf-white);
  transition: background 0.2s;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.modal-body {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.modal-image {
  flex: 0 0 38%;
  min-height: 480px;
  background: #1a2a3a;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.modal-content {
  flex: 1;
  padding: 44px 40px;
  overflow-y: auto;
}

.modal-name {
  font-family: var(--smf-heading);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--smf-white);
  margin: 0 0 8px;
  line-height: 1.15;
}

.modal-title {
  font-family: var(--smf-body);
  font-size: 13px;
  color: var(--smf-gold);
  font-weight: 600;
  margin: 0 0 28px;
  line-height: 1.5;
}

.modal-bio p {
  font-family: var(--smf-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  margin: 0 0 16px;
}

.modal-bio p:last-child {
  margin-bottom: 0;
}

body.smf-modal-open {
  overflow: hidden;
}

/* ==========================================================================
   7. Scroll animation
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
  .founders-hero { min-height: 640px; }
  .founders-hero-inner { padding-top: 50px; }
  .founders-hero-title { font-size: 50px; }
  .founder-label-name { font-size: 20px; }
  .founder-label--sanjeev { left: 4%; bottom: 20%; }
  .founder-label--neelam { right: 4%; top: 40%; }

  .advisory-grid { grid-template-columns: repeat(2, minmax(0, 340px)); gap: 40px; }
  .advisory-board h2 { font-size: 42px; }

  .story-grid { column-gap: 60px; }
  .story-heading h2,
  .execution-content h2,
  .philosophy-content h2 { font-size: 40px; }

  .execution-grid { grid-template-columns: 1fr 360px; gap: 60px; }
  .philosophy-grid { gap: 60px; }
}

@media (max-width: 1024px) {
  .founders-hero { min-height: 560px; }
  .founders-hero-inner { padding-top: 40px; }
  .founders-hero-title { font-size: 44px; }
  .founders-hero-intro { font-size: 14px; }

  .advisory-board { padding: 80px 0 110px; }
  .advisory-board h2 { font-size: 38px; }
  .advisory-card-panel h3 { font-size: 20px; }

  .our-story { padding: 80px 0; }
  .execution-team { padding: 80px 0; }
  .our-philosophy { padding: 80px 0; }
  .story-heading h2,
  .execution-content h2,
  .philosophy-content h2 { font-size: 36px; }
}

/* Tablet */
@media (max-width: 900px) {
  .founders-hero {
    aspect-ratio: auto;
    min-height: 0;
    background: #050505;
    display: flex;
    flex-direction: column;
  }
  .founders-hero-media {
    position: relative;
    order: 2;
    height: auto;
    aspect-ratio: 1920 / 1350;
    max-height: 520px;
  }
  .founders-hero-gradient {
    background: linear-gradient(180deg, rgba(0,0,0,0.30), rgba(0,0,0,0.10));
  }
  .founders-hero-inner {
    position: relative;
    inset: auto;
    order: 1;
    padding: 40px 0 30px;
    background: transparent;
  }
  .founders-hero-text {
    padding-bottom: 0;
  }
  .founders-overlay {
    order: 3;
    position: static;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 30px 20px 40px;
  }
  .founder-label,
  .founder-label--sanjeev,
  .founder-label--neelam {
    position: static;
    align-items: flex-start;
    max-width: 420px;
  }

  .advisory-grid { grid-template-columns: repeat(2, minmax(0, 300px)); gap: 32px; }
  .advisory-card-panel { padding: 20px 20px; }
  .advisory-card-panel h3 { font-size: 18px; }

  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-col--left, .story-col--right { gap: 30px; }
  .story-image--portrait { aspect-ratio: 16 / 10; }

  .execution-grid { grid-template-columns: 1fr; gap: 50px; }
  .execution-media { max-width: 420px; margin: 0 auto; }

  .philosophy-grid { grid-template-columns: 1fr; gap: 60px; }
  .philosophy-media { max-width: 520px; margin: 0 auto; padding: 0 0 30px 30px; }
  .philosophy-frame { width: calc(100% - 30px); height: calc(100% - 30px); }
}

@media (max-width: 768px) {
  .founders-hero-title { font-size: 38px; }
  .founders-hero-intro { font-size: 14px; }

  .advisory-board { padding: 70px 0 100px; }
  .advisory-board h2 { font-size: 32px; }
  .advisory-board-intro { font-size: 15px; margin-bottom: 44px; }

  .story-heading h2,
  .execution-content h2,
  .philosophy-content h2 { font-size: 32px; }

  /* Mobile modal: a 400px photo sits at the top and stays put; the WHITE
     content sheet scrolls UP over the image as you scroll the modal.
     Content = white background, headings black, designation gold. */
  .modal {
    flex-direction: column;
    height: 88vh;
    max-height: 88vh;
    overflow-y: auto;                 /* the whole modal is the scroll area */
    -webkit-overflow-scrolling: touch;
    background: var(--smf-white);
  }
  .modal-body {
    display: block;
    position: relative;
    min-height: 0;
    width: 100%;
  }
  .modal-image {
    position: sticky;
    top: 0;
    height: 400px;
    min-height: 400px;
    z-index: 1;
    flex: none;
  }
  .modal-content {
    position: relative;
    z-index: 2;
    background: var(--smf-white);
    margin-top: -22px;                /* white sheet overlaps the seam, then rides up over the image on scroll */
    border-radius: 20px 20px 0 0;
    padding: 30px 24px 36px;
    overflow: visible;                /* the modal scrolls, not this box */
  }
  /* keep the close button pinned to the top of the modal while scrolling,
     and make it readable on both the photo and the white sheet */
  .modal-close {
    position: sticky;
    top: 16px;
    right: 16px;
    margin-left: auto;
    margin-bottom: -40px;             /* out of flow visually so it doesn't push the image down */
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--smf-black);
  }
  .modal-close:hover,
  .modal-close:focus-visible {
    background: #ffffff;
  }
  .modal-name { color: var(--smf-black); font-size: 22px; }
  .modal-title { color: var(--smf-gold); }
  .modal-bio p { color: var(--smf-black); }
}

@media (max-width: 600px) {
  .advisory-grid {
    grid-template-columns: minmax(0, 380px);
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    gap: 60px;
  }
  .advisory-card-panel { padding: 20px; }

  .execution-media { padding-left: 20px; padding-bottom: 40px; }
  .execution-media-panel { right: 40px; padding: 18px 20px; }

  .philosophy-media { padding: 0 0 24px 24px; }
  .philosophy-frame { width: calc(100% - 24px); height: calc(100% - 24px); border-width: 5px; }
}

@media (max-width: 480px) {
  .founders-hero-media { height: 50vh; min-height: 300px; }
  .founders-hero-title { font-size: 30px; }
  .founder-label-name { font-size: 17px; }
  .founder-label-title { font-size: 12px; }

  .advisory-board h2 { font-size: 28px; }
  .story-heading h2,
  .execution-content h2,
  .philosophy-content h2 { font-size: 28px; }
  .our-story, .execution-team, .our-philosophy { padding: 60px 0; }
}

@media (max-width: 375px) {
  .founders-hero-title { font-size: 26px; }
  .founders-hero-intro { font-size: 13px; }
  .advisory-card-panel h3 { font-size: 17px; }
}
