/*
Theme Name: ClayForge
Theme URI: https://example.com/clayforge
Author: ClayForge Studio
Author URI: https://example.com
Description: A modern, technology-focused WordPress theme built on the claymorphism design language. Soft 3D pastel surfaces, squishy micro-interactions, and conversion-focused layouts for digital service agencies. Ships with a homepage, reusable service-detail template, and contact template.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clayforge
Tags: claymorphism, agency, services, responsive, custom-colors, custom-menu
*/

/* ============================================================
   CLAYFORGE DESIGN SYSTEM
   Claymorphism tokens: hue-matched shadows, chunky radii,
   pastel surfaces, squishy interactions.
   ============================================================ */
:root {
  /* Page & text */
  --clay-bg: #F4F2FA;
  --clay-bg-deep: #ECE8F6;
  --clay-ink: #2E2A3F;
  --clay-muted: #6B6580;
  --clay-white: #FFFFFF;
  --clay-navy: #1B1440;
  --clay-navy-soft: #2A2160;

  /* Brand */
  --clay-brand: #6C3DF4;          /* violet — brand accents */
  --clay-brand-deep: #5429D6;
  --clay-cta: #FF7A6B;            /* coral — the one hero CTA color */
  --clay-cta-deep: #E85F50;
  --clay-cta-ink: #FFFFFF;

  /* Clay surfaces (pastels) */
  --s-lavender: #B8A6FF;
  --s-sky: #9EC9F0;
  --s-mint: #7DD4A8;
  --s-peach: #FFB59E;
  --s-pink: #F5B8D0;
  --s-lemon: #F5D77A;

  /* Hue-matched shadow colors (surface darkened ~15%) */
  --sh-lavender: 140, 111, 255;
  --sh-sky: 110, 165, 225;
  --sh-mint: 70, 175, 120;
  --sh-peach: 240, 140, 110;
  --sh-pink: 235, 130, 170;
  --sh-lemon: 225, 180, 70;
  --sh-brand: 108, 61, 244;
  --sh-cta: 232, 95, 80;
  --sh-neutral: 120, 110, 150;

  /* Radii */
  --r-card: 28px;
  --r-card-sm: 22px;
  --r-btn: 18px;
  --r-pill: 999px;
  --r-input: 16px;

  /* Type */
  --font-head: 'Outfit', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --section-pad: 96px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--clay-bg);
  color: var(--clay-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--clay-ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--clay-brand); text-decoration: none; }
