/*
Theme Name: Independent Snagging
Theme URI: https://www.independentsnagging.ae/
Author: Independent Snagging
Author URI: https://www.independentsnagging.ae/
Description: Block theme for Independent Snagging — property snagging and handover inspections across Dubai and the UAE. Every page section is built from core blocks and shipped as an editable pattern, so the whole site can be changed from the block editor and the Site Editor.
Version: 2.3.1
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: independent-snagging
Tags: full-site-editing, block-patterns, blog, one-column, custom-colors, custom-menu, editor-style, featured-images, threaded-comments, translation-ready
*/

/* -------------------------------------------------------------------------
   Base
   ---------------------------------------------------------------------- */

:root {
	--isnag-line: #d8dde3;
	--isnag-gold: #b08d57;
	--isnag-navy: #1d365d;
	--isnag-navy-deep: #172e50;
	--isnag-muted: #5d6672;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

img {
	max-width: 100%;
	height: auto;
}

.isnag-lead {
	font-size: 18px;
	line-height: 1.6;
}

.isnag-eyebrow {
	font-weight: 600;
	margin-bottom: 16px;
}

.isnag-section-heading {
	text-align: center;
}

.isnag-section-heading > h2,
.isnag-section-heading > p {
	margin-inline: auto;
}

/* Hosting control-panel sidebars can otherwise squeeze the layout. */
@media (min-width: 1001px) {
	html.kodee-sidebar-active {
		--kodee-sidebar-width: 0 !important;
	}

	html.kodee-sidebar-active body.kodee-sidebar-active {
		width: auto !important;
		margin-right: 0 !important;
	}
}

/* -------------------------------------------------------------------------
   Announcement marquee
   ---------------------------------------------------------------------- */

.isnag-announcement {
	display: flex;
	align-items: center;
	height: 40px;
	overflow: hidden;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.isnag-announcement .isnag-marquee-track {
	width: max-content;
	animation: isnag-marquee 35s linear infinite;
}

.isnag-announcement p {
	margin: 0;
}

.isnag-announcement p::after {
	content: "  -";
	margin-left: 26px;
}

@keyframes isnag-marquee {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.isnag-announcement .isnag-marquee-track {
		animation: none;
	}
}

/* -------------------------------------------------------------------------
   Header
   ---------------------------------------------------------------------- */

.isnag-header {
	position: relative;
	z-index: 50;
}

.wp-block-group.isnag-header__inner {
	min-height: 98px;
}

.isnag-brand .wp-block-image,
.isnag-footer__logo {
	margin: 0;
}

.isnag-brand__mark img {
	width: 132px;
	height: 73px;
	object-fit: contain;
}

.isnag-brand__words img {
	width: 118px;
	height: 70px;
	object-fit: contain;
}

.isnag-nav .wp-block-navigation-item__content {
	display: block;
	padding: 9px 14px;
	border: 1px solid transparent;
	border-radius: 999px;
}

.isnag-nav .wp-block-navigation-item__content:hover,
.isnag-nav .current-menu-item > .wp-block-navigation-item__content,
.isnag-nav .wp-block-navigation-item__content[aria-current] {
	border-color: #161616;
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------- */

.isnag-hero > .wp-block-cover__inner-container,
.isnag-about-hero > .wp-block-cover__inner-container {
	width: 100%;
	padding-left: var(--wp--style--root--padding-left);
	padding-right: var(--wp--style--root--padding-right);
}

.isnag-hero__grid {
	justify-content: space-between;
}

.isnag-hero__copy h1 {
	max-width: 721px;
}

.isnag-hero__lead {
	max-width: 790px;
	line-height: 1.6;
}

.isnag-hero__buttons .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding-inline: 20px;
	white-space: nowrap;
}

@media (min-width: 681px) {
	.isnag-hero__buttons .wp-block-button:first-child .wp-block-button__link {
		width: 180px;
	}

	.isnag-hero__buttons .isnag-whatsapp-button .wp-block-button__link {
		width: 196px;
	}
}

.isnag-whatsapp-button .wp-block-button__link::before {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-right: 10px;
	background: url("assets/images/icon-whatsapp.svg") center / contain no-repeat;
	vertical-align: -4px;
}

.is-style-isnag-stat {
	padding: 23px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	text-align: center;
}

.isnag-stat__value {
	margin: 0;
	font-size: 38px;
	font-weight: 400;
}

.isnag-stat__label.has-small-font-size {
	margin: 0;
	font-size: 15px !important;
}

/* Review strip -------------------------------------------------------- */

.isnag-review-strip {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 36px;
}

.isnag-review-strip__avatars {
	display: flex;
}

.isnag-review-strip__avatars img {
	width: 42px;
	height: 42px;
	margin-left: -10px;
	border: 2px solid #fff;
	border-radius: 50%;
	object-fit: cover;
}

.isnag-review-strip__avatars img:first-child {
	margin-left: 0;
}

/* Buttons carry a trailing arrow, as on the original site. The hero pair, the
   enquiry submit and the blog "Explore" pill are the documented exceptions. */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
}

.wp-block-button__link::after {
	content: "→";
	font-size: 20px;
	line-height: 1;
}

.isnag-hero__buttons .wp-block-button__link::after,
.isnag-whatsapp-button .wp-block-button__link::after,
.isnag-header__cta .wp-block-button__link::after,
.isnag-footer .wp-block-button__link::after,
.isnag-about-hero .wp-block-button__link::after,
.isnag-submit::after,
.wp-block-read-more::after {
	content: none;
}

/* -------------------------------------------------------------------------
   Reusable block styles
   ---------------------------------------------------------------------- */

.is-style-isnag-gold-rule {
	border-left: 4px solid var(--isnag-gold);
	padding-left: 24px;
}

.is-style-isnag-rounded img {
	width: 100%;
	object-fit: cover;
}

.isnag-tall-image,
.isnag-tall-image img {
	height: 100%;
}

.isnag-tall-image img {
	min-height: 430px;
	object-fit: cover;
}

.is-style-isnag-card {
	border: 1px solid var(--isnag-line);
	background: #fbfcfd;
}

.isnag-card__icon {
	margin: 0;
}

.isnag-card__icon img {
	width: 42px;
	height: 42px;
	object-fit: contain;
}

.is-style-isnag-numbered-card .isnag-number {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	border-radius: 50%;
	background: var(--isnag-gold);
	color: #111;
	font-size: 18px;
	line-height: 1;
}

.is-style-isnag-inspection-card .isnag-inspect-icon {
	margin: 0 auto 10px;
}

.is-style-isnag-inspection-card .isnag-inspect-icon img {
	width: 46px;
	height: 46px;
	object-fit: contain;
}

.is-style-isnag-ticks {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.is-style-isnag-ticks li {
	position: relative;
	margin: 3px 0;
	padding-left: 25px;
	line-height: 1.45;
}

.is-style-isnag-ticks li::before {
	content: "✅";
	position: absolute;
	left: 0;
	top: 0;
	font-size: 17px;
	line-height: 1.35;
}

.is-style-isnag-tool-card {
	overflow: hidden;
	min-height: 168px;
	border: 1px solid var(--isnag-line);
	border-radius: 18px;
}

.is-style-isnag-tool-card .wp-block-media-text__media {
	height: 100%;
	background: #fff;
}

.is-style-isnag-tool-card .wp-block-media-text__media img {
	width: 100%;
	height: 100%;
	min-height: 168px;
	padding: 8px;
	object-fit: contain;
}

.is-style-isnag-tool-card .wp-block-media-text__content {
	padding: 22px;
}

.is-style-isnag-tool-card h3 {
	margin-bottom: 8px;
}

.is-style-isnag-tool-card .wp-block-media-text__content > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

.is-style-isnag-tool-card .wp-block-media-text__content > * + * {
	margin-block-start: 8px;
}

.is-style-isnag-quote-card {
	min-height: 288px;
	line-height: 1.6;
}

.isnag-quote__name,
.isnag-quote__role {
	margin: 0;
}

.isnag-quote__stars {
	margin-top: auto;
	padding-top: 12px;
}

.isnag-quote__stars img {
	width: 160px;
	height: 26px;
}

.is-style-isnag-team-card {
	overflow: hidden;
	align-items: flex-end;
}

.is-style-isnag-team-card::after {
	content: "";
	position: absolute;
	inset: 30% 0 0;
	z-index: 1;
	background: linear-gradient(transparent, rgba(22, 46, 80, 0.95));
	pointer-events: none;
}

.is-style-isnag-team-card .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-bottom: 20px;
}

.is-style-isnag-team-card h3 {
	margin: 0 0 2px;
}

.isnag-team__role {
	margin: 0;
	color: #e7dfc9;
	font-size: 16px;
}

/* -------------------------------------------------------------------------
   Home sections
   ---------------------------------------------------------------------- */

.isnag-cert-panel {
	text-align: center;
}

.isnag-cert-logos .wp-block-image {
	margin: 0;
}

.isnag-cert-logos img {
	max-height: 115px;
	width: 100%;
	object-fit: contain;
}

@media (max-width: 1000px) {
	.wp-block-group.isnag-cert-logos {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

.isnag-tailored .wp-block-columns {
	align-items: center;
}

.isnag-tailored .wp-block-image img {
	height: 534px;
	object-fit: cover;
}

/* -------------------------------------------------------------------------
   About sections
   ---------------------------------------------------------------------- */

.isnag-story > * {
	max-width: 872px;
}

.isnag-value-item {
	padding: 22px 0;
	border-bottom: 1px solid var(--isnag-line);
}

.isnag-value-item p {
	margin: 0;
	font-size: 18px;
	line-height: 1.6;
}

.isnag-values .isnag-tall-image img,
.isnag-about-why .isnag-tall-image img {
	min-height: 700px;
	border-radius: 30px;
}

.isnag-why-section .isnag-tall-image img {
	min-height: 620px;
}

.isnag-why-section li,
.isnag-about-why li {
	margin-bottom: 4px;
}

/* -------------------------------------------------------------------------
   FAQ
   ---------------------------------------------------------------------- */

.isnag-faq-list {
	border-top: 1px solid var(--isnag-line);
}

.is-style-isnag-faq {
	border-bottom: 1px solid var(--isnag-line);
	padding: 0;
}

.is-style-isnag-faq summary {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 27px 0;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	font-size: 21px;
	line-height: 1.35;
}

.is-style-isnag-faq summary::-webkit-details-marker {
	display: none;
}

.is-style-isnag-faq summary::after {
	content: "⌄";
	font-size: 26px;
	font-weight: 400;
	line-height: 1;
}

.is-style-isnag-faq[open] summary::after {
	transform: rotate(180deg);
}

.isnag-faq__answer {
	max-width: 930px;
	margin: 0;
	padding: 0 40px 27px 0;
	color: #3b4550;
}

/* -------------------------------------------------------------------------
   Contact
   ---------------------------------------------------------------------- */

.isnag-contact-details {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid var(--isnag-line);
}

.isnag-contact-row {
	display: flex;
	align-items: center;
	gap: 13px;
	margin: 10px 0;
	font-size: 16px;
	line-height: 1.45;
}

.isnag-contact-icon {
	flex: 0 0 18px;
	width: 18px;
	height: 24px;
	object-fit: contain;
}

.isnag-contact-row--whatsapp {
	color: #0dc143;
	text-decoration: underline;
}

.isnag-contact-row--email {
	text-decoration: underline;
}

.isnag-contact-map {
	width: 100%;
	height: 302px;
	margin-top: 25px;
	overflow: hidden;
	background: #eef1f4;
}

.isnag-contact-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.isnag-contact-instagram {
	display: grid;
	place-items: center;
	width: 23px;
	height: 23px;
	margin: 25px 0 0;
	border-radius: 50%;
	background: #050505;
}

.isnag-contact-instagram img {
	width: 16px;
	height: 16px;
}

/* Enquiry form -------------------------------------------------------- */

.isnag-contact-form__title {
	margin: 0 0 24px;
	font-weight: 400;
	font-size: clamp(38px, 4vw, 50px);
	line-height: 1.3;
}

.isnag-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.isnag-field {
	margin: 0;
}

.isnag-field.is-full {
	grid-column: 1 / -1;
}

.isnag-field-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.isnag-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	line-height: 1.4;
}

.isnag-field input,
.isnag-field select,
.isnag-field textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-size: 16px;
	line-height: 24px;
}

.isnag-field input,
.isnag-field select {
	height: 42px;
}

.isnag-field textarea {
	min-height: 74px;
	padding: 0 12px;
	resize: vertical;
}

.isnag-form-message {
	margin-bottom: 20px;
	padding: 12px 15px;
	border-radius: 10px;
	background: #edf8ef;
}

.isnag-form-message.is-error {
	background: #fdeceb;
}

.isnag-submit {
	width: 100%;
	padding: 12px 22px;
	border: 0;
	cursor: pointer;
}

/* Country picker ------------------------------------------------------ */

.isnag-phone-field {
	position: relative;
}

.isnag-phone-field.is-picker-open {
	z-index: 60;
}

.isnag-phone-control {
	display: flex;
	align-items: stretch;
	height: 42px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	background: #fff;
}

.isnag-phone-control input {
	flex: 1;
	min-width: 0;
	height: 40px;
	padding: 8px 12px 8px 2px;
	border: 0;
	border-radius: 0;
	outline: 0;
}

.isnag-phone-picker {
	position: relative;
	flex: 0 0 52px;
	display: flex;
	align-items: stretch;
}

.isnag-phone-trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111;
	cursor: pointer;
}

