/* ==========================================================================
   AVENTRA IMPEX — About the Managing Director
   Page-specific layout & motion, built on the core brand tokens.
   ========================================================================== */

/* ---------- HERO ---------- */
.md-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4rem;
  background:
    radial-gradient(1100px 620px at 78% 18%, rgba(200, 150, 62, 0.18), transparent 62%),
    linear-gradient(135deg, rgba(4, 26, 13, 0.94) 0%, rgba(11, 46, 27, 0.9) 52%, rgba(16, 54, 31, 0.92) 100%),
    url('../images/products/banner-about-md.jpg') center/cover,
    linear-gradient(135deg, #041a0d 0%, #0b2e1b 52%, #10361f 100%);
  color: var(--white);
}

.md-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(250, 248, 244, 0.06));
  pointer-events: none;
}

.md-hero-glow {
  position: absolute;
  top: -22%;
  right: -12%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.3) 0%, rgba(234, 88, 12, 0) 68%);
  filter: blur(14px);
  animation: mdGlowFloat 13s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes mdGlowFloat {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.75; }
  100% { transform: translate3d(-40px, 34px, 0) scale(1.1); opacity: 1; }
}

.md-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3rem;
  align-items: center;
}

.md-eyebrow {
  margin: 1.1rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.md-name {
  font-size: clamp(2.6rem, 5.4vw, 4.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 0.85rem;
}

.md-name-accent {
  background: linear-gradient(100deg, #f5e6c8 0%, #d4a34b 42%, #c8963e 72%, #f5e6c8 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: mdShimmer 7s linear infinite;
}

@keyframes mdShimmer {
  to { background-position: 220% center; }
}

.md-role-line {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-300);
  margin-bottom: 1.1rem;
  letter-spacing: 0.01em;
}

.md-hero-desc {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(244, 239, 230, 0.86);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.md-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- PORTRAIT ---------- */
.md-hero-photo {
  display: flex;
  justify-content: center;
}

.md-photo-stage {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1 / 1.16;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.md-photo-disc {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 86%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(200, 150, 62, 0.42) 0%, rgba(200, 150, 62, 0.14) 48%, transparent 72%);
  box-shadow: inset 0 0 70px rgba(200, 150, 62, 0.25);
}

.md-photo-ring {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 92%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(212, 163, 75, 0.45);
  animation: mdRingPulse 5.5s ease-in-out infinite;
}

.md-photo-ring-2 {
  width: 102%;
  bottom: -1%;
  border-color: rgba(212, 163, 75, 0.22);
  border-style: dashed;
  animation: mdRingSpin 36s linear infinite;
}

@keyframes mdRingPulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.035); }
}

@keyframes mdRingSpin {
  to { transform: translateX(-50%) rotate(360deg); }
}

.md-photo-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  object-fit: contain;
  /* dissolve the cut-out's lower edge into the hero instead of ending abruptly */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, rgba(0, 0, 0, 0.55) 90%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 74%, rgba(0, 0, 0, 0.55) 90%, transparent 100%);
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.4));
  animation: mdFloat 7s ease-in-out infinite alternate;
}

@keyframes mdFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-14px); }
}

.md-photo-badge {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 14%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.05rem;
  border-radius: 14px;
  background: rgba(250, 248, 244, 0.97);
  box-shadow: 0 18px 38px -12px rgba(0, 0, 0, 0.5);
  animation: mdFloat 7s ease-in-out infinite alternate-reverse;
}

.md-photo-badge i {
  font-size: 1.2rem;
  color: var(--gold-600);
}

.md-photo-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.md-photo-badge strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--emerald-950);
}

.md-photo-badge span span,
.md-photo-badge span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ---------- STAT STRIP ---------- */
.md-stats-strip {
  background: var(--cream-bg);
  border-bottom: 1px solid var(--cream-border);
  padding: 2.75rem 0;
}

.md-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.md-stat {
  position: relative;
  text-align: center;
  padding: 0 1.25rem;
}

