/* CreativeZain theme: WordPress-only additions on top of the approved creativezain.css.
   Nothing here changes the approved look; it covers what the prototype never had (admin bar, logo
   upload, simple templates for pages not built in Elementor, WordPress helper classes). */

/* The WordPress admin bar sits above the sticky nav for logged-in users. */
.admin-bar .wz-nav { top: 32px; }
.admin-bar .wz-menu { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .wz-nav { top: 46px; }
	.admin-bar .wz-menu { top: 46px; }
}
@media (max-width: 600px) {
	/* Below 600 px the admin bar scrolls away with the page. */
	.admin-bar .wz-nav { top: 0; }
}

/* Elementor's frontend CSS turns on smooth scrolling for the whole page; the approved site scrolls
   natively (its own scripts animate the few scrolls that should glide). */
html { scroll-behavior: auto; }

/* Film grain switched off in the Customizer. */
body.cz-no-grain::after { display: none; }

/* An uploaded logo in place of the text wordmark. */
.wz-wordmark__logo { display: block; width: auto; height: 32px; }
.fx-mark .wz-wordmark__logo { height: 44px; }

/* Customizer edit shortcuts sit above the sticky nav. */
.customize-partial-edit-shortcut button { z-index: calc(var(--z-nav) + 1); }

/* WordPress helper classes. */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { position: static; width: auto; height: auto; clip: auto; }

/* Elementor's own Button widget as the approved primary button (Apricot pill, Ink label, 52 px).
   Scoped to .elementor-button only: Elementor's kit-wide button style would restyle every <button>. */
.elementor-widget-button .elementor-button {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
	min-height: 52px; padding: 0 var(--space-5); border: var(--border-width) solid transparent; border-radius: var(--radius-pill);
	background-color: var(--bg-action); color: var(--text-on-action);
	font-family: var(--font-sans); font-size: 17px; font-weight: 700; line-height: 1;
	transition: background-color var(--dur-fast) var(--ease-ui), transform var(--dur-fast) var(--ease-ui), box-shadow var(--dur-fast) var(--ease-ui);
}
@media (hover: hover) {
	.elementor-widget-button .elementor-button:hover { background-color: var(--bg-action-hover); color: var(--text-on-action); transform: translateY(-2px); box-shadow: 0 12px 28px -16px rgba(0, 0, 0, .9); }
}
.elementor-widget-button .elementor-button:active { background-color: var(--bg-action-pressed); transform: translateY(0); box-shadow: none; }

/* About "At the desk" photo: in the approved page its height comes from the img height attribute (675),
   cropped by object-fit. Elementor's ".elementor img { height: auto }" cancels attribute heights, so the
   same height is set here. */
.elementor .ab-desk__img img { height: 675px; }

/* The desktop lens into a case study (ring.js): the ring's opening reveals the dark page while it grows.
   Same layer as the prototype's lens view (65), under the raised ring canvas (#ol.is-top, 70). */
.cz-lens { position: fixed; inset: 0; z-index: 65; background: var(--bg-page); pointer-events: none; }

/* Page changes: a short cross-fade between pages where the browser supports it (the approved "short
   fade"); nothing moves with reduced motion. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Brief form: the hidden field that catches bots stays off screen for people. */
.cz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Cal.com calendar inside the approved booking panel. */
.cz-booking-embed { display: grid; gap: var(--space-3); place-items: stretch; padding: 0; background: transparent; }
.cz-booking-embed iframe { width: 100%; min-height: 640px; border: 0; border-radius: var(--radius-media); background: var(--bg-page); }
.cz-booking-embed .wz-link { justify-self: center; }

/* Blog topics are links to topic pages; the current one looks like the approved pressed filter. */
a.bl-filter { display: inline-flex; align-items: center; text-decoration: none; }
.bl-filter[aria-current="page"] { background: var(--bg-surface-active); border-color: var(--text-secondary); color: var(--text-primary); }

/* Blog pagination. */
.cz-pagination { margin-top: var(--space-7); }
.cz-pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cz-pagination a, .cz-pagination span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border: var(--border-width) solid var(--border-default); border-radius: var(--radius-pill); color: var(--text-body); text-decoration: none; }
.cz-pagination .current { background: var(--bg-surface-active); color: var(--text-primary); }

/* Simple templates for pages and posts that are not built in Elementor yet. */
.cz-wrap { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: var(--space-9) var(--page-margin); }
.cz-flow > * + * { margin-top: var(--space-5); }
.cz-title { font-size: var(--fs-h1); color: var(--text-primary); letter-spacing: var(--tracking-heading); line-height: var(--lh-snug); }
.cz-lead { font-size: var(--fs-body-l); color: var(--text-secondary); max-width: var(--measure); }
.cz-content { max-width: var(--measure); }
.cz-content > * + * { margin-top: var(--space-4); }
.cz-content a, .cz-list a { color: var(--text-link); }
.cz-list { padding-left: 1.2em; }

/* WordPress content classes: aligned images, captions, galleries, sticky posts, page links. */
.alignleft { float: left; margin: 0 var(--space-5) var(--space-4) 0; }
.alignright { float: right; margin: 0 0 var(--space-4) var(--space-5); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption img { display: block; max-width: 100%; height: auto; }
.wp-caption-text, .gallery-caption, .wp-element-caption { margin-top: var(--space-2); font-size: var(--fs-small); color: var(--text-secondary); }
.sticky, .bypostauthor { position: relative; }
.cz-page-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }

/* Comments: only shown when comments are switched on for a post (the approved design has none). */
.cz-comments { max-width: var(--measure); margin: var(--space-9) auto 0; }
.cz-comments__title { font-size: var(--fs-h3); color: var(--text-primary); margin-bottom: var(--space-5); }
.cz-comments__list, .cz-comments__list .children { list-style: none; padding: 0; }
.cz-comments__list .children { margin-left: var(--space-5); }
.cz-comments__list .comment-body { padding: var(--space-4) 0; border-top: var(--border-width) solid var(--border-default); }
.cz-comments__list .avatar { border-radius: 50%; vertical-align: middle; margin-right: var(--space-2); }
.cz-comments__list .comment-meta, .cz-comments__closed { font-size: var(--fs-small); color: var(--text-secondary); }
.cz-comments__list a, .cz-comments__form a { color: var(--text-link); }
.cz-comments__form p { margin-top: var(--space-4); }
.cz-comments__form label { display: block; margin-bottom: var(--space-2); color: var(--text-secondary); }
.cz-comments__form input[type="text"], .cz-comments__form input[type="email"], .cz-comments__form input[type="url"], .cz-comments__form textarea { width: 100%; padding: var(--space-3) var(--space-4); background: var(--bg-surface); color: var(--text-primary); border: var(--border-width) solid var(--border-default); border-radius: var(--radius-media); font: inherit; }
.cz-comments__form .comment-form-cookies-consent label { display: inline; }
