/* Hill of Zion Films — client portal. Matches the main site: warm paper background, terracotta accent. */
:root {
  --bg: #efece5;
  --paper: #fbfaf7;
  --ink: #2a2623;
  --muted: #6f6861;
  --line: #ddd7cc;
  --accent: #a9706a;
  --accent-dark: #8c5650;
  --ok: #3f6b4f;
  --err: #a23b3b;
  --radius: 10px;
  --script: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6rem; }
h2 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: static; width: auto; height: auto; padding: .5rem 1rem; background: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.script { font-family: var(--script); font-style: italic; font-weight: 500; letter-spacing: .01em; }
h1.script { font-size: clamp(2rem, 5vw, 2.8rem); }
.script.big { font-size: 1.9rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--muted); margin: 0 0 .5rem; }
.caps { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }
.lead { color: var(--muted); font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.serif-lead { font-family: var(--script); font-size: 1.5rem; line-height: 1.4; }

/* buttons */
.btn { display: inline-block; border: 1px solid var(--accent); background: transparent; color: var(--accent-dark); padding: .7rem 1.4rem; border-radius: 6px; font: 500 .95rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: rgba(169,112,106,.1); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; }
.btn-small { padding: .45rem .9rem; font-size: .85rem; }
.btn-selected { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent-dark); text-decoration: underline; font: inherit; cursor: pointer; }
form.inline { display: inline; }

