/* Pine Hill Baptist Church: Meetinghouse template.
   Part 1 is the approved home page's style block, moved here unchanged
   (except the hero photo, split into a clipping frame + zooming layer).
   Part 2 adds the header menu, footer and inner pages in the same look. */

/* ===== Part 1: approved home page ===== */
*{box-sizing:border-box;margin:0;padding:0}
body{background:#f3eadc;color:#2a2622;font-family:'Work Sans',sans-serif;-webkit-font-smoothing:antialiased}
.w{max-width:1140px;margin:0 auto;padding:0 40px}
header{border-bottom:1px solid #e2d3bd}
header .w{display:flex;align-items:center;justify-content:space-between;height:84px}
.brand{font-family:'Libre Caslon Text',serif;font-size:23px;font-weight:700;color:#5b3d28;display:flex;align-items:center;gap:12px}
.brand svg{width:30px;height:30px}
nav{display:flex;gap:28px;font-size:15px;color:#4a443d;align-items:center}
nav .cta{background:#5b3d28;color:#fff;padding:10px 18px;border-radius:999px}
.hero{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center;padding:44px 0 60px}
.kick{font-size:14px;font-weight:600;color:#8a5a2b;letter-spacing:.06em;text-transform:uppercase}
h1{font-family:'Libre Caslon Text',serif;font-weight:400;font-size:58px;line-height:1.08;margin:14px 0 20px;color:#2a2622}
h1 i{color:#5b3d28}
.lede{font-size:19px;line-height:1.6;color:#57504a;max-width:28em}
.photo{position:relative;overflow:hidden;height:520px;border-radius:22px;box-shadow:0 24px 50px -30px rgba(40,25,10,.5)}
.photo>.ph{position:absolute;inset:0;background:url(https://images.unsplash.com/photo-1682263556627-181761ed74b1?w=1100&q=80&auto=format) no-repeat;background-size:cover;background-position:50% 85%}
.times{background:#5b3d28;box-shadow:0 20px 40px -28px rgba(50,30,10,.6);border-radius:20px;padding:28px 30px;margin-top:30px;display:grid;grid-template-columns:1fr 1fr;gap:16px 28px}
.times div b{display:block;font-family:'Libre Caslon Text',serif;font-size:26px;color:#f1d3a2}
.times div span{font-size:14.5px;color:#eadfcf}
.sec{padding:58px 0 64px;background:#e6d5bd}
.sec h2{font-family:'Libre Caslon Text',serif;font-weight:400;font-size:38px;margin:10px 0 34px}
.three{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.item{background:#fffaf2;border-radius:18px;padding:28px;box-shadow:0 14px 30px -24px rgba(60,35,10,.5)}
.item .n{width:38px;height:38px;border-radius:50%;background:#5b3d28;color:#f1d3a2;font-family:'Libre Caslon Text';display:grid;place-items:center;font-size:18px;margin-bottom:16px}
.item h3{font-size:19px;font-weight:600;margin-bottom:8px}
.item p{font-size:16px;line-height:1.6;color:#57504a}
.addr{display:flex;justify-content:space-between;align-items:center;background:#3f2a1b;color:#f6f1ea;border-radius:20px;padding:30px 36px;margin-top:34px}
.addr b{font-family:'Libre Caslon Text';font-size:24px;font-weight:400}
.addr span{font-size:15px;opacity:.85}
.addr .b{background:#f1d3a2;color:#3f2a1b;padding:11px 20px;border-radius:999px;font-weight:600;font-size:15px}

/* ===== Part 2: site additions ===== */
html{-webkit-text-size-adjust:100%}
img{display:block;max-width:100%}
a{color:inherit}
.addr .b{text-decoration:none;white-space:nowrap}

/* Keep the hover rise working on cards that also fade in */
html.motion .lift[data-reveal].in:hover{transform:translateY(-4px);transition:transform .25s ease,box-shadow .25s ease}

/* Header and current page */
header{position:sticky;top:0;z-index:50;background:#f3eadc}
.brand{text-decoration:none;min-width:0}
.brand svg{flex:none}
nav a{text-decoration:none}
nav a:not(.cta):hover{color:#5b3d28}
nav a[aria-current="page"]{color:#5b3d28;font-weight:600;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:9px;text-decoration-color:#c99a5c}
.menu-btn{display:none;width:46px;height:46px;flex:none;padding:0;border:1px solid #e2d3bd;border-radius:14px;background:#fffaf2;color:#5b3d28;cursor:pointer;place-items:center}
.menu-btn svg{width:22px;height:22px;display:block}
.menu-btn .x{display:none}
body.menu-open .menu-btn .bars{display:none}
body.menu-open .menu-btn .x{display:inline}

/* Inner page banner */
.banner{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center;padding:40px 0 60px}
.banner h1{font-size:50px;margin:14px 0 18px}
.frame{position:relative;overflow:hidden;border-radius:22px;background:#e6d5bd;box-shadow:0 24px 50px -30px rgba(40,25,10,.5)}
.frame img{width:100%;height:100%;object-fit:cover}
.frame.fill img{position:absolute;inset:0}
.banner .frame{height:380px}

/* Sections and shared pieces */
.sec.cream{background:#f3eadc}
.sec .lead{font-size:17px;line-height:1.65;color:#57504a;max-width:42em;margin:-18px 0 30px}
.sec h2.next{margin-top:52px}
.two{display:grid;grid-template-columns:repeat(2,1fr);gap:26px}
.four{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.item .when{font-family:'Libre Caslon Text',serif;font-size:26px;color:#5b3d28;margin-bottom:6px}
.item .tag{font-size:14px;font-weight:600;color:#8a5a2b;margin-bottom:10px}
.item p+p{margin-top:12px}
.four .item{padding:24px}
.four .item h3{font-size:17.5px}
.four .item p{font-size:15px}
.split{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.split .frame{aspect-ratio:4/3}
.split .sec-h{margin-top:0}
.prose p{font-size:17px;line-height:1.7;color:#57504a}
.prose p+p{margin-top:14px}
.ticks{list-style:none;margin-top:22px;display:grid;gap:12px}
.ticks li{position:relative;padding-left:24px;font-size:16px;line-height:1.6;color:#57504a}
.ticks li::before{content:"";position:absolute;left:3px;top:.62em;width:8px;height:8px;border-radius:50%;background:#8a5a2b}
.ticks b{color:#2a2622;font-weight:600}
.btn{display:inline-block;background:#5b3d28;color:#fff;padding:12px 22px;border-radius:999px;font-weight:600;font-size:15px;text-decoration:none;border:0;cursor:pointer;font-family:inherit;margin-top:20px}
.textlink{color:#5b3d28;font-weight:600;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#c99a5c}

/* Sundays: order of service */
.order{display:grid;grid-template-columns:1.3fr .7fr;gap:36px;align-items:start}
.steps{list-style:none;display:grid;gap:12px}
.steps li{display:flex;gap:18px;align-items:flex-start;background:#fffaf2;border-radius:16px;padding:18px 22px;box-shadow:0 14px 30px -26px rgba(60,35,10,.5)}
.steps .n{flex:none;width:34px;height:34px;border-radius:50%;background:#5b3d28;color:#f1d3a2;font-family:'Libre Caslon Text',serif;display:grid;place-items:center;font-size:16px}
.steps h3{font-size:17px;font-weight:600;margin-bottom:4px}
.steps p{font-size:15.5px;line-height:1.6;color:#57504a}
.aside{background:#5b3d28;color:#eadfcf;border-radius:20px;padding:28px 30px;box-shadow:0 20px 40px -28px rgba(50,30,10,.6)}
.aside .kick{color:#f1d3a2}
.aside h3{font-family:'Libre Caslon Text',serif;font-weight:400;font-size:26px;color:#f1d3a2;margin:8px 0 12px}
.aside p{font-size:15.5px;line-height:1.65}
.aside p+p{margin-top:12px}

/* Sundays: arriving */
.arrive{display:grid;grid-template-columns:1fr 1fr .85fr;gap:24px;align-items:stretch}
.arrive .frame{min-height:380px}

/* About: leaders */
.people{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.person{background:#fffaf2;border-radius:18px;padding:32px 28px;text-align:center;box-shadow:0 14px 30px -24px rgba(60,35,10,.5)}
.person .pic{width:148px;height:148px;border-radius:50%;overflow:hidden;margin:0 auto 18px;border:4px solid #e6d5bd}
.person .pic img{width:100%;height:100%;object-fit:cover}
.person h3{font-family:'Libre Caslon Text',serif;font-weight:400;font-size:23px}
.person .role{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#8a5a2b;margin:6px 0 12px}
.person p{font-size:15.5px;line-height:1.6;color:#57504a}
.confess{margin-top:28px;font-size:16px;line-height:1.6;color:#57504a}

/* Ministries: photo cards */
.mcard{background:#fffaf2;border-radius:18px;overflow:hidden;box-shadow:0 14px 30px -24px rgba(60,35,10,.5);display:flex;flex-direction:column}
.mcard .ph{aspect-ratio:4/3;overflow:hidden;background:#e6d5bd}
.mcard .ph img{width:100%;height:100%;object-fit:cover}
.mcard .body{padding:24px 26px 28px}
.mcard h3{font-size:19px;font-weight:600;margin-bottom:6px}
.mcard .tag{font-size:14px;font-weight:600;color:#8a5a2b;margin-bottom:10px}
.mcard p{font-size:15.5px;line-height:1.6;color:#57504a}

/* Sermons */
.latest{display:flex;justify-content:space-between;align-items:center;gap:24px;background:#3f2a1b;color:#f6f1ea;border-radius:20px;padding:30px 36px;text-decoration:none;box-shadow:0 20px 40px -28px rgba(50,30,10,.6)}
.latest .lk{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#f1d3a2;margin-bottom:10px}
.latest b{display:block;font-family:'Libre Caslon Text',serif;font-weight:400;font-size:30px;line-height:1.2;margin-bottom:8px}
.latest .lm{font-size:15px;color:#eadfcf}
.latest .pill{flex:none;background:#f1d3a2;color:#3f2a1b;padding:11px 22px;border-radius:999px;font-weight:600;font-size:15px}
.srows{display:grid;gap:10px}
.srow{display:grid;grid-template-columns:1.4fr 1.2fr auto;gap:18px;align-items:center;background:#fffaf2;border-radius:14px;padding:16px 22px;text-decoration:none;box-shadow:0 12px 26px -24px rgba(60,35,10,.5)}
.srow b{font-family:'Libre Caslon Text',serif;font-weight:400;font-size:19px;color:#2a2622;min-width:0}
.srow span{font-size:15px;color:#57504a;min-width:0}
.srow em{font-style:normal;font-size:14px;font-weight:600;color:#8a5a2b;white-space:nowrap}
.feednote{margin-top:22px;font-size:15.5px;line-height:1.6;color:#57504a}

/* Contact */
.contact{display:grid;grid-template-columns:.9fr 1.1fr;gap:26px;align-items:start}
.stack{display:grid;gap:22px}
.item address{font-style:normal;font-size:17px;line-height:1.6;color:#2a2622;margin-bottom:8px}
.item .btn{margin-top:16px}
.form .f{margin-bottom:16px}
.form label{display:block;font-size:14px;font-weight:600;margin-bottom:6px;color:#4a443d}
.form input,.form textarea{width:100%;font:inherit;font-size:16px;padding:12px 14px;border:1px solid #dcc9ad;border-radius:12px;background:#fff;color:#2a2622}
.form textarea{min-height:150px;resize:vertical}
.form input:focus,.form textarea:focus{outline:2px solid #c99a5c;outline-offset:1px;border-color:#c99a5c}
.form .btn{margin-top:4px}

/* Footer */
.ft{background:#3f2a1b;color:#eadfcf;padding:56px 0 0}
.ft-grid{display:grid;grid-template-columns:1.4fr 1.3fr .8fr .8fr;gap:36px}
.ft .brand{color:#f1d3a2;font-size:21px;margin-bottom:14px}
.ft p{font-size:15px;line-height:1.6}
.ft p+p{margin-top:8px}
.ft h4{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#f1d3a2;margin-bottom:12px}
.ft ul{list-style:none;display:grid;gap:8px;font-size:15px;line-height:1.45}
.ft a{text-decoration:none}
.ft a:hover{color:#f1d3a2}
.ft-base{border-top:1px solid rgba(241,211,162,.2);margin-top:40px;padding-top:18px;padding-bottom:22px;font-size:13.5px;color:#cbbba5}

/* ===== Responsive ===== */
@media (max-width:980px){
  .four{grid-template-columns:repeat(2,1fr)}
  .order{grid-template-columns:1fr}
  .arrive{grid-template-columns:1.2fr .8fr}
  .arrive .frame{grid-column:2;grid-row:1/3}
  .ft-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:860px){
  header .w{height:72px}
  .menu-btn{display:grid}
  nav{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;padding:6px 40px 22px;background:#f3eadc;border-bottom:1px solid #e2d3bd;box-shadow:0 18px 30px -24px rgba(40,25,10,.5)}
  body.menu-open nav{display:flex}
  nav a{padding:14px 2px;border-bottom:1px solid #e9dcc8;font-size:16px}
  nav a[aria-current="page"]{text-underline-offset:6px}
  nav .cta{margin-top:16px;text-align:center;border-bottom:0;padding:13px 18px}
  .hero,.banner,.split,.contact{grid-template-columns:1fr;gap:32px}
  .hero{padding:28px 0 48px}
  .banner{padding:28px 0 44px}
  h1{font-size:42px}
  .banner h1{font-size:38px}
  .photo{height:360px}
  .hero .photo{order:-1;height:320px}
  .banner .frame{height:300px}
  .three,.two,.people{grid-template-columns:1fr}
  .sec{padding:44px 0 48px}
  .sec h2{font-size:32px;margin-bottom:26px}
  .sec h2.next{margin-top:40px}
  .addr{flex-direction:column;align-items:flex-start;gap:18px;padding:26px}
  .latest{flex-direction:column;align-items:flex-start;padding:26px}
  .srow{grid-template-columns:1fr auto;grid-template-areas:"t d" "m m";gap:4px 14px}
  .srow b{grid-area:t}.srow em{grid-area:d}.srow span{grid-area:m}
}
@media (max-width:640px){
  .w{padding:0 20px}
  nav{padding:6px 20px 20px}
  .brand{font-size:18px;gap:10px}
  .brand svg{width:26px;height:26px}
  h1{font-size:36px}
  .banner h1{font-size:33px}
  .lede{font-size:17px}
  .photo{height:300px}
  .banner .frame{height:240px}
  .times{padding:22px;gap:14px 18px}
  .times div b{font-size:22px}
  .four{grid-template-columns:1fr}
  .arrive{grid-template-columns:1fr}
  .arrive .frame{grid-column:auto;grid-row:auto;min-height:0;aspect-ratio:4/5}
  .item{padding:24px}
  .steps li{padding:16px 18px;gap:14px}
  .aside{padding:24px}
  .latest b{font-size:25px}
  .ft{padding-top:44px}
  .ft-grid{grid-template-columns:1fr;gap:28px}
}
