/*
Theme Name: Morison Pitt Motion
Theme URI: https://morisonpitt.com
Author: Morison Pitt
Description: A photo-led, animated and fully editable WordPress block theme for Morison Pitt Management Consultancy.
Version: 3.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: morison-pitt-motion
*/

:root {
  --mp-sage: #9CB99A;
  --mp-charcoal: #454A49;
  --mp-deep: #1F2423;
  --mp-cream: #F6F4EF;
  --mp-mist: #E8EFE7;
  --mp-white: #FFFFFF;
  --mp-line: rgba(69,74,73,.18);
  --mp-shadow: 0 24px 70px rgba(31,36,35,.12);
  --mp-radius: 28px;
}

html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
* { box-sizing: border-box; }
::selection { background: var(--mp-sage); color: var(--mp-deep); }
img { display: block; }

.mp-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  background: rgba(246,244,239,.88) !important;
  backdrop-filter: blur(16px);
  transition: box-shadow .35s ease, border-color .35s ease, background-color .35s ease;
}
.mp-header.is-scrolled { border-color: var(--mp-line); box-shadow: 0 10px 35px rgba(31,36,35,.08); }
.admin-bar .mp-header { top: 32px; }
.mp-header__inner { min-height: 86px; gap: 28px; }
.mp-header .wp-block-site-logo { margin: 0; }
.mp-header .wp-block-site-logo img { width: 190px !important; height: auto !important; }
.mp-nav { gap: 23px; }
.mp-nav .wp-block-navigation-item__content { position: relative; padding: 12px 0; }
.mp-nav .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 6px; height: 2px;
  background: var(--mp-sage); transition: right .25s ease;
}
.mp-nav .wp-block-navigation-item__content:hover::after { right: 0; }
.mp-nav .mp-nav-cta .wp-block-navigation-item__content {
  padding: 13px 20px; border-radius: 999px; background: var(--mp-charcoal); color: var(--mp-white);
}
.mp-nav .mp-nav-cta .wp-block-navigation-item__content::after { display: none; }

.mp-kicker {
  margin: 0 0 20px; font-size: .71rem; font-weight: 700; letter-spacing: .17em;
  line-height: 1.5; text-transform: uppercase;
}
.mp-section-title { max-width: 900px; margin: 0; }
.mp-section-intro { max-width: 690px; margin-top: 24px; }
.mp-section-head { margin-bottom: 58px; gap: 36px; }
.mp-section-index { margin: 0; color: var(--mp-sage); font-weight: 700; letter-spacing: .12em; font-size: .72rem; }

.mp-hero { position: relative; min-height: calc(100vh - 87px); overflow: hidden; }
.mp-hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: rgba(156,185,154,.18); left: -290px; bottom: -340px; pointer-events: none;
}
.mp-hero__columns { min-height: calc(100vh - 87px); gap: clamp(40px,7vw,100px); align-items: center !important; }
.mp-hero__copy { padding: 80px 0; position: relative; z-index: 3; }
.mp-hero__title { margin: 0 0 30px; max-width: 790px; }
.mp-hero__title em { color: var(--mp-sage); font-style: normal; }
.mp-hero__intro { max-width: 700px; margin: 0; color: #5b6260; }
.mp-hero__buttons { margin-top: 36px; gap: 12px; }
.wp-block-button__link { transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease; }
.wp-block-button__link:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(31,36,35,.16); }
.mp-trust-row { margin-top: 55px; padding-top: 25px; border-top: 1px solid var(--mp-line); gap: 16px; }
.mp-trust-row p { margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .04em; }
.mp-trust-row p::before { content: "●"; color: var(--mp-sage); margin-right: 9px; }

.mp-hero__media { position: relative; min-height: 720px; padding: 48px 0 48px 36px; }
.mp-hero__main-image { position: absolute; inset: 36px 0 54px 70px; margin: 0; overflow: hidden; border-radius: 38px 38px 8px 38px !important; box-shadow: var(--mp-shadow); }
.mp-hero__main-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.mp-hero__media:hover .mp-hero__main-image img { transform: scale(1.035); }
.mp-hero__small-image { position: absolute; left: 0; bottom: 0; width: 44%; margin: 0; overflow: hidden; border: 10px solid var(--mp-cream); border-radius: 24px !important; box-shadow: 0 24px 55px rgba(31,36,35,.18); z-index: 4; }
.mp-hero__small-image img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.mp-orbit-badge {
  position: absolute; width: 148px; height: 148px; right: -10px; top: 8px; border-radius: 50%;
  background: var(--mp-sage); z-index: 5; display: grid; place-items: center; box-shadow: 0 20px 45px rgba(31,36,35,.15);
  animation: mpFloat 5s ease-in-out infinite;
}
.mp-orbit-badge::before {
  content: "PHILIPPINES  •  AUSTRALIA  •  MORISON PITT  •"; position: absolute; inset: 12px;
  font-size: .58rem; line-height: 1.15; letter-spacing: .12em; font-weight: 700; text-align: center;
  padding: 18px; animation: mpSpin 18s linear infinite;
}
.mp-orbit-badge strong { font-size: 1.2rem; position: relative; z-index: 2; }

