/*
Theme Name: Usama Shahzad
Theme URI: https://usamashahzad.site
Author: Usama Shahzad
Description: Personal portfolio theme for Usama Shahzad — senior web developer and ecommerce/marketing specialist. Light editorial design system with an indigo accent, an expertise page covering seven disciplines, a work portfolio, a blog and a working contact form. Includes one-click setup that creates every page, the menu, the portfolio and starter posts.
Version: 1.0.0
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: usamashahzad
Tags: portfolio, business, one-column, custom-menu, custom-colors, featured-images, blog, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-tint: #eef0ff;
  --ink: #0c1220;
  --ink-2: #4a5266;
  --ink-3: #7b8398;
  --line: #e5e8f0;
  --line-strong: #d2d7e4;

  --accent: #4f39f6;
  --accent-hover: #3b26e0;
  --accent-soft: #eeecff;
  --accent-line: #cfc8ff;

  --sky: #0ea5e9;
  --sky-soft: #e6f6fe;
  --mint: #10b981;
  --amber: #f59e0b;
  --rose: #e11d48;

  --dark: #0c1220;
  --dark-2: #161d2f;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(12, 18, 32, 0.05);
  --shadow: 0 4px 24px rgba(12, 18, 32, 0.07);
  --shadow-lg: 0 18px 50px rgba(12, 18, 32, 0.12);
  --header-h: 76px;

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --max: 1140px;
  --max-wide: 1280px;
  --max-prose: 720px;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.32rem); letter-spacing: -0.02em; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  padding: .85rem 1.4rem; background: var(--accent); color: #fff; font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ==========================================================================
   3. Layout
   ========================================================================== */

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.35rem; }
.container--wide { max-width: var(--max-wide); }
.container--prose { max-width: var(--max-prose); }

