/*
Theme Name: Novamation Academy
Theme URI: https://novamation.in
Description: Child theme of Twenty Twenty-Five for Novamation Academy, styled to the brand logo palette (navy #012B81 and orange #FF7906) for a training and education website.
Author: Novamation Academy
Template: twentytwentyfive
Version: 1.1.0
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: novamation-academy
Tags: education, training, block-patterns, full-site-editing
*/

/* Brand underline used by the "Brand underline" heading block style. */
.is-style-brand-underline {
	position: relative;
	padding-bottom: 0.35em;
}

.is-style-brand-underline::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 3.5rem;
	height: 4px;
	border-radius: 2px;
	background-color: var(--wp--preset--color--accent-1);
}

.has-text-align-center.is-style-brand-underline::after {
	left: 50%;
	transform: translateX(-50%);
}

/* Card treatment for course / programme listings. */
.is-style-course-card {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-2) 12%, transparent);
	border-radius: 12px;
	background-color: var(--wp--preset--color--base);
	box-shadow: 0 2px 10px color-mix(in srgb, var(--wp--preset--color--accent-2) 8%, transparent);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.is-style-course-card:hover {
	box-shadow: 0 10px 28px color-mix(in srgb, var(--wp--preset--color--accent-2) 16%, transparent);
	transform: translateY(-2px);
}

/* Keep the site logo crisp and consistently sized in the header. */
.wp-block-site-logo img {
	height: auto;
}

