/*
Theme Name: Webwick
Theme URI: https://webwick.ca
Author: Webwick
Description: A bold, creative portfolio block theme for Webwick, an Edmonton web design studio. Glowing dark hero, scrolling services ticker, bento-style services, project portfolio, case-study spotlight, packages, FAQ and a free website check call to action. Includes a "Projects" section in the dashboard. Tip: any word you make italic in a heading turns into the flame serif accent.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webwick
Tags: portfolio, block-patterns, full-site-editing, one-column, wide-blocks, custom-colors, custom-menu, editor-style
*/

/* ================= Base ================= */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--wp--preset--color--flame); color: var(--wp--preset--color--contrast); }
:where(.wp-site-blocks) [id] { scroll-margin-top: 6rem; }

/* Italic words in headings become the flame serif accent */
:where(h1, h2, h3, .ww-display) em {
	font-family: var(--wp--preset--font-family--accent);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
	padding-right: 0.06em;
}
.ww-glow-text em,
.has-contrast-background-color :where(h1, h2) em,
.ww-dark :where(h1, h2) em {
	background: var(--wp--preset--gradient--flame);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.has-base-background-color :where(h2) em,
.has-surface-background-color :where(h2) em,
:where(.ww-light) :where(h2) em { color: var(--wp--preset--color--flame); }

/* Eyebrow pills */
.ww-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: fit-content;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	border: 1px solid currentColor;
	font-size: 0.75rem !important;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.2;
}
.ww-eyebrow::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--wp--preset--color--flame);
	box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.6);
}
.ww-eyebrow.is-live::before { animation: ww-pulse 2s infinite; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); }
@keyframes ww-pulse {
	0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); }
	70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); }
	100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

/* ================= Header ================= */

.ww-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background-color: color-mix(in srgb, var(--wp--preset--color--contrast) 94%, transparent) !important;
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.admin-bar .ww-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ww-header { top: 46px; } }

.ww-logo { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none !important; color: inherit !important; }
.ww-logo svg { width: 2.1rem; height: 2.1rem; flex: none; filter: drop-shadow(0 4px 14px rgba(255, 90, 31, 0.55)); }
.ww-logo svg .ww-flame { transform-origin: 50% 85%; animation: ww-flicker 3.2s ease-in-out infinite; }
.ww-wordmark {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.55rem;
	letter-spacing: -0.045em;
	line-height: 1;
}
.ww-wordmark span { color: var(--wp--preset--color--flame); }
@keyframes ww-flicker {
	0%, 100% { transform: scale(1, 1) rotate(0deg); }
	25% { transform: scale(0.97, 1.04) rotate(-1.5deg); }
	50% { transform: scale(1.02, 0.97) rotate(1deg); }
	75% { transform: scale(0.98, 1.03) rotate(-0.5deg); }
}

.ww-header .wp-block-navigation a:hover { color: var(--wp--preset--color--amber); }
@media (max-width: 680px) { .ww-header-cta { display: none !important; } }

/* No gaps between full-width sections */
main.wp-block-group > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0 !important; }

/* ================= Hero ================= */

.ww-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.ww-hero::before,
.ww-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	filter: blur(70px);
	pointer-events: none;
}
.ww-hero::before {
	width: 46vw; height: 46vw; max-width: 720px; max-height: 720px;
	right: -10vw; top: -16vw;
	background: radial-gradient(circle, rgba(255, 90, 31, 0.55), rgba(255, 90, 31, 0) 65%);
	animation: ww-drift 14s ease-in-out infinite alternate;
}
.ww-hero::after {
	width: 30vw; height: 30vw; max-width: 460px; max-height: 460px;
	left: -8vw; bottom: -12vw;
	background: radial-gradient(circle, rgba(255, 181, 71, 0.28), rgba(255, 181, 71, 0) 65%);
	animation: ww-drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes ww-drift {
	from { transform: translate(0, 0) scale(1); }
	to { transform: translate(-4vw, 3vw) scale(1.12); }
}
/* subtle grid texture */
.ww-hero .ww-grid-bg {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}
.ww-hero h1 { line-height: 0.98; letter-spacing: -0.05em; }
.ww-hero-visual img { animation: ww-float 7s ease-in-out infinite; }
@keyframes ww-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}
.ww-hero-in > * { animation: ww-rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
.ww-hero-in > *:nth-child(2) { animation-delay: 0.08s; }
.ww-hero-in > *:nth-child(3) { animation-delay: 0.16s; }
.ww-hero-in > *:nth-child(4) { animation-delay: 0.24s; }
.ww-hero-in > *:nth-child(5) { animation-delay: 0.32s; }
@keyframes ww-rise {
	from { opacity: 0; transform: translateY(26px); }
	to { opacity: 1; transform: none; }
}

.ww-ghost .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--base) !important;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}
.ww-ghost .wp-block-button__link:hover { box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--amber); color: var(--wp--preset--color--amber) !important; }
.ww-ghost-dark .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--contrast) !important;
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--contrast);
}
.ww-ghost-dark .wp-block-button__link:hover { background: var(--wp--preset--color--contrast) !important; color: var(--wp--preset--color--base) !important; }

