/* ==================================================
   Richard Avocat — Mobile (same palette as desktop)
   ================================================== */

/* Desktop language helpers (same logic) */
.lang-fr, .lang-en { display: none; }
:root[data-lang="fr"] .lang-fr { display: block !important; }
:root[data-lang="en"] .lang-en { display: block !important; }
:root[data-lang="fr"] span.lang-fr,
:root[data-lang="en"] span.lang-en,
:root[data-lang="fr"] a.lang-fr,
:root[data-lang="en"] a.lang-en { display: inline !important; }

/* ✅ EXACT DESKTOP PALETTE */
:root {
  --navy:        #32404F;
  --navy-soft:   #3D4C5D;
  --page-bg:     #E8EDF3;
  --section-soft:#DDE2E7;
  --panel-bg:    #FFFFFF;

  --gold:        #C1AD87;
  --gold-dark:   #86724C;
  --gold-soft:   rgba(193,173,135,0.6);
  --gold-clear:  #EAD1A5;

  --text-on-navy:#F5F7FA;
  --text-main:   #1B2430;
  --text-muted:  #6B7280;
  --text-soft:   #9CA3AF;

  --border-soft: #D3D8E3;

  /* Mobile sizing */
  --radius-xl: 24px;
  --radius-lg: 18px;
  --barH: 74px;

  /* Mobile glass tuning (derived from desktop palette) */
  --glass: rgba(50,64,79,0.38);        /* navy glass */
  --glass-strong: rgba(50,64,79,0.54);
  --glass-border: rgba(211,216,227,0.35); /* border-soft with alpha */
  --shadow: 0 22px 55px rgba(27,36,48,0.22);
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page-bg);
  color: var(--text-main);
  overflow-x: hidden;
  padding-bottom: calc(var(--barH) + 18px);
}

a{ color: inherit; }

/* =========================
   HERO
   ========================= */

.m-hero{
  position: relative;
  min-height: 100vh;
  padding: 18px 18px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.m-hero-bg{
  position: absolute;
  inset: -10vh -10vw;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0.35)),
    url("images/background_law_a.jpg") 72% center/cover no-repeat;
  transform: scale(1.06);
  will-change: transform, opacity, filter;
  z-index: 0;
}

.m-hero-vignette{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 18%, rgba(193,173,135,0.22), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(61,76,93,0.18), transparent 58%);
  z-index: 1;
}

.m-topRow{
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
}

/* Lang pill */
.m-lang{
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(27,36,48,0.16);
}
.m-lang input{ display:none; }
.m-lang label{
  padding: 7px 12px;
  border-radius: 999px;
  font-size: clamp(10.5px, 3vw, 12px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.75;
  color: var(--navy);
}
#lang-fr:checked + label,
#lang-en:checked + label{
  background: var(--gold);
  color: var(--navy);
  opacity: 1;
}

.m-hero-card{
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  padding: 22px 18px 18px;
  background: rgba(255,255,255,0.5);
  border: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.m-brand-title{
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
}
.m-brand-sub{
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
  opacity: 0.95;
}

.m-h1{
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.12;
  color: var(--navy);
}
.m-hero-lead{
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(27,36,48,0.82);
}

.m-heroActions{
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.m-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
  border: 1px solid rgba(211,216,227,0.9);
  transition: transform 0.14s ease, filter 0.14s ease;
}
.m-btn:active{ transform: scale(0.99); }

.m-btn-primary{
  background: var(--gold);
  color: var(--navy);
  border-color: rgba(0,0,0,0.04);
}
.m-btn-primary:hover{ filter: brightness(1.02); }

.m-btn-ghost{
  background: rgba(255,255,255,0.52);
  color: var(--navy);
}

.m-heroMeta{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.m-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(211,216,227,0.8);
  font-size: 13px;
  color: rgba(27,36,48,0.82);
}

.m-scrollHint{
  position: absolute;
  bottom: calc(var(--barH) + 18px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.95;
}

.m-scrollPill{
  width: 30px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(50,64,79,0.55);
  background: rgba(255,255,255,0.48);
  display:flex;
  justify-content:center;
  padding-top: 6px;
  backdrop-filter: blur(10px);
}
.m-scrollDot{
  width: 6px;
  height: 10px;
  border-radius: 999px;
  background: var(--navy);
  animation: dot 1.7s ease-in-out infinite;
}
.m-scrollText{
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,247,250,0.92);
  text-shadow: 0 10px 22px rgba(0,0,0,0.25);
}
@keyframes dot{
  0%{ transform: translateY(-4px); opacity:0; }
  20%{ opacity:1; }
  60%{ transform: translateY(10px); opacity:1; }
  100%{ transform: translateY(18px); opacity:0; }
}

/* =========================
   SECTIONS
   ========================= */

.m-section{
  padding: 18px 18px 0;
}

#practice{
  padding-top: 38px;
  padding-bottom: 20px;
}

