/*!
Theme Name: Megatherium MeiQia
Theme URI: https://example.com/meiqia
Author: Megatherium
Author URI: https://example.com
Description: Apple-style premium business theme for MeiQia enterprise customer service solution. Modern, generous whitespace, refined shadows, 20px radii, full responsive with mobile-first approach.
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: megatherium-meiqia
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

_s is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Design Tokens (CSS Variables)
# Generic (Normalize, Box Sizing)
# Base (Typography, Elements, Links, Forms)
# Layouts
# Components (Header, Hero, Sections, Cards, CTA, Footer)
# Utilities (Accessibility, Alignments)
# Responsive
# Reduced Motion

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Design Tokens
--------------------------------------------------------------*/
:root {
  /* Colors (defaults — overridden by Customizer via head <style>) */
  --color-primary: #0066FF;
  --color-primary-hover: #0052cc;
  --color-primary-soft: rgba(0, 102, 255, 0.08);
  --color-secondary: #1F2937;
  --color-accent: #00C2A8;

  --color-bg: #FFFFFF;
  --color-surface: #F7F8FA;
  --color-surface-2: #EEF1F6;
  --color-border: #E5E7EB;
  --color-border-strong: #D1D5DB;

  --color-text: #111827;
  --color-text-strong: #0B1220;
  --color-muted: #6B7280;
  --color-on-primary: #FFFFFF;

  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;

  /* Typography */
  --font-sans: "Inter", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md: 1.125rem;    /* 18 */
  --fs-lg: 1.25rem;     /* 20 */
  --fs-xl: 1.5rem;      /* 24 */
  --fs-2xl: 1.875rem;   /* 30 */
  --fs-3xl: 2.25rem;    /* 36 */
  --fs-4xl: 3rem;       /* 48 */
  --fs-5xl: 3.75rem;    /* 60 */

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-base: 1.6;
  --lh-loose: 1.75;

  /* Spacing (8px rhythm) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 128px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-sm: 0 2px 6px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 20px 48px rgba(17, 24, 39, 0.10);
  --shadow-xl: 0 32px 80px rgba(17, 24, 39, 0.14);
  --shadow-ring: 0 0 0 3px rgba(0, 102, 255, 0.25);

  /* Layout */
  --container-max: 1200px;
  --container-pad: 24px;
  --section-pad-y: 96px;
  --section-pad-y-sm: 64px;
  --header-h: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 320ms;
}

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize */
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
main { display: block; }
h1 { font-size: 2em; margin: 0.67em 0; }
hr { box-sizing: content-box; height: 0; overflow: visible; }
pre { font-family: monospace, monospace; font-size: 1em; }
a { background-color: transparent; }
abbr[title] { border-bottom: none; text-decoration: underline; text-decoration: underline dotted; }
b, strong { font-weight: bolder; }
code, kbd, samp { font-family: monospace, monospace; font-size: 1em; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; }
sup { top: -0.5em; }
img { border-style: none; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; }
button, input { overflow: visible; }
button, select { text-transform: none; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; }
button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring { outline: 1px dotted ButtonText; }
fieldset { padding: 0.35em 0.75em 0.625em; }
legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; }
progress { vertical-align: baseline; }
textarea { overflow: auto; }
[type="checkbox"], [type="radio"] { box-sizing: border-box; padding: 0; }
[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; }
[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; }
[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
details { display: block; }
summary { display: list-item; }
template { display: none; }
[hidden] { display: none; }

/* Box sizing */
*, *::before, *::after { box-sizing: inherit; }
html { box-sizing: border-box; }

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
html { scroll-behavior: smooth; }

body, button, input, select, optgroup, textarea {
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--color-bg);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--color-text-strong);
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  margin: 0 0 var(--sp-2);
  clear: both;
}
h1 { font-size: clamp(2.25rem, 4vw + 1rem, var(--fs-5xl)); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, var(--fs-4xl)); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.375rem, 1.5vw + 1rem, var(--fs-2xl)); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p { margin: 0 0 var(--sp-2); }