.isnag-phone-globe {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
}

.isnag-phone-chevron {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	transition: transform 0.15s ease;
}

.isnag-phone-trigger[aria-expanded="true"] .isnag-phone-chevron {
	transform: rotate(180deg);
}

.isnag-phone-value,
.isnag-phone-flag-selected {
	display: none;
}

.isnag-phone-flag-selected {
	width: 20px;
	height: 14px;
	object-fit: cover;
}

.isnag-phone-picker.has-country-code {
	flex-basis: 84px;
}

.isnag-phone-picker.has-country-code .isnag-phone-globe {
	display: none;
}

.isnag-phone-picker.has-country-code .isnag-phone-value,
.isnag-phone-picker.has-country-code .isnag-phone-flag-selected {
	display: block;
}

.isnag-phone-picker.has-country-code .isnag-phone-trigger {
	gap: 6px;
}

.isnag-phone-value {
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
}

.isnag-phone-native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.isnag-phone-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 70;
	width: min(322px, 100%);
	height: 270px;
	padding-top: 12px;
	border: 1px solid rgba(0, 0, 0, 0.4);
	background: #fff;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 4px rgba(0, 0, 0, 0.1);
}

.isnag-phone-menu[hidden] {
	display: none;
}

.isnag-phone-search-wrap {
	display: flex;
	align-items: center;
	height: 42px;
	margin: 8px 24px;
	padding-right: 12px;
	border: 1px solid #000;
	border-radius: 8px;
	background: #fff;
}