.md-stat + .md-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--cream-border), transparent);
}

.md-stat-num {
  display: block;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--gold-600);
  margin-bottom: 0.5rem;
}

.md-stat strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--emerald-950);
  margin-bottom: 0.3rem;
}

.md-stat em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- PROFILE ---------- */
.md-profile-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 3rem;
  align-items: start;
}

.md-para {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.md-expertise-card {
  position: sticky;
  top: 110px;
  padding: 1.85rem;
  border-radius: var(--radius-lg, 18px);
  background: var(--cream-bg);
  border: 1px solid var(--cream-border);
  box-shadow: 0 16px 36px -22px rgba(4, 26, 13, 0.4);
}

.md-expertise-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--emerald-950);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.md-expertise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.md-expertise-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.6rem;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--emerald-900);
  transition: background 0.22s ease, transform 0.22s ease;
}

.md-expertise-list li:hover {
  background: var(--white);
  transform: translateX(4px);
}

.md-expertise-list i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: 0.78rem;
}

/* ---------- TIMELINE ---------- */
.md-timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 880px;
  position: relative;
}

.md-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-500), rgba(200, 150, 62, 0.25), var(--emerald-600));
  border-radius: 2px;
}

.md-tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 1.5rem;
  padding-bottom: 2.1rem;
}

.md-tl-item:last-child { padding-bottom: 0; }

.md-tl-num {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold-500);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-700);
  box-shadow: 0 8px 22px -10px rgba(200, 150, 62, 0.75);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, color 0.3s ease;
}

.md-tl-item:hover .md-tl-num {
  transform: scale(1.08);
  background: var(--gold-600);
  color: var(--white);
}

.md-tl-body {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg, 18px);
  padding: 1.5rem 1.65rem;
  box-shadow: 0 14px 34px -24px rgba(4, 26, 13, 0.45);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.md-tl-item:hover .md-tl-body {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -22px rgba(4, 26, 13, 0.4);
}

.md-tl-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--emerald-950);
  margin-bottom: 0.5rem;
}

.md-tl-body p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.md-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.md-tl-flag {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--emerald-700);
  color: var(--white);
}

.md-tl-present .md-tl-num {
  background: var(--emerald-700);
  border-color: var(--emerald-700);
  color: var(--white);
}

.md-tl-present .md-tl-body {
  border-color: rgba(20, 90, 50, 0.3);
}

/* ---------- BRIDGE ---------- */
.md-bridge {
  display: grid;
  grid-template-columns: 1fr 56px 1.15fr 56px 1fr;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.md-bridge-node {
  text-align: center;
  padding: 2rem 1.35rem;
  border-radius: var(--radius-lg, 18px);
  background: var(--cream-bg);
  border: 1px solid var(--cream-border);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.md-bridge-node:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -24px rgba(4, 26, 13, 0.45);
}

.md-bridge-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--cream-border);
  font-size: 1.3rem;
  color: var(--gold-600);
}

.md-bridge-node h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--emerald-950);
  margin-bottom: 0.4rem;
}

.md-bridge-node p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.md-bridge-core {
  background: linear-gradient(140deg, #041a0d 0%, #0e4024 100%);
  border-color: transparent;
  color: var(--white);
  padding: 2.45rem 1.5rem;
}

.md-bridge-core h4 {
  color: var(--white);
  letter-spacing: 0.08em;
}

.md-bridge-core p { color: rgba(244, 239, 230, 0.78); }

.md-bridge-core .md-bridge-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 163, 75, 0.45);
  color: var(--gold-400);
}

.md-bridge-link {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, rgba(200, 150, 62, 0.15), rgba(200, 150, 62, 0.6), rgba(200, 150, 62, 0.15));
  border-radius: 2px;
  overflow: hidden;
}

.md-bridge-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
  animation: mdFlow 2.6s ease-in-out infinite;
}

@keyframes mdFlow {
  0%   { left: -45%; }
  100% { left: 105%; }
}

/* ---------- FOCUS + COMMITMENT ---------- */
.md-two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: start;
}

