/* =================================================================
   AllIDesire Corporate — design system & components
   ================================================================= */

:root {
	/* Palette taken from shopping-ui (app/globals.css):
	   --color-primary-500 #f59e0b (amber) + --color-accent-500 #f97316 (orange),
	   on Tailwind gray neutrals (--color-text-primary #111827,
	   --color-border #e5e7eb, surfaces #ffffff / #f9fafb / #f3f4f6). */
	--ink:        #111827;   /* gray-900 — text / dark surfaces (shopping-ui text-primary) */
	--ink-2:      #1f2937;   /* gray-800 */
	--slate:      #4b5563;   /* gray-600 — body text */
	--slate-2:    #6b7280;   /* gray-500 — muted (shopping-ui text-secondary) */
	--line:       #e5e7eb;   /* gray-200 — borders (shopping-ui --color-border) */
	--bg:         #ffffff;   /* shopping-ui --color-surface */
	--bg-soft:    #f9fafb;   /* gray-50 (shopping-ui --color-surface-raised) */
	--bg-softer:  #f3f4f6;   /* gray-100 (shopping-ui --color-surface-sunken) */
	--brand:      #f59e0b;   /* amber-500 — shopping-ui --color-primary-500 */
	--brand-2:    #f97316;   /* orange-500 — shopping-ui --color-accent-500 */
	--brand-ink:  #c2410c;   /* orange-700 — shopping-ui --color-accent-700 (links on light) */
	--white:      #ffffff;

	--radius:     16px;
	--radius-sm:  10px;
	--shadow-sm:  0 1px 2px rgba(17,24,39,.06), 0 1px 3px rgba(17,24,39,.05);
	--shadow:     0 10px 30px -12px rgba(17,24,39,.16);
	--shadow-lg:  0 30px 60px -20px rgba(17,24,39,.24);

	--maxw:       1140px;
	--gradient:   linear-gradient(120deg, #f59e0b, #f97316);

	--font-body:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--font-head:  'Sora', var(--font-body);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--slate);
	background: var(--bg);
	line-height: 1.65;
	font-size: 17px;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: var(--brand-ink); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 12px; top: 12px; border-radius: 8px; color:#fff; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--font-body); font-weight: 600; font-size: .98rem;
	padding: .8em 1.5em; border-radius: 999px; border: 1px solid transparent;
	cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
	white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px -8px rgba(234,88,12,.5); }
