/* Inner pages: landlords, tenants, fees, contact, areas and the town pages.
   Sits on top of styles.css and uses the same brand tokens. */

.page-header { position: sticky; padding-block: 10px; box-shadow: 0 6px 30px rgba(31, 36, 50, 0.22); }
.page-header .header__logoimg { height: 58px; }

/* -- Page hero --------------------------------------------- */
.phero {
  background: var(--slate);
  color: #f2f5f7;
  padding: clamp(36px, 6vh, 70px) var(--pad) clamp(50px, 8vh, 90px);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; font-size: 12px; color: rgba(242, 245, 247, 0.72); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: rgba(242, 245, 247, 0.4); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(242, 245, 247, 0.35); }
.crumbs a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.phero__title {
  margin-top: clamp(22px, 4vh, 40px);
  max-width: 18ch;
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 80px);
  font-weight: 500; line-height: 1.06;
}
.phero__title em { color: var(--gold); font-style: italic; }
.phero__lede { margin-top: 22px; max-width: 62ch; font-size: clamp(16px, 1.4vw, 19px); color: rgba(242, 245, 247, 0.84); }
.phero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.phero .btn:not(.btn--solid) { border-color: rgba(242, 245, 247, 0.4); color: #f2f5f7; }
.phero .btn:not(.btn--solid):hover { color: var(--navy); }

/* -- Quick facts ------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.fact { background: var(--bg-2); padding: 24px clamp(18px, 2vw, 30px); }
.fact dt { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.fact dd { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.fact dd small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--ink-dim); }

/* -- Layout ------------------------------------------------ */
.pwrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
  padding: clamp(50px, 8vh, 90px) var(--pad);
}
.pwrap--full { display: block; }
.prose > * + * { margin-top: 16px; }
.prose h2 {
  margin-top: clamp(38px, 6vh, 56px);
  font-family: var(--font-serif);
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 500; line-height: 1.2;
  color: var(--navy);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 26px; font-size: 17px; font-weight: 700; color: var(--navy); }
.prose p, .prose li { max-width: 68ch; font-size: 16px; line-height: 1.75; color: rgba(31, 36, 50, 0.82); }
.prose ul:not(.checklist) { padding-left: 20px; }
.prose ul:not(.checklist) li + li { margin-top: 6px; }
.prose a:not(.btn) { color: var(--gold-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: var(--navy); }

/* -- Side card --------------------------------------------- */
.sidecard {
  position: sticky; top: 104px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 18px 60px rgba(31, 36, 50, 0.08);
}
.sidecard h2 { font-family: var(--font-serif); font-size: 24px; font-weight: 500; line-height: 1.25; color: var(--navy); }
.sidecard p { margin-top: 10px; font-size: 14px; color: var(--ink-dim); }
.sidecard__tel { display: block; margin-top: 16px; font-size: 22px; font-weight: 700; color: var(--navy); }
.sidecard__tel:hover { color: var(--gold-deep); }
.sidecard .btn { margin-top: 16px; width: 100%; text-align: center; }
.sidecard__rows { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-dim); }
.sidecard__rows div { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; }
.sidecard__rows strong { color: var(--navy); white-space: nowrap; }
.sidecard__link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }

/* -- Rent table -------------------------------------------- */
.rent { margin-top: 20px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; max-width: 760px; }
.rent table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rent caption { padding: 16px 20px; background: var(--bg-2); text-align: left; font-weight: 700; color: var(--navy); }
.rent th, .rent td { padding: 11px 20px; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.rent td { text-align: right; font-weight: 700; color: var(--navy); white-space: nowrap; }
.rent tr.is-group th { background: #fbf9f6; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.rent__note { margin-top: 12px; max-width: 760px; font-size: 13px !important; line-height: 1.6 !important; color: var(--ink-dim) !important; }

/* -- Streets, chips, town cards ---------------------------- */
.streets { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; }
.streets li { margin: 0 !important; padding: 7px 14px; border-radius: 40px; background: var(--bg-2); font-size: 14px; color: var(--navy); }
.towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 26px; }
.town {
  display: block; padding: 24px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--card);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.town:hover { border-color: var(--gold); transform: translateY(-3px); }
.town strong { display: block; font-family: var(--font-serif); font-size: 22px; font-weight: 500; color: var(--navy); }
.town span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-dim); }
.town small { display: block; margin-top: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.linkrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.linkrow a {
  padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 40px;
  font-size: 14px; color: var(--navy) !important; font-weight: 600; text-decoration: none !important;
  transition: background 0.3s, border-color 0.3s;
}
.linkrow a:hover { background: var(--gold); border-color: var(--gold); }

/* -- Questions --------------------------------------------- */
.qa { margin-top: 18px; max-width: 760px; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { padding: 16px 28px 16px 0; font-size: 16px; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 21px; font-weight: 400; color: var(--gold-deep); }
.qa details[open] summary::after { content: "–"; }
.qa details p { padding-bottom: 18px; margin: 0; }

/* -- Full-width blocks reused from the homepage ------------ */
.pblock { padding: clamp(50px, 8vh, 90px) var(--pad); }
.pblock--cream { background: var(--bg-2); }
.pblock__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 500; line-height: 1.12;
  color: var(--navy);
}
.pblock__lede { margin-top: 14px; max-width: 62ch; font-size: 16px; color: var(--ink-dim); }
.pblock .svc-grid, .pblock .comp-grid, .pblock .calc, .pblock .feelist, .pblock .journey__track, .pblock .ten-detail { margin-top: clamp(28px, 4vh, 44px); }
.pblock .calc { box-sizing: border-box; }
.notes { margin-top: 26px; font-size: 14px; max-width: 72ch; color: var(--ink-dim); }
.notes a { color: var(--gold-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* -- CTA band ---------------------------------------------- */
.ctaband {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(40px, 7vh, 70px) var(--pad);
  background: var(--navy); color: #f2f5f7;
}
.ctaband h2 { font-family: var(--font-serif); font-size: clamp(26px, 3vw, 40px); font-weight: 500; line-height: 1.15; max-width: 22ch; }
.ctaband p { margin-top: 8px; max-width: 54ch; font-size: 15px; color: rgba(242, 245, 247, 0.74); }
.ctaband__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ctaband .btn:not(.btn--solid) { border-color: rgba(242, 245, 247, 0.4); color: #f2f5f7; }
.ctaband .btn:not(.btn--solid):hover { color: var(--navy); }

/* -- Contact ----------------------------------------------- */
.pcontact .contact__grid { margin-top: 0; }
.pcontact .contact__addr { margin-top: 18px; }

/* -- Homepage areas band ----------------------------------- */
.areas-band { padding: clamp(60px, 10vh, 110px) var(--pad); background: var(--bg-2); }
.areas-band h2 { font-family: var(--font-display); font-size: clamp(30px, 3.8vw, 54px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: var(--navy); }
.areas-band > p { margin-top: 14px; max-width: 58ch; color: var(--ink-dim); }
.areas-band__all { display: inline-block; margin-top: 22px; font-weight: 600; font-size: 15px; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }

/* -- Homepage fee list, closed until clicked ---------------- */
.feelist--fold { border: 1px solid var(--line); border-radius: 18px; padding: 0 clamp(18px, 2.4vw, 30px); background: var(--card); }
.feelist--fold summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 0; cursor: pointer; list-style: none;
}
.feelist--fold summary::-webkit-details-marker { display: none; }
.feelist--fold summary::after {
  content: "Show all fees +"; flex: none;
  font-size: 13px; font-weight: 600; color: var(--gold-deep); white-space: nowrap;
}
.feelist--fold[open] summary::after { content: "Hide fees –"; }
.feelist--fold summary:hover h3 { color: var(--gold-deep); }
.feelist__head { display: block; }
.feelist--fold h3 { margin-bottom: 2px; }
.feelist__head small { display: block; font-size: 13px; color: var(--ink-dim); }
.feelist--fold[open] { padding-bottom: 20px; }

/* -- Keep inner page content on the homepage's centred column -- */
.phero, .pblock, .pwrap, .ctaband, .areas-band {
  padding-inline: max(var(--pad), calc((100% - 1320px) / 2));
}
.pwrap { grid-template-columns: minmax(0, 820px) 340px; justify-content: space-between; }
.facts { padding-inline: max(0px, calc((100% - 1320px) / 2)); background: var(--bg-2); }
.fact { background: transparent; border-left: 1px solid var(--line); }
.fact:first-child { border-left: none; }

/* -- Footer with the extra column -------------------------- */
.footer__top--wide { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; }

@media (max-width: 1080px) {
  .pwrap { grid-template-columns: 1fr; }
  .sidecard { position: static; }
  .footer__top--wide { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-header .header__logoimg { height: 48px; }
  .footer__top--wide { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 18px 16px; }
  .fact dd { font-size: 14px; }
  .rent th, .rent td { padding: 10px 14px; }
  .rent caption { padding: 14px; }
  .ctaband__btns, .ctaband__btns .btn, .phero__cta, .phero__cta .btn { width: 100%; }
}

@media (max-width: 1080px) {
  .pwrap { grid-template-columns: 1fr; }
}

/* Tenant search links: two even columns on phones */
.linkrow a { text-align: center; }
@media (max-width: 640px) {
  .linkrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* Back-to-top arrow. Sits under the header and menu, hidden until scrolled. */
.totop {
  position: fixed; z-index: 800;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--slate); color: #f2f5f7;
  box-shadow: 0 6px 20px rgba(31, 36, 50, 0.28);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.25s;
}
.totop.is-on { opacity: 0.92; visibility: visible; transform: none; }
.totop:hover, .totop:focus-visible { opacity: 1; background: var(--navy); }
.totop svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .totop { transition: none; } }

/* Terms of Business form */
.terms-form { max-width: 560px; margin-top: 8px; }
.prose .terms-form .field__err, .prose .terms-form .contact__privacy, .prose .terms-form .contact__status { max-width: none; }
.terms-form__trap { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.terms-done { max-width: 560px; padding: 26px; border: 1px solid var(--gold); border-radius: 18px; background: #fdf6f1; outline: none; }
.terms-done > * + * { margin-top: 12px; }
.terms-form[hidden], .terms-done[hidden] { display: none; }