.mp-ticker { overflow: hidden; padding: 17px 0; }
.mp-ticker__track { display: flex; width: max-content; animation: mpTicker 28s linear infinite; }
.mp-ticker__track p { margin: 0; white-space: nowrap; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.mp-ticker__track span { color: var(--mp-sage); padding: 0 24px; }

.mp-story__grid { gap: clamp(42px,7vw,95px); align-items: center !important; }
.mp-story__image-wrap { position: relative; padding: 0 30px 40px 0; }
.mp-story__image { margin: 0; overflow: hidden; border-radius: 36px 8px 36px 36px !important; box-shadow: var(--mp-shadow); }
.mp-story__image img { width: 100%; aspect-ratio: 1.18/1; object-fit: cover; transition: transform .8s ease; }
.mp-story__image:hover img { transform: scale(1.035); }
.mp-story__quote { position: absolute; right: 0; bottom: 0; width: min(310px,78%); padding: 28px; border-radius: 22px; box-shadow: 0 20px 45px rgba(31,36,35,.13); }
.mp-story__quote p { margin: 0; font-weight: 600; line-height: 1.45; }
.mp-story__copy p { color: #5e6663; }
.mp-story__statement { margin: 32px 0 0; padding-left: 24px; border-left: 4px solid var(--mp-sage); font-size: 1.22rem; font-weight: 600; line-height: 1.45; color: var(--mp-deep) !important; }

.mp-journey { margin-top: 58px; border-top: 1px solid var(--mp-line); }
.mp-journey__step { position: relative; padding: 34px 22px 30px; border-right: 1px solid var(--mp-line); min-height: 250px; transition: background-color .35s ease, transform .35s ease; }
.mp-journey__step:first-child { border-left: 1px solid var(--mp-line); }
.mp-journey__step:hover { background: var(--mp-white); transform: translateY(-8px); box-shadow: 0 18px 45px rgba(31,36,35,.08); z-index: 2; }
.mp-journey__no { margin: 0 0 52px; font-size: .72rem; font-weight: 700; color: var(--mp-sage); letter-spacing: .12em; }
.mp-journey__step h3 { margin: 0 0 12px; font-size: 1.25rem; }
.mp-journey__step p:last-child { margin: 0; font-size: .9rem; color: #636b68; }

.mp-services { position: relative; overflow: hidden; }
.mp-services::after { content: "MP"; position: absolute; right: -35px; top: -35px; font-size: clamp(10rem,25vw,28rem); font-weight: 700; letter-spacing: -.14em; color: rgba(69,74,73,.05); line-height: 1; pointer-events: none; }
.mp-service-cards { gap: 26px; position: relative; z-index: 2; }
.mp-service-card { height: 100%; overflow: hidden; background: var(--mp-white); border-radius: var(--mp-radius); border: 1px solid rgba(69,74,73,.11); box-shadow: 0 18px 48px rgba(31,36,35,.07); transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease; }
.mp-service-card:hover { transform: translateY(-12px); box-shadow: 0 30px 70px rgba(31,36,35,.14); }
.mp-service-card__image { margin: 0; overflow: hidden; border-radius: 0 !important; }
.mp-service-card__image img { width: 100%; aspect-ratio: 1.45/1; object-fit: cover; transition: transform .7s ease; }
.mp-service-card:hover .mp-service-card__image img { transform: scale(1.07); }
.mp-service-card__body { padding: 30px 30px 34px; }
.mp-service-card__label { margin: 0 0 24px; color: var(--mp-sage); font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.mp-service-card h3 { margin: 0 0 18px; font-size: 1.65rem; }
.mp-service-card ul { margin: 0; padding: 0; list-style: none; }
.mp-service-card li { padding: 10px 0; border-top: 1px solid var(--mp-line); font-size: .88rem; }
.mp-service-card li::before { content: "↗"; margin-right: 10px; color: var(--mp-sage); font-weight: 700; }
.mp-services-note { max-width: 850px; margin: 44px 0 0; font-weight: 600; }

.mp-why__grid { gap: 0; align-items: stretch !important; }
.mp-why__media { position: relative; min-height: 760px; overflow: hidden; }
.mp-why__image { margin: 0; height: 100%; border-radius: 0 !important; }
.mp-why__image img { width: 100%; height: 100%; object-fit: cover; }
.mp-why__media::after { content: "PEOPLE FIRST"; position: absolute; left: 30px; bottom: 24px; color: white; font-size: clamp(2rem,5vw,5rem); font-weight: 700; letter-spacing: -.05em; line-height: .9; max-width: 450px; text-shadow: 0 4px 24px rgba(0,0,0,.3); }
.mp-why__copy { min-height: 760px; display: flex; flex-direction: column; justify-content: center; }
.mp-feature-list { margin-top: 35px; border-top: 1px solid rgba(255,255,255,.18); }
.mp-feature { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.18); gap: 18px; transition: padding-left .3s ease; }
.mp-feature:hover { padding-left: 12px; }
.mp-feature h3 { margin: 0 0 7px; font-size: 1.1rem; color: white; }
.mp-feature p { margin: 0; color: rgba(255,255,255,.68); font-size: .9rem; }
.mp-feature__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--mp-sage); margin-top: 8px; flex: 0 0 auto; }

.mp-partnership__card { position: relative; overflow: hidden; border-radius: 34px; box-shadow: var(--mp-shadow); }
.mp-partnership__image { margin: 0; border-radius: 0 !important; }
.mp-partnership__image img { width: 100%; aspect-ratio: 1.75/1; object-fit: cover; }
.mp-partnership__overlay { position: absolute; inset: 0; padding: clamp(30px,5vw,70px); display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg,rgba(31,36,35,.04),rgba(31,36,35,.85)); color: white; }
.mp-partnership__overlay h2 { max-width: 860px; margin: 0 0 20px; color: white; }
.mp-partnership__overlay p { max-width: 760px; margin: 0; }
.mp-partnership__formula { margin-top: 28px; gap: 12px; }
.mp-partnership__formula p { margin: 0; padding: 12px 17px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: .75rem; font-weight: 600; backdrop-filter: blur(8px); }

