/* ==========================================================================
   Wilson Real Estate Investments — Phase 1 landing page
   Plain CSS, no build step. Palette derived from the client mockup.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --paper:      #F6F4F2;  /* page ground, sampled from mockup */
  --paper-alt:  #F0EEEA;  /* contact section */
  --surface:    #FFFFFF;  /* header */
  --ink:        #26282C;  /* credibility band, sampled from mockup */
  --ink-deep:   #202226;  /* footer, sampled from mockup */
  --heading:    #1C1C1C;
  --text:       #3F3F3D;  /* body copy on light */
  --text-muted: #6B6B6B;  /* secondary copy, labels */
  --accent:     #B3936F;  /* tan, sampled from mockup rules and icons */
  --hairline:   #E3DED8;  /* borders, dividers */
  --on-dark:    #F7F6F3;  /* text on the dark bands */
  --on-dark-muted: #C3C5C6;
  --hairline-on-dark: rgba(247, 246, 243, 0.16);
  --control-border: #87827B; /* input borders: meets 3:1 non-text contrast on paper */
  --error: #9A3B2E;

  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Type scale */
  --step--1: 0.8125rem;                                   /* labels, meta */
  --step-0:  clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);  /* body */
  --step-1:  clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);      /* lede, card titles */
  --step-2:  clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --step-3:  clamp(2.125rem, 1.5rem + 2.2vw, 3.25rem);    /* h2, stat values */
  --step-4:  clamp(3rem, 1.5rem + 4.5vw, 5.5rem);         /* h1 */

  --tracking-caps: 0.18em;
  --measure: 32em;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --section-pad: clamp(3.5rem, 4vw + 1.5rem, 6rem);

  --gutter: 1rem;
  --container: 72rem;
  --header-h: 4.25rem;
}

@media (min-width: 48em) {
  :root {
    --gutter: 2rem;
    --header-h: 4.75rem;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, dl, dd {
  margin: 0;
}

h1, h2, h3 {
  color: var(--heading);
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

/* Visible focus everywhere; outlines are replaced, never removed */
:focus-visible {
  outline: 2px solid var(--heading);
  outline-offset: 3px;
}

.hero :focus-visible,
.credibility :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--on-dark);
}

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

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

.section--alt {
  background: var(--paper-alt);
}

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

.nowrap {
  white-space: nowrap;
}

/* Short accent rule used beneath headings */
.rule {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
  margin-block: var(--space-3);
}

.rule--center {
  margin-inline: auto;
}

/* Section eyebrow: letterspaced caps (one of the four approved uses) */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--heading);
}

.section-title {
  font-family: var(--font-serif);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.button {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--heading);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.button:hover {
  background: var(--heading);
  color: var(--on-dark);
}

.button--on-dark {
  color: var(--on-dark);
}

.button--on-dark:hover {
  background: var(--on-dark);
  color: var(--heading);
}

/* --------------------------------------------------------------------------
   Wordmark
   -------------------------------------------------------------------------- */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--heading);
}

.wordmark__name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1;
}

.wordmark__sub {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Header lockup: name with the two-line descriptor beside it (per mockup) */
.wordmark--beside {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.wordmark--beside .wordmark__name {
  font-size: 1.625rem;
}

.wordmark--on-dark {
  color: var(--on-dark);
}

.wordmark--on-dark .wordmark__sub {
  color: var(--on-dark-muted);
}

/* Logo (client-supplied artwork, transparent PNG) */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo__img {
  height: 2.5rem;
  width: auto;
}

@media (min-width: 48em) {
  .logo__img {
    height: 2.875rem;
  }
}

.logo--footer .logo__img {
  height: 2.5rem;
}

/* --------------------------------------------------------------------------
   5.1 Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
}

.site-nav__list {
  display: flex;
  gap: 2.5rem;
}

.site-nav a {
  display: inline-block;
  padding-block: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--heading);
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  border-bottom-color: var(--accent);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bar {
  position: absolute;
  left: 50%;
  width: 1.5rem;
  height: 1px;
  background: var(--heading);
  transform: translateX(-50%);
  transition: transform 180ms ease, top 180ms ease;
}

.nav-toggle__bar:nth-child(1) { top: calc(50% - 4px); }
.nav-toggle__bar:nth-child(2) { top: calc(50% + 4px); }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  top: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  top: 50%;
  transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 47.99em) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) var(--gutter) var(--space-3);
  }

  .site-nav a {
    display: block;
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--hairline);
  }

  .site-nav li:last-child a {
    border-bottom-color: transparent;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="true"] {
    border-bottom-color: var(--hairline);
  }
}

/* --------------------------------------------------------------------------
   Media placeholders (photography pending from client)
   -------------------------------------------------------------------------- */
.media-placeholder {
  position: relative;
  display: grid;
  place-items: end start;
  background-color: #ECE9E4;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 14px,
    rgba(28, 28, 28, 0.05) 14px 15px
  );
  overflow: hidden;
}

.media-placeholder__note {
  margin: 0.75rem;
  padding: 0.35rem 0.6rem;
  background: rgba(246, 244, 242, 0.94);
  border: 1px solid var(--hairline);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--text-muted);
}

.media-placeholder--dark {
  background-color: #3A3B3D;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 14px,
    rgba(247, 246, 243, 0.06) 14px 15px
  );
}

.media-placeholder--dark .media-placeholder__note {
  background: rgba(32, 34, 38, 0.82);
  border-color: var(--hairline-on-dark);
  color: var(--on-dark-muted);
}