.isnag-phone-search-icon {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	margin: 0 12px;
}

.isnag-field .isnag-phone-search {
	flex: 1;
	min-width: 0;
	height: 40px;
	padding: 8px 2px 8px 0;
	border: 0;
	outline: 0;
}

.isnag-phone-options {
	height: 198px;
	padding-bottom: 8px;
	overflow-y: auto;
}

.isnag-phone-option {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	height: 44px;
	padding: 10px 24px;
	border: 0;
	background: #fff;
	color: #000;
	font: inherit;
	font-size: 16px;
	line-height: 24px;
	text-align: left;
	cursor: pointer;
}

.isnag-phone-option:hover,
.isnag-phone-option:focus,
.isnag-phone-option.is-active {
	background: rgba(0, 0, 0, 0.06);
	outline: 0;
}

.isnag-phone-option[hidden] {
	display: none;
}

.isnag-phone-flag {
	flex: 0 0 20px;
	width: 20px;
	height: 14px;
	object-fit: cover;
}

.isnag-phone-label {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.isnag-phone-code {
	margin-left: auto;
	white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Blog
   ---------------------------------------------------------------------- */

.wp-block-group.isnag-post-row {
	display: grid !important;
	grid-template-columns: 1fr 1.35fr;
	gap: 0;
	overflow: hidden;
}

.isnag-post-row__media {
	height: 100%;
	margin: 0;
}

.isnag-post-row__media img {
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
}

.isnag-post-row__copy .wp-block-post-excerpt {
	margin-bottom: auto;
}

.isnag-post-meta,
.isnag-post-views {
	margin: 0;
}

.is-style-isnag-blog-cards .wp-block-post {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--isnag-line);
	border-radius: 24px;
	background: #fff;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.is-style-isnag-blog-cards .wp-block-post:hover {
	transform: translateY(-3px);
	border-color: #bdc5ce;
	box-shadow: 0 10px 26px rgba(23, 46, 80, 0.12);
}

.is-style-isnag-blog-cards .wp-block-post-featured-image {
	margin: 0;
}

.is-style-isnag-blog-cards .wp-block-post-featured-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.is-style-isnag-blog-cards .wp-block-post-title {
	margin: 24px 24px 16px;
}

.is-style-isnag-blog-cards .wp-block-read-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 110px;
	height: 44px;
	margin: auto auto 24px;
	border-radius: 999px;
	background: var(--isnag-gold);
	color: #fff;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.2s ease;
}

