/* =========================================================================
   Moving Service Dubai — custom block & interaction styles
   Pairs with theme.json. Everything here is either an interaction (hover,
   focus, scroll) or a decorative layer that theme.json cannot express.
   All animation uses transform/opacity only (GPU-friendly) and is disabled
   under prefers-reduced-motion at the bottom of the file.
   ========================================================================= */

:root {
	--msd-ease: var(--wp--custom--transition--base, 200ms cubic-bezier(0.4, 0, 0.2, 1));
}

/* ---------- Sticky header ------------------------------------------------ */
.msd-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--border);
	transition: box-shadow var(--msd-ease);
}
.msd-header.is-scrolled {
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

/* Logo lockup (icon + wordmark) */
.msd-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	font-weight: 800;
	font-size: 1.2rem;
	line-height: 1;
}
.msd-logo svg { width: 30px; height: 30px; flex: 0 0 auto; }
.msd-logo .msd-logo__accent { color: var(--wp--preset--color--primary); }

/* Header phone link */
.msd-phone {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	white-space: nowrap;
}
.msd-phone svg { width: 18px; height: 18px; color: var(--wp--preset--color--primary); }

/* Nav hover/focus colour (core navigation block) */
.wp-block-navigation a:where(:hover, :focus-visible) {
	color: var(--wp--preset--color--primary);
}

/* ---------- Buttons ------------------------------------------------------ */
/* Colour transitions live in theme.json; the lift + shadow live here. */
.wp-block-button__link {
	transition: background-color var(--msd-ease), transform var(--msd-ease), box-shadow var(--msd-ease);
	will-change: transform;
}
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 1.5px; }

/* White button on the teal CTA band */
.wp-block-button.is-style-msd-invert .wp-block-button__link {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary);
}
.wp-block-button.is-style-msd-invert .wp-block-button__link:hover {
	background: #ffffff;
	color: var(--wp--preset--color--primary-dark);
}
/* Outline button forced white inside the teal band */
.msd-onteal .wp-block-button.is-style-outline .wp-block-button__link {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.7);
}
.msd-onteal .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #ffffff;
}

/* ---------- Cards (services, blog, generic) ------------------------------ */
.msd-card,
.wp-block-group.is-style-msd-card {
	background: var(--wp--preset--color--base);
	border: 1.5px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--card, 16px);
	transition: transform var(--msd-ease), box-shadow var(--msd-ease), border-color var(--msd-ease);
	height: 100%;
	overflow: hidden;
}
.msd-card:hover {
	transform: translateY(-4px);
	border-color: var(--wp--preset--color--primary);
	box-shadow: var(--wp--preset--shadow--card-hover);
}

/* Icon chip */
.msd-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary);
}
.msd-icon svg { width: 26px; height: 26px; }

/* "Learn more →" link with sliding arrow */
.msd-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	text-decoration: none;
}
.msd-arrow svg { width: 16px; height: 16px; transition: transform var(--msd-ease); }
.msd-arrow:where(:hover, :focus-visible) svg { transform: translateX(4px); }

/* ---------- Eyebrow / section labels ------------------------------------ */
.msd-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-size: 0.8rem;
	padding: 0.4rem 1rem;
	border-radius: 999px;
	margin: 0 auto;
	width: fit-content;
}
.msd-eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}
/* Plain (no pill) eyebrow, e.g. footer/section labels */
.msd-label {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 0.8rem;
}
.msd-cat {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.75rem;
}

/* ---------- Decorative background patterns ------------------------------- */
/* Subtle dot grid — used behind the hero. */
.msd-dots { position: relative; isolation: isolate; }
.msd-dots::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: radial-gradient(var(--wp--preset--color--primary) 1.5px, transparent 1.5px);
	background-size: 30px 30px;
	opacity: 0.10;
	animation: msd-pulse 6s ease-in-out infinite;
}
/* Diagonal hatch — used on the teal CTA band. */
.msd-diag { position: relative; overflow: hidden; isolation: isolate; }
.msd-diag::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0 2px, transparent 2px 16px);
	animation: msd-pulse 6s ease-in-out infinite;
}
@keyframes msd-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.85; } }

