/* A & M ESTATES — site styles. Palette P1 «Μίνιο», type F1 (Geologica + JetBrains Mono). */

/* Metric-matched local fallbacks so the swap to the web fonts does not shift layout. */
@font-face {
  font-family: "Geologica Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 300 500;
  size-adjust: 105.8%;
  ascent-override: 92.2%;
  descent-override: 26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Geologica Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 800;
  size-adjust: 104.9%;
  ascent-override: 92.9%;
  descent-override: 26.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "JetBrains Mono Fallback";
  src: local("Menlo"), local("Menlo-Regular");
  size-adjust: 120%;
  ascent-override: 85%;
  descent-override: 25%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f3f5f7;
  --line: #d7dce1;
  --mullion: #e9ecef;
  --steel: #8b949e;
  --text: #1a1e23;
  --muted: #5e6670;
  --signature: #e8461e;
  --action: #c7360f;
  --on-action: #ffffff;
  --ok: #1d6b3a;
  --ok-bg: #eaf4ee;
  --err-bg: #fcefeb;

  --sans: "Geologica", "Geologica Fallback", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, monospace;

  --gutter: 16px;
  --max: 1280px;
  --gap: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181c;
    --surface: #1f2328;
    --line: #353b42;
    --mullion: #23282e;
    --steel: #5e6670;
    --text: #eef1f4;
    --muted: #9aa3ad;
    --action: #ff6a3d;
    --on-action: #15181c;
    --ok: #7fd19c;
    --ok-bg: #18271f;
    --err-bg: #2c1c17;
  }
}

@media (min-width: 40rem) {
  :root { --gutter: 32px; }
}
@media (min-width: 64rem) {
  :root { --gutter: 48px; --gap: 32px; }
}

/* ---------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "kern";
  overflow-wrap: break-word;
}

@media (min-width: 64rem) {
  body { font-size: 1.0625rem; }
}

main { flex: 1 0 auto; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}

p { margin: 0; }
p + p { margin-top: 1em; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--action); }

:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
}

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

.num { font-family: var(--mono); font-size: 0.94em; letter-spacing: 0; font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
}
.skip:focus { top: 8px; color: var(--bg); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- header */

.site-header { border-bottom: 1px solid var(--line); }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 40px;
  padding-block: 18px;
}

.brand { display: block; flex: none; }
.brand img { width: 160px; height: auto; aspect-ratio: 329.5 / 74; }

@media (min-width: 64rem) {
  .site-header .wrap { padding-block: 26px; }
  .brand img { width: 204px; }
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a {
  display: inline-block;
  padding: 10px 0 8px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.nav a:hover { color: var(--action); }
.nav a[aria-current="page"] { border-bottom-color: var(--signature); }

/* Phone: logo row, then the four links as an even 2×2 grid of 48px tiles. */
@media (max-width: 39.99rem) {
  .site-header .wrap { padding-bottom: 0; row-gap: 14px; }
  .nav { width: 100%; }
  .nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    font-size: 0.9375rem;
    line-height: 1.2;
  }
  .nav li { border-top: 1px solid var(--line); }
  .nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    height: 100%;
    padding: 6px 0;
    border-bottom-width: 3px;
  }
}
@media (min-width: 64rem) {
  .nav ul { gap: 0 36px; }
}

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

.hero { position: relative; }

.hero .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  /* Façade mullions: a hairline at the start of every grid column, header to ground line. */
  background-image: linear-gradient(to right, var(--mullion) 1px, transparent 1px);
  background-size: calc((100% + var(--gap)) / 12) 100%;
  background-origin: content-box;
  background-clip: content-box;
  background-repeat: repeat-x;
}

.hero-text {
  grid-column: 1 / -1;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero h1 {
  font-size: clamp(2.125rem, 1.1rem + 4.2vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 10.5em;
}

.hero .lead {
  margin-top: 24px;
  max-width: 34em;
  font-size: 1.0625rem;
  color: var(--text);
}

.hero-mark {
  grid-column: 6 / -1;
  align-self: end;
  margin-top: 8px;
}
.hero-mark img { width: 100%; height: auto; aspect-ratio: 100 / 74; }

@media (min-width: 48rem) {
  .hero-text { grid-column: 1 / span 7; padding-top: 72px; padding-bottom: 56px; align-self: end; }
  .hero-mark { grid-column: 8 / -1; margin-top: 0; }
}

@media (min-width: 64rem) {
  .hero-text { padding-top: 120px; padding-bottom: 72px; }
  .hero-mark { grid-column: 8 / span 5; }
  .hero .lead { font-size: 1.1875rem; margin-top: 32px; }
}

/* The block rises from the ground line once on load. */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark img { animation: rise 900ms cubic-bezier(0.2, 0.7, 0.1, 1) both; }
}
@keyframes rise {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Ground line + key figures directly under the hero. */
.facts {
  border-top: 2px solid var(--text);
}
.facts dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap);
  margin: 0;
}
.facts dl > div {
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 0.875rem; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 1.0625rem; font-weight: 500; }
.facts .num { font-weight: 400; }

