/* ==========================================================================
   Pomona Property Group — static site styles
   Design tokens taken from the live site inspector:
     background #f6f5ea · text #000 · Lora 400 · 18.718px / 29.9488px
   (Blueprint specified kepler-std 300; Lora's lightest cut is 400, so 400 is
    the faithful substitute — see the weight notes at the body/heading rules.)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Palette */
  --cream:      #f6f5ea;  /* global section background */
  --white:      #ffffff;
  --olive:      #9c9a81;  /* hero panel, buttons, rules */
  --olive-dark: #363317;  /* full-bleed dark section */
  --ink:        #000000;  /* primary body text */
  --ink-muted:  #5b5b50;

  /* Type */
  --font-body: "Lora", "Iowan Old Style", "Palatino Linotype", Palatino,
               "Times New Roman", Georgia, serif;

  --fs-body: 18.718px;      /* blueprint base size */
  --lh-body: 29.9488px;     /* blueprint line height (≈1.6) */

  --fs-brand:   clamp(1.5rem,  3.4vw, 2rem);
  --fs-hero:    clamp(2.75rem, 7.5vw, 5rem);
  --fs-display: clamp(2rem,    5vw,   3.25rem);
  --fs-h2:      clamp(1.75rem, 4vw,   2.5rem);
  --fs-h3:      clamp(1.25rem, 2.4vw, 1.5rem);
  --fs-lead:    clamp(1.375rem, 3.2vw, 2rem);

  /* Layout */
  --wrap:    72rem;   /* page container */
  --measure: 46rem;   /* comfortable reading column */
  --gutter:  clamp(1.5rem, 6vw, 3rem);
  --section-y: clamp(4rem, 10vw, 8rem);
  --header-h: clamp(5rem, 12vw, 10.625rem);

  --footer-bg: var(--cream);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;                   /* Lora's lightest cut (no 300 exists) */
  line-height: var(--lh-body);
  text-align: center;                 /* centred copy layout */
  -webkit-font-smoothing: antialiased;
}

img,
svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-weight: 400;                   /* was 300; Lora bottoms out at 400 */
  line-height: 1.25;
  text-wrap: balance;
}

p { margin: 0 0 1.5em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: from-font; text-underline-offset: 0.18em; }
a:hover { opacity: 0.7; }

