/*
Theme Name: InsuranceCareerHub
Theme URI: https://insurancecareerhub.com
Author: InsuranceCareerHub
Description: A commanding, institutional recruitment theme for insurance industry professionals. Deep navy grounds the experience while amber accents punch through as confident calls to action. Playfair Display headlines convey trust and legacy; Crimson Pro body copy keeps the editorial register consistent.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: insurancecareerhub
Tags: full-site-editing, block-patterns, wide-blocks, custom-colors, custom-fonts, editor-style
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
*/

/* ---------- Reset & foundation ---------- */

:root,
body,
.wp-site-blocks {
	overflow: visible;
}

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

/* ---------- Typography polish ---------- */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	letter-spacing: -0.015em;
}

h1 {
	letter-spacing: -0.025em;
}

p {
	max-width: 72ch;
}

.has-text-align-center p,
p.has-text-align-center {
	margin-left: auto;
	margin-right: auto;
}

blockquote,
.wp-block-quote {
	font-style: italic;
}

.wp-block-quote cite,
.wp-block-pullquote cite {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted-text);
}

figcaption,
.wp-element-caption {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted-text);
	text-align: center;
	margin-top: 0.5em;
}

/* ---------- Link styling ---------- */

a {
	transition: color 0.3s ease;
}

a:focus-visible {
	outline: 2px solid var(--wp--preset--color--amber);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ---------- Button styling ---------- */

.wp-block-button .wp-block-button__link,
.wp-element-button {
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
	letter-spacing: 0.03em;
	text-transform: none;
	cursor: pointer;
}

.wp-block-button .wp-block-button__link:hover,
.wp-element-button:hover {
	box-shadow: 0 4px 12px rgba(13, 31, 60, 0.25);
}

/* Outline variant */
.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	border-width: 2px;
	border-style: solid;
}

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

/* Ghost button (off-white border on dark surfaces) */
.btn-ghost,
.is-style-ghost .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--off-white);
	border: 2px solid var(--wp--preset--color--off-white);
}

.btn-ghost:hover,
.is-style-ghost .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--off-white);
	color: var(--wp--preset--color--navy);
}

/* ---------- Image treatments ---------- */

.wp-block-image img {
	border-radius: 4px;
}

.wp-block-image.is-style-rounded img {
	border-radius: 50%;
}

.wp-block-cover img.wp-block-cover__image-background {
	border-radius: 0;
}

figure.wp-block-image {
	overflow: hidden;
}

figure.wp-block-image img {
	transition: transform 0.5s ease;
}

figure.wp-block-image:hover img {
	transform: scale(1.03);
}

/* ---------- Separator / HR ---------- */

.wp-block-separator {
	border: none;
	opacity: 1;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	width: 80px;
	height: 2px;
}

.wp-block-separator.is-style-wide {
	height: 2px;
}

/* ---------- Cover block polish ---------- */

.wp-block-cover {
	overflow: hidden;
}

.wp-block-cover .wp-block-cover__inner-container {
	z-index: 10;
}

/* ---------- Columns on mobile ---------- */

@media (max-width: 781px) {
	.wp-block-columns {
		flex-wrap: wrap;
	}
	.wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ---------- Navigation polish ---------- */

.wp-block-navigation .wp-block-navigation-item__content {
	font-weight: 500;
	transition: color 0.3s ease;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--amber);
}

/* Wordmark amber ampersand */
.wp-block-site-title a {
	text-decoration: none;
	color: inherit;
}

/* ---------- Header layout (overlayHero: true, position: sticky/fixed) ---------- */

.wp-site-blocks > header.wp-block-template-part {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
}

.wp-site-blocks > header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	transition: background 0.4s ease;
}

/* Scrolled state — opaque navy surface against off-white body */
body.is-scrolled .wp-site-blocks > header.wp-block-template-part::before {
	background: var(--wp--preset--color--navy);
	box-shadow: 0 1px 0 rgba(232, 160, 32, 0.15);
}

/* Header inner group transitions */
.site-header {
	transition: padding 0.3s ease;
}

.site-header a {
	transition: color 0.3s ease;
}

/* ---------- Mobile hamburger overlay ---------- */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--40);
	align-items: flex-start;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
}

/* ---------- Card & widget styling ---------- */

.widget-card,
.has-card-overlay-background-color {
	border-radius: 4px;
	border-top: 4px solid var(--wp--preset--color--amber);
}

