/*
 * WashPro — site-wide styles.
 *
 * Design tokens live in :root and every component below references them, so a
 * palette or type change is a single edit. Scoped with .washpro-child /
 * .wp- prefixed classes to avoid colliding with Elementor's generated CSS or
 * the parent theme.
 */

:root {
	--navy: #1d2d5b;
	--ivory: #f8f6f1;
	--soft-blue: #e6edf7;
	--champagne: #d4b895;
	--silver: #c9ced6;
	--white: #ffffff;
	--gold-star: #d9a441;

	--text: #1d2d5b;
	--muted: rgba(29, 45, 91, 0.68);

	--font-head: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--content: 1200px;
	--content-wide: 1280px;
	--radius: 12px;
	--pill: 999px;
	--hairline: rgba(29, 45, 91, 0.1);

	--shadow-sm: 0 8px 24px rgba(29, 45, 91, 0.08);
	--shadow-md: 0 16px 40px rgba(29, 45, 91, 0.12);

	--section-y: clamp(48px, 7vw, 96px);
}

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

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ivory);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

a {
	color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--font-head);
	font-weight: 400;
	line-height: 1.16;
	letter-spacing: -0.01em;
	color: var(--navy);
}

h1 { font-size: clamp(38px, 5vw, 60px); }
h2 { font-size: clamp(30px, 3.4vw, 46px); }
h3 { font-size: clamp(20px, 1.6vw, 24px); }

p {
	margin: 0 0 1em;
}

p:last-child {
	margin-bottom: 0;
}

:focus-visible {
	outline: 3px solid var(--navy);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -60px;
	left: 16px;
	z-index: 200;
	padding: 12px 18px;
	background: var(--navy);
	color: var(--white);
	font-weight: 600;
	text-decoration: none;
	border-radius: 0 0 var(--radius) var(--radius);
	transition: top 0.15s ease;
}

.skip-link:focus {
	top: 0;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	margin: 0 0 18px;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--navy);
}

.eyebrow::after {
	content: "";
	width: 80px;
	height: 1px;
	flex: 0 0 auto;
	margin-left: 20px;
	background: #d4b895;
}

.icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wp-stars {
	color: var(--gold-star);
	font-size: 15px;
	letter-spacing: 0.16em;
	line-height: 1;
}

/* Inner pages inherit the WashPro type system.
 * Elementor asks for Urbanist/Outfit by name in its generated CSS; those
 * <link>s are suppressed in inc/assets.php, so the stacks declared here are
 * what actually renders. Headings are re-pointed at Playfair Display so the
 * inner pages match the homepage without editing a single Elementor document.
---------------------------------------------------------------------------- */

.washpro-child .elementor-widget,
.washpro-child .elementor-widget div,
.washpro-child .elementor-widget p,
.washpro-child .elementor-widget span,
.washpro-child .elementor-widget a,
.washpro-child .elementor-widget li,
.washpro-child .elementor-widget label,
.washpro-child .elementor-widget button,
.washpro-child .elementor-widget input,
.washpro-child .elementor-widget select,
.washpro-child .elementor-widget textarea,
.washpro-child .elementor-widget td,
.washpro-child .elementor-widget th {
	font-family: var(--font-body);
}

.washpro-child .elementor-widget.elementor-widget-heading .elementor-heading-title,
.washpro-child .elementor-widget.elementor-widget-theme-post-title .elementor-heading-title,
.washpro-child .elementor-widget.elementor-widget-icon-box .elementor-icon-box-title,
.washpro-child .elementor-widget.elementor-widget-price-table .elementor-price-table__heading,
.washpro-child .elementor-widget.elementor-widget-testimonial .elementor-testimonial-name {
	font-family: var(--font-head);
}

/* Buttons
---------------------------------------------------------------------------- */

/* Kill inherited theme button/input chrome (Linedry/Hello-style pink borders)
   inside the WashPro header, homepage and footer before applying our own
   button styles. */
