:root {
	/* 0–100: how far the leaves swing toward 0deg at the midpoint (100 = full swing to 0) */
	--wind-percent: 30;
}

body {
	margin: 0px;
	padding: 0px;
	background-attachment: fixed;
	background-image: url(AQ_BG_2.jpg);
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #333091;
}
img {
	border: none;
	max-width: 100%;
	height: auto;
}
/* Logo images need fixed dimensions - don't let max-width collapse them */
.logoleaf,
.logotext,
.service-icon {
	max-width: none;
}
#header {
	height: 110px;
	min-height: 110px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	align-content: center;
	padding: 0 1rem;
	border-radius: 5px 5px 0 0;
}
.aer-tagline {
	flex: 1 1 30%;
	min-width: 30%;
	color: #ffffff;
	font-size: 18px;
	font-style: italic;
	margin: 0 0 0 1.5rem;
	line-height: 1.5;
	display: flex;
	align-items: center;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.logo-wrap {
	position: relative;
	display: block;
	flex-shrink: 0;
	min-width: 280px;
	min-height: 95px;
}
.logoleaf {
	position: absolute;
	top: 15px;
	left: 20px;
	width: 60px;
	height: 60px;
	transform-origin: 90% 90%;
}
.logotext {
	position: absolute;
	top: 47px;
	left: 75px;
	width: 200px;
}
.leaf1 {
	animation: leaf1-anim 15s ease-in-out infinite;
}
.leaf2 {
	animation: leaf2-anim 15s ease-in-out infinite;
}
.leaf3 {
	animation: leaf3-anim 15s ease-in-out infinite;
}
.leaf4 {
	
}
.leaf5 {
	animation: leaf5-anim 15s ease-in-out infinite;
}
.leaf6 {
	animation: leaf6-anim 15s ease-in-out infinite;
}
.leaf7 {
	animation: leaf7-anim 15s ease-in-out infinite;
}

@keyframes leaf1-anim {
	0%, 100% {transform: rotate(-90deg); opacity: 0.3; scale: 0.8;}
	50% {transform: rotate(calc(-90deg + 90deg * var(--wind-percent) / 100)); opacity: calc(0.3 + 0.7 * var(--wind-percent) / 100); scale: calc(0.8 + 0.2 * var(--wind-percent) / 100); }
}
@keyframes leaf2-anim {
	0%, 100% {transform: rotate(-60deg); opacity: 0.5; scale: 0.9;}
	50% {transform: rotate(calc(-60deg + 60deg * var(--wind-percent) / 100)); opacity: calc(0.5 + 0.5 * var(--wind-percent) / 100); scale: calc(0.9 + 0.1 * var(--wind-percent) / 100); }
}
@keyframes leaf3-anim {
	0%, 100% {transform: rotate(-30deg); opacity: 0.75; scale: 0.95;}
	50% {transform: rotate(calc(-30deg + 30deg * var(--wind-percent) / 100)); opacity: calc(0.75 + 0.25 * var(--wind-percent) / 100); scale: calc(0.95 + 0.05 * var(--wind-percent) / 100); }
}
@keyframes leaf5-anim {
	0%, 100% {transform: rotate(25deg); opacity: 0.75; scale: 0.95;}
	50% {transform: rotate(calc(25deg - 25deg * var(--wind-percent) / 100)); opacity: calc(0.75 + 0.25 * var(--wind-percent) / 100); scale: calc(0.95 + 0.05 * var(--wind-percent) / 100); }
}
@keyframes leaf6-anim {
	0%, 100% {transform: rotate(50deg); opacity: 0.5; scale: 0.9;}
	50% {transform: rotate(calc(50deg - 50deg * var(--wind-percent) / 100)); opacity: calc(0.5 + 0.5 * var(--wind-percent) / 100); scale: calc(0.9 + 0.1 * var(--wind-percent) / 100); }
}
@keyframes leaf7-anim {
	0%, 100% {transform: rotate(75deg); opacity: 0.3; scale: 0.8;}
	50% {transform: rotate(calc(75deg - 75deg * var(--wind-percent) / 100)); opacity: calc(0.3 + 0.7 * var(--wind-percent) / 100); scale: calc(0.8 + 0.2 * var(--wind-percent) / 100); }
}
/* Logo wind animation - blowing effect */
@media (prefers-reduced-motion: reduce) {
	.logo-animated { animation: none; }
}

#wrapper {
	width: 100%;
	max-width: 950px;
	margin: 0 auto;
	padding: 0 1rem;
	box-sizing: border-box;
}
#header {
	margin: 0px;
	padding: 0px;
	vertical-align: top;
}
.l_float {
	float: left;
}
.r_float {
	float: right;
}
.clear {
	clear: both;
}
ul#navbar {
	background-color: #333091;
	width: 100%;
	max-width: 950px;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
	padding: 0 0.75rem;
	min-height: 44px;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	-moz-border-radius-bottomright: 5px;
	-moz-border-radius-bottomleft: 5px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 10px;
	margin-left: 0px;
	box-sizing: border-box;
	align-items: stretch;
}
#navbar li {
	list-style-type: none;
	margin: 0;
	float: none;
}
#navbar li a {
	display: flex;
	align-items: center;
	padding: 0.75rem 1.25rem;
	color: #ffffff;
	text-decoration: none;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 600;
	transition: background-color 0.2s ease, color 0.2s ease;
	border-radius: 4px;
}
#navbar li a:hover {
	background-color: rgba(255, 255, 255, 0.15);
	color: #ffffff;
}
#navbar li a.active {
	background-color: rgba(255, 255, 255, 0.2);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.margin_top {
	margin-top: 10px;
}
#content > img:first-child {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px;
}
#content {
	display: block;
	width: 100%;
	max-width: 930px;
	background-color: #ffffffB5; 
	border-radius: 5px;
	-moz-border-radius: 5px;
	padding: 10px 1rem 1rem;
	box-sizing: border-box;
}
#content #type,
#content .content-main {
	width: 100%;
	max-width: 100%;
	display: block;
	opacity: 1;
	font-size: 14px;
	line-height: 1.6;
}
#content .intro {
	margin-bottom: 2rem;
}
#content .intro .lead {
	font-size: 1.1rem;
	font-weight: 600;
	color: #2d2870;
	margin-bottom: 1rem;
}
#content .services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
	margin-bottom: 2rem;
}
#content .service-card {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	background: linear-gradient(135deg, #f8f7fc 0%, #ffffff 100%);
	border: 1px solid #e8e5f5;
	border-radius: 8px;
	padding: 1.25rem;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
