/**
 * Theme 2230 — Custom Styles
 *
 * Additional styles beyond theme.json for interactions,
 * accessibility, animations, and print.
 *
 * @package Theme_2230
 * @since   1.0.0
 */

/* ==========================================================================
   1. Global
   ========================================================================== */

html {
	scroll-behavior: smooth;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   2. Skip to Content (Accessibility)
   ========================================================================== */

.skip-to-content {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	z-index: 100000;
	padding: 0.875rem 1.5rem;
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
	border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
	position: fixed;
	left: 0;
	top: 0;
	width: auto;
	height: auto;
	overflow: visible;
	outline: 3px solid var(--wp--preset--color--coral);
	outline-offset: 2px;
}

/* ==========================================================================
   3. Focus Styles (Accessibility)
   ========================================================================== */

*:focus-visible {
	outline: 2px solid var(--wp--preset--color--petrol);
	outline-offset: 2px;
}

.wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 3px;
}

.wp-block-navigation a:focus-visible {
	outline: 2px solid var(--wp--preset--color--petrol);
	outline-offset: 4px;
	border-radius: 2px;
}

/* ==========================================================================
   4. Link Hover Effects
   ========================================================================== */

.wp-block-post-content a:not(.wp-block-button__link),
.entry-content a:not(.wp-block-button__link) {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	text-decoration-color: var(--wp--preset--color--petrol);
	transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.wp-block-post-content a:not(.wp-block-button__link):hover,
.entry-content a:not(.wp-block-button__link):hover {
	text-decoration-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--navy);
}

/* Footer links */
footer a {
	transition: color 0.2s ease;
}

/* ==========================================================================
   5. Button Hover States
   ========================================================================== */

.wp-block-button__link {
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(27, 58, 75, 0.12);
}

.wp-block-button__link:active {
	transform: translateY(0);
	box-shadow: none;
}

/* Outline button style */
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--navy);
	color: var(--wp--preset--color--navy);
	background-color: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

/* Outline coral button style */
.wp-block-button.is-style-outline-coral .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--coral);
	color: var(--wp--preset--color--coral);
	background-color: transparent;
}

.wp-block-button.is-style-outline-coral .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--white);
}

