@charset "UTF-8";
/* ==========================================================================
   NSW Book Publishers — layout
   Header, navigation, footer. Shared by every page.
   ========================================================================== */

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: var(--sh-md); border-bottom-color: var(--line-soft); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }
/* The supplied logo is an 820x172 wordmark (4.77:1). Height drives the size and
   width follows the aspect ratio, so the lockup never distorts. The width/height
   attributes on the <img> reserve the box before the SVG lands. */
.brand__logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: 100%;
}
/* The wordmark is 4.77:1, so it is far wider than the old square mark. Step it
   down on narrow screens so it clears the hamburger. */
@media (max-width: 560px) { .brand__logo { height: 32px; } }
@media (max-width: 340px) { .brand__logo { height: 28px; } }

/* --- Primary nav ---------------------------------------------------------- */
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(.5rem, .1rem + 1.1vw, 1.5rem); }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: var(--sp-2) 2px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-soft);
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--red-500); }
.nav__link:hover::after,
.nav__item.is-current > .nav__link::after { transform: scaleX(1); }
.nav__item.is-current > .nav__link { color: var(--red-500); }
.nav__caret { width: 12px; height: 12px; opacity: .6; transition: transform var(--dur) var(--ease); }
.nav__item--has-menu:hover .nav__caret { transform: rotate(180deg); }

/* Dropdown */
.nav__item--has-menu { position: relative; }
.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 260px;
  padding: var(--sp-3);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
/* Bridges the 18px gap between the nav item and the panel. Without it the
   cursor leaves the <li> before it reaches the menu, :hover drops, and the
   panel fades out mid-reach — which reads as "the links aren't clickable"
   and, if you catch it part-way through the fade, as a half-drawn menu.
   The bridge is a child of .nav__menu, so hovering it keeps the parent
   .nav__item--has-menu:hover alive. */
.nav__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.nav__item--has-menu:hover .nav__menu,
.nav__item--has-menu:focus-within .nav__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav__menu a {
  display: block;
  padding: .5rem .75rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-soft);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__menu a:hover { background: var(--cream); color: var(--red-500); }

.header__cta { flex: 0 0 auto; }
/* The drawer carries its own CTA; on desktop the one in .header__cta is used. */
.nav__cta-mobile { display: none; }
@media (max-width: 1180px) { .header__cta .btn { padding: .6875rem 1rem; } }

/* --- Mobile nav ----------------------------------------------------------- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--navy-700);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-close { display: block; }
.nav-toggle.is-open .icon-menu { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .header__cta { display: none; }
  /* Off-canvas drawer.
     It stays parked at right:0 and is revealed with clip-path rather than
     pushed off-screen with translateX(100%): a fixed element sitting outside
     the viewport still extends the document's scrollable width in Chrome,
     which shows up as a stray horizontal scrollbar on every page. */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 auto;
    width: min(380px, 88vw);
    margin: 0;
    padding: var(--sp-6) var(--sp-5) var(--sp-9);
    background: #fff;
    border-left: 1px solid var(--line-soft);
    box-shadow: var(--sh-lg);
    overflow-y: auto;
    clip-path: inset(0 0 0 100%);
    opacity: 0;
    visibility: hidden;
    transition: clip-path var(--dur) var(--ease), opacity var(--dur) var(--ease), visibility var(--dur);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line-soft); }
  .nav__link { justify-content: space-between; padding: var(--sp-4) var(--sp-2); font-size: var(--fs-body); }
  .nav__link::after { display: none; }
  .nav__menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    /* Re-enabled: the desktop rule disables pointer events while the panel is
       closed, and in the drawer the panel is shown by `display`, not :hover. */
    pointer-events: auto;
    min-width: 0;
    padding: 0 0 var(--sp-3) var(--sp-4);
    border: 0;
    box-shadow: none;
    display: none;
  }
  /* No gap to bridge inside the drawer. */
  .nav__menu::before { display: none; }
  .nav__item--has-menu.is-open .nav__menu { display: block; }
  .nav__item--has-menu.is-open .nav__caret { transform: rotate(180deg); }
  .nav__cta-mobile { display: block; margin-top: var(--sp-6); }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(14, 26, 69, .45);
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

/* --- Shared page wrapper -------------------------------------------------- */
/* Lives here rather than in a page stylesheet: the footer uses it on every
   page, and home.css only loads on the homepage. */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 1280px) { .wrap { padding: 0 32px; } }
@media (max-width: 1024px) { .wrap { padding: 0 24px; } }
@media (max-width: 768px)  { .wrap { padding: 0 20px; } }

/* --- Footer --------------------------------------------------------------- */
/* Layout ported from ukpublishinghouse.co.uk, colours from australianbookpublishers.com.au.
   A rose tint carries the accents; the column headings sit on a red gradient. */
