/*
Theme Name: Zuha
Author: mohdom
Author URI: https://mohdom.com
Description: A custom block theme gifted by Wadaq.co
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.4.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zuha
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

/* Header */
.zuha-header {
	position: sticky; top: 0; z-index: 50;
	background: rgb(255 255 255 / 0.92);
	border-bottom: 1px solid var(--wp--preset--color--rule);
}
/* Mobile menu: full-screen overlay (no backdrop-filter, it traps fixed children) */
.zuha-header .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; padding: 8px; }
.zuha-header .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
.wp-block-navigation__responsive-container.is-menu-open { position: fixed; inset: 0; z-index: 100000; background: #fff; color: var(--wp--preset--color--text); padding: 1.25rem 1.5rem 2rem; overflow-y: auto; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 4rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; align-items: stretch; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--wp--preset--color--rule); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; padding: 1.15rem 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
@media (max-width: 781px) { .zuha-header .wp-block-buttons { display: none; } }
.zuha-header .wp-block-navigation a { color: var(--wp--preset--color--text); font-weight: 600; text-decoration: none; }
.zuha-header .wp-block-navigation a:hover { color: var(--wp--preset--color--primary); }
.zuha-logo { margin: 0; }
.zuha-logo img { height: auto; }

/* Buttons */
.wp-block-button__link { box-shadow: 0 8px 24px rgb(75 47 214 / 0.28); transition: background-color .2s, transform .2s; }
.wp-block-button__link:hover { background: #3a21b8; transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--primary); box-shadow: none; border: 1.5px solid var(--wp--preset--color--primary); }
.zuha-arrow .wp-block-button__link::after { content: "↗"; margin-inline-start: .6rem; display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: #fff; color: var(--wp--preset--color--primary); font-size: .9em; }

/* Pills / eyebrow */
.zuha-pill {
	display: inline-block; margin: 0; padding: .35rem .9rem;
	border: 1px solid var(--wp--preset--color--rule); border-radius: 999px;
	background: #fff; color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--label); font-weight: 600;
}
.zuha-eyebrow-plain { margin-bottom: .5rem; }
.zuha-footer-links a { color: var(--wp--preset--color--text); text-decoration: none; line-height: 2; }
.zuha-footer-links a:hover { color: var(--wp--preset--color--primary); }

/* Aurora glow */
.zuha-aurora { position: relative; overflow: hidden; isolation: isolate; }
.zuha-aurora::before, .zuha-aurora::after {
	content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .6; pointer-events: none;
	animation: zuha-drift 26s ease-in-out infinite alternate;
}
.zuha-aurora::before { width: 520px; height: 520px; left: -140px; top: -120px; background: #c9b8ff; }
.zuha-aurora::after { width: 560px; height: 560px; right: -160px; bottom: -160px; background: #ffc2dc; animation-delay: -9s; }
.zuha-aurora .zuha-glow3 { position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; filter: blur(90px); opacity: .55; background: #b8f0dc; right: 25%; top: -160px; }
@keyframes zuha-drift { to { transform: translate(60px, 40px); } }

/* Hero */
.zuha-hero { padding-top: clamp(3rem, 7vw, 6rem); }
.zuha-hero h1 { font-size: var(--wp--preset--font-size--display); line-height: 1.05; letter-spacing: -0.035em; margin: 1.25rem 0 1.25rem; }
.zuha-hero h1 em { font-style: normal; color: var(--wp--preset--color--primary); }
.zuha-hero-art { position: relative; margin: 0; align-self: end; }
.zuha-hero-art img { display: block; width: 100%; max-width: 440px; height: auto; margin-inline: auto; }
.zuha-hero-art .zuha-map { position: absolute; left: 0; bottom: 8%; width: 120px; margin: 0; }
.zuha-hero-art .zuha-map img { width: 120px; filter: drop-shadow(0 8px 14px rgb(15 18 34 / .18)); }

/* Stats row */
.zuha-stats { border-top: 1px solid var(--wp--preset--color--rule); }
.zuha-stat { margin: 0; }
.zuha-stat strong { display: block; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.03em; color: var(--wp--preset--color--primary); line-height: 1.1; }

/* Cards */
.zuha-card { border-radius: 24px; height: 100%; transition: transform .25s; }
.zuha-card:hover { transform: translateY(-4px); }
.zuha-card h3 { margin-top: 1rem; }
.zuha-num { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #fff; color: var(--wp--preset--color--primary); font-weight: 700; margin: 0; }
.zuha-rounded img { border-radius: 24px; }
/* Logo marquee */
.zuha-trust-label { margin: 0 0 2rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.zuha-marquee { overflow: hidden; margin: 0; max-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.zuha-marquee .zuha-marquee-track { display: flex; width: max-content; margin: 0; animation: zuha-scroll 55s linear infinite; }
.zuha-marquee:hover .zuha-marquee-track { animation-play-state: paused; }
.zuha-marquee .zuha-marquee-set { display: flex; flex: none; align-items: center; gap: 1.25rem; padding-inline-end: 1.25rem; margin: 0; }
.zuha-marquee .zuha-marquee-set > * { margin: 0; flex: none; }
.zuha-marquee .zuha-marquee-set img { height: 110px; width: auto; display: block; filter: grayscale(1); opacity: .6; transition: filter .25s, opacity .25s; }
.zuha-marquee .zuha-marquee-set img:hover { filter: none; opacity: 1; }
@keyframes zuha-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .zuha-marquee .zuha-marquee-track { animation: none; } .zuha-marquee { overflow-x: auto; } }
@media (max-width: 781px) { .zuha-marquee .zuha-marquee-set img { height: 84px; } .zuha-marquee .zuha-marquee-set { gap: 1rem; padding-inline-end: 1rem; } }
.zuha-work { margin-bottom: 1.25rem; }
.zuha-work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.zuha-check { list-style: none; padding: 0; margin: 1.25rem 0; }
.zuha-check li { padding-inline-start: 1.8rem; position: relative; margin-bottom: .6rem; }
.zuha-check li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--wp--preset--color--primary); font-weight: 700; }

/* Process */
.zuha-step { border-top: 2px solid var(--wp--preset--color--primary); padding-top: 1.25rem; }
.zuha-step p:first-child { color: var(--wp--preset--color--primary); font-weight: 700; margin: 0 0 .5rem; }

/* Testimonials */
.zuha-quote { border: 1px solid var(--wp--preset--color--rule); border-radius: 24px; background: #fff; height: 100%; }
.zuha-avatar { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--wp--preset--color--lavender); color: var(--wp--preset--color--primary); font-weight: 700; margin: 0; flex: none; }
.zuha-quote-mark { font-size: 3rem; line-height: .6; color: var(--wp--preset--color--accent); margin: 0; font-weight: 700; }

/* Blog cards */
.zuha-post { border: 1px solid var(--wp--preset--color--rule); border-radius: 24px; overflow: hidden; background: #fff; height: 100%; transition: transform .25s; }
.zuha-post:hover { transform: translateY(-4px); }
.zuha-post .wp-block-post-featured-image { margin: 0; }
.zuha-post .wp-block-post-featured-image img { aspect-ratio: 4/3; object-fit: cover; width: 100%; display: block; }
.zuha-post .wp-block-post-title a { color: var(--wp--preset--color--text); text-decoration: none; }
.zuha-post .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); }
.zuha-post .wp-block-post-terms a { display: inline-block; padding: .25rem .75rem; border-radius: 999px; background: var(--wp--preset--color--lavender); color: var(--wp--preset--color--primary); font-size: var(--wp--preset--font-size--label); font-weight: 600; text-decoration: none; }
.zuha-post-body { padding: 1.5rem; }

/* Contact */
.zuha-contact-info, .zuha-contact-form { border-radius: 24px; height: 100%; }
.zuha-contact-form { border: 1px solid var(--wp--preset--color--rule); }
.wp-block-group.zuha-contact-info, .wp-block-group.zuha-contact-info :is(h2, p, strong) { color: #fff !important; }
.zuha-contact-info a, .zuha-contact-info a:visited { color: #fff !important; text-decoration: none; font-weight: 600; }
.zuha-contact-info a:hover { text-decoration: underline; text-underline-offset: 3px; }
.zuha-contact-info .zuha-ci { line-height: 1.7; }
.zuha-contact-form .wp-block-jetpack-contact-form input:not([type=submit]), .zuha-contact-form .wp-block-jetpack-contact-form textarea { border: 1.5px solid #b9b4d6 !important; background: #fff; }
.zuha-contact-form .wp-block-jetpack-contact-form input:focus, .zuha-contact-form .wp-block-jetpack-contact-form textarea:focus { border-color: var(--wp--preset--color--primary) !important; outline: 2px solid rgb(75 47 214 / .2); }
.zuha-contact-info .zuha-sep { border-color: rgb(255 255 255 / .25); margin-block: 1.75rem; }
.zuha-contact-form input[type=text], .zuha-contact-form input[type=email], .zuha-contact-form input[type=tel], .zuha-contact-form textarea { border: 1px solid var(--wp--preset--color--rule); border-radius: 12px; padding: .85rem 1rem; width: 100%; font: inherit; }
.zuha-contact-form input:focus, .zuha-contact-form textarea:focus { outline: 2px solid var(--wp--preset--color--primary); border-color: transparent; }

.zuha-ci { position: relative; padding-inline-start: 4rem; min-height: 3rem; margin-top: 1.5rem; }
.zuha-ci::before { position: absolute; inset-inline-start: 0; top: 0; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: rgb(255 255 255 / .16); display: grid; place-items: center; font-size: 1.2rem; }
.zuha-ci-loc::before { content: "➤"; }
.zuha-ci-tel::before { content: "☎"; }
.zuha-ci-mail::before { content: "✉"; }

/* CTA band */
.zuha-cta-card { border-radius: 32px; }
.zuha-cta-card .wp-block-button__link { background: #fff; color: var(--wp--preset--color--primary); box-shadow: none; }

@media (max-width: 781px) {
	.zuha-hero-art { margin-top: 1rem; }
	.zuha-header .wp-block-buttons { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.zuha-aurora::before, .zuha-aurora::after { animation: none; }
	.zuha-card, .zuha-post, .wp-block-button__link { transition: none; }
}

/* Small text link under hero buttons */
.zuha-textlink { font-size: .9rem; font-weight: 600; }
.zuha-textlink a { color: var(--wp--preset--color--primary); text-decoration: underline; text-underline-offset: 4px; }
.zuha-textlink a:hover { text-decoration-thickness: 2px; }
