/* Kings Grove Presbyterian Church: Chapel template */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
[id]{scroll-margin-top:96px}
body{background:#efebe2;color:#26302b;font-family:'Jost',sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.w{max-width:1180px;margin:0 auto;padding:0 40px}

/* Header */
header{position:sticky;top:0;z-index:50;background:#efebe2}
header .w{display:flex;align-items:center;justify-content:space-between;height:80px;gap:20px}
.brand{font-family:'Lora',serif;font-size:24px;color:#3e5040;display:flex;align-items:center;gap:12px;line-height:1.2}
.brand svg{width:32px;height:32px;flex:none}
.menu{display:flex;align-items:center;gap:30px}
nav{display:flex;gap:30px;font-size:15px;color:#4c5650}
nav a{padding:6px 0;border-bottom:1.5px solid transparent;transition:color .2s,border-color .2s}
nav a:hover{color:#3e5040}
nav a[aria-current="page"]{color:#3e5040;border-bottom-color:#3e5040}
.menu .btn{padding:10px 18px;font-size:14.5px;border-radius:12px}
.toggle{display:none;width:44px;height:44px;border:1px solid #c9d0c4;border-radius:12px;background:#fbf9f5;color:#3e5040;align-items:center;justify-content:center;cursor:pointer;flex:none}
.toggle svg{width:20px;height:20px;display:block}
.toggle .x{display:none}
body.menu-open .toggle .x{display:block}
body.menu-open .toggle .bars{display:none}

/* Home hero */
.hero{position:relative;height:560px;border-radius:26px;overflow:hidden}
.hero .ph{position:absolute;inset:0}
.hero img{width:100%;height:100%;object-fit:cover;object-position:68% 52%}
.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(243,240,234,.97) 0%,rgba(243,240,234,.94) 42%,rgba(243,240,234,.55) 54%,rgba(243,240,234,0) 68%)}
.copy{position:absolute;left:56px;top:0;bottom:0;display:flex;flex-direction:column;justify-content:center;max-width:470px;z-index:2}
.kick{font-size:13px;letter-spacing:.18em;text-transform:uppercase;color:#5f7a62}
h1{font-family:'Lora';font-weight:400;font-size:58px;line-height:1.08;margin:16px 0 18px;color:#24302a}
h1 i{color:#4f6a52}
.lede{font-size:18.5px;line-height:1.6;color:#47514b}
.btns{display:flex;gap:12px;margin-top:28px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;gap:10px;background:#3e5040;color:#f3f0ea;padding:13px 22px;border-radius:14px;font-size:15.5px}
.btn2{display:inline-flex;align-items:center;gap:10px;background:rgba(255,255,255,.7);color:#3e5040;padding:13px 22px;border-radius:14px;font-size:15.5px;border:1px solid #c9d0c4}
.btn .eq,.btn2 .eq{height:14px}
.bar{position:relative;z-index:3;margin:-46px 56px 0;background:#3e5040;color:#f3f0ea;border-radius:20px;display:grid;grid-template-columns:repeat(4,1fr);box-shadow:0 20px 40px -28px rgba(30,40,30,.45)}
.bar div{padding:24px 28px}
.bar div+div{border-left:1px solid rgba(243,240,234,.16)}
.bar small{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#c3cfbf}
.bar b{display:block;font-family:'Lora';font-size:24px;font-weight:500;margin-top:4px}
.band{background:#dde4d6;margin-top:-34px;padding-top:34px}
.sec{padding-top:52px;padding-bottom:58px;text-align:center}
.sec h2{font-family:'Lora';font-weight:400;font-size:40px;margin:10px 0 28px}
.three{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;text-align:left}
.c{background:#fbf9f5;border-radius:20px;padding:28px 28px 30px;box-shadow:0 14px 30px -24px rgba(30,45,30,.45)}
.c svg{width:46px;height:46px;padding:10px;border-radius:50%;background:#3e5040;color:#e7ede2;margin-bottom:14px}
.c h3{font-family:'Lora';font-size:23px;font-weight:500;margin-bottom:8px}
.c p{font-size:16.5px;line-height:1.6;color:#4c5650}

/* Inner page banner: cream copy left, photo right, one rounded frame */
.pg{position:relative;display:grid;grid-template-columns:1fr 1fr;min-height:380px;border-radius:26px;overflow:hidden;background:#f3f0ea}
.pg .copy{position:static;max-width:none;padding:48px 40px 48px 56px}
.pg h1{font-size:48px;margin:14px 0 14px}
.pg .ph{position:relative;overflow:hidden}
.pg .ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pg .ph:after{content:"";position:absolute;inset:0 auto 0 0;width:18%;background:linear-gradient(90deg,#f3f0ea,rgba(243,240,234,0));z-index:1}
.pg .ph.nofade:after{display:none}

/* Inner sections */
.sp{padding-top:64px;padding-bottom:64px}
.sp.tight{padding-top:56px}
.bandin{background:#dde4d6}
.head{text-align:center;margin-bottom:30px}
.head h2{font-family:'Lora';font-weight:400;font-size:38px;margin-top:10px;line-height:1.15}
.head p{max-width:640px;margin:12px auto 0;font-size:17px;line-height:1.6;color:#4c5650}
.split{display:grid;grid-template-columns:1.25fr .85fr;gap:32px;align-items:start}
.split.even{grid-template-columns:1fr 1fr;align-items:center}
.frame{border-radius:20px;overflow:hidden;box-shadow:0 14px 30px -24px rgba(30,45,30,.45);background:#dde4d6}
.frame img{width:100%;height:100%;object-fit:cover}
.tall{aspect-ratio:4/5}
.wide{aspect-ratio:3/2}
.frame figcaption{background:#fbf9f5;padding:14px 20px;font-size:14.5px;color:#4c5650}
.p{font-size:16.5px;line-height:1.65;color:#4c5650}
.p+.p{margin-top:12px}
.p b{color:#26302b;font-weight:500}
.lnk{color:#3e5040;border-bottom:1px solid #9fb09c;transition:border-color .2s}
.lnk:hover{border-color:#3e5040}
.note{text-align:center;font-size:15px;color:#5f6a63;margin-top:22px}

/* Order of worship */
.order{list-style:none;display:grid;gap:12px;counter-reset:o}
.order li{counter-increment:o;display:grid;grid-template-columns:44px 1fr;gap:16px;align-items:start;background:#fbf9f5;border-radius:18px;padding:20px 24px;box-shadow:0 14px 30px -26px rgba(30,45,30,.45)}
.order li:before{content:counter(o);width:40px;height:40px;border-radius:50%;background:#3e5040;color:#f3f0ea;font-family:'Lora';font-size:18px;display:flex;align-items:center;justify-content:center}
.order h3{font-family:'Lora';font-size:21px;font-weight:500;margin-bottom:4px}
.order p{font-size:16px;line-height:1.6;color:#4c5650}

/* Times */
.times{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-bottom:18px}
.time{background:#3e5040;color:#f3f0ea;border-radius:18px;padding:20px 22px}
.time small{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#c3cfbf}
.time b{display:block;font-family:'Lora';font-size:24px;font-weight:500;margin-top:4px}
.time span{display:block;font-size:14.5px;color:#d6dfd2;margin-top:4px;line-height:1.5}

/* Beliefs */
.two{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;text-align:left}
.c .ref{display:block;font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:#5f7a62;margin-bottom:6px}
.full{margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#3e5040;color:#f3f0ea;border-radius:20px;padding:26px 30px;text-align:left}
.full h3{font-family:'Lora';font-size:23px;font-weight:500}
.full p{font-size:15.5px;line-height:1.6;color:#d6dfd2;margin-top:4px}
.full .btn2{flex:none;background:#f3f0ea;border-color:#f3f0ea}

/* Sermons */
.latest{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;background:#3e5040;color:#f3f0ea;border-radius:22px;padding:30px 34px;text-align:left;box-shadow:0 20px 40px -28px rgba(30,40,30,.5)}
.latest .lab{display:flex;align-items:center;gap:10px;font-size:12.5px;letter-spacing:.16em;text-transform:uppercase;color:#c3cfbf}
.latest h3{font-family:'Lora';font-size:32px;font-weight:400;margin:10px 0 6px;line-height:1.2}
.latest .m{font-size:16px;color:#d6dfd2}
.latest .btn2{background:#f3f0ea;border-color:#f3f0ea}
.list{display:grid;gap:10px;margin-top:22px;text-align:left}
.row{display:grid;grid-template-columns:1.4fr 1fr 90px;gap:16px;align-items:center;background:#fbf9f5;border-radius:16px;padding:18px 22px;box-shadow:0 14px 30px -26px rgba(30,45,30,.45)}
.row b{font-family:'Lora';font-size:19px;font-weight:500;color:#26302b}
.row span{font-size:15px;color:#4c5650}
.row em{font-style:normal;font-size:14.5px;color:#5f7a62;text-align:right}
.chips{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:18px}

/* Community */
.elders{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;text-align:center}
.elder{background:#fbf9f5;border-radius:20px;padding:28px 22px 26px;box-shadow:0 14px 30px -24px rgba(30,45,30,.45)}
.elder img{width:132px;height:132px;border-radius:50%;object-fit:cover;margin:0 auto 16px;border:4px solid #dde4d6}
.elder h3{font-family:'Lora';font-size:21px;font-weight:500}
.elder .role{font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;color:#5f7a62;margin:6px 0 10px}
.elder p{font-size:15.5px;line-height:1.6;color:#4c5650}
.items{display:grid;gap:12px}
.item{background:#fbf9f5;border-radius:18px;padding:20px 24px;box-shadow:0 14px 30px -26px rgba(30,45,30,.45)}
.item h3{font-family:'Lora';font-size:21px;font-weight:500;margin-bottom:4px}
.item small{font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;color:#5f7a62}
.item p{font-size:16px;line-height:1.6;color:#4c5650;margin-top:4px}

/* Visit */
.form{background:#fbf9f5;border-radius:20px;padding:28px;box-shadow:0 14px 30px -24px rgba(30,45,30,.45);display:grid;gap:14px;text-align:left}
.form label{display:grid;gap:6px;font-size:14.5px;color:#4c5650}
.form input,.form textarea{font:inherit;font-size:16px;color:#26302b;background:#fff;border:1px solid #c9d0c4;border-radius:12px;padding:12px 14px;width:100%}
.form textarea{min-height:120px;resize:vertical}
.form input:focus,.form textarea:focus{outline:2px solid #5f7a62;outline-offset:1px}
.form button{justify-self:start;border:0;cursor:pointer;font-family:inherit}
.call{display:grid;gap:12px}
.call .time b a{border-bottom:1px solid rgba(243,240,234,.4)}

/* Footer */
footer{background:#3e5040;color:#e7ede2}
footer .w{display:grid;grid-template-columns:1.3fr 1fr .8fr;gap:36px;padding-top:52px;padding-bottom:30px}
footer .brand{color:#f3f0ea;font-size:21px}
footer h4{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#c3cfbf;font-weight:500;margin-bottom:12px}
footer p,footer li{font-size:15px;line-height:1.7;color:#d6dfd2}
footer ul{list-style:none}
footer ul a{transition:color .2s}
footer ul a:hover,footer ul a[aria-current="page"]{color:#fff}
footer ul a[aria-current="page"]{border-bottom:1px solid #c3cfbf}
footer .addr{margin-top:14px}
.small{grid-column:1/-1;display:flex;gap:22px;flex-wrap:wrap;border-top:1px solid rgba(243,240,234,.16);padding-top:18px;font-size:14px;color:#c3cfbf}
.small a:hover{color:#fff}

/* Helpers */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.h2l{font-family:'Lora';font-weight:400;font-size:38px;line-height:1.15;margin:10px 0 18px}
.h2l+.p{margin-top:0}
.split .btns{margin-top:22px}

/* Narrow desktop: keep the header on one row */
@media (min-width:861px) and (max-width:1100px){
  .brand{font-size:20px;gap:10px}
  .brand svg{width:28px;height:28px}
  nav,.menu{gap:18px}
  .menu .btn{display:none}
}

/* Tablet */
@media (max-width:1000px){
  .elders{grid-template-columns:repeat(2,1fr)}
  .pg h1{font-size:42px}
}

/* Phone menu */
@media (max-width:860px){
  .w{padding:0 24px}
  header .w{height:72px}
  .toggle{display:inline-flex}
  .menu{display:none}
  body.menu-open .menu{display:flex;flex-direction:column;align-items:stretch;gap:6px;position:absolute;top:100%;left:0;right:0;background:#efebe2;padding:8px 24px 22px;box-shadow:0 18px 28px -20px rgba(30,40,30,.4)}
  body.menu-open nav{flex-direction:column;gap:0;font-size:17px}
  body.menu-open nav a{padding:13px 0;border-bottom:1px solid #dde4d6}
  body.menu-open nav a[aria-current="page"]{border-bottom-color:#3e5040;color:#3e5040;font-weight:500}
  body.menu-open .menu .btn{justify-content:center;margin-top:12px;padding:13px 22px;font-size:15.5px}
  .hero{height:auto;background:#f3f0ea}
  .hero .ph{position:relative;height:300px}
  .hero:after{display:none}
  .copy{position:static;max-width:none;padding:28px 28px 70px}
  h1{font-size:40px}
  .bar{margin:-46px 16px 0;grid-template-columns:repeat(2,1fr)}
  .bar div:nth-child(3){border-left:0}
  .bar div:nth-child(n+3){border-top:1px solid rgba(243,240,234,.16)}
  .three,.two,.split,.split.even{grid-template-columns:1fr}
  .pg{grid-template-columns:1fr;min-height:0}
  .pg .ph{order:-1;height:260px}
  .pg .ph:after{display:none}
  .pg .copy{padding:26px 26px 30px}
  .pg h1{font-size:36px}
  .tall{aspect-ratio:4/3}
  .tall.keep{aspect-ratio:4/5}
  footer .w{grid-template-columns:1fr 1fr}
  footer .w>div:first-child{grid-column:1/-1}
}

/* Small phones */
@media (max-width:560px){
  .h2l{font-size:30px}
  .w{padding:0 16px}
  header .w{height:68px;gap:12px}
  .brand{font-size:17px;gap:9px}
  .brand svg{width:28px;height:28px}
  body.menu-open .menu{padding:6px 16px 20px}
  .hero .ph{height:240px}
  .copy{padding:24px 20px 66px}
  h1{font-size:34px}
  .lede{font-size:17px}
  .btn,.btn2{padding:12px 18px;font-size:15px}
  .bar div{padding:16px 16px}
  .bar b{font-size:19px}
  .bar small{font-size:11px}
  .sec{padding-top:40px;padding-bottom:44px}
  .sec h2,.head h2{font-size:30px}
  .c{padding:22px 22px 24px}
  .sp{padding-top:44px;padding-bottom:44px}
  .sp.tight{padding-top:40px}
  .pg .ph{height:220px}
  .pg .copy{padding:22px 20px 26px}
  .pg h1{font-size:31px}
  .order li{grid-template-columns:36px 1fr;gap:12px;padding:18px}
  .order li:before{width:34px;height:34px;font-size:16px}
  .times{grid-template-columns:1fr}
  .full,.latest{grid-template-columns:1fr;flex-direction:column;align-items:flex-start;padding:24px 22px}
  .latest h3{font-size:26px}
  .row{grid-template-columns:1fr auto;gap:4px 12px;padding:16px 18px}
  .row b{grid-column:1/-1;font-size:18px}
  .elders{grid-template-columns:1fr}
  .form{padding:22px 18px}
  footer .w{grid-template-columns:1fr;gap:26px;padding-top:40px}
}
