/*
Theme Name: Monica Berlin MLC — v1.22.6 Footer Link Style
Theme URI: https://www.monicaberlinmlc.com
Author: Monica Berlin / OpenAI production build
Description: Custom native WordPress block theme for MonicaBerlinMLC.com. Version 1.22.6 preserves the approved v1.22.5 Privacy and GA4 production release and removes the unintended underline from the footer Cookie Settings control.
Version: 1.22.6
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: monicaberlinmlc
*/

/* WordPress-specific integration layer. The approved design system lives in assets/css/reference.css. */
:root {
  --wp--style--global--content-size: 760px;
  --wp--style--global--wide-size: 1180px;
}

body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

.wp-site-blocks { min-height: 100vh; }
.wp-block-post-content { margin-top: 0; }
.wp-block-post-content > *:first-child { margin-top: 0; }

/* Shared WordPress header/navigation wrapper */
.mbmlc-header .wp-block-group__inner-container { width: 100%; }
.mbmlc-nav-wrap { min-height: 82px; }
.mbmlc-nav-wrap .wp-block-navigation { font-family: Georgia, 'Times New Roman', serif; font-size: 15px; }
.mbmlc-nav-wrap .wp-block-navigation-item__content { color: var(--navy); }
.mbmlc-nav-wrap .wp-block-navigation-item:last-child > .wp-block-navigation-item__content {
  background: var(--teal2);
  color: #fff;
  padding: 11px 17px;
  border-radius: 3px;
}
.mbmlc-nav-wrap .wp-block-navigation-item.current-menu-item:not(:last-child) > .wp-block-navigation-item__content,
.mbmlc-nav-wrap .wp-block-navigation-item__content[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}

/* Footer alignment with approved v1.21 treatment */
.mbmlc-footer { margin-block-start: 0; }
.mbmlc-footer .wp-block-navigation { font-family: Georgia, 'Times New Roman', serif; }
.mbmlc-footer .wp-block-navigation-item__content { color: #fff; }

/* Prevent editor default margins from changing approved full-width sections. */
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }

/* Screen-reader utility */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px;
  word-wrap: normal !important;
}

/* WordPress navigation overlay keeps the approved palette. */
.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--ivory);
  color: var(--navy);
  padding: 28px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  align-items: flex-start;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  align-items: flex-start;
  gap: 18px;
}

@media (max-width: 1040px) {
  .mbmlc-nav-wrap .wp-block-navigation__responsive-container-open { display: flex; }
  .mbmlc-nav-wrap .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
}


/* Phase 2 Build 1: shared static-reference header/footer and page integration */
.mbmlc-phase2-page .wp-block-post-content { margin: 0; }
.mbmlc-phase2-page .wp-block-post-content > .section,
.mbmlc-phase2-page .wp-block-post-content > .hero,
.mbmlc-phase2-page .wp-block-post-content > .about-top-v114,
.mbmlc-phase2-page .wp-block-post-content > .bridge-band,
.mbmlc-phase2-page .wp-block-post-content > .credibility,
.mbmlc-phase2-page .wp-block-post-content > .connect { margin-block-start: 0; }
.site-header .brand { text-decoration: none; }
.site-header .brand small { display:block; }
.site-footer .brand small { display:block; }


/* Phase 2 Build 2: approved Home spacing correction only. */
.home .credibility .cred-grid { padding-top: 10px; padding-bottom: 10px; }

/* Phase 2 Build 2: Winning Approach and Services integration. */
.mbmlc-phase2-build2-page .wp-block-post-content { margin: 0; }
.mbmlc-phase2-build2-page .wp-block-post-content > .section,
.mbmlc-phase2-build2-page .wp-block-post-content > .page-hero,
.mbmlc-phase2-build2-page .wp-block-post-content > .connect { margin-block-start: 0; }

/* Services v1.21 approved alignment and responsive treatment. */
.services-hero{padding:52px 0 10px!important}
.services-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:48px;align-items:start}
.services-hero-copy,.services-hero-photo{margin:0;padding:0;align-self:start}
.services-hero-copy h1{margin:0}
.services-hero-copy .signature{margin:12px 0 20px;max-width:760px}
.services-intro-text{margin:0!important;max-width:760px!important;font-size:18px!important;line-height:1.72}
.services-hero-photo{justify-self:end;width:320px;max-width:320px}
.services-hero-photo img{display:block;width:100%;height:310px;object-fit:cover;object-position:center 58%;border-radius:3px}
.services-hero + .section{padding-top:18px!important}
.service-card-grid .report-card{grid-column:1/-1;max-width:none!important;width:100%!important;margin:0!important}
@media(max-width:900px){
  .services-hero{padding:46px 0 12px!important}
  .services-hero-grid{grid-template-columns:minmax(0,1fr) 280px;gap:32px}
  .services-hero-photo{width:280px;max-width:280px}
  .services-hero-photo img{height:286px}
  .services-hero + .section{padding-top:18px!important}
}
@media(max-width:700px){
  .services-hero{padding:38px 0 18px!important}
  .services-hero-grid{grid-template-columns:1fr;gap:22px}
  .services-hero-photo{justify-self:center;width:100%;max-width:330px}
  .services-hero-photo img{height:auto;aspect-ratio:4/5;object-fit:cover;object-position:center}
  .services-hero + .section{padding-top:22px!important}
}