.wp-home button,
.wp-home button[type],
.wp-home [type="button"],
.wp-home [type="submit"],
.wp-home input,
.wp-home .menu-toggle,
.wp-home .elementor-button,
.wp-header button,
.wp-header button[type],
.wp-header [type="submit"],
.wp-header input,
.wp-header .menu-toggle,
.wp-header .elementor-button,
.wp-footer button,
.wp-footer button[type],
.wp-footer [type="submit"],
.wp-footer input,
.wp-footer .menu-toggle,
.wp-footer .elementor-button {
	border: 0;
	background: transparent;
	color: inherit;
	box-shadow: none;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65em;
	min-height: 64px;
	padding: 0 40px;
	border: 1.5px solid transparent;
	border-radius: var(--pill);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease,
		background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--lg {
	min-height: 64px;
	padding: 0 40px;
	font-size: 16px;
}

.btn__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: inherit;
}

.btn__arrow svg {
	display: block;
	width: 18px;
	height: 18px;
}

.btn--block {
	width: 100%;
}

.btn--primary {
	background: var(--navy);
	color: var(--white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
	background: #16244a;
	color: var(--white);
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
}

.btn--white {
	background: var(--white);
	color: var(--navy);
}

.btn--white:hover,
.btn--white:focus-visible {
	background: #f2efe8;
	color: var(--navy);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.btn--gold {
	background: var(--champagne);
	color: #2b2118;
}

.btn--gold:hover,
.btn--gold:focus-visible {
	background: #c9a97f;
	color: #2b2118;
	transform: translateY(-2px);
}

.btn--ghost {
	background: transparent;
	color: var(--navy);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
	color: #a8895f;
}

.btn--outline {
	background: transparent;
	border-color: rgba(29, 45, 91, 0.35);
	color: var(--navy);
}

.btn--outline:hover,
.btn--outline:focus-visible {
	border-color: var(--navy);
	color: var(--navy);
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
}

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

.wp-header {
		position: sticky;
		top: var(--wp-admin--admin-bar--height, 0px);
		z-index: 90;
		background: var(--white);
		border-radius: 16px 16px 0 0;
		transition: box-shadow 0.2s ease;
	}

.admin-bar .wp-header {
		top: var(--wp-admin--admin-bar--height, 32px);
	}

.wp-header.is-scrolled {
	box-shadow: var(--shadow-sm);
}

.wp-header__inner {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 91px;
		margin: 0 auto;
		padding: 0 75px;
	}

.wp-logo {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}

.wp-header__inner > .wp-logo {
	flex: 0 0 540px;
}

.wp-logo__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 57px;
	height: 40px;
}

.wp-logo__mark svg {
	display: block;
	width: 57px;
	height: 40px;
}

.wp-logo__word {
	font-family: var(--font-head);
	font-size: 45px;
	font-weight: 400;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--navy);
	white-space: nowrap;
}

.wp-nav {
	flex: 0 0 auto;
}

