/* Evening Porch: residential real estate hero mockup
   Evergreen + brass, edge-bleed photo, 1-2-3 steps strip. */

@font-face {
  font-family: "Young Serif";
  src: url("fonts/young-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root { --gutter: clamp(16px, 4vw, 48px); --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #1d3530; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #cfa75c; outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: #cfa75c; color: #142824; border-radius: 999px; font: 600 0.9rem/1 "Manrope", var(--font); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* section + nav shell */
.v { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; }
.vnav { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; max-width: 1280px; margin: 0 auto; padding: 22px var(--gutter); }
.vnav a { color: inherit; text-decoration: none; }
.vnav-links { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.vnav-toggle { display: none; padding: 8px 16px; font: inherit; font-weight: 600; color: inherit; background: none; border: 1px solid currentColor; border-radius: 999px; cursor: pointer; }
@keyframes hp-rise { from { opacity: 0; translate: 0 18px; } }

/* ============================================================
   K. Evening Porch (evergreen + brass, edge-bleed photo)
   ============================================================ */

.v-porch {
  --p-bg: #1d3530;
  --p-deep: #142824;
  --p-cream: #f4ecdf;
  --p-muted: rgba(244, 236, 223, 0.74);
  --p-brass: #cfa75c;
  --p-line: rgba(244, 236, 223, 0.18);
  background:
    radial-gradient(70% 60% at 0% 100%, rgba(207, 167, 92, 0.12), transparent 70%),
    var(--p-bg);
  color: var(--p-cream);
  font-family: "Manrope", var(--font);
}
.p-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  overflow: hidden;
  border-radius: clamp(120px, 16vw, 260px) 0 0 0;
  z-index: 0;
}
.p-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.p-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 40, 36, 0.45) 0%, transparent 22%);
  pointer-events: none;
}
.p-badge {
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  top: 46%;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 132px;
  height: 132px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--p-deep);
  text-decoration: none;
  background: var(--p-brass);
  border-radius: 50%;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.p-badge span:last-child { margin-top: 6px; font-size: 1.2rem; }
.p-badge:hover { transform: rotate(-6deg) scale(1.04); background: var(--p-cream); }

.p-nav { z-index: 20; max-width: 1360px; }
.p-brand { font-family: "Young Serif", Georgia, serif; font-size: 1.5rem; }
.v-porch .vnav-links {
  gap: 2px;
  padding: 5px;
  background: rgba(20, 40, 36, 0.55);
  border: 1px solid var(--p-line);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}
.v-porch .vnav-links a {
  display: block;
  padding: 9px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.v-porch .vnav-links a:hover { color: var(--p-brass); }
.v-porch .vnav-links .p-nav-cta { color: var(--p-deep); background: var(--p-brass); }
.v-porch .vnav-links .p-nav-cta:hover { color: var(--p-deep); background: var(--p-cream); }

.p-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1360px;
  min-height: 0;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.p-copy { max-width: min(48%, 600px); }
.p-eyebrow {
  margin: 0 0 22px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--p-brass);
}
.p-title {
  margin: 0;
  font-family: "Young Serif", Georgia, serif;
  font-size: min(clamp(3rem, 6.4vw, 6.2rem), 11.5svh);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.p-title span { display: block; }
.p-title span:last-child { color: var(--p-brass); }
.p-sub {
  max-width: 32rem;
  margin: 22px 0 0;
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--p-muted);
}
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3.6svh, 34px); }
.p-btn {
  padding: 16px 28px;
  font-weight: 700;
  color: var(--p-deep);
  text-decoration: none;
  background: var(--p-brass);
  border: 2px solid var(--p-brass);
  border-radius: 12px;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.p-btn:hover { background: var(--p-cream); border-color: var(--p-cream); }
.p-btn-ghost { color: var(--p-cream); background: transparent; border-color: var(--p-line); }
.p-btn-ghost:hover { color: var(--p-deep); }

.p-steps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: calc(100% - 2 * var(--gutter));
  max-width: 980px;
  margin: 0 0 clamp(20px, 4svh, 40px) max(var(--gutter), calc((100% - 1360px) / 2 + var(--gutter)));
  padding: 0;
  list-style: none;
  color: var(--p-deep);
  background: var(--p-cream);
  border-radius: 20px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
}
.p-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #4b5a55;
}
.p-steps li + li { border-left: 1px solid rgba(20, 40, 36, 0.12); }
.p-steps strong { display: block; margin-bottom: 2px; font-size: 1rem; color: var(--p-deep); }
.p-step-num {
  flex: none;
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1;
  color: #a7843d;
}

/* entrance */
.p-copy > * { animation: hp-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.p-copy > :nth-child(2) { animation-delay: 70ms; }
.p-copy > :nth-child(3) { animation-delay: 150ms; }
.p-copy > :nth-child(4) { animation-delay: 230ms; }
.p-photo { animation: p-reveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) both; }
.p-steps { animation: hp-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 380ms both; }
@keyframes p-reveal { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }


/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .v { height: auto; min-height: 100vh; min-height: 100svh; }
  .vnav-toggle { display: inline-flex; }
  .v .vnav-links {
    position: absolute; top: 100%; left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 0 !important; padding: 8px !important;
    background: var(--v-menu-bg, #fff); color: var(--v-menu-fg, #111);
    border: 1px solid var(--v-menu-line, rgba(0, 0, 0, 0.12)); border-radius: var(--v-menu-radius, 16px) !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .v .vnav-links.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.2s ease; }
  .vnav-links li { margin: 0 !important; }
  .vnav-links a { display: block; padding: 14px 16px !important; font-size: 1.05rem !important; }
}

@media (max-height: 760px) and (min-width: 961px) {
  .p-steps li { padding: 14px 18px; }
}

@media (max-width: 960px) {
  .v-porch { --v-menu-bg: #142824; --v-menu-fg: #f4ecdf; --v-menu-line: rgba(244, 236, 223, 0.18); --v-menu-radius: 18px; }
  .v-porch .vnav-links { background: var(--v-menu-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .v-porch .vnav-links .p-nav-cta { margin-top: 6px; text-align: center; }
  /* K */
  .p-photo {
    position: relative;
    order: 3;
    flex: 1;
    width: auto;
    min-height: 220px;
    margin: 0 0 0 var(--gutter);
    border-radius: 0 0 0 0;
    border-top-left-radius: 120px;
  }
  .p-photo::after { display: none; }
  .p-photo img { position: absolute; inset: 0; }
  .p-nav { order: 1; }
  .p-main { order: 2; flex: none; padding-top: 8px; padding-bottom: 28px; }
  .p-copy { max-width: 600px; }
  .p-steps { display: none; }
  .p-badge { top: auto; bottom: 20px; right: 20px; width: 104px; height: 104px; font-size: 0.68rem; }
  .p-badge span:last-child { font-size: 1rem; margin-top: 2px; }
}

@media (max-width: 560px) {
  .p-brand { font-size: 1.3rem; }
  .p-eyebrow { margin-bottom: 14px; font-size: 0.72rem; }
  .p-title { font-size: clamp(2.8rem, 13vw, 3.6rem); }
  .p-sub { margin-top: 14px; font-size: 0.98rem; }
  .p-actions { margin-top: 20px; gap: 10px; }
  .p-btn { flex: 1 1 0; text-align: center; padding: 14px 12px; }
  .p-photo { border-top-left-radius: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