/* layout */
.container { max-width: 1040px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding: .9rem 1.25rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--script); font-style: italic; font-size: 1.5rem; }
.brand-sub { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.topnav { display: flex; gap: 1.1rem; flex: 1; flex-wrap: wrap; }
.topnav a { color: var(--ink); text-decoration: none; font-size: .92rem; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.topnav a[aria-current="page"] { border-color: var(--accent); }
.topuser { display: flex; gap: .9rem; align-items: center; font-size: .9rem; }
.who { color: var(--muted); }
.foot { text-align: center; color: var(--muted); font-size: .82rem; padding: 1.5rem 1rem 2.5rem; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.crumb { margin-bottom: .5rem; font-size: .9rem; }
.cols { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .cols { grid-template-columns: 2fr 1fr; } .small-cols { grid-template-columns: 1fr 1fr; } }
.small-cols { display: grid; gap: 1rem; margin-top: 1rem; }
.plain { list-style: none; padding: 0; margin: 0; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.card h2 { margin-bottom: .8rem; }

/* tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .65rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-weight: 500; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.table th.num, .table td.num { text-align: right; }
.table tfoot td { border-bottom: 0; padding-top: .4rem; padding-bottom: .4rem; }
.table tr.strong td { font-weight: 600; border-top: 2px solid var(--ink); font-size: 1.05rem; }
.table th[scope="row"] { width: 38%; text-transform: none; letter-spacing: 0; font-size: .95rem; }

/* forms */
.form label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: .9rem; }
.form input:not([type=checkbox]), .form select, .form textarea { display: block; width: 100%; margin-top: .3rem; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: 400 1rem var(--sans); color: var(--ink); }
.form textarea { resize: vertical; }
.form .check { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
.grid2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.grid2 .full, .full { grid-column: 1 / -1; }
.actions { margin-top: .4rem; }
.item summary { cursor: pointer; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.item .item-form { margin-top: 1rem; }

.badge { display: inline-block; font-size: .72rem; padding: .15rem .55rem; border-radius: 99px; background: #e7e1d6; color: var(--ink); font-weight: 500; }
.badge-sent { background: #dfe8f2; }
.badge-selected { background: #dcebdf; color: var(--ok); }
.badge-warn { background: #f3e1c9; }

.flash { border-radius: var(--radius); padding: .85rem 1.1rem; margin-bottom: 1rem; border: 1px solid; }
.flash p { margin: 0; }
.flash-ok { background: #e6f0e8; border-color: #bcd6c3; }
.flash-err { background: #f6e4e4; border-color: #e3b9b9; color: #6d2323; }
.flash-info { background: #fff; border-color: var(--line); }
.copybox { display: flex; gap: .5rem; margin-top: .7rem; }
.copybox input { flex: 1; min-width: 0; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 6px; font: .82rem ui-monospace, monospace; background: #fff; }

/* sign-in / invite */
.auth { display: grid; place-items: center; min-height: 100vh; padding: 1.5rem; }
.auth-card { width: 100%; max-width: 420px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 2rem 1.75rem; text-align: center; }
.auth-card .form { text-align: left; }
.auth-card .btn-primary { width: 100%; }

/* client flow */
.flow { background: var(--bg); }
.flow-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 1rem; background: rgba(239,236,229,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.flow-back { font-size: 1.4rem; text-decoration: none; color: var(--ink); padding: .2rem .6rem; }
.flow-menu { position: relative; text-align: center; }
.flow-menu summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.flow-menu summary::-webkit-details-marker { display: none; }
.flow-menu summary span::after { content: ' ▾'; font-size: .7em; }
.flow-menu small { letter-spacing: .1em; color: var(--muted); font-size: .68rem; }
.flow-menu ol { position: absolute; left: 50%; transform: translateX(-50%); top: 110%; margin: 0; padding: .4rem; list-style: none; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.12); text-align: left; }
.flow-menu li a { display: block; padding: .5rem .7rem; text-decoration: none; color: var(--ink); border-radius: 6px; }
.flow-menu li a:hover, .flow-menu li a[aria-current="page"] { background: #f3eee6; }
.flow-right { display: flex; align-items: center; gap: .75rem; }
.running { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .95rem; }
@media (max-width: 520px) { .running { display: none; } }
.flow-main { max-width: 1000px; margin: 0 auto; padding: 2rem 1rem 1rem; }
.narrow { max-width: 720px; margin: 0 auto; }
.hero { text-align: center; padding: 3.5rem 1rem 3rem; background: linear-gradient(180deg, #e9e3d8, var(--bg)); border-radius: 16px; }
.hero-title { font-size: clamp(2.6rem, 8vw, 4.4rem); margin: 0; }
.hero-sub { font-size: clamp(1.7rem, 5vw, 2.6rem); margin: .2rem 0 1.4rem; }

.cards { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin: 1.5rem 0; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.item-card { display: flex; flex-direction: column; margin: 0; }
.item-card.is-selected { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok) inset; }
.item-card h2 { font-size: 1.9rem; }
.item-card .desc { white-space: pre-line; flex: 1; }
.price { font-size: 1.3rem; font-weight: 600; margin: .5rem 0 1rem; }
.price.big { font-size: 2.4rem; }
.pick { padding: .55rem 0; }
.proposal-link { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; text-decoration: none; color: var(--ink); }
.invoice .inv-head { display: flex; justify-content: space-between; margin-bottom: 1.2rem; }
.inv-title { font-size: 1.8rem; font-weight: 600; letter-spacing: .03em; }
.inv-meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }

@media (max-width: 520px) {
  .card { padding: 1rem .9rem; overflow-x: auto; }
  .table th, .table td { padding: .55rem .3rem; font-size: .9rem; }
  .table th { font-size: .7rem; letter-spacing: .04em; }
  .inv-title { font-size: 1.4rem; }
  .table th[scope="row"] { width: 42%; }
}

@media print {
  .flow-bar, .topbar, .foot, .btn { display: none !important; }
  body { background: #fff; }
}

/* ---- phase 2: groups, add-on pickers, contract, signatures ---- */
.item-card h3 { font-size: 1.9rem; margin-bottom: .5rem; }
.group-title { font-size: 1.8rem; margin: 2.2rem 0 0; text-align: center; }
.addon-pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.qty { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.qty input { width: 4.5rem; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 6px; font: 400 1rem var(--sans); }
.check { display: flex; gap: .5rem; align-items: center; }
fieldset.groups { border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem .4rem; margin: 0 0 1rem; }
fieldset.groups legend { font-size: .88rem; font-weight: 500; padding: 0 .4rem; }
fieldset.groups .check { margin-bottom: .5rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; font-size: .85rem !important; line-height: 1.5; }
code { background: #efe9dd; padding: .05rem .35rem; border-radius: 4px; font-size: .85em; }

.contract { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; margin-bottom: 1.5rem; font-size: .98rem; line-height: 1.6; }
.contract p { margin: 0 0 .8rem; }
.c-title { font-size: 1.5rem; text-align: center; margin-bottom: 1.2rem; }
.c-h1 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; margin: 1.8rem 0 .6rem; }
.c-h2 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
.c-li1 { padding-left: 1rem; }
.c-li2 { padding-left: 2.4rem; }
.c-svc { border-left: 3px solid var(--accent); padding: .2rem 0 .2rem 1rem; margin: 0 0 1rem 1rem; }
.c-svc p { margin-bottom: .3rem; }
.c-svc ul { margin: 0; padding-left: 1.2rem; }
.sf { background: #f4e9e6; border-radius: 3px; padding: 0 .2rem; }

.signatures { margin: 0 0 1.5rem; }
.sig-row { display: grid; grid-template-columns: 9rem 1fr; gap: .2rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.sig-role { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--muted); }
.sig-name { font-size: 1.7rem; }
.sig-name.pending { font-family: var(--sans); font-size: 1rem; color: var(--muted); font-style: normal; }
.sig-meta { grid-column: 2; font-size: .82rem; color: var(--muted); }
.sig-row.is-signed .sig-name { color: var(--ok); }
@media (max-width: 520px) { .sig-row { grid-template-columns: 1fr; } .sig-meta { grid-column: 1; } .contract { padding: 1.25rem 1rem; } }
.sign-form { max-width: 560px; margin: 0 auto 1.5rem; }

@media print {
  .flash, .sign-form, .page-head .btn, .flow-bar, .crumb { display: none !important; }
  .contract { border: 0; padding: 0; }
  .sf { background: none; }
  .card { border: 0; }
}

/* ---- phase 3: HoneyBook-style look, photos, scheduler ---- */
:root { --accent: #9b6a5f; --accent-dark: #80534a; --bg: #eeebe5; --paper: #f8f6f1; --cursive: 'Great Vibes', 'Cormorant Garamond', cursive; }
.cursive { font-family: var(--cursive); font-weight: 400; font-style: normal; letter-spacing: .01em; }
h1.cursive { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.flow-bar { background: rgba(248,246,241,.97); }
.hb-rule, hr.hb-rule { border: 0; height: 1px; background: var(--accent); opacity: .55; max-width: 620px; margin: 2.2rem auto; }

.hb-hero { position: relative; overflow: hidden; border-radius: 4px; min-height: clamp(420px, 62vh, 620px); display: grid; place-items: center; background: #d9cfc3; }
.hb-hero-img, .hb-banner-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-veil { position: absolute; inset: 0; background: rgba(248,246,241,.55); }
.hb-hero-body { position: relative; text-align: center; padding: 2rem 1.2rem; max-width: 760px; }
.hb-logo { width: 96px; height: 96px; border-radius: 50%; background: var(--paper); object-fit: contain; padding: 6px; margin-bottom: .6rem; }
.hb-hi { margin: 0; font-size: clamp(2.8rem, 8vw, 4.6rem) !important; }
.hb-sub { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.15; margin: .2rem 0 1rem; }
.hb-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 640px; margin: 0 auto; }
.hb-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #ddd5ca; }
.hb-cta { margin: 1.5rem 0 2rem; }
img.is-broken { visibility: hidden; }

.hb-about { display: grid; gap: 2rem; align-items: center; max-width: 960px; margin: 0 auto; }
@media (min-width: 800px) { .hb-about { grid-template-columns: 1fr 1fr; } }
.hb-about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: #ddd5ca; }
.hb-about-text .serif-lead { font-size: 1.35rem; }

.hb-banner { display: flex; justify-content: space-between; align-items: center; background: #fff; border-left: 4px solid var(--accent); padding: .9rem 1.1rem; max-width: 720px; margin: 0 auto 1.2rem; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.hb-banner em { color: var(--muted); font-size: .85rem; font-style: normal; }
.hb-intro { max-width: 720px; margin: 0 auto 1.5rem; }
.group-title { font-size: 2.4rem; text-align: center; margin: 2.2rem 0 1rem; }
.hb-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; max-width: 900px; margin: 0 auto 1.5rem; }
@media (min-width: 720px) { .hb-grid { grid-template-columns: 1fr 1fr; } }
.hb-card { background: var(--paper); border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.08); display: flex; flex-direction: column; overflow: hidden; border: 2px solid transparent; }
.hb-card.is-selected { border-color: var(--ok); }
.hb-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #ddd5ca; }
.hb-card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; font-family: var(--script); }
.hb-card-body h3 { font-size: 2.1rem; margin: .2rem 0 .8rem; line-height: 1.1; }
.hb-incl { text-transform: uppercase; letter-spacing: .03em; font-size: 1.05rem; margin: 0 0 .3rem; }
.hb-list { margin: 0 0 .8rem; padding-left: 1.2rem; font-size: 1.1rem; line-height: 1.4; }
.hb-desc { font-size: 1.1rem; line-height: 1.4; }
.hb-price { text-transform: uppercase; font-size: 1.05rem; margin: auto 0 .8rem; padding-top: .6rem; }
.hb-card-foot { display: flex; justify-content: flex-end; align-items: center; font-family: var(--sans); }
.hb-card .addon-pick { width: 100%; }

.hb-banner-img { position: relative; overflow: hidden; border-radius: 4px; min-height: 280px; display: grid; place-items: center; margin-bottom: 2rem; background: #d9cfc3; }
.hb-banner-text { position: relative; text-align: center; padding: 2rem 1rem; }
.hb-banner-text h1 { margin: 0; }
.hb-booked { text-align: center; margin: 0 auto 1.5rem; }
.hb-booked h2 { font-size: 2.2rem; margin: 0; }
.hb-when { font-size: 1.15rem; font-weight: 500; }

.cal { max-width: 460px; margin: 0 auto 1.5rem; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; font-size: 1.1rem; }
.cal-nav { font-size: 1.6rem; text-decoration: none; padding: 0 .7rem; color: var(--accent-dark); }
.cal-nav.off { color: #c9c2b6; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .3rem 0; }
.cal-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: .95rem; }
.cal-off { color: #c2bbae; }
.cal-day { background: #efe3df; color: var(--ink); text-decoration: none; font-weight: 600; }
.cal-day:hover { background: #e3cfc9; }
.cal-day.is-sel { background: var(--accent); color: #fff; }
.cal-slots { margin-top: 1.2rem; text-align: center; border-top: 1px solid var(--line); padding-top: 1rem; }
.cal-slots h3 { font-size: 1rem; margin-bottom: .8rem; }
.slot { margin: .25rem; min-width: 6.2rem; }

.places { position: relative; }
.suggest { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: .25rem; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.12); max-height: 260px; overflow-y: auto; }
.suggest li { padding: .55rem .7rem; border-radius: 6px; cursor: pointer; font-size: .9rem; font-weight: 400; }
.suggest li:hover, .suggest li.is-active { background: #f3eee6; }

.photo-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-bottom: 2rem; }
.photo-tile { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .7rem; display: flex; flex-direction: column; gap: .4rem; }
.photo-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #ddd5ca; }
.photo-meta { display: flex; flex-direction: column; }
.upload { align-self: flex-start; cursor: pointer; }

@media (max-width: 520px) { .hb-strip { gap: .5rem; } .hb-card-body h3 { font-size: 1.8rem; } .group-title { font-size: 2rem; } }

.phone-field { display: block; max-width: 300px; margin: 0 auto 1rem; text-align: left; font-size: .9rem; font-weight: 500; }
.phone-field input { display: block; width: 100%; margin-top: .3rem; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: 400 1rem var(--sans); }