.mp-support-cloud { margin-top: 44px; gap: 12px; }
.mp-support-cloud p { margin: 0; padding: 14px 20px; border: 1px solid var(--mp-line); border-radius: 999px; background: white; font-size: .86rem; font-weight: 600; transition: background .25s ease, color .25s ease, transform .25s ease; }
.mp-support-cloud p:hover { background: var(--mp-charcoal); color: white; transform: translateY(-3px); }

.mp-careers__grid { gap: clamp(40px,7vw,90px); align-items: center !important; }
.mp-careers__collage { min-height: 700px; position: relative; }
.mp-careers__photo { position: absolute; margin: 0; overflow: hidden; box-shadow: var(--mp-shadow); }
.mp-careers__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.mp-careers__photo:hover img { transform: scale(1.05); }
.mp-careers__photo--one { left: 0; top: 0; width: 62%; height: 78%; border-radius: 30px 8px 30px 30px !important; }
.mp-careers__photo--two { right: 0; top: 11%; width: 43%; height: 37%; border: 9px solid var(--mp-cream); border-radius: 22px !important; }
.mp-careers__photo--three { right: 2%; bottom: 2%; width: 52%; height: 39%; border: 9px solid var(--mp-cream); border-radius: 22px !important; }
.mp-careers__benefits { list-style: none; padding: 0 !important; margin-top: 32px; columns: 2; column-gap: 28px; }
.mp-careers__benefits li { break-inside: avoid; padding: 12px 0; border-top: 1px solid var(--mp-line); font-size: .88rem; }
.mp-careers__benefits li::before { content: "✓"; color: var(--mp-sage); margin-right: 9px; font-weight: 700; }
.mp-careers__quote { margin-top: 34px; padding: 24px; background: var(--mp-mist); border-radius: 18px; font-weight: 600; }

