/* Bricklaying Education Australia — site styles */

:root {
  --brick: #9c3b25;
  --brick-dark: #7a2d1c;
  --charcoal: #241f1d;
  --slate: #4a4341;
  --mortar: #f5f1ec;
  --line: #ddd4cb;
  --white: #ffffff;
  --green: #1d6b4f;
  --max: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--brick); }
a:hover { color: var(--brick-dark); }

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

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; margin-top: 8px; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 18px; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.topbar {
  background: var(--charcoal);
  color: #e9e2db;
  font-size: 0.86rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: flex-end;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar a { color: #e9e2db; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

header.site {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand { text-decoration: none; color: var(--charcoal); }
.brand .name {
  display: block;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.brand .rto {
  display: block;
  font-size: 0.82rem;
  color: var(--slate);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
}

nav.main ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
}
nav.main a {
  display: block;
  padding: 9px 13px;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.97rem;
  border-radius: var(--radius);
}
nav.main a:hover { background: var(--mortar); }
nav.main a.current {
  color: var(--brick);
  box-shadow: inset 0 -3px 0 var(--brick);
}
nav.main a.login {
  background: var(--brick);
  color: #fff;
}
nav.main a.login:hover { background: var(--brick-dark); }

/* ---------- Hero ---------- */
.hero {
  background: var(--charcoal) url("../img/brickwall.jpg") center/cover no-repeat;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(26,21,19,0.88) 0%, rgba(26,21,19,0.74) 55%, rgba(26,21,19,0.5) 100%);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 76px;
  padding-bottom: 76px;
  max-width: 900px;
  margin: 0 auto;
}
.hero h1 { color: #fff; font-size: 2.8rem; max-width: 18ch; }
.hero p.lead {
  color: #efe7e0;
  font-size: 1.18rem;
  max-width: 54ch;
  margin-bottom: 28px;
}
.hero .tagline {
  color: #e0b9ab;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.pagehead {
  background: var(--mortar);
  border-bottom: 1px solid var(--line);
}
.pagehead .wrap { padding-top: 44px; padding-bottom: 44px; }
.pagehead h1 { margin-bottom: 6px; }
.pagehead p { margin: 0; color: var(--slate); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brick);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--radius);
  margin: 0 10px 10px 0;
}
.btn:hover { background: var(--brick-dark); color: #fff; }
.btn.ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.55);
  color: #fff;
  padding: 12px 24px;
}
.btn.ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn.dark { background: var(--charcoal); }
.btn.dark:hover { background: #000; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.tint { background: var(--mortar); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section > .wrap > h2:first-child { margin-top: 0; }

.measure { max-width: 68ch; }

.grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-bottom: 10px; color: var(--brick-dark); }
.card p:last-child { margin-bottom: 0; }

ul.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
ul.ticks li {
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
ul.ticks li:last-child { border-bottom: 0; }
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 12px;
  height: 12px;
  background: var(--brick);
  border-radius: 2px;
}

/* ---------- Fact strip ---------- */
.facts {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts div {
  background: var(--white);
  padding: 22px 24px;
}
.facts .k {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-bottom: 6px;
}
.facts .v { font-size: 1.1rem; font-weight: 700; }

/* ---------- Callout ---------- */
.callout {
  background: var(--white);
  border-left: 5px solid var(--brick);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 26px;
  border-radius: var(--radius);
  margin: 0 0 24px;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--brick-dark); }

/* ---------- Documents ---------- */
.doclist { list-style: none; margin: 0; padding: 0; }
.doclist li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
}
.doclist h3 { margin: 0 0 4px; }
.doclist p { margin: 0; color: var(--slate); font-size: 0.95rem; max-width: 60ch; }
.doclist .btn { margin: 0; white-space: nowrap; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
dl.details { margin: 0; }
dl.details dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-top: 18px;
}
dl.details dt:first-child { margin-top: 0; }
dl.details dd {
  margin: 4px 0 0;
  font-size: 1.08rem;
  font-weight: 600;
}
dl.details dd a { text-decoration: none; }
dl.details dd a:hover { text-decoration: underline; }

/* ---------- NRT logo ---------- */
.nrt { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nrt img { width: 118px; }
.nrt p { margin: 0; font-size: 0.95rem; color: var(--slate); max-width: 46ch; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--charcoal);
  color: #cfc5bd;
  padding: 48px 0 32px;
  font-size: 0.94rem;
  margin-top: 0;
}
footer.site a { color: #fff; }
footer.site h3 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
footer.site .cols {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 8px; }
footer.site .legal {
  border-top: 1px solid rgba(255,255,255,0.16);
  margin-top: 34px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #a79b93;
}
footer.site .legal p { margin: 0 0 6px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2.05rem; }
  .hero .wrap { padding-top: 54px; padding-bottom: 54px; }
  section { padding: 42px 0; }
  header.site .wrap { padding-bottom: 12px; }
  nav.main ul { gap: 2px; }
  nav.main a { padding: 8px 10px; font-size: 0.92rem; }
  .topbar .wrap { justify-content: flex-start; }
  .doclist li { flex-direction: column; align-items: flex-start; }
}