/* Shared academy page components. */
.nova-hero {
	background:
		radial-gradient(circle at 90% 10%, rgba(255, 121, 6, 0.24), transparent 30%),
		linear-gradient(135deg, #00194f 0%, #012b81 100%);
	color: #fff;
}

.nova-hero h1,
.nova-hero h2 {
	color: #fff;
	max-width: 16ch;
}

.nova-hero p {
	max-width: 62ch;
}

.nova-hero-image {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	min-height: clamp(420px, 52vw, 650px);
	position: relative;
}

.nova-hero-image::before {
	background: linear-gradient(90deg, rgba(0, 25, 79, 0.96) 0%, rgba(0, 25, 79, 0.76) 48%, rgba(0, 25, 79, 0.08) 78%);
	content: "";
	inset: 0;
	position: absolute;
}

.nova-hero-image > * {
	max-width: 48%;
	position: relative;
	z-index: 1;
}

.nova-page-banner {
	margin-block: 0;
	max-width: 1180px;
	padding-top: var(--wp--preset--spacing--50);
}

.nova-page-banner img {
	aspect-ratio: 16 / 7;
	border-radius: 16px;
	box-shadow: 0 12px 36px rgba(1, 43, 129, 0.15);
	display: block;
	object-fit: cover;
	width: 100%;
}

.nova-page-banner figcaption {
	color: var(--wp--preset--color--accent-4);
	font-size: 0.85rem;
	margin-top: 0.65rem;
	text-align: center;
}

.nova-media-gallery img {
	aspect-ratio: 16 / 10;
	border-radius: 12px;
	object-fit: cover;
}

.nova-media-gallery figure {
	overflow: hidden;
}

.nova-video-placeholder {
	background: var(--wp--preset--color--accent-5);
	border: 2px dashed rgba(1, 43, 129, 0.3);
	border-radius: 14px;
	padding: clamp(2.5rem, 7vw, 5rem) var(--wp--preset--spacing--40);
}

.nova-kicker {
	color: #ffb36f;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.nova-section {
	padding-block: clamp(3rem, 7vw, 6rem);
}

.nova-section-light {
	background-color: var(--wp--preset--color--accent-5);
}

.nova-card-grid > .wp-block-column,
.nova-card {
	border: 1px solid rgba(1, 43, 129, 0.12);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 4px 20px rgba(1, 43, 129, 0.07);
	padding: clamp(1.4rem, 3vw, 2rem);
}

.nova-card-grid > .wp-block-column {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nova-card-grid > .wp-block-column:hover {
	box-shadow: 0 12px 32px rgba(1, 43, 129, 0.14);
	transform: translateY(-4px);
}

.nova-card-grid h3 {
	font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.nova-checklist {
	list-style: none;
	padding-left: 0;
}

.nova-checklist li {
	margin-block: 0.65rem;
	padding-left: 1.7rem;
	position: relative;
}

.nova-checklist li::before {
	color: var(--wp--preset--color--accent-1);
	content: "✓";
	font-weight: 800;
	left: 0;
	position: absolute;
}

.nova-number {
	align-items: center;
	background: var(--wp--preset--color--accent-1);
	border-radius: 50%;
	color: var(--wp--preset--color--contrast);
	display: inline-flex;
	font-weight: 800;
	height: 2.4rem;
	justify-content: center;
	width: 2.4rem;
}

.nova-cta {
	background: linear-gradient(135deg, #012b81, #00194f);
	border-radius: 18px;
	color: #fff;
}

.nova-cta h2,
.nova-cta h3 {
	color: #fff;
}

/* Footer. */
.nova-footer {
	background-color: var(--wp--preset--color--accent-3);
	color: #dbe4f5;
}

.nova-footer h3 {
	color: #fff;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	margin-bottom: 0.9rem;
	text-transform: uppercase;
}

.nova-footer p {
	color: #c9d6ee;
}

/* The supplied logo has a white background, so give it a deliberate badge on dark navy. */
.nova-footer-logo img {
	background-color: #fff;
	border-radius: 10px;
	padding: 8px 10px;
}

.nova-footer-list {
	list-style: none;
	padding-left: 0;
}

.nova-footer-list li {
	margin-block: 0.5rem;
}

.nova-footer a {
	color: #dbe4f5;
	text-decoration: none;
}

.nova-footer a:hover,
.nova-footer a:focus {
	color: var(--wp--preset--color--accent-1);
	text-decoration: underline;
}

.nova-footer .wp-block-button__link:hover {
	color: var(--wp--preset--color--contrast);
}

.nova-footer-rule {
	background-color: rgba(255, 255, 255, 0.18);
	border: 0;
	height: 1px;
	margin-block: clamp(2rem, 4vw, 3rem);
}

.nova-footer-bottom p {
	margin: 0;
}

.nova-footer-bottom .nova-cookie-settings {
	cursor: pointer;
}

.nova-footer-address {
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	margin-top: 1.5rem;
	padding-top: 1.25rem;
}

.nova-footer-address p {
	font-size: 0.95rem;
	line-height: 1.7;
	margin-block: 0.6rem;
}

/* Address and map on the contact page. */
.nova-address-card {
	border-left: 4px solid var(--wp--preset--color--accent-1);
}

.nova-address-card p {
	line-height: 1.7;
}

/* Let the map span the wide container instead of the narrow content column. */
.nova-map-section .nova-map-embed {
	max-width: none;
	width: 100%;
}

.nova-map-embed {
	border: 1px solid rgba(1, 43, 129, 0.15);
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(1, 43, 129, 0.1);
	line-height: 0;
	overflow: hidden;
}

.nova-map-embed iframe {
	display: block;
	width: 100%;
}

/* Contact form. */
.nova-form-card {
	background: #fff;
	border: 1px solid rgba(1, 43, 129, 0.12);
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(1, 43, 129, 0.07);
	padding: clamp(1.4rem, 3vw, 2rem);
}

.nova-form-card .formlayer-label {
	color: var(--wp--preset--color--accent-2);
	font-weight: 600;
}

.nova-form-card .formlayer-input,
.nova-form-card select.formlayer-input,
.nova-form-card textarea.formlayer-input {
	border: 1px solid rgba(1, 43, 129, 0.25);
	border-radius: 6px;
	padding: 0.7rem 0.85rem;
	width: 100%;
}

.nova-form-card .formlayer-input:focus {
	border-color: var(--wp--preset--color--accent-2);
	outline: 2px solid rgba(255, 121, 6, 0.35);
}

.nova-form-card .formlayer-submit-btn,
.nova-form-card button[type="submit"] {
	background-color: var(--wp--preset--color--accent-2);
	border: 0;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	padding: 0.9rem 2rem;
}

.nova-form-card .formlayer-submit-btn:hover,
.nova-form-card button[type="submit"]:hover {
	background-color: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--contrast);
}

.nova-form-card .required-indicator {
	color: var(--wp--preset--color--accent-7);
}

@media (max-width: 900px) {
	.nova-hero {
		text-align: left;
	}

	.nova-hero-image {
		background-position: 62% center;
		min-height: 520px;
	}

	.nova-hero-image::before {
		background: linear-gradient(90deg, rgba(0, 25, 79, 0.98), rgba(0, 25, 79, 0.76));
		content: "";
		inset: 0;
		position: absolute;
	}

	.nova-hero-image > * {
		max-width: 100%;
	}

	.nova-page-banner img {
		aspect-ratio: 4 / 3;
	}

	.wp-block-site-logo img {
		max-width: 140px;
	}

	.nova-header-cta {
		display: none;
	}

	.nova-hero .wp-block-buttons {
		align-items: stretch;
		flex-direction: column;
	}

	.nova-hero .wp-block-button,
	.nova-hero .wp-block-button__link {
		box-sizing: border-box;
		width: 100%;
	}
}