.section { padding: 4.5rem 0; position: relative; }
.section--tight { padding: 3rem 0 4.5rem; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: #c8cede; }
.section--dark h2, .section--dark h3 { color: #fff; }

@media (min-width: 768px) {
  .section { padding: 6rem 0; }
  .section--tight { padding: 3.5rem 0 6rem; }
}

.section-head { max-width: 700px; margin-bottom: 2.75rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: .9rem;
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head--center .eyebrow::before { display: none; }

.lead { font-size: clamp(1.03rem, 1.5vw, 1.14rem); color: var(--ink-2); }
.muted { color: var(--ink-3); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.75rem; }

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.55rem; border-radius: 999px;
  font-family: var(--font-display); font-size: .93rem; font-weight: 700; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(79,57,246,.25); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79,57,246,.32); color: #fff; }

.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); color: #fff; }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); color: var(--accent); }

.btn--sm { padding: .6rem 1.15rem; font-size: .87rem; }
.btn--block { width: 100%; }

.cta-group { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* ==========================================================================
   5. Header
   ========================================================================== */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: height .3s var(--ease), border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled { --header-h: 64px; background: rgba(255,255,255,.96); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; height: 100%; }

.logo { display: inline-flex; align-items: center; gap: .6rem; }
.logo__mark { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; }
.site-header.is-scrolled .logo__mark { width: 34px; height: 34px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.03em; color: var(--ink); }
.logo__text span { font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

/* uploaded custom logo — never let a big file break the header */
.custom-logo-link { display: inline-flex; align-items: center; flex-shrink: 0; max-width: min(280px, 50vw); }
.custom-logo-link img, .custom-logo { height: 40px; max-height: 40px; width: auto; max-width: 100%; object-fit: contain; transition: height .3s var(--ease); }
.site-header.is-scrolled .custom-logo-link img { height: 32px; max-height: 32px; }
@media (max-width: 480px) { .custom-logo-link { max-width: 180px; } .custom-logo-link img { height: 32px; max-height: 32px; } }

.nav-desktop { display: none; }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-desktop ul { display: flex; align-items: center; gap: .15rem; }
  .nav-desktop a { display: inline-flex; padding: .5rem .85rem; border-radius: 999px; font-size: .93rem; font-weight: 500; color: var(--ink-2); transition: color .2s, background .2s; }
  .nav-desktop a:hover,
  .nav-desktop .current-menu-item > a,
  .nav-desktop .current_page_item > a { color: var(--ink); background: var(--bg-soft); }
}

.header-actions { display: flex; align-items: center; gap: .65rem; }
@media (max-width: 1023px) { .header-actions .btn--primary { display: none; } }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; transition: border-color .2s, background .2s; }
.nav-toggle:hover { border-color: var(--accent); background: var(--accent-soft); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle__bars { display: flex; flex-direction: column; gap: 4px; }
.nav-toggle__bars span { display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .28s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile { position: fixed; inset: 0; z-index: 1200; }
.nav-mobile[hidden] { display: none; }
.nav-mobile__backdrop { position: absolute; inset: 0; background: rgba(12,18,32,.45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
.nav-mobile.is-open .nav-mobile__backdrop { opacity: 1; }
.nav-mobile__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw);
  padding: 1.4rem 1.35rem 2.5rem; background: #fff; border-left: 1px solid var(--line);
  overflow-y: auto; transform: translateX(100%); transition: transform .35s var(--ease);
}
.nav-mobile.is-open .nav-mobile__panel { transform: translateX(0); }
.nav-mobile__head { display: flex; justify-content: flex-end; margin-bottom: .75rem; }
.nav-mobile__close { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); }
.nav-mobile__close svg { width: 18px; height: 18px; }
.nav-mobile ul { display: flex; flex-direction: column; }
.nav-mobile li { border-bottom: 1px solid var(--line); }
.nav-mobile a { display: block; padding: .95rem .25rem; font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile__cta { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.6rem; }
.nav-mobile__meta { margin-top: 1.5rem; font-size: .88rem; }
.nav-mobile__meta a { display: block; padding: .18rem 0; font-family: var(--font-body); font-size: .88rem; font-weight: 500; color: var(--ink-2); }
body.nav-open { overflow: hidden; }

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero { position: relative; padding: 3rem 0 3.5rem; overflow: hidden; }
@media (min-width: 768px) { .hero { padding: 4.5rem 0 5rem; } }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 88% 8%, rgba(79,57,246,.10), transparent 60%),
    radial-gradient(ellipse 45% 50% at 4% 92%, rgba(14,165,233,.08), transparent 58%);
}
.hero__grid { position: relative; display: grid; gap: 2.75rem; align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 4rem; } }

.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem;
  padding: .42rem 1rem .42rem .45rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .85rem; color: var(--ink-2);
}
.hero__badge-role, .hero__badge-avail { white-space: nowrap; }
/* the badge holds two facts; on a narrow screen keep the stronger one only */
@media (max-width: 620px) {
  .hero__badge-sep, .hero__badge-avail { display: none; }
}
@media (max-width: 620px) {
  .hero__badge:not(:has(.hero__badge-role)) .hero__badge-avail { display: inline; }
}
.hero__badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(16,185,129,.16); margin-left: .35rem; }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 34rem; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 2.25rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero__stat b { display: block; font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.hero__stat span { font-size: .85rem; color: var(--ink-3); }

/* portrait */
.portrait { position: relative; }
.portrait__frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait__frame svg { width: 100%; height: 100%; }
.portrait__tag {
  position: absolute; left: -14px; bottom: 26px;
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1.1rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-family: var(--font-display); font-size: .85rem; font-weight: 700; color: var(--ink);
}
.portrait__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 600px) { .portrait__tag { left: 8px; } }

/* ==========================================================================
   7. Marquee / platform strip
   ========================================================================== */

.strip { padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.strip__label { text-align: center; font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.25rem; }
.strip__items { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.25rem; }
.strip__items span { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--ink-3); letter-spacing: -.02em; transition: color .25s; }
.strip__items span:hover { color: var(--ink); }