/* Glassmorphism card surface */
.glass-card {
	background: var(--wp--preset--color--card-overlay);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(245, 242, 237, 0.15);
	border-top: 4px solid var(--wp--preset--color--amber);
	border-radius: 4px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

/* Surface cards on light backgrounds */
.surface-card {
	background: var(--wp--preset--color--surface);
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.surface-card:hover {
	box-shadow: 0 8px 24px rgba(13, 31, 60, 0.12);
	transform: translateY(-2px);
}

/* ---------- Form inputs (search, job finder, etc.) ---------- */

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea,
select {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	padding: 0.75rem 1rem;
	border: 1px solid var(--wp--preset--color--surface);
	border-radius: 2px;
	background: transparent;
	color: inherit;
	transition: border-color 0.3s ease;
	width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--wp--preset--color--amber);
}

/* Form labels */
label {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--wp--preset--color--muted-text);
}

/* ---------- WP Search block ---------- */

.wp-block-search .wp-block-search__input {
	border: 1px solid var(--wp--preset--color--surface);
	border-radius: 2px;
	font-family: var(--wp--preset--font-family--body);
}

.wp-block-search .wp-block-search__button {
	background: var(--wp--preset--color--amber);
	color: var(--wp--preset--color--navy);
	border: none;
	border-radius: 2px;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.wp-block-search .wp-block-search__button:hover {
	background: var(--wp--preset--color--amber-dark);
}

/* ---------- Post meta & taxonomy ---------- */

.wp-block-post-date,
.wp-block-post-terms,
.wp-block-post-author {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted-text);
}

.wp-block-post-terms a {
	color: var(--wp--preset--color--amber-dark);
	text-decoration: none;
	transition: color 0.3s ease;
}

.wp-block-post-terms a:hover {
	color: var(--wp--preset--color--amber);
}

/* ---------- Post featured image ---------- */

.wp-block-post-featured-image img {
	border-radius: 4px;
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* ---------- Category & tag cloud ---------- */

.wp-block-categories a,
.wp-block-tag-cloud a {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	transition: color 0.3s ease;
}

.wp-block-categories a:hover,
.wp-block-tag-cloud a:hover {
	color: var(--wp--preset--color--amber);
}

/* ---------- Tables ---------- */

.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table td,
.wp-block-table th {
	border-bottom: 1px solid var(--wp--preset--color--surface);
	padding: 0.75rem 1rem;
	text-align: left;
}

.wp-block-table thead th {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	color: var(--wp--preset--color--navy);
	border-bottom-width: 2px;
	border-bottom-color: var(--wp--preset--color--amber);
}

/* ---------- Details / accordion ---------- */

.wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--surface);
	padding-block: var(--wp--preset--spacing--30);
}

.wp-block-details summary {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	color: var(--wp--preset--color--amber);
	transition: transform 0.3s ease;
}

.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

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

footer.wp-block-template-part a {
	text-decoration: none;
	transition: color 0.3s ease;
}

footer.wp-block-template-part a:hover {
	color: var(--wp--preset--color--amber);
}

/* ---------- Amber rule utility ---------- */

.amber-rule {
	border: none;
	height: 2px;
	width: 80px;
	background-color: var(--wp--preset--color--amber);
}

/* ---------- Selection ---------- */

::selection {
	background-color: var(--wp--preset--color--amber);
	color: var(--wp--preset--color--navy);
}

/* ---------- Smooth scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* ---------- Focus for accessibility ---------- */

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

/* ---------- Loop layout utilities ---------- */

/* Horizontal scrollable rail */
.wp-block-query.is-style-loop-rail .wp-block-post-template {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: var(--wp--preset--spacing--20);
}
.wp-block-query.is-style-loop-rail .wp-block-post-template > * {
	flex: 0 0 320px;
	scroll-snap-align: start;
}

/* Compact list with hairline row dividers */
.wp-block-query.is-style-loop-list .wp-block-post-template > * {
	border-bottom: 1px solid var(--wp--preset--color--surface);
	padding-block: var(--wp--preset--spacing--30);
}
.wp-block-query.is-style-loop-list .wp-block-post-template > *:last-child {
	border-bottom: 0;
}

/* Zigzag — flip the columns inside every even entry */
.wp-block-query.is-style-loop-zigzag .wp-block-post-template > *:nth-child(even) .wp-block-columns {
	flex-direction: row-reverse;
}

/* Timeline — vertical line with node markers per entry */
.wp-block-query.is-style-loop-timeline .wp-block-post-template {
	position: relative;
	padding-inline-start: 2.5rem;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template::before {
	content: '';
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0.5rem;
	width: 2px;
	background: var(--wp--preset--color--amber);
	opacity: 0.25;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template > * {
	position: relative;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template > *::before {
	content: '';
	position: absolute;
	inset-inline-start: -2.25rem;
	inset-block-start: 0.6rem;
	width: 1rem;
	height: 1rem;
	border: 2px solid var(--wp--preset--color--amber);
	border-radius: 50%;
	background: var(--wp--preset--color--off-white);
}

/* Magazine — first child spans 2 columns of the grid */
.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
	grid-column: span 2;
}
@media (max-width: 600px) {
	.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
		grid-column: auto;
	}
}