/*
 * JH Properties auction landing page.
 * Palette = JH Properties logo pack (README): dark #001115, teal #00708C, orange #F25A0B (owner override of the logo-pack #FF914D).
 * Display face: Archivo (self-hosted variable woff2 in ./fonts). Text: system UI.
 */

@font-face {
  font-family: "Archivo";
  src: url("./fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f1e8;          /* sun-bleached cream */
  --surface: #fffdf8;
  --tint: #ebe4d4;        /* sand band */
  --line: #ddd4c2;
  --text: #001115;        /* JH dark */
  --muted: #3f4b4e;
  --faint: #66706f;
  --primary: #00708c;     /* JH teal */
  --primary-deep: #005a70;
  --accent: #f25a0b;      /* JH orange — fills only, never text on cream */
  --accent-deep: #d94c05;
  --ink: #001115;

  --c-grape1: #00708c;
  --c-grape2: #2b93a8;
  --c-grape3: #6db7c4;
  --c-grape4: #7a2e4a;
  --c-grape5: #a9c9a0;
  --c-grape6: #c9a24a;
  --c-pecan: #8a5a2b;
  --c-lucerne: #5f8f2f;

  --wrap: 76rem;
  --radius: 10px;
  --step: clamp(4rem, 9vw, 8.5rem);

  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); color: inherit; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.75rem, 7.4vw, 6.5rem); line-height: .95; letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 750; margin-bottom: 1.1rem; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1rem; text-wrap: pretty; }

.eyebrow { font-family: var(--font-display); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--primary); margin: 0 0 1rem; }
.eyebrow-light { color: var(--accent); }
.fine { font-size: .875rem; color: var(--faint); margin: .75rem 0 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: .7rem 1.2rem;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-cta { background: var(--accent); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(242, 90, 11, .7); }
.btn-cta:hover { background: var(--accent-deep); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ghost-dark { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-lg { min-height: 54px; padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-small { min-height: 40px; padding: .45rem 1rem; font-size: .9rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand img { height: 52px; width: auto; }
nav { display: flex; align-items: center; gap: 1.6rem; font-size: .95rem; }
nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
nav a:not(.btn):hover { color: var(--primary); }
@media (max-width: 52rem) { nav a:not(.btn) { display: none; } }
@media (max-width: 30rem) { .brand img { height: 38px; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; transform: scale(1.04); }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,17,21,.42) 0%, rgba(0,17,21,.05) 30%, rgba(0,17,21,.45) 62%, rgba(0,17,21,.88) 100%),
    linear-gradient(90deg, rgba(0,17,21,.5) 0%, rgba(0,17,21,0) 60%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 2.5rem; align-items: end; padding-block: 7rem clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { max-width: 15ch; }
.hero .accent { color: var(--accent); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40rem; margin-top: 1.4rem; color: rgba(255,255,255,.9); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* countdown card */
.clock { background: rgba(0,17,21,.72); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.25rem 1.3rem 1.1rem; }
.clock-label { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .9rem; margin: 0 0 .9rem; color: #fff; }
.live-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(242,90,11,.7); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(242,90,11,0); } 100% { box-shadow: 0 0 0 0 rgba(242,90,11,0); } }
.clock-digits { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-bottom: 1rem; }
.clock-digits[hidden] { display: none; }
.clock-digits div { background: rgba(255,255,255,.08); border-radius: 8px; text-align: center; padding: .5rem 0 .4rem; }
.clock-digits strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-digits span { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.7); }
.clock-dates { margin: 0; display: grid; gap: .35rem; font-size: .9rem; }
.clock-dates div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: .4rem; }
.clock-dates dt { color: rgba(255,255,255,.7); }
.clock-dates dd { margin: 0; font-weight: 600; }

/* ---------- facts ---------- */
.facts { background: var(--ink); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 2rem 1.5rem 2.2rem 0; display: grid; gap: .35rem; align-content: start; }
.fact + .fact { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.12); }
.fact strong { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.25rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: #fff; }
.fact small { font-size: .5em; font-weight: 700; color: var(--accent); }
.fact span { color: rgba(255,255,255,.72); font-size: .95rem; line-height: 1.4; }
@media (max-width: 52rem) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact, .fact + .fact { padding: 1.5rem 1rem 1.5rem 0; border-left: 0; }
  .fact:nth-child(even) { padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.12); }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}

/* ---------- sections ---------- */
.section { padding-block: var(--step); }
.section-tint { background: var(--tint); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head > p:last-child { color: var(--muted); font-size: 1.1rem; }

.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-copy > p { color: var(--muted); font-size: 1.1rem; max-width: 36rem; }
.split-media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -30px rgba(0,17,21,.45); }
.split-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.features { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; }
.features li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; line-height: 1.4; }
.features .ico { color: var(--primary); width: 1.4rem; height: 1.4rem; margin-top: -.05rem; }

