/* Australia Quality Group — Atelier Light (premium serif, light ground).
   Third concept, derived from the homepage layout. The layout and responsive
   behaviour are unchanged; the theme is re-cut through the tokens below.
   The page sits on a warm ivory rather than white, and keeps two deep navy
   bands plus one tinted panel so the design stays balanced. */

html, body { height: 100%; margin: 0; }
#page, #page > .page-host { height: 100%; }

/* ---------- design system ---------- */
:root {
  /* client palette */
  --background: #FFFFFF;
  --background-alt: #F0F8FC;
  --text: #102E43;
  --highlight: #008BC5;
  --primary-button: #007FB5;
  --dark-section: #073B59;
  --accent: #43C3EB;
  --border: #D5E8F2;
  --button-text: #FFFFFF;

  /* design-system tokens, expressed in that palette */
  --color-bg: var(--background);
  --color-bg-alt: var(--background-alt);
  --color-surface: var(--background-alt);
  --color-text: var(--text);
  --color-divider: var(--border);
  --color-highlight: var(--highlight);

  /* neutrals are tints of the text navy (all AA on both backgrounds);
     100 stays white — it is the text colour on the dark sections */
  --color-neutral-100: #FFFFFF;
  --color-neutral-200: var(--background-alt);
  --color-neutral-300: var(--border);
  --color-neutral-400: #586d7b;
  --color-neutral-500: #586d7b;
  --color-neutral-600: #4c6272;
  --color-neutral-700: #4c6272;
  --color-neutral-800: #344d5f;
  --color-neutral-900: var(--text);

  /* blues: 400 labels the dark sections, 700 is the blue used on light
     backgrounds, 900 is the dark section itself */
  --color-accent: var(--primary-button);
  --color-accent-2: var(--accent);
  --color-accent-100: var(--background-alt);
  --color-accent-200: var(--border);
  --color-accent-300: var(--border);
  --color-accent-400: var(--accent);
  --color-accent-500: var(--accent);
  --color-accent-600: var(--highlight);
  --color-accent-700: var(--primary-button);
  --color-accent-800: var(--dark-section);
  --color-accent-900: var(--dark-section);

  --font-heading: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --space-1: 3.4px; --space-2: 6.8px; --space-3: 10.2px; --space-4: 13.6px;
  --space-6: 20.4px; --space-8: 27.2px;
  --radius-sm: 2px; --radius-md: 4px; --radius-lg: 7px;
  --shadow-sm: 0 1px 2px rgba(7,59,89,.08);
  --shadow-md: 0 6px 18px rgba(7,59,89,.10);
  --shadow-lg: 0 18px 44px rgba(7,59,89,.14);
}
body { background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }
.blueprint { position: relative; border: 1px solid var(--color-divider); border-radius: 0px; }
.blueprint.duotone { overflow: visible; }
.blueprint > .corner { position: absolute; width: 11px; height: 11px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.blueprint > .corner::before, .blueprint > .corner::after { content: ""; position: absolute; background: currentcolor; }
.blueprint > .corner::before { left: 5px; top: 0px; width: 1px; height: 100%; }
.blueprint > .corner::after { top: 5px; left: 0px; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }
.duotone { position: relative; overflow: hidden; }
.duotone::after { content: ""; position: absolute; inset: 0px; pointer-events: none; background: var(--color-accent); mix-blend-mode: color; }
*, ::before, ::after { box-sizing: border-box; }
body { margin: 0px; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2); }
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; }
h6 { letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0px; }
figcaption { font-size: 11px; margin-top: var(--space-1); color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 14px; line-height: 1.2; color: var(--color-text); background: transparent; border: 1px solid transparent; padding: var(--space-2) calc(var(--space-3) * 1.2); border-radius: var(--radius-md); }
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.tag { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: 0.02em; padding: 3px 10px; border-radius: calc(var(--radius-md) * 0.75); }
.btn, .tag { border-radius: 0px; }
.btn { border: 1px solid var(--color-divider); }
.btn-primary { border-color: var(--color-accent); }

/* ---------- page ---------- */
body { margin: 0px; background: var(--color-bg); }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-900); }
@keyframes aqgRule { 
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}
@media (max-width: 1180px) {
  .aqg-tagline { display: none; }
}
@media (max-width: 1080px) {
  .aqg-nav { gap: 20px !important; }
  .aqg-header { gap: 24px !important; }
}
@media (max-width: 1000px) {
  .aqg-nav-sec { display: none; }
  .aqg-cta-long { display: none; }
}
@media (min-width: 1001px) {
  .aqg-cta-short { display: none; }
}
@media (max-width: 980px) {
  .aqg-split { grid-template-columns: 1fr !important; }
  .aqg-4col { grid-template-columns: repeat(2, minmax(0px, 1fr)) !important; }
  .aqg-foot { grid-template-columns: repeat(2, minmax(0px, 1fr)) !important; }
}