.is-style-isnag-blog-cards .wp-block-read-more:hover {
	background: #9f7c49;
}

/* Single post --------------------------------------------------------- */

.isnag-post-body,
.isnag-post-body p,
.isnag-post-body li {
	font-size: 18px;
	line-height: 27px;
}

.isnag-post-body p {
	margin: 0 0 27px;
}

.isnag-post-body h2,
.isnag-post-body h3 {
	font-family: var(--wp--preset--font-family--display);
	font-size: 22px;
	line-height: 27px;
	margin: 0 0 12px;
}

.isnag-post-body img {
	border-radius: 20px;
}

/* Legal pages --------------------------------------------------------- */

.isnag-legal-hero h1 {
	margin: 0 0 6px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 40px;
	line-height: 48px;
}

.isnag-legal-body,
.isnag-legal-body p,
.isnag-legal-body li {
	font-size: 18px;
	line-height: 28.8px;
}

.isnag-legal-body h2,
.isnag-legal-body h3 {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 18px;
	line-height: 23.4px;
}

.isnag-legal-body h2:not(:first-child) {
	margin-top: 57.6px;
}

.isnag-legal-body h3 {
	margin-top: 28.8px;
}

.isnag-legal-body p:empty {
	display: none;
}

/* -------------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------- */

.isnag-footer__logo img {
	width: 210px;
	height: 120px;
	object-fit: contain;
}