#content .service-card:hover {
	box-shadow: 0 2px 8px rgba(51, 48, 145, 0.15);
	transform: translateY(3px);
}
#content .service-icon {
	width: 36px;
	height: 36px;
	opacity: 0.85;
	margin-bottom: 0.75rem;
}
#content .service-card h3 {
	font-size: 1rem;
	font-weight: 600;
	color: #333091;
	margin: 0 0 0.5rem;
}
#content .service-card p {
	font-size: 0.9rem;
	line-height: 1.5;
	margin: 0;
	padding: 0;
}
#content .closing {
	background: linear-gradient(90deg, rgba(51, 48, 145, 0.06) 0%, transparent 100%);
	border-left: 4px solid #333091;
	padding: 1rem 1.25rem;
	margin-bottom: 2rem;
	border-radius: 0 6px 6px 0;
}
#content .closing-link {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
#content .closing-link:hover {
	box-shadow: 0 2px 8px rgba(51, 48, 145, 0.15);
	transform: translateY(3px);
}
#content .closing p {
	margin: 0 0 0.75rem;
}
#content .closing p:last-child {
	margin-bottom: 0;
}
#content .content-logo-wrap {
	margin-top: 1.5rem;
}
#content .content-logo {
	max-width: 280px;
}

/* About page */
#content .about-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
	margin-bottom: 2rem;
}
#content .contact-card {
	background: linear-gradient(135deg, #f8f7fc 0%, #ffffff 100%);
	border: 1px solid #e8e5f5;
	border-radius: 8px;
	padding: 1.5rem;
	margin-top: 1rem;
}
#content .contact-card h3 {
	font-size: 1rem;
	font-weight: 600;
	color: #333091;
	margin: 0 0 1rem;
}
#content .contact-card p {
	margin: 0 0 0.5rem;
}
#content .contact-card p:last-child {
	margin-bottom: 0;
}
#content #feeds {
	display: none;
}
#content h1 {
	padding: 0px;
	margin: 0px;
	font-size: 17px;
	font-weight: bold;
	padding-left: 30px;
	padding-right: 30px;
	padding-top: 20px;
}
#footer {
	background-color: #333091;
	text-align: center;
	vertical-align: middle;
	display: block;
	width: 100%;
	max-width: 950px;
	font-size: 9px;
	color: #FFFFFF;
	padding: 10px 1rem 50px;
	margin-top: 10px;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	-moz-border-radius-topright: 5px;
	-moz-border-radius-topleft: 5px;
	box-sizing: border-box;
}
#footer a, #footer a.quote {
	font-weight: bold;
	color: #FFFFFF;
	text-decoration: none;
}
#footer a.quote {
	font-size: 16px;
}
#footer a:hover, #footer a.quote:hover {
	text-decoration: underline;
}