:focus-visible {
  outline: 2px solid var(--olive-dark);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 50%;
  translate: -50% -150%;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  background: var(--olive-dark);
  color: var(--white);
  text-decoration: none;
}
.skip-link:focus { translate: -50% 0; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose {
  max-width: var(--measure);
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--light { background: var(--white); }

.section--dark {
  color: var(--white);
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 8vw, 6rem);
  background-color: var(--olive-dark);     /* shows while the photo loads */
  background-image:
    linear-gradient(rgb(54 51 23 / 0.7), rgb(54 51 23 / 0.7)),
    url("assets/multifamily-banner.webp");
  background-size: cover;
  background-position: center;
}

.stack > * + * { margin-top: var(--stack-gap, 2rem); }

/* --------------------------------------------------------------------------
   4. Header + navigation
   -------------------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  text-align: left;
}

.brand {
  font-size: var(--fs-brand);
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { opacity: 1; }

/* CSS-only disclosure: the checkbox holds the open/closed state. */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.nav-toggle-label {
  display: grid;
  gap: 0.6rem;
  width: clamp(2.75rem, 9vw, 4.5rem);
  padding-block: 0.5rem;
  cursor: pointer;
}
.nav-toggle-label::before,
.nav-toggle-label::after {
  content: "";
  height: 1px;
  background: currentColor;
}

.site-nav ul {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

/* Small screens: collapse the nav behind the toggle. */
@media (max-width: 59.99em) {
  .site-header { flex-wrap: wrap; }

  .site-nav {
    flex-basis: 100%;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 250ms ease;
  }
  .site-nav > ul {
    overflow: hidden;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }
  .site-nav a {
    display: block;
    padding-block: 0.75rem;
    font-size: 1.25rem;
  }
  .nav-toggle:checked ~ .site-nav { grid-template-rows: 1fr; }
  .nav-toggle:checked ~ .site-nav > ul { padding-block: 0.5rem 1.5rem; }
  .nav-toggle:focus-visible + .nav-toggle-label {
    outline: 2px solid currentColor;
    outline-offset: 4px;
  }
}

@media (min-width: 60em) {
  .nav-toggle-label { display: none; }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

/* Photo backdrop with a colour wash over it, matching the live site's
   section overlays: olive at 15% on the home hero, dark at 40% on About. */
.hero {
  display: grid;
  place-items: center;
  min-height: min(72vh, 46rem);
  margin-inline: clamp(1rem, 4vw, 2rem);
  padding: var(--section-y) var(--gutter);
  color: var(--white);
  background-color: var(--olive);          /* shows while the photo loads */
  background-image:
    linear-gradient(rgb(156 154 129 / 0.15), rgb(156 154 129 / 0.15)),
    url("assets/apt-cover.jpeg");
  background-size: cover;
  background-position: center;
}

.hero__title {
  max-width: 18ch;
  font-size: var(--fs-hero);
  line-height: 1.4;
}

/* Interior page banners */
.page-hero { padding-block: clamp(2rem, 6vw, 4rem) clamp(2rem, 5vw, 3.5rem); }

.page-hero__title {
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 6px solid var(--olive);
  font-size: var(--fs-display);
}

.section--dark .page-hero__title { border: 0; padding-bottom: 0; }

/* The dark banner is the one block that reads left-aligned, and it splits
   into heading | body from tablet up. */
.banner {
  display: grid;
  gap: clamp(1.5rem, 5vw, 4rem);
  text-align: left;
}

@media (min-width: 48em) {
  .banner { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* --------------------------------------------------------------------------
   6. Content blocks
   -------------------------------------------------------------------------- */

.lead {
  max-width: 24ch;
  margin-inline: auto;
  font-size: var(--fs-lead);
  font-style: italic;
  line-height: 1.45;
}

.section-title {
  font-size: var(--fs-h2);
  margin-bottom: 1.5rem;
}

/* Deal Flow and Target Locations sit side by side from tablet up. */
.feature-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 48em) {
  .feature-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.feature__media { margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); }
.feature__media img { width: 100%; }

/* --------------------------------------------------------------------------
   7. Team + partners
   -------------------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(2rem, 5vw, 3rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.person {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--cream);
}
.person--plain { background: transparent; padding-inline: 0; }

.person__photo {
  width: 100%;
  max-width: 20rem;
  margin-inline: auto;
  object-fit: cover;
}
.person__photo--round { aspect-ratio: 1; border-radius: 50%; }

.person__name { font-size: var(--fs-h3); }

.person__email {
  color: var(--olive);
  font-size: 1rem;
}

.person__bio { margin-top: 0.5rem; }

/* Curved divider closing the dark section */
.wave { display: block; width: 100%; height: clamp(3rem, 8vw, 6rem); }
.wave path { fill: var(--olive-dark); }

/* --------------------------------------------------------------------------
   8. Portfolio
   -------------------------------------------------------------------------- */

.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(2.5rem, 6vw, 4rem);
  text-align: left;
}

.property { margin: 0; }

.property img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.property figcaption {
  margin-top: 1.25rem;
  font-weight: 700;
  line-height: 1.45;
}
.property figcaption span { display: block; }

/* --------------------------------------------------------------------------
   9. Forms
   -------------------------------------------------------------------------- */

.form { max-width: var(--measure); margin-inline: auto; text-align: left; }

.form__grid { display: grid; gap: 1.25rem; }

@media (min-width: 40em) {
  .form__row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.form__fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.form__legend {
  padding: 0;
  margin-bottom: 1rem;
  font-size: var(--fs-h3);
}

.form__actions { margin-top: 2rem; }

/* Netlify honeypot. Must be display:none rather than .visually-hidden —
   a screen-reader-reachable trap would let real users fill it in and get
   their submission silently binned as spam. Bots reading the raw markup
   fill it regardless. */
.form__hp { display: none; }

.field { display: flex; flex-direction: column; gap: 0.5rem; }

.field label { font-size: 1.0625rem; }
.field .optional-note { color: var(--ink-muted); }

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #fbfbf9;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 12rem; resize: vertical; }

::placeholder { color: var(--ink-muted); opacity: 1; }

.button {
  display: inline-block;
  padding: 1rem 2.75rem;
  border: 0;
  background: var(--olive);
  color: var(--white);
  font: inherit;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease;
}
.button:hover { background: var(--olive-dark); opacity: 1; }

/* Newsletter block: fields centred, generous rhythm */
.newsletter .form { text-align: center; }
.newsletter .form__actions { margin-top: 2.5rem; }
.newsletter input { text-align: center; }

/* Form confirmation ("thank you") page — short page, so it needs extra
   vertical breathing room to avoid the footer riding up under the copy. */
.confirmation { padding-block: clamp(5rem, 14vw, 9rem); }
/* Wider than the default 24ch .lead measure so the single short sentence
   balances onto two even lines instead of orphaning its last word. */
.confirmation .lead { max-width: 32ch; text-wrap: balance; margin-bottom: 1.75rem; }
.confirmation__actions { margin-top: 2.75rem; }

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--footer-bg);
  padding-block: var(--section-y) clamp(2.5rem, 6vw, 4rem);
  text-align: left;
}

.site-footer__cols {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 48em) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

.site-footer address {
  font-style: normal;
  line-height: 1.7;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  line-height: 1.7;
}

@media (min-width: 48em) {
  .site-footer__contact { text-align: right; }
}

.disclosure {
  font-style: italic;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   11. Page variants
   -------------------------------------------------------------------------- */

/* The About page runs white below the dark banner. */
.page-about { --footer-bg: var(--white); }
.page-about main { background: var(--white); }

/* --------------------------------------------------------------------------
   12. Motion preferences
   -------------------------------------------------------------------------- */

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