/* We Do Weddings: ivory, blush and gold. Mobile first. */
:root {
  --bg: #fbf7f2;
  --tint: #f5ece5;
  --card: #fffdf9;
  --ink: #3a2f2a;
  --muted: #8a7d74;
  --line: #eadfd3;
  --gold: #b08a57;
  --gold-dark: #8f6d3f;
  --blush: #f3e3dc;
  --ok: #5c8a5a;
  --ok-bg: #edf5ea;
  --warn-bg: #fbf1e3;
  --danger: #b2483d;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 10px 30px rgba(80, 55, 35, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.top-gap { margin-top: 2rem; }
.light { color: #fff; }

/* ── Header ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 242, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); text-decoration: none; letter-spacing: .5px; white-space: nowrap; }
.brand span { color: var(--gold); font-style: italic; }
.brand small { font-family: var(--sans); font-size: .75rem; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; margin-left: 6px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; letter-spacing: .3px; }
.nav a:not(.btn):hover { color: var(--gold-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 12px; text-align: center; border-bottom: 0; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn { display: inline-block; background: var(--gold); color: #fff; border: 1px solid var(--gold); border-radius: 999px; padding: 13px 28px; font: 500 .95rem var(--sans); letter-spacing: .5px; text-decoration: none; cursor: pointer; transition: background .2s, transform .1s; }
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 8px 18px; font-size: .85rem; }
.btn-wide { width: 100%; padding: 16px; font-size: 1rem; }
.btn-ghost { background: transparent; color: var(--gold-dark); }
.btn-ghost:hover { background: var(--blush); color: var(--gold-dark); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .15); border-color: #fff; }
.btn-light { background: #fff; color: var(--gold-dark); border-color: #fff; }
.btn-light:hover { background: var(--blush); border-color: var(--blush); color: var(--gold-dark); }
.linklike { background: none; border: 0; padding: 0; color: var(--gold-dark); font: inherit; cursor: pointer; text-decoration: underline; }
.linklike.danger { color: var(--danger); }
.text-link { color: var(--gold-dark); text-decoration: none; font-weight: 500; }
.text-link:hover { text-decoration: underline; }
.inline { display: inline; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; background-size: cover; background-position: center; color: #fff; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 20, 14, .15) 0%, rgba(30, 20, 14, .35) 45%, rgba(30, 20, 14, .72) 100%); }
.hero-inner { position: relative; padding-bottom: 12vh; padding-top: 18vh; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); font-weight: 400; margin-bottom: .3em; }
.hero-sub { max-width: 640px; font-size: 1.15rem; color: rgba(255, 255, 255, .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.eyebrow { font-size: .8rem; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: .6em; font-weight: 500; }
.eyebrow.light { color: #f1d9b5; }

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 84px 0; }
.section-tint { background: var(--tint); }
.section-title { font-size: clamp(2rem, 4.5vw, 3rem); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.page-head { padding: 56px 0 8px; }
.cta-band { background: linear-gradient(120deg, #a8824f, #c9a46c); }
.cta-band p { font-size: 1.1rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 36px; }
.feature-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.feature-img { aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.feature-body { padding: 22px 22px 26px; }
.feature-body h3 { font-size: 1.7rem; }

.group-title { font-size: 1.5rem; margin: 36px 0 14px; color: var(--gold-dark); }
.group-title.small-title { font-size: 1.25rem; margin: 22px 0 10px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.service-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.service-card h4 { font-size: 1.3rem; margin-bottom: .3em; }
.service-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blush); color: var(--gold-dark); font-family: var(--serif); font-size: 1.4rem; margin-bottom: 12px; }
.steps h3 { font-size: 1.5rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.gallery-item { aspect-ratio: 1; background-size: cover; background-position: center; border-radius: 10px; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 28px; }
.why-grid h3 { font-size: 1.5rem; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
details p { margin: 12px 0 0; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.brand-footer { font-size: 1.4rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--gold-dark); }

/* ── Forms ──────────────────────────────────────────────── */
.request-form fieldset { border: 0; padding: 0; margin: 0 0 36px; }
.request-form legend { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; margin-bottom: 14px; padding: 0; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 500; font-size: .95rem; }
.opt { font-weight: 300; color: var(--muted); font-size: .85rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; gap: 0; } }
input, select, textarea { font: 400 1rem var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 138, 87, .18); }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--gold); flex: none; }
input[type=file] { padding: 10px; }
.hint { color: var(--muted); font-size: .92rem; }
.field-error { color: var(--danger); font-size: .88rem; }
.field-error:empty { display: none; }
.form-errors { background: #fbeceb; border: 1px solid #f0c9c4; color: var(--danger); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.form-errors ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }
.input-validation-error { border-color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.choice { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, background .2s; }
.choice.on { border-color: var(--gold); background: #fffaf2; }
.choice-label { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 400; }
.choice-note { display: none; margin-top: 10px; font-size: .9rem; padding: 9px 12px; }
.choice.on .choice-note { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 4px; font-size: .95rem; }

.seal { font-size: 2.2rem; color: var(--gold); margin-bottom: 10px; }
.notice { background: var(--warn-bg); border-radius: 10px; padding: 12px 16px; }
.banner { background: var(--warn-bg); border: 1px solid #f0dcbb; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; }
.banner-ok { background: var(--ok-bg); border-color: #cfe3c9; }

/* ── Offer page ─────────────────────────────────────────── */
.offer-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; overflow-x: auto; }
.offer-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.offer-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: .85rem; letter-spacing: .5px; border-bottom: 1px solid var(--line); padding: 8px 6px; }
.offer-table td { padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.offer-table tfoot td { border-bottom: 0; padding-top: 10px; }
.offer-table .total td { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-dark); }
.num { text-align: right; white-space: nowrap; }
.offer-notes { margin-top: 18px; padding: 14px 16px; background: var(--tint); border-radius: 10px; }
@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .page-head { padding-top: 36px; }
  .offer-card { padding: 16px; }
  .offer-table thead { display: none; }
  .offer-table, .offer-table tbody, .offer-table tfoot { display: block; width: 100%; }
  .offer-table tfoot tr { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; }
  .offer-table tfoot td { padding: 0; }
  .offer-table tbody tr { display: grid; grid-template-columns: auto auto 1fr; gap: 2px 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .offer-table tbody td { border: 0; padding: 0; }
  .offer-table tbody td:first-child { grid-column: 1 / -1; color: var(--ink); }
  .offer-table tbody td:nth-child(2), .offer-table tbody td:nth-child(3) { color: var(--muted); font-size: .9rem; text-align: left; }
  .offer-table tbody td:nth-child(2)::after { content: " \00d7"; }
  .offer-table tbody td:nth-child(4) { text-align: right; }
  .offer-table .total td { font-size: 1.4rem; }
}
.reply-form { margin-top: 28px; }
.reply-form label { font-weight: 500; display: block; margin-bottom: 6px; }
.reply-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.prose p { font-size: 1.05rem; }

/* ── Admin ──────────────────────────────────────────────── */
body.admin { background: #f8f4ef; }
.admin-header { background: var(--card); border-bottom: 1px solid var(--line); }
.admin-nav { display: flex; gap: 20px; align-items: center; }
.admin-nav a { color: var(--ink); text-decoration: none; }
.admin-main { padding-top: 28px; padding-bottom: 60px; }
.admin-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.search { display: flex; gap: 8px; flex: 1; max-width: 440px; }
.search input { padding: 9px 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tab { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); font-size: .9rem; }
.tab.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.tab .count { opacity: .7; margin-left: 4px; }
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.admin-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tbody tr { cursor: pointer; }
.admin-table tbody tr:hover { background: #fffaf2; }
.admin-table tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 500; letter-spacing: .3px; background: #eee; white-space: nowrap; }
.badge-big { font-size: .95rem; padding: 6px 16px; }
.badge-new { background: #fbe7cf; color: #8a5a17; }
.badge-offersent { background: #e3ecf8; color: #2f5b8f; }
.badge-accepted, .badge-o-accepted { background: var(--ok-bg); color: var(--ok); }
.badge-declined, .badge-o-declined { background: #f8e4e1; color: var(--danger); }
.badge-completed { background: #ece6f5; color: #5b4a86; }
.badge-archived { background: #eee; color: #777; }
.badge-o-sent { background: #e3ecf8; color: #2f5b8f; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.panel h2 { font-size: 1.6rem; }
.panel h3 { font-size: 1.2rem; margin-top: 18px; }
.facts { display: grid; grid-template-columns: 90px 1fr; gap: 6px 14px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.message { background: var(--tint); border-radius: 10px; padding: 12px 14px; white-space: pre-line; }
.svc-list { padding-left: 18px; margin: 0; }
.svc-list li { margin-bottom: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

.builder-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.builder-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: .85rem; padding: 6px; }
.builder-table td { padding: 4px; }
.builder-table td:first-child { width: 55%; }
.builder-table input { padding: 9px 10px; }
.builder-table .num input { text-align: right; max-width: 140px; }
.builder-table .amount { color: var(--muted); padding-right: 10px; }
.icon-btn { background: none; border: 0; font-size: 1.4rem; color: var(--muted); cursor: pointer; padding: 0 6px; }
.icon-btn:hover { color: var(--danger); }
.builder-bottom { display: grid; grid-template-columns: 1fr 260px; gap: 24px; margin-top: 18px; }
.builder-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.builder-fields .wide { grid-column: 1 / -1; }
.totals { background: var(--tint); border-radius: 12px; padding: 16px 18px; align-self: start; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-dark); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.builder-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
@media (max-width: 760px) {
  .builder-bottom, .builder-fields { grid-template-columns: 1fr; }
  .builder-table thead { display: none; }
  .builder-table tr { display: grid; grid-template-columns: 1fr 1fr 32px; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .builder-table td:first-child { grid-column: 1 / -1; width: auto; }
  .builder-table .amount { display: none; }
  .builder-table .num input { max-width: none; }
}
.sent-offer { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.sent-offer.superseded { opacity: .6; }
.sent-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 4px; }
.link-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.link-row input { flex: 1; min-width: 220px; padding: 8px 10px; font-size: .88rem; }
.status-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.panel textarea { margin-bottom: 10px; }
.login-box { max-width: 380px; margin: 60px auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