/* --------------------------------------------------------------------------
   5.1 Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(28rem, 44vw, 40rem);
  color: var(--on-dark);
  background: var(--ink);
  overflow: hidden;
}

.hero picture {
  position: absolute;
  inset: 0;
}

.hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(32, 34, 38, 0.94) 0%, rgba(32, 34, 38, 0.86) 30%, rgba(32, 34, 38, 0.55) 50%, rgba(32, 34, 38, 0.2) 75%, rgba(32, 34, 38, 0.08) 100%),
    linear-gradient(180deg, rgba(32, 34, 38, 0.2) 0%, rgba(32, 34, 38, 0) 35%, rgba(32, 34, 38, 0.3) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-5);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: var(--step-4);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0.005em;
  color: var(--on-dark);
}

.hero .rule {
  margin-block: var(--space-3);
}

.hero__lede {
  max-width: 20em;
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: var(--space-4);
  color: var(--on-dark);
}

/* --------------------------------------------------------------------------
   5.2 Approach
   -------------------------------------------------------------------------- */
.approach__grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.approach__media {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (min-width: 48em) {
  .approach__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }
}

/* --------------------------------------------------------------------------
   5.3 Pillars
   -------------------------------------------------------------------------- */
.pillars {
  padding-top: 0;
}

.pillars__frame {
  display: grid;
  border: 1px solid var(--hairline);
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 2.75rem);
  border-top: 1px solid var(--hairline);
}

.pillar:first-child {
  border-top: 0;
}

/* Client-supplied icons, exported as accent-colored transparent PNGs at 4x.
   Each sits in a fixed-height box and is sized for equal visual weight. */
.pillar__icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  margin-bottom: var(--space-3);
}

.pillar__icon {
  width: auto;
  max-width: 8rem;
}

.pillar__icon--invest  { height: 42px; }
.pillar__icon--develop { height: 52px; }
.pillar__icon--own     { height: 64px; }

/* Pillar label: letterspaced serif caps (one of the four approved caps uses; family per mockup) */
.pillar__label {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.pillar__copy {
  max-width: 26em;
  font-size: 1rem;
}

@media (min-width: 48em) {
  .pillars__frame {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pillar {
    border-top: 0;
    border-left: 1px solid var(--hairline);
  }

  .pillar:first-child {
    border-left: 0;
  }
}

/* --------------------------------------------------------------------------
   5.4 Selected Experience
   -------------------------------------------------------------------------- */
.section-head {
  text-align: center;
  margin-bottom: var(--space-4);
}

.section-head .rule {
  margin-block: var(--space-2) 0;
}

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

/* Cards are presentational: bordered, no hover, no link affordance */
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
}

.card__media {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card__body {
  padding: var(--space-3) var(--space-3) var(--space-3);
}

.card__icon {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: var(--space-3);
}

.card__title {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.card__meta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card__copy {
  margin-top: var(--space-2);
  font-size: 1rem;
}

@media (min-width: 48em) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card--icon .card__body {
    padding-top: var(--space-4);
  }
}

/* --------------------------------------------------------------------------
   Press
   -------------------------------------------------------------------------- */
.section-head--press {
  margin-bottom: var(--space-4);
}

.press__eyebrow {
  margin-bottom: var(--space-3);
}

.press__lede {
  max-width: 34em;
  margin: var(--space-3) auto 0;
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.5;
}

.press__clipping {
  margin: 0;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.press__clipping img {
  width: 100%;
  height: auto;
}

.press__credit {
  margin-top: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--text-muted);
}

.press__credit cite {
  font-style: normal;
}

.press__credit a {
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--heading);
}

/* --------------------------------------------------------------------------
   5.5 Credibility band
   -------------------------------------------------------------------------- */
.credibility {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(2.5rem, 4vw, 4rem);
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-4) var(--space-3);
  border-top: 1px solid var(--hairline-on-dark);
}

.stat:first-child {
  border-top: 0;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1;
  margin-bottom: var(--space-2);
  color: var(--on-dark);
}

/* Stat label: small letterspaced caps per spec 5.5 */
.stat-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--on-dark-muted);
}

@media (min-width: 30em) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(2) {
    border-top: 0;
  }

  .stat:nth-child(even) {
    border-left: 1px solid var(--hairline-on-dark);
  }
}

@media (min-width: 60em) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stat {
    border-top: 0;
    border-left: 1px solid var(--hairline-on-dark);
  }

  .stat:first-child {
    border-left: 0;
  }
}

/* --------------------------------------------------------------------------
   5.6 Contact
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}

@media (min-width: 48em) {
  .contact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}

.details {
  display: grid;
  gap: var(--space-3);
}

.details__row dt {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.details__row dd {
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.35;
  color: var(--heading);
}

/* Form */
.form {
  display: grid;
  gap: var(--space-3);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  color: var(--heading);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--control-border);
  border-radius: 0;
  background: var(--surface);
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: var(--step-0);
  line-height: 1.4;
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--heading);
  outline-offset: 0;
  border-color: var(--heading);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--error);
}

.field__error {
  min-height: 1.2em;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  line-height: 1.4;
  color: var(--error);
}

.field__error:empty {
  display: none;
}

.form__status {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--heading);
}

.form__status:empty {
  display: none;
}

.form__status.is-error {
  color: var(--error);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-deep);
  color: var(--on-dark);
  padding-block: var(--space-5) var(--space-3);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--hairline-on-dark);
}

.site-footer__brand {
  display: grid;
  gap: var(--space-3);
}

.site-footer__line {
  max-width: var(--measure);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--on-dark-muted);
}

.social {
  display: flex;
  gap: var(--space-2);
}

.social__link {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: -0.6rem;
  color: var(--on-dark-muted);
  text-decoration: none;
}

.social__link svg {
  fill: currentColor;
}

.social__link:hover {
  color: var(--on-dark);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-3);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--on-dark-muted);
}

.legal {
  display: flex;
  gap: var(--space-3);
}

.legal a {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.legal a:hover {
  color: var(--on-dark);
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
