:root {
  --green: #16382d;
  --green-2: #244f3f;
  --sage: #74876d;
  --cream: #f7f1e6;
  --cream-2: #fffaf0;
  --gold: #a88963;
  --ink: #14221d;
  --muted: #5e695f;
  --line: rgba(22, 56, 45, .18);
  --shadow: 0 22px 70px rgba(15, 31, 25, .16);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(168, 137, 99, .13), transparent 32rem),
    linear-gradient(180deg, #fffaf0 0%, #f7f1e6 100%);
}

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

a {
  color: var(--green);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 999;
  background: var(--green);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .75rem clamp(1rem, 4vw, 3rem);
  background: rgba(247, 241, 230, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(22, 56, 45, .12);
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .9rem;
  color: var(--green);
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 3vw, 1.75rem);
}

.site-header nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  color: var(--green);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 8rem 1.25rem 5rem;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image {
  background-image: url("assets/images/hilfiker-estate-main-photo-final.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(247,241,230,.98) 0%, rgba(247,241,230,.88) 39%, rgba(247,241,230,.3) 68%, rgba(22,56,45,.1) 100%),
    linear-gradient(0deg, rgba(20,34,29,.45) 0%, transparent 45%);
}

.hero-content {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-top: 3rem;
}

.hero-logo {
  width: min(420px, 88vw);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 12px 32px rgba(15,31,25,.12));
}

.eyebrow {
  margin: 0 0 .8rem;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  font-size: .78rem;
}

h1, h2, h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: var(--green);
  line-height: 1.05;
}

h1 {
  max-width: 740px;
  font-size: clamp(3rem, 9vw, 7rem);
  letter-spacing: .02em;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

h3 {
  font-size: 1.45rem;
}

.hero-copy {
  max-width: 670px;
  margin: 1.3rem 0 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: #2e3d36;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .9rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 34px rgba(22, 56, 45, .22);
}

.button.secondary {
  color: var(--green);
  background: rgba(255, 250, 240, .72);
  border-color: var(--line);
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.intro {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.intro-copy {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--muted);
}

.intro-copy p:first-child {
  margin-top: 0;
}

.section-heading.centered {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-heading.centered p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 0;
}

.highlights article,
.feature-card,
.contact-panel {
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, .72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.highlights article {
  padding: 1.35rem;
}

.highlight-icon {
  font-size: 1.7rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.highlights p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-strip {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 1.4rem;
  align-items: stretch;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.feature-copy {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(1.4rem, 4vw, 3rem);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(22,56,45,.88), rgba(22,56,45,.5)),
    url("assets/images/hilfiker-estate-auction-117.webp") center / cover;
  box-shadow: var(--shadow);
}

.feature-copy .eyebrow,
.feature-copy h2,
.feature-copy p {
  color: #fff;
  max-width: 650px;
}

.feature-copy p:last-child {
  line-height: 1.75;
  font-size: 1.05rem;
}

.feature-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .65rem;
}

.feature-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  color: var(--green);
}

.feature-card span {
  color: var(--muted);
  line-height: 1.65;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  color: var(--green);
  font-weight: 800;
  border-radius: 999px;
  padding: .72rem 1rem;
  cursor: pointer;
}

.filter.is-active {
  background: var(--green);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.gallery-card {
  grid-column: span 4;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 250, 240, .85);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(15,31,25,.12);
}

.gallery-card:nth-child(1),
.gallery-card:nth-child(2) {
  grid-column: span 6;
}

.gallery-button {
  width: 100%;
  border: 0;
  padding: 0;
  display: block;
  background: transparent;
  cursor: zoom-in;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.gallery-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.gallery-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem 1rem;
}

.gallery-card figcaption strong {
  color: var(--green);
}

.gallery-card figcaption span {
  color: var(--gold);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
}

.contact {
  padding-top: 2rem;
}

.contact-panel {
  padding: clamp(1.5rem, 5vw, 3rem);
}

.contact-panel > div:first-child {
  max-width: 720px;
}

.contact-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.contact-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.45);
}

.contact-card.full {
  grid-column: 1 / -1;
}

.contact-card span {
  display: block;
  margin-bottom: .5rem;
  color: var(--gold);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
}

.contact-card strong {
  display: block;
  margin-bottom: .35rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.contact-card a {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1rem 2.4rem;
  text-align: center;
  color: var(--muted);
}

.site-footer p {
  margin: .25rem;
}

.lightbox {
  width: min(96vw, 1180px);
  max-height: 92vh;
  border: 0;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  color: #fff;
  box-shadow: 0 30px 100px rgba(0,0,0,.5);
}

.lightbox::backdrop {
  background: rgba(8, 15, 12, .75);
  backdrop-filter: blur(6px);
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #111;
}

.lightbox p {
  margin: 0;
  padding: .9rem 1rem 1rem;
}

.lightbox-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #111;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 980px) {
  .intro,
  .feature-strip,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-card,
  .gallery-card:nth-child(1),
  .gallery-card:nth-child(2) {
    grid-column: span 6;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: sticky;
    flex-direction: column;
    align-items: flex-start;
    padding: .75rem 1rem;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 760px;
    padding-top: 3rem;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(247,241,230,.98) 0%, rgba(247,241,230,.9) 54%, rgba(22,56,45,.22) 100%);
  }

  .hero-logo {
    width: min(340px, 88vw);
  }

  .highlights {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    gap: .8rem;
  }

  .gallery-card,
  .gallery-card:nth-child(1),
  .gallery-card:nth-child(2) {
    grid-column: 1 / -1;
  }

  .gallery-card figcaption {
    flex-direction: column;
    align-items: flex-start;
  }
}

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