/* Josh Properties LLC. One page, one action. Warmth comes from the photographs and the color, never from a tinted page. */

:root {
  --bg: oklch(1 0 0);
  --ink: oklch(0.25 0.025 50);
  --ink-soft: oklch(0.4 0.025 50);
  --rule: oklch(0.86 0.02 60);
  --primary: oklch(0.52 0.14 43);
  --primary-deep: oklch(0.44 0.13 43);
  --on-primary: oklch(1 0 0);
  --deep: oklch(0.3 0.055 45);
  --deep-rule: oklch(0.42 0.06 45);
  --on-deep: oklch(0.96 0.015 70);
  --on-deep-soft: oklch(0.82 0.03 65);
  --gold: oklch(0.8 0.13 75);

  --wordmark: 'EB Garamond', 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --serif: 'Literata', 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --sans: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;

  --measure: 60ch;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --step-0: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  --step-1: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --step-2: clamp(1.875rem, 1.5rem + 1.5vw, 2.75rem);
  --step-3: clamp(2.5rem, 1.6rem + 3.6vw, 5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }
main { flex: 1 0 auto; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: var(--step-2);
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--primary-deep); }

/* Header: banner with section links */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.6rem var(--gutter);
  background: oklch(1 0 0 / 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin-left: auto;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.0625rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.nav a:hover { color: var(--primary); border-color: var(--primary); }
.phone--header { margin-left: 0.5rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.brand-mark {
  display: block;
  width: auto;
  height: 56px;
}
.brand-word {
  display: block;
  width: auto;
  height: 22px;
}
.wordmark, .wordmark-text {
  font-family: var(--wordmark);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--deep);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.wordmark-text { font-size: 1.125rem; color: var(--on-deep); }

.phone {
  font-variant-numeric: tabular-nums lining-nums;
  text-decoration: none;
  white-space: nowrap;
}
.phone--header {
  font-size: 1.25rem;
  font-weight: 600;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

/* Hero: the bay at sunset, headline set into the water */

.hero {
  position: relative;
  height: clamp(420px, 78vh, 820px);
  overflow: hidden;
  background: var(--deep);
}
.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  animation: drift 14s var(--ease-out) both;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.2 0.05 45 / 0.72) 0%, oklch(0.2 0.05 45 / 0.28) 42%, transparent 70%);
  pointer-events: none;
}
.hero-text {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(2rem, 6vw, 4.5rem);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--on-deep);
  animation: settle 900ms 150ms var(--ease-out) both;
}
.hero-place {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--gold);
}
.hero h1 {
  font-size: var(--step-3);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 16ch;
  color: oklch(1 0 0);
  text-shadow: 0 1px 24px oklch(0.2 0.05 45 / 0.35);
}
.hero-sub {
  font-size: var(--step-1);
  line-height: 1.35;
  max-width: 40ch;
  color: var(--on-deep);
}

@keyframes drift {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
@keyframes settle {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Lede: one wide column, the first paragraph set large */

.lede {
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(2.5rem, 6vw, 5rem);
}
.lede-body {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-width: var(--measure);
  margin-left: auto;
  margin-right: clamp(0rem, 8vw, 10rem);
}
.lede-lead {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--ink);
}
.lede-call .phone { font-weight: 600; }

/* Sections share a spine: heading left, content right */

.spine {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 5rem;
}
.spine-body {
  max-width: var(--measure);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.spine .aside { margin-top: 0.5rem; color: var(--ink-soft); }

/* Our Mission: a quiet band with the statement set large */

.spine--quiet { background: oklch(0.975 0 0); }
.mission {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.4;
}


/* Steps: a real sequence, so it gets real numbers */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: var(--measure);
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.4rem 1rem;
}
.steps li::before {
  content: counter(step) ".";
  grid-row: 1 / span 2;
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.2;
  color: var(--primary);
  font-variant-numeric: lining-nums;
}
.steps h3 {
  font-size: var(--step-1);
  line-height: 1.2;
}
.steps p { color: var(--ink-soft); }

/* Mid-page band: the oaks */

.band {
  margin: 0;
  height: clamp(260px, 46vh, 520px);
  overflow: hidden;
}
.band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* What we will not do: the one dark section, warm as the pier */

.wont {
  background: var(--deep);
  color: var(--on-deep);
  border-top: 0;
}
.wont h2 { color: var(--on-deep); }
.wont ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
  display: flex;
  flex-direction: column;
}
.wont li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 1px solid var(--deep-rule);
}
.wont li:last-child { border-bottom: 1px solid var(--deep-rule); }
.wont li::before {
  content: "";
  width: 1rem;
  height: 2px;
  background: var(--gold);
  margin-top: 0.72em;
}

/* Contact */

.contact {
  scroll-margin-top: 5rem;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
}

.contact-call {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.phone--big {
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--primary);
  display: inline-block;
  min-height: 48px;
}
.phone--big:hover { color: var(--primary-deep); }
.contact-call p { color: var(--ink-soft); max-width: 36ch; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 34rem;
}
.contact-form h2 { margin-bottom: 0.25rem; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 500;
}
.contact-form label span { font-size: 1rem; }
.contact-form input,
.contact-form select {
  font: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--ink-soft);
  border-radius: 2px;
  padding: 0.75rem 0.85rem;
  min-height: 52px;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.contact-form input:focus-visible,
.contact-form select:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.52 0.14 43 / 0.22);
}
.contact-form .trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button {
  font: inherit;
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--on-primary);
  background: var(--primary);
  border: 0;
  border-radius: 2px;
  padding: 0.9rem 1.5rem;
  min-height: 52px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.contact-form button:hover { background: var(--primary-deep); }
.contact-form button:active { transform: translateY(1px); }
.contact-form button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.fine { font-size: 1rem; color: var(--ink-soft); }

/* Footer */

footer {
  padding: 2.5rem var(--gutter) 6rem;
  background: var(--deep);
  color: var(--on-deep-soft);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
footer p { max-width: 80ch; }
footer strong { color: var(--on-deep); font-weight: 600; }
footer .credits { color: oklch(0.68 0.03 60); }

/* Sticky call bar, phones only */

.callbar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  background: var(--primary);
  color: var(--on-primary);
  text-align: center;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  padding: 0.95rem 1rem;
  padding-bottom: calc(0.95rem + env(safe-area-inset-bottom));
  min-height: 56px;
}
.callbar:hover { color: var(--on-primary); background: var(--primary-deep); }

/* Responsive */

@media (max-width: 820px) {
  .spine, .contact {
    grid-template-columns: minmax(0, 1fr);
  }
  .top { flex-wrap: wrap; gap: 0.25rem 1rem; }
  .nav {
    margin-left: 0; width: 100%;
    flex-wrap: nowrap; gap: 0 0.4rem; justify-content: space-between;
    overflow-x: auto; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 0.84rem; letter-spacing: -0.01em; min-height: 40px; white-space: nowrap; }
  .brand-mark { height: 44px; }
  .brand-word { height: 18px; }
  .lede-body { margin-right: 0; margin-left: 0; }
  .hero { height: clamp(380px, 64vh, 620px); }
  .hero img { object-position: 40% 50%; }
  .phone--header { display: none; }
  .callbar { display: block; }
  footer { padding-bottom: 7rem; }
}

@media (max-width: 480px) {
  .steps li { grid-template-columns: 2.4rem minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .hero img, .hero-text { animation: none; }
  .contact-form input, .contact-form button { transition: none; }
  html { scroll-behavior: auto; }
}
