/*
Theme Name: Croydon Loft
Description: One-page theme for Croydon Loft LLC, converted from the hand-made static site. Business info, hero text, photos and the form recipient are editable in Appearance → Customize → Croydon Loft. Privacy Policy, Terms of Use and Accessibility pages are created on activation; the contact form emails requests with wp_mail().
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tz-landing
*/

/* Croydon Loft — monochrome brutalist, building levels + elevator nav */
:root {
  --black: #0a0a0a;
  --white: #fff;
  --concrete: #eeeeea;
  --concrete-2: #dcdcd6;
  --grey: #55554f;
  --line: 3px solid var(--black);
  --display: "Syne", "Arial Black", sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--black); font-family: var(--body); font-size: 1.1875rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; margin: 0; letter-spacing: -0.02em; overflow-wrap: break-word; }
p { margin: 0; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; box-shadow: 0 0 0 6px var(--white); }
.process :focus-visible, .contact :focus-visible, .footer :focus-visible, .topbar :focus-visible { outline-color: var(--white); box-shadow: 0 0 0 6px var(--black); }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--black); color: var(--white); padding: 12px 18px; font-weight: 700; }
.skip:focus { top: 12px; }

.tag { display: inline-block; font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border: 2px solid currentColor; padding: 4px 10px; margin-bottom: 26px; }
.tag--light { color: var(--white); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px;
  background: var(--black); color: var(--white); border: var(--line); font: 700 1.0625rem/1.2 var(--body);
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer;
  box-shadow: 0 0 0 var(--black); transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s, color 0.15s;
}
.btn:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--black); background: var(--white); color: var(--black); }
.btn--lg { min-height: 62px; padding: 16px 30px; font-size: 1.125rem; }
.btn--outline { background: var(--white); color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); box-shadow: 6px 6px 0 var(--concrete-2); }
.btn--white { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--white:hover { background: var(--black); color: var(--white); box-shadow: 6px 6px 0 var(--white); }

/* Topbar + header */
.topbar { background: var(--black); color: var(--white); font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 16px; }
.topbar a { font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.topbar a:hover { text-decoration: underline; }
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__mark { width: 52px; height: 52px; flex: none; }
.brand__text { font-family: var(--display); font-weight: 800; font-size: 1.375rem; line-height: 0.95; text-transform: uppercase; letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; border: 2px solid transparent; }
.nav a:not(.btn):hover { border-color: var(--black); }
.nav .btn { margin-left: 12px; }

/* Elevator nav */
.lift { position: fixed; right: 14px; top: 50%; transform: translateY(-40%); z-index: 40; display: none; flex-direction: column; align-items: center; gap: 8px; padding: 10px 8px 12px; background: var(--white); border: var(--line); box-shadow: 6px 6px 0 var(--black); }
.lift__display { width: 100%; background: var(--black); color: var(--white); font: 700 1rem/1 var(--body); display: flex; justify-content: center; gap: 4px; padding: 8px 4px; margin-bottom: 4px; letter-spacing: 0.04em; }
.lift a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--black); font-weight: 700; font-size: 1rem; text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.lift a:hover { background: var(--concrete); }
.lift a[aria-current="true"] { background: var(--black); color: var(--white); }
@media (min-width: 1240px) { :root { --wrap: min(1120px, calc(100vw - 210px)); } .lift { display: flex; } }

/* Hero */
.hero { border-bottom: var(--line); background-image: linear-gradient(var(--concrete) 1px, transparent 1px), linear-gradient(90deg, var(--concrete) 1px, transparent 1px); background-size: 48px 48px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 64px); align-items: end; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.hero h1 { font-size: clamp(2rem, 4.9vw, 4.1rem); line-height: 0.98; margin-bottom: 30px; }
.hero__city { display: inline-block; background: var(--black); color: var(--white); padding: 0 0.14em 0.06em; margin-top: 0.08em; }
.hero__lead { font-size: clamp(1.1875rem, 1.5vw, 1.3125rem); max-width: 34em; color: #222; margin-bottom: 34px; background: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__photo { position: relative; border: var(--line); box-shadow: 14px 14px 0 var(--black); background: var(--white); }
.hero__photo img { width: 100%; aspect-ratio: 11 / 13; object-fit: cover; filter: grayscale(0.15) contrast(1.05); }
.hero__photo figcaption { position: absolute; left: -3px; bottom: -3px; background: var(--black); color: var(--white); font-size: 0.9375rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 12px; }
.hero__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 auto; border-top: var(--line); border-left: var(--line); border-right: var(--line); background: var(--white); }
.hero__facts div { padding: 20px 22px; }
.hero__facts div + div { border-left: var(--line); }
.hero__facts dt { font-size: 0.9375rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey); }
.hero__facts dd { margin: 4px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.hero__facts a { text-decoration: none; }
.hero__facts a:hover { text-decoration: underline; }

/* Ticker */
.ticker { background: var(--black); color: var(--white); overflow: hidden; border-bottom: var(--line); }
.ticker__track { display: flex; width: max-content; animation: tick 34s linear infinite; }
.ticker span { font-family: var(--display); font-weight: 800; font-size: clamp(1.75rem, 3.4vw, 2.75rem); text-transform: uppercase; padding: 14px 0; white-space: nowrap; }
.ticker span::after { content: "■"; font-size: 0.5em; vertical-align: middle; margin: 0 0.9em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* About */
.about { padding: clamp(72px, 9vw, 120px) 0; }
.about__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); margin-bottom: 64px; }
.about h2 { font-size: clamp(2rem, 5.4vw, 4.75rem); }
.about__lead { font-size: clamp(1.3125rem, 2vw, 1.625rem); line-height: 1.45; font-weight: 500; margin-bottom: 20px; }
.about__body p + p { color: #2b2b28; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--line); margin-bottom: 64px; }
.pillar { padding: 30px 28px 34px; transition: background-color 0.25s, color 0.25s; }
.pillar + .pillar { border-left: var(--line); }
.pillar:hover { background: var(--black); color: var(--white); }
.pillar:hover .pillar__n { color: #bdbdb7; }
.pillar__n { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; color: #6b6b66; margin-bottom: 18px; }
.pillar h3 { font-size: 1.75rem; margin-bottom: 10px; }
.pillar p:not(.pillar__n) { font-size: 1.0625rem; }
.duo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 28px; align-items: end; }
.duo figure { border: var(--line); position: relative; }
.duo img { width: 100%; object-fit: cover; }
.duo__a img { aspect-ratio: 11 / 8; }
.duo__b { transform: translateY(40px); }
.duo__b img { aspect-ratio: 4 / 5; }
.duo figcaption { position: absolute; top: -3px; right: -3px; background: var(--black); color: var(--white); font-size: 0.9375rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 12px; }

/* Process */
.process { background: var(--black); color: var(--white); padding: clamp(80px, 10vw, 130px) 0; }
.process h2 { font-size: clamp(2rem, 5.4vw, 4.75rem); max-width: 12em; margin-bottom: 56px; }
.process__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid #3a3a37; }
.process__list li { display: flex; gap: 22px; padding: 30px 28px 34px 0; border-bottom: 2px solid #3a3a37; }
.process__list li:nth-child(even) { padding-left: 28px; border-left: 2px solid #3a3a37; }
.process__n { font-family: var(--display); font-weight: 800; font-size: 3.25rem; line-height: 0.9; color: #a3a39d; flex: none; min-width: 2.3ch; }
.process h3 { font-size: 1.75rem; margin-bottom: 10px; }
.process li p { color: #d6d6d1; }

/* FAQ */
.faq { padding: clamp(72px, 9vw, 120px) 0; background: var(--concrete); border-bottom: var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
.faq__list { display: grid; gap: 14px; }
.faq__list details { background: var(--white); border: var(--line); }
.faq__list details[open] { box-shadow: 8px 8px 0 var(--black); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 20px; font-weight: 700; font-size: 1.1875rem; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: var(--black); color: var(--white); font-size: 1.5rem; line-height: 1; }
.faq__list details[open] summary::after { content: "–"; }
.faq__list details p { padding: 0 20px 22px; color: #2b2b28; }

/* Contact */
.contact { background: var(--black); color: var(--white); padding: clamp(80px, 10vw, 130px) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact h2 { font-size: clamp(2rem, 5.4vw, 4.75rem); margin-bottom: 20px; }
.contact__info > p { color: #d6d6d1; margin-bottom: 32px; }
.contact__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid #3a3a37; }
.contact__list li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 2px solid #3a3a37; }
.contact__list span { font-size: 0.9375rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #b3b3ad; padding-top: 2px; }
.contact__list a { overflow-wrap: anywhere; font-weight: 500; display: flex; align-items: center; min-height: 44px; }
.contact__list address { font-style: normal; }
.form { display: grid; gap: 18px; border: 3px solid var(--white); padding: clamp(22px, 4vw, 40px); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.form input:not([type="radio"]), .form textarea { width: 100%; min-height: 54px; padding: 12px 14px; border: 2px solid var(--white); border-radius: 0; background: var(--white); color: var(--black); font: 400 1.125rem/1.4 var(--body); text-transform: none; letter-spacing: 0; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--white); outline-offset: 3px; }
.seg { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.seg legend { font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; padding: 0; }
.seg label { display: block; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; border: 2px solid var(--white); font-size: 1rem; letter-spacing: 0.04em; transition: background-color 0.15s, color 0.15s; }
.seg input:checked + span { background: var(--white); color: var(--black); }
.seg input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 3px; }
.form .btn { justify-self: start; }
.form__status { min-height: 1.5em; font-size: 1.0625rem; }
.form[data-state="success"] .form__status { font-weight: 700; }
.form[data-state="error"] .form__status { font-weight: 700; background: var(--white); color: var(--black); padding: 10px 14px; }
.form__status a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer { background: var(--black); color: #d6d6d1; border-top: 2px solid #3a3a37; padding: 40px 0 28px; overflow: hidden; }
.footer__giant { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(3rem, 8.6vw, 7.5rem); line-height: 0.92; color: #6b6b66; letter-spacing: -0.03em; margin-bottom: 28px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 0.9375rem; }
.footer a { color: var(--white); }

.mobile-bar { display: none; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .duo__b.reveal.in { transform: translateY(40px); }

@media (max-width: 960px) {
  .nav a:not(.btn) { display: none; }
  .hero__grid, .about__grid, .faq__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__photo { max-width: 520px; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__facts div:nth-child(3) { border-left: 0; }
  .hero__facts div:nth-child(n + 3) { border-top: var(--line); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar + .pillar { border-left: 0; border-top: var(--line); }
  .process__list { grid-template-columns: minmax(0, 1fr); }
  .process__list li:nth-child(even) { padding-left: 0; border-left: 0; }
}

@media (max-width: 767px) {
  .topbar p { display: none; }
  .topbar__inner { justify-content: center; }
  .header__inner { min-height: 70px; }
  .brand__mark { width: 44px; height: 44px; }
  .nav .btn { display: none; }
  .hero__photo { box-shadow: 8px 8px 0 var(--black); margin-right: 8px; }
  .hero__facts { grid-template-columns: minmax(0, 1fr); }
  .hero__facts div + div { border-left: 0; border-top: var(--line); }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo__b, .js .duo__b.reveal.in { transform: none; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .form .btn { justify-self: stretch; }
  .contact__list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  body { padding-bottom: 86px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--white); border-top: var(--line); }
  .mobile-bar .btn { min-height: 54px; padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Legal links & form consent */
.legal-links { line-height: 2; }
.legal-links a { white-space: nowrap; }
.form-legal { margin: 0; font-size: 0.9375rem; line-height: 1.5; }
.form-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- WordPress additions ---------- */

/* Colours and type for WordPress pages (same as the site's legal pages) */
:root {
  --lg-bg: #ffffff;
  --lg-surface: #f6f6f6;
  --lg-ink: #0a0a0a;
  --lg-muted: #545454;
  --lg-head: #0a0a0a;
  --lg-accent: #0a0a0a;
  --lg-line: #d3d3d3;
  --lg-display: Syne, "Arial Black", sans-serif;
  --lg-body: "Space Grotesk", system-ui, sans-serif;
}

/* Sticky header below the admin bar for signed-in users */
.admin-bar .header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar .header { top: 0; } }

/* WordPress core helpers */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: #fff; clip: auto !important; clip-path: none; color: #111; display: block; height: auto; left: 8px; padding: 12px 18px; top: 8px; width: auto; z-index: 100000; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }

/* Pages: Privacy Policy, Terms of Use, Accessibility Statement and any other page */
.page-doc { background: var(--lg-bg); color: var(--lg-ink); font-family: var(--lg-body); }
.page-doc__wrap { width: min(100% - 32px, 880px); margin-inline: auto; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.page-doc .page-doc__title { font-family: var(--lg-display); font-weight: 400; color: var(--lg-head); font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.1; letter-spacing: normal; text-transform: none; margin: 0 0 14px; }
.page-doc__content { font-size: 1.1875rem; line-height: 1.7; }
.page-doc .page-doc__content h2 { font-family: var(--lg-display); font-weight: 400; color: var(--lg-head); font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.2; letter-spacing: normal; text-transform: none; margin: 2.2em 0 0.5em; }
.page-doc .page-doc__content h3 { font-family: var(--lg-body); font-weight: 700; color: var(--lg-ink); font-size: 1.1875rem; line-height: 1.3; letter-spacing: normal; text-transform: none; margin: 1.4em 0 0.3em; }
.page-doc .page-doc__content p, .page-doc .page-doc__content ul, .page-doc .page-doc__content ol { margin: 0 0 1em; max-width: 70ch; }
.page-doc .page-doc__content ul, .page-doc .page-doc__content ol { padding-left: 1.3em; list-style: revert; }
.page-doc .page-doc__content li { margin-bottom: 0.4em; }
.page-doc a { color: var(--lg-accent); overflow-wrap: anywhere; text-underline-offset: 3px; }
.page-doc .page-doc__content img { height: auto; }
.page-doc .page-date { color: var(--lg-muted); font-size: 1rem; }
.page-doc .page-contact { font-style: normal; padding: 18px 22px; border-left: 4px solid var(--lg-accent); background: var(--lg-surface); max-width: 70ch; margin: 0 0 1em; }
.page-doc .page-doc__back { margin-top: 40px; font-weight: 700; }
.page-doc .page-doc__back a { display: inline-flex; align-items: center; min-height: 44px; }
.page-doc .page-doc__item { padding: 22px 0; border-bottom: 1px solid var(--lg-line); }
.page-doc .page-doc__item h2 { font-family: var(--lg-display); font-weight: 400; font-size: 2rem; margin: 0 0 8px; }
.page-doc .page-doc__item h2 a { color: var(--lg-head); text-decoration: none; }
.page-doc .nav-links { display: flex; gap: 10px; margin-top: 28px; }
.page-doc .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 2px solid var(--lg-ink); color: var(--lg-ink); text-decoration: none; font-weight: 700; }
.page-doc .page-numbers.current { background: var(--lg-ink); color: var(--lg-bg); }