/* ---------- interactive states ---------- */
.scp0:hover { color: var(--color-accent-700) !important; }
.scp1:hover { background: color-mix(in srgb, #FFFFFF 7%, transparent) !important; }


/* ---------- photography ---------- */
.photo { display: block; position: relative; width: 100%; height: 100%; aspect-ratio: 3 / 2; }
.photo__frame { position: absolute; inset: 0; overflow: hidden; background: var(--color-bg-alt); }
.photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-mark { height: 46px; width: auto; flex: 0 0 auto; display: block;
  align-self: flex-start; object-fit: contain; }


/* ================= mobile navigation (CSS only, no JS) ================= */
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.nav-btn { display: none; width: 42px; height: 42px; flex: 0 0 auto; margin-left: auto;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer; color: var(--color-text); }
.nav-btn span { display: block; width: 21px; height: 1.5px; background: currentColor;
  transition: transform .22s ease, opacity .18s ease; }
.nav-toggle:focus-visible ~ .nav-btn { outline: 2px solid var(--color-accent-700); outline-offset: 3px; }
.nav-cta { display: none; }

@media (max-width: 860px) {
  .nav-btn { display: flex; }
  .nav-toggle:checked ~ .nav-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .aqg-header-cta { display: none !important; }

  .aqg-nav { display: none !important; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch !important; gap: 0 !important;
    padding: 2px 18px 18px; background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider); box-shadow: 0 14px 28px rgba(7,59,89,.10); }
  .nav-toggle:checked ~ .aqg-nav { display: flex !important; }
  .aqg-nav > a { padding: 15px 2px !important; border-top: 1px solid var(--color-divider);
    font-size: 14px !important; white-space: normal !important; }
  .aqg-nav .aqg-nav-sec { display: block !important; }

  .nav-cta { display: block; margin-top: 16px; border-top: 0 !important; text-align: center; text-decoration: none;
    padding: 15px 20px !important; background: var(--color-accent-700); color: var(--color-neutral-100) !important;
    font-size: 13px !important; letter-spacing: .1em; text-transform: uppercase; }
}

/* ================= responsive layout ================= */
/* The stock overrides collapse these grids with `1fr`, which still floors at
   min-content and pushes content past the viewport; minmax(0,1fr) lets the
   single column actually shrink to the screen. */
@media (max-width: 980px) {
  .aqg-split { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 900px) {
  #top { grid-template-columns: minmax(0, 1fr) !important; }
  .aqg-hero-copy { padding-bottom: clamp(28px, 5vw, 40px) !important; }
  .aqg-hero-media { border-left: 0 !important; min-height: 0 !important;
    padding: 0 clamp(20px, 4vw, 64px) clamp(34px, 6vw, 56px) !important; }
  .aqg-hero-media > figure { height: clamp(300px, 62vw, 460px) !important; }
}

@media (max-width: 860px) {
  .aqg-header { gap: 12px !important; padding-left: 18px !important; padding-right: 18px !important; }
  .logo-mark { height: 38px; }
}

@media (max-width: 760px) {
  .aqg-topbar { font-size: 10px !important; gap: 12px !important; padding: 0 18px !important; }
  .aqg-topbar-contact { gap: 14px !important; }
  .aqg-row2, .aqg-row3 { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
}

@media (max-width: 620px) {
  .aqg-topbar-cities { display: none !important; }
  .aqg-topbar-contact { width: 100%; justify-content: space-between; }
  .aqg-4col { grid-template-columns: minmax(0, 1fr) !important; }
  .aqg-grid2 { grid-template-columns: minmax(0, 1fr) !important; }
  #top h1 { font-size: 38px !important; }
}

@media (max-width: 520px) {
  .aqg-foot { grid-template-columns: minmax(0, 1fr) !important; }
  .aqg-hero-copy .btn { width: 100%; justify-content: center; }
  .logo-mark { height: 34px; }
}

@media (max-width: 430px) {
  .aqg-topbar-email { display: none !important; }
  .logo-mark { height: 31px; }
  .aqg-topbar-contact { justify-content: center; }
}


/* ================= touch polish (mobile only) ================= */
@media (max-width: 768px) {
  /* footer link lists sit ~22px apart — give them room to be tapped */
  footer a { padding-block: 5px; }
  /* inline phone/email: vertical padding on an inline box grows the hit
     area without affecting the line box, so nothing shifts */
  .aqg-topbar a { padding-block: 6px; }
}

@media (max-width: 768px) {
  /* these CTAs carry an underline border, so only grow upward */
  .aqg-cta-link { padding-top: 8px; margin-top: -8px; }
}

@media (max-width: 768px) {
  /* contact-band phone/email: inline, so padding grows the hit area only */
  #contact a:not([class]) { padding-block: 6px; }
}


/* ================= atelier light: ground adjustments ================= */
/* Body copy is a serif now, so it wants a touch more size and leading. */
body { font-size: 16px; line-height: 1.62; letter-spacing: 0.002em; }
h1, h2, h3, h4, h5, h6 { font-weight: var(--font-heading-weight); }

/* the base sheet hovers links toward accent-900, which is the near-black
   panel colour here — send them to the brightest ink instead */
a:hover { color: var(--color-accent-900); }
::selection { background: color-mix(in srgb, var(--color-accent) 26%, transparent); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-accent-700); outline-offset: 2px; }

/* buttons: a solid light-blue primary reads as the one bright action on the
   page; the secondary stays a hairline outline */
.btn { font-weight: 500; letter-spacing: 0.08em; }
.btn-primary { background: var(--primary-button); color: var(--button-text); border-color: var(--primary-button); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary-button) 80%, var(--dark-section)); border-color: color-mix(in srgb, var(--primary-button) 80%, var(--dark-section)); }
.btn-primary:active { background: var(--dark-section); }
.btn-secondary { border-color: color-mix(in srgb, var(--color-text) 26%, transparent); color: var(--color-text); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 9%, transparent); }

