/* OZHRM Pty Ltd — site styles */
:root {
  --red: #9e0f1c;
  --red-dark: #7d0b15;
  --navy: #1d2b5e;
  --ink: #272727;
  --muted: #5d5d5d;
  --line: #e4e4e4;
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --max: 1180px;
  --font: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; margin: 0 0 .8em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1.2em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.logo__mark {
  font-family: "Alfa Slab One", Georgia, serif;
  color: var(--red);
  font-size: 2.6rem;
  letter-spacing: .02em;
}
.logo__bar {
  display: flex; align-items: center; gap: 8px; width: 100%;
  color: var(--navy); font-weight: 600; font-size: .78rem; letter-spacing: .14em; margin-top: 4px;
}
.logo__bar::before, .logo__bar::after {
  content: ""; flex: 1; height: 7px;
  border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
}
.logo__sub { color: var(--ink); font-size: .62rem; letter-spacing: .22em; margin-top: 5px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 24px; }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a {
  color: var(--ink); text-decoration: none; text-transform: uppercase;
  font-size: .82rem; letter-spacing: .16em; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--red); }
.nav a.nav__cta { background: var(--red); color: #fff; padding: 10px 20px; border: 0; }
.nav a.nav__cta:hover { background: var(--red-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; border-bottom: 1px solid var(--line);
    display: none; padding: 8px 0 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 24px; width: 100%; text-align: center; border: 0; }
  .nav a.nav__cta { width: auto; margin-top: 8px; }
  .logo__mark { font-size: 2.1rem; }
}

/* ---------- Hero / banners ---------- */
.hero {
  text-align: center; padding: clamp(64px, 10vw, 120px) 24px;
  background: var(--bg-soft);
}
.hero .logo__mark { font-size: clamp(3.4rem, 10vw, 6rem); }
.hero .logo__bar { font-size: clamp(.9rem, 2vw, 1.25rem); }
.hero .logo__sub { font-size: clamp(.7rem, 1.4vw, .9rem); }
.hero__tagline { margin: 34px auto 0; max-width: 640px; font-size: 1.15rem; letter-spacing: .06em; color: var(--muted); }

/* ---------- Video backgrounds (YouTube) ---------- */
.hero--video, .video-band { position: relative; overflow: hidden; color: #fff; background: #1a1d2b; }
.hero--video { min-height: 78vh; display: grid; place-content: center; justify-items: center; }
.video-bg { position: absolute; inset: 0; background: center / cover no-repeat; z-index: 0; container-type: size; }
.video-bg iframe {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  /* cover the box at 16:9, slightly oversized to hide YouTube chrome */
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%) scale(1.2);
  opacity: 0; transition: opacity 1s ease;
}
.video-bg.is-playing iframe { opacity: 1; }
.video-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.hero--video > :not(.video-bg), .video-band > :not(.video-bg) { position: relative; z-index: 1; }
.hero--video .logo__mark, .hero--video .logo__bar, .hero--video .logo__sub,
.hero--video .hero__tagline { color: #fff; }
.hero--video .logo__bar::before, .hero--video .logo__bar::after { border-color: #fff; }
/* Hero text entrance — same timing as the original site: hidden for 75% of .75s, then rises 10px and fades in */
.hero--video > :not(.video-bg) { animation: hero-text-in .75s ease-in-out both; }
@keyframes hero-text-in {
  0%, 75% { opacity: 0; transform: translate3d(0, 10px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero--video > :not(.video-bg) { animation: none; }
}
.video-band { padding: clamp(80px, 12vw, 150px) 0; }
.video-band .container { text-align: center; margin: 0 auto; }
.video-band .tile__more { color: #fff; }

.banner {
  position: relative; min-height: 46vh; display: grid; place-items: center; text-align: center;
  color: #fff; background: #222 center / cover no-repeat; padding: 80px 24px;
}
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(15, 18, 35, .45); }
.banner > * { position: relative; }
.banner h1 { margin: 0; letter-spacing: .14em; }

/* ---------- Services grid ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 48px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }
.tile { display: flex; flex-direction: column; text-align: center; color: var(--ink); text-decoration: none; }
.tile__img { aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .tile__img img { transform: scale(1.05); }
.tile h3 { margin: 18px 0 8px; font-size: .95rem; }
.tile__more { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }

.btn {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  text-transform: uppercase; letter-spacing: .18em; font: inherit; font-size: .85rem; padding: 15px 34px;
}
.btn:hover { background: var(--red-dark); }
.center { text-align: center; }
.mt { margin-top: 48px; }

/* ---------- Feature rows (image + text) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 96px); }
.feature:nth-child(even) .feature__img { order: 2; }
.feature__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__img { order: 0; }
}

/* ---------- Service page layout ---------- */
.with-sidebar { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 72px); }
.sidebar h3 { font-size: .85rem; letter-spacing: .2em; color: var(--muted); }
.sidebar ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sidebar li { border-bottom: 1px solid var(--line); }
.sidebar a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-size: .95rem; }
.sidebar a:hover, .sidebar a[aria-current="page"] { color: var(--red); }
.prose { max-width: 760px; }
@media (max-width: 820px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}

/* ---------- Contact ---------- */
.contact-block { text-align: center; }
.contact-block h3 { margin: 28px 0 6px; font-size: .9rem; color: var(--muted); }
.contact-block p { margin: 0; }
.contact-block p.mt { margin-top: 32px; }
.contact-block a { color: var(--ink); text-decoration: none; }
.contact-block a:hover { color: var(--red); }
.company-ids { color: var(--muted); font-size: .95rem; letter-spacing: .06em; }

.enquiry { max-width: 760px; }
.enquiry h1 { text-align: center; }
.enquiry .form button { display: block; margin: 0 auto; }
.enquiry .form__status { text-align: center; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: block; font-size: .85rem; letter-spacing: .06em; margin-bottom: 6px; }
.form label .req { color: var(--red); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid #cfcfcf; background: #fafafa; border-radius: 0;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--navy); outline-offset: -1px; background: #fff; }
.form textarea { min-height: 160px; resize: vertical; }
.form__status { margin: 0; font-size: .95rem; }
.form__status.is-ok { color: #1b7a3a; }
.form__status.is-err { color: var(--red); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; filter: grayscale(.3); }
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.contact-split .contact-block { text-align: left; }
.contact-split .map { min-height: 360px; }
@media (max-width: 820px) { .contact-split { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #1f1f1f; color: #bdbdbd; padding: 48px 0 32px; font-size: .9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer strong { color: #fff; font-weight: 500; letter-spacing: .1em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__copy { width: 100%; border-top: 1px solid #333; padding-top: 20px; margin-top: 8px; color: #8a8a8a; font-size: .82rem; }
.back-to-top { color: #fff; }

/* Hero brand doubles as the page's <h1>: undo heading defaults so it renders like the logo */
.hero__title { margin: 0; font-size: inherit; font-weight: 400; letter-spacing: normal; text-transform: none; line-height: 1; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.contact-block h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
