
/*
 * Montisalis Brand Identity — v1.1
 * Frontend refinement to blend into the existing Montisalis theme.
 * No logo artwork is generated or modified by this plugin.
 */

:root{
  --mbi-bg: var(--wp--preset--color--base, #f3f0e8);
  --mbi-text: var(--wp--preset--color--contrast, #252521);
  --mbi-muted: rgba(37,37,33,.62);
  --mbi-line: rgba(37,37,33,.14);
  --mbi-rule: rgba(37,37,33,.52);
  --mbi-rule-weight: 1px;
  --mbi-dark: #2c2c29;
  --mbi-light: #f8f5ee;
  --mbi-max: 1180px;
}

/* Remove the theme's duplicate page title only on the Brand Identity page. */
body.mbi-brand-page .entry-header,
body.mbi-brand-page .entry-title,
body.mbi-brand-page .wp-block-post-title,
body.mbi-brand-page main > header:first-child {
  display:none !important;
}

body.mbi-brand-page .site-main,
body.mbi-brand-page .entry-content,
body.mbi-brand-page .wp-site-blocks,
body.mbi-brand-page main,
body.mbi-brand-page article,
body.mbi-brand-page .post,
body.mbi-brand-page .page {
  margin-top:0 !important;
  padding-top:0 !important;
}

body.mbi-brand-page .entry-content {
  max-width:none !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

body.mbi-brand-page .entry-content > h1:first-child,
body.mbi-brand-page .entry-content > h2:first-child,
body.mbi-brand-page .type-page > h1:first-child,
body.mbi-brand-page .type-page > h2:first-child {
  display:none !important;
}

.mbi-page{
  background:var(--mbi-bg);
  color:var(--mbi-text);
  overflow:hidden;
  font-family:inherit;
}

.mbi-page *{box-sizing:border-box}
.mbi-page a{color:inherit;text-decoration:none}

/* HERO */

.mbi-hero .mbi-kicker{
  display:none;
}

.mbi-hero h1{
  margin-top:0;
}
.mbi-hero{
  min-height:58vh;
  max-height:760px;
  display:flex;
  align-items:flex-end;
  position:relative;
  border-bottom:1px solid var(--mbi-line);
  background:var(--mbi-bg);
  overflow:hidden;
}

.mbi-hero.has-image{
  background-image:
    linear-gradient(to top, rgba(17,17,15,.34), rgba(17,17,15,.12) 42%, rgba(17,17,15,.06) 70%, rgba(17,17,15,.02)),
    linear-gradient(to right, rgba(17,17,15,.24), rgba(17,17,15,.04) 42%, rgba(17,17,15,0)),
    var(--mbi-hero);
  background-size:cover;
  background-position:center;
  color:#fff;
}

.mbi-hero-inner{
  width:min(var(--mbi-max), calc(100% - 9vw));
  margin:0 auto;
  padding:7.5vh 0 6.5vh;
}

.mbi-kicker{
  display:flex;
  align-items:center;
  gap:22px;
  text-transform:uppercase;
  letter-spacing:.28em;
  font-size:10px;
  line-height:1;
  opacity:.92;
}

.mbi-kicker>span:first-child{
  display:block;
  width:48px;
  height:var(--mbi-rule-weight);
  background:var(--mbi-rule);
  opacity:1;
}

.mbi-hero h1{
  max-width:670px;
  margin:18px 0 18px;
  font-family:var(--e-global-typography-primary-font-family, var(--wp--preset--font-family--heading, inherit));
  font-size:clamp(3.0rem,5.3vw,5.45rem);
  font-weight:400;
  line-height:.96;
  letter-spacing:-.04em;
}

.mbi-hero p{
  max-width:480px;
  margin:0;
  font-family:var(--e-global-typography-text-font-family, inherit);
  font-size:14px;
  line-height:1.58;
  opacity:.84;
}

/* SECTIONS */
.mbi-section{
  width:min(var(--mbi-max), calc(100% - 9vw));
  margin:0 auto;
  padding:8.8vh 0;
  display:grid;
  grid-template-columns:72px 310px minmax(0,1fr);
  gap:40px;
  border-bottom:1px solid var(--mbi-line);
}

.mbi-index{
  display:flex;
  align-items:flex-start;
  gap:13px;
  padding-top:4px;
  font-size:9px;
  line-height:1;
  letter-spacing:.10em;
  opacity:.68;
}

.mbi-index i{
  width:40px;
  height:var(--mbi-rule-weight);
  margin-top:4px;
  background:var(--mbi-rule);
  opacity:1;
}

.mbi-copy h2{
  margin:31px 0 20px;
  font-size:clamp(2.15rem,3.5vw,3.65rem);
  font-weight:400;
  line-height:1.02;
  letter-spacing:-.032em;
}

.mbi-copy p{
  max-width:360px;
  margin:0 0 25px;
  font-size:14px;
  line-height:1.62;
  color:var(--mbi-muted);
}


.mbi-section .mbi-copy .mbi-kicker{
  gap:0;
  font-size:10px;
  letter-spacing:.28em;
}

.mbi-section .mbi-copy .mbi-kicker>span:first-child{
  display:none;
}

.mbi-text-link{
  display:inline-flex;
  align-items:center;
  gap:28px;
  padding-bottom:6px;
  border-bottom:var(--mbi-rule-weight) solid var(--mbi-rule);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.17em;
}

/* GUIDELINES PANEL — quieter, more editorial */
.mbi-guideline-panel{
  min-height:410px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:7%;
  background:linear-gradient(180deg, rgba(37,37,33,.03), rgba(37,37,33,.018));
  perspective:1400px;
  overflow:hidden;
}

.mbi-sheet{
  width:min(318px,79%);
  aspect-ratio:.72;
  padding:34px 32px 30px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:var(--mbi-light);
  border:1px solid rgba(37,37,33,.06);
  box-shadow:
    0 38px 65px rgba(0,0,0,.12),
    0 10px 20px rgba(0,0,0,.05);
  position:relative;
  overflow:hidden;
  transform:rotate(-5deg) translateZ(0);
  transform-origin:center center;
}

.mbi-sheet::before{
  content:'';
  position:absolute;
  top:8px;
  bottom:8px;
  left:-9px;
  width:16px;
  background:linear-gradient(90deg, rgba(0,0,0,.10), rgba(255,255,255,.38) 26%, rgba(0,0,0,.03) 70%, rgba(0,0,0,.08));
  border-radius:2px 0 0 2px;
  filter:blur(.15px);
  opacity:.9;
}

.mbi-sheet::after{
  content:'';
  position:absolute;
  right:-11px;
  top:5px;
  bottom:5px;
  width:13px;
  background:
    linear-gradient(90deg, rgba(246,242,233,.98), rgba(237,231,221,.96) 62%, rgba(228,222,212,.92)),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.10) 0 2px,
      rgba(0,0,0,.025) 2px 4px
    );
  border-left:1px solid rgba(37,37,33,.045);
  border-radius:0 1px 1px 0;
  transform:skewY(-2.5deg);
  box-shadow:2px 0 8px rgba(0,0,0,.035);
  opacity:.82;
}

.mbi-sheet.has-cover{
  background-image:
    linear-gradient(to top, rgba(16,16,15,.38), rgba(16,16,15,.12) 48%, rgba(16,16,15,.16)),
    var(--mbi-guidelines-cover);
  background-size:cover;
  background-position:center;
  color:#fff;
}

.mbi-sheet.has-cover .mbi-sheet-overlay{
  display:none;
}

.mbi-sheet.has-cover::marker{
  content:'';
}

.mbi-sheet.has-cover .mbi-sheet-border{
  display:none;
}

.mbi-sheet.has-cover small,
.mbi-sheet.has-cover span{
  color:rgba(255,255,255,.84);
}

.mbi-sheet.has-cover strong{
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.16);
}