dfn, cite, em, i { font-style: italic; }
blockquote { margin: 0 var(--sp-3); color: var(--color-muted); font-size: var(--fs-md); }
address { margin: 0 0 var(--sp-2); }
pre {
  background: var(--color-surface);
  font-family: var(--font-mono);
  line-height: 1.6;
  margin-bottom: var(--sp-2);
  max-width: 100%;
  overflow: auto;
  padding: var(--sp-2);
  border-radius: var(--radius-md);
}
code, kbd, tt, var { font-family: var(--font-mono); font-size: 0.92em; }
abbr, acronym { border-bottom: 1px dotted var(--color-border-strong); cursor: help; }
mark, ins { background: #FFF5C2; text-decoration: none; padding: 0 4px; border-radius: 4px; }
big { font-size: 125%; }

/* Elements */
hr { background-color: var(--color-border); border: 0; height: 1px; margin: var(--sp-4) 0; }
ul, ol { margin: 0 0 var(--sp-2) 1.5em; padding: 0; }
ul { list-style: disc; }
ol { list-style: decimal; }
li > ul, li > ol { margin-bottom: 0; margin-left: 1.5em; }
dt { font-weight: 700; }
dd { margin: 0 1.5em var(--sp-2); }

embed, iframe, object { max-width: 100%; }
img { height: auto; max-width: 100%; display: block; }
figure { margin: 0; }
table { margin: 0 0 var(--sp-2); width: 100%; border-collapse: collapse; }

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:visited { color: var(--color-primary); }
a:hover, a:focus, a:active { color: var(--color-primary-hover); }
a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }

/* Forms */
button, input[type="button"], input[type="reset"], input[type="submit"] {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  line-height: 1;
  padding: 0.75em 1.25em;
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover { background: var(--color-surface-2); }
button:active, button:focus, input[type="button"]:active, input[type="button"]:focus, input[type="reset"]:active, input[type="reset"]:focus, input[type="submit"]:active, input[type="submit"]:focus { outline: none; }
button:focus-visible, input[type="button"]:focus-visible, input[type="reset"]:focus-visible, input[type="submit"]:focus-visible { box-shadow: var(--shadow-ring); outline: none; }

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="color"], textarea, select {
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: inherit;
  font-size: var(--fs-base);
  line-height: 1.5;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: var(--shadow-ring);
  color: var(--color-text);
}
select { border: 1px solid var(--color-border-strong); padding-right: 36px; }
textarea { width: 100%; resize: vertical; }

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/
.wm-site { display: flex; flex-direction: column; min-height: 100vh; }
.wm-container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding-left: var(--container-pad); padding-right: var(--container-pad); }
.wm-main { flex: 1 0 auto; }

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Buttons (CTA) */
.wm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.wm-btn:focus-visible { box-shadow: var(--shadow-ring); outline: none; }
.wm-btn:active { transform: translateY(1px); }

.wm-btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.28);
}
.wm-btn--primary:hover { background: var(--color-primary-hover); color: var(--color-on-primary); box-shadow: 0 12px 32px rgba(0, 102, 255, 0.36); transform: translateY(-1px); }

.wm-btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.wm-btn--ghost:hover { background: var(--color-surface); color: var(--color-text); }

.wm-btn--link { padding: 14px 8px; background: transparent; color: var(--color-primary); }
.wm-btn--link:hover { color: var(--color-primary-hover); }

.wm-btn__icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Header */
.wm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.wm-header.is-stuck { border-bottom-color: var(--color-border); background: rgba(255, 255, 255, 0.92); }

.wm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--sp-3);
}

.wm-header__brand { display: inline-flex; align-items: center; gap: 12px; color: var(--color-text-strong); font-weight: 700; }
.wm-header__brand-img { height: 32px; width: auto; display: block; }
.wm-header__brand-text { font-size: var(--fs-md); letter-spacing: -0.01em; }
.custom-logo-link { display: inline-flex; align-items: center; }

.wm-nav { display: none; }
.wm-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.wm-nav__item { position: relative; }
.wm-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.wm-nav__link:hover { background: var(--color-surface); color: var(--color-text-strong); }
.wm-nav__link.is-active { color: var(--color-primary); }

.wm-header__actions { display: inline-flex; align-items: center; gap: 12px; }

