/* ==========================================================================
   Martin Capital Partners — martincp.com static rebuild
   Theme extracted from live Wix site:
     Fonts:  Wix Madefor Display (headings) / Wix Madefor Text (body)
     Colors: #000 base, #0A415A deep blue, #FFF text
   ========================================================================== */

:root{
  --blue:#0A415A;
  --gold:#C9A84C;
  --white:#FFFFFF;
  --gray:#8F8F8F;
  --black:#000000;
  --hairline:rgba(255,255,255,.55);
  --max:1200px;
}

*{box-sizing:border-box;margin:0;padding:0}

html{scroll-behavior:smooth}

body{
  background:var(--black);
  color:var(--white);
  font-family:'Wix Madefor Text',HelveticaNeue,Helvetica,Arial,sans-serif;
  font-size:17px;
  line-height:1.6;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
}

/* Page background: black fading into the deep blue toward the footer,
   matching the live site's long gradient */
.page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:linear-gradient(180deg,#000 0%,#000 58%,#04222F 82%,var(--blue) 100%);
}

h1,h2,h3{
  font-family:'Wix Madefor Display',HelveticaNeue,Helvetica,Arial,sans-serif;
  font-weight:700;
  line-height:1.2;
}

a{color:var(--white);text-decoration:none}

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

.wrap{max-width:var(--max);width:100%;margin:0 auto;padding:0 40px}

/* ------------------------------------------------------------------ header */
header.site{
  position:relative;z-index:150;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  padding:14px 40px 10px;
}
header.site .logo{grid-column:2;justify-self:center}
header.site .logo img{height:140px;width:auto}
.menu-btn{
  grid-column:3;justify-self:end;
  background:none;border:none;cursor:pointer;padding:8px;
  position:relative;z-index:150; /* stays clickable above the overlay */
}
.menu-btn span{
  display:block;width:26px;height:2px;background:var(--white);margin:6px 0;
  transition:transform .3s ease,opacity .3s ease;
}
.menu-btn.active span:nth-child(1){transform:translateY(4px) rotate(45deg)}
.menu-btn.active span:nth-child(2){transform:translateY(-4px) rotate(-45deg)}

/* full-screen menu overlay */
.menu-overlay{
  position:fixed;inset:0;background:rgba(0,0,0,.96);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:28px;z-index:100;
  opacity:0;visibility:hidden;
  transition:opacity .35s ease,visibility 0s linear .35s;
}
.menu-overlay.open{
  opacity:1;visibility:visible;
  transition:opacity .35s ease,visibility 0s;
}
.menu-overlay a{
  font-family:'Wix Madefor Display',sans-serif;
  font-size:26px;font-weight:400;letter-spacing:.02em;
  opacity:0;transform:translateY(18px);
  transition:opacity .4s ease,transform .4s ease,color .15s ease;
}
.menu-overlay.open a{opacity:1;transform:none}
.menu-overlay.open a:nth-child(1){transition-delay:.08s}
.menu-overlay.open a:nth-child(2){transition-delay:.14s}
.menu-overlay.open a:nth-child(3){transition-delay:.20s}
.menu-overlay.open a:nth-child(4){transition-delay:.26s}
.menu-overlay.open a:nth-child(5){transition-delay:.32s}
.menu-overlay.open a:nth-child(6){transition-delay:.38s}
.menu-overlay a:hover{color:var(--gold)}
body.menu-open{overflow:hidden}

/* -------------------------------------------------------------------- hero */
.hero{
  position:relative;
  height:100vh;min-height:640px;
  overflow:hidden;
  background-size:cover;background-position:center 30%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;
}
.hero-video{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;object-position:center 30%;
}
.hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.18) 0%,rgba(0,0,0,.32) 55%,rgba(0,0,0,.78) 92%,#000 100%);
}
.hero > :not(.hero-video){position:relative;z-index:1}
.hero h1{font-size:86px;font-weight:800;letter-spacing:.005em;
  animation:heroIn .9s ease .25s both}
