/*
Theme Name: Agile In Motion — Wonder
Theme URI: https://agileinmotion.com/
Author: Agile In Motion, LLC
Description: A bold, playful learning theme with tactile cards, bright color, and an energetic workshop feel.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: agile-in-motion
*/

:root {
	--ink: #17263f;
	--paper: #fff8e6;
	--white: #fffdf8;
	--blue: #4f86cc;
	--blue-light: #dbeaff;
	--sun: #f5c94f;
	--coral: #ef7654;
	--mint: #a7d8c4;
	--muted: #5f6672;
	--line: #17263f;
	--shadow: 8px 8px 0 var(--ink);
	--radius: 22px;
	--ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Trebuchet MS", "Avenir Next", system-ui, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.site-shell { overflow: hidden; }
a { color: inherit; }
.shell { width: min(100% - 40px, 1220px); margin-inline: auto; }
.section { padding: clamp(76px, 9vw, 128px) 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.02; }
h2 { font-size: clamp(2.8rem, 5.7vw, 5.4rem); letter-spacing: -.055em; }
h1 em, h2 em { color: var(--blue); font-weight: inherit; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: .16em; text-underline-offset: .08em; }
.lead { color: var(--ink); font-size: clamp(1.16rem, 2vw, 1.45rem); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 5px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--sun); font-size: .72rem; font-weight: 900; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; transform: rotate(-1deg); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link:focus { z-index: 9999; width: auto; height: auto; clip: auto; top: 10px; left: 10px; padding: 10px; background: #fff; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 11px 20px; border: 2px solid var(--ink); border-radius: 13px; background: var(--ink); color: #fff; font-weight: 900; text-decoration: none; box-shadow: 4px 4px 0 var(--coral); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--coral); }
.button-ghost { background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--blue); }
.button-small { min-height: 39px; padding: 7px 13px; font-size: .8rem; box-shadow: 3px 3px 0 var(--sun); }
.text-link, .course-note a { font-weight: 900; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 5px; }

.site-header { position: fixed; z-index: 100; top: 0; right: 0; left: 0; padding: 12px 0; transition: .25s; }
.site-header.is-scrolled { border-bottom: 2px solid var(--ink); background: rgba(255,248,230,.94); backdrop-filter: blur(12px); }
.site-nav { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); font-weight: 700; text-decoration: none; }
.brand-name { font-family: Georgia, serif; font-size: 1.12rem; }
.brand-mark { display: flex; align-items: flex-end; gap: 3px; width: 38px; height: 38px; padding: 7px; border: 2px solid var(--ink); border-radius: 50%; background: var(--coral); transform: rotate(-8deg); }
.brand-mark span { display: block; width: 5px; height: 10px; border-radius: 4px 4px 0 0; background: var(--sun); }
.brand-mark span:nth-child(2) { height: 19px; background: var(--white); }
.brand-mark span:nth-child(3) { height: 14px; background: var(--blue-light); }
.nav-panel, .menu { display: flex; align-items: center; gap: 19px; }
.menu { margin: 0; padding: 0; list-style: none; }
.menu a { font-size: .82rem; font-weight: 900; text-decoration: none; }
.menu a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 11px; background: var(--sun); }
.nav-toggle > span:not(.screen-reader-text) { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--ink); }

