/* Landlord Centre — site stylesheet.
   Extends the holding-page design language: ink navy, soft blue-grey ground,
   white cards, teal accent, system font stack. No external assets, no JS. */

:root {
  --ink: #0f1b2d;
  --bg: #eef2f6;
  --card: #ffffff;
  --heading: #16202b;
  --text: #33414f;
  --muted: #5b6875;
  --accent: #0b6e5f;
  --accent-hover: #095a4e;
  --accent-soft: #e5f1ee;
  --accent-ink: #ffffff;
  --line: #d7dee6;
  --chip-bg: #f1f5f8;
  --focus: #16202b;
  --maxw: 1060px;
  --maxw-text: 720px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: linear-gradient(180deg, #f5f8fb 0%, #e7edf3 100%);
  line-height: 1.65;
}

/* ---------- Header ---------- */

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

.site-header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem clamp(1.1rem, 4vw, 1.75rem);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}

.brand svg { display: block; flex: none; }

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--heading);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 9px;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover { background: var(--chip-bg); color: var(--heading); }

.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
}

.site-nav .btn { margin-left: 0.35rem; }

/* ---------- Layout ---------- */

main { flex: 1 0 auto; width: 100%; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 1.75rem);
}

.wrap-text {
  max-width: var(--maxw-text);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 1.75rem);
}

section { padding: clamp(2.2rem, 6vw, 3.6rem) 0; }

section + section { padding-top: 0; }

/* ---------- Type ---------- */

h1 {
  font-size: clamp(1.9rem, 5.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 0 0 0.85rem;
}

h2 {
  font-size: clamp(1.4rem, 3.6vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--heading);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--heading);
  margin: 0 0 0.45rem;
}

p { margin: 0 0 1rem; }

a { color: var(--accent); }

.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  color: var(--text);
  margin: 0 0 1.1rem;
}

.muted { color: var(--muted); }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--chip-bg);
  border: 1px solid #cfe0da;
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  margin-bottom: 1rem;
}

/* ---------- Hero ---------- */

.hero { padding: clamp(2.6rem, 7vw, 4.5rem) 0 clamp(2.2rem, 6vw, 3.4rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* The illustrative "due list" panel in the hero — decorative, aria-hidden */

.panel-demo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.04), 0 12px 32px rgba(15, 27, 45, 0.08);
}

.panel-demo-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.panel-demo ul { list-style: none; margin: 0; padding: 0; }

.panel-demo li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.panel-demo li:first-child { border-top: 0; }

.panel-demo .item-name { color: var(--heading); font-weight: 500; }

.pill {
  flex: none;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  white-space: nowrap;
}

.pill-ok { color: var(--accent); background: var(--accent-soft); }
.pill-due { color: #8a5800; background: #fdf3e0; }

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.72rem 1.3rem;
  border-radius: 11px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary { background: var(--card); color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--chip-bg); }

.site-nav .btn { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.95rem; }

/* ---------- Cards & grids ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.55rem;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.04), 0 8px 24px rgba(15, 27, 45, 0.05);
}

.grid-2, .grid-4 {
  display: grid;
  gap: 1rem;
  margin: 1.6rem 0 0;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 940px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  margin-bottom: 0.85rem;
}

.card p:last-child { margin-bottom: 0; }

.card-link {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.2rem;
}

.card-link:hover { text-decoration: underline; }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps > li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.5rem 1.35rem 4.4rem;
  position: relative;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 1.35rem;
  top: 1.3rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps > li p:last-child { margin-bottom: 0; }

/* ---------- Guide pages ---------- */

.at-a-glance {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  margin: 1.4rem 0 1.8rem;
}

.at-a-glance h2, .at-a-glance h3 { margin-top: 0; }

.at-a-glance ul { margin: 0; padding-left: 1.2rem; }

.at-a-glance li { margin: 0.45rem 0; }

.note {
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: 0.93rem;
  color: var(--muted);
  margin: 1.8rem 0 0;
}

.note p { margin: 0 0 0.5rem; }
.note p:last-child { margin-bottom: 0; }

.guide-body h2 { margin-top: 2.2rem; }

.guide-more {
  border-top: 1px solid var(--line);
  margin-top: 2.6rem;
  padding-top: 1.4rem;
}

.guide-more ul {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.guide-more li a {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--heading);
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
}

.guide-more li a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- FAQ ---------- */

.faq-list { margin: 1.6rem 0 0; }

.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  margin: 0 0 0.8rem;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.35rem;
  font-weight: 600;
  color: var(--heading);
  border-radius: 14px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  flex: none;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.faq-list details[open] summary::after { content: "\2212"; }

.faq-list details > div { padding: 0 1.35rem 1.15rem; }

.faq-list details > div p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  border-radius: 18px;
  padding: clamp(1.8rem, 5vw, 2.8rem);
  color: #d7dee6;
}

.cta-band h2 { color: #ffffff; }

.cta-band p { color: #b9c4cf; }

.cta-band .btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: #5b6875;
}

.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Footer ---------- */

.site-footer {
  flex: none;
  background: var(--card);
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem, 6vw, 3.5rem);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem clamp(1.1rem, 4vw, 1.75rem) 2.4rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.3rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }

.site-footer p { margin: 0 0 0.55rem; }

.site-footer a { color: var(--muted); }

/* ---------- Focus & motion ---------- */

a:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