.hero .tagline{animation:heroIn .9s ease .5s both}
@keyframes heroIn{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
.hero .tagline{
  margin-top:14px;font-size:17px;font-weight:400;letter-spacing:.02em;
}
.hero .tagline .sep{padding:0 10px;color:var(--gold)}

/* header floats over the hero on home (transparent bg) */
.home header.site{position:absolute;top:0;left:0;right:0}

/* ------------------------------------------------------------------ buttons */
.btn{
  display:inline-flex;align-items:center;gap:14px;
  border:1px solid var(--white);border-radius:100px;
  padding:10px 26px;
  font-size:14px;color:var(--white);
  background:transparent;
  transition:background .15s ease;
}
.btn:hover{background:rgba(255,255,255,.06);border-color:var(--gold)}
.arrow{
  display:inline-block;position:relative;width:34px;height:1.5px;background:var(--white);
}
.arrow::after{
  content:"";position:absolute;right:-1px;top:50%;
  width:8px;height:8px;border-top:1.5px solid var(--white);border-right:1.5px solid var(--white);
  transform:translateY(-50%) rotate(45deg);
}

/* underlined "More" link with arrow */
.more-link{
  display:inline-flex;align-items:center;gap:12px;
  font-size:15px;text-decoration:none;
  cursor:pointer;background:none;border:none;color:var(--white);
  font-family:inherit;transition:color .15s ease;
}
.more-link:hover{color:var(--gold)}
.more-link:hover .arrow{background:var(--gold)}
.more-link:hover .arrow::after{border-color:var(--gold)}

/* ----------------------------------------------------------- home sections */
.section{padding:90px 0}
.split{
  display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center;
}
.split h2{font-size:35px;margin-bottom:26px;text-align:center}
.split p{text-align:justify;margin-bottom:30px}
.split .cta{text-align:center}
.split img{width:100%;max-width:460px;justify-self:center}

/* insights preview (home) + archive boxes */
.center-h2{font-size:35px;text-align:center;margin-bottom:36px}
.insight-box{
  display:flex;justify-content:space-between;gap:16px;
  border:1px solid var(--white);
  padding:14px 20px;
  font-size:15px;
  max-width:640px;margin:0 auto 22px;
  transition:background .15s ease,border-color .15s ease;
}
.insight-box .when{white-space:nowrap;color:#CDE1EA}
.insight-box:hover{background:rgba(255,255,255,.05);border-color:rgba(201,168,76,.75)}
.center-cta{text-align:center;margin-top:34px}

/* client resources */
.resources{text-align:center}
.resources h2{font-size:35px;margin-bottom:34px}
.resources .btn{margin:0 12px}

/* ------------------------------------------------------------------ footer */
footer.site{
  margin-top:auto;
  padding:40px 40px 28px;
}
footer.site .rule{
  border-top:1px solid rgba(201,168,76,.55); /* gold hairline */
  max-width:calc(var(--max) - 80px);margin:0 auto 30px;
}
.footer-inner{max-width:var(--max);margin:0 auto;position:relative}
footer.site h3{font-size:20px;margin-bottom:16px}
footer.site p{font-size:13px;line-height:1.55}
footer.site .addr{margin-bottom:22px}
footer.site .addr .firm{font-weight:700}
footer.site .legal a{display:block;font-size:12px;line-height:1.7}
footer.site .copyright{font-size:12px;margin-top:4px}
.linkedin{
  position:absolute;right:0;bottom:0;
}
.linkedin svg{width:22px;height:22px;fill:var(--white);opacity:.9}
.linkedin:hover svg{opacity:1}

/* ------------------------------------------------------------- inner pages */
.page-title{font-size:40px;text-align:center;margin:48px 0 40px}
.prose{max-width:900px;width:100%;margin:0 auto}
.prose p{text-align:justify;margin-bottom:28px}
.prose .note{font-size:13px;text-align:left;margin-top:-10px}
.prose ul{margin:0 0 28px 22px}
.prose li{text-align:justify;margin-bottom:20px}

/* ------------------------------------------------------------ team page */
.team-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:36px;
  max-width:var(--max);margin:70px auto 40px;padding:0 40px;
}
.member .photo{
  width:100%;aspect-ratio:10/13;object-fit:cover;object-position:top center;
  margin-bottom:20px;
}
.member .name{font-size:17px;font-weight:700;margin-bottom:2px}
.member .role{font-size:15px;margin-bottom:14px}
.member .teaser{font-size:15px;line-height:1.55;margin-bottom:16px}

/* ---------------------------------------------------------------- bio modal */
.modal-backdrop{
  position:fixed;inset:0;background:rgba(4,20,28,.65);
  backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  display:none;align-items:center;justify-content:center;z-index:200;padding:24px;
}
.modal-backdrop.open{display:flex}
.bio-modal{
  background:var(--blue);
  width:min(880px,100%);
  max-height:88vh;
  display:grid;grid-template-columns:300px 1fr;
  overflow:hidden;position:relative;
  animation:modalIn .35s ease both;
}
@keyframes modalIn{
  from{opacity:0;transform:scale(.97) translateY(10px)}
  to{opacity:1;transform:none}
}
.bio-photo{border-right:1px solid rgba(201,168,76,.5)}
.bio-photo img{width:100%;height:100%;object-fit:cover;object-position:top center}
.bio-content{
  padding:44px 46px 38px;
  overflow-y:auto;max-height:88vh;
}
.bio-content .name{
  font-family:'Wix Madefor Display',sans-serif;
  font-size:28px;font-weight:700;line-height:1.15;
}
.bio-content .role{
  font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:var(--gold);margin-top:6px;
}
.gold-rule{width:44px;height:2px;background:var(--gold);margin:18px 0 20px}
.bio-stats{font-size:15px;margin-bottom:18px}
.bio-stats strong{font-weight:700}
.bio-line{font-size:14px;line-height:1.55;margin-bottom:10px}
.bio-line span{
  display:block;font-size:11px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:#9FC2D2;margin-bottom:2px;
}
.bio-text{margin-top:22px;padding-top:22px;border-top:1px solid rgba(255,255,255,.18)}
.bio-text p{font-size:15px;line-height:1.7;text-align:justify}
.bio-close{
  position:absolute;top:18px;right:22px;z-index:2;
  background:none;border:none;color:var(--white);
  font-size:26px;font-weight:300;cursor:pointer;line-height:1;
  transition:color .15s ease;
}
.bio-close:hover{color:var(--gold)}

/* --------------------------------------------------------- insights archive */
.wrap-wide{max-width:1440px;width:100%;margin:0 auto;padding:0 40px}
.featured-letter{
  border:1px solid var(--white);
  width:100%;margin:0 auto 70px;
  padding:38px 44px;
}
.featured-letter .kicker{font-size:12px;letter-spacing:.12em;text-transform:uppercase;margin-bottom:12px;color:var(--gold)}
.featured-letter h2{font-size:28px;margin-bottom:8px}
.featured-letter .date{font-size:14px;color:#CDE1EA;margin-bottom:22px}
.year-block{width:100%;margin:0 auto 34px}
.year-block .year{
  font-family:'Wix Madefor Display',sans-serif;
  font-size:22px;font-weight:700;
  border-bottom:1px solid rgba(201,168,76,.55); /* gold hairline */
  padding-bottom:8px;margin-bottom:20px;
}
.year-block .insight-box{max-width:none}


/* mobile: bio modal becomes a bottom sheet */
@media (max-width:700px){
  .modal-backdrop{align-items:flex-end;padding:0}
  .bio-modal{
    display:block;width:100%;
    border-radius:18px 18px 0 0;
    max-height:88vh;overflow-y:auto;
    animation:sheetUp .4s cubic-bezier(.32,.72,.35,1) both;
    padding-top:12px;
  }
  .bio-modal::before{ /* drag handle */
    content:"";display:block;width:40px;height:4px;border-radius:4px;
    background:rgba(255,255,255,.35);margin:0 auto 6px;
  }
  @keyframes sheetUp{from{transform:translateY(100%)}to{transform:none}}
  .bio-photo{
    width:108px;height:134px;margin:14px 0 0 26px;
    border:1px solid rgba(201,168,76,.6);border-right-width:1px;
    border-radius:10px;overflow:hidden;
  }
  .bio-content{padding:18px 26px 34px;max-height:none;overflow:visible}
  .bio-content .name{font-size:24px}
}

/* ------------------------------------------------------------ scroll reveal */
html.js .reveal{opacity:0;transform:translateY(26px);
  transition:opacity .7s ease,transform .7s ease}
html.js .reveal.in{opacity:1;transform:none}
html.js img.reveal{transform:translateY(26px) scale(1.03)}
html.js img.reveal.in{transform:none}

/* ------------------------------------------------------------- responsive */
@media (max-width:900px){
  .split{grid-template-columns:1fr;gap:40px}
  .split > div{order:1}   /* text block first on mobile */
  .split > img{order:2}   /* image below its text */
  .team-grid{grid-template-columns:repeat(2,1fr)}
  .hero h1{font-size:44px}
  .page-title{font-size:32px}
  .split h2,.center-h2,.resources h2{font-size:28px}
}
@media (max-width:560px){
  .wrap{padding:0 22px}
  header.site{padding:12px 22px 8px}
  .team-grid{grid-template-columns:1fr;padding:0 22px}
  .section{padding:60px 0}
  footer.site{padding:32px 22px 22px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .btn,.insight-box,.menu-btn span,.menu-overlay,.menu-overlay a{transition:none}
  .hero h1,.hero .tagline,.bio-modal{animation:none}
  html.js .reveal{opacity:1;transform:none;transition:none}
}