.isnag-footer__nav .wp-block-navigation-item__content {
	padding: 10px 0;
}

.isnag-footer__actions {
	min-width: 180px;
}

.isnag-footer__actions .wp-block-button__link {
	min-width: 159px;
	justify-content: center;
	text-align: center;
}

.isnag-footer__social .wp-block-image {
	margin: 0;
}

.isnag-footer__social img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.isnag-footer__legal .wp-block-navigation-item__content {
	font-size: 12px;
	line-height: 15px;
}

/* Floating WhatsApp button --------------------------------------------- */

.isnag-whatsapp-float {
	position: fixed;
	right: 30px;
	bottom: 28px;
	z-index: 60;
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
	transform-origin: center;
	animation: isnag-whatsapp-pulse 2.3s linear 0.001s infinite;
}

.isnag-whatsapp-float svg {
	display: block;
	width: 44.75px;
	height: 44.75px;
	fill: currentColor;
}

@keyframes isnag-whatsapp-pulse {
	0% { transform: scale(1); }
	15.39% { transform: scale(0.96); }
	25.65% { transform: scale(1); }
	41.04% { transform: scale(0.93); }
	57%, 100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.isnag-whatsapp-float {
		animation: none;
	}
}

/* -------------------------------------------------------------------------
   Scroll-in motion
   ---------------------------------------------------------------------- */

@keyframes isnag-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes isnag-rise-in {
	from { opacity: 0; transform: translateY(40px); }
	to { opacity: 1; transform: translateY(0); }
}

.isnag-reveal {
	opacity: 0;
	will-change: opacity, transform;
}

.isnag-reveal.is-visible {
	animation: isnag-rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
	.isnag-reveal,
	.isnag-reveal.is-visible {
		opacity: 1;
		transform: none;
		animation: none;
	}
}

@media print {
	.isnag-reveal {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}
}

/* -------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */

@media (max-width: 1080px) {
	.isnag-tall-image img {
		min-height: 420px;
	}

	.isnag-values .isnag-tall-image img,
	.isnag-about-why .isnag-tall-image img,
	.isnag-why-section .isnag-tall-image img {
		min-height: 520px;
	}
}

