/*
Theme Name: What A Marketing
Description: Theme for What A Marketing, built to the brand guidelines v2 and homepage design.
Version: 3.1.3
Requires at least: 6.5
Text Domain: what-a-marketing
*/

/* One loud colour, a black and white world. Square corners; round is only the dot family and pills. */
:root {
  --orange: #f65002;
  --orange-text: #c23e00;
  --ink: #0a0a0a;
  --charcoal: #171717;
  --cream: #fff8f0;
  --white: #ffffff;
  --yellow: #ffc93c;
  --muted: #a3a3a3;
  --line: #2c2c2c;
  --gutter: clamp(16px, 4vw, 64px);
  --headline: "Poppins", "Arial Black", Arial, sans-serif;
  --twist: "Instrument Serif", Georgia, serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 16px/24px var(--body); overflow-wrap: break-word; overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
a { color: var(--orange); }
a:hover { color: var(--yellow); }
p { margin: 0; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--headline); margin: 0; }
h1 { font-weight: 800; font-size: clamp(2.75rem, 8vw, 7rem); line-height: 0.95; letter-spacing: -0.03em; max-width: 1100px; }
h2 { font-weight: 800; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.02em; }
h3 { font-weight: 700; font-size: 1.5rem; line-height: 1.25; }
h3 a { color: inherit; text-decoration: none; }
h3 a:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--orange); }
h1 em, h2 em, .founder-quote em, .hero-note-quote em { font-family: var(--twist); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h1 em, h2 em { white-space: nowrap; }
h1 em, .founder-quote em { color: var(--orange); }
.on-charcoal h2 em { color: var(--orange); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.on-cream :focus-visible, .final-cta :focus-visible { outline-color: var(--ink); }

.wrap { width: min(1280px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 96px); }
.line-top { border-top: 1px solid var(--line); }
.top-gap { margin-top: clamp(32px, 5vw, 56px); }
.on-cream { background: var(--cream); color: var(--ink); }
.on-cream a:not(.wp-block-button__link) { color: var(--orange-text); }
.on-charcoal { background: var(--charcoal); }
.label { font: 600 12px/16px var(--body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange); margin-bottom: 16px; }
.on-cream .label { color: var(--orange-text); }
.muted-label { color: var(--muted); margin-bottom: 0; }
.dot-label { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 20px; }
.dot-label::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.lede { font-size: 18px; line-height: 28px; max-width: 34rem; color: #e6e6e6; }
.on-cream .lede { color: inherit; }
.muted { color: var(--muted); }
.crumbs { font-size: 13px; line-height: 18px; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--white); }

/* Top bar */
.topbar { background: var(--orange); color: var(--ink); font-size: 13px; line-height: 18px; font-weight: 600; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; padding-block: 10px; }
.topbar a { color: var(--ink); }
.topbar a:hover { color: var(--ink); text-decoration-thickness: 2px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { display: block; width: auto; height: 26px; }
.wp-block-navigation { font-size: 15px; font-weight: 600; }
.wp-block-navigation a { color: var(--white); }
.wp-block-navigation a:hover { color: var(--white); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--orange); }
.wp-block-navigation .wp-block-navigation__container { gap: 8px clamp(16px, 2.2vw, 28px); align-items: center; }
.wp-block-navigation .wp-block-navigation__submenu-container { background: var(--charcoal) !important; color: var(--white) !important; border: 1px solid var(--line) !important; min-width: 240px !important; padding: 8px 0; }
.wp-block-navigation .wp-block-navigation__submenu-container a { padding: 10px 16px; }
.wp-block-navigation .nav-cta a.wp-block-navigation-item__content { background: var(--orange); color: var(--ink) !important; border-radius: 999px; padding: 12px 22px; }
.wp-block-navigation .nav-cta a.wp-block-navigation-item__content:hover { background: var(--white); text-decoration: none; }
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open { padding: 24px var(--gutter); background: var(--ink) !important; opacity: 1; animation: none; overflow-y: auto; }
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px; align-items: flex-start; }
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 18px; align-items: flex-start; font-size: 1.125rem; }
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; border: 0 !important; padding: 10px 0 0 16px !important; min-width: 0 !important; }
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a { padding: 6px 0; font-weight: 500; font-size: 1rem; }
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .nav-cta a.wp-block-navigation-item__content { padding: 12px 22px !important; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; justify-content: center; color: var(--white); }

/* Pill buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button__link, .wam-submit {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 26px; border-radius: 999px;
  background: var(--orange); color: var(--ink); border: 1px solid var(--orange);
  font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.wp-block-button__link:hover, .wam-submit:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.on-cream .wp-block-button__link:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-ghost .wp-block-button__link { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost .wp-block-button__link:hover { background: var(--white); color: var(--ink); }

/* Photos: mono world, colour on hover */
.wam-photo { overflow: hidden; background: #1c1c1c; }
.wam-photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter 0.3s; }
.wam-photo:hover img, .industry-card:hover .wam-photo img, .work-card:hover .wam-photo img { filter: none; }