.wm-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
}
.wm-menu-toggle:hover { background: var(--color-surface); }
.wm-menu-toggle:focus-visible { box-shadow: var(--shadow-ring); outline: none; }
.wm-menu-toggle__icon { width: 22px; height: 22px; }
.wm-menu-toggle__icon--close { display: none; }
.wm-menu-toggle[aria-expanded="true"] .wm-menu-toggle__icon--open { display: none; }
.wm-menu-toggle[aria-expanded="true"] .wm-menu-toggle__icon--close { display: inline; }

/* Mobile menu */
.wm-mobile-menu {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: var(--sp-2) 0;
}
.wm-mobile-menu.is-open { display: block; }
.wm-mobile-menu__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wm-mobile-menu__link {
  display: block;
  padding: 14px 16px;
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
}
.wm-mobile-menu__link:hover { background: var(--color-surface); }
.wm-mobile-menu__cta { padding: var(--sp-2) 16px 8px; display: flex; flex-direction: column; gap: 8px; }

@media (min-width: 1024px) {
  .wm-nav { display: block; }
  .wm-menu-toggle { display: none; }
  .wm-mobile-menu { display: none !important; }
}

/* Hero */
.wm-hero {
  position: relative;
  padding: clamp(64px, 12vw, 144px) 0 clamp(48px, 8vw, 96px);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 102, 255, 0.12), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(0, 194, 168, 0.08), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--color-surface) 100%);
  overflow: hidden;
}
.wm-hero__inner { display: grid; gap: var(--sp-5); align-items: center; }
.wm-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: var(--sp-2);
}
.wm-hero__title {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 var(--sp-3);
  color: var(--color-text-strong);
}
.wm-hero__title em { font-style: normal; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wm-hero__lede {
  font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.25rem);
  color: var(--color-muted);
  max-width: 640px;
  line-height: var(--lh-loose);
  margin: 0 0 var(--sp-4);
}
.wm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wm-hero__meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); color: var(--color-muted); font-size: var(--fs-sm); }
.wm-hero__meta-item { display: inline-flex; align-items: center; gap: 6px; }
.wm-hero__meta-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-success); display: inline-block; }

.wm-hero__visual {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--color-surface) 100%);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wm-hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 102, 255, 0.06), transparent 50%),
    radial-gradient(600px 300px at 50% 0%, rgba(0, 102, 255, 0.10), transparent 70%);
  pointer-events: none;
}
.wm-hero__visual-placeholder {
  position: relative;
  z-index: 1;
  color: var(--color-muted);
  font-size: var(--fs-sm);
  text-align: center;
  padding: var(--sp-3);
}
.wm-hero__visual-placeholder svg { width: 56px; height: 56px; color: var(--color-primary); margin-bottom: 12px; }

@media (min-width: 1024px) {
  .wm-hero__inner { grid-template-columns: 1.05fr 1fr; gap: var(--sp-6); }
}

/* Section */
.wm-section {
  padding: var(--section-pad-y) 0;
}
.wm-section--tight { padding: var(--section-pad-y-sm) 0; }
.wm-section--surface { background: var(--color-surface); }
.wm-section--dark {
  background: var(--color-secondary);
  color: #E5E7EB;
}
.wm-section--dark h1, .wm-section--dark h2, .wm-section--dark h3, .wm-section--dark h4 { color: #FFFFFF; }
.wm-section--dark .wm-section__lede { color: #9CA3AF; }

.wm-section__head {
  max-width: 760px;
  margin: 0 auto var(--sp-5);
  text-align: center;
}
.wm-section__eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.wm-section__title { margin: 0 0 var(--sp-2); }
.wm-section__lede { font-size: var(--fs-md); color: var(--color-muted); line-height: var(--lh-loose); margin: 0; }

/* Grid helpers */
.wm-grid { display: grid; gap: var(--sp-3); }
.wm-grid--2 { grid-template-columns: 1fr; }
.wm-grid--3 { grid-template-columns: 1fr; }
.wm-grid--4 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .wm-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .wm-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .wm-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .wm-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .wm-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Feature / Value card */
.wm-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.wm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(0, 102, 255, 0.2); }
.wm-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: var(--sp-2);
}
.wm-card__icon svg { width: 24px; height: 24px; }
.wm-card__title { font-size: var(--fs-lg); margin: 0 0 8px; color: var(--color-text-strong); }
.wm-card__desc { color: var(--color-muted); font-size: var(--fs-sm); line-height: var(--lh-loose); margin: 0; }