/* ---------- Hero quote card + form (Contact Form 7) ---------------------- */
.msd-quote-card {
	max-width: 860px;
	margin-inline: auto;
	background: #ffffff;
	border-radius: 16px;
	padding: 1.25rem 1.25rem 1.4rem;
	box-shadow: var(--wp--preset--shadow--soft);
	border-top: 4px solid var(--wp--preset--color--primary);
}
.msd-quote-card .msd-quote-card__title {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--wp--preset--color--secondary);
	margin: 0 0 0.75rem;
}
.msd-quote-form .wpcf7-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
}
.msd-quote-form .wpcf7-form-control-wrap { flex: 1 1 180px; }
.msd-quote-form input,
.msd-quote-form select {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1.5px solid var(--wp--preset--color--border);
	border-radius: 10px;
	font: inherit;
	color: var(--wp--preset--color--contrast);
	background: #ffffff;
}
.msd-quote-form input::placeholder { color: #94a3b8; }
.msd-quote-form input:focus,
.msd-quote-form select:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px var(--wp--preset--color--primary-light);
}
.msd-quote-form .wpcf7-submit {
	flex: 0 0 auto;
	padding: 0.8rem 1.4rem;
	border: 0;
	border-radius: 10px;
	background: var(--wp--preset--color--primary);
	color: #ffffff;
	font-weight: 700;
	cursor: pointer;
	transition: background-color var(--msd-ease), transform var(--msd-ease);
}
.msd-quote-form .wpcf7-submit:hover { background: var(--wp--preset--color--primary-dark); transform: translateY(-2px); }