.mbi-sheet small,
.mbi-sheet strong,
.mbi-sheet span{
  position:relative;
  z-index:2;
}

.mbi-sheet small{
  font-size:8px;
  letter-spacing:.26em;
}

.mbi-sheet strong{
  font-size:33px;
  line-height:1.02;
  font-weight:400;
  max-width:188px;
}

.mbi-sheet span{
  font-size:9px;
  color:var(--mbi-muted);
  text-transform:uppercase;
  letter-spacing:.18em;
}

/* LOGO CARDS — lighter, less UI-like */
.mbi-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 22px;
}

.mbi-card{
  min-width:0;
  border-top:1px solid var(--mbi-line);
  border-bottom:1px solid var(--mbi-line);
}

.mbi-card:nth-child(n+3){
  margin-top:22px;
}

.mbi-card-visual{
  min-height:205px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px;
  text-align:center;
}

.mbi-card-visual img{
  display:block;
  max-width:70%;
  max-height:74px;
  object-fit:contain;
}

.mbi-card-visual span{
  font-size:14px;
  line-height:1.35;
  opacity:.32;
}

.mbi-card.mbi-dark .mbi-card-visual{
  background:rgba(255,255,255,.72);
  color:var(--mbi-text);
}

.mbi-card.mbi-light .mbi-card-visual{
  background:var(--mbi-dark);
  color:var(--mbi-light);
}

