/* MP Global Partners — premium static site */

:root {
  --navy: #0c1420;
  --navy-mid: #12171a;
  --navy-light: #1a2332;
  --gold: #c9a962;
  --gold-light: #e0c98a;
  --cream: #f4f1eb;
  --white: #ffffff;
  --text: #2a3340;
  --text-muted: #5c6673;
  --text-on-dark: rgba(255, 255, 255, 0.88);
  --text-on-dark-muted: rgba(255, 255, 255, 0.62);
  --border: rgba(201, 169, 98, 0.25);
  --shadow: 0 24px 64px rgba(12, 20, 32, 0.18);
  --radius: 4px;
  --header-h: 88px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.container {
  width: min(1200px, calc(100% - 3rem));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-full { width: 100%; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(12, 20, 32, 0.82) 0%, rgba(12, 20, 32, 0.35) 70%, transparent 100%);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}

.site-header.scrolled {
  background: rgba(12, 20, 32, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
  width: min(1200px, calc(100% - 3rem));
  margin-inline: auto;
}

.logo {
  flex-shrink: 0;
}

.logo-wordmark {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1;
  white-space: nowrap;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.main-nav a:hover { color: var(--gold); }

.header-cta {
  flex-shrink: 0;
  padding: 0.7rem 1.35rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease);
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(12, 20, 32, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 1.5rem 2rem;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  max-width: 400px;
  margin-inline: auto;
}

.mobile-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav li:last-child {
  border-bottom: none;
  padding-top: 1rem;
}

.mobile-nav a,
.mobile-nav .btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem 0;
}

.mobile-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 20, 32, 0.55) 0%, rgba(12, 20, 32, 0.25) 40%, rgba(12, 20, 32, 0.88) 100%),
    linear-gradient(90deg, rgba(12, 20, 32, 0.7) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 3rem));
  margin-inline: auto;
  padding-block: calc(var(--header-h) + 2rem) 6rem;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: none;
  line-height: 1.2;
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-on-dark-muted);
  max-width: 42ch;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

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

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Sections */
.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.section-alt {
  background: var(--white);
}

.section-dark {
  background: var(--navy);
  color: var(--text-on-dark);
}

.section-grid {
  display: grid;
  grid-template-columns: 180px 1fr 220px;
  gap: 2.5rem 3rem;
  align-items: start;
}

.section-grid--wide {
  grid-template-columns: 180px 1fr 1fr;
}

.section-grid--full {
  grid-template-columns: 180px 1fr;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 0.5rem;
  transition: color 0.4s ease, transform 0.4s ease;
}

.section-label.is-active {
  color: var(--gold-light);
  transform: translateX(4px);
}

.section-dark .section-label { color: var(--gold-light); }

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 2rem;
}

.section-dark .section-title { color: var(--white); }

.prose p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.section-dark .prose p { color: var(--text-on-dark-muted); }

.prose strong { color: var(--text); font-weight: 600; }
.section-dark .prose strong { color: var(--white); }

.portrait-card {
  margin: 0;
  text-align: center;
}

.portrait-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin-inline: auto;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.portrait-card figcaption {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text);
}

.section-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  filter: grayscale(20%);
}

.section-visual {
  overflow: hidden;
  border-radius: var(--radius);
}

/* Arabic block */
.arabic-block {
  margin-top: 4rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: var(--radius);
  font-size: 1.15rem;
  line-height: 2;
  color: var(--text-on-dark-muted);
}

.arabic-block p { margin: 0 0 1rem; }
.arabic-block p:last-child { margin-bottom: 0; }

/* Contact card */
.contact-card {
  margin-top: 3rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.15), rgba(201, 169, 98, 0.05));
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  max-width: 360px;
}

.contact-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  margin: 0 0 0.25rem;
}

.contact-role {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.contact-card a {
  color: var(--text-on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-card a:hover { color: var(--gold); border-color: var(--gold); }

.section-cta {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-cta h5 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin: 0;
}

/* Map */
.map-section { line-height: 0; }

.map {
  height: 420px;
  width: 100%;
  filter: grayscale(1);
  transition: filter 2s var(--ease);
}

.map.color { filter: grayscale(0); }

/* Footer */
.site-footer {
  background: var(--navy-mid);
  color: var(--text-on-dark);
}

.footer-cta {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  text-align: left;
}

.footer-cta-copy {
  text-align: left;
}

.footer-cta-copy h4 {
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 0 0 1.5rem;
  max-width: 14ch;
}

.footer-cta-copy p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-on-dark-muted);
  max-width: 38ch;
  margin: 0;
  line-height: 1.5;
}

.contact-form--inline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form--inline .contact-form-title {
  font-size: 2rem;
  text-align: center;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-form--inline .form-group label {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form--inline .form-group input,
.contact-form--inline .form-group textarea {
  background: rgba(255, 255, 255, 0.96);
  border-color: transparent;
}

.contact-form--inline .form-note {
  color: var(--gold-light);
}

.contact-form--inline .form-error {
  color: #f2a3a3;
}

.footer-main {
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-logo {
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo .logo-wordmark {
  display: block;
  font-size: 2.05rem;
  color: rgba(255, 255, 255, 0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 720px;
}

.footer-col h6 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.5rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 0.65rem; }
.footer-col li:last-child { margin-bottom: 0; }

.footer-col a {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-col a:hover { color: var(--gold); }

.footer-col p {
  margin: 0;
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

.footer-legal {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal p {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

/* Modal */
.contact-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 520px;
  width: calc(100% - 2rem);
}

.contact-modal::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.modal-inner {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.modal-close:hover { color: var(--navy); }

.contact-modal h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid #dde2e8;
  border-radius: var(--radius);
  background: var(--cream);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
}

.form-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.form-success {
  color: #2d7a4f;
}

.form-error {
  color: #b42318;
}

/* GSAP helpers */
.gsap-hero-title {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .gsap-hero-bg img,
  .gsap-hero-title,
  .gsap-fade-up,
  .gsap-stagger p,
  .gsap-portrait,
  .gsap-image-reveal,
  .gsap-slide-right {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .section-grid,
  .section-grid--wide,
  .section-grid--full {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-aside {
    order: -1;
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
}

@media (max-width: 1050px) {
  .main-nav,
  .header-cta { display: none; }

  .header-end { gap: 0; }

  .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
  :root { --header-h: 72px; }

  .logo-wordmark { font-size: 1.1rem; }

  .hero { align-items: center; text-align: center; padding-bottom: 4rem; }
  .hero-actions { justify-content: center; }
  .hero-title { max-width: none; margin-inline: auto; }
  .hero-lead { margin-inline: auto; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-logo .logo-wordmark {
    margin-inline: auto;
  }

  .footer-col {
    text-align: center;
  }

  .footer-legal {
    text-align: center;
  }

  .footer-cta-inner {
    grid-template-columns: 1fr;
  }

  .section-cta { flex-direction: column; align-items: flex-start; }
}