@media (max-width: 680px) {
	html body {
		--wp--style--root--padding-left: 15px;
		--wp--style--root--padding-right: 15px;
		font-size: 16px;
	}

	.isnag-header__cta {
		display: none !important;
	}

	.wp-block-group.isnag-about-hero p {
	max-width: 730px;
	margin-inline: auto;
}

.isnag-hero__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}

	.is-style-isnag-stat {
		padding: 16px 8px;
	}

	.isnag-stat__value {
		font-size: 26px;
	}

	.isnag-hero__lead.has-large-font-size {
		font-size: 18px !important;
	}

	.isnag-page-hero h1,
	.isnag-blog-intro h1 {
		font-size: 36px;
	}

	.wp-block-buttons.isnag-hero__buttons {
		gap: 12px;
	}

	.isnag-whatsapp-button .wp-block-button__link::before {
		margin-right: 8px;
	}

	.is-style-isnag-tool-card {
		min-height: 150px;
		grid-template-columns: 112px minmax(0, 1fr) !important;
	}

	.is-style-isnag-tool-card .wp-block-media-text__media img {
		min-height: 150px;
		padding: 7px;
	}

	.is-style-isnag-tool-card .wp-block-media-text__content {
		padding: 17px 15px;
	}

	/* Panels tighten up, matching the original phone layout. */
	.isnag-cert-panel,
	.isnag-tailored {
		padding: 24px 18px !important;
	}

	.wp-block-group.isnag-cert-logos {
		padding: 25px !important;
		gap: 25px !important;
	}

	.isnag-tailored {
		padding: 28px 18px !important;
	}

	.isnag-tailored .isnag-section-heading {
		margin-bottom: 34px;
	}

	.isnag-tailored .wp-block-image img {
		height: 330px;
	}

	.isnag-tailored h3 {
		font-size: 24px;
	}

	.isnag-tailored .wp-block-columns p {
		font-size: 16px;
	}

	.isnag-tools-heading p {
		font-size: 15px;
	}

	.is-style-isnag-numbered-card,
	.is-style-isnag-inspection-card {
		padding: 22px !important;
	}

	.is-style-isnag-numbered-card p {
		font-size: 16px;
	}

	.is-style-isnag-quote-card {
		min-height: 260px;
	}

	.isnag-values .isnag-tall-image img {
		height: 480px;
	}

	.isnag-about-why .isnag-tall-image img {
		height: 520px;
	}

	.isnag-why-section .isnag-tall-image img {
		height: 450px;
	}

	.isnag-story {
		padding-left: 18px;
	}

	.isnag-values-copy h2,
	.isnag-about-why h2 {
		font-size: 30px;
	}

	.isnag-values-copy p,
	.isnag-about-why li,
	.isnag-about-why > p {
		font-size: 16px;
	}

	.isnag-contact-form__title {
		font-size: 38px;
		line-height: 1.25;
	}
}

@media (max-width: 1000px) {
	.isnag-values .isnag-tall-image img {
		height: 720px;
	}

	.isnag-about-why .isnag-tall-image img {
		min-height: 620px;
		height: 720px;
	}

	.isnag-why-section .isnag-tall-image img {
		min-height: 520px;
		height: 620px;
	}
}

@media (max-width: 781px) {
	.wp-block-group.isnag-header__inner {
		min-height: 84px;
	}

	.isnag-brand__mark img {
		width: 104px;
		height: auto;
	}

	.isnag-brand__words img {
		width: 95px;
		height: auto;
	}

	.isnag-announcement {
		height: 34px;
	}

	.isnag-form__grid {
		grid-template-columns: 1fr;
	}

	.isnag-field.is-full {
		grid-column: auto;
	}

	.wp-block-group.isnag-post-row {
		grid-template-columns: 1fr;
	}

	.isnag-post-row__media img {
		min-height: 220px;
	}

	.isnag-tailored .wp-block-image img {
		height: 330px;
	}

	.isnag-tall-image img,
	.isnag-values .isnag-tall-image img,
	.isnag-about-why .isnag-tall-image img,
	.isnag-why-section .isnag-tall-image img {
		min-height: 0;
		height: 380px;
	}

	.is-style-isnag-faq summary {
		font-size: 18px;
	}

	.isnag-faq__answer {
		padding-right: 0;
	}

	.isnag-whatsapp-float {
		right: 18px;
		bottom: 18px;
		width: 54px;
		height: 54px;
	}

	.isnag-whatsapp-float svg {
		width: 38px;
		height: 38px;
	}

	.isnag-contact-row {
		align-items: flex-start;
	}
}

/* -------------------------------------------------------------------------
   Editor-only touches
   ---------------------------------------------------------------------- */

.isnag-whatsapp-float-placeholder {
	display: inline-block;
	padding: 10px 14px;
	border: 1px dashed var(--isnag-line);
	border-radius: 8px;
	color: var(--isnag-muted);
	font-size: 14px;
}


/* Keep header content safely inside the viewport while preserving full-width backgrounds. */
.wp-block-group.isnag-header__inner {
	width: min(calc(100% - 30px), 1280px);
	margin-inline: auto;
}
/* Align the single footer social icon with the navigation row on desktop. */@media (min-width: 681px) {.isnag-footer__actions {
		align-self: stretch;
		justify-content: space-between !important;}
}