@media (min-width: 48rem) {
  .facts dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts dl > div { border-bottom: 0; padding: 20px 0 28px; }
  .facts { border-bottom: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- directory (home) */

.directory { padding-block: 56px 72px; }

.directory h2 {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 16px;
}

.directory ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
.directory li { border-bottom: 1px solid var(--line); }

.directory a {
  display: grid;
  gap: 4px var(--gap);
  padding: 20px 0 22px;
  text-decoration: none;
}
.directory .title {
  font-size: clamp(1.375rem, 1.05rem + 1.1vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.directory .desc { color: var(--muted); }
.directory a:hover .title { color: var(--action); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.directory a:hover { color: inherit; }

@media (min-width: 48rem) {
  .directory { padding-block: 96px 120px; }
  .directory a {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: baseline;
    padding: 28px 0 30px;
  }
  .directory .title { grid-column: 1 / span 6; }
  .directory .desc { grid-column: 7 / -1; }
}

/* ---------------------------------------------------------------- interior pages */

.page-head .wrap {
  padding-top: 48px;
  padding-bottom: 32px;
}
.page-head h1 {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.75rem);
  letter-spacing: -0.028em;
  line-height: 1.04;
  max-width: 14.5em;
}
.page-head .lead {
  margin-top: 20px;
  max-width: 38em;
  font-size: 1.0625rem;
  color: var(--muted);
}
.page-head + .floor { border-top: 2px solid var(--text); }

@media (min-width: 64rem) {
  .page-head .wrap { padding-top: 96px; padding-bottom: 48px; }
  .page-head .lead { font-size: 1.1875rem; }
}

/* A «floor»: label column on the left, content on the right. */
.floor { border-top: 1px solid var(--line); }
.floor > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px var(--gap);
  padding-block: 32px 48px;
}
.floor h2 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.floor .body { min-width: 0; max-width: 46rem; }
.floor .body.wide { max-width: none; }
.floor .note { margin-top: 16px; color: var(--muted); font-size: 0.9375rem; }

@media (min-width: 64rem) {
  .floor > .wrap {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    padding-block: 40px 64px;
  }
  .floor h2 { grid-column: 1 / span 4; padding-top: 2px; }
  .floor .body { grid-column: 5 / -1; }
  .floor .body.wide { grid-column: 1 / -1; }
}

.floor:last-of-type > .wrap { padding-bottom: 96px; }

/* ---------------------------------------------------------------- register (key/value data sheet) */

.register { margin: 0; border-top: 1px solid var(--text); }
.register > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 24px;
  padding: 14px 0 15px;
  border-bottom: 1px solid var(--line);
}
.register dt { color: var(--muted); font-size: 0.9375rem; }
.register dd { margin: 0; font-weight: 500; }
.register dd .num { font-weight: 400; font-size: 1rem; }
.register dd small { display: block; font-weight: 400; color: var(--muted); font-size: 0.9375rem; }

@media (min-width: 40rem) {
  .register > div { grid-template-columns: 13rem minmax(0, 1fr); align-items: baseline; }
}

/* ---------------------------------------------------------------- statements table */

.statements { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
@media (min-width: 48rem) {
  .statements { table-layout: fixed; }
  .statements .c-year { width: 5.5rem; }
  .statements .c-date { width: 11.5rem; }
  .statements .c-size { width: 6.5rem; }
  .statements .c-act { width: 11rem; }
}
.statements th, .statements td { text-align: left; vertical-align: baseline; }
.statements thead th {
  padding: 0 16px 12px 0;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid var(--text);
  white-space: nowrap;
}
.statements tbody th, .statements tbody td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--line);
}
.statements .year { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.statements .title { font-size: 1rem; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.statements .r { text-align: right; padding-right: 0; }
.statements thead .r { padding-right: 0; }
.statements .act { padding-left: 24px; }
.statements .loading td { height: 81px; padding-block: 0; color: var(--muted); vertical-align: middle; }

.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--text);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.pdf-link:hover { background: var(--text); color: var(--bg); }

/* Phone: each statement is a stacked record. */
@media (max-width: 47.99rem) {
  .statements thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .statements tbody { display: block; border-top: 2px solid var(--text); }
  .statements tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "year title" "year date" "year size" "year act";
    column-gap: 16px;
    row-gap: 4px;
    padding: 18px 0 20px;
    border-bottom: 1px solid var(--line);
  }
  .statements tbody th, .statements tbody td { display: block; padding: 0; border: 0; }
  .statements tr.loading { display: block; }
  .statements .loading td { height: 9rem; display: flex; align-items: center; }
  .statements .year { grid-area: year; }
  .statements .title { grid-area: title; }
  .statements .meta { color: var(--muted); font-size: 0.875rem; text-align: left; }
  .statements .meta:nth-child(3) { grid-area: date; }
  .statements .meta:nth-child(4) { grid-area: size; }
  .statements .meta::before { content: attr(data-label) " "; font-family: var(--sans); }
  .statements .act { grid-area: act; text-align: left; margin-top: 12px; width: auto; padding: 0; }
}

.status-panel {
  padding: 28px 24px;
  background: var(--surface);
  border-top: 2px solid var(--text);
}
.status-panel p + p { margin-top: 8px; color: var(--muted); }

/* ---------------------------------------------------------------- properties */

.properties { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.properties > li { border-bottom: 1px solid var(--line); }

.property {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px var(--gap);
  padding: 24px 0 32px;
}
.property-art { aspect-ratio: 16 / 10; overflow: hidden; }
.facade { display: block; width: 100%; height: 100%; }
.fx-bg { fill: var(--surface); }
.fx-mull { fill: var(--line); }
.fx-pier { fill: var(--steel); }
.fx-band { fill: var(--steel); }
.fx-block { fill: var(--signature); }
.fx-ground { fill: var(--text); }

.property .register > div:last-child { border-bottom: 0; }
.property h3 {
  font-size: clamp(1.375rem, 1.05rem + 1.1vw, 1.875rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.status-mark {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.5em;
  background: var(--signature);
  vertical-align: 0.02em;
}

@media (min-width: 48rem) {
  .property {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    padding: 32px 0 40px;
  }
  .property-art { grid-column: 1 / span 5; }
  .property-data { grid-column: 6 / -1; }
}
@media (min-width: 64rem) {
  .property-art { grid-column: 1 / span 6; }
  .property-data { grid-column: 7 / -1; }
}

/* ---------------------------------------------------------------- forms */

.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px var(--gap); }
@media (min-width: 40rem) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form .full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 0.9375rem; font-weight: 500; }

.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  padding: 12px 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--muted);
  border-radius: 0;
  appearance: none;
}
.field textarea { min-height: 11rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--action); }
.field [aria-invalid="true"] { border-color: var(--action); border-width: 2px; padding: 11px 13px; }
.field-error { font-size: 0.875rem; color: var(--action); font-weight: 500; }
.field-error:empty { display: none; }

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

