/*
Theme Name: The Inspired Brand
Theme URI: https://inspiredbrand.net
Author: The Inspired Brand
Description: Custom agency theme for paid search, web design and digital strategy.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: inspired-brand
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #0f1b33;
  --paper: #f7f9fc;
  --white: #ffffff;
  --slate: #3b4559;
  --mist: #e4eaf4;
  --line: #d3dbe9;
  --cobalt: #4338e8;
  --cobalt-dark: #3229c4;
  --gold: #ffc83d;
  --header-h: 76px;
  --radius: 14px;
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 72px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; max-width: 62ch; }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section--white { background: var(--white); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #c9d3e6; }
.section--ink h2, .section--ink h3 { color: #fff; }
.lede { font-size: 1.2rem; color: var(--slate); }
.section-head { margin-bottom: 48px; }
.section-head p { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1rem/1 var(--font-body);
  padding: 16px 26px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--cobalt); color: #fff; }
.btn--primary:hover { background: var(--cobalt-dark); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #ffd569; color: var(--ink); }
.btn--sm { padding: 12px 20px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.2rem/1 var(--font-head); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.custom-logo { max-height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav .current-menu-item > a { color: var(--cobalt); }
.nav-wrap { display: flex; align-items: center; gap: 30px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); background: var(--paper); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__grid > * { min-width: 0; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; }

.hero__stage { position: relative; background: var(--mist); border-radius: 28px; padding: clamp(22px, 4vw, 44px); }
.mock { background: var(--white); border-radius: 16px; box-shadow: 0 24px 60px -24px rgba(15,27,51,.35); overflow: hidden; }
.mock__bar { display: flex; gap: 6px; padding: 12px 16px; background: #eef2f9; }
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #c5cee0; }
.mock__body { padding: 22px 22px 26px; }
.mock__search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; margin-bottom: 22px; color: var(--ink); font-weight: 500; min-height: 48px; }
.mock__search svg { width: 18px; height: 18px; flex: none; color: var(--slate); }
.mock__search { overflow: hidden; }
.typed { display: inline-block; max-width: 100%; overflow: hidden; white-space: nowrap; vertical-align: bottom; border-right: 2px solid var(--cobalt); width: var(--typed-w, 26ch); animation: ib-type 10s steps(30, end) infinite; }
.m-ad { border: 1.5px solid var(--gold); background: #fffaf0; border-radius: 12px; padding: 14px 16px 16px; margin-bottom: 16px; animation: ib-ad 10s ease infinite; }
.m-ad__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.m-ad__logo { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.m-ad__who { min-width: 0; line-height: 1.3; }
.m-ad__who strong { display: block; font-size: .88rem; color: var(--ink); }
.m-ad__who span { display: block; font-size: .75rem; color: var(--slate); overflow-wrap: anywhere; }
.m-ad__who b { color: var(--ink); }
.m-ad__title { font: 700 1.1rem/1.3 var(--font-head); color: var(--cobalt); margin-bottom: 6px; }
.m-ad__text { font-size: .86rem; line-height: 1.5; margin: 0 0 10px; color: var(--slate); max-width: none; }
.m-ad__ext { font-size: .8rem; font-weight: 600; color: var(--ink); margin: 0 0 4px; max-width: none; }
.m-ad__snip { font-size: .8rem; color: var(--slate); margin: 0 0 12px; max-width: none; }
.m-ad__snip b { color: var(--ink); }
.m-sitelinks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; align-items: start; border-top: 1px solid #f1e3b8; padding-top: 12px; }
.m-sitelinks li { min-width: 0; line-height: 1.35; }
.m-sitelinks b { display: block; font-size: .86rem; color: var(--cobalt); }
.m-sitelinks span { display: block; margin-top: 2px; font-size: .75rem; line-height: 1.4; text-wrap: pretty; color: var(--slate); }
.m-line { height: 10px; border-radius: 6px; background: var(--mist); margin-bottom: 10px; }
.m-line--title { width: 55%; height: 14px; background: #d6def0; }
.m-line--short { width: 80%; }
.m-result { margin-bottom: 18px; }
.stat { position: absolute; background: var(--white); border-radius: 12px; padding: 12px 16px; box-shadow: 0 14px 34px -12px rgba(15,27,51,.4); font-weight: 700; color: var(--ink); font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.stat b { color: var(--cobalt); font-size: 1.15rem; }
.stat--1 { left: -22px; bottom: 15%; animation: ib-s1 10s ease infinite; }
.stat--2 { right: -12px; top: -16px; animation: ib-s2 10s ease infinite; }
.stat--3 { right: 28px; bottom: -22px; animation: ib-s3 10s ease infinite; }
@keyframes ib-type { 0%, 4% { width: 0; } 34%, 94% { width: var(--typed-w, 26ch); } 100% { width: 0; } }
@keyframes ib-ad { 0%, 36% { opacity: 0; transform: translateY(10px); } 44%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: translateY(10px); } }
@keyframes ib-s1 { 0%, 48% { opacity: 0; transform: scale(.9); } 54%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes ib-s2 { 0%, 56% { opacity: 0; transform: scale(.9); } 62%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes ib-s3 { 0%, 64% { opacity: 0; transform: scale(.9); } 70%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.proof li { padding: 22px 0; border-top: 1px solid var(--line); }
.proof li:last-child { border-bottom: 1px solid var(--line); }
.proof strong { display: block; font: 700 1.2rem/1.3 var(--font-head); color: var(--ink); margin-bottom: 4px; }
.proof span { display: block; }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; transition: border-color .2s; }
.svc-card:hover { border-color: var(--cobalt); }
.svc-card svg { width: 38px; height: 38px; color: var(--cobalt); margin-bottom: 20px; }
.svc-card h3 { margin-bottom: 10px; }
.svc-card p { font-size: .98rem; flex: 1; }
.svc-card .text-link { align-self: flex-start; font-size: .95rem; }

/* ---------- Industry tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; min-height: 260px; padding: 28px; border-radius: 18px; text-decoration: none; transition: transform .2s; }
.tile:hover { transform: translateY(-4px); }
.tile h3 { font-size: 1.7rem; margin-bottom: 0; color: inherit; }
.tile p { margin: 0; font-size: .98rem; }
.tile--ink { background: var(--ink); color: #c9d3e6; }
.tile--ink h3, .tile--ink:hover { color: #fff; }
.tile--cobalt { background: var(--cobalt); color: #e1defc; }
.tile--cobalt h3, .tile--cobalt:hover { color: #fff; }
.tile--gold { background: var(--gold); color: #3a2e07; }
.tile--gold h3, .tile--gold:hover { color: var(--ink); }
.tile--navy { background: #1f3563; color: #cfd9ef; }
.tile--navy h3, .tile--navy:hover { color: #fff; }
.tile--lilac { background: #dcd9fa; color: #2a2670; }
.tile--lilac h3, .tile--lilac:hover { color: #1c1950; }
.tile--slate { background: #4b5a78; color: #e3e8f3; }
.tile--slate h3, .tile--slate:hover { color: #fff; }
.tile--sun { background: #ffe9a8; color: #4a3a08; }
.tile--sun h3, .tile--sun:hover { color: var(--ink); }
.tile--indigo { background: #2d2a7a; color: #d9d7f7; }
.tile--indigo h3, .tile--indigo:hover { color: #fff; }
.tile--paper { background: var(--white); color: var(--slate); border: 1px solid var(--line); }
.tile--paper h3 { color: var(--ink); }
.tile--paper:hover { color: var(--slate); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #c9d3e6; padding: clamp(64px, 9vw, 108px) 0; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band__inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.cta-band p { font-size: 1.15rem; }
.cta-band small { display: block; margin-top: 14px; color: #93a2c1; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1224; color: #93a2c1; padding: 56px 0 36px; font-size: .98rem; }
.site-footer a { color: #d6def0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot .brand { color: #fff; margin-bottom: 12px; }
.foot h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.foot li { margin-bottom: 8px; }
.copy { border-top: 1px solid #1c2a49; padding-top: 22px; margin: 0; max-width: none; font-size: .9rem; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--white); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 80px) 0 clamp(44px, 6vw, 72px); }
.crumbs { font-size: .92rem; margin-bottom: 22px; }
.crumbs a { color: var(--slate); }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.page-hero .lede { max-width: 58ch; margin-bottom: 28px; }
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(247,249,252,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 10px; padding: 12px 0; overflow-x: auto; }
.subnav a { display: block; white-space: nowrap; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none; font-size: .95rem; }
.subnav a:hover { border-color: var(--cobalt); color: var(--cobalt); }
.center-intro h2 { max-width: 24ch; }
.center-intro h2 { margin-bottom: 18px; }

/* Services rows */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.svc-row:first-of-type { border-top: 0; }
.svc-row--flip .svc-row__art { order: -1; }
.svc-row__art { background: var(--mist); border-radius: 24px; min-height: 300px; display: grid; place-items: center; padding: 28px; }
.svc-row__art svg { width: 100%; max-width: 360px; height: auto; }
.checks li { position: relative; padding: 7px 0 7px 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 9px; border-left: 3px solid var(--cobalt); border-bottom: 3px solid var(--cobalt); transform: rotate(-45deg) scale(.9); }
.badge { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.why h3 { margin-bottom: 8px; }
.why p { margin: 0; }

/* Industries */
.pillar { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.cases { display: grid; gap: 18px; }
.case { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section--mist .case, .section--white .case { background: var(--paper); }
.case__tag { display: block; font-weight: 700; font-size: .9rem; color: var(--cobalt); margin-bottom: 6px; }
.case h3 { margin-bottom: 8px; }
.case p { margin: 0; font-size: .98rem; }
.cases--two { grid-template-columns: 1fr 1fr; }
.partner-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin: 44px 0; }
.partner-cols h3 { margin-bottom: 8px; }
.partner-cols p { margin: 0; color: #c9d3e6; }
.partner-lede { font-size: 1.2rem; max-width: 60ch; color: #dbe3f3; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 44px); }
.progress { display: flex; gap: 12px; margin-bottom: 28px; }
.progress li { flex: 1; font-weight: 600; font-size: .95rem; color: var(--slate); padding-top: 10px; border-top: 4px solid var(--line); }
.progress li.is-active { color: var(--ink); border-top-color: var(--cobalt); }
.js .step[hidden] { display: none; }
.step h2 { font-size: 1.5rem; margin-bottom: 20px; }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; padding: 0; }
.field .hint { display: block; font-weight: 400; color: var(--slate); font-size: .9rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #b9c5db; border-radius: 10px; padding: 13px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(67,56,232,.35); border-color: var(--cobalt); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.checkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.checkgrid label { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 0; }
.checkgrid input { width: 18px; height: 18px; accent-color: var(--cobalt); }
.req { color: var(--cobalt); }
.cond[hidden] { display: none; }
.cond { border-left: 4px solid var(--gold); padding-left: 18px; margin-bottom: 20px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; margin: 14px 0 0; }
.notice { border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; font-weight: 600; background: #fff4d6; color: #5c4400; border: 1px solid var(--gold); max-width: none; }
.side-card { background: var(--ink); color: #c9d3e6; border-radius: 20px; padding: 32px; }
.side-card h2 { color: #fff; font-size: 1.5rem; }
.side-card a { color: #fff; }
.side-card p { max-width: none; }
.thanks { min-height: 55vh; display: grid; align-items: center; }
.entry { max-width: 760px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .svc-grid, .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .tile-grid .tile:last-child { grid-column: span 2; }
  .hero__grid { grid-template-columns: 1fr; }
  .stat--1 { left: -8px; }
  .stat--2 { right: -4px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-wrap { position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--white); border-bottom: 1px solid var(--line); padding: 20px 24px 28px; flex-direction: column; align-items: flex-start; display: none; }
  .nav-wrap.is-open { display: flex; }
  .nav { flex-direction: column; align-items: flex-start; gap: 16px; }
  .about, .pillar, .svc-row, .contact-grid, .cta-band__inner { grid-template-columns: 1fr; }
  .svc-row--flip .svc-row__art { order: 0; }
  .why, .partner-cols, .foot, .svc-grid { grid-template-columns: 1fr; }
  .cases--two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .svc-grid, .tile-grid, .field-row, .checkgrid { grid-template-columns: 1fr; }
  .tile-grid .tile:last-child { grid-column: auto; }
  .hero__stage { padding: 16px; }
  .mock__body { padding: 16px 16px 20px; }
  .mock__search { font-size: .88rem; padding: 10px 14px; }
  .m-sitelinks { grid-template-columns: 1fr; }
  .stat { position: static; margin-top: 10px; animation: none; }
  .stat--1, .stat--2, .stat--3 { animation: none; }
  .hero__stage .stats { display: flex; flex-wrap: wrap; gap: 8px; }
  .hero__stage .stats .stat { margin-top: 12px; }
  .tile { min-height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .typed, .m-ad, .stat { animation: none !important; }
  .typed { width: auto; }
  .tile, .btn { transition: none; }
}