.mp-values { overflow: hidden; }
.mp-value-cards { gap: 16px; margin-top: 45px; }
.mp-value-card { position: relative; min-height: 300px; padding: 28px; border-radius: 24px; border: 1px solid var(--mp-line); background: white; overflow: hidden; transition: transform .35s ease, background .35s ease, color .35s ease; }
.mp-value-card::after { content: ""; position: absolute; right: -8px; bottom: -38px; font-size: 10rem; font-weight: 700; line-height: 1; color: rgba(156,185,154,.22); }

.mp-value-cards .wp-block-column:nth-child(1) .mp-value-card::after { content: "I"; }
.mp-value-cards .wp-block-column:nth-child(2) .mp-value-card::after { content: "E"; }
.mp-value-cards .wp-block-column:nth-child(3) .mp-value-card::after { content: "P"; }
.mp-value-cards .wp-block-column:nth-child(4) .mp-value-card::after { content: "C"; }
.mp-value-cards .wp-block-column:nth-child(5) .mp-value-card::after { content: "G"; }

.mp-value-card:hover { transform: translateY(-9px) rotate(-1deg); background: var(--mp-charcoal); color: white; }
.mp-value-card:hover h3 { color: white; }
.mp-value-card__no { margin: 0 0 70px; color: var(--mp-sage); font-size: .72rem; font-weight: 700; }
.mp-value-card h3 { margin: 0 0 12px; font-size: 1.35rem; }
.mp-value-card p:last-child { margin: 0; font-size: .88rem; position: relative; z-index: 2; }

.mp-team { position: relative; }
.mp-team-grid { gap: 24px; margin-top: 55px; }
.mp-team-card { position: relative; overflow: hidden; border-radius: 26px; min-height: 510px; background: var(--mp-charcoal); box-shadow: 0 18px 48px rgba(31,36,35,.1); }
.mp-team-card__image { margin: 0; height: 100%; border-radius: 0 !important; }
.mp-team-card__image img { width: 100%; height: 510px; object-fit: cover; transition: transform .65s ease, filter .65s ease; }
.mp-team-card:hover .mp-team-card__image img { transform: scale(1.07); filter: brightness(.72); }
.mp-team-card__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 25px 25px; color: white; background: linear-gradient(180deg,transparent,rgba(31,36,35,.92)); transform: translateY(42px); transition: transform .4s ease; }
.mp-team-card:hover .mp-team-card__info { transform: translateY(0); }
.mp-team-card__info h3 { margin: 0 0 7px; color: white; font-size: 1.35rem; }
.mp-team-card__role { margin: 0; color: var(--mp-sage); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mp-team-card__bio { margin: 18px 0 0; font-size: .84rem; color: rgba(255,255,255,.78); opacity: 0; transition: opacity .35s ease .08s; }
.mp-team-card:hover .mp-team-card__bio { opacity: 1; }
.mp-team-note { margin-top: 24px; font-size: .82rem; color: #68706d; }

.mp-contact { position: relative; overflow: hidden; }
.mp-contact::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; right: -250px; top: -280px; border: 120px solid rgba(156,185,154,.10); }
.mp-contact__grid { gap: clamp(42px,8vw,120px); position: relative; z-index: 2; }
.mp-contact__title { margin: 0 0 30px; max-width: 860px; }
.mp-contact__details { padding-top: 26px; border-top: 1px solid rgba(255,255,255,.2); }
.mp-contact__details p { color: rgba(255,255,255,.78); }
.mp-contact a, .mp-footer a { color: inherit; }

.mp-footer__logo { width: 230px; filter: brightness(0) invert(1); opacity: .95; }
.mp-footer__grid { gap: 70px; }
.mp-footer__line { margin: 50px 0 22px; opacity: .35; }

/* Scroll reveal and motion */
.mp-js .mp-reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.mp-js .mp-reveal.mp-from-left { transform: translateX(-38px); }
.mp-js .mp-reveal.mp-from-right { transform: translateX(38px); }
.mp-js .mp-reveal.is-visible { opacity: 1; transform: translate3d(0,0,0); }
.mp-delay-1 { transition-delay: .08s !important; }
.mp-delay-2 { transition-delay: .16s !important; }
.mp-delay-3 { transition-delay: .24s !important; }
.mp-delay-4 { transition-delay: .32s !important; }

@keyframes mpTicker { to { transform: translateX(-50%); } }
@keyframes mpSpin { to { transform: rotate(360deg); } }
@keyframes mpFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 1100px) {
  .mp-hero__columns { flex-wrap: wrap !important; min-height: auto; }
  .mp-hero__copy, .mp-hero__media { flex-basis: 100% !important; }
  .mp-hero__copy { padding-bottom: 20px; }
  .mp-hero__media { min-height: 640px; max-width: 850px; }
  .mp-service-cards, .mp-team-grid, .mp-value-cards { flex-wrap: wrap !important; }
  .mp-service-card { flex-basis: calc(50% - 13px) !important; }
  .mp-team-grid .wp-block-column, .mp-value-cards .wp-block-column { flex-basis: calc(50% - 12px) !important; }
  .mp-journey { flex-wrap: wrap !important; }
  .mp-journey__step { flex-basis: 50% !important; border-bottom: 1px solid var(--mp-line); }
}

