/* REF Property Management Ltd */

:root {
  --navy: #12324a;
  --navy-deep: #0c2436;
  --navy-soft: #1d4a6b;
  --ink: #17232e;
  --muted: #4a5a68;
  --sand: #e0b07a;
  --sand-light: #f7efe4;
  --stone: #c58b53;
  --terracotta: #9a4a2c;
  --slate-bg: #eef2f5;
  --line: #dfe5ea;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(12, 36, 54, 0.45);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}

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

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: var(--navy);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--terracotta);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--sand);
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow {
  width: min(860px, 100% - 2.5rem);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  outline-color: var(--sand);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  backdrop-filter: saturate(160%) blur(8px);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--navy);
  text-decoration: none;
}

.brand-ref {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand-name {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--slate-bg);
}

.nav-toggle {
  display: none;
}

.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 760px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--navy);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }

  .js .site-nav a {
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .js .site-nav li:last-child a {
    border-bottom: 0;
  }

  .no-js .header-inner {
    flex-wrap: wrap;
    padding-block: 0.5rem;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(224, 176, 122, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy-soft) 0%, var(--navy) 45%, var(--navy-deep) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: end;
  padding-top: clamp(3.5rem, 8vw, 6rem);
}

.hero-copy {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.eyebrow {
  margin-bottom: 1.25rem;
  color: var(--sand);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 16ch;
  color: #fff;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
}

.lead {
  max-width: 42ch;
  margin-bottom: 2rem;
  color: #c9d6e2;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.45rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--sand);
  color: var(--navy-deep);
}

.btn-primary:hover {
  background: #ebc493;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Hero illustration: a sandstone tenement drawn with CSS */
.hero-art {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.building {
  position: relative;
  width: min(100%, 300px);
  padding: 30px 28px 0;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #dcab74 0%, #c68d55 100%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.building::before {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: -14px;
  height: 16px;
  border-radius: 3px;
  background: #b7793f;
}

.chimney {
  position: absolute;
  top: -44px;
  width: 28px;
  height: 32px;
  border-radius: 2px 2px 0 0;
  background: #a96d36;
}

.chimney::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 0;
  height: 6px;
  border-radius: 2px;
  background: #93602f;
}

.chimney-1 {
  left: 16%;
}

.chimney-2 {
  right: 16%;
}

.facade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 20px;
  align-items: start;
}

.window {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 4px solid #f5e9d8;
  border-radius: 3px;
  background: linear-gradient(155deg, #2a5878 0%, #163a55 55%, #0f2c42 100%);
}

.window::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#f5e9d8, #f5e9d8) center / 3px 100% no-repeat,
    linear-gradient(#f5e9d8, #f5e9d8) center 40% / 100% 3px no-repeat;
}

.window.lit {
  background: linear-gradient(155deg, #f6d6a6 0%, #e0b07a 100%);
}

.door {
  align-self: end;
  aspect-ratio: 3 / 5;
  border: 4px solid #f5e9d8;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #a3532f 0%, #8a4226 100%);
}

/* Sections */
.section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

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

.section-slate {
  background: var(--slate-bg);
}

.kicker {
  margin-bottom: 0.9rem;
  color: var(--terracotta);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.statement {
  max-width: 24ch;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.2;
}

.statement-note {
  max-width: 62ch;
  margin: 1.75rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--stone);
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-grid p {
  max-width: 54ch;
}

.text-link {
  font-weight: 600;
}

.facts {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0.5rem 1.5rem 0.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.facts::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(var(--stone), var(--terracotta));
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--muted);
  font-size: 0.95rem;
}

.facts dd {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
  text-align: right;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.contact-grid p {
  max-width: 46ch;
  color: var(--muted);
}

.address-card {
  padding: 2rem 2.25rem;
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  font-style: normal;
  line-height: 1.8;
}

.address-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--terracotta);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.address-card strong {
  color: var(--navy);
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  padding-block: 3rem;
  background: var(--navy-deep);
  color: #b9c7d4;
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

.footer-brand .brand-ref {
  color: #fff;
}

.footer-brand .brand-name {
  margin-left: 0.35rem;
  color: #b9c7d4;
}

.footer-legal {
  max-width: 78ch;
}

/* Responsive */
@media (max-width: 860px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 699px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-art {
    display: none;
  }
}

@media (max-width: 420px) {
  .facts div {
    flex-direction: column;
    gap: 0.15rem;
  }

  .facts dd {
    text-align: left;
  }

  .address-card {
    padding: 1.6rem 1.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
