/* H&M Property Management. First-pass redesign, 2026-10-23.
   Type: Archivo (display, semi-expanded) + Public Sans (text), both OFL, self-hosted. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #181817;
  --body: #34352f;
  --muted: #5c5d57;
  --canvas: #ffffff;
  --surface: #f3f2ee;
  --line: #dcdad2;
  --gold: #c49b22;
  --gold-hover: #d6ae38;
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
  --radius: 2px;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --text: "Public Sans", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "liga" 1, "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 106%;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.35rem, 1.55rem + 3.1vw, 4rem);
  font-weight: 720;
  line-height: 1.03;
  letter-spacing: -0.028em;
}
h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.35rem);
  font-weight: 680;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h3 {
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h2 a, h3 a { text-decoration: none; }

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

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Buttons: square-cornered, like the logo's lines */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-line-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
@media (hover: hover) {
  .btn-solid:hover { background: #3a3a37; border-color: #3a3a37; }
  .btn-line:hover { background: var(--ink); color: #fff; }
  .btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
  .btn-line-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
  .site-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
  .site-footer a:hover, .prose a:hover, .direct a:hover, .big-line a:hover { text-decoration-color: var(--gold); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--canvas);
  border-bottom: 1px solid transparent;
  overflow-anchor: none;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.header-inner { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; transition: padding .25s ease; }
.brand { flex: none; display: block; }
.brand img { height: 92px; width: auto; transition: height .25s ease; }
.site-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.site-nav a { color: var(--body); font-weight: 500; font-size: 1rem; text-decoration: none; padding: 10px 0; white-space: nowrap; }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.header-call { flex: none; }
.call-short { display: none; }
.menu-toggle { display: none; }
.site-header.shrunk { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(24,24,23,.06); }
.site-header.shrunk .header-inner { padding-top: 8px; padding-bottom: 8px; }
.site-header.shrunk .brand img { height: 62px; }

@media (max-width: 1080px) {
  .header-inner { gap: 14px; }
  .brand img { height: 68px; }
  .site-header.shrunk .brand img { height: 50px; }
  .header-call { margin-left: auto; min-height: 44px; padding: 10px 16px; }
  .call-long { display: none; }
  .call-short { display: inline; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 48px; height: 48px; padding: 0 12px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px; box-shadow: 0 12px 24px rgba(24,24,23,.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-family: var(--display); font-stretch: 106%; font-size: 1.35rem; font-weight: 600; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
}

/* Framed photo: a gold L offset behind the bottom-left corner, echoing the logo */
.framed { position: relative; isolation: isolate; margin: 0 0 14px; }
.framed::before {
  content: ""; position: absolute; z-index: -1; left: -14px; bottom: -14px;
  width: 42%; height: 58%; border-left: 6px solid var(--gold); border-bottom: 6px solid var(--gold);
}
.framed img { width: 100%; border-radius: var(--radius); }
@media (max-width: 600px) {
  .framed { margin: 0 0 9px; }
  .framed::before { left: -9px; bottom: -9px; border-width: 4px; }
}

/* Home hero */
.hero { padding: clamp(28px, 3.4vw, 52px) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(28px, 3vw, 40px); }
.hero h1 { margin: 0; max-width: 15ch; }
.hero-side p { margin: 0; font-size: 1.125rem; color: var(--body); max-width: 44ch; }
.hero-side .actions { margin-top: 24px; }

/* Offer rows */
.offer { padding-bottom: var(--section); }
.offer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px 72px; align-items: center; }
.offer-flip .offer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.offer-flip .framed { order: 2; }
.offer-copy p { max-width: 46ch; }
.offer-copy .btn { margin-top: 8px; }

.rates { width: 100%; max-width: 440px; border-collapse: collapse; margin: 4px 0 22px; font-variant-numeric: tabular-nums; }
.rates th, .rates td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.rates tr:first-child th, .rates tr:first-child td { border-top: 2px solid var(--ink); }
.rates th { font-weight: 500; color: var(--body); }
.rates td { text-align: right; font-family: var(--display); font-stretch: 106%; font-weight: 680; font-size: 1.2rem; color: var(--ink); white-space: nowrap; padding-left: 16px; }
.rates-lg { max-width: none; }
.rates-lg td { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); }
.rates-lg th, .rates-lg td { padding: 20px 0; }

/* Homes and rentals pair */
.pair { background: var(--surface); padding: var(--section) 0; }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px; }
.pair article { border-top: 2px solid var(--ink); padding-top: 28px; }
.pair p { max-width: 48ch; }
.pair .btn { margin-top: 8px; }

/* Location */
.location { padding: var(--section) 0; }
.location-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 40px 72px; align-items: center; }
.location-copy p { max-width: 42ch; }

/* Dark contact band */
.cta-band { background: var(--ink); color: #e9e8e3; padding: clamp(56px, 7vw, 96px) 0; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { margin: 0; max-width: 52ch; color: #d6d5cf; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px 64px; align-items: end; }
.cta-inner .actions { margin-top: 0; }

/* Inner page heads */
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 88px); }
.head-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { font-size: clamp(1.1rem, 1.04rem + .3vw, 1.25rem); line-height: 1.6; max-width: 56ch; margin: 18px 0 0; color: var(--body); }
.page-head.has-photo .head-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 72px; align-items: center; }
.page-commercial .page-head.has-photo .head-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr); }
.page-commercial .page-head .framed { max-width: 460px; justify-self: end; }

