/* ==========================================================================
   LearnToSwim AU — Extra Styles
   Anything theme.json can't easily handle goes here.
   ========================================================================== */

/* Smoother focus rings */
*:focus-visible {
	outline: 3px solid var(--wp--preset--color--coral);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Body sets the cream background; the .has-cream-background-color class ensures it. */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Sticky header subtle shadow on scroll */
.wp-block-template-part[data-area="header"] {
	transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Card hover lift — apply class .lts-card to any group */
.lts-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(8, 76, 97, 0.06);
}
.lts-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(8, 76, 97, 0.12);
}

/* Pill labels */
.lts-pill {
	display: inline-block;
	padding: 0.4rem 1rem;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--ocean-deep);
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Wave divider — used between sections */
.lts-wave-divider {
	display: block;
	width: 100%;
	height: 60px;
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
}
.lts-wave-divider--cream-to-sky {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'><path fill='%23D6F0F5' d='M0,30 C240,60 480,0 720,30 C960,60 1200,0 1440,30 L1440,60 L0,60 Z'/></svg>");
}
.lts-wave-divider--sand-to-cream {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'><path fill='%23FFF9F0' d='M0,30 C240,60 480,0 720,30 C960,60 1200,0 1440,30 L1440,60 L0,60 Z'/></svg>");
}
.lts-wave-divider--ocean-to-cream {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'><path fill='%23FFF9F0' d='M0,30 C240,60 480,0 720,30 C960,60 1200,0 1440,30 L1440,60 L0,60 Z'/></svg>");
}

/* Numbered step circles */
.lts-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: var(--wp--preset--color--coral);
	color: white;
	font-family: "Fraunces", serif;
	font-weight: 600;
	font-size: 1.4rem;
	margin-bottom: 1rem;
}

/* Hero image rounded corners and overlay readability */
.lts-hero-image img {
	border-radius: 24px;
}

/* Typography refinements */
.wp-block-post-title a,
h1 a, h2 a, h3 a, h4 a {
	text-decoration: none;
}
.wp-block-post-title a:hover {
	color: var(--wp--preset--color--coral);
}

/* Excerpt body styling */
.wp-block-post-excerpt {
	color: var(--wp--preset--color--slate);
	line-height: 1.65;
}

/* Lists in content get a custom marker colour */
.entry-content ul li::marker,
.wp-block-post-content ul li::marker {
	color: var(--wp--preset--color--coral);
}

/* Blockquote pull-quote styling extension */
.wp-block-quote {
	font-size: 1.25rem;
	line-height: 1.5;
}

/* Directorist plugin compatibility — soften default styles to match theme */
.has-directorist .directorist-listing-card,
.has-directorist .directorist-search-form {
	border-radius: 18px !important;
	box-shadow: 0 4px 14px rgba(8, 76, 97, 0.06);
}
.has-directorist .directorist-btn-primary,
.has-directorist .directorist-search-btn {
	background-color: var(--wp--preset--color--coral) !important;
	border-color: var(--wp--preset--color--coral) !important;
	border-radius: 999px !important;
}
.has-directorist .directorist-btn-primary:hover {
	background-color: var(--wp--preset--color--ocean-deep) !important;
	border-color: var(--wp--preset--color--ocean-deep) !important;
}

/* Responsive: tighten hero on mobile */
@media (max-width: 600px) {
	.lts-hero-image img {
		border-radius: 16px;
	}
}

/* Print: hide nav and footer */
@media print {
	.wp-block-template-part[data-area="header"],
	.wp-block-template-part[data-area="footer"] {
		display: none;
	}
}
