/* Websites showcase — first section after the hero.
   Scoped to #websites so it cannot collide with hero styles. */

#websites{
  position:relative;
  z-index:2;
  scroll-margin-top:88px;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--f);
  padding:clamp(72px,12vw,140px) 0 clamp(88px,12vw,160px);
  overflow:visible;
}
#websites *{box-sizing:border-box}
#websites a{color:inherit;text-decoration:none}

#websites .ws-wrap{
  width:min(1240px, calc(100% - 40px));
  margin:0 auto;
}
@media (min-width:761px){
  #websites .ws-wrap{width:min(1240px, calc(100% - 64px))}
}

/* intro */
#websites .ws-intro{max-width:18em;margin:0 0 clamp(48px,8vw,96px)}
#websites .ws-intro h2{
  font-family:var(--fd);
  font-stretch:82%;
  font-weight:800;
  font-size:clamp(56px,10vw,128px);
  line-height:.8;
  letter-spacing:-.04em;
  text-transform:uppercase;
}
#websites .ws-lede{
  margin-top:22px;
  font-size:clamp(15px,1.4vw,18px);
  line-height:1.45;
  font-weight:400;
  color:var(--mute);
  max-width:28ch;
  letter-spacing:-.01em;
}

/* featured church case */
#websites .ws-case{margin-bottom:clamp(72px,10vw,140px)}
#websites .ws-case-head{
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-bottom:clamp(28px,4vw,48px);
}
#websites .ws-kicker{
  font-size:10.5px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--mute);
}
#websites .ws-case-head h3{
  font-family:var(--fd);
  font-stretch:85%;
  font-weight:800;
  font-size:clamp(28px,4.2vw,52px);
  line-height:.95;
  letter-spacing:-.03em;
  text-transform:uppercase;
}
#websites .ws-dek{
  max-width:46ch;
  font-size:15px;
  line-height:1.55;
  color:#333;
}
#websites .ws-visit{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:10.5px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  width:fit-content;
  padding:4px 0;
  position:relative;
}
#websites .ws-visit::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:1px;
  background:var(--ink);
  transform:scaleX(1);
  transform-origin:left;
  transition:transform .5s cubic-bezier(.2,.8,.2,1);
}
#websites .ws-visit:hover::after{transform:scaleX(0);transform-origin:right}
#websites .ws-visit i{
  display:inline-block;
  width:11px;height:11px;
  border-top:1px solid currentColor;
  border-right:1px solid currentColor;
  transform:rotate(45deg) translateY(-1px);
  opacity:.7;
}

@media (min-width:761px){
  #websites .ws-case-head{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:end;
    gap:32px 40px;
  }
  #websites .ws-case-head .ws-visit{margin-bottom:4px}
}

/* desktop + mobile pairing */
#websites .ws-pair{
  position:relative;
  display:grid;
  gap:28px;
}
#websites .ws-browser{
  margin:0;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(0,0,0,.05), 0 24px 60px -28px rgba(0,0,0,.35);
  border:1px solid rgba(0,0,0,.06);
}
#websites .ws-chrome{
  display:flex;
  align-items:center;
  gap:8px;
  height:40px;
  padding:0 14px;
  background:linear-gradient(180deg,#f7f7f5,#ecece8);
  border-bottom:1px solid rgba(0,0,0,.06);
}
#websites .ws-dots{display:flex;gap:6px;flex:0 0 auto}
#websites .ws-dots span{
  width:8px;height:8px;border-radius:50%;
  background:#d4d4d0;
  box-shadow:inset 0 0 0 .5px rgba(0,0,0,.08);
}
#websites .ws-url{
  flex:1;
  min-width:0;
  font-size:10px;
  font-weight:500;
  letter-spacing:.02em;
  color:var(--mute);
  background:rgba(255,255,255,.7);
  border-radius:99px;
  padding:5px 12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#websites .ws-browser img,
#websites .ws-phone img{
  display:block;
  width:100%;
  height:auto;
}
#websites .ws-phone{
  margin:0 auto;
  width:min(220px, 58vw);
  background:#0B0B0B;
  border-radius:28px;
  padding:8px;
  box-shadow:0 20px 40px -20px rgba(0,0,0,.45);
}
#websites .ws-phone-inner{
  overflow:hidden;
  border-radius:21px;
  background:#111;
}
#websites .ws-notch{
  position:absolute;
  /* kept simple — no fake notch to stay minimal */
}

@media (min-width:900px){
  #websites .ws-pair{
    display:block;
    padding-right:clamp(80px, 12vw, 160px);
    padding-bottom:clamp(28px, 4vw, 48px);
  }
  #websites .ws-phone{
    position:absolute;
    right:0;
    bottom:12px;
    width:clamp(200px, 18vw, 260px);
  }
}

