/* ── Champagne Moments by Bailey — brand system ─────────────────────── */
:root {
  --blush: #fbf0ec;
  --blush-deep: #f6e3dd;
  --cream: #fff8f5;
  --ink: #211a17;
  --ink-soft: #5d504a;
  --gold: #c9a24b;
  --gold-deep: #a9823a;
  --rose: #b76e79;
  --green: #7a9b76;
  --red: #c05c5c;
  --radius: 20px;
  --shadow: 0 10px 40px rgba(33, 26, 23, 0.08);
  --shadow-lift: 0 18px 60px rgba(183, 110, 121, 0.18);
  --font-display: "Playfair Display", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-body: "Jost", "Avenir Next", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--blush);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 999px; border: none;
  font-size: 15px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-gold {
  background: linear-gradient(135deg, #d9b45e, var(--gold) 45%, var(--gold-deep));
  color: #fff; box-shadow: 0 8px 24px rgba(201, 162, 75, 0.4);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201, 162, 75, 0.55); }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid rgba(33, 26, 23, 0.25);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #3a2f2a; transform: translateY(-2px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 240, 236, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 162, 75, 0.18);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 4px 14px rgba(201,162,75,.35); }
.nav-brand .brand-name { font-family: var(--font-script); font-size: 26px; color: var(--ink); line-height: 1; }
.nav-brand .brand-sub { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-deep); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; letter-spacing: .04em; }
.nav-links a:not(.btn):hover { color: var(--gold-deep); }
.nav-links .btn { padding: 10px 22px; font-size: 12.5px; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ── hero ── */
.hero { position: relative; overflow: hidden; padding: 90px 0 110px; text-align: center; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: 0;
}
.hero::before { width: 480px; height: 480px; background: #f9dcd2; top: -140px; left: -140px; }
.hero::after { width: 520px; height: 520px; background: rgba(201, 162, 75, 0.25); bottom: -200px; right: -160px; }
.hero > .container { position: relative; z-index: 1; }
.hero-logo { width: min(340px, 70vw); margin: 0 auto 34px; border-radius: 50%; box-shadow: var(--shadow-lift); }
.hero .kicker {
  font-size: 12px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 18px;
}
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 6vw, 64px); line-height: 1.12; }
.hero h1 .script { font-family: var(--font-script); font-weight: 400; color: var(--rose); font-size: 1.25em; }
.hero p.lead { max-width: 560px; margin: 22px auto 36px; font-size: 18px; color: var(--ink-soft); }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── sections ── */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .kicker { font-size: 12px; letter-spacing: 0.38em; text-transform: uppercase; color: var(--gold-deep); }
.section-head h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 42px); margin-top: 10px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; }

/* services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--cream); border-radius: var(--radius); padding: 36px 30px;
  box-shadow: var(--shadow); border: 1px solid rgba(201, 162, 75, 0.14);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card .icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blush-deep), #fff); margin-bottom: 20px;
  border: 1px solid rgba(201,162,75,.25); font-size: 26px;
}
.card h3 { font-family: var(--font-display); font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; counter-reset: step; }
.step { text-align: center; padding: 10px 18px; }
.step .num {
  font-family: var(--font-display); font-size: 46px; color: transparent;
  -webkit-text-stroke: 1.5px var(--gold); margin-bottom: 12px;
}
.step h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* about */
.about { background: var(--cream); border-block: 1px solid rgba(201,162,75,.15); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-img { border-radius: 28px; box-shadow: var(--shadow-lift); }
.about h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 18px; }
.about h2 .script { font-family: var(--font-script); color: var(--rose); font-weight: 400; }
.about p { color: var(--ink-soft); margin-bottom: 16px; }

/* cta band */
.cta-band {
  background: linear-gradient(120deg, var(--ink), #3d2f28 60%, #5a4232);
  color: var(--cream); text-align: center; border-radius: 32px; padding: 72px 8%;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: "\1F942"; position: absolute; font-size: 200px; opacity: .07; right: -20px; top: -30px; transform: rotate(18deg);
}
.cta-band h2 { font-family: var(--font-script); font-weight: 400; font-size: clamp(38px, 5vw, 58px); color: #ecd9a8; }
.cta-band p { margin: 14px auto 32px; max-width: 480px; color: rgba(255, 248, 245, .8); }

/* footer */
footer { padding: 48px 0 60px; text-align: center; color: var(--ink-soft); font-size: 14px; }
footer .script { font-family: var(--font-script); font-size: 24px; color: var(--ink); }
footer small { display: block; margin-top: 10px; letter-spacing: .06em; }

/* ── public gallery ── */
.hidden-until-filled { display: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gallery-item { border-radius: 20px; overflow: hidden; background: var(--cream); box-shadow: var(--shadow); border: 1px solid rgba(201,162,75,.14); }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--ink-soft); }

/* ── AI chat widget ── */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 62px; height: 62px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, #d9b45e, var(--gold) 50%, var(--gold-deep));
  color: #fff; font-size: 26px; box-shadow: 0 12px 34px rgba(201, 162, 75, 0.5);
  display: grid; place-items: center; transition: transform .2s ease;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-panel {
  position: fixed; right: 22px; bottom: 96px; z-index: 90;
  width: min(380px, calc(100vw - 44px)); height: min(540px, 72vh);
  background: var(--cream); border-radius: 24px; box-shadow: 0 24px 80px rgba(33,26,23,.28);
  border: 1px solid rgba(201,162,75,.25);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; pointer-events: none; transform: translateY(14px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
}
.chat-panel.open { opacity: 1; pointer-events: auto; transform: none; }
.chat-head {
  padding: 16px 20px; background: linear-gradient(120deg, var(--ink), #4a382e);
  color: var(--cream); display: flex; align-items: center; gap: 12px;
}
.chat-head img { width: 38px; height: 38px; border-radius: 50%; }
.chat-head .t { font-family: var(--font-display); font-size: 16px; }
.chat-head .s { font-size: 11.5px; opacity: .75; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 82%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; }
.chat-msg.bot { background: var(--blush-deep); border-bottom-left-radius: 6px; align-self: flex-start; }
.chat-msg.user { background: var(--ink); color: var(--cream); border-bottom-right-radius: 6px; align-self: flex-end; }
.chat-msg.typing { color: var(--ink-soft); font-style: italic; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 12px; background: #fff; }
.chat-chip {
  border: 1px solid rgba(201,162,75,.45); background: var(--blush, #FBF0EC); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font-family: inherit; font-size: 13px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.chat-chip:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid rgba(201,162,75,.2); background: #fff; }
.chat-input input {
  flex: 1; border: 1.5px solid rgba(33,26,23,.15); border-radius: 999px; padding: 11px 18px;
  font-family: inherit; font-size: 14.5px; outline: none; background: var(--cream);
}
.chat-input input:focus { border-color: var(--gold); }
.chat-input button {
  width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--gold); color: #fff; font-size: 17px;
}
.chat-input button:hover { background: var(--gold-deep); }

/* ── shared form styles (portal + site) ── */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid rgba(33,26,23,.14); border-radius: 14px;
  font-family: inherit; font-size: 15px; background: #fff; color: var(--ink); outline: none;
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field textarea { min-height: 110px; resize: vertical; }

.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--cream); padding: 13px 26px; border-radius: 999px;
  font-size: 14.5px; box-shadow: 0 14px 40px rgba(0,0,0,.3); z-index: 200;
  opacity: 0; transition: all .3s ease; max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); }
