/* ---------- 1. COLORS AND BASIC SETTINGS ---------- */
:root { --ink:#20342d; --pine:#24483d; --sage:#8da899; --cream:#f8f5ed; --gold:#bd8f4e; --line:#d9ded7; --white:#fff; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:#fbfcf9; color:var(--ink); font-family:Arial,Helvetica,sans-serif; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
[hidden] { display:none !important; }
.primary { border:0; border-radius:2px; background:var(--pine); color:#fff; padding:15px 23px; font-weight:700; }
.secondary { border:1px solid #cbd4cf; background:#fff; color:var(--pine); padding:13px 20px; }
.text-button { border:0; background:none; color:var(--pine); padding:10px 0; }
.eyebrow { text-transform:uppercase; letter-spacing:2.5px; color:#92703f; font-size:11px; font-weight:700; margin:0 0 20px; }

/* ---------- CONSTRUCTION PREVIEW GATE ---------- */
.construction-gate { position:fixed; inset:0; z-index:200; min-height:100vh; display:grid; place-items:center; padding:28px; overflow:auto; background:linear-gradient(145deg,rgba(18,49,40,.82),rgba(18,49,40,.96)),radial-gradient(circle at 25% 20%,#b9cec1 0 8%,transparent 9%),linear-gradient(165deg,#a7bdb0 0 48%,#52766a 49% 100%); }
.construction-card { width:min(680px,100%); padding:clamp(36px,7vw,70px); background:rgba(248,245,237,.97); border:1px solid rgba(255,255,255,.45); box-shadow:0 24px 90px rgba(0,0,0,.28); text-align:center; }
.construction-mark { width:68px; height:68px; margin:0 auto 28px; border:1px solid var(--sage); border-radius:50%; display:grid; place-items:center; font:17px Georgia,serif; letter-spacing:1.5px; }
.construction-card .eyebrow { margin-bottom:16px; }
.construction-card h1 { margin:0 auto 22px; max-width:560px; font:400 clamp(36px,6vw,58px)/1.04 Georgia,serif; letter-spacing:-1.5px; }
.construction-card>p:not(.eyebrow) { max-width:520px; margin:0 auto 30px; color:#5d6d65; line-height:1.7; }
.construction-card form { max-width:500px; margin:0 auto 28px; text-align:left; }
.construction-card label { display:block; margin-bottom:8px; color:#44574e; font-size:12px; font-weight:700; }
.construction-form-row { display:grid; grid-template-columns:1fr auto; gap:10px; }
.construction-form-row input { min-width:0; border:1px solid #bfcac4; border-radius:2px; background:#fff; padding:14px; color:var(--ink); }
.construction-error { margin:10px 0 0; color:#9b493e; font-size:13px; }
.construction-card>small { color:#78867f; }

/* ---------- 2. HEADER AND NAVIGATION ---------- */
.site-header { min-height:88px; padding:0 clamp(24px,6vw,92px); display:flex; align-items:center; justify-content:space-between; background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:30; }
.brand { display:flex; align-items:center; gap:14px; border:0; background:none; text-align:left; color:var(--ink); }
.brand-mark { width:48px; height:48px; border:1px solid var(--sage); border-radius:50%; display:grid; place-items:center; font:13px Georgia,serif; letter-spacing:1px; flex:none; }
.brand strong { display:block; font:20px Georgia,serif; }
.brand small { display:block; color:#718078; margin-top:2px; }
.site-header nav { display:flex; align-items:center; gap:6px; }
.site-header nav button { border:0; background:none; padding:12px 14px; color:#57675f; }
.site-header nav button.active { color:var(--ink); box-shadow:inset 0 -2px var(--gold); }
.site-header nav .manage-link { margin-left:12px; border:1px solid #cbd4cf; border-radius:3px; color:var(--pine); }

/* ---------- 3. HOME PAGE ---------- */
.hero { min-height:660px; display:grid; grid-template-columns:54% 46%; background:var(--cream); }
.hero-photo { min-height:660px; background:linear-gradient(145deg,rgba(25,62,51,.22),rgba(25,62,51,.67)),radial-gradient(circle at 35% 38%,#abc1b2 0 9%,transparent 10%),linear-gradient(170deg,#b9c9c0 0 48%,#7c9c91 49% 58%,#486f63 59% 100%); /* CLIENT PHOTO 1: uncomment next line */ /* background-image:linear-gradient(145deg,rgba(25,62,51,.15),rgba(25,62,51,.4)),url('../images/chapel-hero.jpg'); */ background-size:cover; background-position:center; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; }
.hero-photo span,.about-photo span,.portrait-placeholder span { border:1px solid rgba(255,255,255,.65); padding:10px 16px; border-radius:3px; text-transform:uppercase; letter-spacing:2px; font-size:11px; }
.hero-photo small,.about-photo small,.portrait-placeholder small { margin-top:10px; opacity:.85; }
.hero-copy { padding:110px clamp(38px,7vw,110px); align-self:center; }
.hero h1,.page-shell>h1,.about-hero h1 { font:400 clamp(46px,5.2vw,78px)/1.02 Georgia,serif; letter-spacing:-2px; margin:0 0 28px; }
.hero-copy>p:not(.eyebrow) { font:18px/1.8 Georgia,serif; color:#596860; max-width:540px; }
.hero-actions { display:flex; align-items:center; gap:25px; margin-top:35px; }
.next-section { padding:100px clamp(24px,8vw,130px); }
.section-heading { display:flex; justify-content:space-between; align-items:end; margin-bottom:35px; }
.section-heading h2,.welcome-strip h2 { font:400 38px Georgia,serif; margin:0; }
.featured-card { display:grid; grid-template-columns:110px 1fr 240px; gap:36px; border:1px solid var(--line); background:#fff; padding:38px; align-items:center; }
.date-block { width:78px; height:88px; border:1px solid #cfd8d2; display:flex; flex-direction:column; text-align:center; justify-content:center; background:#fff; }
.date-block strong { font-size:11px; letter-spacing:2px; color:#a37537; }
.date-block span { font:38px Georgia,serif; }
.tag { display:inline-block; color:#6a7c73; text-transform:uppercase; font-size:10px; letter-spacing:1.8px; font-weight:700; margin-bottom:10px; }
.featured-content h3 { font:29px Georgia,serif; margin:2px 0 8px; }
.featured-content h4 { margin:0 0 14px; font-size:15px; }
.featured-content p,.event-card p { color:#627069; line-height:1.65; margin:0; max-width:670px; }
.details { display:flex; flex-wrap:wrap; gap:20px; margin-top:18px; color:#596a61; font-size:13px; }
.portrait-placeholder { height:190px; background:linear-gradient(155deg,#bccbc2,#6f8e82); display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; }
.welcome-strip { text-align:center; background:var(--pine); color:#fff; padding:88px 24px; }
.welcome-strip .script { font:italic 23px Georgia,serif; color:#c4d6cb; }
.welcome-strip h2 { font-size:42px; }
.welcome-strip p:last-child { max-width:690px; margin:22px auto 0; line-height:1.75; color:#d4dfd9; }

/* ---------- 4. UPCOMING AND ABOUT PAGES ---------- */
.page-shell { max-width:1120px; margin:auto; padding:90px 30px 110px; min-height:650px; }
.page-shell>h1 { font-size:62px; margin-bottom:20px; }
.intro { font:19px/1.65 Georgia,serif; color:#627069; max-width:650px; }
.filter-row { display:flex; justify-content:space-between; border-bottom:1px solid var(--line); padding:45px 0 15px; color:#718078; font-size:12px; text-transform:uppercase; letter-spacing:1px; }
.event-card { display:grid; grid-template-columns:100px 1fr; gap:28px; padding:42px 5px; border-bottom:1px solid var(--line); }
.event-card h2 { font:30px Georgia,serif; margin:0 0 7px; }
.event-card h3 { font-size:14px; margin:0 0 13px; }
.about-page { max-width:1200px; margin:auto; padding:70px 30px 110px; }
.about-hero { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.about-hero h1 { font-size:59px; }
.about-hero p:last-child { font:18px/1.7 Georgia,serif; color:#64736b; }
.about-photo { height:500px; background:linear-gradient(145deg,rgba(36,72,61,.15),rgba(36,72,61,.45)),linear-gradient(160deg,#c8d4cc 0 45%,#718f83 46% 100%); /* CLIENT PHOTO 2: uncomment next line */ /* background-image:linear-gradient(145deg,rgba(36,72,61,.1),rgba(36,72,61,.35)),url('../images/chapel-interior.jpg'); */ background-size:cover; background-position:center; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; }
.about-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:45px; margin:100px 0; }
.about-grid article { border-top:1px solid var(--sage); padding-top:20px; }
.about-grid .number { font:14px Georgia,serif; color:var(--gold); }
.about-grid h2 { font:27px Georgia,serif; }
.about-grid p { color:#607067; line-height:1.75; }
.visit-card { background:var(--cream); padding:55px 65px; display:flex; justify-content:space-between; align-items:center; }
.visit-card h2 { font:35px Georgia,serif; margin:0 0 12px; }

/* ---------- 5. MANAGEMENT DEMO ---------- */
.admin-page { background:#f3f5f2; min-height:700px; padding:65px max(24px,calc((100vw - 1080px)/2)) 100px; }
.admin-head { display:flex; justify-content:space-between; align-items:end; }
.admin-head h1 { font:42px Georgia,serif; margin:15px 0 8px; }
.admin-head p { color:#68766f; margin:0; }
.demo-pill { background:#e5eee8; color:#35604f; padding:8px 11px; border-radius:20px; text-transform:uppercase; font-size:10px; letter-spacing:1px; font-weight:700; }
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:35px 0; }
.stats div { background:#fff; border:1px solid var(--line); padding:20px 24px; }
.stats span { display:block; font:30px Georgia,serif; }
.stats small { color:#718078; }
.admin-table { background:#fff; border:1px solid var(--line); }
.table-title { height:65px; padding:0 22px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.table-title h2 { font:21px Georgia,serif; }
.admin-row { min-height:78px; display:grid; grid-template-columns:55px 1fr 85px 55px 70px; gap:15px; align-items:center; padding:10px 20px; border-bottom:1px solid #e7ebe8; }
.mini-date { width:42px; height:48px; border:1px solid var(--line); text-align:center; padding:4px; }
.mini-date b,.mini-date small { display:block; }
.mini-date b { font:20px Georgia,serif; }
.mini-date small { text-transform:uppercase; font-size:9px; color:#97703c; }
.row-main b { display:block; margin-bottom:6px; }
.row-main span { font-size:12px; color:#738079; }
.status { font-size:10px; text-transform:uppercase; letter-spacing:1px; font-weight:700; }
.status.published { color:#337355; }.status.draft { color:#9a763e; }
.icon-btn { border:0; background:none; color:#52665c; font-size:12px; padding:10px 0; }
.icon-btn.danger { color:#9a5e55; }
.admin-tools { display:flex; justify-content:flex-end; margin-top:16px; }
.admin-note { margin-top:22px; background:#e5ece7; padding:18px 22px; display:flex; gap:20px; font-size:12px; }
.admin-note span { color:#617168; }
.empty-state { padding:30px; background:#fff; border:1px solid var(--line); color:#68766f; }
.season-placeholder { border:1px solid var(--line); background:#fff; padding:45px; }
.season-placeholder h3 { font:29px Georgia,serif; margin:2px 0 12px; }
.season-placeholder p { max-width:700px; margin:0; color:#627069; line-height:1.65; }
.archive-section { margin-top:70px; }

/* ---------- 6. FORM MODAL AND NOTIFICATIONS ---------- */
.modal-backdrop { position:fixed; inset:0; background:rgba(15,34,28,.6); z-index:90; display:grid; place-items:center; padding:20px; }
.modal { background:#fff; width:min(620px,100%); max-height:92vh; overflow:auto; border-radius:4px; box-shadow:0 20px 70px #0004; }
.modal-head { display:flex; justify-content:space-between; align-items:start; padding:26px 30px 18px; border-bottom:1px solid var(--line); }
.modal-head small { text-transform:uppercase; letter-spacing:1.5px; color:#897046; }
.modal-head h2 { font:27px Georgia,serif; margin:5px 0; }
.modal-head button { border:0; background:none; font-size:30px; color:#68766f; }
.modal form { padding:25px 30px; }
.modal label { display:block; font-size:12px; font-weight:700; color:#4c5c54; margin-bottom:18px; }
.modal input,.modal select,.modal textarea { display:block; width:100%; border:1px solid #cfd7d2; border-radius:2px; padding:12px; margin-top:7px; background:#fff; color:#24372f; }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.counter { display:block; text-align:right; color:#89948e; font-weight:400; }
.upload { border:1px dashed #b7c4bc; padding:18px; text-align:center; margin-bottom:18px; }
.upload span,.upload strong,.upload small { display:block; }.upload small { color:#7a8780; margin-top:4px; }
.form-actions { display:flex; justify-content:flex-end; gap:10px; border-top:1px solid var(--line); padding-top:20px; }
.toast { position:fixed; top:105px; right:25px; z-index:100; background:#193d32; color:#fff; padding:14px 20px; border-radius:4px; box-shadow:0 8px 30px #0002; opacity:0; transform:translateY(-10px); pointer-events:none; transition:.2s; }
.toast.visible { opacity:1; transform:translateY(0); }
.toast.error { background:#7d392f; }

/* ---------- 7. FOOTER ---------- */
footer { background:#172f28; color:#dbe5df; padding:65px clamp(24px,8vw,120px) 25px; display:grid; grid-template-columns:1.7fr 1fr 1fr; gap:50px; }
.footer-brand { display:flex; gap:15px; align-items:center; }.footer-brand .brand-mark { border-color:#759186; color:#fff; }
.footer-brand strong,footer>div>strong { display:block; font:19px Georgia,serif; margin-bottom:10px; }
.footer-brand small,footer span,footer button { display:block; color:#afc0b8; font-size:12px; margin:7px 0; }
footer button { border:0; background:none; padding:0; }
.copyright { grid-column:1/-1; border-top:1px solid #345047; padding-top:20px; margin:20px 0 0; color:#879d93; font-size:11px; }

/* ---------- 8. TABLET AND PHONE LAYOUTS ---------- */
@media (max-width:850px) {
  .site-header { padding:16px 20px; align-items:flex-start; }.brand small { display:none; }.brand strong { font-size:17px; }.site-header nav { flex-wrap:wrap; justify-content:flex-end; }.site-header nav button { font-size:12px; padding:8px; }.site-header nav .manage-link { margin-left:0; }
  .hero { grid-template-columns:1fr; }.hero-photo { min-height:330px; }.hero-copy { padding:60px 28px; }.featured-card { grid-template-columns:80px 1fr; }.portrait-placeholder { display:none; }
  .about-hero { grid-template-columns:1fr; }.about-photo { height:340px; }.about-grid { grid-template-columns:1fr; margin:60px 0; }.admin-head { align-items:start; gap:25px; }.admin-row { grid-template-columns:50px 1fr 70px; }.admin-row .status { grid-column:3; }.admin-note { flex-direction:column; }
}
@media (max-width:560px) {
  .construction-gate { padding:14px; }.construction-card { padding:34px 22px; }.construction-form-row { grid-template-columns:1fr; }.construction-form-row .primary { width:100%; }
  .site-header { display:block; }.brand { margin-bottom:12px; }.site-header nav { justify-content:flex-start; }
  .hero h1,.page-shell>h1,.about-hero h1 { font-size:43px; }.hero-actions { align-items:flex-start; flex-direction:column; gap:8px; }.next-section { padding:65px 20px; }.featured-card { padding:24px 18px; gap:17px; }.date-block { width:60px; height:72px; }.date-block span { font-size:29px; }
  .event-card { grid-template-columns:70px 1fr; gap:14px; }.page-shell,.about-page { padding:60px 20px; }.visit-card { padding:35px 25px; display:block; }.admin-page { padding:45px 15px; }.admin-head { display:block; }.admin-head .primary { margin-top:22px; width:100%; }.stats { gap:6px; }.stats div { padding:15px 12px; }.admin-row { padding:10px; }.row-main span { display:none; }.two-col { grid-template-columns:1fr; }.modal form,.modal-head { padding-left:20px; padding-right:20px; } footer { grid-template-columns:1fr; }.copyright { grid-column:1; }
}