/* Rating row (avatars + stars) */
.msd-rating { display: inline-flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.msd-rating__avatars { display: inline-flex; }
.msd-rating__avatars span {
	width: 30px; height: 30px; border-radius: 50%;
	border: 3px solid var(--wp--preset--color--base);
	margin-left: -10px; background: #cbd5e1;
}
.msd-rating__avatars span:first-child { margin-left: 0; }
.msd-stars { display: inline-flex; color: var(--wp--preset--color--accent); }
.msd-stars svg { width: 18px; height: 18px; }
.msd-rating__text { color: var(--wp--preset--color--secondary); font-size: 0.95rem; }
.msd-rating__text strong { color: var(--wp--preset--color--contrast); }

/* ---------- How it works (numbered steps) -------------------------------- */
.msd-step { position: relative; }
.msd-step__num {
	position: absolute;
	right: 1rem;
	top: 0.5rem;
	font-weight: 800;
	font-size: 2.75rem;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	opacity: 0.12;
}

/* ---------- Comparison rows ---------------------------------------------- */
.msd-row { display: flex; gap: 0.75rem; align-items: flex-start; }
.msd-row + .msd-row { margin-top: 0.9rem; }
.msd-tick {
	flex: 0 0 auto;
	width: 28px; height: 28px;
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
}
.msd-tick svg { width: 15px; height: 15px; }
.msd-tick--yes { background: var(--wp--preset--color--primary); color: #ffffff; }
.msd-tick--no { background: #f1f3f3; color: #94a3b8; }
.msd-compare-head { display: flex; align-items: center; gap: 0.75rem; }
.msd-compare-head .msd-icon { width: 44px; height: 44px; border-radius: 12px; }

/* ---------- Media / images (CLS-safe 16:9) ------------------------------- */
.msd-media img,
.msd-card .wp-block-post-featured-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
	height: auto;
	display: block;
}
.msd-card .wp-block-post-featured-image,
.msd-card figure.wp-block-image { margin: 0; }

/* ---------- Footer ------------------------------------------------------- */
.msd-footer { background: var(--wp--preset--color--contrast); color: #94a3b8; }
.msd-footer :where(h1, h2, h3, h4, h5, h6) { color: #ffffff; }
.msd-footer a { color: #94a3b8; text-decoration: none; }
.msd-footer a:where(:hover, :focus-visible) { color: #ffffff; }
.msd-footer .msd-foothead {
	color: #ffffff; font-weight: 700; letter-spacing: 0.1em;
	font-size: 0.8rem; text-transform: uppercase;
}
.msd-footer .msd-logo { color: #ffffff; }
.msd-footer .msd-logo .msd-logo__accent { color: #2dd4bf; }
.msd-contact-line { display: flex; align-items: flex-start; gap: 0.6rem; align-items: center; }
.msd-contact-line svg { width: 18px; height: 18px; color: #cbd5e1; flex: 0 0 auto; margin-top: 2px; }
.msd-social { display: inline-flex; gap: 0.5rem; }
.msd-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px;
	border: 1px solid #2a3645; border-radius: 9px; color: #cbd5e1;
	transition: background-color var(--msd-ease), border-color var(--msd-ease), color var(--msd-ease);
}
.msd-social a:hover {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: #ffffff;
}
.msd-social svg { width: 18px; height: 18px; }
.msd-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* ---------- Universal visible focus -------------------------------------- */
:where(a, button, input, select, textarea, summary, .wp-block-button__link):focus-visible {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---------- Trust strip (logo placeholders) ------------------------------ */
.msd-trust-logo {
	display: flex; align-items: center; justify-content: center;
	min-height: 40px; padding: 0.5rem 1rem;
	background: #f4f6f6; border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px; color: #aeb8b8; font-weight: 700; font-size: 0.85rem;
}

/* ---------- Reduced motion ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	.msd-card:hover,
	.wp-block-button__link:hover,
	.msd-arrow:hover svg { transform: none; }
}

/* ---------- Small screens ------------------------------------------------ */
@media (max-width: 600px) {
	.msd-step__num { font-size: 2.25rem; }
	.msd-quote-form .wpcf7-form { flex-direction: column; align-items: stretch; }
	.msd-quote-form .wpcf7-submit { width: 100%; }
	.msd-header .msd-phone { display: none; } /* keep the mobile bar uncluttered */
}

/* =========================================================================
   Sub-page utilities (services / pricing / about / contact / booking)
   Added in 1.1.0 — keeps the pasted block code clean (classes only).
   ========================================================================= */

/* ---------- Stacked forms (contact / booking pages) ---------------------- */
.msd-form .wpcf7-form { display: flex; flex-direction: column; gap: 0.9rem; }
.msd-form label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--wp--preset--color--contrast); }
.msd-form input,
.msd-form select,
.msd-form textarea {
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.7rem 0.9rem;
	border: 1.5px solid var(--wp--preset--color--border);
	border-radius: 10px;
	font: inherit;
	color: var(--wp--preset--color--contrast);
	background: #ffffff;
}
.msd-form textarea { min-height: 130px; resize: vertical; }
.msd-form input:focus,
.msd-form select:focus,
.msd-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px var(--wp--preset--color--primary-light);
}
.msd-form .wpcf7-submit {
	align-self: flex-start;
	margin-top: 0.25rem;
	padding: 0.85rem 1.6rem;
	border: 0;
	border-radius: 10px;
	background: var(--wp--preset--color--primary);
	color: #ffffff;
	font-weight: 700;
	cursor: pointer;
	transition: background-color var(--msd-ease), transform var(--msd-ease);
}
.msd-form .wpcf7-submit:hover { background: var(--wp--preset--color--primary-dark); transform: translateY(-2px); }

/* ---------- Pricing ------------------------------------------------------ */
.msd-badge {
	display: inline-block;
	background: var(--wp--preset--color--primary);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
}
.msd-price { font-weight: 800; line-height: 1; color: var(--wp--preset--color--contrast); }
.msd-price small { font-size: 0.9rem; font-weight: 600; color: var(--wp--preset--color--secondary); }

/* ---------- Stats band --------------------------------------------------- */
.msd-stat__num { font-weight: 800; line-height: 1; color: var(--wp--preset--color--primary); }
.msd-stat__label { color: var(--wp--preset--color--secondary); font-weight: 600; }

/* ---------- FAQ (core/details block) ------------------------------------- */
.msd-faq summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}
.msd-faq summary::-webkit-details-marker { display: none; }
.msd-faq summary::after { content: "+"; color: var(--wp--preset--color--primary); font-size: 1.4rem; line-height: 1; }
.msd-faq[open] summary::after { content: "\2013"; }
.msd-faq[open] summary { margin-bottom: 0.6rem; }

/* Contact detail line on light backgrounds */
.msd-contact-line--light svg { color: var(--wp--preset--color--primary); }
.msd-contact-line--light { color: var(--wp--preset--color--secondary); }

Footer {
    margin-top: 0px !important;
}

.google-icon-star {
    text-align: center;
}

.msd-blog-grid ul {
    /*display: flex;*/
    gap: 10px;
}

ul.home_page_blog {
    display: flex;
}

.msd-blog-grid ul li {
    margin-top: 0px !important;
}




/* =========================================================================
   Contact Form 7 — styling for the Moving Service Dubai design system
   Where to put it:
     • Easiest: Appearance → Customize → Additional CSS, paste, Publish.
     • Or append to the child theme: assets/css/custom-blocks.css
   Colours use the theme's CSS variables with hard-coded fallbacks, so this
   works even if pasted somewhere the variables aren't available.
   The Contact & Booking forms sit in a .msd-form wrapper (stacked layout).
   The hero quick-quote keeps its own inline-row styling and isn't touched.
   ========================================================================= */

/* ---- Layout: stacked fields ---------------------------------------------- */
.msd-form .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.msd-form .wpcf7-form > p { margin: 0; }            /* CF7 wraps rows in <p> */

.msd-form label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--wp--preset--color--contrast, #0F172A);
	line-height: 1.4;
}

/* ---- Fields -------------------------------------------------------------- */
.msd-form input[type="text"],
.msd-form input[type="email"],
.msd-form input[type="tel"],
.msd-form input[type="date"],
.msd-form input[type="number"],
.msd-form select,
.msd-form textarea {
	width: 100%;
	margin-top: 0.4rem;
	padding: 0.7rem 0.9rem;
	border: 1.5px solid var(--wp--preset--color--border, #E3E9E9);
	border-radius: 10px;
	font: inherit;
	color: var(--wp--preset--color--contrast, #0F172A);
	background: #ffffff;
	transition: border-color 180ms ease, box-shadow 180ms ease;
	box-sizing: border-box;
}
.msd-form textarea { min-height: 140px; resize: vertical; }
.msd-form input::placeholder,
.msd-form textarea::placeholder { color: #94a3b8; }

.msd-form input:focus,
.msd-form select:focus,
.msd-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary, #0F766E);
	box-shadow: 0 0 0 3px var(--wp--preset--color--primary-light, #E8F4F2);
}

/* Optional manual required marker: wrap with <span class="req">*</span> */
.msd-form .req { color: #DC2626; margin-left: 2px; }

/* ---- Submit button ------------------------------------------------------- */
.msd-form .wpcf7-submit {
	align-self: flex-start;
	margin-top: 0.25rem;
	padding: 0.85rem 1.7rem;
	border: 0;
	border-radius: 10px;
	background: var(--wp--preset--color--primary, #0F766E);
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 180ms ease, transform 180ms ease;
}
.msd-form .wpcf7-submit:hover {
	background: var(--wp--preset--color--primary-dark, #0B5A54);
	transform: translateY(-2px);
}
.msd-form .wpcf7-submit:disabled { opacity: 0.6; cursor: default; transform: none; }

/* Checkboxes / radios / acceptance (only if you add them) */
.msd-form .wpcf7-list-item { display: block; margin: 0.3rem 0 0 0; font-weight: 400; }
.msd-form .wpcf7-list-item input { width: auto; margin: 0 0.5rem 0 0; }
.msd-form .wpcf7-acceptance .wpcf7-list-item-label { color: var(--wp--preset--color--secondary, #475569); }

/* =========================================================================
   Shared CF7 states — apply to every CF7 form on the site
   ========================================================================= */

/* Invalid field: red border + tint */
.wpcf7 .wpcf7-not-valid {
	border-color: #DC2626 !important;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

/* Inline error tip under a field */
.wpcf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.4rem;
	color: #DC2626;
	font-size: 0.8rem;
	font-weight: 600;
}

/* The response message box at the bottom of the form */
.wpcf7 .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.8rem 1rem;
	border: 1.5px solid var(--wp--preset--color--border, #E3E9E9);
	border-radius: 10px;
	font-size: 0.92rem;
	line-height: 1.5;
}
/* Success (form sent) */
.wpcf7-form.sent .wpcf7-response-output {
	border-color: #BBF7D0;
	background: #F0FDF4;
	color: #15803D;
}
/* Errors (validation / mail failed / spam / not accepted) */
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.payment-required .wpcf7-response-output {
	border-color: #FCA5A5;
	background: #FEF2F2;
	color: #B91C1C;
}
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output {
	border-color: #FCA5A5;
	background: #FEF2F2;
	color: #B91C1C;
}
.wpcf7-form.spam .wpcf7-response-output {
	border-color: #FDE68A;
	background: #FFFBEB;
	color: #B45309;
}

/* Ajax loading spinner shown next to the submit button */
.wpcf7 .wpcf7-spinner {
	width: 22px;
	height: 22px;
	margin: 0 0 0 0.75rem;
	background: none;
	border: 2.5px solid var(--wp--preset--color--primary-light, #E8F4F2);
	border-top-color: var(--wp--preset--color--primary, #0F766E);
	border-radius: 50%;
	animation: msd-cf7-spin 0.7s linear infinite;
}
.wpcf7 .wpcf7-spinner::before { display: none; }      /* hide CF7's default dot */
@keyframes msd-cf7-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	.wpcf7 .wpcf7-spinner { animation-duration: 1.5s; }
	.msd-form .wpcf7-submit:hover { transform: none; }
}

/* ---- Small screens ------------------------------------------------------- */
@media (max-width: 600px) {
	.msd-form .wpcf7-submit { width: 100%; text-align: center; }
}

/* Hero quick-quote — row on tablet & desktop, stacked on mobile */

/* Tablet & desktop (≥ 768px): all fields + button on one line */
@media (min-width: 768px) {
	.quote-form,
	.quote-form > p {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: 0.6rem;
		margin: 0;
	}
	.quote-form > p { flex: 1 1 100%; }            /* in case CF7 wraps the fields in a <p> */
	.quote-form .wpcf7-form-control-wrap {
		flex: 1 1 0;
		min-width: 0;                               /* let the three fields shrink evenly */
		margin: 0;
	}
	.quote-form input[type="text"],
	.quote-form input[type="tel"],
	.quote-form input[type="email"] { width: 100%; box-sizing: border-box; }
	.quote-form .wpcf7-submit { flex: 0 0 auto; width: auto; white-space: nowrap; }
}

/* Mobile (≤ 767px): every field and the button on its own line */
@media (max-width: 767px) {
	.quote-form .wpcf7-form-control-wrap { display: block; width: 100%; margin: 0 0 0.6rem; }
	.quote-form input[type="text"],
	.quote-form input[type="tel"],
	.quote-form input[type="email"] { width: 100%; box-sizing: border-box; }
	.quote-form .wpcf7-submit { display: block; width: 100%; }
}