/* Navy button style */
.wp-block-button.is-style-navy .wp-block-button__link {
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-navy .wp-block-button__link:hover {
	background-color: #142d3b;
}

/* ==========================================================================
   6. Card Hover Effects
   ========================================================================== */

.is-style-card {
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	box-shadow: 0 1px 3px 0 rgba(27, 58, 75, 0.04), 0 0 0 1px rgba(27, 58, 75, 0.06);
}

.is-style-card:hover {
	box-shadow: 0 8px 25px -5px rgba(27, 58, 75, 0.1), 0 0 0 1px rgba(27, 58, 75, 0.06);
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.is-style-card:hover {
		transform: none;
	}
}

/* Bordered group style */
.is-style-bordered {
	border: 1px solid var(--wp--preset--color--light-gray);
	border-radius: 4px;
}

/* ==========================================================================
   7. Navigation Styles
   ========================================================================== */

/* CTA navigation link */
.is-style-nav-cta a {
	background-color: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--white) !important;
	padding: 0.5rem 1.25rem;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.is-style-nav-cta a:hover {
	background-color: #D25A47;
}

/* Mobile navigation overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50);
}

/* ==========================================================================
   8. Form Styles
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="password"],
select,
textarea {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--wp--preset--color--navy);
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--light-gray);
	border-radius: 4px;
	padding: 0.75rem 1rem;
	width: 100%;
	max-width: 100%;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
	border-color: var(--wp--preset--color--petrol);
	box-shadow: 0 0 0 2px rgba(61, 123, 138, 0.2);
	outline: none;
}

input::placeholder,
textarea::placeholder {
	color: var(--wp--preset--color--medium-gray);
	opacity: 1;
}

select {
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239B9B93' d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.937 10.825 4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 12px;
}

label {
	display: block;
	font-weight: 600;
	font-size: 0.875rem;
	margin-bottom: 0.375rem;
	color: var(--wp--preset--color--navy);
}

input[type="checkbox"],
input[type="radio"] {
	width: auto;
	margin-right: 0.5rem;
	accent-color: var(--wp--preset--color--petrol);
}

textarea {
	min-height: 120px;
	resize: vertical;
}

/* Search block styling */
.wp-block-search__input {
	border: 1px solid var(--wp--preset--color--light-gray);
	border-radius: 4px;
	padding: 0.75rem 1rem;
}

.wp-block-search__button {
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	border: none;
	border-radius: 0 4px 4px 0;
	padding: 0.75rem 1.5rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wp-block-search__button:hover {
	background-color: #142d3b;
}

/* ==========================================================================
   9. Block-Specific Overrides
   ========================================================================== */

/* Separator — thin line by default */
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	max-width: 100px;
	margin-left: auto;
	margin-right: auto;
}

/* List: no bullets style */
.is-style-no-bullets {
	list-style: none;
	padding-left: 0;
}

/* Post navigation */
.wp-block-query-pagination {
	font-size: 0.875rem;
	font-weight: 600;
}

.wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.5rem;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.wp-block-query-pagination-numbers .page-numbers:hover:not(.current) {
	background-color: var(--wp--preset--color--light-gray);
}

/* ==========================================================================
   10. Header Sticky (optional enhancement)
   ========================================================================== */

@supports (position: sticky) {
	.wp-block-template-part[data-area="header"] > .wp-block-group,
	header.wp-block-group {
		position: sticky;
		top: 0;
		z-index: 1000;
		backdrop-filter: blur(8px);
		background-color: rgba(255, 255, 255, 0.95);
	}
}

/* ==========================================================================
   11. Responsive Adjustments
   ========================================================================== */

/* Stack columns on mobile */
@media (max-width: 781px) {
	.wp-block-columns {
		flex-wrap: wrap;
	}

	.wp-block-column {
		flex-basis: 100% !important;
	}

	/* Reduce padding on mobile */
	.wp-block-group.alignfull {
		padding-left: var(--wp--preset--spacing--30) !important;
		padding-right: var(--wp--preset--spacing--30) !important;
	}

	/* Reduce hero spacing on mobile */
	.wp-block-cover,
	[class*="padding-top:var(--wp--preset--spacing--90)"] {
		padding-top: var(--wp--preset--spacing--70) !important;
		padding-bottom: var(--wp--preset--spacing--70) !important;
	}
}

/* Tablets */
@media (min-width: 782px) and (max-width: 1024px) {
	.wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* ==========================================================================
   12. Print Styles
   ========================================================================== */

@media print {
	/* Hide non-essential elements */
	header.wp-block-group,
	footer.wp-block-group,
	.wp-block-navigation,
	.wp-block-button,
	.wp-block-search,
	.wp-block-query-pagination,
	.skip-to-content,
	.is-style-nav-cta {
		display: none !important;
	}

	/* Reset backgrounds */
	body,
	.wp-block-group {
		background-color: white !important;
		color: black !important;
	}

	/* Show link URLs */
	.wp-block-post-content a[href]::after,
	.entry-content a[href]::after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
		color: #666;
	}

	/* Ensure content fits page */
	* {
		max-width: 100% !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	img {
		page-break-inside: avoid;
	}

	h2, h3 {
		page-break-after: avoid;
	}

	/* Proper margins */
	@page {
		margin: 2cm;
	}

	body {
		font-size: 12pt;
		line-height: 1.5;
	}
}

/* ======================================================================
   15. WOW Layer
   ====================================================================== */

.hero-wow {
	position: relative;
	overflow: hidden;
}

.hero-wow-bg {
	position: relative;
	z-index: 1;
	background-image: linear-gradient(120deg, rgba(9, 27, 39, 0.88) 0%, rgba(18, 43, 58, 0.62) 55%, rgba(27, 58, 75, 0.2) 100%);
}

.hero-wow-art {
	position: relative;
}

.hero-wow-image {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.45);
}

.hero-wow-image img {
	width: 100%;
	height: auto;
	display: block;
}

.hero-compass-img {
	position: absolute;
	top: -14%;
	right: -18%;
	width: 150%;
	opacity: 0.18;
	pointer-events: none;
	mix-blend-mode: screen;
}

.sector-card {
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sector-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -22px rgba(17, 41, 56, 0.4);
}

.sector-wow-image {
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 10px 28px -18px rgba(27, 58, 75, 0.42);
}

.sector-wow-image img {
	display: block;
	width: 100%;
	height: auto;
}

.cta-wow {
	position: relative;
	overflow: hidden;
}

.cta-wow-texture {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
	opacity: 0.34;
	pointer-events: none;
}

.cta-wow-texture img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cta-wow > *:not(.cta-wow-texture) {
	position: relative;
	z-index: 1;
}

@media (max-width: 900px) {
	.hero-wow-image {
		margin-top: 1rem;
	}

	.hero-compass-img {
		display: none;
	}
}

/* ======================================================================
   16. Internal Page Hero Media + Stagger
   ====================================================================== */

.page-hero-featured img {
	display: block;
	width: 100%;
	height: auto;
	box-shadow: 0 22px 46px -26px rgba(12, 31, 43, 0.55);
}

body.home .wp-site-blocks > * {
	animation: wowFadeUp 0.7s ease both;
}

body.home .wp-site-blocks > *:nth-child(1) { animation-delay: 0s; }
body.home .wp-site-blocks > *:nth-child(2) { animation-delay: 0.06s; }
body.home .wp-site-blocks > *:nth-child(3) { animation-delay: 0.12s; }
body.home .wp-site-blocks > *:nth-child(4) { animation-delay: 0.18s; }
body.home .wp-site-blocks > *:nth-child(5) { animation-delay: 0.24s; }
body.home .wp-site-blocks > *:nth-child(6) { animation-delay: 0.30s; }

@keyframes wowFadeUp {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.home .wp-site-blocks > * {
		animation: none !important;
	}
}
