/*
Theme Name: Alexander Spencer Concept
Theme URI: https://www.sandhurstdigital.com.au
Author: Sandhurst Digital
Author URI: https://www.sandhurstdigital.com.au
Description: Concept theme for the Alexander Spencer online tax demo.
Version: 1.1.0
Text Domain: as-concept
*/

:root {
	--as-navy: #02183b;
	--as-navy-deep: hsla(218.57, 93%, 12%, 1);
	--as-nav-hover: #214a86;
	--as-ink: #1a1a1a;
	--as-muted: #5a6570;
	--as-paper: #f8fafd;
	--as-line: #d7dee8;
	--as-white: #ffffff;
	--as-max: 1120px;
	--as-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--as-font);
	font-weight: 300;
	color: var(--as-ink);
	background: var(--as-paper);
	line-height: 1.55;
}

a {
	color: var(--as-nav-hover);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.as-wrap {
	width: min(100% - 2.5rem, var(--as-max));
	margin-inline: auto;
}

.as-site-header {
	background: var(--as-navy-deep);
	color: var(--as-white);
	padding: 0.9rem 0;
	position: sticky;
	top: 0;
	z-index: 40;
}

.as-site-header .as-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.as-brand {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	color: inherit;
	text-decoration: none;
}

.as-brand:hover {
	text-decoration: none;
}

.as-logo {
	width: auto;
	object-fit: contain;
}

.as-logo-white {
	height: 42px;
	width: auto;
}

.as-brand-tag {
	font-size: 0.72rem;
	opacity: 0.7;
	letter-spacing: 0.02em;
}

.as-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.as-nav a {
	color: var(--as-white);
	font-size: 0.92rem;
	text-decoration: none;
}

.as-nav a:hover,
.as-nav a[aria-current="page"] {
	text-decoration: underline;
}

.as-hero {
	position: relative;
	color: var(--as-white);
	min-height: min(78vh, 640px);
	display: flex;
	align-items: flex-end;
	padding: 4.5rem 0 3.5rem;
	background-color: var(--as-navy);
	background-image:
		linear-gradient(105deg, hsla(218.57, 93%, 12%, 0.92) 0%, hsla(218.57, 80%, 14%, 0.72) 48%, hsla(218.57, 70%, 18%, 0.45) 100%),
		var(--as-hero-image);
	background-size: cover;
	background-position: center 30%;
}

.as-hero-inner {
	width: min(100% - 2.5rem, var(--as-max));
	margin-inline: auto;
}

.as-hero-copy {
	max-width: 36rem;
}

.as-eyebrow {
	margin: 0 0 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.78rem;
	opacity: 0.8;
	font-weight: 500;
}

.as-hero h1 {
	margin: 0 0 0.85rem;
	font-size: clamp(2rem, 4.4vw, 3.15rem);
	font-weight: 600;
	line-height: 1.12;
}

.as-hero p {
	margin: 0 0 1.5rem;
	font-size: 1.05rem;
	opacity: 0.92;
}

.as-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.as-btn {
	display: inline-block;
	background: var(--as-white);
	color: var(--as-navy);
	padding: 0.75rem 1.25rem;
	border-radius: 2px;
	font-weight: 600;
	text-decoration: none;
	border: 0;
	cursor: pointer;
}

.as-btn:hover {
	background: #e8eef7;
	text-decoration: none;
}

.as-btn-secondary {
	background: transparent;
	color: var(--as-white);
	border: 1px solid rgba(255, 255, 255, 0.55);
}

.as-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.08);
}

.as-btn-navy {
	background: var(--as-navy-deep);
	color: var(--as-white);
}

.as-btn-navy:hover {
	background: var(--as-nav-hover);
	color: var(--as-white);
}

.as-section {
	padding: 3.5rem 0;
}

.as-section h2 {
	margin: 0 0 0.75rem;
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--as-navy);
}

