/* Minehill Business Centre — quiet heritage.
   Warm plaster neutrals, one brick-oxide accent, Marcellus + Hanken Grotesk. */

@font-face {
  font-family: 'Marcellus';
  src: url('/fonts/Marcellus-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2026;
}
@font-face {
  font-family: 'Marcellus';
  src: url('/fonts/Marcellus-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/HankenGrotesk-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2026;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/HankenGrotesk-var-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA;
}

:root {
  --bg: oklch(0.965 0.009 85);
  --bg-deep: oklch(0.935 0.013 82);
  --ink: oklch(0.29 0.02 60);
  --ink-soft: oklch(0.47 0.02 60);
  --line: oklch(0.86 0.014 80);
  --line-ghost: oklch(0.90 0.012 80);
  --brick: oklch(0.50 0.115 35);
  --brick-deep: oklch(0.43 0.115 33);
  --dark: oklch(0.285 0.016 55);
  --dark-ink: oklch(0.93 0.012 80);
  --dark-soft: oklch(0.74 0.02 70);
  --dark-line: oklch(0.40 0.02 55);
  --paper: oklch(0.99 0.005 90);
  --display: 'Marcellus', 'Iowan Old Style', Georgia, serif;
  --body: 'Hanken Grotesk', 'Avenir Next', 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}

h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }

p { max-width: 62ch; }

a { color: var(--brick); text-underline-offset: 3px; }
a:hover { color: var(--brick-deep); }

:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: oklch(0.85 0.05 40); }

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.1rem var(--gutter) 1rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark span { color: var(--ink-soft); }
.wordmark:hover { color: var(--ink); }

.masthead nav {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  margin-inline-start: auto;
}

.masthead nav a,
.masthead-phone {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink-soft);
}
.masthead nav a:hover { color: var(--brick); }

.masthead-phone {
  color: var(--brick);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .masthead nav { display: none; }
  .masthead-phone { margin-inline-start: auto; }
}

/* ---------- section shell ---------- */

section {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--gutter) 0;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
  padding-top: clamp(3rem, 7vw, 5rem);
}

@media (min-width: 1000px) {
  .hero { grid-template-columns: 5fr 7fr; }
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 4.4rem);
  margin-bottom: 1.2rem;
}

.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.2rem);
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--paper);
  background: var(--brick);
  border: none;
  border-radius: 6px;
  padding: 0.85rem 1.7rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.button:hover { background: var(--brick-deep); color: var(--paper); }
.button:active { transform: translateY(1px); }

.button-quiet {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--line);
  padding-bottom: 2px;
}
.button-quiet:hover { border-color: var(--brick); color: var(--ink); }

.hero-figure img {
  border-radius: 14px;
  outline: 1px solid var(--line);
  outline-offset: 9px;
}

figcaption {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1.15rem;
}

/* ---------- building ---------- */

.building {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 900px) {
  .building {
    grid-template-columns: minmax(200px, 3fr) 7fr;
    align-items: start;
  }
  .building-photos { grid-column: 1 / -1; }
}

.plaque {
  justify-self: start;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: 4px;
  padding: 1.4rem 1.6rem;
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

.plaque-rule {
  width: 2.2rem;
  height: 1px;
  background: var(--brick);
}

.building-copy h2 { margin-bottom: 1.3rem; }
.building-copy p + p { margin-top: 1rem; }

.building-photos {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

@media (min-width: 800px) {
  .building-photos { grid-template-columns: 6fr 5fr; }
  .building-photos figure:last-child { margin-top: clamp(2rem, 5vw, 4rem); }
}

.building-photos img,
.shared-main img {
  border-radius: 10px;
}

/* ---------- features ---------- */

.features h2 { margin-bottom: 2.2rem; }

.features-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3rem);
}

.features-list li {
  border-top: 1px solid var(--line);
  padding: 0.95rem 0.1rem;
  font-size: 1rem;
  font-weight: 500;
}

/* ---------- offices ---------- */

.offices-head {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
}
.offices-head p { color: var(--ink-soft); }

.unit-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.unit {
  display: grid;
  grid-template-columns: minmax(3.2rem, 5rem) 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}

