/*
Theme Name: WebNest SRJ
Theme URI: https://webnestsrj.com
Author: Scholas Rai
Author URI: https://webnestsrj.com
Description: Portfolio and services site for WebNest SRJ, the web design studio of Scholas Rai. Built from the Relume sitemap as a WordPress block theme.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webnest
*/

h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

/* Sticky header */
.webnest-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); background: color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent); }
.admin-bar .webnest-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .webnest-header { top: 46px; } }

/* Cards */
.webnest-card { border: 1px solid var(--wp--preset--color--line); height: 100%; }
.webnest-card.has-peach-background-color, .webnest-card.has-accent-background-color { border-color: transparent; }
.webnest-card .wp-block-image img { border-radius: 10px; }

/* Featured package */
.webnest-featured { outline: 2px solid var(--wp--preset--color--accent); outline-offset: -2px; }
.webnest-badge { display: inline-block; background: var(--wp--preset--color--accent); color: #fff; border-radius: 999px; padding: 0.2em 0.8em; }

/* Small label above headings (used sparingly) */
.webnest-kicker { color: var(--wp--preset--color--olive); font-weight: 600; }

/* Step numbers on the process section */
.webnest-step-number { font-family: var(--wp--preset--font-family--heading); color: var(--wp--preset--color--accent); line-height: 1; }

/* Work filter: category list as pills */
.webnest-filter ul, ul.webnest-filter { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.webnest-filter li a { display: inline-block; padding: 0.45em 1.1em; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; text-decoration: none; color: var(--wp--preset--color--contrast); background: var(--wp--preset--color--surface); font-size: var(--wp--preset--font-size--small); font-weight: 500; }
.webnest-filter li a:hover, .webnest-filter li.current-cat a { background: var(--wp--preset--color--contrast); color: #fff; border-color: var(--wp--preset--color--contrast); }

/* Project cards from the query loop */
.webnest-projects .wp-block-post-featured-image { overflow: hidden; }
.webnest-projects .wp-block-post-featured-image img { transition: transform .5s ease; }
.webnest-projects .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.wp-block-read-more { font-weight: 600; }

/* Accent CTA links stay readable */
.has-accent-background-color a:not(.wp-element-button) { color: #fff; }
.has-accent-background-color .wp-block-button__link { background: #fff; color: var(--wp--preset--color--accent-dark); border-color: #fff; }
.has-accent-background-color .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: #fff; }

/* Placeholder box for the contact form */
.webnest-form-slot { border: 2px dashed var(--wp--preset--color--line); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Heading-font text (quotes, numbers) without the quirky "wonky" italics */


/* Linked titles inside cards and footer links stay calm */
.webnest-card h3 a, .wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.webnest-card h3 a:hover, .wp-block-post-title a:hover { color: var(--wp--preset--color--accent-dark); text-decoration: underline; }
footer.wp-block-group a:not(.wp-element-button) { color: var(--wp--preset--color--contrast); text-decoration: none; }
footer.wp-block-group a:not(.wp-element-button):hover { color: var(--wp--preset--color--accent-dark); text-decoration: underline; }

.webnest-year { white-space: nowrap; min-width: 6.5rem; }

/* Logo */
.webnest-logo { margin: 0 !important; line-height: 0; }
.webnest-logo img { border-radius: 0 !important; height: auto; }
@media (max-width: 600px) { .webnest-header .webnest-logo img { width: 128px !important; } }

/* No gap between page sections and the footer */
.wp-site-blocks > main, .wp-site-blocks > footer { margin-block-start: 0; }

/* Relume-style buttons: pill with a soft bottom edge */
.wp-element-button, .wp-block-button__link { box-shadow: 0 2px 0 rgba(17,17,17,0.12); transition: background-color .2s ease, transform .2s ease; }
.wp-block-button__link:active { transform: translateY(1px); box-shadow: none; }

/* Centered hero */
.webnest-hero h1 { max-width: 24ch; margin-inline: auto; font-size: clamp(2.5rem, 4.6vw, 4rem); }
.webnest-hero-image { margin-top: var(--wp--preset--spacing--50) !important; }
.webnest-hero-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px !important; }

/* Header: logo | centred nav | contact */
.webnest-header .wp-block-navigation { flex: 1; justify-content: center; }
@media (max-width: 781px) { .webnest-header .wp-block-navigation { flex: 0; } }