/* ==========================================================================
   8. Cards
   ========================================================================== */

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3,1fr); } .grid--4 { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 640px) and (max-width: 1023px) { .grid--4 { grid-template-columns: repeat(2,1fr); } }

.card {
  display: flex; flex-direction: column; padding: 1.75rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 1.1rem;
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 13px; color: var(--accent);
}
.card__icon svg { width: 21px; height: 21px; }
.card__icon--sky { background: var(--sky-soft); border-color: #bae6fd; color: var(--sky); }
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .94rem; }
.card__list { margin-top: 1rem; }
.card__list li { position: relative; padding-left: 1.3rem; margin-bottom: .42rem; font-size: .9rem; }
.card__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.card__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: 1.2rem; font-family: var(--font-display); font-size: .9rem; font-weight: 700; color: var(--accent); transition: gap .25s var(--ease); }
.card__link svg { width: 15px; height: 15px; }
.card:hover .card__link { gap: .7rem; }

.card--dark { background: var(--dark-2); border-color: rgba(255,255,255,.1); color: #b9c0d2; }
.card--dark h3 { color: #fff; }
.card--dark .card__icon { background: rgba(79,57,246,.2); border-color: rgba(79,57,246,.4); color: #a595ff; }

/* ==========================================================================
   9. Expertise rows
   ========================================================================== */

.xp { border-top: 1px solid var(--line); }
.xp__row { display: grid; gap: 1.5rem; padding: 2.25rem 0; border-bottom: 1px solid var(--line); align-items: start; }
@media (min-width: 860px) { .xp__row { grid-template-columns: 300px 1fr; gap: 3rem; } }
.xp__head { display: flex; align-items: center; gap: .9rem; }
.xp__num { font-family: var(--font-display); font-size: .8rem; font-weight: 800; color: var(--accent); letter-spacing: .06em; }
.xp__head h3 { margin: 0; }
.xp__body p { font-size: .96rem; margin-bottom: .9rem; }
.xp__tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.xp__tags span {
  padding: .3rem .75rem; border-radius: 999px; background: var(--bg-soft);
  border: 1px solid var(--line); font-size: .8rem; font-weight: 500; color: var(--ink-2);
}

/* ==========================================================================
   10. Work / portfolio
   ========================================================================== */

.work-grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .work-grid { grid-template-columns: repeat(2,1fr); } }

.work {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.work:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.work__thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.work__thumb img { width: 100%; height: 100%; object-fit: cover; }
.work__body { padding: 1.5rem 1.6rem 1.75rem; }
.work__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.work__meta span { padding: .25rem .7rem; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.work h3 { margin-bottom: .5rem; }
.work p { font-size: .93rem; }
.work__results { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.work__results b { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.work__results span { font-size: .78rem; color: var(--ink-3); }

/* ==========================================================================
   11. Process
   ========================================================================== */

.steps { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4,1fr); } }
.step { padding: 1.75rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.section--soft .step { background: #fff; }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: .9rem; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: var(--accent); }
.step h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.step p { font-size: .92rem; }

/* ==========================================================================
   12. Split + checklist
   ========================================================================== */

.split { display: grid; gap: 2.25rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split--reverse > *:first-child { order: 2; } }

.checklist li { position: relative; padding-left: 1.85rem; margin-bottom: .8rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .34em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.checklist li::after { content: ""; position: absolute; left: 5.5px; top: .62em; width: 7px; height: 4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.checklist li strong { color: var(--ink); font-weight: 700; }

/* ==========================================================================
   13. Page hero, breadcrumbs, prose
   ========================================================================== */

.page-hero { position: relative; padding: 2.75rem 0 .5rem; overflow: hidden; }
@media (min-width: 768px) { .page-hero { padding: 3.75rem 0 1rem; } }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 70% at 82% 0%, rgba(79,57,246,.09), transparent 62%); }
.page-hero > .container { position: relative; }
.page-hero h1 { margin-bottom: .9rem; }
.page-hero .lead { max-width: 40rem; }
.page-hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1000px) { .page-hero__grid { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; } }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; font-size: .82rem; color: var(--ink-3); }
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs a:hover { color: var(--accent); }
.policy-meta { font-size: .88rem; color: var(--ink-3); }

.prose { max-width: var(--max-prose); }
.prose > section { padding: 1.9rem 0; border-bottom: 1px solid var(--line); }
.prose > section:first-child { padding-top: 0; }
.prose > section:last-child { border-bottom: none; }
.prose h2 { font-size: clamp(1.3rem,2.3vw,1.75rem); margin-bottom: .7rem; }
.prose h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: .7rem 0 1.2rem; }
.prose li { position: relative; padding-left: 1.4rem; margin-bottom: .48rem; }
.prose ul > li::before { content: ""; position: absolute; left: .1rem; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n) "."; position: absolute; left: 0; top: 0; font-family: var(--font-display); font-weight: 800; font-size: .85rem; color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose blockquote { margin: 1.4rem 0; padding: 1.1rem 1.35rem; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); color: var(--ink); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { padding: .1rem .45rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; font-weight: 600; color: var(--accent); }
.prose img { border-radius: var(--radius); margin: 1.4rem 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.8rem 0; }
.callout { padding: 1.1rem 1.3rem; margin: 1.2rem 0; background: var(--accent-soft); border: 1px solid var(--accent-line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }

/* ==========================================================================
   14. Blog
   ========================================================================== */

.post-grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3,1fr); } }

.post-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__thumb svg { width: 100%; height: 100%; }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.6rem; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: .65rem; font-size: .78rem; color: var(--ink-3); }
.post-card__cat { padding: .18rem .6rem; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-weight: 700; color: var(--accent); }
.post-card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { font-size: .91rem; }