/* Turnstile runs with appearance=interaction-only. Its slot sits at the end of
   the message field's flex column: until the widget asks the visitor to act it
   takes no room (the negative margin cancels the 6px field gap). */
.ts-slot { margin-top: -6px; }
.ts-slot.is-visible { margin-top: 14px; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.form-foot p { font-size: 0.875rem; color: var(--muted); max-width: 30em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-action);
  background: var(--action);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.button:hover { background: var(--text); color: var(--bg); }
.button[disabled] { opacity: 0.6; cursor: progress; }

.form-status { padding: 0; }
.form-status:empty { display: none; }
.form-status.is-ok, .form-status.is-err {
  padding: 16px 18px;
  border-left: 0;
  border-top: 2px solid currentColor;
  font-weight: 500;
}
.form-status.is-ok { color: var(--ok); background: var(--ok-bg); }
.form-status.is-err { color: var(--action); background: var(--err-bg); }
.form-status.is-busy { color: var(--muted); }

.page-head .lead a { color: var(--text); font-weight: 500; }
.page-head .lead a:hover { color: var(--action); }

/* ---------------------------------------------------------------- 404 */

.notfound .wrap { padding-block: 64px 120px; }
.notfound h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.75rem); letter-spacing: -0.028em; max-width: 11em; }
.notfound .lead { margin-top: 20px; color: var(--muted); max-width: 34em; font-size: 1.0625rem; }
.notfound ul { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--text); max-width: 40rem; }
.notfound li { border-bottom: 1px solid var(--line); }
.notfound li a { display: block; padding: 14px 0; font-weight: 500; text-decoration: none; }
.notfound li a:hover { text-decoration: underline; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px var(--gap);
  padding-block: 28px 36px;
}
.footer-id { display: flex; gap: 14px; align-items: flex-start; }
.footer-id img { width: 36px; height: auto; aspect-ratio: 100 / 74; flex: none; margin-top: 3px; }
.legal { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; padding: 0; list-style: none; }
.legal li:not(:last-child)::after { content: "·"; padding: 0 0.5em; }
.legal .name { color: var(--text); font-weight: 500; flex-basis: 100%; }
.legal .name::after { content: none !important; }
@media (min-width: 64rem) {
  .legal .name { flex-basis: auto; }
  .legal .name::after { content: "·" !important; }
}
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-block; padding: 6px 0; }

@media (min-width: 64rem) {
  .site-footer .wrap { padding-block: 32px 40px; gap: 12px var(--gap); }
  .footer-nav { padding-left: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header .nav, .site-footer .footer-nav, .hero-mark { display: none; }
  body { color: #000; background: #fff; }
}