/* Solution tabs */
.wm-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: var(--sp-4); }
.wm-tab {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.wm-tab:hover { background: var(--color-surface-2); }
.wm-tab.is-active { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary); }
.wm-tab:focus-visible { box-shadow: var(--shadow-ring); outline: none; }

/* Product showcase */
.wm-showcase {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
}
.wm-showcase__visual {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--color-surface) 100%);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.wm-showcase__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 50% 0%, rgba(0, 102, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.wm-showcase__placeholder {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-muted);
  font-size: var(--fs-sm);
}
.wm-showcase__placeholder svg { width: 56px; height: 56px; color: var(--color-primary); margin-bottom: 12px; }

.wm-showcase__title { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); letter-spacing: -0.03em; }
.wm-showcase__lede { color: var(--color-muted); font-size: var(--fs-md); line-height: var(--lh-loose); margin: 0 0 var(--sp-3); }
.wm-feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wm-feature-list__item { display: flex; gap: 12px; align-items: flex-start; color: var(--color-text); }
.wm-feature-list__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wm-feature-list__icon svg { width: 14px; height: 14px; }

@media (min-width: 1024px) {
  .wm-showcase { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .wm-showcase--reverse .wm-showcase__visual { order: -1; }
}

/* Process / steps */
.wm-steps { display: grid; gap: var(--sp-3); counter-reset: wmstep; }
.wm-step {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-xs);
}
.wm-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 700;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-2);
}
.wm-step__title { font-size: var(--fs-lg); margin: 0 0 8px; }
.wm-step__desc { color: var(--color-muted); font-size: var(--fs-sm); margin: 0; line-height: var(--lh-loose); }

@media (min-width: 768px) {
  .wm-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .wm-steps { grid-template-columns: repeat(4, 1fr); }
}

/* Case studies */
.wm-case {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.wm-case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.wm-case__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-strong);
  font-weight: 700;
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}
.wm-case__industry { display: inline-block; font-size: var(--fs-xs); color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.wm-case__quote { font-size: var(--fs-md); color: var(--color-text); line-height: var(--lh-loose); margin: 0 0 var(--sp-2); flex: 1; }
.wm-case__meta { display: flex; align-items: center; gap: 12px; padding-top: var(--sp-2); border-top: 1px solid var(--color-border); }
.wm-case__metric { color: var(--color-primary); font-weight: 700; font-size: var(--fs-md); }
.wm-case__metric-label { color: var(--color-muted); font-size: var(--fs-sm); }

/* Stats */
.wm-stats { display: grid; gap: var(--sp-3); }
.wm-stat { text-align: center; padding: var(--sp-3); }
.wm-stat__num { font-size: clamp(2rem, 3vw + 1rem, 3rem); font-weight: 700; color: var(--color-primary); letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.wm-stat__label { color: var(--color-muted); font-size: var(--fs-sm); }
@media (min-width: 768px) { .wm-stats { grid-template-columns: repeat(4, 1fr); } }

/* Logos band */
.wm-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3) var(--sp-4); align-items: center; justify-items: center; }
.wm-logos__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 16px;
  color: var(--color-muted);
  font-weight: 600;
  font-size: var(--fs-md);
  letter-spacing: 0.02em;
  opacity: 0.7;
  transition: opacity var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.wm-logos__item:hover { opacity: 1; color: var(--color-text-strong); }
@media (min-width: 768px) { .wm-logos { grid-template-columns: repeat(6, 1fr); } }