#content .intro p,
#content .closing p {
	font-size: 14px;
	line-height: 1.7;
	padding-left: 0;
	padding-right: 0;
}
#content .l_float p {
	font-size: 14px;
	line-height: 1.7;
	padding-left: 30px;
	padding-right: 30px;
}
#content .l_float ul li {
	font-size: 12px;
	line-height: 2em;
	padding-left: 30px;
	padding-right: 30px;
	list-style-position: inside;
	list-style-type: circle;
}
#enq_form table {
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
}
#enq_form table td {
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
	font-size: 12px;
}
#enq_form h2 {
	font-size:14px;
	font-weight:bold;
}

#form_contact, #form_quote, #form_submit {
	display:none;
}

/* Contact form */
.contact-page .intro h1 {
	font-size: 1.5rem;
	color: #333091;
	margin: 0 0 0.5rem;
}
.contact-form {
	max-width: 500px;
	margin: 2rem 0;
}
.contact-form .form-group {
	margin-bottom: 1.25rem;
}
.contact-form label {
	display: block;
	font-weight: 600;
	font-size: 0.95rem;
	color: #333091;
	margin-bottom: 0.35rem;
}
.contact-form .required {
	color: #c00;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"],
.contact-form textarea {
	width: 100%;
	padding: 0.6rem 0.75rem;
	font-size: 1rem;
	font-family: inherit;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: #333091;
	box-shadow: 0 0 0 2px rgba(51, 48, 145, 0.2);
}
.contact-form .btn-submit {
	background: #333091;
	color: #fff;
	border: none;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s ease;
}
.contact-form .btn-submit:hover {
	background: #4a3d8a;
}
.form-message {
	padding: 1rem 1.25rem;
	border-radius: 6px;
	margin-bottom: 1.5rem;
}
.form-success {
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
	color: #2e7d32;
}
.form-error {
	background: #ffebee;
	border: 1px solid #ef9a9a;
	color: #c62828;
}
.contact-info {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e8e5f5;
}

/* Mobile responsive */
@media (max-width: 768px) {
	#content .services-grid,
	#content .about-cards {
		grid-template-columns: 1fr;
	}
	#content .closing {
		padding: 0.75rem 1rem;
	}
	#wrapper {
		padding: 0 0.75rem;
	}
	#header {
		height: auto;
		min-height: 80px;
		flex-wrap: wrap;
		padding: 0.75rem;
	}
	.logo-wrap {
		min-width: 200px;
		min-height: 55px;
	}
	.aer-tagline {
		flex: 1 1 100%;
		min-width: 100%;
		margin: 0.5rem 0 0 0;
		font-size: 10px;
		justify-content: center;
		text-align: center;
	}
	.logoleaf {
		width: 40px;
		height: 40px;
		top: 10px;
		left: 10px;
	}
	.logotext {
		width: 130px;
		top: 32px;
		left: 50px;
	}
	#content .l_float p,
	#content .l_float ul li {
		padding-left: 15px;
		padding-right: 15px;
	}
	#footer {
		font-size: 8px;
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}
}

/* Logo for about page (950-header.png) - scale on mobile */
@media (max-width: 768px) {
	.logo-animated {
		width: 100%;
		max-width: 100%;
		height: auto;
	}
}
