/* ===========================================================
   Effey.Net — modern rebuild
   Palette story: deep navy "ink" + verdigris/patina teal accent
   (the aged-brass look of fixtures on a building), on a cool
   light surface. Display face Archivo (architectural, solid),
   body Inter. No Flash, no plugins — plain HTML/CSS/JS.
   =========================================================== */

:root {
  --paper:       #eef1f4;
  --surface:     #ffffff;
  --ink:         #15212e;
  --ink-soft:    #38485a;
  --muted:       #66727e;
  --accent:      #2c7a73;
  --accent-deep: #1f5a55;
  --line:        #dde3e8;
  --line-strong: #c6cfd8;

  --maxw: 1140px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(21,33,46,.05), 0 8px 24px rgba(21,33,46,.06);

  --display: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---- Skip link (accessibility) ---- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---- Engraved label / eyebrow ---- */
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

/* =================== Header / Nav =================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
}

/* Brand rendered as an engraved plaque — the page's signature mark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand .plate {
  width: 34px; height: 34px;
  border-radius: 7px;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.brand .plate span {
  font-family: var(--display);
  font-weight: 800;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
}
.brand .word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -.01em;
}
.brand .word b { color: var(--accent); font-weight: 800; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a:hover { background: var(--paper); color: var(--ink); }
.nav-links a.is-current { color: var(--accent-deep); }
.nav-links a.webmail {
  margin-left: 6px;
  background: var(--ink);
  color: #fff;
}
.nav-links a.webmail:hover { background: var(--ink-soft); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 8px;
  width: 44px; height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* =================== Hero =================== */
.hero {
  background:
    radial-gradient(900px 360px at 88% -10%, rgba(44,122,115,.10), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--paper));
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 50px;
  align-items: center;
  padding: 72px 0 80px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}
.hero h1 em { color: var(--accent-deep); font-style: normal; }
.hero p.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 30px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-soft); }

/* Hero visual: a CSS-built building facade (no image assets needed) */
.facade {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background: linear-gradient(165deg, var(--ink) 0%, #1d2f3f 100%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  padding: 26px;
}
.facade .windows {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
}
.facade .windows i {
  display: block;
  border-radius: 4px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
}
.facade .windows i.lit {
  background: linear-gradient(180deg, var(--accent), rgba(44,122,115,.35));
  border-color: rgba(255,255,255,.25);
}
.facade .door {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 64px; height: 86px;
  background: var(--accent-deep);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -6px 20px rgba(44,122,115,.4);
}
.facade .door::after {
  content: "";
  position: absolute;
  right: 12px; top: 42px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-soft, #d8a85a);
  background: #e9c46a;
}

/* =================== Sections =================== */
.section { padding: 78px 0; }
.section h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -.015em;
  margin: 0 0 16px;
  line-height: 1.1;
}
.section .intro {
  color: var(--ink-soft);
  max-width: 60ch;
  font-size: 1.06rem;
}

.section.alt { background: var(--surface); border-block: 1px solid var(--line); }

/* card grid */
.cards {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.section.alt .card { background: var(--paper); }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--accent-deep);
}
.card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.18rem;
  margin: 10px 0 8px;
}
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* prose pages (about / privacy / legal) */
.page-head {
  background: linear-gradient(180deg, var(--surface), var(--paper));
  border-bottom: 1px solid var(--line);
  padding: 64px 0 44px;
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  letter-spacing: -.02em;
  margin: 0;
}
.prose { padding: 56px 0 72px; }
.prose .container { max-width: 760px; }
.prose h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 38px 0 12px;
}
.prose p, .prose li { color: var(--ink-soft); font-size: 1.04rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }

/* =================== Form (Rental Problems) =================== */
.form-wrap {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 7px;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44,122,115,.15);
}
.form-note {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 4px;
}
.aside-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
}
.aside-card h3 { font-family: var(--display); margin: 0 0 14px; font-size: 1.25rem; }
.aside-card p { color: rgba(255,255,255,.78); }
.aside-card a { color: #fff; font-weight: 600; }
.aside-card .urgent {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  font-size: .95rem;
}

/* =================== Footer =================== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding: 46px 0 38px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: .92rem;
  letter-spacing: .02em;
}
.footer-links a:hover { color: #fff; }
.footer-row .copy { font-size: .88rem; color: rgba(255,255,255,.55); }

/* =================== Responsive =================== */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    left: 0; right: 0;
    top: 70px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px 22px 18px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links a.webmail { margin-left: 0; margin-top: 6px; text-align: center; }

  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 52px 0 56px; }
  .facade { max-width: 320px; }
  .cards { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
}

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