/*
Theme Name: Magic with Meaning (Matt Adams)
Description: Corporate site theme for Matt Adams, Master Illusionist. Sister design to mattadamsministries.com.
Author: Matt Adams
Version: 1.0.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mwm-matt-adams
*/
/* Layout: sister site to mattadamsministries.com. Charcoal portrait hero, red action bar,
   proof strip, three show cards, quotes, video band, closing call. Single brand look by choice. */
:root {
  --red: #c43228;
  --red-dark: #a3281f;
  --charcoal: #38373d;   /* matches the portrait's own backdrop so the photo melts in */
  --ink: #424147;
  --muted: #6c6a72;
  --line: #e4e2e6;
  --paper: #ffffff;
  --mist: #f5f4f6;
  --on-dark: #f3f2f4;
  --on-dark-muted: #b9b7be;
  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; }
a { color: inherit; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.12; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border-radius: 3px;
  font-weight: 900; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border: 2px solid var(--on-dark-muted); color: var(--on-dark); padding: 13px 26px; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
a:focus-visible, .btn:focus-visible { outline: 3px solid #f2b8b3; outline-offset: 3px; }


/* header */
header.site { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo svg { width: 44px; height: 44px; flex: none; }
.logo .name { display: block; font-weight: 900; font-size: 24px; letter-spacing: .02em; line-height: 1; }
.logo .tag { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--red); letter-spacing: .12em; text-transform: lowercase; margin-top: 4px; }
.logo .tag::before, .logo .tag::after { content: ""; height: 2px; flex: 1; background: var(--ink); min-width: 10px; }
nav.main { display: flex; align-items: center; gap: 26px; }
nav.main a:not(.btn) { text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
nav.main a:hover { color: var(--red); }
nav.main a.current { color: var(--red); }
nav.main .btn { padding: 11px 20px; font-size: 13px; color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 3px; padding: 9px 12px; font: 700 13px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }

/* hero */
.hero { background: var(--charcoal); color: var(--on-dark); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 32px; }
.hero-copy { padding-block: 72px 80px; min-width: 0; }
.hero h1 { font-weight: 900; font-size: clamp(38px, 5.4vw, 64px); text-transform: uppercase; letter-spacing: -.01em; margin-top: 14px; }
.hero h1 em { font-style: normal; color: #ff7a6f; }
.hero p.lede { font-size: 19px; color: var(--on-dark-muted); max-width: 34em; margin: 22px 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .eyebrow { color: #ff7a6f; }
.hero-photo { align-self: end; justify-self: center; max-width: 470px; width: 100%; }
.hero-photo img { display: block; width: 100%; height: auto; }

/* red bar */
.redbar { background: var(--red); color: #fff; text-align: center; padding: 18px 20px; font-size: 17px; }
.redbar a { color: #fff; font-weight: 900; text-underline-offset: 3px; }

/* proof strip */
.proof { border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 34px; }
.stat { padding: 4px 22px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-weight: 900; font-size: 30px; color: var(--ink); line-height: 1.1; }
.stat span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

.clients { background: var(--mist); }
.clients .wrap { padding-block: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 34px; justify-content: center; }
.clients .label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.clients .co { font-weight: 900; font-size: 17px; color: #8d8b93; letter-spacing: .01em; }

/* sections */
section.block { padding-block: 84px; }
.head { max-width: 640px; margin-bottom: 44px; }
.head h2 { font-weight: 900; font-size: clamp(30px, 3.6vw, 42px); margin-top: 10px; color: var(--ink); }
.head p { color: var(--muted); margin: 14px 0 0; }

.shows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.show { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.show img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; max-width: 100%; }
.show .body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.show h3 { font-weight: 900; font-size: 22px; }
.show p { margin: 0; color: var(--muted); font-size: 16px; }
.show .more { margin-top: auto; padding-top: 8px; font-weight: 900; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); text-decoration: none; }
.show .more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* about */
.about { background: var(--mist); }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about .copy { min-width: 0; }
.about .copy p { margin: 0 0 16px; max-width: 34em; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; background: var(--paper); border-radius: 4px; padding: 16px 18px; font-weight: 700; }
.checks li small { display: block; font-weight: 400; color: var(--muted); font-size: 15px; margin-top: 2px; }
.checks svg { width: 24px; height: 24px; margin-top: 1px; }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
figure.quote { margin: 0; display: flex; flex-direction: column; gap: 18px; min-width: 0; padding-top: 22px; border-top: 3px solid var(--red); }
.stars { color: var(--red); letter-spacing: 3px; font-size: 16px; }
figure.quote blockquote { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink); }
figure.quote figcaption { margin-top: auto; font-size: 14px; color: var(--muted); }
figure.quote figcaption b { display: block; color: var(--ink); font-size: 15px; }
.see-all { margin-top: 40px; }
.see-all a { font-weight: 900; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); text-underline-offset: 3px; }

/* videos */
.videos { background: var(--charcoal); color: var(--on-dark); }
.videos .head h2 { color: #fff; }
.videos .head p { color: var(--on-dark-muted); }
.videos .eyebrow { color: #ff7a6f; }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
a.vid { display: flex; flex-direction: column; text-decoration: none; color: var(--on-dark); min-width: 0; }
.vid .thumb { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 4px; overflow: hidden; background: #2a292e; }
.vid .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid .thumb::after { content: ""; position: absolute; inset: 0; background: rgba(30, 29, 34, .25); transition: background .15s; }
.vid:hover .thumb::after { background: rgba(30, 29, 34, 0); }
.vid .play { position: absolute; z-index: 1; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.vid .play svg { width: 22px; height: 22px; margin-left: 4px; }
.vid .thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.vid.playing { display: flex; flex-direction: column; color: var(--on-dark); min-width: 0; }
.vid.playing .thumb::after { display: none; }
.vid b { margin-top: 14px; font-size: 18px; }
.vid span { color: var(--on-dark-muted); font-size: 15px; }

/* closing */
.close { text-align: center; }
.close h2 { font-weight: 900; font-size: clamp(30px, 3.8vw, 44px); }
.close p { color: var(--muted); max-width: 36em; margin: 16px auto 30px; }

footer.site { background: #2c2b30; color: var(--on-dark-muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-block: 34px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site .logo { color: #fff; }
footer.site .logo .tag::before, footer.site .logo .tag::after { background: var(--on-dark-muted); }



/* booking form */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.book { background: var(--mist); }
.book .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.book .intro { min-width: 0; }
.book .intro h2 { font-weight: 900; font-size: clamp(30px, 3.8vw, 44px); margin-top: 10px; }
.book .intro p { color: var(--muted); margin: 16px 0 0; max-width: 30em; }
.book .intro .quote-mini { margin-top: 28px; padding-top: 18px; border-top: 3px solid var(--red); font-size: 16px; color: var(--ink); }
.book .intro .quote-mini span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
form.bookform { background: var(--paper); border-radius: 4px; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; min-width: 0; box-shadow: 0 1px 2px rgba(56,55,61,.06), 0 8px 24px rgba(56,55,61,.06); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.field label i { font-style: normal; color: var(--red); }
.field .err { font-size: 13px; color: var(--red); font-weight: 700; }
.field.invalid input, .field.invalid select { border-color: var(--red); background: #fdf6f5; }
.req-key { grid-column: 1 / -1; margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.req-key i { font-style: normal; color: var(--red); }
.field input, .field textarea, .field select { width: 100%; font: 400 16px var(--font); color: var(--ink); background: var(--paper); border: 1px solid #cfcdd3; border-radius: 3px; padding: 12px 14px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(196,50,40,.15); }
form.bookform .btn { grid-column: 1 / -1; border: 0; cursor: pointer; font-family: var(--font); padding-block: 17px; }
.form-done { grid-column: 1 / -1; margin: 0; background: #fbf3f2; border-left: 4px solid var(--red); padding: 14px 16px; font-size: 15px; }
@media (max-width: 980px) { .book .wrap { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px) { form.bookform { grid-template-columns: 1fr; padding: 22px 18px; } }

@media (max-width: 980px) {
  nav.main a:not(.btn) { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-block: 52px 8px; }
  .hero-photo { max-width: 360px; }
  .proof .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .shows, .quotes, .vgrid { grid-template-columns: 1fr; max-width: 560px; }
  .about .wrap { grid-template-columns: 1fr; gap: 32px; }
  section.block { padding-block: 60px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .logo .name { font-size: 20px; }
  .logo svg { width: 36px; height: 36px; }
  nav.main .btn { padding: 10px 14px; font-size: 12px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .stat strong { font-size: 24px; }
  .stat { padding: 0 0 0 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- shared additions for the multi-page mockup ---- */
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 42px; padding: 0; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 4px 20px 14px; }
.mobile-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a.current { color: var(--red); }

.page-hero { background: var(--charcoal); color: var(--on-dark); overflow: hidden; }
.page-hero .wrap { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding-block: 64px 70px; }
.page-hero.has-photo .wrap { grid-template-columns: 1.05fr .95fr; }
.ph-copy { min-width: 0; }
.page-hero .eyebrow { color: #ff7a6f; }
.page-hero h1 { font-weight: 900; font-size: clamp(36px, 5vw, 58px); text-transform: uppercase; margin-top: 12px; }
.page-hero .lede { font-size: 19px; color: var(--on-dark-muted); max-width: 34em; margin: 18px 0 28px; }
.ph-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 72px; }
.split.flip > .split-media { order: 2; }
.split-copy { min-width: 0; }
.split-copy h2 { font-weight: 900; font-size: clamp(26px, 3vw, 34px); margin-top: 10px; }
.split-copy p { color: var(--muted); margin: 14px 0 0; max-width: 34em; }
.split-media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tags span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px; color: var(--ink); }
.block.mist { background: var(--mist); }
.block.mist .tags span { background: var(--paper); }

.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.format { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.format .kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.format h3 { font-weight: 900; font-size: 21px; }
.format p { margin: 0; color: var(--muted); font-size: 16px; }

.evening { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; counter-reset: step; }
.evening li { list-style: none; background: var(--paper); border-radius: 4px; padding: 26px 28px; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.evening li::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.evening h3 { font-weight: 900; font-size: 19px; }
.evening p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
ol.evening { padding: 0; margin: 0; }

.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before { counter-increment: step; content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 16px; }
.steps h3 { font-weight: 900; font-size: 19px; }
.steps p { margin: 4px 0 0; }
.split-copy .steps + p { margin-top: 22px; }
.clean-band { background: var(--red); color: #fff; }
.clean-band .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 48px; padding-block: 34px; }
.clean-band .item { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-weight: 700; font-size: 17px; }
.clean-band .item small { display: block; font-weight: 400; opacity: .88; font-size: 15px; }
.clean-band svg circle { fill: #fff; }
.clean-band svg path { stroke: var(--red); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery.two { grid-template-columns: repeat(2, 1fr); }
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }

.solo-quote { max-width: 760px; }
.solo-quote blockquote { margin: 0; font-size: clamp(20px, 2.3vw, 26px); line-height: 1.45; color: var(--ink); font-weight: 400; }
.solo-quote figcaption { margin-top: 16px; font-size: 15px; color: var(--muted); }
.solo-quote figcaption b { color: var(--ink); }

.vgrid.two { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
.vgrid.four { grid-template-columns: repeat(4, 1fr); }
.quotes.two { grid-template-columns: repeat(2, 1fr); gap: 40px 48px; }

.client-list { columns: 4; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.client-list li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); font-size: 16px; }

@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .mobile-nav.open { display: block; }
  .page-hero.has-photo .wrap { grid-template-columns: 1fr; }
  .page-hero .wrap { padding-block: 48px 52px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split.flip > .split-media { order: 0; }
  .split + .split { margin-top: 52px; }
  .formats, .evening, .quotes.two, .vgrid.two { grid-template-columns: 1fr; max-width: 560px; }
  .vgrid.four { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .clean-band .wrap { grid-template-columns: 1fr; }
  .client-list { columns: 2; }
}
@media (max-width: 520px) {
  header.site .wrap { gap: 10px; }
  .logo { gap: 9px; }
  .logo .name { font-size: 18px; white-space: nowrap; }
  .logo .tag { white-space: nowrap; }
  .logo .tag::before, .logo .tag::after { display: none; }
  nav.main .btn { white-space: nowrap; }
  .gallery.two { grid-template-columns: 1fr; }
  nav.main { gap: 8px; }
  .logo .tag { font-size: 11px; }
  .vgrid.four { grid-template-columns: 1fr; }
  .client-list { columns: 1; }
}
@media (max-width: 400px) {
  header.site .wrap { gap: 8px; }
  nav.main { gap: 6px; }
  .logo { gap: 7px; }
  .logo svg { width: 30px; height: 30px; }
  .logo .name { font-size: 16px; }
  .logo .tag { font-size: 10px; letter-spacing: .05em; }
  nav.main .btn { padding: 9px 10px; font-size: 11px; letter-spacing: .04em; }
  .menu-btn { width: 38px; height: 38px; }
}

/* ---- WordPress additions ---- */
.admin-bar header.site { top: 32px; }
@media (max-width: 782px) { .admin-bar header.site { top: 46px; } }
@media (max-width: 600px) { .admin-bar header.site { top: 0; } }
.mago-card { background: var(--paper); border-radius: 4px; padding: 20px; min-width: 0; box-shadow: 0 1px 2px rgba(56,55,61,.06), 0 8px 24px rgba(56,55,61,.06); }
.mago-card iframe { display: block; width: 100%; min-height: 640px; border: 0; }
.entry { max-width: 760px; }
.entry p { margin: 0 0 16px; }
.entry input[type="password"] { font: 400 16px var(--font); border: 1px solid #cfcdd3; border-radius: 3px; padding: 11px 14px; margin: 0 8px 0 4px; }
.entry input[type="submit"] { background: var(--red); color: #fff; border: 0; border-radius: 3px; padding: 12px 22px; font: 900 14px var(--font); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
