/* ==========================================================================
   TIB – shared site chrome (header + footer contact form) for ALL pages,
   matching the homepage of the Signature concept
   (reference-design/theintegrativebeing_signature_concept.html).
   Loaded last, after the homepage / inner-page stylesheets.
   ========================================================================== */

/* --- Header ------------------------------------------------------------- */
/* Bridge gives .container/.content/.full_width {position:relative;z-index:100};
   with the same z-index, later content painted over the sticky header. */
/* (Bridge responsive.min.css forces "header{position:relative!important}" under 1000px) */
html body.tib-signature-page .site-header{
  position:sticky!important;top:0;z-index:1000;
  background:rgba(46,43,38,.78);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  color:#F7F3EC;
  transition:background .4s,box-shadow .4s,min-height .4s;
}
html body.tib-signature-page .site-header.scrolled{background:rgba(38,35,31,.94);box-shadow:0 16px 60px rgba(34,29,25,.12)}
html body.tib-signature-page.admin-bar .site-header{top:32px}
@media (max-width:782px){html body.tib-signature-page.admin-bar .site-header{top:46px}}

html body.tib-signature-page .site-header .header-inner{min-height:76px}
html body.tib-signature-page .site-header .brand{font-size:23px;line-height:1.72}
@media (max-width:680px){
  html body.tib-signature-page .site-header .header-inner{min-height:68px}
  html body.tib-signature-page .site-header .brand{font-size:20px}
}
html body.tib-signature-page .site-header .brand-mark{
  position:relative;
  box-shadow:0 0 0 5px rgba(193,127,90,.08),0 0 26px rgba(193,127,90,.24);
}
html body.tib-signature-page .site-header .main-nav a,
html body.tib-signature-page .site-header .header-cta{line-height:1.72}