.mbi-card-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 2px 16px;
}

.mbi-card-meta div{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.mbi-card-meta strong{
  font-size:12px;
  font-weight:400;
}

.mbi-card-meta span{
  font-size:9px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--mbi-muted);
}

.mbi-card-meta>a{
  font-size:17px;
  line-height:1;
  opacity:.8;
}

/* ACCESS */
.mbi-access{
  padding-top:8.8vh;
  padding-bottom:8.8vh;
}

.mbi-access .mbi-copy{
  grid-column:auto;
  max-width:310px;
}

.mbi-access .mbi-copy h2{
  margin-top:31px;
  font-size:clamp(2.15rem,3.5vw,3.65rem);
}

.mbi-access .mbi-copy p{
  max-width:310px;
}

.mbi-access-request{
  margin-top:-7px !important;
  font-size:12px !important;
  line-height:1.55 !important;
}

.mbi-access-request a{
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid rgba(37,37,33,.18);
  padding-bottom:1px;
}

.mbi-access-panel{
  align-self:center;
  width:min(100%, 560px);
  padding:42px 46px 38px;
  background:rgba(37,37,33,.018);
  border-top:1px solid var(--mbi-line);
  border-bottom:1px solid var(--mbi-line);
}

.mbi-access-form{
  margin:0;
  max-width:none;
}

.mbi-access-form label{
  display:block;
  margin:0 0 19px;
  color:var(--mbi-muted);
  font-size:9px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.24em;
}

.mbi-access-row{
  display:flex;
  align-items:center;
  gap:24px;
  border-bottom:var(--mbi-rule-weight) solid var(--mbi-rule);
}

.mbi-access-form input{
  min-width:0;
  flex:1;
  padding:9px 0 12px;
  background:transparent;
  border:0!important;
  outline:0;
  box-shadow:none!important;
  color:inherit;
  font-family:inherit;
  font-size:18px;
  line-height:1.2;
  letter-spacing:.06em;
}

.mbi-access-form button{
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  padding:9px 0 12px 18px;
  cursor:pointer;
  font:inherit;
  font-size:9px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.20em;
  transition:opacity .2s ease;
}

.mbi-access-form button:hover{
  opacity:.55;
}

.mbi-error{
  margin:0 0 20px!important;
  color:inherit!important;
  font-size:12px!important;
  line-height:1.5!important;
}

