/* The Oakhill — public landing page.
   Separate from the dashboard's stylesheet on purpose: the two share a
   palette and two typefaces, nothing else. The colours below are the ones
   from public/style.css, plus the olive of the logo mark (#887e49). */

:root {
  --ink: #0d1b2a;
  --ink-soft: #1b263b;
  --slate: #415a77;
  --slate-light: #778da9;
  --sand: #e0e1dd;
  --paper: #f7f8f9;
  --olive: #887e49;
  --olive-light: #a2975d;
  --line: rgba(13, 27, 42, 0.12);
  --font-title: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin: 0 0 18px;
}

h1 { font-size: clamp(30px, 5.2vw, 56px); font-weight: 300; }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: 19px; font-weight: 500; }

p { margin: 0 0 18px; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap.narrow { max-width: 760px; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gutter);
  background: var(--ink);
  color: var(--sand);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: block;
}

.brand-name {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sand);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover { border-bottom-color: var(--olive-light); }

.nav .nav-portal { color: var(--olive-light); }

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang button {
  background: none;
  border: 0;
  color: var(--slate-light);
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 7px;
  cursor: pointer;
  border-radius: 4px;
}

.lang button:hover { color: var(--sand); }
.lang button[aria-pressed="true"] { color: var(--ink); background: var(--olive); }

.menu-toggle {
  display: none;
  width: 38px;
  height: 34px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 6px;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--sand);
  margin: 4px 0;
}

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

.hero {
  position: relative;
  min-height: min(76vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: image-set(url("assets/estate.jpg") 1x);
  background-image: url("assets/estate.jpg");
  background-size: cover;
  background-position: center 58%;
}

/* Two washes rather than one: the photograph is brightest exactly where the
   heading sits, so the text column gets its own darkening from the left on
   top of the vertical gradient. */
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 27, 42, 0.78) 0%, rgba(13, 27, 42, 0.5) 34%, rgba(13, 27, 42, 0) 66%),
    linear-gradient(180deg, rgba(13, 27, 42, 0.45) 0%, rgba(13, 27, 42, 0.12) 34%, rgba(13, 27, 42, 0.72) 100%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(36px, 6vw, 72px);
  color: #fff;
}

.hero h1 {
  max-width: 16ch;
  margin-bottom: 14px;
  text-shadow: 0 1px 24px rgba(13, 27, 42, 0.45);
}

.eyebrow {
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #cdc08a;
  margin-bottom: 14px;
  text-shadow: 0 1px 10px rgba(13, 27, 42, 0.7);
}

.lede {
  max-width: 46ch;
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 14px rgba(13, 27, 42, 0.55);
  margin: 0;
}

/* ---------- sections ---------- */

.section { padding: clamp(52px, 7vw, 92px) 0; }

.section-alt { background: var(--sand); }

.section-dark {
  background: var(--ink-soft);
  color: var(--sand);
}

.section h2 { position: relative; padding-bottom: 16px; }

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 2px;
  background: var(--olive);
}

.section-lede {
  max-width: 54ch;
  color: var(--slate);
  margin-bottom: 36px;
}

.section-dark .section-lede { color: var(--slate-light); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 56px;
  list-style: none;
  margin: 34px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.facts li { display: flex; flex-direction: column; }

.facts strong {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 300;
  color: var(--olive);
}

.facts span {
  font-size: 14px;
  color: var(--slate);
  letter-spacing: 0.02em;
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--olive);
  padding: 28px 26px;
}

.card h3 { margin-bottom: 16px; }

.card p:last-child { margin-bottom: 0; }

.hours {
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: baseline;
}

.hours dt {
  font-size: 15px;
  color: var(--slate);
}

.hours dd {
  margin: 0;
  font-family: var(--font-title);
  font-size: 15px;
  text-align: right;
  white-space: nowrap;
}

.hours .muted {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--slate-light);
}

.emergency dd a { text-decoration: none; border-bottom: 1px solid var(--olive); }

.rules {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.rules li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
  font-size: 15.5px;
}

.rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--olive);
}

.small {
  font-size: 13.5px;
  color: var(--slate);
  margin: 0;
}

.contact-mail {
  font-family: var(--font-title);
  font-size: 15px;
  margin-bottom: 20px;
  /* Long enough to reach the edge of a narrow card, so let it break rather
     than push the card out. */
  overflow-wrap: anywhere;
}

.contact-mail a {
  text-decoration: none;
  border-bottom: 1px solid var(--olive);
  padding-bottom: 2px;
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--ink); color: var(--sand); }
.btn-primary:hover { background: var(--ink-soft); }

.btn-quiet { border-color: var(--line); color: var(--slate); }
.btn-quiet:hover { background: rgba(13, 27, 42, 0.05); }

.btn-gold { background: var(--olive); color: var(--ink); }
.btn-gold:hover { background: var(--olive-light); }

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

.footer {
  background: var(--ink);
  color: var(--slate-light);
  padding: 44px 0 36px;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 56px;
}

.footer p { margin: 0 0 6px; }

.footer a { color: var(--sand); text-decoration: none; }
.footer a:hover { color: var(--olive-light); }

.footer-name {
  font-family: var(--font-title);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
}

.footer-note {
  flex-basis: 100%;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(224, 225, 221, 0.14);
  font-size: 12.5px;
  max-width: 70ch;
}

/* ---------- small screens ---------- */

@media (max-width: 820px) {
  .menu-toggle { display: block; order: 3; }

  .nav {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .nav.open { max-height: 260px; padding-top: 10px; }

  .nav a { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(224, 225, 221, 0.1); }

  .topbar { flex-wrap: wrap; gap: 12px; }

  .brand-name { letter-spacing: 0.18em; font-size: 14px; }

  .facts { gap: 18px 32px; }

  /* Narrow enough that the heading sits over the whole photograph, so the
     wash comes from below instead of from the left. */
  .hero-veil {
    background: linear-gradient(
      180deg,
      rgba(13, 27, 42, 0.45) 0%,
      rgba(13, 27, 42, 0.14) 24%,
      rgba(13, 27, 42, 0.86) 68%,
      rgba(13, 27, 42, 0.94) 100%
    );
  }
}

/* On a phone the bar has to hold the mark, the name, three languages and the
   menu button on one line; everything shrinks a little rather than wrapping
   into a second row. */
@media (max-width: 520px) {
  .topbar { gap: 8px; padding: 12px 16px; }

  .brand { gap: 9px; }

  .brand img { width: 32px; height: 32px; }

  .brand-name { font-size: 12px; letter-spacing: 0.12em; }

  .lang button { font-size: 11px; padding: 5px 5px; }

  .menu-toggle { width: 30px; padding: 6px 3px; }

  :root { --gutter: 18px; }
}

/* ---------- board ---------- */

.board-intro { margin-bottom: 10px; }

.board-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}

.board-list li {
  font-family: var(--font-title);
  font-size: 16px;
  position: relative;
  padding-left: 16px;
}

.board-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 1px;
  background: var(--olive);
}

.board-contact a {
  text-decoration: none;
  border-bottom: 1px solid var(--olive);
  padding-bottom: 2px;
}