/* Detail sections */
.detail { padding: 0 0 var(--section); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.detail-grid.narrow-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.detail-text p { max-width: 52ch; }
.note { margin-top: 24px; color: var(--muted); max-width: 52ch; }

.specs { margin: 0; border-top: 2px solid var(--ink); }
.specs div { display: grid; grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.4fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); font-weight: 600; }

.plans { padding: 0 0 var(--section); }
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px; }
.plan h2 { margin-bottom: 18px; }
.plan .btn { margin-top: 26px; }
.other-plan { margin-top: 36px; padding: 24px 0 0; border-top: 1px solid var(--line); }
.other-plan .btn { margin-top: 6px; }

.ticks { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ticks li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 12px; height: 2px; background: var(--gold); }

/* Enquiry */
.enquiry, .contact-main { background: var(--surface); padding: var(--section) 0; }
.contact-main { background: transparent; padding-top: 0; }
.enquiry-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px 80px; align-items: start; }
.enquiry-copy p { max-width: 40ch; }
.direct a, .big-line a { font-weight: 600; color: var(--ink); }
.big-line { font-family: var(--display); font-stretch: 106%; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); font-weight: 650; margin: 0 0 6px; }
.big-line a { text-decoration-thickness: 1px; }
.contact-details h2 { font-size: 1.25rem; margin-top: 36px; }
.contact-details h2:first-child { margin-top: 0; }
.contact-details address { margin-bottom: 18px; }
.contact-main .enquiry-form { background: var(--surface); padding: clamp(24px, 3vw, 40px); }

.enquiry-form { display: block; }
.hp { position: absolute; left: -9999px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #a9a79f; border-radius: var(--radius); padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--ink); }
.consent { display: flex; gap: 12px; align-items: center; min-height: 44px; margin: 16px 0 18px; font-size: .95rem; color: var(--body); }
.consent input { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); flex: none; }

/* Prose */
.prose { max-width: calc(760px + 2 * var(--pad)); padding-bottom: var(--section); }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: clamp(56px, 6vw, 80px) 0 28px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 40px 64px; }
.footer-brand img { width: 230px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; color: var(--muted); }
.site-footer h2 { font-family: var(--text); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { text-decoration-color: transparent; }
.site-footer address a { text-decoration-color: var(--line); }
.social { display: flex; gap: 18px; margin-top: 14px; }
.social a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); }
.footer-base { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer-base span:last-child { margin-left: auto; }
.footer-base a { text-decoration: underline; text-decoration-color: var(--line); }

/* Tablet and phone */
@media (max-width: 900px) {
  .hero-grid, .offer-grid, .offer-flip .offer-grid, .location-grid, .cta-inner,
  .page-head.has-photo .head-grid, .page-commercial .page-head.has-photo .head-grid,
  .detail-grid, .detail-grid.narrow-left, .enquiry-grid, .pair-grid, .plans-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .offer .framed, .offer-flip .framed { order: 2; }
  .location-grid .framed { order: -1; }
  .page-commercial .page-head .framed { justify-self: start; max-width: 420px; }
  .footer-base span:last-child { margin-left: 0; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero { padding-top: 28px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 auto; }
  .specs div { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); }
  .footer-brand img { width: 200px; }
  .site-footer li a, .social a, .footer-base a { display: inline-block; padding: 11px 0; }
  .site-footer li { margin: 0; }
}

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