.mbi-access-granted{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.mbi-access-state{
  color:var(--mbi-muted);
  font-size:9px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.24em;
}

.mbi-access-granted p{
  max-width:390px;
  margin:0;
  color:var(--mbi-muted);
  font-size:14px;
  line-height:1.6;
}


@media (max-width:900px){
  .mbi-access-panel{
    width:100%;
    padding:34px 32px 31px;
  }
}

@media (max-width:560px){
  .mbi-access-panel{
    padding:28px 24px 26px;
  }

  .mbi-access-row{
    gap:16px;
  }

  .mbi-access-form input{
    font-size:16px;
  }
}

/* Contact / Assets placement */
.mbi-contact-block{
  display:flex;
  flex-direction:column;
  gap:54px;
  width:min(100%, 760px);
  margin-top:0;
}

.mbi-contact-primary,
.mbi-contact-assets{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.mbi-contact-label{
  display:flex;
  align-items:center;
  gap:30px;
  margin-bottom:26px;
  font-size:10px;
  line-height:1;
  letter-spacing:.30em;
  text-transform:uppercase;
}

.mbi-contact-label>span:first-child{
  display:block;
  width:64px;
  height:var(--mbi-rule-weight);
  background:var(--mbi-rule);
}

.mbi-contact-subtitle{
  margin:0 0 18px;
  color:var(--mbi-muted);
  font-size:clamp(1.0rem,1.25vw,1.25rem);
  line-height:1.45;
}

.mbi-contact-email{
  display:inline-block;
  font-family:var(--e-global-typography-primary-font-family, var(--wp--preset--font-family--heading, inherit));
  font-size:clamp(2.05rem,3.1vw,3.25rem);
  font-weight:400;
  line-height:1.04;
  letter-spacing:-.035em;
  border-bottom:var(--mbi-rule-weight) solid var(--mbi-line);
  padding-bottom:5px;
  transition:opacity .25s ease;
}

.mbi-contact-identity{
  display:inline-block;
  font-family:var(--e-global-typography-primary-font-family, var(--wp--preset--font-family--heading, inherit));
  font-size:clamp(1.8rem,2.4vw,2.45rem);
  font-weight:400;
  line-height:1.08;
  letter-spacing:-.026em;
  transition:opacity .25s ease;
}

.mbi-contact-email:hover,
.mbi-contact-identity:hover{
  opacity:.56;
}

.mbi-contact-link{
  margin-top:58px;
}

.mbi-contact-link .mbi-contact-label{
  margin-bottom:28px;
}

/* TABLET */
@media (max-width:900px){
  .mbi-hero{
    min-height:52vh;
  }

  .mbi-hero-inner{
    width:calc(100% - 42px);
    padding:84px 0 44px;
  }

  .mbi-hero h1{
    font-size:clamp(2.7rem,10vw,4.65rem);
  }

  .mbi-section{
    width:calc(100% - 42px);
    padding:68px 0;
    display:block;
  }

  .mbi-index{
    margin-bottom:38px;
  }

  .mbi-copy{
    max-width:590px;
  }

  .mbi-copy p{
    max-width:500px;
  }

  .mbi-guideline-panel{
    margin-top:46px;
    min-height:330px;
  }

  .mbi-grid{
    margin-top:44px;
  }

  .mbi-access .mbi-copy{
    max-width:100%;
  }

  .mbi-contact-block{
    gap:46px;
  }

  .mbi-contact-email{
    font-size:clamp(1.95rem,4.8vw,2.8rem);
  }

  .mbi-contact-identity{
    font-size:clamp(1.7rem,3.8vw,2.2rem);
  }

  .mbi-contact-link{
    margin-top:52px;
  }
}

/* MOBILE */
@media (max-width:560px){
  .mbi-hero-inner,
  .mbi-section{
    width:calc(100% - 34px);
  }

  .mbi-hero{
    min-height:48vh;
  }

  .mbi-hero-inner{
    padding-top:72px;
    padding-bottom:34px;
  }

  .mbi-kicker{
    gap:14px;
    font-size:9px;
  }

  .mbi-kicker>span:first-child{
    width:34px;
  }

  .mbi-hero h1{
    margin-top:18px;
    font-size:clamp(2.45rem,11.5vw,4rem);
    line-height:.98;
  }

  .mbi-hero p{
    max-width:92%;
    font-size:13px;
  }

  .mbi-section{
    padding:54px 0;
  }

  .mbi-copy h2{
    margin-top:25px;
  }


  .mbi-section .mbi-copy .mbi-kicker{
    font-size:9px;
  }

  .mbi-index i{
    width:34px;
  }

  .mbi-guideline-panel{
    margin-top:40px;
    min-height:290px;
    padding:9%;
  }

  .mbi-sheet{
    padding:26px 24px 24px;
    transform:rotate(-4deg);
  }

  .mbi-sheet::before{
    left:-7px;
    width:12px;
  }

  .mbi-sheet::after{
    right:-8px;
    top:4px;
    bottom:4px;
    width:10px;
  }

  .mbi-sheet strong{
    font-size:29px;
  }

  .mbi-grid{
    grid-template-columns:1fr;
    gap:0;
    margin-top:40px;
  }

  .mbi-card,
  .mbi-card:nth-child(n+3){
    margin-top:18px;
  }

  .mbi-card:first-child{
    margin-top:0;
  }

  .mbi-card-visual{
    min-height:180px;
  }

  .mbi-access{
    padding-top:48px;
    padding-bottom:58px;
  }

  .mbi-access .mbi-copy h2{
    font-size:1.7rem;
  }

  .mbi-contact-block{
    gap:38px;
  }

  .mbi-contact-label{
    gap:18px;
    margin-bottom:20px;
    font-size:9px;
  }

  .mbi-contact-label>span:first-child{
    width:42px;
  }

  .mbi-contact-subtitle{
    margin-bottom:14px;
    font-size:15px;
  }

  .mbi-contact-email{
    font-size:clamp(1.75rem,8vw,2.3rem);
  }

  .mbi-contact-identity{
    font-size:clamp(1.55rem,7vw,2rem);
  }

  .mbi-contact-link{
    margin-top:48px;
  }
}

/* Homepage Contact integration — v2.1 */
#contact .mbi-home-contact-column{
  --mbi-home-display-font: inherit;
  --mbi-home-display-weight: 400;
  max-width:460px;
  color:var(--mbi-text);
}

#contact .mbi-home-group{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

#contact .mbi-home-group-assets{
  margin-top:64px;
}

