/* ============================================================
   GROVELANDS BUSINESS PARK — design tokens
   Palette pulled from the site itself: ironstone wall, hedgerow,
   wheat field, stone-paper sky. Display face = Fraunces (an
   old-style serif with the weight of a land deed). Body = IBM
   Plex Sans. Data/labels = IBM Plex Mono, used the way a
   surveyor's drawing uses callouts.
   ============================================================ */

:root {
  --ink: #1f2a1b;
  --ironstone: #b6743a;
  --ironstone-deep: #8c5526;
  --wheat: #d7b65c;
  --stone-paper: #eae4d4;
  --stone-paper-dim: #ddd5c0;
  --hedge: #46573c;
  --white: #ffffff;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;

  --max-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  :root { --motion-ok: 1; }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--stone-paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 600; }

p { margin: 0 0 1.1em; max-width: 38ch; }
p.wide { max-width: 62ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ironstone-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 1px;
  background: var(--ironstone-deep);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

:focus-visible {
  outline: 2px solid var(--ironstone-deep);
  outline-offset: 3px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--ironstone-deep);
  color: var(--white);
}
.btn-primary:hover { background: var(--ink); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-on-dark {
  background: transparent;
  color: var(--stone-paper);
  border-color: var(--stone-paper);
}
.btn-on-dark:hover { background: var(--stone-paper); color: var(--ink); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--stone-paper);
  border-bottom: 1px solid var(--stone-paper-dim);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.wordmark span { color: var(--ironstone-deep); }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
}
.main-nav a:not(.btn) {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 6px;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--ironstone);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:not(.btn):hover::after,
.main-nav a:not(.btn)[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  width: 42px; height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 84px; left: 0; right: 0;
    background: var(--stone-paper);
    border-bottom: 1px solid var(--stone-paper-dim);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--gutter) 2rem;
    gap: 1.4rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ---------- full-bleed photo hero ---------- */
.hero-full {
  position: relative;
  min-height: clamp(480px, 55vw, 680px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-full .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-full .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(31,42,27,0.05) 0%,
    rgba(31,42,27,0.25) 40%,
    rgba(31,42,27,0.72) 100%
  );
}
.hero-full .hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero-full .hero-content .eyebrow { color: var(--wheat); }
.hero-full .hero-content .eyebrow::before { background: var(--wheat); }
.hero-full h1 {
  color: var(--white);
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-full p.wide { color: rgba(255,255,255,0.95); max-width: 54ch; }


/* ---------- stat strip ---------- */
.stat-strip {
  background: var(--ink);
  color: var(--stone-paper);
}
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
}
.stat {
  border-left: 1px solid rgba(234, 228, 212, 0.25);
  padding: 0 1.6rem;
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat .figure {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--wheat);
  display: block;
  margin-bottom: 0.25rem;
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}
@media (max-width: 700px) {
  .stat { border-left: none; padding: 0; }
}

/* ---------- sections ---------- */
section.block { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
section.block.alt { background: var(--white); border-top: 1px solid var(--stone-paper-dim); border-bottom: 1px solid var(--stone-paper-dim); }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- cards / grids ---------- */
.grid {
  display: grid;
  gap: 1.6rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--stone-paper-dim);
  background: var(--white);
  padding: 1.8rem;
  border-radius: var(--radius);
}
.card h3 { margin-bottom: 0.5em; }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ironstone-deep);
  margin-bottom: 0.7em;
  display: block;
}

/* ---------- photo placeholders ---------- */
.photo-slot {
  border: 1.5px dashed var(--hedge);
  background: repeating-linear-gradient(135deg, rgba(70,87,60,0.06) 0 10px, transparent 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  min-height: 220px;
  color: var(--hedge);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.photo-slot.tall { min-height: 380px; }
.photo-slot span { max-width: 22ch; }

.photo-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--stone-paper-dim);
}
.photo-img.tall { height: 380px; }

/* ---------- timeline (about page) ---------- */
.timeline { position: relative; padding-left: 2.6rem; border-left: 1px solid var(--stone-paper-dim); }
.timeline-item { position: relative; padding-bottom: 2.8rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .marker {
  position: absolute;
  left: -2.6rem;
  top: 0.1rem;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  background: var(--ironstone-deep);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-item.is-future .marker { background: transparent; border: 1.5px dashed var(--ironstone-deep); color: var(--ironstone-deep); }
.timeline-item .year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ironstone-deep);
  letter-spacing: 0.06em;
  margin-bottom: 0.3em;
  display: block;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--stone-paper);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(234,228,212,0.18);
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wheat);
  margin-bottom: 1.1em;
}
.footer-grid a, .footer-grid p { color: var(--stone-paper); opacity: 0.85; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.social-row { display: flex; gap: 1rem; margin-top: 1rem; }
.social-row a {
  width: 36px; height: 36px;
  border: 1px solid rgba(234,228,212,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  opacity: 0.7;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- reveal-on-scroll ---------- */
[data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* ---------- forms (contact page) ---------- */
.form-grid { display: grid; gap: 1.3rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85em 1em;
  border: 1px solid var(--hedge);
  background: var(--white);
  border-radius: var(--radius);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ironstone-deep); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- site plan illustration ---------- */
.plan-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; fill: var(--ironstone-deep); }
.plan-caption { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.04em; fill: var(--hedge); }
.plan-label { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink); }
.plan-boundary { fill: none; stroke: var(--hedge); stroke-width: 2; stroke-dasharray: 1 6; stroke-linecap: round; }
.plan-road { fill: none; stroke: var(--hedge); stroke-width: 5; stroke-linecap: round; opacity: 0.55; }
.plan-block { fill: var(--white); stroke: var(--ink); stroke-width: 1.3; }
.plan-core { fill: var(--ironstone-deep); }
.plan-bay { fill: none; stroke: var(--ironstone-deep); stroke-width: 1; opacity: 0.8; }
.plan-panel { fill: var(--wheat); stroke: var(--ironstone-deep); stroke-width: 0.8; opacity: 0.85; }
.plan-future { fill: none; stroke: var(--ironstone); stroke-width: 1.6; stroke-dasharray: 6 4; }
.plan-compass-line { stroke: var(--ink); stroke-width: 1.3; }
.plan-compass-circle { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0.6; }

/* ---------- simple table (offices page) ---------- */
.suite-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.suite-table th, .suite-table td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--stone-paper-dim); }
.suite-table th { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hedge); }
.suite-table td.figure { font-family: var(--font-mono); }

/* ---------- scroll arrow (about page intro) ---------- */
.about-intro { position: relative; }
.scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ironstone);
  opacity: 0.55;
  text-decoration: none;
  animation: scroll-bob 1.8s ease-in-out infinite;
  transition: opacity 0.2s;
}
.scroll-arrow:hover { opacity: 0.9; }
@keyframes scroll-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-arrow { animation: none; }
}
