/* Norwood Waterworks contact card.
   Renders inside the Divi header/footer; the gradient hero + centering are
   scoped to the .nww-card-page wrapper so they never touch the site chrome. */

html,
body.nww-card-page {
	margin: 0;
	padding: 0;
}

body.nww-card-page {
	position: relative;
	font-family: 'Helvetica', Arial, sans-serif;
	text-align: center;
	color: #ffffff;
	background: linear-gradient(135deg, #600000, #000000);
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding: 60px 20px;
	box-sizing: border-box;
	opacity: 0;
	animation: nwwFadeIn 0.3s ease-in forwards;
}

.nww-card-back {
	position: absolute;
	top: 20px;
	left: 20px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	font-size: 15px;
	font-weight: bold;
	color: #ffffff;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 8px;
	transition: background 0.2s, transform 0.1s;
}

.nww-card-back:hover {
	background: rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

.nww-card-back:active {
	transform: scale(0.97);
}

.nww-card-back:focus {
	outline: 3px solid #ffd700;
}

@keyframes nwwFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* The card keeps content-box so its width matches the original (350 + padding). */
.nww-card-page .card {
	box-sizing: content-box;
	background: rgba(255, 255, 255, 0.85);
	padding: 20px;
	border-radius: 15px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(10px);
	max-width: 90%;
	width: 350px;
	text-align: center;
	color: #000000;
}

.nww-card-page .card img.logo {
	max-width: 80%;
	height: auto;
	margin-bottom: 15px;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.nww-card-page .card img.headshot {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 15px;
	display: inline-block;
}

.nww-card-page .card h2 {
	margin: 0.2em 0 0.1em;
	color: #000000;
}

.nww-card-page .card h3 {
	margin: 0 0 0.5em;
	font-weight: normal;
	color: #333333;
}

.nww-card-page .address {
	margin: 0 0 10px;
	color: #000000;
}

.nww-card-page .nww-card-actions {
	display: block;
}

.nww-card-page .button {
	display: block;
	width: 100%;
	padding: 12px;
	margin: 10px 0;
	background: #b22222;
	color: #ffffff;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.3s, transform 0.1s;
	box-sizing: border-box;
	text-decoration: none;
	text-align: center;
}

.nww-card-page .button:hover {
	background: #a01d1d;
	color: #ffffff;
}

.nww-card-page .button:active {
	background: #8b0000;
	transform: scale(0.98);
}

.nww-card-page .button:focus {
	outline: 3px solid #ffd700;
}

.nww-card-page .fun-note {
	margin-top: 20px;
	font-style: italic;
	font-size: 16px;
	color: #333333;
	font-weight: bold;
}