a:hover { color: var(--clay-brand-deep); }
img { max-width: 100%; height: auto; border-radius: 18px; }
::selection { background: var(--s-lavender); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad) 0; }
.section-tight { padding: 64px 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay-brand);
  background: #fff;
  border-radius: var(--r-pill);
  padding: 8px 18px;
  margin-bottom: 18px;
  box-shadow:
    4px 4px 12px rgba(var(--sh-neutral), 0.25),
    inset 2px 2px 5px rgba(255, 255, 255, 0.9),
    inset -2px -2px 5px rgba(var(--sh-neutral), 0.18);
}
.lead { font-size: 1.15rem; color: var(--clay-muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Screen-reader helpers (a11y) */
.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; width: 1px; word-wrap: normal;
}

/* ============================================================
   THE CLAY RECIPE
   Every clay surface = soft colored drop + light lift +
   inset top-left sheen + inset bottom-right depth.
   Shadows are ALWAYS keyed to the surface hue — never gray.
   ============================================================ */
.clay {
  border-radius: var(--r-card);
  box-shadow:
    8px 8px 24px rgba(var(--sh-neutral), 0.35),
    -8px -8px 24px rgba(255, 255, 255, 0.65),
    inset 4px 4px 8px rgba(255, 255, 255, 0.5),
    inset -6px -6px 12px rgba(var(--sh-neutral), 0.28);
}
.clay-lavender { background: var(--s-lavender); box-shadow: 8px 8px 24px rgba(var(--sh-lavender), .38), -8px -8px 24px rgba(255,255,255,.65), inset 4px 4px 8px rgba(255,255,255,.55), inset -6px -6px 12px rgba(var(--sh-lavender), .30); }
.clay-sky     { background: var(--s-sky);     box-shadow: 8px 8px 24px rgba(var(--sh-sky), .38),     -8px -8px 24px rgba(255,255,255,.65), inset 4px 4px 8px rgba(255,255,255,.55), inset -6px -6px 12px rgba(var(--sh-sky), .30); }
.clay-mint    { background: var(--s-mint);    box-shadow: 8px 8px 24px rgba(var(--sh-mint), .38),    -8px -8px 24px rgba(255,255,255,.65), inset 4px 4px 8px rgba(255,255,255,.55), inset -6px -6px 12px rgba(var(--sh-mint), .30); }
.clay-peach   { background: var(--s-peach);   box-shadow: 8px 8px 24px rgba(var(--sh-peach), .38),   -8px -8px 24px rgba(255,255,255,.65), inset 4px 4px 8px rgba(255,255,255,.55), inset -6px -6px 12px rgba(var(--sh-peach), .30); }
.clay-pink    { background: var(--s-pink);    box-shadow: 8px 8px 24px rgba(var(--sh-pink), .38),    -8px -8px 24px rgba(255,255,255,.65), inset 4px 4px 8px rgba(255,255,255,.55), inset -6px -6px 12px rgba(var(--sh-pink), .30); }
.clay-lemon   { background: var(--s-lemon);   box-shadow: 8px 8px 24px rgba(var(--sh-lemon), .38),   -8px -8px 24px rgba(255,255,255,.65), inset 4px 4px 8px rgba(255,255,255,.55), inset -6px -6px 12px rgba(var(--sh-lemon), .30); }
.clay-white   { background: var(--clay-white); }
.clay-brand   { background: var(--clay-brand); box-shadow: 8px 8px 24px rgba(var(--sh-brand), .40), -8px -8px 24px rgba(255,255,255,.65), inset 4px 4px 8px rgba(255,255,255,.35), inset -6px -6px 12px rgba(40, 20, 120, .35); }
.clay-cta     { background: var(--clay-cta);   box-shadow: 8px 8px 24px rgba(var(--sh-cta), .42),   -8px -8px 24px rgba(255,255,255,.65), inset 4px 4px 8px rgba(255,255,255,.45), inset -6px -6px 12px rgba(150, 45, 35, .30); }

/* On dark/pastel surfaces, headings stay readable */
.clay-brand h1, .clay-brand h2, .clay-brand h3,
.clay-cta h1, .clay-cta h2, .clay-cta h3 { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  min-height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--r-btn);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--clay-cta);
  color: var(--clay-cta-ink);
  box-shadow: 6px 6px 18px rgba(var(--sh-cta), .45), inset 3px 3px 7px rgba(255,255,255,.45), inset -4px -4px 9px rgba(150,45,35,.30);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); }