.wp-element-button, .wp-block-button__link {
	transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .25s ease;
}
.wp-element-button:hover, .wp-block-button__link:hover { transform: translateY(-2px); }
.ww-glow-btn .wp-block-button__link { box-shadow: var(--wp--preset--shadow--glow); }

/* Hero proof chips */
.ww-chips { gap: 0.6rem 1.4rem !important; }
.ww-chips p { margin: 0; display: inline-flex; align-items: center; gap: 0.45rem; }
.ww-chips p::before { content: "✦"; color: var(--wp--preset--color--flame); font-size: 0.8em; }

/* ================= Marquee ================= */

.ww-marquee { overflow: hidden; white-space: nowrap; }
.ww-marquee__track {
	display: inline-flex !important;
	flex-wrap: nowrap !important;
	width: max-content;
	animation: ww-scroll 32s linear infinite;
}
.ww-marquee__track > * { margin: 0 !important; padding: 0 1.4rem; display: inline-flex; align-items: center; gap: 2.8rem; }
.ww-marquee__track > *::after { content: "✦"; font-size: 0.6em; opacity: 0.8; }
.ww-marquee:hover .ww-marquee__track { animation-play-state: paused; }
@keyframes ww-scroll { to { transform: translateX(-50%); } }

/* ================= Bento services ================= */

.ww-bento {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30) !important;
}
.ww-bento > * { margin: 0 !important; }
.ww-span-2 { grid-column: span 2; }
@media (max-width: 900px) {
	.ww-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.ww-bento { grid-template-columns: 1fr; }
	.ww-span-2 { grid-column: auto; }
}

.ww-card {
	position: relative;
	overflow: hidden;
	transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.ww-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--wp--preset--shadow--soft);
	border-color: color-mix(in srgb, var(--wp--preset--color--flame) 45%, var(--wp--preset--color--line)) !important;
}
.ww-card .ww-icon {
	display: grid; place-items: center;
	width: 3rem; height: 3rem;
	border-radius: 0.9rem;
	background: var(--wp--preset--color--ember-tint);
	font-size: 1.35rem;
	line-height: 1;
	margin: 0;
}
.ww-card--dark {
	background: var(--wp--preset--gradient--night-glow) !important;
}
.ww-card--dark .ww-icon { background: rgba(255, 90, 31, 0.16); }
.ww-card--dark::after {
	content: "";
	position: absolute;
	right: -60px; bottom: -60px;
	width: 220px; height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 90, 31, 0.45), transparent 65%);
	filter: blur(10px);
	transition: transform .6s ease;
}
.ww-card--dark:hover::after { transform: scale(1.35); }
.ww-card--flame { background: var(--wp--preset--gradient--flame) !important; }
.ww-card--flame .ww-icon { background: rgba(17, 19, 22, 0.12); }

/* ================= Projects ================= */

.ww-project-grid .wp-block-post { display: flex; flex-direction: column; }
.ww-project-card { position: relative; }
.ww-project-card .wp-block-post-featured-image {
	overflow: hidden;
	border-radius: 1.4rem;
	background: var(--wp--preset--color--surface);
	aspect-ratio: 4 / 3;
	margin-bottom: 1rem !important;
	transition: border-radius .4s ease, box-shadow .4s ease;
}
.ww-project-card .wp-block-post-featured-image img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.ww-project-card:hover .wp-block-post-featured-image { border-radius: 2.4rem 1rem; box-shadow: var(--wp--preset--shadow--glow); }
.ww-project-card:hover .wp-block-post-featured-image img { transform: scale(1.06) rotate(-0.6deg); }
.ww-project-card .wp-block-post-title a::after {
	content: " ↗";
	display: inline-block;
	color: var(--wp--preset--color--flame);
	transform: translate(-6px, 4px);
	opacity: 0;
	transition: all .3s ease;
}
.ww-project-card:hover .wp-block-post-title a::after { opacity: 1; transform: none; }

/* ================= Spotlight ================= */

.ww-spotlight-img img { box-shadow: 0 40px 90px -30px rgba(255, 90, 31, 0.55); transition: transform .6s ease; }
.ww-spotlight-img:hover img { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) scale(1.02); }