/* Phase 2 Build 5 accessibility and form support. */
.skip-link:focus{clip:auto!important;clip-path:none!important;width:auto;height:auto;top:10px;left:10px;padding:12px 16px;background:#fff;color:var(--navy);z-index:99999;border:2px solid var(--teal2)}
.mbmlc-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.contact-status{padding:14px 16px;margin-bottom:18px;border:1px solid var(--line);background:#fff}
.contact-status-success{border-left:4px solid var(--teal2)}
.contact-status-error{border-left:4px solid #9f2d2d}
.contact-form input:focus,.contact-form textarea:focus,.site-header a:focus-visible,.site-footer a:focus-visible,.btn:focus-visible,.menu-btn:focus-visible{outline:3px solid #d9a928;outline-offset:3px}
.wp-block-search__input{border:1px solid var(--line);padding:12px;background:#fff}
.wp-block-search__button{background:var(--teal2);color:#fff;border:0;padding:12px 18px}

/* Build 5 same-version accessibility correction: contact-form readability. */
.contact-form label{font-size:18px!important;line-height:1.45;font-weight:700}
.contact-form input,.contact-form textarea{font-size:18px!important;line-height:1.5;padding:14px 16px!important}
.contact-form textarea{min-height:190px}

/* v1.22.3 — approved production correction:
   Match the “Why I Do This Work” hero title to the Professional Philosophy eyebrow color. */
.manifesto-hero h1 {
  color: #9fd4d5;
}


/* v1.22.5 — Privacy Policy, regional analytics consent, and GA4 controls. */
.privacy-policy-page main {
  padding: 52px 24px 76px;
}
.privacy-policy-page .wp-block-post-content {
  width: min(100%, 860px);
  margin: 0 auto;
}
.privacy-policy-page .wp-block-post-content h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 62px);
  line-height: 1.08;
}
.privacy-policy-page .wp-block-post-content h2 {
  margin: 38px 0 14px;
  font-size: clamp(27px, 3.2vw, 35px);
  line-height: 1.2;
}
.privacy-policy-page .wp-block-post-content p,
.privacy-policy-page .wp-block-post-content li {
  font-size: 18px;
  line-height: 1.72;
}
.privacy-policy-page .wp-block-post-content p {
  margin: 0 0 18px;
}
.privacy-policy-page .wp-block-post-content ul {
  margin: 0 0 22px 1.35em;
  padding: 0;
}
.privacy-policy-page .wp-block-post-content a {
  color: var(--teal2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-utility {
  margin-top: 9px;
}
/* v1.22.6 — Match Cookie Settings to the approved non-underlined footer link treatment. */
.footer-cookie-settings {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  margin: 0 8px;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
}
.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
  color: #fff;
}
.footer-cookie-settings:focus-visible {
  outline: 3px solid #d9a928;
  outline-offset: 4px;
}
.mbmlc-consent[hidden] {
  display: none !important;
}
.mbmlc-consent {
  position: fixed;
  z-index: 100000;
  left: 50%;
  bottom: 22px;
  width: min(calc(100% - 32px), 900px);
  transform: translateX(-50%);
  background: var(--ivory);
  color: var(--charcoal, #1f2933);
  border: 1px solid var(--line, #c9d2d8);
  border-top: 5px solid var(--teal2);
  box-shadow: 0 16px 42px rgba(5, 31, 60, 0.24);
}
.mbmlc-consent__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 24px 26px;
}
.mbmlc-consent__copy h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}
.mbmlc-consent__copy p {
  margin: 0 0 9px;
  max-width: 650px;
  font-size: 16px;
  line-height: 1.55;
}
.mbmlc-consent__copy a {
  color: var(--teal2);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mbmlc-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.mbmlc-consent__actions .btn {
  min-width: 148px;
  margin: 0;
}
.mbmlc-consent__actions .btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--teal2);
}
.mbmlc-consent__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.mbmlc-consent__close:focus-visible {
  outline: 3px solid #d9a928;
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .privacy-policy-page main {
    padding: 38px 20px 58px;
  }
  .privacy-policy-page .wp-block-post-content p,
  .privacy-policy-page .wp-block-post-content li {
    font-size: 17px;
    line-height: 1.65;
  }
  .mbmlc-consent {
    bottom: 12px;
    width: min(calc(100% - 20px), 900px);
  }
  .mbmlc-consent__inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px;
  }
  .mbmlc-consent__copy h2 {
    padding-right: 34px;
    font-size: 25px;
  }
  .mbmlc-consent__actions {
    justify-content: stretch;
  }
  .mbmlc-consent__actions .btn {
    flex: 1 1 160px;
  }
}