.wp-nav__list {
	display: flex;
	gap: 44px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-nav__item a {
	position: relative;
	display: block;
	padding: 6px 0;
	font-size: 16px;
	font-weight: 400;
	color: var(--navy);
	text-decoration: none;
	transition: color 0.15s ease;
}

.wp-nav__item a:hover,
.wp-nav__item a:focus-visible {
	color: #354576;
}

.wp-nav__item.is-active a {
	color: var(--navy);
}

/* Pin the site's own navy wherever the theme/Elementor accent (#CC3366)
   leaks into anchors inside the WashPro chrome and homepage. Highest
   specificity so it always wins; component rules then re-apply their own
   intended colors where they differ. */
.wp-header a.wp-logo,
.wp-footer a.wp-logo,
.wp-home a:not(.btn) {
	color: var(--navy);
}

.wp-header a.wp-logo:hover,
.wp-header a.wp-logo:focus-visible {
	color: var(--navy);
}

.wp-footer a.wp-logo,
.wp-footer a.wp-logo:hover,
.wp-footer a.wp-logo:focus-visible,
.wp-footer a.wp-logo:visited {
	color: var(--white);
}

.wp-header__actions {
		display: flex;
		align-items: center;
		gap: 12px;
		margin-left: auto;
	}

.wp-header__actions .btn {
		width: 194px;
		height: 62px;
		min-height: 44px;
		padding: 0;
		background: var(--navy);
		color: var(--white);
	}

.wp-header__actions .btn:hover,
.wp-header__actions .btn:focus-visible {
	background: #16244a;
	color: var(--white);
	transform: none;
	box-shadow: var(--shadow-sm);
}

/* Scoped under .wp-header so it outranks the Elementor kit reset
   (`body.elementor-kit-8 button { padding:20px 30px }`, specificity 0,1,1) and
   hello-elementor's `[type="button"]{width:auto}`. Those used to inflate the
   button's padding to 30px per side and let its width fall back to auto, which
   collapsed the 24px content box to zero and made the three bars invisible. */
.wp-header .wp-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	gap: 5px;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	padding: 10px;
	line-height: 1;
	background: transparent;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	color: var(--navy);
	visibility: hidden;
	opacity: 0;
}

.wp-header .wp-burger__bar {
	display: block;
	flex: 0 0 auto;
	width: 100%;
	height: 2px;
	min-height: 2px;
	background: var(--navy);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.wp-header .wp-burger[aria-expanded="true"] .wp-burger__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.wp-header .wp-burger[aria-expanded="true"] .wp-burger__bar:nth-child(2) {
	opacity: 0;
}

.wp-header .wp-burger[aria-expanded="true"] .wp-burger__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Elementor's `button` reset (display:inline-block + 1px #c36 border) outranks
   the plain .wp-burger class, which is why the stray bar used to appear on
   desktop. An id-scoped rule guarantees it stays hidden until the breakpoint. */
#page .wp-header .wp-burger {
	display: none;
	visibility: hidden;
	opacity: 0;
}

.wp-mobile {
	border-top: 1px solid var(--hairline);
	background: var(--white);
	padding: 16px 24px 24px;
	box-shadow: var(--shadow-sm);
	position: absolute;
	left: 0;
	right: 0;
	width: 100%;
	max-height: calc(100vh - var(--wp-admin--admin-bar--height, 91px));
	overflow-y: auto;
	transition: max-height 0.3s ease, opacity 0.3s ease;
	z-index: 80;
}

.wp-mobile[hidden] {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.wp-mobile {
		transition: none;
	}
}

.wp-mobile__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-mobile__cta {
	margin-bottom: 8px;
}

.wp-mobile__list > li > a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 14px 0;
	font-size: 17px;
	font-weight: 500;
	color: var(--navy);
	text-decoration: none;
	border-bottom: 1px solid var(--hairline);
}

@media (min-width: 1101px) and (max-width: 1279px) {
	.wp-header__inner {
		padding: 0 40px;
	}

	.wp-header__inner > .wp-logo {
		flex: 0 1 540px;
		min-width: 0;
	}

	.wp-nav__list {
		gap: 30px;
	}
}

@media (max-width: 1100px) {
		.wp-header__inner {
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 24px;
			max-width: var(--content-wide);
			height: 76px;
			padding: 0 24px;
		}

	.wp-header__inner > .wp-logo {
		flex: 0 0 auto;
	}

	.wp-logo {
		position: static;
		transform: none;
		gap: 12px;
	}

	.wp-logo__word {
		font-size: 24px;
	}

	.wp-nav {
		position: static;
		margin-inline: auto;
		transform: none;
	}

	.wp-nav__list {
		gap: 28px;
	}

	.wp-header__actions {
		position: static;
		transform: none;
		margin-left: 0;
	}
}