.ww-check-list { list-style: none; padding-left: 0; }
.ww-check-list li { position: relative; padding-left: 2rem; margin-bottom: 0.6rem; }
.ww-check-list li::before {
	content: "✓"; position: absolute; left: 0; top: 0.12em;
	width: 1.35rem; height: 1.35rem; border-radius: 50%;
	display: grid; place-items: center; font-size: 0.72rem; font-weight: 800;
	background: var(--wp--preset--gradient--flame); color: var(--wp--preset--color--contrast);
}

/* ================= Process timeline ================= */

.ww-steps { counter-reset: ww-step; position: relative; }
.ww-step { position: relative; padding-top: 2.4rem !important; counter-increment: ww-step; }
.ww-step::before {
	content: "0" counter(ww-step);
	position: absolute; top: 0; left: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em;
	color: var(--wp--preset--color--flame);
}
.ww-step::after {
	content: "";
	position: absolute; top: 0.55rem; left: 2.4rem; right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--wp--preset--color--flame), transparent);
	opacity: 0.6;
}

/* ================= Packages ================= */

.ww-price { position: relative; }
.ww-price .ww-price-amount { font-family: var(--wp--preset--font-family--heading); letter-spacing: -0.04em; line-height: 1; }
.ww-price--featured {
	box-shadow: var(--wp--preset--shadow--glow);
	outline: 2px solid var(--wp--preset--color--flame);
	outline-offset: -2px;
}
.ww-badge {
	position: absolute; top: 1.2rem; right: 1.2rem; margin: 0 !important;
	padding: 0.3rem 0.7rem; border-radius: 999px;
	background: var(--wp--preset--gradient--flame); color: var(--wp--preset--color--contrast);
	font-size: 0.72rem !important; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.ww-ticks { list-style: none; padding-left: 0; }
.ww-ticks li { padding-left: 1.6rem; position: relative; margin-bottom: 0.5rem; }
.ww-ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--wp--preset--color--flame); font-size: 0.8em; top: 0.15em; }

/* ================= FAQ ================= */

.wp-block-details summary {
	list-style: none;
	cursor: pointer;
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	flex: none;
	display: grid; place-items: center;
	width: 2rem; height: 2rem; border-radius: 50%;
	background: var(--wp--preset--color--surface);
	font-weight: 400; font-size: 1.3rem;
	transition: transform .3s ease, background .3s ease;
}
.wp-block-details[open] summary::after { transform: rotate(45deg); background: var(--wp--preset--color--flame); }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--muted); margin-top: 0.8rem; }

/* ================= CTA ================= */

.ww-cta {
	position: relative; overflow: hidden; isolation: isolate;
}
.ww-cta::before {
	content: ""; position: absolute; z-index: -1;
	left: 50%; top: 100%;
	width: 900px; height: 600px;
	transform: translate(-50%, -45%);
	background: radial-gradient(ellipse, rgba(255, 90, 31, 0.6), rgba(255, 181, 71, 0.15) 45%, transparent 70%);
	filter: blur(30px);
	animation: ww-breathe 6s ease-in-out infinite;
}
@keyframes ww-breathe {
	0%, 100% { opacity: 0.85; transform: translate(-50%, -45%) scale(1); }
	50% { opacity: 1; transform: translate(-50%, -48%) scale(1.08); }
}

/* ================= Footer ================= */

.ww-footer a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--base); text-decoration: none; }
.ww-footer a:where(:not(.wp-element-button)):hover { color: var(--wp--preset--color--amber); }
.ww-plain-list { list-style: none; padding-left: 0; line-height: 2.1; }
.ww-footer-rule { border: 0 !important; border-top: 1px solid rgba(255, 255, 255, 0.1) !important; background: none !important; opacity: 1; }
.ww-giant {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: clamp(4rem, 17vw, 15rem) !important;
	letter-spacing: -0.07em;
	line-height: 0.8 !important;
	background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0));
	-webkit-background-clip: text; background-clip: text; color: transparent;
	user-select: none;
	margin: 0 !important;
}

/* ================= Scroll reveal (JS adds .ww-motion) ================= */

.ww-motion .ww-reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.ww-motion .ww-reveal.is-visible { opacity: 1; transform: none; }

/* ================= Accessibility ================= */

:where(a, button, summary, .wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--flame);
	outline-offset: 3px;
	border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 600px) {
	.ww-bento .ww-card { min-height: 0 !important; }
	.ww-hero h1 { font-size: clamp(2.6rem, 12vw, 3.2rem) !important; }
}