.post-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: 1rem; font-size: .85rem; color: var(--ink-3); }
.post-nav { display: grid; gap: 1rem; margin-top: 2.75rem; padding-top: 1.85rem; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .post-nav { grid-template-columns: repeat(2,1fr); } }
.post-nav a { display: block; padding: 1.1rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, box-shadow .25s; }
.post-nav a:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.post-nav span { display: block; font-size: .75rem; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .25rem; }
.post-nav strong { font-family: var(--font-display); font-size: .97rem; font-weight: 700; color: var(--ink); }
.post-nav .is-next { text-align: right; }

.pagination { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2.75rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 11px; font-size: .92rem; font-weight: 600; color: var(--ink-2); transition: border-color .2s, color .2s, background .2s; }
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ==========================================================================
   15. Contact & forms
   ========================================================================== */

.contact-grid { display: grid; gap: 2.25rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 3.25rem; } }
.contact-info__item { display: flex; gap: .9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-info__item:last-of-type { border-bottom: none; }
.contact-info__item > svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: .2rem; color: var(--accent); }
.contact-info__item h3 { font-size: .95rem; margin-bottom: .2rem; }
.contact-info__item p { font-size: .93rem; }
.contact-info__item a:hover { color: var(--accent); }

.form { padding: 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (min-width: 640px) { .form { padding: 2.25rem; } }
.form-row { display: grid; gap: 1.05rem; margin-bottom: 1.05rem; }
@media (min-width: 560px) { .form-row--2 { grid-template-columns: repeat(2,1fr); } }
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: .42rem; font-family: var(--font-display); font-size: .85rem; font-weight: 700; color: var(--ink); }
.form-group .required { color: var(--accent); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .78rem .95rem; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-size: .94rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-group textarea { min-height: 128px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--ink-3); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(79,57,246,.12); }
.form-group select { appearance: none; cursor: pointer; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8398' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 16px; }
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: var(--rose); }
.error-msg { margin-top: .32rem; font-size: .8rem; color: var(--rose); min-height: 1em; }