/* CTA section */
.wm-cta {
  position: relative;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, var(--color-primary) 0%, #0a3a99 100%);
  color: #FFFFFF;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 64px);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.wm-cta__title { color: #FFFFFF; margin: 0 0 var(--sp-2); font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem); letter-spacing: -0.03em; }
.wm-cta__lede { color: rgba(255, 255, 255, 0.85); font-size: var(--fs-md); margin: 0 auto var(--sp-4); max-width: 620px; line-height: var(--lh-loose); }
.wm-cta__actions { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.wm-cta .wm-btn--primary { background: #FFFFFF; color: var(--color-primary); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.wm-cta .wm-btn--primary:hover { background: #F7F8FA; color: var(--color-primary-hover); }
.wm-cta .wm-btn--ghost { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.4); }
.wm-cta .wm-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }

/* Footer */
.wm-footer {
  background: var(--color-secondary);
  color: #9CA3AF;
  padding: var(--sp-6) 0 var(--sp-3);
  margin-top: var(--sp-6);
}
.wm-footer__grid { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.wm-footer__brand { display: inline-flex; align-items: center; gap: 12px; color: #FFFFFF; font-weight: 700; margin-bottom: var(--sp-2); }
.wm-footer__brand img { height: 28px; }
.wm-footer__about { color: #9CA3AF; font-size: var(--fs-sm); line-height: var(--lh-loose); margin: 0; max-width: 320px; }
.wm-footer__col-title { color: #FFFFFF; font-size: var(--fs-sm); font-weight: 600; margin: 0 0 var(--sp-2); letter-spacing: 0.04em; text-transform: uppercase; }
.wm-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wm-footer__link { color: #9CA3AF; font-size: var(--fs-sm); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
.wm-footer__link:hover { color: #FFFFFF; }
.wm-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: var(--fs-sm); }

@media (min-width: 768px) {
  .wm-footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-5); }
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--color-primary);
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
#primary[tabindex="-1"]:focus { outline: 0; }

/* Alignments */
.alignleft { float: left; margin-right: var(--sp-2); margin-bottom: var(--sp-2); }
.alignright { float: right; margin-left: var(--sp-2); margin-bottom: var(--sp-2); }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; margin-bottom: var(--sp-2); }

/* Posts & pages (light) */
.post, .page { margin: 0 0 var(--sp-4); }
.entry-header { margin-bottom: var(--sp-3); }
.entry-title { margin: 0 0 8px; font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.03em; }
.entry-meta { color: var(--color-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.entry-content { margin: var(--sp-3) 0; }
.page-content, .entry-content, .entry-summary { margin: var(--sp-3) 0 0; }
.page-links { clear: both; margin: 0 0 var(--sp-3); }
.updated:not(.published) { display: none; }
.sticky { display: block; }

/* Comments */
.comments-area { margin-top: var(--sp-5); }
.comment-content a { word-wrap: break-word; }
.bypostauthor { display: block; }

/* Widgets */
.widget { margin: 0 0 var(--sp-3); }
.widget select { max-width: 100%; }
.widget-title { font-size: var(--fs-md); margin: 0 0 var(--sp-2); }

/* Media */
.page-content .wp-smiley, .entry-content .wp-smiley, .comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* Captions */
.wp-caption { margin-bottom: var(--sp-2); max-width: 100%; }
.wp-caption img[class*="wp-image-"] { display: block; margin-left: auto; margin-right: auto; }
.wp-caption .wp-caption-text { margin: 8px 0; }
.wp-caption-text { text-align: center; color: var(--color-muted); font-size: var(--fs-sm); }

/* Galleries */
.gallery { margin-bottom: var(--sp-3); display: grid; grid-gap: var(--sp-2); }
.gallery-item { display: inline-block; text-align: center; width: 100%; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-columns-7 { grid-template-columns: repeat(7, 1fr); }
.gallery-columns-8 { grid-template-columns: repeat(8, 1fr); }
.gallery-columns-9 { grid-template-columns: repeat(9, 1fr); }
.gallery-caption { display: block; }

/*--------------------------------------------------------------
# Responsive spacing (mobile-first tightening)
--------------------------------------------------------------*/
@media (max-width: 767px) {
  :root {
    --section-pad-y: 64px;
    --section-pad-y-sm: 48px;
    --container-pad: 20px;
  }
  h1 { letter-spacing: -0.025em; }
  .wm-card { padding: var(--sp-3); }
  .wm-hero__visual { aspect-ratio: 4 / 3; }
}

@media (min-width: 1440px) {
  :root {
    --container-max: 1280px;
    --container-pad: 32px;
  }
}

/*--------------------------------------------------------------
# Reduced motion
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

/*--------------------------------------------------------------
# Print
--------------------------------------------------------------*/
@media print {
  .wm-header, .wm-footer, .wm-cta, .wm-menu-toggle { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