/* ---------- units ---------- */
.units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.unit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1.1rem; }
.unit-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.unit-head h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; }
.unit-head h3 span { font-size: .5em; font-weight: 600; color: var(--faint); letter-spacing: .04em; margin-left: .35rem; text-transform: uppercase; }
.ha-tag { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; background: var(--accent); color: var(--ink); padding: .25rem .8rem; border-radius: 6px; transform: rotate(-2deg); white-space: nowrap; }
.cropbar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--line); }
.cropbar i { display: block; min-width: 4px; }
.crops { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.crops li { display: grid; grid-template-columns: .75rem 1fr auto; align-items: baseline; gap: .7rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); line-height: 1.35; }
.crops li i { width: .75rem; height: .75rem; border-radius: 3px; align-self: center; }
.crops b { font-family: var(--font-display); font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-grape1 { background: var(--c-grape1); } .c-grape2 { background: var(--c-grape2); } .c-grape3 { background: var(--c-grape3); }
.c-grape4 { background: var(--c-grape4); } .c-grape5 { background: var(--c-grape5); } .c-grape6 { background: var(--c-grape6); }
.c-pecan { background: var(--c-pecan); background-image: repeating-linear-gradient(135deg, transparent 0 5px, var(--c-lucerne) 5px 8px); }
.crops li i.c-pecan { background-image: repeating-linear-gradient(135deg, transparent 0 3px, var(--c-lucerne) 3px 5px); }
.c-lucerne { background: var(--c-lucerne); }
.assets { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.assets li { display: inline-flex; align-items: center; gap: .45rem; background: color-mix(in srgb, var(--primary) 9%, transparent); color: var(--primary-deep); font-weight: 600; font-size: .9rem; padding: .4rem .75rem; border-radius: 999px; }
.unit-note { color: var(--muted); margin: 0; }
.plots { margin: auto 0 0; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--faint); line-height: 1.5; }
.plots b { color: var(--muted); }
.units-cta { margin-top: 2.5rem; display: flex; justify-content: center; }

/* ---------- photo band ---------- */
.band { position: relative; color: #fff; }
.band img { width: 100%; height: clamp(320px, 62vw, 680px); object-fit: cover; }
.band-caption { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(1.25rem, 4vw, 2.75rem); }
.band-caption p { display: inline-flex; gap: .7rem; align-items: center; margin: 0; background: rgba(0,17,21,.78); backdrop-filter: blur(8px); padding: .85rem 1.2rem; border-radius: var(--radius); font-family: var(--font-display); font-weight: 650; font-size: clamp(1rem, 1.8vw, 1.25rem); max-width: 40rem; }
.band-caption .ico { color: var(--accent); width: 1.5rem; height: 1.5rem; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: none; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem 1.5rem; }
.step-n { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--ink); color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; margin-bottom: 1.1rem; }
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--muted); margin: 0; }
.how-cta { margin-top: 2.5rem; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; }
.gallery figure:first-child { grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s ease; }
.gallery figure:hover img { transform: scale(1.05); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-grid > div > p { color: var(--muted); font-size: 1.1rem; }
.loc { display: flex; gap: .6rem; align-items: center; font-weight: 600; color: var(--text) !important; }
.loc .ico { color: var(--primary); }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.contact-card img { height: 46px; width: auto; max-width: 100%; object-fit: contain; object-position: left; margin-bottom: .5rem; }
.who { font-weight: 600; margin: 0 0 .25rem; }
.contact-line { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--primary-deep); font-weight: 600; font-size: .98rem; text-decoration: none; overflow-wrap: break-word; min-width: 0; }
.contact-line:hover { text-decoration: underline; }

/* ---------- closer ---------- */
.closer { background: var(--ink); color: #fff; padding-block: var(--step) 3rem; position: relative; overflow: hidden; }
.closer::before { /* striped field from the logo */
  content: ""; position: absolute; right: -10%; bottom: -55%; width: 70%; aspect-ratio: 2 / 1; border-radius: 50% 50% 0 0;
  background: repeating-linear-gradient(115deg, rgba(0,112,140,.35) 0 22px, transparent 22px 44px);
  pointer-events: none;
}
.closer-inner { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.closer h2 { max-width: 18ch; margin: 0; }
.terms { position: relative; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12); }
.terms h3 { font-size: 1rem; margin-bottom: .75rem; color: rgba(255,255,255,.9); }
.terms ul { margin: 0; padding-left: 1.1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 2.5rem; color: rgba(255,255,255,.68); font-size: .9rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.1); padding-block: 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: .875rem; }
.footer-inner img { height: 40px; width: auto; }
.footer-inner p { margin: 0; }

/* ---------- mobile bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 52rem) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 2fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .65rem clamp(1.1rem, 4vw, 2rem) calc(.65rem + env(safe-area-inset-bottom));
    background: rgba(0,17,21,.94); backdrop-filter: blur(10px);
  }
  .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

/* ---------- responsive ---------- */
@media (max-width: 60rem) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 9rem; }
  .clock { max-width: 26rem; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-media { aspect-ratio: 4 / 3; }
  .units { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .features, .contacts, .terms ul { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-row: auto; aspect-ratio: 3 / 2; }
  .actions .btn { flex: 1 1 100%; }
  .closer-inner .btn { width: 100%; }
  .unit-head { align-items: flex-start; }
  .ha-tag { font-size: 1.1rem; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(24px); animation: rise 1.2s cubic-bezier(.2,.7,.2,1) forwards; }
  .rise:nth-child(2) { animation-delay: .25s; }
  .rise:nth-child(3) { animation-delay: .5s; }
  .rise:nth-child(4) { animation-delay: .75s; }
  .clock.rise { animation-delay: .9s; }
  .hero-img { animation: drift 18s ease-out forwards; }
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.1); } to { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot { animation: none; }
  .btn:hover { transform: none; }
}

/* Darker orange (#f25a0b) needs help to read as small text over the hero photo. */
.hero .eyebrow { font-size: .8125rem; font-weight: 800; text-shadow: 0 1px 2px rgba(0,17,21,.9), 0 0 12px rgba(0,17,21,.75); }
.steps a { color: var(--primary-deep); font-weight: 600; }
.steps a:hover { color: var(--primary); }
#contact-title { font-size: clamp(2rem, 3.3vw, 2.9rem); }