.as-section .lead {
	margin: 0 0 1.5rem;
	color: var(--as-muted);
	max-width: 48ch;
}

.as-split {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 2rem;
	align-items: center;
}

.as-split-media {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(2, 24, 59, 0.14);
}

.as-split-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 360px;
}

.as-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
}

.as-card {
	background: var(--as-white);
	border: 1px solid var(--as-line);
	border-radius: 14px;
	padding: 1.1rem 1.2rem;
}

.as-card h3 {
	margin: 0 0 0.35rem;
	font-size: 1.02rem;
	color: var(--as-navy);
}

.as-card p {
	margin: 0;
	color: var(--as-muted);
	font-size: 0.95rem;
}

.as-section-band {
	background: #eef3f9;
	border-top: 1px solid var(--as-line);
	border-bottom: 1px solid var(--as-line);
}

.as-band {
	display: grid;
	gap: 1rem;
	justify-items: start;
	max-width: 48rem;
}

.as-band-logo {
	height: 52px;
	width: auto;
}

.as-band p {
	margin: 0;
	color: var(--as-muted);
	font-size: 1.05rem;
}

.as-page-hero {
	background: var(--as-navy-deep);
	color: var(--as-white);
	padding: 2.75rem 0 2.25rem;
}

.as-page-hero-tax {
	background-image:
		linear-gradient(105deg, hsla(218.57, 93%, 12%, 0.9) 0%, hsla(218.57, 80%, 14%, 0.78) 55%, hsla(218.57, 70%, 18%, 0.55) 100%),
		var(--as-hero-image);
	background-size: cover;
	background-position: center;
	padding: 3.25rem 0 2.75rem;
}

.as-page-hero-mark {
	height: 36px;
	width: auto;
	margin-bottom: 1rem;
	opacity: 0.95;
}

.as-page-hero h1 {
	margin: 0 0 0.4rem;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.as-page-hero p {
	margin: 0;
	opacity: 0.85;
	max-width: 50ch;
}

.as-content {
	padding: 2.5rem 0 4rem;
}

.as-content .as-panel {
	background: var(--as-white);
	border: 1px solid var(--as-line);
	border-radius: 16px;
	padding: 1.5rem 1.5rem 1.75rem;
}

.as-site-footer {
	background: var(--as-navy-deep);
	color: rgba(255, 255, 255, 0.82);
	padding: 2.4rem 0;
	font-size: 0.92rem;
}

.as-footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 0.9fr 1fr;
	gap: 1.75rem;
	align-items: start;
}

.as-logo-footer {
	height: 40px;
	width: auto;
	margin-bottom: 0.85rem;
}

.as-footer-brand p,
.as-footer-note p {
	margin: 0 0 0.55rem;
}

.as-footer-badges {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.as-footer-badges img {
	width: 88px;
	height: auto;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 10px;
	padding: 0.35rem;
}

/* Gravity Forms polish */
.gform_wrapper.gravity-theme .gform_heading,
.gform_wrapper .gform_title {
	color: var(--as-navy);
}

.gform_wrapper.gravity-theme .gform_button,
.gform_wrapper .gform_button {
	background: var(--as-navy) !important;
	border-color: var(--as-navy) !important;
	color: #fff !important;
	padding: 0.7rem 1.3rem !important;
	border-radius: 2px !important;
}

.gform_wrapper .gfield_label {
	color: var(--as-navy);
	font-weight: 600;
}

.gform_wrapper .gsection_title {
	color: var(--as-navy);
	border-bottom: 1px solid var(--as-line);
	padding-bottom: 0.35rem;
}

@media (max-width: 900px) {
	.as-split,
	.as-footer-grid {
		grid-template-columns: 1fr;
	}

	.as-split-media img {
		min-height: 260px;
	}
}

@media (max-width: 720px) {
	.as-site-header .as-wrap {
		flex-direction: column;
		align-items: flex-start;
	}

	.as-logo-white {
		height: 36px;
	}
}
