/* Bricklaying Education Australia — site styles */

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

* { 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: 2rem; margin-top: 8px; letter-spacing: -0.02em; }
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 ---------- */
header.site {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 14px rgba(36,31,29,0.06);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 26px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}
header.site nav.main {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* phone call-to-action in the header */
.call {
  display: block;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  padding-left: 20px;
  border-left: 3px solid var(--brick);
  white-space: nowrap;
}
.call span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 2px;
}
.call:hover { color: var(--brick-dark); }

.brand { text-decoration: none; color: var(--charcoal); display: block; }
.brand img { width: 340px; }
.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/hero.jpg") center right/cover no-repeat;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22,17,15,0.94) 0%, rgba(22,17,15,0.86) 38%, rgba(22,17,15,0.42) 68%, rgba(22,17,15,0.18) 100%),
    linear-gradient(180deg, rgba(22,17,15,0.45) 0%, rgba(22,17,15,0) 35%);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 84px;
  padding-bottom: 104px;
}
.hero-copy { max-width: 640px; }
.hero h1 {
  color: #fff;
  font-size: 3.4rem;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.hero p.lead {
  color: #eadfd8;
  font-size: 1.15rem;
  max-width: 56ch;
  margin-bottom: 30px;
}
.hero .tagline {
  display: inline-block;
  color: #fff;
  background: var(--brick);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.hero-badge img {
  width: 86px;
  background: #fff;
  padding: 7px 9px;
  border-radius: var(--radius);
  flex: none;
}
.hero-badge p {
  margin: 0;
  color: #d9ccc4;
  font-size: 0.92rem;
  line-height: 1.5;
}
.hero-badge strong { color: #fff; }

/* facts card lifted over the foot of the hero */
.facts-band { padding: 0 0 56px; }
.facts-band .facts {
  margin-top: -46px;
  position: relative;
  z-index: 2;
  box-shadow: 0 16px 40px rgba(36,31,29,0.16);
  border: 0;
}

.pagehead {
  background: var(--mortar);
  border-bottom: 1px solid var(--line);
}
.pagehead .wrap { padding-top: 56px; padding-bottom: 56px; }
.pagehead h1 {
  margin-bottom: 14px;
  font-size: 2.7rem;
  letter-spacing: -0.025em;
}
.pagehead h1::after {
  content: "";
  display: block;
  width: 68px;
  height: 4px;
  background: var(--brick);
  border-radius: 2px;
  margin-top: 16px;
}
.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: 15px 30px;
  border-radius: var(--radius);
  margin: 0 10px 10px 0;
  box-shadow: 0 6px 16px rgba(156,59,37,0.28);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn:hover {
  background: var(--brick-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(156,59,37,0.34);
}
.hero-actions .btn { margin: 0; }
.btn.ghost {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 13px 28px;
  box-shadow: none;
  backdrop-filter: blur(2px);
}
.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: 72px 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));
}

.grid.two { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.grid.offers { grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .grid.offers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px)  { .grid.offers { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  overflow: hidden;
}
.card {
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover {
  box-shadow: 0 12px 28px rgba(36,31,29,0.10);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: 10px; color: var(--brick-dark); }
.card p:last-child { margin-bottom: 0; }
.card img {
  width: calc(100% + 54px);
  max-width: none;
  margin: -27px -27px 20px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- Feature image ---------- */
figure.feature {
  margin: 0 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
}
figure.feature img { width: 100%; }
figure.feature figcaption {
  font-size: 0.88rem;
  color: var(--slate);
  padding: 10px 2px 0;
}
.split {
  display: grid;
  gap: 38px;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
}
.split figure.feature { margin-bottom: 0; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
}

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: 26px 28px;
}
.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.22rem; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--brick);
  color: #fff;
  text-align: center;
  border: 0;
}
.cta .wrap { max-width: 760px; }
.cta .kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
  color: #f2cfc4;
  margin-bottom: 12px;
}
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { color: #f6e4dd; font-size: 1.08rem; }
.cta a { color: #fff; }
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.cta-actions .btn { margin: 0; }
.btn.light {
  background: #fff;
  color: var(--brick-dark);
  box-shadow: 0 6px 16px rgba(0,0,0,0.16);
}
.btn.light:hover { background: #fff; color: #000; }

/* ---------- 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: 22px; flex-wrap: wrap; }
.nrt img {
  width: 150px;
  background: #fff;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.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: 2px; }
footer.site li a { display: inline-block; padding: 7px 0; }
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: 1020px) {
  .hero h1 { font-size: 2.6rem; }
  .hero::after {
    background: linear-gradient(180deg, rgba(22,17,15,0.86) 0%, rgba(22,17,15,0.78) 60%, rgba(22,17,15,0.72) 100%);
  }
  .call { font-size: 1rem; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }
  .pagehead h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero .wrap { padding-top: 54px; padding-bottom: 72px; }
  .hero p.lead { font-size: 1.05rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .facts-band { padding-bottom: 40px; }
  .facts-band .facts { margin-top: -30px; }
  header.site { position: static; }
  header.site nav.main { width: 100%; gap: 12px; }
  .call { padding-left: 14px; }
  section { padding: 48px 0; }
  header.site .wrap { padding-bottom: 12px; }
  .brand img { width: 250px; }
  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; }
}