.md-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.md-focus-card {
  padding: 1.4rem 1.25rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--cream-border);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.md-focus-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 150, 62, 0.5);
  box-shadow: 0 18px 36px -24px rgba(4, 26, 13, 0.45);
}

.md-focus-card i {
  font-size: 1.25rem;
  color: var(--gold-600);
  margin-bottom: 0.75rem;
  display: block;
}

.md-focus-card h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--emerald-950);
  margin-bottom: 0.35rem;
}

.md-focus-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.md-commit-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.md-commit-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--cream-border);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.md-commit-list li:hover {
  transform: translateX(5px);
  border-color: rgba(20, 90, 50, 0.32);
}

.md-commit-list i {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: 0.95rem;
}

.md-commit-list strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--emerald-950);
  margin-bottom: 0.2rem;
}

.md-commit-list span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- QUOTE ---------- */
.md-quote-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(234, 88, 12, 0.16), transparent 62%),
    linear-gradient(135deg, #041a0d 0%, #0b2e1b 100%);
  color: var(--white);
  text-align: center;
}

.md-quote {
  position: relative;
  z-index: 2;
}

.md-quote-mark {
  font-size: 2.2rem;
  color: var(--gold-500);
  opacity: 0.6;
  margin-bottom: 1.5rem;
  display: block;
}

.md-quote blockquote {
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--white);
  margin: 0 0 1.75rem;
  letter-spacing: -0.01em;
}

.md-quote cite {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.md-quote-rule {
  display: inline-block;
  width: 46px;
  height: 1px;
  background: var(--gold-500);
  opacity: 0.7;
}

/* ---------- CONTACT ---------- */
.md-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.md-contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.6rem 1.35rem;
  border-radius: 16px;
  background: var(--cream-bg);
  border: 1px solid var(--cream-border);
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.md-contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 150, 62, 0.55);
  box-shadow: 0 20px 40px -24px rgba(4, 26, 13, 0.45);
}

.md-contact-static { cursor: default; }
.md-contact-static:hover { transform: none; box-shadow: none; border-color: var(--cream-border); }

.md-contact-card i {
  font-size: 1.25rem;
  color: var(--gold-600);
  margin-bottom: 0.5rem;
}

.md-contact-card strong {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.md-contact-card span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--emerald-950);
  line-height: 1.5;
  word-break: break-word;
}

.md-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.75rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
  .md-hero-grid,
  .md-profile-grid,
  .md-two-col { grid-template-columns: 1fr; }

  .md-hero { padding: 3.5rem 0 3rem; }
  .md-hero-photo { order: -1; }
  .md-photo-stage { width: min(100%, 320px); }
  .md-expertise-card { position: static; }

  .md-bridge {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .md-bridge-link {
    width: 2px;
    height: 34px;
    justify-self: center;
    background: linear-gradient(180deg, rgba(200, 150, 62, 0.15), rgba(200, 150, 62, 0.6), rgba(200, 150, 62, 0.15));
  }
  .md-bridge-link::after { display: none; }

  .md-contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .md-stats-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .md-stat + .md-stat::before { display: none; }
  .md-stat + .md-stat { border-top: 1px solid var(--cream-border); padding-top: 1.6rem; }

  .md-tl-item { grid-template-columns: 48px 1fr; gap: 1rem; }
  .md-tl-num { width: 48px; height: 48px; font-size: 0.9rem; }
  .md-timeline::before { left: 23px; }

  .md-focus-grid { grid-template-columns: 1fr; }
  .md-contact-grid { grid-template-columns: 1fr; }
  .md-hero-actions .btn { width: 100%; justify-content: center; }
  .md-photo-badge { left: -4px; bottom: 10%; padding: 0.55rem 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .md-photo-img,
  .md-photo-badge,
  .md-photo-ring,
  .md-photo-ring-2,
  .md-hero-glow,
  .md-name-accent,
  .md-bridge-link::after { animation: none !important; }
}