.site-footer {
  /* AU red lightened for legibility on navy — the flat #A32833 sits at ~1.6:1
     against the footer background, which is unreadable at 11-18px. */
  --rose: #D9A7A2;
  --red-deep: #7E1A24;
  background: linear-gradient(#1B2E63 0%, #0E1A45 100%);
  padding: 0 0 28px;
  color: rgba(255, 255, 255, .74);
  font-family: var(--font-sans);
}
.site-footer a { transition: color .25s; }
.site-footer a:hover { color: #fff; }

/* --- CTA band ------------------------------------------------------------- */
.footer-cta {
  position: relative;
  z-index: 1;
  padding: 56px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(60% 100% at 0% 50%, rgba(168, 138, 77, .1) 0%, transparent 60%),
    radial-gradient(60% 100% at 100% 50%, rgba(163, 40, 51, .1) 0%, transparent 60%);
}
.footer-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
.footer-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(163, 40, 51, .28);
  border-radius: 100px;
  background: rgba(163, 40, 51, .14);
  font-size: var(--fs-nano);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose);
}
.footer-cta-eyebrow svg { width: 13px; height: 13px; }
.footer-cta h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: #fff;
  margin: 0 0 10px;
}
.footer-cta h3 em { font-style: italic; font-weight: 500; color: var(--rose); }
.footer-cta p {
  margin: 0;
  max-width: 540px;
  font-size: var(--fs-small);
  line-height: 1.65;
  color: rgba(255, 255, 255, .7);
}
.footer-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: end;
  gap: 14px;
}
.footer-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-micro);
  color: rgba(255, 255, 255, .78);
}
.footer-cta-link svg { width: 16px; height: 16px; color: var(--rose); }
.footer-cta-link b { color: #fff; font-weight: 600; }

/* Footer buttons are their own thing — the shared .btn primitive is not used. */
.site-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .005em;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .25s;
}
.site-footer .btn-red { background: var(--red-500); border-color: var(--red-500); color: #fff; }
.site-footer .btn-red:hover { background: var(--red-600); border-color: var(--red-600); transform: translateY(-1px); color: #fff; }
.site-footer .btn .arr {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  font-size: var(--fs-small);
  line-height: 1;
  transition: transform .25s;
}
.site-footer .btn:hover .arr { transform: translateX(3px); }

/* --- Columns -------------------------------------------------------------- */
.site-footer .top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 80px 0 0;
  margin: 0 0 56px;
}

.footer-logo { display: inline-flex; align-items: center; margin-bottom: 22px; }
/* Footer sits on navy, so it uses the white variant of the same wordmark. */
.footer-logo .brand__logo { height: 44px; }

.brandcol p {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, .74);
  margin: 0 0 22px;
}
.addr {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  font-size: var(--fs-micro);
  line-height: 1.55;
  color: rgba(255, 255, 255, .7);
}
.addr svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px; color: var(--rose); }

.contact-rows { display: grid; gap: 8px; margin: 0 0 22px; }
.contact-rows > * {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-micro);
  line-height: 1.5;
  color: rgba(255, 255, 255, .8);
}
.contact-rows svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--rose); }

.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: rgba(255, 255, 255, .78);
  transition: background .25s, border-color .25s, transform .25s;
}
.socials a:hover { background: var(--red-500); border-color: var(--red-500); color: #fff; transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; }

.linkcol h5 {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 12px;
  font-size: var(--fs-nano);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;   /* the reference footer sets headings in white, not an accent */
}
.linkcol h5::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  display: block;
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--red-500), var(--red-deep));
}
.linkcol ul { list-style: none; margin: 0; padding: 0; }
.linkcol li { padding: 5px 0; }
.linkcol a { font-size: var(--fs-small); line-height: 1.5; color: rgba(255, 255, 255, .74); }

/* --- Trust strip ---------------------------------------------------------- */
.footer-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 32px;
  padding: 26px 0;
  margin: 0 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-trust-label {
  font-size: var(--fs-nano);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .95);
}
.footer-trust-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-micro);
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
}
.trust-badge svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--rose); }
.trust-badge b { font-weight: 600; color: #fff; }
.trust-badge small { display: block; font-size: var(--fs-nano); color: rgba(255, 255, 255, .6); }

/* --- Legal ---------------------------------------------------------------- */
.site-footer .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 24px 0 0;
}
.rights-text {
  font-size: var(--fs-nano);
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}
.rights { display: flex; flex-wrap: wrap; gap: 22px; }
.rights a { font-size: var(--fs-micro); line-height: 1.5; color: #fff; }

/* --- Footer breakpoints --------------------------------------------------- */
@media (max-width: 1024px) {
  .site-footer .top { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer .top .linkcol:last-child { grid-column: 2 / -1; }
}
@media (max-width: 820px) {
  .footer-cta { padding: 44px 0; }
  .footer-cta-inner { grid-template-columns: 1fr; gap: 22px; }
  .footer-cta-actions { justify-self: start; }
  .site-footer .top { grid-template-columns: 1fr 1fr; gap: 36px; padding-top: 56px; margin-bottom: 40px; }
  .site-footer .top .brandcol { grid-column: 1 / -1; }
  .site-footer .top .linkcol:last-child { grid-column: auto; }
}
@media (max-width: 540px) {
  .site-footer .top { grid-template-columns: 1fr; }
  .site-footer .bottom { justify-content: flex-start; }
}
