/* CPST - Construction Planning Services Tasmania
   Hand-written static stylesheet. No build step. */

:root {
  --bg: #e0e0db;
  --bg-white: #ffffff;
  --navy: #253551;
  --navy-deep: #253551;
  --ink: #253551;
  --ink-soft: #3b4a66;
  --field: #f7f7f5;
  --on-navy: #ffffff;
  --font-serif: "Triodion", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.625rem);
  --wrap: 1324px;
  --wrap-narrow: 990px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.32;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}
body.page-white { background: var(--bg-white); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.on-navy :focus-visible { outline-color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.4rem); }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: #fff; padding: 0.7rem 1.2rem; border-radius: var(--radius-pill);
  text-decoration: none; font-size: 0.9rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }
.section { padding-block: 2.5rem; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block; background: var(--navy); color: #fff; border: 0; cursor: pointer;
  font: 500 0.78rem/1 var(--font-sans); letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
  padding: 1.3rem 2.4rem; border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.button:hover { background: #1a2740; text-decoration: none; }
.button--light { background: #fff; color: var(--navy); }
.button--light:hover { background: #ececea; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; }
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto;
  padding: 1.1rem var(--gutter);
}
.brand { display: block; line-height: 0; flex: 0 0 auto; }
.brand img { width: clamp(120px, 40vw, 200px); height: auto; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--navy);
  width: 2.75rem; height: 2.75rem; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle__bars, .nav-toggle__bars::before { display: block; width: 28px; height: 2px; background: currentColor; content: ""; position: relative; }
.nav-toggle__bars::before { position: absolute; top: -7px; left: 0; }
.nav-toggle__bars::after { content: ""; position: absolute; top: 7px; left: 0; width: 28px; height: 2px; background: currentColor; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.site-nav { flex: 1 1 100%; order: 3; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; }
.site-nav a { color: #000; text-decoration: none; font-size: 0.8125rem; padding: 0.3rem 0; display: inline-block; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: currentColor; }
.site-nav a[aria-current="page"] { border-bottom-color: currentColor; }

.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.35rem; }
.social a { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; color: var(--navy); border-radius: 50%; }
.social a:hover { background: rgba(37, 53, 81, 0.1); }
.social svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.site-header .social { order: 2; margin-left: auto; }

/* JS-enhanced collapsing nav on small screens */
@media (max-width: 1099px) {
  .js .nav-toggle { display: inline-flex; order: 2; margin-left: auto; }
  .js .site-header .social { display: none; }
  .js .site-nav { display: none; padding: 0.5rem 0 1rem; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0.1rem; }
  .js .site-nav a { font-family: var(--font-serif); font-size: 1.6rem; padding: 0.35rem 0; }
}

@media (min-width: 1100px) {
  .site-header__inner { flex-wrap: nowrap; padding-top: 1.75rem; padding-bottom: 1.75rem; gap: 2.25rem; }
  .brand img { width: clamp(260px, 31.25vw, 450px); }
  .site-nav { flex: 0 1 auto; order: 2; }
  .site-nav ul { flex-wrap: nowrap; }
  .site-nav a { white-space: nowrap; }
  .site-header .social { order: 3; }
}

/* ---------- Home ---------- */
.split { display: grid; gap: 1.75rem; align-items: start; }
.split__media img { width: 100%; object-fit: cover; aspect-ratio: 3 / 2; object-position: center 62%; }
@media (min-width: 800px) { .split__media img { aspect-ratio: auto; } }
.hero-home h1 { font-size: clamp(2.3rem, 1.2rem + 4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.02em; }
.hero-home .lead { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); line-height: 1.3; }
.hero-home .lead strong, .hero-home h2 { font-family: var(--font-sans); font-weight: 700; font-size: inherit; letter-spacing: -0.015em; line-height: 1.3; margin: 0 0 0.6rem; color: var(--navy); }
.hero-home .copy p { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); line-height: 1.3; margin-bottom: 1.1rem; }
.hero-home h2 { margin-top: 1.2rem; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); }
.hero-home h2 + p { margin-top: 0; }
.hero-home .button { margin-top: 1.25rem; }

@media (min-width: 800px) {
  .hero-home .split { grid-template-columns: minmax(0, 490px) minmax(0, 1fr); gap: clamp(2rem, 4.5vw, 4rem); }
  .hero-home .split__media { position: sticky; top: 1rem; }
  .hero-home .copy { max-width: 800px; padding-block: 0.25rem; }
}
.hero-home { padding-bottom: 4rem; }

/* ---------- About ---------- */
.about { display: grid; gap: 2rem; padding-block: 1.5rem 4rem; }
.about h1, .about h2 { font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.4rem); margin-bottom: 0.5rem; line-height: 1.02; }
.about section + section { margin-top: 0.5rem; }
.about p { font-size: 1.05rem; }
.principal::after { content: ""; display: block; clear: both; }
.principal img { float: left; width: clamp(140px, 22vw, 200px); height: auto; aspect-ratio: 1; border-radius: 50%; margin: 0.25rem 1.5rem 0.75rem 0; }
.about__art img { width: 100%; height: auto; }
@media (min-width: 800px) {
  .about { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; padding-top: 2.5rem; }
  .about__art { position: sticky; top: 1rem; }
}

.band { background: var(--navy); color: var(--on-navy); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem); }
.band h1, .band h2, .band a { color: #fff; }
.band__inner { display: grid; gap: 2rem; }
.band h2 { font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.05; }
.band .lead { font-size: 0.95rem; max-width: 26rem; line-height: 1.4; }
@media (min-width: 800px) {
  .band__inner { grid-template-columns: 0.9fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; font-size: 0.875rem; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend, .form label.label { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; padding: 0; }
.form .req { font-size: 0.75rem; opacity: 0.8; margin-left: 0.3rem; }
.form .row { display: grid; gap: 1rem; }
.form .sublabel { display: block; font-size: 0.75rem; margin-bottom: 0.25rem; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: #1b2538; background: var(--field);
  border: 1px solid transparent; border-radius: var(--radius-pill); padding: 0.55rem 1rem; letter-spacing: 0; min-height: 2.5rem;
}
.form textarea { border-radius: 14px; min-height: 7rem; resize: vertical; }
.band .form input[type="text"], .band .form input[type="email"], .band .form textarea { background: #d7dae0; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--navy); outline-offset: 1px; background: #fff; }
.band .form input:focus, .band .form textarea:focus { outline-color: #fff; }
.form .check { display: flex; gap: 0.5rem; align-items: center; font-size: 0.75rem; margin: 0.5rem 0 0; }
.form .check input { width: 1rem; height: 1rem; margin: 0; accent-color: #fff; }
.form .actions { margin-top: 0.3rem; }
.form .button { padding: 1.1rem 2rem; }
.form-fallback { margin-top: 1.1rem; font-size: 0.95rem; }
@media (min-width: 560px) { .form .row { grid-template-columns: 1fr 1fr; } }

/* ---------- Services ---------- */
.services { display: grid; gap: 2rem; padding-block: 1.5rem 4rem; }
.services h1 { font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.05; margin-bottom: 1.6rem; }
.tick-list { margin: 0 0 2rem; padding: 0; list-style: none; font-size: 1rem; }
.tick-list li { position: relative; padding-left: 1.7rem; margin-bottom: 0.55rem; line-height: 1.3; }
.tick-list li::before { content: ""; position: absolute; left: 0.5rem; top: 0.62em; width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
.services__media img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 800px) {
  .services { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); padding-top: 2.5rem; }
  .services__text { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
  .services__text .tick-list { max-width: 24rem; }
}

/* ---------- Experience ---------- */
.experience { display: grid; gap: 2rem; padding-block: 1.5rem 5rem; }
.experience h2 { font-family: var(--font-sans); font-weight: 700; font-size: 0.8rem; letter-spacing: 0; text-transform: uppercase; line-height: 1.4; margin: 1.4rem 0 0.5rem; color: var(--navy); }
.experience h2:first-of-type { margin-top: 0; }
.experience p { font-size: 0.9rem; margin-bottom: 0.7rem; line-height: 1.35; }
.experience .tick-list { font-size: 0.9rem; }
.experience .tick-list li { margin-bottom: 0.4rem; }
.experience__media img { width: 100%; height: auto; }
@media (min-width: 800px) {
  .experience { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); padding-top: 3.5rem; }
  .experience__media { margin-right: calc(-1 * var(--gutter)); padding-top: 2rem; }
}

/* ---------- References ---------- */
.ref-hero { position: relative; color: #fff; background: #555; min-height: clamp(320px, 56vw, 800px); display: grid; align-items: start; justify-items: center; text-align: center; overflow: hidden; }
.ref-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.ref-hero__text { position: relative; z-index: 1; padding: clamp(2rem, 11vw, 9rem) var(--gutter) 2rem; }
.ref-hero h1 { color: #fff; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.2rem); margin-bottom: 0.3rem; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35); }
.ref-hero p { font-size: clamp(1.2rem, 1rem + 1.2vw, 2rem); margin: 0; opacity: 0.92; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.testimonials { display: grid; gap: 2.25rem; padding-block: 2.5rem 5rem; }
.testimonial { margin: 0; font-size: 1rem; color: #000; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { margin-bottom: 0.8rem; }
.testimonial figcaption p { margin: 0 0 1rem; }
.testimonial__photo img { width: 100%; height: auto; }
@media (min-width: 800px) {
  .testimonials { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 4rem clamp(2rem, 5vw, 4.5rem); padding-inline: clamp(0px, 3.8vw, 3.4rem); }
  .testimonials .testimonial__photo { grid-column: 1; grid-row: 1; }
  .testimonials .t-rennie { grid-column: 2; grid-row: 1; }
  .testimonials .t-dheeraj { grid-column: 1; grid-row: 2; }
  .testimonials .t-johan { grid-column: 2; grid-row: 2; }
}

/* ---------- Contact ---------- */
.contact { display: grid; gap: 2rem; padding-block: 1.5rem 5rem; }
.contact h1 { font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.05; margin-bottom: 1.4rem; }
.contact .lead { font-size: 0.95rem; line-height: 1.4; }
.contact__media img { width: 100%; height: auto; }
.contact .tick-list { margin-bottom: 1.5rem; }
.contact .form { font-size: 0.875rem; }
.contact__main { max-width: 560px; }
@media (min-width: 900px) {
  .contact { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); padding-top: 2.5rem; align-items: start; }
  .contact__media { margin-right: calc(-1 * var(--gutter)); padding-top: 1rem; }
}

/* ---------- Blog ---------- */
.blog-list { padding-block: 2rem 5rem; display: grid; gap: 3rem; }
.post-card { display: grid; gap: 1.5rem; align-items: center; color: #000; }
.post-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.post-card__meta { font-size: 0.7rem; margin-bottom: 1.1rem; display: flex; gap: 0.8rem; }
.post-card h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.3rem); line-height: 1.12; margin-bottom: 1.4rem; color: #000; }
.post-card h2 a { text-decoration: none; color: inherit; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card .excerpt { font-size: 0.9rem; margin-bottom: 1.2rem; }
.read-more { font-size: 0.85rem; }
@media (min-width: 800px) { .post-card { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); } }

.post { padding-block: 2.5rem 5rem; color: #000; }
.post__meta { font-size: 0.7rem; margin-bottom: 0.7rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.post h1 { font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.08; margin-bottom: 2rem; color: #000; }
.post p { font-size: 0.9rem; line-height: 1.35; }
.post .subhead { font-family: var(--font-sans); font-weight: 700; font-size: 0.9rem; letter-spacing: -0.02em; line-height: 1.35; margin: 1.1rem 0 0.7rem; color: #000; }
.post .tags { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; font-size: 0.65rem; }
.post .tags li:not(:last-child)::after { content: "\00b7"; margin-left: 0.5rem; }
.post .author { margin-top: 1.25rem; font-size: 0.7rem; }
.back-link { display: inline-block; margin-top: 2rem; font-size: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: #000; padding-block: clamp(2.5rem, 5vw, 4rem) 4rem; }
.site-footer__inner { display: grid; gap: 2rem; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.site-footer h2 { font-size: clamp(1.8rem, 1.2rem + 1.9vw, 2.6rem); margin-bottom: 1.2rem; line-height: 1.1; }
.site-footer h3 { font-size: 1.1rem; margin-bottom: 1.1rem; }
.site-footer address { font-style: normal; font-size: 0.9rem; line-height: 1.35; }
.site-footer address p { margin: 0; }
.site-footer .credit { font-size: 0.9rem; }
.site-footer .social { margin-top: 0.9rem; margin-left: -0.6rem; }
.site-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (min-width: 800px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .site-footer__cols { grid-template-columns: auto auto; justify-content: end; gap: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Contact details (stands in for the form while it is disabled) */
.contact-details { margin-top: 1.5rem; }
.contact-details__item { margin: 0 0 1rem; font-size: 1.15rem; line-height: 1.3; }
.contact-details__label { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.15rem; opacity: 0.75; }
.contact-details a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