.btn--primary:hover { color: #fff; box-shadow: 0 12px 26px -8px rgba(234,88,12,.66); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { color: var(--ink); border-color: var(--brand); background: var(--bg-soft); }
.btn--ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost-light:hover { color: #fff; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
.btn--block { width: 100%; }

/* ---------- header / nav ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.82);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.site-header__brand { margin-right: auto; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.custom-logo-link img { max-height: 40px; width: auto; }

.site-nav .nav-menu { display: flex; align-items: center; gap: 4px; }
.site-nav .nav-menu a {
	display: inline-block; padding: 8px 14px; border-radius: 8px;
	color: var(--ink-2); font-weight: 500; font-size: .96rem;
}
.site-nav .nav-menu a:hover { color: var(--brand); background: var(--bg-soft); }
.site-nav .current-menu-item > a { color: var(--brand); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg {
	position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(1200px 600px at 85% -10%, rgba(245,158,11,.28), transparent 60%),
		radial-gradient(900px 500px at 0% 0%, rgba(249,115,22,.34), transparent 55%),
		linear-gradient(160deg, #111827 0%, #1f2937 55%, #111827 100%);
}
.hero__bg::after {
	content: ""; position: absolute; inset: 0;
	background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
	background-size: 28px 28px; mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.hero__inner { padding: 92px 24px 104px; max-width: 880px; }
.eyebrow {
	display: inline-block; font-weight: 600; font-size: .82rem; letter-spacing: .14em;
	text-transform: uppercase; color: #fcd34d; margin: 0 0 18px;
}
.eyebrow--dark { color: var(--brand-ink); }
.hero__title { font-size: clamp(2.4rem, 6vw, 4rem); color: #fff; margin-bottom: .35em; font-weight: 800; }
.grad-text {
	background: linear-gradient(90deg, #fcd34d, #fdba74);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.82); max-width: 640px; margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: rgba(255,255,255,.6); font-size: .9rem; }
.hero__trust ul { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__trust li {
	padding: 6px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
	color: rgba(255,255,255,.85); font-weight: 500;
}

/* ---------- stats band ---------- */
.stats { background: var(--ink-2); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 24px; }
.stat { text-align: center; padding: 8px; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem);
	background: linear-gradient(90deg, #fcd34d, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: rgba(255,255,255,.7); font-size: .92rem; margin-top: 4px; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-soft); }
.section--center { text-align: center; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section__lede { font-size: 1.12rem; color: var(--slate); }
.muted { color: var(--slate-2); }

/* ---------- capability cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
	background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
	background: linear-gradient(135deg, rgba(245,158,11,.14), rgba(249,115,22,.14));
	color: var(--brand-ink);
}
.card__title { font-size: 1.2rem; margin-bottom: .4em; }
.card__desc { color: var(--slate); margin: 0; font-size: .98rem; }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.ticks { display: grid; gap: 12px; margin-top: 22px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); font-weight: 500; }
.ticks li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--gradient);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* ---------- mockup illustration ---------- */
.mockup {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}
.mockup__bar { display: flex; gap: 7px; padding: 14px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.mockup__bar span { width: 11px; height: 11px; border-radius: 50%; background: #d6deec; }
.mockup__bar span:first-child { background: #ff6058; } .mockup__bar span:nth-child(2){ background:#ffbd2e;} .mockup__bar span:nth-child(3){ background:#28c840;}
.mockup__body { padding: 22px; }
.mockup__row--head { height: 16px; width: 45%; border-radius: 6px; background: var(--bg-softer); margin-bottom: 18px; }
.mockup__tiles { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 22px; }
.mockup__tiles div { height: 56px; border-radius: 10px; background: linear-gradient(135deg, var(--bg-soft), var(--bg-softer)); border: 1px solid var(--line); }
.mockup__chart { display: flex; align-items: flex-end; gap: 12px; height: 130px; padding-top: 8px; border-top: 1px dashed var(--line); }
.mockup__chart span { flex: 1; border-radius: 8px 8px 0 0; background: var(--gradient); opacity: .85; }

/* ---------- pills / industries ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pill {
	padding: 12px 22px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
	font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm); font-size: .98rem;
}

/* ---------- values grid ---------- */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
	box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px;
}
.value-card strong { font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; }
.value-card span { color: var(--slate-2); font-size: .92rem; }

/* ---------- CTA / contact ---------- */
.cta { background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.cta::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(700px 360px at 50% 0%, rgba(249,115,22,.36), transparent 60%);
}
.cta__inner { text-align: center; padding: 84px 24px; max-width: 720px; }
.cta__title { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.cta__lede { color: rgba(255,255,255,.78); font-size: 1.1rem; margin-bottom: 2em; }
.cta__form { display: grid; gap: 14px; text-align: left; }
.cta__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cta__form input, .cta__form textarea {
	width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18);
	background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: .98rem;
}
.cta__form input::placeholder, .cta__form textarea::placeholder { color: rgba(255,255,255,.55); }
.cta__form input:focus, .cta__form textarea:focus { outline: none; border-color: var(--brand); background: rgba(255,255,255,.1); }
/* honeypot — visually removed but still present for bots */
.cta__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* submission status messages */
.cta__status { margin: 12px 0 0; font-size: .95rem; text-align: center; padding: 10px 14px; border-radius: 10px; }
.cta__status.is-success { color: #d1fae5; background: rgba(16,185,129,.16); border: 1px solid rgba(16,185,129,.4); }
.cta__status.is-error { color: #fee2e2; background: rgba(239,68,68,.16); border: 1px solid rgba(239,68,68,.4); }
.cta__form button[disabled] { opacity: .7; cursor: progress; }
.cta__alt { margin-top: 18px; color: rgba(255,255,255,.7); }
.cta__alt a { color: #fcd34d; }
/* Contact Form 7 niceties if used */
.cta .wpcf7-form-control { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color:#fff; font: inherit; }
.cta .wpcf7-submit { background: var(--gradient); border: 0; border-radius: 999px; padding: 14px; font-weight: 600; cursor: pointer; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-top: 64px; }
.site-footer .brand__name { color: #fff !important; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.site-footer__tagline { color: #fff; font-family: var(--font-head); font-weight: 600; margin: 16px 0 8px; }
.site-footer__blurb { font-size: .94rem; max-width: 320px; }
.site-footer__heading { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer__col ul { display: grid; gap: 10px; }
.site-footer__col a, .site-footer__col li { color: rgba(255,255,255,.72); font-size: .95rem; }
.site-footer__col a:hover { color: #fff; }
.site-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.site-footer__social a {
	width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18);
	display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.site-footer__social a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.site-footer__bottom {
	display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
	padding: 22px 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal a { color: rgba(255,255,255,.72); } .site-footer__legal a:hover { color:#fff; }

/* ---------- generic content pages (blog, privacy) ---------- */
.page-head { padding: 64px 0 0; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; } .prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.post-list { display: grid; gap: 28px; }
.post-card { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.post-card__title { font-size: 1.5rem; margin-bottom: .2em; }
.post-card__meta { color: var(--slate-2); font-size: .9rem; margin-bottom: .8em; }
.link-more { font-weight: 600; }
.pagination { margin-top: 40px; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; margin: 0 4px; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	.split { grid-template-columns: 1fr; gap: 36px; }
	.split--reverse .split__media { order: 0; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
	.site-header__actions { display: none; }
	.nav-toggle { display: flex; }
	.site-nav {
		position: fixed; inset: 72px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none;
		transition: opacity .2s ease, transform .2s ease; padding: 12px;
	}
	.site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
	.site-nav .nav-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.site-nav .nav-menu a { padding: 12px 16px; }
	.cards { grid-template-columns: 1fr; }
	.cta__row { grid-template-columns: 1fr; }
	.section { padding: 64px 0; }
	.hero__inner { padding: 64px 24px 72px; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

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