.m-sectionHead{
  margin-top: 18px;
  margin-bottom: 20px;
}

.m-eyebrow{
  color: var(--gold-dark);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 8px;
}

.m-h2{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--navy);
}

.m-sub{
  color: rgba(50,64,79,0.68);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.m-card{
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(211,216,227,0.9);
  box-shadow: 0 18px 46px rgba(27,36,48,0.10);
  padding: 16px 16px 30px;
}

.m-card + .m-card{
  margin-top: 14px;
}

.m-card p{
  color: rgba(27,36,48,0.82);
  line-height: 1.75;
  font-size: 14px;
}
.m-card p + p{ margin-top: 10px; }

.m-profileIntroCard > p{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.m-profileIntroCard{
  margin-bottom: 50px;
}

.m-profile-photo{
  margin: 24px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ced5e1;
  border: 1px solid rgba(211,216,227,0.85);
}

.m-profile-photo img{
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.m-featureStack{
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.m-featurePlainStack{
  display: grid;
  gap: 22px;
  margin-top: 26px;
  margin-bottom: 18px;
}

.m-featurePlain h3{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 14px;
}

.m-featurePlain p{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(27,36,48,0.82);
}

.m-featurePlain--inCard{
  margin-bottom: 16px;
}

.m-svgOutroText{
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 20px;
  z-index: 0;
}

.m-svgOutroText::before{
  content: "";
  position: absolute;
  top: calc(min(200px, 52vw) * -0.942 - 22px);
  bottom: -28px;
  left: -18px;
  width: calc(15vw + 6px);
  background: linear-gradient(to bottom, transparent 0%, #EFE9DE 42%);
}

.m-svgOutroText::after{
  content: "";
  position: absolute;
  top: 0;
  right: -18px;
  bottom: -28px;
  left: calc(15vw - 12px);
  background: #FDFBF7;
  z-index: -1;
}

.m-svgIntroText{
  position: relative;
  z-index: 0;
  padding-bottom: 20px;
}

.m-svgIntroText::after{
  content: "";
  position: absolute;
  top: -28px;
  right: -18px;
  bottom: calc(min(200px, 52vw) * -0.471 - 22px);
  width: calc(15vw + 6px);
  background: linear-gradient(to bottom, #EFE9DE 58%, transparent 100%);
}

.m-svgIntroText::before{
  content: "";
  position: absolute;
  top: -28px;
  left: -18px;
  right: calc(15vw - 12px);
  bottom: 0;
  background: #FDFBF7;
  z-index: -1;
}

.m-svgIntroText h3,
.m-svgOutroText h3{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  color: #85714B;
}

.m-svgIntroText h3,
.m-svgIntroText p{
  margin-right: 15vw;
}

.m-svgOutroText h3,
.m-svgOutroText p{
  margin-left: 15vw;
}

.m-feature{
  border-radius: var(--radius-lg);
  padding: 15px;
  background: linear-gradient(135deg, rgba(50,64,79,0.96), rgba(61,76,93,0.92));
  color: var(--text-on-navy);
  border: 1px solid rgba(193,173,135,0.28);
}

.m-feature h3{
  font-size: 15px;
  line-height: 1.35;
  color: var(--gold);
  margin-bottom: 8px;
}

.m-feature p{
  color: rgba(245,247,250,0.88);
}

.m-feature strong{
  color: #fff;
}

.m-metaActions{
  margin-top: 0;
}

.m-profile-photo + .m-metaActions{
  margin-top: 22px;
}

.m-metaBtn{
  width: 100%;
  border: 1px solid rgba(211,216,227,0.85);
  border-radius: 999px;
  background: #E6EAF2;
  color: var(--navy);
  min-height: 58px;
  overflow: hidden;
}

.m-metaBtn--split{
  display: flex;
  align-items: center;
  padding: 0;
}

.m-metaBtnHalf{
  flex: 1 1 0;
  min-width: 0;
  min-height: 58px;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.m-metaBtnHalf--mandates{
  padding-left: 20px;
  text-align: center;
}

.m-metaBtnHalf--education{
  padding-right: 20px;
  text-align: center;
}

.m-metaBtnHalf > span:not(.m-metaIcon){
  min-width: 0;
  white-space: normal;
  line-height: 1.15;
  text-align: center;
}

.m-metaBtnDivider{
  width: 1px;
  align-self: stretch;
  margin: 10px 0;
  background: rgba(93,100,111,0.18);
}

.m-svgCard .m-shapeSection{
  margin-top: 0;
  padding: 22px 0;
  border: 0;
  background: transparent;
}

.m-svgCard{
  width: auto;
  margin-left: -18px;
  margin-right: -18px;
  padding: 28px 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.m-metaBlock{
  border-radius: var(--radius-lg);
  padding: 15px;
  background: rgba(232,237,243,0.75);
  border: 1px solid rgba(211,216,227,0.85);
  transform: none !important;
}

.m-metaHeader{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(93,100,111,0.16);
}

.m-metaBlock .m-metaHeader h3{
  align-self: center;
  line-height: 1.2;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  font-family: "Nunito", sans-serif;
  letter-spacing: 0;
}

.m-metaIcon{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(193,173,135,0.18);
  border: 1px solid rgba(193,173,135,0.32);
  color: var(--gold-dark);
  flex: 0 0 auto;
}

.m-metaBlock h3{
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(27,36,48,0.68);
}

.m-metaBlock ul{
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  padding-left: 18px;
  color: #5D646F;
  font-size: clamp(13.5px, 3.6vw, 15px);
  line-height: 1.65;
}

.m-metaBlock li + li{
  margin-top: 5px;
}

body.has-profile-modal{
  overflow: hidden;
}

body.has-profile-modal .m-bottomBar{
  opacity: 0 !important;
  transform: translateY(18px) scale(0.985) !important;
  filter: blur(6px) !important;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
}

.m-profileModal{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(27,36,48,0.36);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.m-profileModal.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.m-profileModal-dialog{
  position: relative;
  width: min(420px, 100%);
  transform: translateY(18px) scale(0.92);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(.2,.8,.2,1), opacity 0.28s ease;
}

.m-profileModal.is-open .m-profileModal-dialog{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.m-metaBlock--modal{
  background: #e8edf3;
  box-shadow: 0 24px 70px rgba(27,36,48,0.28);
  padding: 20px 20px 32px;
}

.m-flipCard{
  width: 100%;
  min-height: 375px;
  perspective: 1200px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.m-flipCard-inner{
  position: relative;
  width: 100%;
  min-height: 375px;
  transform-style: preserve-3d;
  transition: transform 0.86s cubic-bezier(.16,1,.3,1);
}

.m-flipCard.is-flipped .m-flipCard-inner{
  transform: rotateY(180deg);
}

.m-flipCard-face{
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}

.m-flipCard-back{
  transform: rotateY(180deg) !important;
}

.m-flipControls{
  position: relative;
  margin: 30px auto 0;
  width: min(320px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 5px;
  border-radius: 999px;
  background: rgba(245,247,250,0.82);
  border: 1px solid rgba(211,216,227,0.9);
  box-shadow: 0 12px 34px rgba(27,36,48,0.14);
  overflow: hidden;
}

.m-flipControls::before{
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--gold);
  transition: transform 0.42s cubic-bezier(.2,.8,.2,1);
}

.m-flipControls.is-education::before{
  transform: translateX(100%);
}

.m-flipControl{
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 999px;
  min-height: 38px;
  background: transparent;
  color: rgba(27,36,48,0.7);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.m-flipControl.is-active{
  color: var(--navy);
}

.m-profileModal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #f5f7fa;
  color: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(27,36,48,0.22);
  cursor: pointer;
}

.m-profileModal-close i{
  font-size: 24px;
}

/* SVG block */
.m-shapeSection{
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: rgba(232,237,243,0.75); /* page-bg with alpha */
  border: 1px solid rgba(211,216,227,0.75);
}
/* .m-shapeWrap{
  width: min(300px, 76vw);
  margin: 0 auto;
  aspect-ratio: 232.83 / 438.69;
} */
.m-shapeWrap{
  width: min(200px, 52vw); /* ~2/3 of prior (was ~300px/76vw) */
  margin: 0 auto;
  aspect-ratio: 232.83 / 438.69;
}
.m-shapeSvg{
  width: 100%;
  height: 100%;
  display: block;
}

/* Use desktop signature colors */
#signature-path{
  fill: none;
  stroke: #869BB1; /* same as desktop */
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#bg-shape{
  fill: #f0eade;
  opacity: 0;
}

/* Practice carousel */
.law-activities-swiper{
  width: calc(100% + 36px);
  margin: 0 -18px;
  padding: 8px 0 34px;
  overflow: hidden;
}

.law-activities-swiper .swiper-wrapper{
  align-items: stretch;
}

.law-activities-swiper:not(.swiper-initialized) .swiper-wrapper{
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 18px 18px;
  scroll-snap-type: x mandatory;
}

.law-activity-slide{
  width: min(82vw, 380px);
  height: auto;
  display: flex;
  scroll-snap-align: center;
}

.law-activity-card{
  min-height: 385px;
  width: 100%;
  border-radius: var(--radius-xl);
  padding: 18px;
  background: #F9FBFE;
  border: 1px solid rgba(211,216,227,0.9);
  box-shadow: 0 18px 46px rgba(27,36,48,0.12);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
}

.law-activity-card::before{
  content: "";
  position: absolute;
  width: 240px;
  height: 140px;
  left: -85px;
  top: -60px;
  border-radius: 65% 35% 45% 55% / 40% 55% 45% 60%;
  background: currentColor;
  opacity: 0.12;
  pointer-events: none;
}

.law-activity-card::after{
  content: "";
  position: absolute;
  width: 200px;
  height: 155px;
  right: -75px;
  bottom: -65px;
  border-radius: 44% 56% 38% 62% / 55% 40% 60% 45%;
  background: currentColor;
  opacity: 0.08;
  pointer-events: none;
}

.law-activity-card--gold{
  --activity-accent: var(--gold-dark);
  color: var(--activity-accent);
}

.law-activity-card--blue{
  --activity-accent: #869bb1;
  color: var(--activity-accent);
}

.law-activity-icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(211,216,227,0.82);
  box-shadow: 0 10px 24px rgba(27,36,48,0.08);
  margin-bottom: 16px;
  margin-left: 5%;
}

.law-activity-icon i{
  color: currentColor;
  font-size: 20px;
}

.law-activity-plain-icon{
  font-size: 28px;
  color: #fff;
  margin-bottom: 16px;
  margin-left: 5%;
  display: block;
}

.law-activity-plain-img{
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 16px;
  margin-left: 5%;
}

.law-activity-card h3{
  font-size: 21px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 13px;
  color: var(--navy);
}

.law-activity-card h3 span{
  display: inline-block;
  color: var(--activity-accent);
  font-weight: 600;
}

.law-activity-card p{
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  position: relative;
  z-index: 1;
}

.law-activities-pagination{
  bottom: 2px !important;
}

.law-activities-pagination .swiper-pagination-bullet{
  width: 7px;
  height: 7px;
  background: rgba(50,64,79,0.32);
  opacity: 1;
}

.law-activities-pagination .swiper-pagination-bullet-active{
  background: var(--gold-dark);
}

/* Contact card */
.m-contactCard{ padding: 6px; }

.m-contactRow{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 16px;
  text-decoration:none;
}

.m-contactRow + .m-contactRow{
  border-top: 1px solid rgba(211,216,227,0.9);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.m-contactIcon{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(193,173,135,0.18);
  border: 1px solid rgba(193,173,135,0.30);
  display:flex;
  align-items:center;
  justify-content:center;
}

.m-contactIcon i{
  color: var(--gold-dark);
  font-size: 18px;
}

.m-contactText{ flex: 1 1 auto; min-width: 0; }

.m-contactLabel{
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(27,36,48,0.55);
}

.m-contactValue{
  margin-top: 2px;
  font-size: 14px;
  color: rgba(27,36,48,0.86);
  line-height: 1.3;
}

.m-contactNote{
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(27,36,48,0.62);
}

.m-chevron{ opacity: 0.45; color: var(--navy); }

/* Map card */
.m-mapCard{
  margin-top: 12px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(211,216,227,0.9);
  box-shadow: 0 18px 46px rgba(27,36,48,0.10);
  background: #e5e7eb;
}

.m-mapLink{
  display:block;
  position: relative;
  text-decoration: none;
}

.m-mapImg{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display:block;
  transform: scale(1.01);
}

.m-mapOverlay{
  position:absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(211,216,227,0.8);
  backdrop-filter: blur(12px);
}

.m-mapTitle{
  font-weight: 650;
  font-size: 13px;
  color: var(--navy);
}

.m-mapCta{
  margin-top: 4px;
  font-size: 12px;
  color: var(--gold-dark);
}

/* Footer */
.m-footer{
  padding: 18px 6px 16px;
  opacity: 0.8;
  text-align: center;
}
.m-footerLine{
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(27,36,48,0.65);
}

/* =========================
   Contact + Location from law_x1
   ========================= */

.footer-wrapper{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contact-section{
  margin-top: 35px;
  padding: clamp(3rem,7vh,7rem) 8vw clamp(2rem,5vh,4rem);
  flex: 0 0 auto;
  background: #d8d3c8;
  color: var(--navy);
}

.contact-section h2{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--navy);
}

.contact-grid{
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 10px;
}

.contact-item{
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  color: inherit;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.contact-icon{
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-grid .contact-item:first-child .contact-icon{
  padding-top: 2px;
}

.contact-icon i{
  font-size: 1.4rem;
  color: var(--navy);
  transition: transform .22s cubic-bezier(.19, 1, .22, 1);
}

.contact-label{
  letter-spacing: .14em;
  font-size: .78rem;
  color: rgba(27,36,48,.75);
  margin-bottom: .15rem;
  text-transform: uppercase;
}

.contact-value{
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}

.contact-note{
  margin: .25rem 0 0;
  font-size: .9rem;
  color: rgba(27,36,48,.8);
}

.location-section{
  padding: clamp(1.5rem,3vh,4rem) 8vw calc(clamp(3rem,5vh,6rem) + var(--barH) + 34px);
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  background: #F9F7F4;
}

.location-inner{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.location-heading{
  margin-bottom: 1.5rem;
}

.location-grid{
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  column-gap: 4rem;
  align-items: stretch;
}

.map-wrapper{
  width: min(310px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15,23,42,.08);
  background: #e5e7eb;
  height: auto;
  justify-self: center;
}

.map-wrapper a,
.map-image{
  display: block;
  height: 100%;
}

.map-image{
  width: 100%;
  object-fit: cover;
  transition: transform .35s ease-out;
}

.map-wrapper:hover .map-image{
  transform: scale(1.02);
}

.location-content{
  margin-left: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-eyebrow{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .6rem;
}

.location-title{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0;
  color: var(--navy);
}

.location-block h3{
  font-size: 1rem;
  margin-bottom: .4rem;
  color: var(--text-main);
}

.location-block p{
  margin: 0;
  line-height: 1.7;
  color: var(--text-muted);
}

.location-link{
  margin-top: 1.5rem;
  font-size: .95rem;
  color: var(--gold-dark);
  text-decoration: none;
}

.location-link:hover{
  text-decoration: underline;
}

/* =========================
   Bottom bar from richardlaw_mobile
   ========================= */

.m-bottomBar{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: var(--barH);
  border-radius: 999px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(211,216,227,0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 55px rgba(27,36,48,0.18);
  z-index: 9999;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  padding: 8px;
  gap: 8px;
  transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
}

.m-bottomBar--hidden{
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(6px);
}

.m-barBtn{
  height: calc(var(--barH) - 16px);
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  font-size: 11px;
  color: rgba(27,36,48,0.78);
  border: 1px solid transparent;
  transition: transform 0.14s ease, background 0.14s ease;
}

.m-barBtn i{
  font-size: 18px;
  color: var(--navy);
}

.m-barBtn:active{
  transform: scale(0.985);
}

.m-barBtn:hover{
  background: rgba(232,237,243,0.85);
  border-color: rgba(211,216,227,0.85);
}

.m-barBtn-main{
  background: var(--gold);
  color: var(--navy);
  border-color: rgba(0,0,0,0.04);
  box-shadow: 0 14px 34px rgba(27,36,48,0.16);
}

.m-barBtn-main i{
  color: var(--navy);
}

.m-barBtn-main:hover{
  filter: brightness(1.02);
}

@media (hover:hover) and (pointer:fine){
  .contact-item:hover .contact-icon,
  .contact-item:hover .contact-icon i{
    transform: scale(1.02) translateY(-.5px);
  }

  .contact-item:hover .contact-icon{
    background: rgba(255,255,255,.7);
    box-shadow: 0 10px 26px rgba(15,23,42,.18);
  }
}

@media (max-width: 768px){
  .contact-section{
    margin-top: 24px;
    padding: 3rem 6vw 2.5rem;
  }

  .contact-section h2{
    font-size: 24px;
    margin-bottom: 1.5rem;
  }

  .contact-grid{
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .location-section{
    padding: 2.5rem 6vw calc(3rem + var(--barH) + 34px);
  }

  .location-grid{
    grid-template-columns: 1fr;
    row-gap: 1.8rem;
  }

  .location-content{
    margin-left: 0;
  }

  .map-wrapper{
    width: min(310px, 82vw);
    height: auto;
    border-radius: 50%;
  }
}

/* hero card starts hidden; JS animates it in */
.m-hero-card--hidden{
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(6px);
  pointer-events: none;
}

@media (min-width: 760px){
  .m-section{
    max-width: 760px;
    margin: 0 auto;
  }
}
