/* Homepage concept based on Marcel's approved visual reference. */
:root {
  --paper: #f8f6f0;
  --cream: #f0eae0;
  --ink: #203728;
  --muted: #5b5b52;
  --forest: #274532;
  --forest-dark: #1b3826;
  --forest-soft: #e8eee5;
  --line: #ded7ca;
  --input-line: #c8bbaa;
  --accent: #bd6e2c;
  --accent-dark: #9f501e;
  --accent-soft: #f4e7d5;
  --white: #fffdf8;
}
body { background: var(--paper); }
.shell { width: min(calc(100% - 11.5vw), 85rem); }
.site-header { position: relative; z-index: 3; background: #f8f5ee; border-bottom: 0; }
.header-inner { min-height: 4.05rem; gap: clamp(1.4rem, 5vw, 5rem); }
.brand { font-size: clamp(1.1rem, 1.65vw, 1.65rem); letter-spacing: .015em; text-transform: uppercase; font-weight: 700; }
.brand-mark { width: 4.2rem; height: 3.35rem; object-fit: contain; border-radius: 0; }
.header-search { width: 2.5rem; height: 2.5rem; }
.search-icon { width: 1.25rem; height: 1.25rem; }
.search-icon::after { top: .97rem; left: .87rem; }
.landing-hero { background: #123627; }
.landing-hero::before {
  content: '';
  position: absolute;
  inset: auto auto 0 0;
  z-index: 0;
  width: clamp(5rem, 8vw, 9rem);
  height: 92%;
  background: url('./karperwatergids-hero-riet.webp') no-repeat left bottom / contain;
  opacity: .59;
  pointer-events: none;
}
.landing-hero::after {
  background:
    repeating-radial-gradient(ellipse at 72% -9%, transparent 0 13px, #a3b89420 14px 15px, transparent 16px 26px) no-repeat 42% -0.75rem / 22% 35%,
    repeating-radial-gradient(ellipse at 74% 118%, transparent 0 16px, #a3b89419 17px 18px, transparent 19px 29px) no-repeat 31% 100% / 22% 36%,
    linear-gradient(125deg, #102e21, #143b2a);
  clip-path: polygon(0 0, 48% 0, 46.9% 20%, 45.4% 39%, 43.6% 56%, 41.6% 73%, 39.7% 89%, 38.5% 100%, 0 100%);
  clip-path: shape(from 0 0, line to 48% 0, curve to 38.5% 100% with 46.1% 43% / 41.5% 74%, line to 0 100%, close);
}
.landing-hero-photo { inset: 0 0 0 auto; width: 76%; object-position: 72% bottom; }
.landing-hero-copy { position: relative; z-index: 1; width: min(calc(100% - 9vw),91rem); min-height: clamp(24rem, 27vw, 29rem); padding-block: 2rem 4.75rem; }
.home-hero-kicker { display:flex; align-items:center; gap:.9rem; margin-bottom:.65rem; color:#c6dbbb; font-size:.92rem; font-weight:750; letter-spacing:.13em; text-transform:uppercase; }
.home-hero-kicker::after { content:''; width:3.1rem; height:1px; background:#a8bd9b; }
.landing-hero h1 { max-width: min(18ch, 39vw); font-size: clamp(2.6rem, 4.05vw, 4.4rem); font-weight:700; line-height:.98; letter-spacing:-.045em; color:#fffdf5; }
.landing-hero p { max-width: 38vw; font-size: clamp(1rem, 1.43vw, 1.5rem); line-height: 1.35; margin-top: .7rem; color:#fffdf5; }
.home-hero-actions { display:flex; flex-wrap:wrap; margin-top:1.1rem; }
.home-hero-button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: .65rem 1.75rem; border-radius: .7rem; border: 2px solid #fff; color: #fff; text-decoration: none; font-size: 1.01rem; font-weight: 700; transition: background .15s, transform .15s; }
.home-hero-button:hover { transform: translateY(-2px); }
.home-hero-button-primary { background:#a94b21; border-color:#a94b21; }
.home-hero-button-primary:hover { color:#fff; background:#883617; border-color:#883617; }
.home-hero-button-outline { background: #182c1e43; }
.home-hero-button-outline:hover { color: #1c3a28; background: #fff; }
.home-search-wrap { position: relative; z-index: 4; margin-top: -3rem; }
.home-search { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1.02fr) minmax(0, 1.1fr) minmax(0, .72fr) minmax(9.5rem, .78fr); align-items: stretch; gap: 0; padding: 1.06rem 1.25rem; min-height: 5.15rem; border: 1px solid #dfd8c9; border-radius: .92rem; background: #fcfaf5; box-shadow: 0 .55rem 1.4rem #29282028, 0 .12rem .23rem #29282011; }
.home-filter { position: relative; min-width: 0; padding: .02rem 2.1rem .02rem 4.0rem; border-right: 1px solid #ded7ca; }
.home-filter::before { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); color: #926529; font-size: 1.8rem; line-height: 1; font-family: Georgia,serif; }
.home-filter-province::before { content: '⌖'; font-size: 2.25rem; left: 1.5rem; }
.home-filter-type::before { content: '≋'; font-size: 2.4rem; left: 1.27rem; }
.home-filter-type { border-right: 1px solid #ded7ca; }
.home-filter-place { border-right: 1px solid #ded7ca; }
.home-filter-place::before { content: '⌕'; font-size: 2.25rem; left: 1.35rem; }
.home-filter-place::after { display: none; }
.home-filter-radius { border-right: 0; }
.home-filter-radius::before { content: '◎'; font-size: 2.05rem; left: 1.35rem; }
.home-filter::after { content: ''; position: absolute; right: 1.25rem; top: 47%; width: .52rem; height: .52rem; border-right: 2px solid #16291d; border-bottom: 2px solid #16291d; transform: rotate(45deg) translateY(-40%); pointer-events: none; }
.home-filter label { display: block; font-size: .92rem; font-weight: 750; line-height: 1.36; color: #282a25; }
.home-filter select { display: block; appearance: none; outline-offset: 1px; min-width: 0; width: 100%; min-height: 1.65rem; margin: 0; padding: .06rem .02rem; background: transparent; border: 0; border-radius: .2rem; color: #2b302a; cursor: pointer; font-size: .9rem; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.home-filter input { display: block; min-width: 0; width: 100%; min-height: 1.65rem; padding: .06rem .02rem; background: transparent; border: 0; border-radius: .2rem; color: #2b302a; font-size: .9rem; }
.home-filter input::placeholder { color: #686e68; }
.home-search-submit { display: inline-flex; justify-content: center; align-items: center; gap: .75rem; min-height: 3.03rem; margin-left: 1.05rem; padding: .6rem 1rem; border: 0; border-radius: .58rem; background: linear-gradient(145deg,#31543b,#1d3928); color: white; white-space: nowrap; font-size: 1rem; font-weight: 750; }
.home-search-submit:hover { background: #132e1e; }
.quick-search-icon { position: relative; display: inline-block; flex: 0 0 auto; width: 1.05rem; height: 1.05rem; border: 2px solid currentColor; border-radius: 50%; margin-right: .16rem; }
.quick-search-icon::after { position: absolute; content: ''; width: .52rem; height: 2px; background: currentColor; left: .75rem; top: .78rem; transform: rotate(45deg); transform-origin: left center; }
.home-discover { margin-top: 1.58rem; margin-bottom: clamp(.75rem, 1.5vw, 1.4rem); }
.home-discover h2 { font-size: clamp(2rem, 3.18vw, 3.04rem); letter-spacing: -.045em; font-weight: 700; color: #203c2a; margin-bottom: 1.15rem; }
.home-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.4rem); }
.home-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; color: #252a25; border: 1px solid #d8cebe; border-radius: .8rem; background: #f8f4ec; text-decoration: none; box-shadow: 0 2px 1px #1c301515; transition: transform .18s, box-shadow .18s; }
.home-card:hover { transform: translateY(-3px); box-shadow: 0 .6rem 1.2rem #1c30152a; color: #252a25; }
.home-card-image { position: relative; aspect-ratio: 2.46; overflow: hidden; background: #476c54; }
.home-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.home-card:hover img { transform: scale(1.035); }
.home-card-badge { position: absolute; display: inline-flex; align-items: center; gap: .43rem; left: 1rem; top: 1rem; padding: .32rem .82rem; color: #252b22; background: #fbf7efed; font-size: .84rem; font-weight: 720; border-radius: 10rem; box-shadow: 0 1px 2px #25252512; }
.home-card-badge > span { color: #97702b; font-size: 1.45rem; font-weight: 400; line-height: .8; }
.home-card-caption { display: flex; align-items: center; gap: .9rem; padding: .67rem 1rem; min-height: 4rem; }
.home-card-caption-icon { flex: 0 0 2rem; font-family: Georgia,serif; font-size: 2rem; line-height: 1; text-align: center; color: #966a31; }
.home-card-text { flex: 1 1 auto; min-width: 0; }
.home-card-text strong { display: block; font-size: .84rem; font-weight: 700; color: #262925; }
.home-card-text small { display: block; margin-top: .12rem; font-size: .79rem; line-height: 1.3; color: #545852; }
.home-card-circle { flex: 0 0 2.35rem; display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 50%; background: #eee6d8; color: #b96a2b; font-size: 2rem; font-weight: 400; line-height: 1; }
.home-water-list { margin-top: 4.5rem; }
.home-water-list .directory-home { margin-top: 0; padding-top: 2.4rem; border-top: 1px solid #dbd2c4; }
.home-water-list .directory-search { display: none; }
.home-water-list .directory-home h2 { font-size: clamp(2.1rem, 3.2vw, 3rem); color: #203b2a; }
.radius-note { margin: 1rem 0 .4rem; padding: .75rem 1rem; border-left: 3px solid #65876c; background: #e9efe6; color: #25452f; font-size: .91rem; line-height: 1.5; }
.radius-note-error { border-color: #be702f; background: #f7ebda; color: #693b1d; }
.home-water-list .directory-home .directory-layout { grid-template-columns: minmax(0,1fr); }
.home-water-list .directory-results { scroll-margin-top: 1.5rem; }
.home-extras { margin-bottom: 3rem; }
.home-ad {
  margin-block: 1.8rem 0;
  padding: .85rem 1rem 1rem;
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.home-ad p { color: var(--muted); font-size: .8rem; margin-bottom: .5rem; }
.home-ad > div { min-height: 6rem; }
.site-footer { background: #f0ebe2; }
.site-footer .brand { font-size: 1.2rem; }
.site-footer .brand-mark { width: 3.3rem; height: 2.8rem; }
@media (max-width: 1100px) {
  .shell { width: calc(100% - 3.5rem); }
  .home-search { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: .8rem; }
  .home-search-submit { grid-column: 1 / -1; margin: 0; }
  .home-filter-type, .home-filter-radius { border-right: 0; }
  .home-filter-place { border-right: 1px solid #ded7ca; }
  .home-card-caption { gap: .5rem; padding: .7rem; }
  .home-card-caption-icon { flex-basis: 1.6rem; font-size: 1.65rem; }
  .home-card-circle { flex-basis: 1.85rem; width: 1.85rem; height: 1.85rem; font-size: 1.6rem; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.1rem; gap: 0 .8rem; }
  .brand { font-size: 1.22rem; }
  .brand-mark { width: 3rem; height: 2.7rem; }
  .landing-hero { --hero-photo-height:clamp(18rem,60vw,22rem); }
  .landing-hero::before { bottom: 12.7rem; left: -.7rem; width: 5rem; height: 13rem; opacity: .27; }
  .landing-hero::after {
    inset:auto 0 0;
    height:var(--hero-photo-height);
    clip-path:none;
    background:linear-gradient(to bottom, #123627 0%, #123627f2 16%, #123627a6 44%, #12362700 78%);
  }
  .landing-hero-photo { inset:auto 0 0; width:100%; height:var(--hero-photo-height); object-position:68% bottom; }
  .landing-hero-copy { width:calc(100% - 2rem); min-height:0; padding-block:1.35rem 13.25rem; }
  .home-hero-kicker { font-size:.71rem; margin-bottom:.55rem; }
  .landing-hero h1 { max-width:17ch; font-size:clamp(2.35rem,8.3vw,3.6rem); }
  .landing-hero p { max-width:32rem; font-size:1.02rem; }
  .home-search { grid-template-columns: minmax(0, 1fr); padding: .75rem; }
  .home-filter { padding-block: .58rem; border-right: 0; border-bottom: 1px solid #ddd4c8; }
  .home-filter::before { top: 50%; }
  .home-search-submit { grid-column: auto; min-height: 3.1rem; }
  .home-card-grid { grid-template-columns: 1fr; gap: 1rem; }
  .home-card-image { aspect-ratio: 2.4; }
  .home-card-caption { padding: .8rem 1rem; }
  .home-card-text strong { font-size: .93rem; }
  .home-card-text small { font-size: .85rem; }
  .home-discover { margin-top: 1.75rem; margin-bottom: 1rem; }
  .home-water-list { margin-top: .35rem; }
}
@media (max-width: 400px) {
  .home-hero-actions { gap: .6rem; }
  .brand { font-size: 1.1rem; }
}

/* Province picker shares the directory's accessible selection controls. */
.home-filter-province:has(.facet-picker)::after { display: none; }
.home-filter-province .facet-picker summary { display: block; min-height: 1.65rem; padding: .06rem .02rem; border: 0; border-radius: .2rem; background: transparent; color: #2b302a; font-size: .9rem; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-filter-province .facet-picker summary::after { display: none; }
.home-filter-province:has(.facet-picker)::before { pointer-events: none; }
.home-filter-province .facet-picker::after { content: ''; position: absolute; right: -1.15rem; top: .38rem; width: .52rem; height: .52rem; border-right: 2px solid #16291d; border-bottom: 2px solid #16291d; transform: rotate(45deg); pointer-events: none; }
.home-filter-province .facet-picker[open]::after { top: .65rem; transform: rotate(225deg); }
.home-filter-province .facet-choices { min-width: 14rem; border-radius: .65rem; padding: .4rem; box-shadow: 0 .55rem 1.4rem #29282028; }
.home-filter-province .facet-choices button { border-radius: .35rem; }
@media (prefers-reduced-motion: reduce) {
  .home-hero-button, .home-card, .home-card-image img { transition: none; }
  .home-hero-button:hover, .home-card:hover, .home-card:hover img { transform: none; }
}