/* church feature grid / scroller */
#websites .ws-build{margin-bottom:clamp(80px,11vw,150px)}
#websites .ws-build h3,
#websites .ws-biz h3{
  font-family:var(--fd);
  font-stretch:85%;
  font-weight:800;
  font-size:clamp(22px,2.8vw,34px);
  letter-spacing:-.03em;
  line-height:1.05;
  text-transform:uppercase;
  margin-bottom:28px;
  max-width:16em;
}
#websites .ws-feats{
  display:flex;
  gap:16px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:20px;
  padding:4px 2px 18px;
  margin:0 -20px;
  padding-inline:20px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:rgba(0,0,0,.2) transparent;
}
#websites .ws-feat{
  flex:0 0 72%;
  max-width:280px;
  scroll-snap-align:start;
  margin:0;
}
#websites .ws-feat .ws-thumb{
  display:block;
  border-radius:12px;
  overflow:hidden;
  background:#e8e8e4;
  aspect-ratio:5/4;
  box-shadow:0 1px 2px rgba(0,0,0,.04), 0 10px 24px -16px rgba(0,0,0,.25);
}
#websites .ws-feat img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .7s cubic-bezier(.2,.8,.2,1);
}
#websites .ws-feat:hover img{transform:scale(1.04)}
#websites .ws-feat figcaption{
  margin-top:12px;
  font-size:10.5px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink);
}

@media (min-width:761px){
  #websites .ws-feats{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:22px 18px;
    overflow:visible;
    margin:0;
    padding:0;
    scroll-snap-type:none;
  }
  #websites .ws-feat{flex:none;max-width:none}
}

/* business cards */
#websites .ws-biz-line{
  margin:-14px 0 36px;
  font-size:15px;
  color:var(--mute);
  letter-spacing:-.01em;
}
#websites .ws-biz-grid{
  display:grid;
  gap:18px;
}
@media (min-width:900px){
  #websites .ws-biz-grid{grid-template-columns:repeat(3, 1fr);gap:22px}
}
#websites .ws-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:18px;
  padding:22px 20px 22px;
  display:flex;
  flex-direction:column;
  gap:16px;
  box-shadow:0 1px 2px rgba(0,0,0,.03), 0 16px 36px -28px rgba(0,0,0,.3);
  min-width:0;
}
#websites .ws-card-top{display:flex;flex-direction:column;gap:8px}
#websites .ws-card h4{
  font-family:var(--fd);
  font-stretch:88%;
  font-weight:800;
  font-size:clamp(20px,1.8vw,24px);
  letter-spacing:-.03em;
  text-transform:uppercase;
  line-height:1;
}
#websites .ws-card .ws-card-dek{
  font-size:13.5px;
  line-height:1.45;
  color:#444;
}
#websites .ws-thumbs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
#websites .ws-thumbs.ws-thumbs-4{grid-template-columns:1fr 1fr}
#websites .ws-thumbs.ws-thumbs-3{grid-template-columns:1fr 1fr; }
#websites .ws-thumbs.ws-thumbs-3 > :first-child{grid-column:1 / -1}
#websites .ws-mini{margin:0;min-width:0}
#websites .ws-mini .ws-thumb{
  display:block;
  border-radius:10px;
  overflow:hidden;
  aspect-ratio:16/11;
  background:#e8e8e4;
}
#websites .ws-mini img{
  width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .7s cubic-bezier(.2,.8,.2,1);
}
#websites .ws-card:hover .ws-mini img{transform:scale(1.03)}
#websites .ws-mini figcaption{
  margin-top:7px;
  font-size:9px;
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--mute);
}
#websites .ws-card .ws-visit{margin-top:4px}

/* CTA */
#websites .ws-cta{
  display:flex;
  justify-content:center;
  margin-top:clamp(56px,8vw,96px);
}
#websites .ws-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:16px 28px;
  border-radius:999px;
  font-size:11px;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--ink);
  cursor:pointer;
  transition:transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s;
}
#websites .ws-btn:hover{transform:translateY(-1px)}
#websites .ws-btn:focus{outline:none}
#websites .ws-btn:focus-visible{outline:1px solid var(--ink);outline-offset:5px}

@media (prefers-reduced-motion:reduce){
  #websites .ws-feat img,
  #websites .ws-mini img,
  #websites .ws-btn,
  #websites .ws-visit::after{transition:none}
  #websites .ws-feat:hover img,
  #websites .ws-card:hover .ws-mini img,
  #websites .ws-btn:hover{transform:none}
}

@media (max-width:899px){
  #websites .ws-phone{display:none}
}
/* wide map crop fills the tile without letterboxing */
#websites .ws-feat img[src*="pdr-map"]{object-position:center 45%}
