/*
Theme Name: Essential Software
Template: aw-base
Description: Child theme for essentialsoftware.com.au. Applies Essential Software brand guide v1.0. PROVISIONAL: the website design system is still to be agreed, so colours, type and spacing here are expected to change.
Version: 0.1.0
Text Domain: aw
*/

/* ---------- Type ---------- */
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-latin-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Brand tokens (brand guide v1.0) mapped onto the aw-base --aw-* system ---------- */
:root {
	--es-ink: #0b1f33;
	--es-deep: #063b73;
	--es-blue: #2f80ed;
	--es-blue-dark: #1f61b7;
	--es-mute: #3d4f61;
	--es-line: #dbe4ec;
	--es-surface: #f4f7fa;

	--aw-color-bg: #ffffff;
	--aw-color-text: var(--es-ink);
	--aw-color-muted: var(--es-mute);
	--aw-color-border: var(--es-line);
	/* Deep Blue for buttons and links: 11.2:1 on white. Blue (#2f80ed) is 3.9:1, large text only. */
	--aw-color-accent: var(--es-deep);
	--aw-color-accent-text: #ffffff;
	--aw-color-secondary: var(--es-blue-dark);
	--aw-color-secondary-text: #ffffff;
	--aw-color-surface: var(--es-surface);
	--aw-color-inverted-bg: var(--es-ink);
	--aw-color-inverted-text: #eef3f8;
	--aw-color-link: var(--es-deep);

	--aw-font-body: "Inter", Arial, system-ui, sans-serif;
	--aw-font-heading: var(--aw-font-body);
	--aw-font-weight-heading: 600;
	--aw-letter-spacing-heading: -0.015em;
	--aw-line-height: 1.6;

	--aw-radius: 0.5rem;
	--aw-button-radius: 0.375rem;
	--aw-button-padding: 0.8rem 1.4rem;
	--aw-card-bg: #ffffff;
	--aw-card-padding: 1.5rem;
	--aw-section-heading-align: left;
	--aw-hero-align: left;
	--aw-feature-card-align: left;
	--aw-brand-primary: var(--es-deep);
}

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Header ---------- */
.es-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--es-line);
}
.admin-bar .es-header { top: 32px; }
.es-header { padding-block: 0; }
.es-header .aw-site-header__inner { min-height: 4rem; padding-block: 0.75rem; align-items: center; row-gap: 0; }
.es-logo { display: inline-flex; align-items: center; }
.es-logo img { display: block; height: 36px; width: auto; }
.aw-primary-nav__list a { color: var(--es-ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.aw-primary-nav__list a:hover,
.aw-primary-nav__list a.is-current { color: var(--es-deep); text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 2px; }
.aw-primary-nav__list a:focus-visible { outline: 2px solid var(--es-blue); outline-offset: 3px; border-radius: 2px; }
/* The last menu item is the contact call to action. */
.aw-primary-nav__list > li.es-nav-cta > a {
	background: var(--es-deep);
	color: #ffffff;
	padding: 0.55rem 1rem;
	border-radius: var(--aw-button-radius);
	text-decoration: none;
}
@media (max-width: 48rem) {
	.aw-primary-nav__list { gap: 0; }
	.aw-primary-nav__list > li > a { display: block; padding-block: 0.7rem; }
	.aw-primary-nav__list > li.es-nav-cta { margin-top: 0.5rem; }
}
.aw-primary-nav__list > li.es-nav-cta > a:hover { background: var(--es-ink); color: #ffffff; text-decoration: none; }

/* ---------- Sections ---------- */
/* The one-page front page runs edge to edge: each block is a full-width band
 * with its content centred, instead of sitting in the 44rem entry column. */
.aw-entry--front { max-width: none; padding: 0; }
.aw-entry--front > :not(script):not(style) {
	margin-block: 0 !important; /* block margins left white seams between bands */
	display: flow-root;         /* and so did child margins escaping the band */
	margin-inline: 0;
	max-width: none;
	padding-inline: max(var(--aw-space-sm), calc((100% - 72rem) / 2));
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.aw-entry--front > .es-band + .es-band { padding-top: 0; }
.aw-entry--front > .es-mbs-note-wrap { padding-block: 0 2.5rem; }
.home .aw-site-main > * { scroll-margin-top: 5.5rem; }
.home .entry-title, .home .aw-page-title { display: none; }
.es-band { background: var(--es-surface); }
.wp-block-aw-rich-content h2 { margin-top: 0; }

/* Hero: the gradient icon is display use, which is what the gradient version is for. */
.wp-block-aw-hero .aw-hero__heading { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.12; max-width: 17ch; }
.wp-block-aw-hero .aw-hero__body { font-size: 1.15rem; color: var(--es-mute); max-width: 52ch; }
.wp-block-aw-hero .aw-hero__media img { max-width: 360px; width: 100%; height: auto; margin-inline: auto; display: block; }
/* On a phone the header logo already shows the mark; the big icon only pushed the content down. */
@media (max-width: 48rem) { .wp-block-aw-hero .aw-hero__media { display: none; } }
.es-mbs-note { font-size: 0.95rem; color: var(--es-mute); }
.es-mbs-note a { font-weight: 600; }

/* Modules */
.wp-block-aw-feature-grid .aw-feature-grid__item {
	border: 1px solid var(--es-line);
	border-radius: var(--aw-radius);
	background: #ffffff;
}
.wp-block-aw-feature-grid .aw-feature-grid__item-title { font-size: 1.1rem; margin-bottom: 0.35rem; }
.wp-block-aw-feature-grid .aw-feature-grid__item-text { color: var(--es-mute); font-size: 0.97rem; }
@media (max-width: 36rem) { .wp-block-aw-feature-grid .aw-feature-grid__grid { grid-template-columns: 1fr; } }

/* FAQ */
.wp-block-aw-faq-accordion .aw-faq-accordion__question { font-weight: 600; }

/* Contact */
/* Contact: the band runs full width; the form card keeps a readable width,
 * aligned with the section's text rather than centred. */
.aw-entry--front > .wp-block-aw-contact-form-embed { border: 0; border-radius: 0; box-shadow: none; background: var(--es-surface); }
.wp-block-aw-contact-form-embed .aw-form-wrap {
	max-width: 44rem;
	background: #ffffff;
	border: 1px solid var(--es-line);
	border-radius: var(--aw-radius);
	padding: clamp(1.25rem, 4vw, 2rem);
}
.home .aw-site-main { padding-bottom: 0; margin-bottom: 0; }
.home .aw-entry--front { margin-bottom: 0; }
.es-footer { margin-top: 0; }
.es-contact-direct { color: var(--es-mute); }
.es-contact-direct a { font-weight: 600; }

/* ---------- Footer ---------- */
.es-footer { background: var(--es-ink); color: #c9d5e1; }
.es-footer a { color: #ffffff; }
.es-footer__top { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: center; padding-block: 2.5rem 1.5rem; }
.es-footer__logo img { display: block; height: 33px; width: auto; }
.es-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.es-footer__contact span { display: inline-block; min-width: 4.5rem; color: #9fb1c3; }
.es-footer__legal { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 1.25rem 2rem; font-size: 0.85rem; }
.es-footer__meta { margin: 0; color: #9fb1c3; }
.es-footer__credit, .es-footer__credit a { color: #7f93a7; text-decoration: none; }
.es-footer__credit a:hover { color: #ffffff; }
.es-footer .aw-footer-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.es-footer .aw-footer-nav__list a { color: #c9d5e1; text-decoration: none; }
.es-footer .aw-footer-nav__list a:hover { color: #ffffff; text-decoration: underline; }

/* ---------- Holding page (page-holding.php) ---------- */
.es-holding { background: #ffffff; }
.es-holding__header { padding-block: 1.5rem; }
.es-holding__header .es-logo img { height: 44px; }
.es-holding__main { background: var(--es-deep); color: #ffffff; padding-block: clamp(3rem, 8vw, 6rem); }
.es-holding__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.es-holding__copy { max-width: 38rem; }
.es-holding__copy > * { margin-block: 0; }
.es-holding__eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #b5d6fa; }
.es-holding__copy h1 { color: #ffffff; font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; margin-top: 1rem; }
.es-holding__lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; color: #e3eef9; margin-top: 1.5rem !important; }
/* Each question opens with a hairline rule above it. */
.es-holding__copy h2 { color: #ffffff; font-size: 1.25rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 1.75rem; margin-top: 2.25rem !important; }
.es-holding__lead + h2 { margin-top: 3rem !important; }
.es-holding__copy h2 + p { color: #c9dcf0; margin-top: 0.6rem !important; }

.es-holding__form { background: #ffffff; color: var(--es-ink); border-radius: 0.875rem; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 24px 60px rgba(3, 22, 44, 0.35); }
.es-holding__form h2 { font-size: 1.6rem; font-weight: 700; color: var(--es-deep); margin: 0 0 1.25rem; }
.es-holding__form .aw-form__field label,
.es-holding__form .aw-form__field legend { font-weight: 500; font-size: 0.95rem; color: var(--es-ink); }
.es-holding__form input[type="text"],
.es-holding__form input[type="email"],
.es-holding__form input[type="tel"] { border: 1px solid #b9c7d4; border-radius: 0.5rem; padding: 0.75rem 0.85rem; }
.es-holding__form input:focus-visible { outline: 2px solid var(--es-blue); outline-offset: 1px; border-color: var(--es-deep); }
/* The follow-up choice reads as two large options, as in the approved mockup.
 * The question stays for screen readers. */
.es-holding__form .aw-form__field--radio { border: 0; padding: 0; margin-inline: 0; }
.es-holding__form .aw-form__field--radio legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.es-holding__form .aw-form__radio { display: flex; align-items: center; gap: 0.75rem; border: 1px solid #b9c7d4; border-radius: 0.5rem; padding: 0.85rem 1rem; margin-top: 0.6rem; cursor: pointer; }
.es-holding__form .aw-form__radio label { font-weight: 600; color: var(--es-deep); cursor: pointer; flex: 1; margin: 0; }
.es-holding__form .aw-form__radio input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--es-deep); }
.es-holding__form .aw-form__radio:hover { border-color: var(--es-deep); }
.es-holding__form .aw-form__radio:has(input:checked) { border-color: var(--es-deep); background: #eef5fe; box-shadow: inset 0 0 0 1px var(--es-deep); }
.es-holding__form .aw-form__radio:has(input:focus-visible) { outline: 2px solid var(--es-blue); outline-offset: 2px; }
.es-holding__form button[type="submit"],
.es-holding__form .aw-form__submit { width: 100%; justify-content: center; background: var(--es-deep); color: #ffffff; border-radius: 0.5rem; padding: 0.95rem 1.4rem; font-weight: 600; font-size: 1rem; }
.es-holding__form button[type="submit"]:hover { background: var(--es-ink); }
.es-holding__form button[type="submit"]:focus-visible { outline: 2px solid var(--es-blue); outline-offset: 3px; }
.es-holding__notice { font-size: 0.85rem; color: var(--es-mute); margin: 1rem 0 0; }

.es-holding__footer { padding-block: 1.75rem 2.25rem; font-size: 0.875rem; color: var(--es-mute); }
.es-holding__footer p { margin: 0; }
.es-holding__footer p + p { margin-top: 0.35rem; }
.es-holding__footer a { color: var(--es-mute); }
.es-holding__footer a:hover { color: var(--es-deep); }
.es-holding__footer .es-footer__credit,
.es-holding__footer .es-footer__credit a { color: #7a8a9a; text-decoration: none; }
.es-holding__footer .es-footer__credit a:hover { color: var(--es-deep); }

@media (max-width: 56rem) {
	.es-holding__grid { grid-template-columns: minmax(0, 1fr); }
	.es-holding__copy { max-width: none; }
}
@media (max-width: 36rem) {
	.es-holding__header .es-logo img { height: 36px; }
}

/* Home hero without the icon: text sits on the same left edge as the sections below. */
.aw-entry--front > .wp-block-aw-hero.aw-variant-centered-no-image { max-width: none; margin-inline: 0; text-align: left; }
.wp-block-aw-hero.aw-variant-centered-no-image .aw-hero__content { margin-inline: 0; max-width: 50rem; align-items: flex-start; }
.wp-block-aw-hero.aw-variant-centered-no-image .aw-hero__body { max-width: 40rem; }

/* Holding mode: privacy policy and 404 */
body:has(.es-holding__plain) .es-holding__header { border-bottom: 1px solid var(--es-line); }
.es-holding__plain { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.es-holding__plain-inner { max-width: 46rem; }
.es-holding__plain .wp-block-aw-rich-content { padding: 0; margin: 0; max-width: none; border: 0; background: none; }
.es-holding__plain h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 1.5rem; }
.es-holding__plain + .es-holding__footer { border-top: 1px solid var(--es-line); }

/* Gaps still to be filled in client-supplied text (privacy policy). Visible on purpose. */
mark.es-gap { background: #fff1a8; color: var(--es-ink); padding: 0 0.15em; border-radius: 2px; }
.es-holding__plain h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
.es-holding__plain ul { padding-left: 1.25rem; }
.es-holding__plain li + li { margin-top: 0.35rem; }

/* Holding page fits a laptop screen: the Send button must be visible without
 * scrolling at about 900px of browser height (Mark, Windows Chrome with a
 * bookmarks bar, 7 Oct 2026). Tighter spacing, slightly shorter fields, and
 * the two follow-up choices side by side on wider screens. */
.es-holding__header { padding-block: 0.9rem; }
.es-holding__header .es-logo img { height: 40px; }
.es-holding__main { padding-block: clamp(2rem, 4vw, 3.5rem); }
.es-holding__form { padding: clamp(1.25rem, 2.2vw, 1.75rem) clamp(1.25rem, 2.5vw, 2rem); }
.es-holding__form h2 { font-size: 1.4rem; margin-bottom: 0.9rem; }
.es-holding__form .aw-form__field { margin-bottom: 0.7rem; }
.es-holding__form input[type="text"],
.es-holding__form input[type="email"],
.es-holding__form input[type="tel"] { padding-block: 0.55rem; }
.es-holding__form .aw-form__field--radio { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.9rem; }
.es-holding__form .aw-form__field--radio .aw-form__radio { margin-top: 0; padding: 0.7rem 0.85rem; }
.es-holding__form button[type="submit"] { padding-block: 0.85rem; }
.es-holding__notice { margin-top: 0.75rem; }
@media (max-width: 30rem) {
	.es-holding__form .aw-form__field--radio { grid-template-columns: 1fr; }
}