.hero { position: relative; padding: clamp(135px, 15vw, 190px) 0 95px; background: linear-gradient(110deg, var(--paper) 0 62%, var(--blue-light) 62%); }
.hero::before, .hero::after { position: absolute; content: ""; border: 2px solid var(--ink); }
.hero::before { top: 112px; right: 4vw; width: 70px; height: 70px; border-radius: 50%; background: var(--sun); }
.hero::after { bottom: 40px; left: 3vw; width: 40px; height: 40px; background: var(--mint); transform: rotate(14deg); }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(50px, 7vw, 90px); align-items: center; }
.hero h1 { margin: 22px 0 26px; font-size: clamp(3.6rem, 7.2vw, 7.2rem); letter-spacing: -.067em; }
.hero-intro { max-width: 630px; font-size: clamp(1.08rem, 1.8vw, 1.32rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.flow-lab { position: relative; padding: 23px; border: 3px solid var(--ink); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); transform: rotate(1.5deg); }
.flow-lab::before { position: absolute; z-index: -1; right: -22px; bottom: 38px; width: 65px; height: 110px; border: 2px solid var(--ink); border-radius: 50%; background: var(--coral); content: ""; }
.lab-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.lab-heading strong { font-family: Georgia, serif; font-size: 1.1rem; }
.lab-heading span { padding: 4px 9px; border: 2px solid var(--ink); border-radius: 99px; background: var(--mint); font-size: .68rem; font-weight: 900; }
.lab-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.lab-columns > div { min-height: 222px; padding: 11px; border: 2px solid var(--ink); border-radius: 13px; background: var(--paper); }
.lab-columns > div:nth-child(2) { background: var(--blue-light); }
.lab-columns > div:nth-child(3) { background: #e5f3ea; }
.lab-columns small { font-size: .6rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.lab-columns i { display: block; height: 45px; margin-top: 9px; border: 2px solid var(--ink); border-radius: 8px; background: var(--sun); box-shadow: 2px 2px 0 var(--ink); transform: rotate(-1.5deg); }
.lab-columns > div:nth-child(2) i { background: var(--coral); transform: rotate(1deg); }
.lab-columns > div:nth-child(3) i { background: var(--mint); }
.lab-signal { position: absolute; right: -22px; bottom: -36px; display: flex; align-items: center; gap: 10px; max-width: 200px; padding: 13px 16px; border: 2px solid var(--ink); border-radius: 13px; background: var(--sun); box-shadow: 4px 4px 0 var(--ink); transform: rotate(-2deg); }
.lab-signal b { font-family: Georgia, serif; font-size: 1.6rem; }
.lab-signal span { font-size: .68rem; font-weight: 800; line-height: 1.3; }
.motion-line { overflow: hidden; padding: 14px 0; border-block: 2px solid var(--ink); background: var(--coral); color: var(--ink); font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.motion-line > div { display: flex; justify-content: space-around; gap: 28px; min-width: 900px; }
.motion-line i { color: var(--paper); font-style: normal; }

.intro-section { position: relative; background: var(--sun); }
.intro-section::after { position: absolute; right: 5vw; bottom: -28px; width: 58px; height: 58px; border: 2px solid var(--ink); border-radius: 50%; background: var(--blue); content: ""; }
.intro-grid, .section-heading { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(42px, 8vw, 110px); align-items: start; }
.intro-grid h2, .section-heading h2 { margin: 16px 0 0; }
.section-heading { align-items: end; }
.section-heading > p { max-width: 480px; color: var(--muted); }
.intro-section .section-heading > p, .intro-section p { color: var(--ink); }

.consulting-section { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 55px; }
.service-grid article { min-height: 330px; padding: 28px; border: 3px solid var(--ink); border-radius: var(--radius); background: var(--white); box-shadow: 7px 7px 0 var(--blue); transition: transform .2s var(--ease); }
.service-grid article:nth-child(2) { box-shadow: 7px 7px 0 var(--coral); transform: rotate(1deg); }
.service-grid article:nth-child(3) { box-shadow: 7px 7px 0 var(--mint); transform: rotate(-1deg); }
.service-grid article:hover { transform: translateY(-7px) rotate(0); }
.service-grid span { display: grid; place-items: center; width: 47px; height: 47px; border: 2px solid var(--ink); border-radius: 50%; background: var(--sun); font-weight: 900; }
.service-grid h3 { margin: 68px 0 12px; font-size: clamp(1.7rem, 2.7vw, 2.3rem); }
.service-grid p { color: var(--muted); }

.courses-section { border-block: 2px solid var(--ink); background: var(--blue-light); }
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 27px; margin-top: 52px; }
.course-card { position: relative; padding: clamp(28px, 4vw, 46px); border: 3px solid var(--ink); border-radius: 30px; background: var(--sun); box-shadow: var(--shadow); transform: rotate(-.7deg); }
.course-card:nth-child(2) { background: var(--mint); transform: rotate(.7deg); }
.course-label { display: flex; align-items: center; justify-content: space-between; }
.course-label span { padding: 5px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.course-label b { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--ink); border-radius: 50% 50% 44% 56%; background: var(--coral); color: #fff; font-size: 1.3rem; }
.course-card:nth-child(2) .course-label b { background: var(--blue); }
.course-card h3 { margin: 27px 0; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.course-card ul { margin: 0; padding: 0; list-style: none; }
.course-card li { padding: 13px 0; border-top: 2px solid rgba(23,38,63,.35); }
.course-note { margin: 26px 0 0; color: var(--muted); font-size: .88rem; }

.product-section { background: var(--ink); color: #fff; }
.product-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(45px, 8vw, 100px); align-items: center; }
.product-section .eyebrow { color: var(--ink); }
.product-copy h2 { margin: 25px 0; font-size: clamp(2.9rem, 5.8vw, 5.5rem); }
.product-copy h2 em { color: var(--sun); text-decoration-color: var(--coral); }
.product-copy > p { color: #ced9ea; }
.product-name { display: flex; align-items: center; gap: 12px; margin-top: 27px; }
.product-name span { display: grid; place-items: center; width: 58px; height: 58px; border: 2px solid #fff; border-radius: 17px; background: var(--blue); box-shadow: 4px 4px 0 var(--coral); font-weight: 900; }
.product-name strong { font-family: Georgia, serif; line-height: 1.05; }
.product-section .button { margin-top: 18px; border-color: var(--sun); background: var(--sun); color: var(--ink); }
.product-panel { overflow: hidden; border: 3px solid #fff; border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 13px 13px 0 var(--coral); transform: rotate(1deg); }
.panel-bar { display: flex; align-items: center; gap: 6px; padding: 13px 16px; border-bottom: 2px solid var(--ink); background: var(--blue-light); }
.panel-bar span { width: 10px; height: 10px; border: 1px solid var(--ink); border-radius: 50%; background: var(--coral); }
.panel-bar span:nth-child(2) { background: var(--sun); }
.panel-bar span:nth-child(3) { background: var(--mint); }
.panel-bar small { margin-left: 8px; color: var(--muted); }
.panel-body { padding: 28px; }
.panel-body > p { font-family: Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.55rem); }
.panel-body > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.panel-body span { padding: 15px; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); box-shadow: 3px 3px 0 var(--blue); }

.founder-section { background: var(--paper); }
.founder-grid { display: grid; grid-template-columns: minmax(250px,.74fr) 1.26fr; gap: clamp(48px, 8vw, 110px); align-items: center; }
.founder-portrait { position: relative; aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 3px solid var(--ink); border-radius: 45% 55% 42% 58%; background: var(--coral); color: #fff; box-shadow: 12px 12px 0 var(--sun); transform: rotate(-2deg); }
.founder-portrait::after { position: absolute; top: 12%; right: -19px; width: 43px; height: 43px; border: 2px solid var(--ink); border-radius: 50%; background: var(--mint); content: ""; }
.founder-portrait span { font-family: Georgia, serif; font-size: clamp(4.5rem, 10vw, 8rem); letter-spacing: -.09em; }
.founder-portrait small { font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.founder-copy h2 { margin: 18px 0; font-size: clamp(2.8rem, 5.5vw, 5.2rem); }
.credential-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 25px 0; }
.credential-list span { padding: 7px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--blue-light); font-size: .76rem; font-weight: 900; }
.credential-list span:nth-child(even) { background: var(--mint); }

.manifesto-section { padding: clamp(80px, 9vw, 120px) 0; border-block: 3px solid var(--ink); background: var(--coral); color: var(--ink); }
.manifesto-section p { display: inline-block; padding: 5px 9px; border: 2px solid var(--ink); background: var(--sun); font-size: .7rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; transform: rotate(-1deg); }
.manifesto-section blockquote { max-width: 1080px; margin: 18px 0 0; font-family: Georgia, serif; font-size: clamp(2.7rem, 6vw, 6rem); line-height: 1.02; letter-spacing: -.05em; }
.contact-section { text-align: center; background: var(--sun); }
.contact-shell { max-width: 850px; }
.contact-shell h2 { margin: 20px 0; font-size: clamp(3.2rem, 7vw, 7rem); }
.contact-shell > p { color: #4f5360; }
.site-footer { padding: 70px 0 28px; background: var(--ink); color: #ced9ea; }
.footer-main { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 48px; }
.site-footer .brand { color: #fff; }
.footer-brand-block > p { max-width: 340px; }
.footer-column { display: flex; flex-direction: column; gap: 8px; }
.footer-label { color: var(--sun); font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.footer-column a { text-decoration: none; }
.footer-column a:hover { color: var(--sun); }
.footer-legal { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 18px; border-top: 2px solid rgba(255,255,255,.16); font-size: .76rem; }

.archive-section, .content-page { padding-top: 150px; }
.archive-header h1, .content-page h1 { font-size: clamp(3rem, 7vw, 6.5rem); }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card { padding: 28px; border: 3px solid var(--ink); border-radius: var(--radius); background: var(--white); box-shadow: 6px 6px 0 var(--blue); }
.post-card:nth-child(even) { box-shadow: 6px 6px 0 var(--coral); }
.post-card a { text-decoration: none; }
.post-meta { font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.entry-content { max-width: 760px; font-size: 1.08rem; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 4px solid var(--coral); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
	[data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
	.hero-grid, .intro-grid, .section-heading, .product-grid, .founder-grid { grid-template-columns: 1fr; }
	.hero { background: linear-gradient(170deg, var(--paper) 0 62%, var(--blue-light) 62%); }
	.flow-lab { max-width: 650px; margin: 25px auto; }
	.service-grid { grid-template-columns: 1fr; }
	.service-grid article { min-height: 0; transform: none !important; }
	.service-grid h3 { margin-top: 34px; }
	.nav-toggle { display: block; }
	.nav-panel { position: absolute; top: 66px; right: 20px; left: 20px; display: none; padding: 22px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
	.nav-panel.is-open { display: flex; align-items: stretch; flex-direction: column; }
	.menu { align-items: stretch; flex-direction: column; width: 100%; }
	.menu a { display: block; padding: 9px; }
	.button-small { align-self: flex-start; }
}

@media (max-width: 680px) {
	.shell { width: min(100% - 28px, 1220px); }
	.course-grid, .panel-body > div, .footer-main, .post-grid { grid-template-columns: 1fr; }
	.hero h1 { font-size: clamp(3.2rem, 15vw, 5.1rem); }
	.flow-lab { padding: 14px; }
	.lab-columns > div { min-height: 170px; padding: 7px; }
	.lab-columns i { height: 35px; }
	.lab-signal { position: static; max-width: none; margin-top: 14px; }
	.course-card { transform: none !important; }
	.founder-portrait { width: 100%; max-width: 380px; margin: auto; }
	.footer-legal { flex-direction: column; }
}