@media (max-width: 781px) {
  .admin-bar .mp-header { top: 46px; }
  .mp-header__inner { min-height: 72px; }
  .mp-header .wp-block-site-logo img { width: 150px !important; }
  .mp-hero { min-height: auto; }
  .mp-hero__columns { min-height: auto; }
  .mp-hero__copy { padding: 58px 0 18px; }
  .mp-hero__media { min-height: 540px; padding-left: 15px; }
  .mp-hero__main-image { inset: 25px 0 50px 45px; }
  .mp-hero__small-image { width: 47%; border-width: 7px; }
  .mp-orbit-badge { width: 112px; height: 112px; right: -4px; }
  .mp-orbit-badge::before { font-size: .46rem; inset: 8px; padding: 13px; }
  .mp-orbit-badge strong { font-size: .95rem; }
  .mp-trust-row { flex-direction: column; align-items: flex-start !important; }
  .mp-story__grid, .mp-careers__grid, .mp-why__grid, .mp-contact__grid { gap: 35px; }
  .mp-story__quote { width: 75%; }
  .mp-service-card { flex-basis: 100% !important; }
  .mp-why__media, .mp-why__copy { min-height: auto; }
  .mp-why__media { height: 580px; }
  .mp-why__copy { padding-top: 70px !important; padding-bottom: 70px !important; }
  .mp-partnership__image img { min-height: 600px; }
  .mp-careers__collage { min-height: 600px; }
  .mp-careers__benefits { columns: 1; }
  .mp-team-grid .wp-block-column, .mp-value-cards .wp-block-column { flex-basis: 100% !important; }
  .mp-team-card, .mp-team-card__image img { min-height: 560px; height: 560px; }
  .mp-team-card__info { transform: translateY(0); }
  .mp-team-card__bio { opacity: 1; }
  .mp-footer__grid { gap: 35px; }
}

@media (max-width: 520px) {
  .mp-hero__buttons .wp-block-button { width: 100%; }
  .mp-hero__buttons .wp-block-button__link { width: 100%; text-align: center; }
  .mp-hero__media { min-height: 460px; }
  .mp-hero__main-image { inset: 20px 0 52px 20px; }
  .mp-hero__small-image { width: 52%; }
  .mp-orbit-badge { width: 96px; height: 96px; }
  .mp-orbit-badge::before { display: none; }
  .mp-story__image-wrap { padding-right: 14px; }
  .mp-story__quote { right: -4px; width: 82%; padding: 22px; }
  .mp-journey__step { flex-basis: 100% !important; border-left: 1px solid var(--mp-line); }
  .mp-partnership__overlay { padding: 28px; }
  .mp-partnership__formula { flex-direction: column; align-items: flex-start !important; }
  .mp-careers__collage { min-height: 510px; }
  .mp-careers__photo--one { width: 70%; height: 74%; }
  .mp-careers__photo--two { width: 47%; height: 34%; }
  .mp-careers__photo--three { width: 57%; height: 36%; }
  .mp-team-card, .mp-team-card__image img { min-height: 500px; height: 500px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .mp-js .mp-reveal { opacity: 1 !important; transform: none !important; }
}

.mp-parallax { transform: translate3d(0,var(--mp-shift,0),0); will-change: transform; }
.mp-team-card.is-visible { transform: perspective(900px) rotateX(var(--mp-tilt-x,0deg)) rotateY(var(--mp-tilt-y,0deg)); transition: opacity .8s ease, transform .25s ease, box-shadow .35s ease; }

.editor-styles-wrapper .mp-reveal { opacity: 1 !important; transform: none !important; }
.editor-styles-wrapper .mp-team-card__info { transform: translateY(0); }
.editor-styles-wrapper .mp-team-card__bio { opacity: 1; }
