/* MPConseil — premium legal consultancy */

:root {
  --navy: #0c1420;
  --navy-mid: #12171a;
  --gold: #e3b969;
  --gold-dark: #c9a04a;
  --gold-light: #f0d9a0;
  --cream: #f9f7f3;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --text-on-dark: rgba(255, 255, 255, 0.9);
  --text-on-dark-muted: rgba(255, 255, 255, 0.65);
  --border: rgba(227, 185, 105, 0.3);
  --shadow: 0 24px 64px rgba(12, 20, 32, 0.12);
  --shadow-sm: 0 8px 32px rgba(12, 20, 32, 0.08);
  --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);
}

address { font-style: normal; }

h1, h2, h3, h4 {
  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);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-full { width: 100%; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}

.site-header.scrolled {
  background: rgba(249, 247, 243, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

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

.logo img {
  height: 58px;
  width: auto;
  filter: brightness(0);
  transition: filter 0.3s var(--ease);
}

.site-header:not(.scrolled) .logo img {
  filter: brightness(0) invert(1);
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

.site-header.scrolled .main-nav a {
  color: var(--text-muted);
}

.main-nav a:hover,
.site-header.scrolled .main-nav a:hover {
  color: var(--gold-dark);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header.scrolled .lang-switch {
  background: rgba(12, 20, 32, 0.05);
  border-color: rgba(12, 20, 32, 0.1);
}

.lang-btn {
  padding: 0.35rem 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-muted);
  background: transparent;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.site-header.scrolled .lang-btn {
  color: var(--text-muted);
}

.lang-btn:hover,
.lang-btn.is-active {
  color: var(--navy);
  background: var(--gold);
}

.lang-switch--mobile {
  margin-bottom: 1.5rem;
  width: fit-content;
}

.lang-switch--mobile .lang-btn {
  color: var(--text-muted);
}

.header-cta {
  font-size: 0.7rem;
}

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

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: background 0.3s;
}

.site-header.scrolled .menu-toggle span {
  background: var(--navy);
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--cream);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  z-index: 99;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--navy);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(227, 185, 105, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(227, 185, 105, 0.05) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 20, 32, 0.3) 0%, rgba(12, 20, 32, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 4rem) 0 6rem;
  text-align: center;
  max-width: 820px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.5rem;
}

.hero-title {
  font-size: clamp(2.75rem, 7vw, 5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-on-dark-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

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

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  animation: float 3s ease-in-out infinite;
}

.hero-scroll:hover { color: var(--gold); }

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

/* Sections */
.section {
  padding: 7rem 0;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 1rem;
}

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

.section-intro {
  color: var(--text-muted);
  max-width: 720px;
  margin: 0;
}

.section-header {
  margin-bottom: 4rem;
  max-width: 800px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text .section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

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

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 1;
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 890 / 1024;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.6s var(--ease);
}

.about-portrait:hover .portrait-frame img {
  filter: grayscale(0%);
}

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

/* Services / Expertise */
.section-services {
  background: var(--white);
}

.expertise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.expertise-list li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: background 0.25s var(--ease);
}

.expertise-list li:hover {
  background: var(--cream);
}

.expertise-list li:nth-child(2n) {
  border-right: none;
}

.expertise-list li:last-child {
  border-right: none;
  border-bottom: none;
}

.expertise-list li:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}

.expertise-num {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  min-width: 2.5rem;
}

/* Network */
.expertise-block-2 {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.section-closing {
  margin-top: 2rem;
  max-width: 52rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.network-list {
  margin-top: 1.5rem;
}

.network-list li {
  grid-template-columns: 1fr;
}

.founder-name {
  margin-top: 3rem;
}

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

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

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

.network-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.network-cities {
  display: grid;
  gap: 1.5rem;
}

.city-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.city-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(25%);
  transition: filter 0.5s var(--ease);
}

.city-card:hover img {
  filter: grayscale(0%);
}

/* Founder */
.section-founder {
  background: var(--cream);
}

.founder-grid {
  max-width: 800px;
}

.founder-values {
  margin: 2rem 0 1rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
}

.founder-tagline {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

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

.service-card {
  padding: 2.5rem;
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.service-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.service-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.partners-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  min-height: 100px;
  transition: box-shadow 0.3s var(--ease);
}

.partners-grid li:hover {
  box-shadow: var(--shadow-sm);
}

.partners-grid img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.85;
  transition: filter 0.3s, opacity 0.3s;
}

.partners-grid li:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

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

.section-contact .section-label { color: var(--gold); }
.section-contact .section-title { color: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-lead {
  color: var(--text-on-dark-muted);
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.contact-item a {
  font-size: 1.15rem;
  color: var(--white);
}

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

.contact-item address {
  font-size: 1.05rem;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}

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

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

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

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  transition: border-color 0.25s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form-success { color: #7dcea0; }
.form-error { color: #e88; }

/* Footer */
.site-footer {
  background: #000;
  color: rgba(255, 255, 255, 0.5);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
}

.footer-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .header-end {
    gap: 0.75rem;
  }

  .main-nav ul {
    gap: 1.25rem;
  }

  .about-grid,
  .contact-grid,
  .network-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-portrait {
    order: -1;
    max-width: 400px;
    margin-inline: auto;
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav,
  .header-cta,
  .lang-switch:not(.lang-switch--mobile) { display: none; }

  .menu-toggle { display: flex; }

  .expertise-list {
    grid-template-columns: 1fr;
  }

  .expertise-list li {
    border-right: none;
  }

  .expertise-list li:nth-last-child(-n+2) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .expertise-list li:last-child {
    border-bottom: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .section { padding: 5rem 0; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