/* photography: settle the images into the darker ground */
.photo__frame { background: var(--color-bg-alt); }
/* photography runs in full colour — no duotone wash, no darkening */
.photo__img { filter: none; }
.duotone::after { content: none; }


/* hairline detailing */
.blueprint { border-color: color-mix(in srgb, var(--color-text) 18%, transparent); }
.blueprint > .corner { color: color-mix(in srgb, var(--color-text) 42%, transparent); }
.tag { letter-spacing: 0.06em; }

/* the serif runs larger per character, so the phone headline steps down */
@media (max-width: 620px) {
  #top h1 { font-size: 32px !important; }
}

/* The shared mobile nav CTA is light-on-light once the palette inverts:
   it needs dark ink on the accent, the same as .btn-primary. */
@media (max-width: 860px) {
  .nav-cta { background: var(--primary-button) !important; color: var(--button-text) !important; }
}


/* ================= course cards ================= */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px); margin-top: clamp(34px, 4vw, 60px); }
.course-card { display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--background);
  border: 1px solid var(--color-divider); transition: border-color .18s ease, background .18s ease; }
.course-card:hover { color: inherit; border-color: color-mix(in srgb, var(--color-accent) 55%, transparent);
  background: var(--background); }
.course-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-bg-alt); }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-card__body { display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto;
  padding: clamp(18px, 1.8vw, 26px); }
.course-card__kicker { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-accent-700); }
.course-card__title { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(19px, 1.5vw, 23px); line-height: 1.22; letter-spacing: -0.01em; }
.course-card__desc { font-size: 14.5px; line-height: 1.6; color: var(--color-neutral-700); }
.course-card__more { margin-top: auto; padding-top: 10px; font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-accent-700); }
@media (max-width: 1023px) { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .course-grid { grid-template-columns: minmax(0, 1fr); } }

/* Six menu items crowd the header between 1000 and 1180px, so the secondary
   pair folds away earlier and the CTA uses its short label sooner. */
@media (max-width: 1180px) {
  .aqg-nav-sec { display: none !important; }
  .aqg-cta-long { display: none !important; }
  .aqg-cta-short { display: inline !important; }
}

/* Between 1181 and 1400px all six items are shown but the default nav gap
   pushes the CTA past the edge, so the spacing tightens through that band. */
@media (min-width: 1181px) and (max-width: 1400px) {
  .aqg-nav { gap: 19px !important; }
  .aqg-header { gap: 24px !important; }
}


/* ================= client palette: section rhythm ================= */
#training, #stories, footer { background: var(--background-alt); }
.course-card:hover { border-color: var(--primary-button); }


/* ================= button hover states =================
   The general a:hover rule (text -> dark navy) is more specific than .btn-primary,
   so on hover it turned the white button text dark on a blue fill. Each button
   now states its own hover colours explicitly, with two-class specificity. */
.btn { transition: background-color .18s ease, color .18s ease, border-color .18s ease; }

/* blue fill, white text: deepen the blue, keep the text white */
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--dark-section); border-color: var(--dark-section); color: var(--button-text); }
.btn-primary:active {
  background: color-mix(in srgb, var(--dark-section) 80%, #000); border-color: color-mix(in srgb, var(--dark-section) 80%, #000);
  color: var(--button-text); }

/* outlined: tint the fill and firm up the edge */
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--background-alt); border-color: var(--primary-button) !important; color: var(--text); }

/* white button on the dark contact section: flips to the accent blue */
.btn-light { background: var(--button-text); color: var(--dark-section); border-color: var(--button-text); }
.btn-light:hover, .btn-light:focus-visible {
  background: var(--accent); border-color: var(--accent); color: var(--dark-section); }
.btn-light:active { background: var(--border); border-color: var(--border); color: var(--dark-section); }

/* mobile menu button */
@media (max-width: 860px) {
  .nav-cta:hover, .nav-cta:focus-visible { background: var(--dark-section) !important; color: var(--button-text) !important; }
}