.unit:has(picture) {
  grid-template-columns: minmax(3.2rem, 5rem) 1fr minmax(140px, 260px);
}

.unit-no {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1;
  color: var(--line);
  text-align: center;
}

.unit-info h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.unit-size {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  margin-top: 0.2rem;
}
.unit-size span { color: var(--brick); }

.unit picture { justify-self: end; }

.unit img {
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 560px) {
  .unit { grid-template-columns: 2.6rem 1fr; }
  .unit:has(picture) { grid-template-columns: 2.6rem 1fr 34vw; }
  .unit-no { text-align: left; }
}

.offices-note {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- shared (dark band) ---------- */

.shared {
  max-width: none;
  background: var(--dark);
  color: var(--dark-ink);
  margin-top: clamp(3.5rem, 9vw, 6.5rem);
  padding: clamp(3.5rem, 8vw, 6rem) max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  display: grid;
  row-gap: 2.5rem;
}

@media (min-width: 900px) {
  .shared {
    grid-template-columns: 5fr 6fr;
    grid-template-areas:
      "copy  main"
      "pair  main";
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
  }
  .shared-copy { grid-area: copy; }
  .shared-main { grid-area: main; align-self: center; }
  .shared-pair { grid-area: pair; align-self: end; margin-top: 0; }
}

.shared-copy { line-height: 1.65; }
.shared-copy h2 { margin-bottom: 1.2rem; }
.shared-copy p { color: var(--dark-soft); }

.shared figcaption { color: var(--dark-soft); }

.shared-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 1.75rem);
  margin-top: 2.5rem;
}

/* arched frames: the building's brick arches, echoed */
.shared-pair img {
  border-radius: 999px 999px 10px 10px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- location ---------- */

.location {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .location { grid-template-columns: 4fr 4fr 3fr; }
}

.location h2 { margin-bottom: 1.2rem; }

.location address {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.location-maps {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--line);
  padding-bottom: 2px;
}
.location-maps:hover { border-color: var(--brick); }

.location-distances {
  margin: 0;
}

.location-distances div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 0.8rem 0.1rem;
}
.location-distances div:last-child { border-bottom: 1px solid var(--line); }

.location-distances dt { font-weight: 500; }
.location-distances dd {
  margin: 0;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.location-photo img {
  border-radius: 10px;
  outline: 1px solid var(--line);
  outline-offset: 7px;
}

/* ---------- contact ---------- */

.contact {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3.5rem, 9vw, 6.5rem);
}

@media (min-width: 900px) {
  .contact { grid-template-columns: 4fr 6fr; }
}

.contact-copy h2 { margin-bottom: 1.2rem; }
.contact-copy p { color: var(--ink-soft); }

.contact-direct {
  list-style: none;
  padding: 0;
  margin-top: 1.6rem;
}

.contact-direct li {
  border-top: 1px solid var(--line);
  padding: 0.8rem 0.1rem;
}
.contact-direct li:last-child { border-bottom: 1px solid var(--line); }

.contact-direct a {
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.contact-form {
  display: grid;
  gap: 1.15rem;
}

.field { display: grid; gap: 0.35rem; }

.field-row {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

label {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.optional { font-weight: 400; color: var(--ink-soft); }

input, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  width: 100%;
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--brick);
  box-shadow: 0 0 0 3px oklch(0.50 0.115 35 / 0.15);
}

input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--brick-deep);
}

textarea { resize: vertical; min-height: 7.5rem; }

::placeholder { color: oklch(0.62 0.015 70); }

.field-error {
  font-size: 0.85rem;
  color: var(--brick-deep);
  min-height: 0;
}
.field-error:empty { display: none; }

.hp-field {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .button { justify-self: start; }
.contact-form .button[disabled] { opacity: 0.6; cursor: default; }

.form-status {
  font-weight: 500;
  min-height: 1.5rem;
}
.form-status.is-error { color: var(--brick-deep); }
.form-status.is-success { color: var(--ink); }

.form-success {
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: 4px;
  padding: 2rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--ink-soft); }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding: 2.5rem var(--gutter) 3rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.footer-wordmark {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.footer p { margin-inline: auto; }

/* ---------- reveal motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reveal.in { transition: none; }
}