/* Hero */
.hero .wrap { padding-block: clamp(40px, 6vw, 88px) 64px; }
.hero-grid { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; justify-content: space-between; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.stat-num { font: 800 40px/44px var(--headline); }
.stat-num::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-left: 3px; }
.stat-label { margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--muted); }
.hero-media { position: relative; min-height: 520px; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { object-position: 50% 30%; }
.hero-bubble { position: absolute; top: 24px; right: 24px; width: 104px; height: 104px; }
.hero-bar { position: absolute; right: 0; bottom: 0; width: 38%; height: 14px; background: var(--orange); }
.hero-note { position: absolute; left: 24px; top: 24px; max-width: 220px; background: var(--cream); color: var(--ink); padding: 14px 16px; }
.hero-note-quote { font: 700 18px/22px var(--headline); }
.hero-note-sub { margin-top: 8px; font-size: 12px; line-height: 16px; color: #5c5c5c; }

/* Band */
.band { background: var(--orange); color: var(--ink); overflow: hidden; }
.band-track { display: flex; width: max-content; animation: slide 48s linear infinite; padding-block: 18px; font: 800 clamp(1.375rem, 3vw, 2.25rem)/1.1 var(--headline); letter-spacing: -0.01em; white-space: nowrap; }
.band-track span { display: flex; align-items: center; }
.band-track i { display: inline-block; width: 0.5em; height: 0.5em; margin-inline: 0.6em; border-radius: 50%; background: var(--ink); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Logos */
.split-head { display: flex; flex-wrap: wrap; gap: 16px 48px; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.split-head.wide { margin-bottom: clamp(32px, 5vw, 56px); gap: 24px 64px; }
.split-head.wide > :first-child { flex: 1 1 520px; }
.split-head.wide .lede { flex: 1 1 320px; max-width: 420px; }
.split-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); line-height: 1.05; }
.split-head.wide h2 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.wam-logo { aspect-ratio: 1; overflow: hidden; background: var(--charcoal); }
.wam-logo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0.85; transition: filter 0.2s, opacity 0.2s; }
.wam-logo:hover img { filter: none; opacity: 1; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--ink); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card p:not(.num):not(.go) { color: var(--muted); }
.num { font: 700 14px/20px var(--headline); color: var(--orange); }
.go { margin-top: auto; font-weight: 600; }
.go a { text-decoration: none; }

/* Industries */
.industry-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.industry-card { display: flex; flex-direction: column; gap: 14px; }
.industry-card .wam-photo { aspect-ratio: 4 / 5; position: relative; }
.industry-card .wam-photo::after { content: ""; position: absolute; right: 14px; top: 14px; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); }
.industry-card h3 a { color: var(--ink) !important; }
.industry-card p { color: #5c5c5c; }
.everyone { margin-top: 56px; border-top: 1px solid #e6e1d8; padding-top: 32px; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px 48px; align-items: start; }
.pills { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { border: 1px solid var(--ink); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; line-height: 20px; }
.pills.on-dark li { border-color: var(--white); }
.pills .pill-cta { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.pills .pill-cta a { color: var(--ink) !important; text-decoration: none; }

/* Plan */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: stretch; }
.plan-copy .lede { margin-top: 20px; }
.plan-copy .wam-photo { margin-top: 32px; aspect-ratio: 16 / 9; max-width: 560px; }
.plan-card { background: var(--charcoal); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.plan-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
.plan-price { font-weight: 600; color: var(--orange); }
.dots { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; }
.dots li { display: flex; gap: 10px; align-items: baseline; }
.dots li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.plan-note { font-size: 13px; line-height: 18px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }

/* Comparison */
.compare { overflow-x: auto; border: 1px solid var(--line); }
.compare table { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare th, .compare td { text-align: left; padding: 18px 24px; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.compare thead th:last-child { background: var(--orange); color: var(--ink); border-bottom-color: var(--orange); }
.compare tbody th { font-weight: 600; }
.compare tbody td:nth-child(2) { color: var(--muted); }

/* Founder */
.founder { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.founder-photo { flex: 0 1 360px; min-width: 240px; position: relative; }
.founder-photo .wam-photo { aspect-ratio: 4 / 5; }
.founder-photo::after { content: ""; position: absolute; right: -20px; top: 24px; width: 72px; height: 72px; border-radius: 50%; background: var(--orange); }
.founder-copy { flex: 1 1 420px; }
.founder-quote { font: 700 clamp(1.5rem, 3vw, 2.125rem)/1.2 var(--headline); margin-bottom: 20px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px 20px; counter-reset: step; }
.step { counter-increment: step; border-top: 4px solid var(--line); padding-top: 20px; }
.step:first-child { border-top-color: var(--orange); }
.step::before { content: counter(step, decimal-leading-zero); display: block; font: 800 40px/44px var(--headline); color: #8a8a8a; margin-bottom: 12px; }
.step h3 { font-size: 1.375rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* FAQ */
.faq-section > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.faq-list { border-top: 1px solid var(--line); }
.wp-block-details { border-bottom: 1px solid var(--line); padding-block: 22px; }
.wp-block-details summary { font: 700 1.25rem/1.3 var(--headline); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--orange); flex: none; }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details p { margin-top: 12px; color: var(--muted); }

/* Final CTA */
.final-cta { background: var(--orange); color: var(--ink); position: relative; overflow: hidden; scroll-margin-top: 24px; }
.final-cta::before { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: var(--ink); }
.final-grid { position: relative; padding-block: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: start; }
.final-cta h2 { font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 0.95; letter-spacing: -0.03em; }
.final-cta .lede { margin-top: 24px; color: var(--ink); }
.cta-links { margin-top: 28px; font-weight: 600; }
.cta-links a { color: var(--ink); }
.cta-links a:hover { color: var(--ink); text-decoration-thickness: 2px; }
.wam-form { background: var(--ink); color: var(--white); padding: clamp(24px, 4vw, 36px); display: grid; gap: 16px; scroll-margin-top: 24px; }
.wam-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.wam-form input, .wam-form select { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--charcoal); color: var(--white); border: 1px solid var(--line); border-radius: 0; font: 400 16px/24px var(--body); }
.wam-form input::placeholder { color: #8a8a8a; }
.wam-submit { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { color: var(--yellow); font-weight: 600; }

/* Page hero */
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.page-hero-grid.no-photo { grid-template-columns: minmax(0, 1fr); }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.page-hero .lede { margin-top: 24px; }
.page-hero .wp-block-buttons { margin-top: 32px; }
.page-hero-photo { position: relative; inset: auto; aspect-ratio: 4 / 5; max-height: 560px; width: 100%; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 6vw, 80px); }
.prose p + p { margin-top: 1em; }
.card > p.go:empty { display: none; }

/* Related */
.related { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.related-card { background: var(--charcoal); padding: 28px; }
.related-card p { margin-top: 8px; color: var(--muted); }

/* Work */
.work-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.work-card { background: var(--charcoal); display: flex; flex-direction: column; }
.work-card .wam-photo { aspect-ratio: 4 / 3; }
.work-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.work-body h3 { font-size: 1.25rem; }
.tag { background: var(--yellow); color: var(--ink); font-size: 12px; line-height: 16px; font-weight: 600; padding: 6px 10px; }

/* Blog */
.post-cards { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.post-card { color: var(--white); text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.post-card:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--orange); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; }
.post-card h3 { font-size: 1.25rem; }

/* Contact */
.contact-top .wrap { padding-block: clamp(40px, 6vw, 72px); }
.contact-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.contact-big { margin-top: 10px; font: 700 1.25rem/1.3 var(--headline); }
.contact-big a { color: var(--white); text-decoration-color: var(--orange); }
.contact-big a:hover { color: var(--white); }

/* Simple pages */
.thanks .wrap { padding-block: clamp(72px, 12vw, 160px); }
.thanks .lede { margin-top: 24px; }
.thanks .lede a { color: var(--white); }
.thanks .wp-block-buttons { margin-top: 32px; }
.legal .wrap { padding-block: clamp(48px, 7vw, 96px); max-width: 860px; }
.legal h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.5rem; line-height: 1.25; margin: 32px 0 10px; letter-spacing: -0.01em; }
.legal p { color: #d4d4d4; }
.simple-page { padding-block: clamp(48px, 7vw, 96px); }
.simple-page .wp-block-post { margin-bottom: 48px; }

/* Footer */
.footer-grid { padding-block: 72px 32px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px; }
.footer-brand img { display: block; width: 150px; height: auto; }
.footer-brand p, .footer-brand address { margin-top: 14px; color: var(--muted); font-style: normal; font-size: 14px; line-height: 22px; }
.footer-col h2 { font: 600 12px/16px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; }
.footer-col a { color: var(--white); text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--orange); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); margin-left: 20px; }
.footer-bottom a:first-child { margin-left: 0; }

@media (max-width: 960px) {
  .hero-grid, .page-hero-grid, .faq-section > .wrap, .everyone { grid-template-columns: minmax(0, 1fr); }
  .hero-media { min-height: 420px; }
  .page-hero-photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .topbar .wrap > :first-child { display: none; }
  .topbar .wrap { justify-content: center; }
  .hero-media { min-height: 340px; }
  .hero-note { left: 12px; top: 12px; max-width: 180px; padding: 10px 12px; }
  .hero-note-quote { font-size: 15px; line-height: 19px; }
  .hero-bubble { top: auto; bottom: 26px; right: 12px; width: 72px; height: 72px; }
  .card { padding: 24px; }
  .founder-photo::after { right: 0; }
  .final-cta::before { opacity: 0.0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band-track { animation: none; }
  .wp-block-button__link, .wam-submit, .wam-photo img, .wam-logo img { transition: none; }
}
