/*
Theme Name: Media by AS
Theme URI: https://www.mediabyas.nl
Author: Media by AS
Author URI: https://www.mediabyas.nl
Description: Thema voor mediabyas.nl. Marketing voor ondernemers, van huisstijl tot social media.
Version: 1.4.4
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: media-by-as
*/

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
img { max-width: 100%; height: auto; }

/* layout */
.mba-wrap { max-width: 1200px; margin-inline: auto !important; padding-inline: clamp(20px, 4vw, 40px); box-sizing: border-box; }
.mba-section { padding-block: clamp(64px, 9vw, 120px); margin: 0 !important; scroll-margin-top: 84px; }
.mba-section--tint { background: #E8ECF2; }
.mba-section--ink { background: #12243F; color: #FFFFFF; }
.mba-section--ink :where(h1, h2, h3) { color: #FFFFFF; }
.mba-section--ink p { color: #A9B6CB; }
.mba-intro { max-width: 40em; font-size: 1.125rem; margin-top: 0.75rem; }
.mba-section--ink .mba-intro { color: #A9B6CB; }
.mba-main > * { margin-block: 0 !important; }

/* header */
.mba-header-part { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 248, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid #D9DDE4; }
.admin-bar .mba-header-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .mba-header-part { top: 46px; } }
.mba-header-inner { min-height: 72px; align-items: center; }
.mba-logo { margin: 0; line-height: 0; }
.mba-logo a { display: block; width: 168px; height: 30px; background: url(assets/images/logo-inkt.svg) no-repeat left center / contain; text-indent: -9999px; overflow: hidden; white-space: nowrap; }
.mba-logo--wit a { background-image: url(assets/images/logo-wit.svg); }
.mba-nav .wp-block-navigation-item__content { color: #14151A; text-decoration: none; }
.mba-nav .wp-block-navigation-item__content:hover { color: #12243F; }
.mba-nav .mba-nav-cta .wp-block-navigation-item__content { background: #12243F; color: #FFFFFF; padding: 0.6rem 1rem; border-radius: 4px; font-weight: 600; }
.mba-nav .mba-nav-cta .wp-block-navigation-item__content:hover { background: #2A4570; color: #FFFFFF; }
.mba-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 32px 24px; }
.mba-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; }

/* hero */
.mba-hero { padding-block: clamp(56px, 8vw, 112px) clamp(64px, 9vw, 120px); }
.mba-hero .wp-block-columns { gap: clamp(32px, 5vw, 72px); align-items: center; margin: 0; }
.mba-hero h1 { margin: 0; }
.mba-lead { font-size: 1.1875rem; line-height: 1.6; max-width: 34em; margin-top: 1.5rem; }
.mba-hero .wp-block-buttons { margin-top: 2rem; }
.mba-hero-card { background: #12243F; color: #FFFFFF; border-radius: 8px; padding: clamp(28px, 4vw, 44px); }
.mba-hero-card .mba-name { font-weight: 800; font-size: 1.375rem; color: #FFFFFF; margin: 0; letter-spacing: -0.01em; }
.mba-hero-card .mba-role { color: #A9B6CB; margin: 0.25rem 0 1.5rem; }
.mba-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.mba-facts li { padding-left: 28px; position: relative; color: #FFFFFF; }
.mba-facts li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 14px; height: 2px; background: #A9B6CB; }

/* buttons */
.wp-block-button__link { text-decoration: none; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #12243F; border: 1.5px solid #12243F; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #12243F; color: #FFFFFF; }
.mba-section--ink .wp-block-button > .wp-block-button__link { background: #FFFFFF; color: #12243F; }

/* services */
.mba-cards, .mba-steps, .mba-cases, .mba-about { gap: 24px; margin-top: 40px; margin-bottom: 0; }
.mba-card { background: #FFFFFF; border: 1px solid #D9DDE4; border-radius: 8px; padding: 32px; display: flex; flex-direction: column; }
.mba-card h3 { margin-top: 0; }
.mba-card p { margin-block: 0.75rem 0; }
.mba-card .mba-price { margin-top: auto; padding-top: 16px; border-top: 1px solid #D9DDE4; font-weight: 600; color: #12243F; font-size: 0.9375rem; }
.mba-card .mba-price-gap { flex-grow: 1; min-height: 16px; margin: 0; }

/* steps */
.mba-step { border-top: 3px solid #12243F; padding-top: 20px; }
.mba-step-num { font-weight: 800; color: #5A6275; font-size: 0.875rem; margin: 0 0 0.25rem; }
.mba-step h3 { margin: 0 0 0.5rem; }
.mba-step p:last-child { margin: 0; }
.mba-note { color: #5A6275; margin-top: 32px; font-size: 0.9375rem; }

/* cases */
.mba-case { border: 1px solid #2F4466; border-radius: 8px; padding: clamp(28px, 4vw, 40px); }
.mba-case .mba-case-name { color: #FFFFFF; font-weight: 700; margin: 0 0 0.75rem; }
.mba-bignum { font-weight: 800; font-size: clamp(4rem, 9vw, 6rem); line-height: 1; color: #FFFFFF !important; margin: 0 0 1rem; letter-spacing: -0.03em; }
.mba-case h3 { margin: 0 0 1rem; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.mba-source { font-size: 0.8125rem; margin-top: 1rem; }

/* about */
.mba-quote { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1.15; color: #12243F; letter-spacing: -0.02em; margin: 0; }
.mba-about .wp-block-column > p:first-child { margin-top: 0; }

/* contact */
.mba-contact .wp-block-buttons { margin-top: 32px; gap: 12px; }
.mba-address { color: #5A6275; font-size: 0.9375rem; margin-top: 28px; }

/* the orange streep under one word or number */
:where(h1, h2, h3, .mba-bignum) mark { background-image: url(assets/images/streep-oranje.svg); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% auto; background-color: transparent; padding-bottom: 0.2em; color: inherit; }

/* footer */
.mba-footer-part { background: #0B1729; color: #A9B6CB; }
.mba-footer { padding-block: 56px 32px; font-size: 0.9375rem; }
.mba-footer .wp-block-columns { gap: 32px; margin: 0; }
.mba-footer p { margin: 0 0 0.35rem; color: #A9B6CB; }
.mba-footer .mba-footer-title { color: #FFFFFF; font-weight: 700; margin-bottom: 0.75rem; }
.mba-footer a { color: #FFFFFF; text-decoration: none; }
.mba-footer a:hover { text-decoration: underline; }
.mba-footer .mba-logo { margin-bottom: 1rem; }
.mba-footer-bottom { border-top: 1px solid #2F4466; margin-top: 40px; padding-top: 20px; font-size: 0.8125rem; }
.mba-privacy { margin-top: 0.5rem; }
.mba-privacy summary { cursor: pointer; color: #FFFFFF; }
.mba-privacy p { max-width: 46em; margin-top: 0.75rem; }

/* pages */
.mba-page { padding-block: clamp(48px, 7vw, 96px); }
.mba-page .wp-block-post-content > * { max-width: 760px; }

/* focus */
:where(a, button, summary, .wp-block-button__link):focus-visible { outline: 2px solid #B8431A; outline-offset: 3px; }

@media (max-width: 781px) {
  .mba-header-inner { min-height: 64px; }
  .mba-logo a { width: 150px; height: 27px; }
  .mba-lead { font-size: 1.0625rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* hero with portrait */
.mba-hero-visual { position: relative; max-width: 460px; margin-left: auto !important; }
.mba-hero-visual > .mba-portrait { margin: 0 !important; }
.mba-portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 8px; }
.mba-hero-visual > .mba-hero-card { position: relative; margin: -104px 0 0 -40px !important; max-width: 340px; box-shadow: 0 0 0 6px #FAFAF8; }

/* service cards: price line always on one line, so the lines align */
.mba-card .mba-desc { margin-bottom: 28px !important; }
.mba-card .mba-price { margin-top: auto !important; white-space: nowrap; }
.mba-card, .mba-case { transition: transform 0.2s ease, border-color 0.2s ease; }
.mba-card:hover { transform: translateY(-3px); border-color: #12243F; }

/* more services as tags */
.mba-more-label { margin-top: 40px !important; font-weight: 700; color: #12243F; }
.mba-tags { list-style: none; padding: 0; margin: 14px 0 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.mba-tags li { margin: 0 !important; padding: 7px 13px; background: #FFFFFF; border: 1px solid #D9DDE4; border-radius: 4px; font-size: 0.875rem; font-weight: 500; color: #12243F; white-space: nowrap; transition: border-color 0.2s ease; }
@media (max-width: 1180px) { .mba-tags li { font-size: 0.8125rem; padding: 6px 10px; } }
.mba-tags li:hover { border-color: #12243F; }
.mba-more-note { margin-top: 18px !important; font-size: 0.9375rem; color: #5A6275; }

/* work: three cards */
.mba-case:hover { transform: translateY(-3px); border-color: #A9B6CB; }
.mba-cases .mba-bignum { font-size: clamp(3.5rem, 6vw, 4.75rem); line-height: 1.05; padding-bottom: 0.24em; margin-bottom: 0.35rem; }
.mba-bignum-note { color: #FFFFFF !important; font-weight: 600; margin-top: 0.25rem !important; }
.mba-hero h1 { line-height: 1.16; }
.mba-cases .mba-case h3 { font-size: clamp(1.375rem, 2vw, 1.625rem); }
.mba-cases-cta { margin-top: 32px !important; color: #A9B6CB; }
.mba-section--ink .mba-cases-cta a { color: #FFFFFF; }

/* about photos */
.mba-about-photos { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.mba-about-photos > * { margin: 0 !important; }
.mba-photo img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.mba-photo--roeien img { object-position: 78% 50%; }
.mba-caption { font-size: 0.8125rem; color: #5A6275; margin-top: 10px !important; }
.mba-about p { max-width: 36em; }

/* moving band with everything I do */
.mba-ticker { background: #12243F; overflow: hidden; padding-block: 18px; margin: 0 !important; }
.mba-ticker ul { list-style: none; margin: 0 !important; padding: 0 16px; display: flex; flex-wrap: wrap; justify-content: center; }
.mba-ticker li { color: #FFFFFF; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; white-space: nowrap; display: flex; align-items: center; margin: 0 !important; padding: 4px 0; }
.mba-ticker li::after { content: ""; display: inline-block; width: 30px; height: 10px; margin: 0 26px; background: url(assets/images/streep-oranje.svg) no-repeat center / contain; }
.mba-js .mba-ticker.is-ready ul { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding: 0; animation: mba-ticker 48s linear infinite; }
.mba-ticker.is-ready:hover ul { animation-play-state: paused; }
@keyframes mba-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* pieces slide in when they scroll into view */
.mba-js .mba-r { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) !important; }
.mba-js .mba-r.is-in { opacity: 1; transform: none; }
.mba-js .mba-hero-card.mba-r { transform: translate(-20px, 28px); }
.mba-js .mba-hero-card.mba-r.is-in { transform: none; }
.mba-js .mba-tags li.mba-r { transform: translateY(12px) scale(0.96); }
.mba-js .mba-tags li.mba-r.is-in { transform: none; }

/* things that react when you point at them */
.wp-block-button__link { transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.mba-tags li:hover { background: #12243F; border-color: #12243F; color: #FFFFFF; }
.mba-photo { overflow: hidden; border-radius: 8px; }
.mba-photo img { transition: transform 0.6s ease; }
.mba-photo:hover img { transform: scale(1.04); }
.mba-cases-more { margin-top: 32px !important; color: #FFFFFF !important; font-weight: 600; }

/* the streep draws itself when it scrolls into view */
.mba-js :where(h1, h2, h3, .mba-bignum) mark { background-size: 0% auto; transition: background-size 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s; }
.mba-js :where(h1, h2, h3, .mba-bignum) mark.is-visible { background-size: 100% auto; }

@media (max-width: 781px) {
  .mba-hero-visual { margin: 8px auto 0 !important; max-width: 420px; }
  .mba-hero-visual > .mba-hero-card { margin: -64px 16px 0 16px !important; max-width: none; }
  .mba-card .mba-price { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .mba-js :where(h1, h2, h3, .mba-bignum) mark { background-size: 100% auto; transition: none; }
  .mba-js .mba-r { opacity: 1 !important; transform: none !important; transition: none !important; }
  .wp-block-button__link:hover, .mba-photo:hover img { transform: none; }
  .mba-js .mba-ticker.is-ready ul { animation: none; }
  .mba-card, .mba-case, .mba-tags li { transition: none; }
  .mba-card:hover, .mba-case:hover { transform: none; }
}

/* compact hero: smaller portrait, card overlaps more, less empty space */
.mba-hero { padding-block: clamp(48px, 6vw, 88px); }
.mba-hero-visual { max-width: 400px; }
.mba-hero-visual > .mba-hero-card { margin: -140px 0 0 -48px !important; max-width: 330px; padding: 28px 30px; }
.mba-hero-card .mba-name { font-size: 1.25rem; }
.mba-hero-card .mba-role { margin: 0.15rem 0 1.1rem; }
.mba-facts { gap: 10px; }
.mba-facts li { font-size: 0.9375rem; line-height: 1.45; }
.mba-facts li::before { top: 0.72em; }

/* phone: a wide, low crop of the portrait instead of a tall one */
@media (max-width: 781px) {
  .mba-hero { padding-block: 40px 56px; }
  .mba-hero-visual { max-width: none; margin: 28px 0 0 !important; }
  .mba-portrait img { aspect-ratio: 16 / 10; object-position: 50% 23%; }
  .mba-hero-visual > .mba-hero-card { margin: -36px 14px 0 14px !important; max-width: none; padding: 22px; }
}