@media (max-width: 1025px) {
		.wp-nav {
			display: none !important;
		}

		.wp-header__actions .btn {
			display: none !important;
		}

		.wp-burger,
		button.wp-burger,
		#page .wp-header .wp-burger,
		.wp-header .wp-burger,
		#masthead .wp-header .wp-burger,
		header .wp-header .wp-burger,
		header .wp-burger {
			display: flex !important;
			visibility: visible !important;
			opacity: 1 !important;
			align-items: center;
			justify-content: center;
		}

	/* Without JavaScript the burger cannot open, so the nav falls back to an
	   inline list rather than disappearing entirely. */
	html:not(.js) .wp-header__inner {
		height: auto;
		min-height: 76px;
		flex-wrap: wrap;
		padding-top: 14px;
		padding-bottom: 14px;
	}

	html:not(.js) .wp-nav {
		display: block;
		flex: 1 1 100%;
		margin-inline: 0;
	}

	html:not(.js) .wp-nav__list {
		flex-wrap: wrap;
		gap: 8px 20px;
	}

	html:not(.js) .wp-nav__list > li > a {
		padding: 8px 0;
	}

	html:not(.js) .wp-burger {
		display: none;
	}
}

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

.wp-footer {
	background: var(--navy);
	color: var(--white);
}

.wp-footer__inner {
	display: grid;
	/* The last track is `minmax(0, 1fr)` rather than `1fr` so its minimum is
	   0, not the note's min-content width. With a plain `1fr` the three fixed
	   tracks (997px) plus the note's longest word forced the grid wider than a
	   1024px viewport and the footer scrolled horizontally. */
	grid-template-columns: 371px 496px 130px minmax(0, 1fr);
	align-items: center;
	column-gap: 0;
	height: 153px;
	max-width: 1290px;
	margin: 0 auto;
}

.wp-footer .wp-logo {
	position: static;
	top: auto;
	left: auto;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	transform: none;
}

/* Even the global WordPress heading rules try to re-point this wordmark at the
   sans stack; pin it back to the serif face. */
.wp-footer .wp-logo__word {
	font-family: var(--font-head);
	font-size: 26px;
	font-weight: 400;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--white);
}

.wp-footer .wp-logo__mark,
.wp-footer .wp-logo__mark svg {
	width: 37px;
	height: 37px;
}

.wp-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding-left: 0;
}

.wp-footer__tagline {
	margin: 0;
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.8);
}

.wp-footer__nav {
	display: flex;
	align-items: center;
	gap: 35px;
}

.wp-footer__nav a {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 400;
	color: var(--white);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.wp-footer__nav a:hover,
.wp-footer__nav a:focus-visible {
	color: var(--champagne);
}

.wp-footer__socials {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 28px;
	white-space: nowrap;
}

.wp-footer__socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: var(--white);
	transition: color 0.15s ease;
}

.wp-footer__socials a:hover,
.wp-footer__socials a:focus-visible {
	color: var(--champagne);
}

.wp-footer__socials svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wp-footer__note {
	min-width: 0;
	margin: 0;
	font-family: var(--font-head);
	font-style: italic;
	font-weight: 400;
	font-size: 22px;
	line-height: 1.25;
	text-align: right;
	color: var(--white);
}

@media (max-width: 1100px) {
	.wp-footer__inner {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
		row-gap: 26px;
		height: auto;
		padding: 48px 24px;
		text-align: center;
	}

	.wp-footer__brand,
	.wp-footer__nav,
	.wp-footer__socials {
		align-items: center;
		justify-content: center;
	}

	.wp-footer__note {
		text-align: center;
	}
}

@media (max-width: 768px) {
	.wp-footer__nav {
		flex-wrap: wrap;
		gap: 20px 30px;
	}

	.wp-footer__socials {
		gap: 36px;
	}
}

/* Scroll reveal (JS adds .is-visible)
 *
 * The hidden state is scoped to html.js, which an inline script in header.php
 * sets before the body is parsed. With JavaScript disabled the content is
 * simply visible - the animation is an enhancement, never a dependency.
---------------------------------------------------------------------------- */

.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
	will-change: opacity, transform;
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.btn:hover,
	.btn:focus-visible {
		transform: none;
	}
}