/* Mobile menu = reference homepage (full-screen overlay, serif links) */
html body.tib-signature-page .mobile-nav{
  display:none;position:fixed;inset:76px 0 0;z-index:999;padding:28px;
  background:rgba(46,43,38,.98);
}
html body.tib-signature-page .mobile-nav.open{display:block}
html body.tib-signature-page .mobile-nav a{
  display:block;padding:15px 4px;border-bottom:1px solid rgba(255,255,255,.08);
  font-family:"IBM Plex Serif",Georgia,serif;font-size:28px;line-height:1.72;color:#F3EDE2;text-decoration:none;
}
html body.tib-signature-page .mobile-nav .mobile-cta{
  display:inline-flex;margin-top:25px;padding:12px 18px;border:0;border-bottom:0;border-radius:999px;
  background:#C17F5A;color:#fff;font-family:"Schibsted Grotesk",system-ui,sans-serif;font-size:14px;
}
@media (max-width:680px){html body.tib-signature-page .mobile-nav{inset:68px 0 0}}
html body.tib-signature-page.admin-bar .mobile-nav{top:108px}
@media (max-width:782px){html body.tib-signature-page.admin-bar .mobile-nav{top:114px}}
html body.tib-signature-page .scroll-progress{
  position:fixed;left:0;top:0;height:2px;width:100%;z-index:1001;pointer-events:none;
  transform-origin:left;transform:scaleX(0);
  background:linear-gradient(90deg,#C17F5A,#e4aa89,#6F7B5E);
  box-shadow:0 0 20px rgba(193,127,90,.3);
}
html body.tib-signature-page.admin-bar .scroll-progress{top:32px}

/* --- Footer contact form (Contact Form 7) ---------------------------------- */
html body footer.footer .footer-form .form-grid,
html body footer.footer .footer-form .form-grid > p{display:grid;gap:10px;margin:0}
html body footer.footer .footer-form br{display:none}
html body footer.footer .footer-form .wpcf7-form-control-wrap{display:block}
html body footer.footer .footer-form .wpcf7-spinner{position:absolute;margin:0}

html body footer.footer .footer-form input:not([type="hidden"]):not([type="submit"]),
html body footer.footer .footer-form textarea{
  display:block;width:100%;height:auto!important;min-height:0;margin:0!important;
  padding:12px 15px!important;
  background:rgba(255,255,255,.05)!important;
  border:1px solid rgba(227,217,200,.17)!important;border-radius:14px!important;
  color:#F7F3EC!important;box-shadow:none!important;outline:0;
  font-family:"Schibsted Grotesk",system-ui,sans-serif!important;
  font-size:16px!important;font-weight:400!important;line-height:1.72!important;
  letter-spacing:0!important;text-transform:none!important;
}
html body footer.footer .footer-form textarea{height:92px!important;min-height:92px;resize:vertical}
html body footer.footer .footer-form input::placeholder,
html body footer.footer .footer-form textarea::placeholder{color:#757575;opacity:1}
html body footer.footer .footer-form input:not([type="hidden"]):not([type="submit"]):focus,
html body footer.footer .footer-form textarea:focus{border-color:rgba(193,127,90,.65)!important}

/* "Send message" = .btn.btn-primary from the reference (a <button>, so the
   shine sweep ::after works; see tib_footer_form_button() in functions.php) */
html body footer.footer .footer-form .wpcf7-submit{
  position:relative;overflow:hidden;
  display:inline-flex;align-items:center;justify-content:center;gap:9px;justify-self:start;
  width:auto;height:auto;min-height:0;margin:0;
  padding:14px 22px;border:0;border-radius:999px;
  background:#C17F5A;color:#fff;box-shadow:0 12px 28px rgba(193,127,90,.18);
  font-family:"Schibsted Grotesk",system-ui,sans-serif;font-size:14px;font-weight:600;line-height:1.72;
  letter-spacing:0;text-transform:none;white-space:nowrap;cursor:pointer;
  transition:transform .2s,background .2s,color .2s,border-color .2s;
}
html body footer.footer .footer-form .wpcf7-submit::after{
  content:"";position:absolute;inset:-100% auto -100% -35%;width:28%;transform:rotate(18deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.38),transparent);transition:left .65s ease;
}
html body footer.footer .footer-form .wpcf7-submit:hover{background:#A76544;color:#fff;transform:translateY(-1px)}
html body footer.footer .footer-form .wpcf7-submit:hover::after{left:115%}
html body footer.footer .footer-form .wpcf7-submit:disabled{opacity:.7;cursor:wait}

/* --- Social links (header, mobile menu, footer) ------------------------- */
.tib-social{display:flex;align-items:center;gap:8px}
.tib-social__link{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid rgba(243,237,226,.2);color:#F3EDE2!important;text-decoration:none!important;transition:background .25s,border-color .25s,transform .25s}
.tib-social__link svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tib-social__link--facebook svg{fill:currentColor;stroke:none}
.tib-social__link:hover,.tib-social__link:focus-visible{background:#C17F5A;border-color:#C17F5A;transform:translateY(-1px)}
html body .site-header .tib-social--header{margin-right:4px}
@media (max-width:980px){html body .site-header .tib-social--header{display:none}}
html body .mobile-nav .tib-social--mobile{margin-top:28px;gap:12px}
html body .mobile-nav .tib-social--mobile a{display:inline-grid;width:44px;height:44px;padding:0;border:1px solid rgba(243,237,226,.2);font-size:0}
html body .mobile-nav .tib-social--mobile svg{width:19px;height:19px}
html body footer.footer .tib-social--footer{margin-top:22px}

/* --- Emergency notice -------------------------------------------------- */
.tib-emergency{display:flex;gap:14px;align-items:flex-start;margin-top:36px;padding:18px 20px;border-radius:18px;border:1px solid rgba(193,127,90,.32);background:rgba(193,127,90,.07);font-size:14px;line-height:1.6;color:#514C45;text-align:left}
.tib-emergency__icon{flex:0 0 22px;width:22px;height:22px;margin-top:1px;fill:none;stroke:#C17F5A;stroke-width:1.7;stroke-linecap:round}
.tib-emergency strong{display:block;margin-bottom:2px;font-weight:600;color:#2E2B26}
.tib-emergency p{margin:0!important;font-size:inherit!important;line-height:inherit!important;color:inherit!important}
.tib-emergency a{color:#A76544!important;font-weight:600;text-decoration:none;white-space:nowrap}
html body footer.footer .footer-emergency{position:relative;margin-top:48px}
html body footer.footer .tib-emergency--footer{margin:0;background:rgba(193,127,90,.08);border-color:rgba(193,127,90,.28);color:#BDB5A8;font-size:13px}
html body footer.footer .tib-emergency--footer strong{color:#EDE7DB}
html body footer.footer .tib-emergency--footer a{color:#E4AA89!important}
html body footer.footer .footer-emergency + .footer-bottom{margin-top:28px}
html body footer.footer .footer-bottom a{color:#BDB5A8;text-decoration:none}
html body footer.footer .footer-bottom a:hover{color:#E4AA89}
.tib-areas-emergency{padding:0 0 90px}
.tib-areas-emergency .tib-emergency{max-width:860px;margin:0 auto}

/* --- Contact form: honeypot + privacy consent --------------------------- */
.tib-hp{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
html body footer.footer .footer-form .wpcf7-acceptance{display:block;font-size:12.5px;line-height:1.5;color:#BDB5A8}
html body footer.footer .footer-form .wpcf7-acceptance .wpcf7-list-item{margin:0}
html body footer.footer .footer-form .wpcf7-acceptance label{display:flex;gap:9px;align-items:flex-start;cursor:pointer}
html body footer.footer .footer-form .wpcf7-acceptance input{flex:0 0 auto;width:16px!important;height:16px!important;margin:2px 0 0!important;accent-color:#C17F5A}
html body footer.footer .footer-form .wpcf7-acceptance a{color:#E4AA89;text-decoration:underline;text-underline-offset:2px}
.tib-social__link--facebook svg{width:18px;height:18px}
html body footer.footer .footer-form .wpcf7-acceptance label{display:flex!important;align-items:flex-start!important}
html body footer.footer .footer-form .wpcf7-acceptance input[type="checkbox"]{margin-top:2px!important;vertical-align:top}

/* --- Privacy Policy (legal text) ---------------------------------------- */
.tib-legal-updated{margin-top:14px!important;font-size:13px!important;color:#837D73!important}
.tib-legal .tib-legal-body{max-width:760px}
.tib-legal .tib-legal-body h2{margin:44px 0 12px!important;font-size:clamp(24px,2.4vw,30px)!important;line-height:1.25!important}
.tib-legal .tib-legal-body h2:first-child{margin-top:0!important}
.tib-legal .tib-legal-body h3{margin:24px 0 6px!important;font-size:19px!important;line-height:1.35!important}
.tib-legal .tib-legal-body p{font-size:16px;line-height:1.75;color:#514C45}
.tib-legal .tib-legal-body a{color:#A76544}
html body footer.footer .footer-form .wpcf7-acceptance input[type="checkbox"]:not([type="hidden"]):not([type="submit"]){width:16px!important;height:16px!important;min-height:0!important;padding:0!important;margin:3px 0 0!important;flex:0 0 16px}
html body footer.footer .footer-legal{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center}
html body footer.footer .footer-legal .tib-cookie-settings{all:unset;cursor:pointer;color:#BDB5A8;font:inherit}
html body footer.footer .footer-legal .tib-cookie-settings:hover,html body footer.footer .footer-legal .tib-cookie-settings:focus-visible{color:#E4AA89;text-decoration:underline}