#contact .mbi-home-label{
  display:flex;
  align-items:center;
  gap:22px;
  margin:0 0 34px;
  color:rgba(37,37,33,.78);
  font-family:inherit;
  font-size:10px;
  font-weight:400;
  line-height:1;
  letter-spacing:.30em;
  text-transform:uppercase;
}

#contact .mbi-home-label-line{
  display:block;
  width:60px;
  height:1px;
  flex:0 0 auto;
  background:rgba(37,37,33,.46);
}

#contact .mbi-home-label-word{
  color:inherit;
}

#contact .mbi-home-primary-link{
  display:inline-block;
  width:auto;
  max-width:100%;
  margin:0;
  padding:0 0 5px;
  color:rgba(37,37,33,.92) !important;
  font-family:var(--mbi-home-display-font) !important;
  font-size:clamp(1.82rem, 2.05vw, 2.28rem) !important;
  font-weight:var(--mbi-home-display-weight) !important;
  line-height:1.08 !important;
  letter-spacing:-.025em !important;
  text-decoration:none !important;
  border-bottom:1px solid rgba(37,37,33,.14);
  transition:opacity .22s ease, border-color .22s ease;
}

#contact .mbi-home-primary-link:hover{
  opacity:.66;
  border-color:rgba(37,37,33,.32);
}

@media (min-width:981px){
  #contact .mbi-home-contact-column{
    padding-top:0;
  }
}

@media (max-width:1200px){
  #contact .mbi-home-primary-link{
    font-size:clamp(1.72rem, 2.6vw, 2.08rem) !important;
  }

  #contact .mbi-home-group-assets{
    margin-top:54px;
  }
}

@media (max-width:850px){
  #contact .mbi-home-contact-column{
    max-width:none;
  }

  #contact .mbi-home-label{
    gap:18px;
    margin-bottom:24px;
    font-size:9px;
  }

  #contact .mbi-home-label-line{
    width:44px;
  }

  #contact .mbi-home-primary-link{
    font-size:clamp(1.62rem, 5.2vw, 2rem) !important;
  }

  #contact .mbi-home-group-assets{
    margin-top:42px;
  }
}





/* Brand Identity link reuses Montisalis Site Core's exact .focus-arrow */
#contact .mbi-home-brand-link{
  display:inline-flex !important;
  align-items:center;
  gap:14px;
}

#contact .mbi-home-brand-link .focus-arrow{
  flex:0 0 24px !important;
}

@media (max-width:850px){
  #contact .mbi-home-brand-link{
    gap:10px;
  }
}

/* v3.4.0: paired original downloads for each approved wordmark variant. */
.mbi-card-downloads{display:flex!important;flex-direction:row!important;gap:17px!important;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.mbi-card-downloads a,.mbi-card-downloads .mbi-format-unavailable{font-size:11px;font-weight:500;letter-spacing:.09em;text-transform:uppercase;text-decoration:none;color:var(--mbi-text);white-space:nowrap}
.mbi-card-downloads a span{font-size:15px;letter-spacing:0;margin-left:3px}
.mbi-card-downloads a:hover{opacity:.55}
.mbi-card-downloads .mbi-format-unavailable{opacity:.32}

/* v3.4.1: display the exact approved original wordmark instead of typeset cover text. */
.mbi-sheet .mbi-sheet-original-logo{position:relative;z-index:2;display:block;width:112px;max-width:60%;height:auto;object-fit:contain;align-self:flex-start;flex:none;opacity:1;filter:none;mix-blend-mode:normal;}
