/*
Theme Name: Lumen Realty
Theme URI: https://example.com/lumen-realty
Author: Pilot project
Description: Portable WordPress theme for an independent real-estate broker.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: lumen-realty
*/

:root {
  --ink: #10211f;
  --ink-soft: #354542;
  --pine: #153a35;
  --sage: #8ea99f;
  --sand: #f3eee5;
  --paper: #fffdf9;
  --bronze: #b57b45;
  --bronze-dark: #8d5e32;
  --line: rgba(16, 33, 31, 0.14);
  --shadow: 0 24px 65px rgba(16, 33, 31, 0.12);
  --radius: 24px;
  --container: min(1160px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: #fff;
}
body:not(.home) .site-header { background: #0b1715; }
.header-inner {
  width: var(--container);
  min-height: 96px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: .02em;
}
.brand-mark {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 22px;
}
.brand-copy small {
  display: block;
  margin-top: 1px;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a:focus { color: #f1d5b3; }
.nav-cta {
  padding: 11px 18px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 999px;
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: transparent;
  color: #fff;
}

.hero {
  position: relative;
  min-height: 780px;
  padding: 150px 0 145px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #14221f url("assets/images/hero-home.jpg") center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,18,17,.93) 0%, rgba(7,18,17,.72) 41%, rgba(7,18,17,.15) 72%, rgba(7,18,17,.06) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(transparent, rgba(7,18,17,.42));
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
}
.hero-copy { max-width: 690px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #eed0ad;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
h1 { max-width: 660px; margin-bottom: 26px; font-size: clamp(48px, 7vw, 86px); }
.hero-lead { max-width: 610px; margin: 0 0 34px; color: rgba(255,255,255,.82); font-size: clamp(18px, 2.1vw, 22px); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--bronze);
  border-radius: 999px;
  background: var(--bronze);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover, .button:focus { transform: translateY(-2px); background: var(--bronze-dark); border-color: var(--bronze-dark); }
.button-secondary { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.55); }
.button-secondary:hover, .button-secondary:focus { background: rgba(255,255,255,.14); border-color: #fff; }

.trust-strip {
  position: relative;
  z-index: 4;
  width: var(--container);
  margin: -40px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.trust-item { padding: 30px 34px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item strong { display: block; margin-bottom: 4px; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.trust-item span { color: var(--ink-soft); font-size: 14px; }

.section { padding: 110px 0; }
.section-inner { width: var(--container); margin-inline: auto; }
.section-heading { max-width: 740px; margin-bottom: 56px; }
.section-heading h2 { margin-bottom: 20px; font-size: clamp(40px, 5vw, 62px); }
.section-heading p { max-width: 640px; margin: 0; color: var(--ink-soft); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative;
  min-height: 360px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.service-card::after {
  content: attr(data-number);
  position: absolute;
  right: 24px;
  bottom: 18px;
  color: rgba(16,33,31,.045);
  font-family: Georgia, serif;
  font-size: 118px;
  line-height: .8;
  pointer-events: none;
}
.service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sand);
  color: var(--pine);
  font-size: 22px;
}
.service-card h3 { margin-bottom: 14px; font-family: Georgia, serif; font-size: 31px; font-weight: 500; }
.service-card p { position: relative; z-index: 1; margin: 0; color: var(--ink-soft); font-size: 15px; }

.broker-section { background: var(--pine); color: #fff; }
.broker-layout { width: var(--container); margin: auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.broker-art {
  min-height: 520px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 25% 25%, rgba(181,123,69,.48), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.01));
}
.broker-monogram {
  width: 220px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 92px;
  color: #f1d5b3;
}
.broker-copy h2 { margin-bottom: 24px; font-size: clamp(42px, 5vw, 66px); }
.broker-copy > p { color: rgba(255,255,255,.76); }
.broker-profile { display: grid; gap: 3px; margin: 0 0 24px; color: #fff; }
.broker-profile span { color: rgba(255,255,255,.68); font-size: 14px; }
.check-list { list-style: none; padding: 0; margin: 32px 0 0; }
.check-list li { position: relative; padding: 13px 0 13px 34px; border-top: 1px solid rgba(255,255,255,.14); }
.check-list li::before { content: "✓"; position: absolute; left: 2px; color: #e6bd8b; font-weight: 800; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: process; }
.process-step { counter-increment: process; padding-top: 24px; border-top: 2px solid var(--line); }
.process-step::before { content: "0" counter(process); display: block; margin-bottom: 42px; color: var(--bronze); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.process-step h3 { margin-bottom: 12px; font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.process-step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.contact-section { padding: 0 0 110px; }
.contact-shell { width: var(--container); margin: auto; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.contact-copy { padding: 64px; background: var(--ink); color: #fff; }
.contact-copy h2 { margin-bottom: 20px; font-size: clamp(40px, 5vw, 58px); }
.contact-copy p { color: rgba(255,255,255,.73); }
.contact-meta { margin-top: 46px; font-size: 14px; }
.contact-meta span { display: block; margin-top: 10px; color: rgba(255,255,255,.68); }
.contact-form { padding: 58px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 750; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid rgba(16,33,31,.28);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--bronze); }
.field textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0; color: var(--ink-soft); font-size: 12px; }
.consent input { margin-top: 4px; }
.notice { margin: 0 0 20px; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.notice-success { background: #e4f1e9; color: #17432a; }
.notice-error { background: #f8e6e3; color: #78281f; }
.hp-field { position: absolute !important; left: -9999px !important; }

.site-footer { padding: 42px 0; background: #0b1715; color: rgba(255,255,255,.66); }
.footer-inner { width: var(--container); margin: auto; display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-inner p { margin: 0; font-size: 13px; }
.footer-disclosures { width: var(--container); margin: 24px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-disclosures p { margin: 6px 0 0; font-size: 12px; }
.footer-links { display: flex; gap: 20px; font-size: 13px; }
.footer-links a { color: rgba(255,255,255,.75); }
.content-page { width: min(820px, calc(100vw - 40px)); min-height: 70vh; margin: 0 auto; padding: 160px 0 90px; }
.content-page h1 { color: var(--ink); font-size: clamp(42px, 6vw, 68px); }
.content-page h2 { margin-top: 44px; font-size: 32px; }
.content-page a { color: var(--bronze-dark); }
.content-page + .site-footer { margin-top: 0; }
.content-page ~ .site-footer { margin-top: 0; }

@media (max-width: 900px) {
  .menu-toggle { display: grid; place-items: center; }
  .main-nav {
    position: fixed;
    inset: 0;
    padding: 120px 30px 40px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(11,23,21,.98);
  }
  .nav-open .main-nav { display: flex; }
  .nav-open .menu-toggle { position: fixed; top: 24px; right: 20px; z-index: 2; }
  .hero { min-height: 720px; padding: 130px 0 110px; background-position: 63% center; }
  .trust-strip, .services-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .broker-layout, .contact-shell { grid-template-columns: 1fr; gap: 46px; }
  .broker-art { min-height: 360px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .contact-copy, .contact-form { padding: 46px; }
}

@media (max-width: 580px) {
  :root { --container: min(100% - 28px, 1160px); }
  body { font-size: 16px; }
  .header-inner { min-height: 82px; }
  .brand-copy small { display: none; }
  .hero { min-height: 0; padding: 124px 0 104px; }
  .hero::before { background: linear-gradient(90deg, rgba(7,18,17,.91), rgba(7,18,17,.55)); }
  .trust-strip { margin-top: -24px; }
  .trust-item { padding: 24px; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 38px; }
  .services-grid { gap: 14px; }
  .service-card { min-height: 310px; padding: 26px; }
  .service-card::after { right: 20px; bottom: 16px; font-size: 104px; }
  .service-icon { margin-bottom: 48px; }
  .broker-layout { gap: 32px; }
  .broker-monogram { width: 160px; font-size: 68px; }
  .process-grid, .form-grid { grid-template-columns: 1fr; }
  .process-step::before { margin-bottom: 20px; }
  .contact-section { padding-bottom: 70px; }
  .contact-copy, .contact-form { padding: 34px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