.consent-box { display: flex; align-items: flex-start; gap: .7rem; padding: .95rem 1.1rem; margin-bottom: 1.2rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .85rem; line-height: 1.55; cursor: pointer; }
.consent-box:hover { border-color: var(--line-strong); }
.consent-box input[type="checkbox"] { flex-shrink: 0; width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--accent); cursor: pointer; }
.consent-box a { color: var(--accent); text-decoration: underline; }

.form-status { margin-top: 1rem; padding: .85rem 1.1rem; border-radius: var(--radius-sm); font-size: .9rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.form-status.is-error { background: #fff1f2; border: 1px solid #fecdd3; color: #be123c; }

/* ==========================================================================
   16. CTA band
   ========================================================================== */

.cta-band { position: relative; overflow: hidden; padding: 2.75rem 1.75rem; border-radius: var(--radius-lg); background: var(--dark); color: #b9c0d2; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 100% at 100% 50%, rgba(79,57,246,.35), transparent 60%); pointer-events: none; }
.cta-band > * { position: relative; }
@media (min-width: 900px) { .cta-band { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; padding: 3.25rem 3rem; } }
.cta-band h2 { color: #fff; margin-bottom: .7rem; }
.cta-band p { max-width: 34rem; }
.cta-band .cta-group { margin-top: 1.6rem; flex-shrink: 0; }
@media (min-width: 900px) { .cta-band .cta-group { margin-top: 0; } }

/* platform cards (Upwork / Fiverr) */
.platforms { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .platforms { grid-template-columns: repeat(2,1fr); } }
.platform { display: flex; align-items: center; gap: 1.15rem; padding: 1.5rem 1.65rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease; }
.platform:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.platform__mark { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.platform h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.platform p { font-size: .88rem; }
.platform__go { margin-left: auto; color: var(--accent); flex-shrink: 0; }
.platform__go svg { width: 18px; height: 18px; }

/* ==========================================================================
   17. FAQ
   ========================================================================== */

.faq { max-width: 800px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem; width: 100%; padding: 1.25rem 0; text-align: left; font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--ink); }
.faq__q:hover { color: var(--accent); }
.faq__q svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .2rem; color: var(--accent); transition: transform .28s var(--ease); }
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq__a { display: none; padding-bottom: 1.25rem; font-size: .95rem; }
.faq__a.is-open { display: block; }

/* ==========================================================================
   18. Footer
   ========================================================================== */

.site-footer { background: var(--dark); color: #97a0b6; padding: 3.25rem 0 1.75rem; }
.site-footer .logo__text { color: #fff; }
.site-footer .logo__text span { color: #6d7690; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem; } }
.footer-brand p { margin-top: 1rem; font-size: .9rem; max-width: 25rem; }
.footer-socials { display: flex; gap: .55rem; margin-top: 1.25rem; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; color: #97a0b6; transition: border-color .2s, color .2s, background .2s; }
.footer-socials a:hover { border-color: var(--accent); color: #fff; background: rgba(79,57,246,.2); }
.footer-socials svg { width: 17px; height: 17px; }
.footer-col h4 { margin-bottom: 1rem; font-family: var(--font-display); font-size: .77rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-col li { margin-bottom: .58rem; }
.footer-col a, .footer-col li { font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-direction: column; gap: .55rem; margin-top: 2.75rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .83rem; color: #6d7690; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ==========================================================================
   19. Reveal
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .07s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .14s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .21s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .28s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .35s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .42s; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; } }

/* ==========================================================================
   20. WordPress core
   ========================================================================== */

.alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: var(--max-wide); }
.wp-caption-text, .wp-element-caption { font-size: .83rem; color: var(--ink-3); text-align: center; margin-top: .5rem; }
.sticky, .gallery-caption, .bypostauthor { display: block; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.error-404 { text-align: center; padding: 4.5rem 0 5rem; }
.error-404 .code { font-family: var(--font-display); font-size: clamp(4rem,13vw,8.5rem); font-weight: 800; letter-spacing: -.05em; color: var(--accent); line-height: 1; }