.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 3px 3px 9px rgba(var(--sh-cta), .35), inset 2px 2px 5px rgba(255,255,255,.35), inset -2px -2px 6px rgba(150,45,35,.32);
}
.btn-secondary {
  background: var(--clay-white);
  color: var(--clay-ink);
  box-shadow: 6px 6px 18px rgba(var(--sh-neutral), .35), inset 3px 3px 7px rgba(255,255,255,.9), inset -4px -4px 9px rgba(var(--sh-neutral), .20);
}
.btn-secondary:hover { color: var(--clay-ink); transform: translateY(-2px); }
.btn-secondary:active {
  transform: scale(0.97);
  box-shadow: 3px 3px 9px rgba(var(--sh-neutral), .28), inset 2px 2px 5px rgba(255,255,255,.8), inset -2px -2px 6px rgba(var(--sh-neutral), .22);
}
.btn-light {
  background: rgba(255,255,255,.16);
  color: #fff;
  box-shadow: inset 3px 3px 7px rgba(255,255,255,.25), inset -4px -4px 9px rgba(0,0,0,.25);
}
.btn-light:hover { color: #fff; transform: translateY(-2px); }
.btn-light:active { transform: scale(0.97); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--clay-brand);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  margin: 16px auto 0;
  max-width: calc(var(--container) + 48px);
  padding: 0 24px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 14px 22px;
  box-shadow:
    6px 6px 20px rgba(var(--sh-neutral), 0.30),
    inset 2px 2px 6px rgba(255, 255, 255, 0.9),
    inset -3px -3px 8px rgba(var(--sh-neutral), 0.15);
}
.site-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--clay-ink); }
.site-brand:hover { color: var(--clay-ink); }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--clay-brand), var(--s-pink));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.2rem;
  box-shadow: 4px 4px 12px rgba(var(--sh-brand), .45), inset 2px 2px 5px rgba(255,255,255,.5), inset -3px -3px 6px rgba(40,20,120,.35);
}
.main-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--clay-ink);
  transition: background 160ms ease, transform 160ms ease;
}
.main-nav a:hover { background: var(--clay-bg-deep); color: var(--clay-ink); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a {
  background: var(--s-lavender);
  box-shadow: inset 2px 2px 5px rgba(var(--sh-lavender), .4), inset -2px -2px 5px rgba(255,255,255,.5);
}
/* Dropdown sub-menus (e.g. Services) */
.main-nav li { position: relative; }
.main-nav ul ul {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 270px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: #fff;
  border-radius: 18px;
  box-shadow: 8px 8px 28px rgba(var(--sh-neutral), .35), inset 2px 2px 6px rgba(255,255,255,.9);
  z-index: 60;
}
.main-nav ul ul a { display: block; white-space: nowrap; }
.main-nav li:hover > ul,
.main-nav li:focus-within > ul { display: block; }
.main-nav .menu-item-has-children > a::after { content: " \25BE"; font-size: .75em; }
.header-cta .btn { min-height: 48px; padding: 0 24px; font-size: 0.95rem; }
.nav-toggle {
  display: none;
  width: 52px; height: 52px;
  border: 0; border-radius: 16px;
  background: var(--clay-white);
  cursor: pointer;
  box-shadow: 4px 4px 12px rgba(var(--sh-neutral), .3), inset 2px 2px 5px rgba(255,255,255,.9);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--clay-ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .lead { margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-points { display: flex; gap: 12px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.hero-points li {
  font-size: 0.92rem; font-weight: 700;
  background: #fff; border-radius: var(--r-pill); padding: 8px 18px;
  box-shadow: 4px 4px 12px rgba(var(--sh-neutral), .22), inset 2px 2px 5px rgba(255,255,255,.9);
}
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.float-card {
  border-radius: var(--r-card);
  padding: 24px 26px;
  max-width: 330px;
}
.float-card h4 { margin: 0 0 6px; font-size: 1.05rem; }
.float-card p { margin: 0; font-size: 0.9rem; color: var(--clay-ink); }
.float-1 { align-self: flex-start; transform: rotate(-2.5deg); }
.float-2 { align-self: flex-end; transform: rotate(2deg); }
.float-3 { align-self: flex-start; margin-left: 56px; transform: rotate(-1.5deg); }
.float-icon {
  width: 52px; height: 52px; border-radius: 18px;
  background: rgba(255,255,255,.75);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  box-shadow: inset 2px 2px 5px rgba(255,255,255,.9), inset -2px -2px 5px rgba(0,0,0,.08);
}
.float-icon svg { width: 26px; height: 26px; }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.float-card { animation: floaty 6s ease-in-out infinite; }
.float-2 { animation-delay: -2s; }
.float-3 { animation-delay: -4s; }

/* Platform strip */
.platforms { padding: 8px 0 0; }
.platform-row {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; align-items: center;
}
.platform-row .plat {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  background: #fff; border-radius: var(--r-pill); padding: 12px 26px;
  box-shadow: 5px 5px 14px rgba(var(--sh-neutral), .25), inset 2px 2px 5px rgba(255,255,255,.9);
}
.platforms p { text-align: center; color: var(--clay-muted); font-size: 0.95rem; margin-bottom: 18px; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.services-grid.five { grid-template-columns: repeat(3, 1fr); }
.service-card {
  border-radius: var(--r-card);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform 180ms ease;
  color: var(--clay-ink);
}
.service-card:hover { transform: translateY(-6px); color: var(--clay-ink); }
.service-card .svc-icon {
  width: 68px; height: 68px; border-radius: 22px;
  background: rgba(255,255,255,.8);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: inset 3px 3px 7px rgba(255,255,255,.95), inset -3px -3px 7px rgba(0,0,0,.08);
}
.service-card .svc-icon svg { width: 32px; height: 32px; }
.service-card h3 { margin: 0 0 8px; font-size: 1.4rem; }
.service-card p { color: var(--clay-ink); font-size: 0.99rem; margin-bottom: 18px; }
.service-card .svc-link {
  margin-top: auto;
  font-family: var(--font-head); font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--clay-ink);
}
.service-card .svc-link .arrow {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.85);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 3px 3px 8px rgba(0,0,0,.12), inset 2px 2px 4px rgba(255,255,255,.9);
  transition: transform 160ms ease;
}
.service-card:hover .svc-link .arrow { transform: translateX(5px); }

/* ---------- Process steps ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px;
  counter-reset: step;
}
.step-card {
  border-radius: var(--r-card);
  background: #fff;
  padding: 32px 28px;
  box-shadow:
    7px 7px 20px rgba(var(--sh-neutral), 0.30),
    -6px -6px 18px rgba(255, 255, 255, 0.7),
    inset 3px 3px 7px rgba(255,255,255,.9),
    inset -4px -4px 9px rgba(var(--sh-neutral), 0.16);
  position: relative;
}
.step-num {
  width: 54px; height: 54px; border-radius: 18px;
  background: var(--s-lavender);
  font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--clay-ink);
  box-shadow: 4px 4px 10px rgba(var(--sh-lavender), .5), inset 2px 2px 4px rgba(255,255,255,.6), inset -2px -2px 5px rgba(var(--sh-lavender), .35);
}
.step-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step-card p { font-size: 0.95rem; color: var(--clay-muted); margin: 0; }

/* ---------- Feature / why-us cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.feature-card {
  background: #fff; border-radius: var(--r-card); padding: 36px 32px;
  box-shadow:
    7px 7px 20px rgba(var(--sh-neutral), 0.30),
    -6px -6px 18px rgba(255, 255, 255, 0.7),
    inset 3px 3px 7px rgba(255,255,255,.9),
    inset -4px -4px 9px rgba(var(--sh-neutral), 0.16);
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--clay-muted); margin: 0; font-size: 0.99rem; }
.feature-dot { width: 16px; height: 16px; border-radius: 50%; margin-bottom: 18px; box-shadow: inset 2px 2px 4px rgba(255,255,255,.6), inset -2px -2px 4px rgba(0,0,0,.15); }

/* ---------- CTA band ---------- */
.cta-band { border-radius: 36px; padding: 72px 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.cta-band p { max-width: 600px; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 56px; }
.page-hero .container { max-width: 860px; text-align: center; }
.page-hero .lead { margin: 0 auto; }
.crumb { font-size: 0.9rem; color: var(--clay-muted); margin-bottom: 16px; }
.crumb a { color: var(--clay-muted); font-weight: 700; }

/* ---------- Content / prose ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 2.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li {
  background: #fff; border-radius: var(--r-card-sm); padding: 18px 22px 18px 60px;
  position: relative; font-weight: 600;
  box-shadow: 5px 5px 14px rgba(var(--sh-neutral), .25), inset 2px 2px 5px rgba(255,255,255,.9);
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--s-mint); color: var(--clay-ink);
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 2px 2px 4px rgba(255,255,255,.6), inset -2px -2px 4px rgba(var(--sh-mint), .4);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 40px auto 0; display: grid; gap: 16px; }
.faq-item {
  background: #fff; border-radius: var(--r-card-sm);
  box-shadow: 5px 5px 14px rgba(var(--sh-neutral), .25), inset 2px 2px 5px rgba(255,255,255,.9);
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 22px 28px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--s-lavender);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800;
  box-shadow: inset 2px 2px 4px rgba(255,255,255,.6);
  transition: transform 200ms ease;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 28px 24px; color: var(--clay-muted); }

/* ---------- Forms ---------- */
.clay-form { display: grid; gap: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.95rem; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 0; border-radius: var(--r-input);
  background: var(--clay-bg);
  padding: 16px 20px;
  font-family: var(--font-body); font-size: 1rem; color: var(--clay-ink);
  box-shadow:
    inset 4px 4px 10px rgba(var(--sh-neutral), 0.28),
    inset -4px -4px 10px rgba(255, 255, 255, 0.85);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--clay-muted); }
.form-success {
  background: var(--s-mint); border-radius: var(--r-card); padding: 28px 32px; font-weight: 700;
  box-shadow: 6px 6px 18px rgba(var(--sh-mint), .4), inset 3px 3px 7px rgba(255,255,255,.5);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--clay-navy); color: #CFC9EE; margin-top: 96px; border-radius: 36px 36px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 72px 0 48px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #CFC9EE; }
.site-footer a:hover { color: #fff; }
.footer-brand p { font-size: 0.95rem; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.9rem;
}

/* ---------- Blog cards / misc ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.post-card {
  background: #fff; border-radius: var(--r-card); overflow: hidden;
  box-shadow: 7px 7px 20px rgba(var(--sh-neutral), .30), inset 3px 3px 7px rgba(255,255,255,.9);
  display: flex; flex-direction: column;
  transition: transform 180ms ease;
}
.post-card:hover { transform: translateY(-6px); }
.post-card .post-body { padding: 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .post-date { font-size: 0.85rem; color: var(--clay-muted); font-weight: 700; }
.post-card h3 { font-size: 1.25rem; margin: 0; }
.post-card h3 a { color: var(--clay-ink); }
.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 56px; }
.pagination .page-numbers {
  min-width: 52px; height: 52px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; font-weight: 700; color: var(--clay-ink);
  box-shadow: 4px 4px 12px rgba(var(--sh-neutral), .28), inset 2px 2px 5px rgba(255,255,255,.9);
  padding: 0 16px;
}
.pagination .page-numbers.current { background: var(--s-lavender); }
.post-meta { color: var(--clay-muted); font-size: 0.95rem; margin-bottom: 24px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .services-grid, .services-grid.five { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --section-pad: 64px; }
  .main-nav {
    display: none;
    position: absolute; top: calc(100% + 12px); left: 24px; right: 24px;
    background: #fff; border-radius: 24px; padding: 16px;
    box-shadow: 8px 8px 28px rgba(var(--sh-neutral), .4), inset 2px 2px 6px rgba(255,255,255,.9);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { display: block; text-align: center; }
  .main-nav ul ul {
    position: static;
    display: block;
    min-width: 0;
    margin-top: 8px;
    background: var(--clay-bg-deep);
    box-shadow: inset 2px 2px 6px rgba(var(--sh-neutral), .2);
  }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .services-grid, .services-grid.five, .steps, .feature-grid, .post-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .cta-band { padding: 48px 28px; }
  .float-3 { margin-left: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .site-header { top: 10px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- High-contrast / forced colors fallback ---------- */
@media (forced-colors: active) {
  .clay, .clay-lavender, .clay-sky, .clay-mint, .clay-peach, .clay-pink, .clay-lemon,
  .clay-white, .clay-brand, .clay-cta, .btn, .service-card, .step-card, .feature-card,
  .faq-item, .check-list li, .header-inner, .eyebrow, .hero-points li, .platform-row .plat {
    box-shadow: none;
    border: 2px solid CanvasText;
  }
}

/* ---------- WordPress core alignments ---------- */
.alignwide { max-width: 1400px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; }
