/* BridalBook — Bethany T MUA */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --ink: #2b2530;
  --soft: #6f6472;
  --cream: #faf7f3;
  --paper: #ffffff;
  --blush: #f6eae7;
  --blush-deep: #eed9d4;
  --rose: #b76e79;
  --rose-dark: #9c5560;
  --gold: #c9a227;
  --line: #e8e0da;
  --green: #4e7a5a;
  --amber: #b07d2b;
  --red: #a94442;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 37, 48, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
h1, h2, h3, .serif { font-family: 'Cormorant Garamond', serif; font-weight: 500; }
a { color: var(--rose); text-decoration: none; }
img { max-width: 100%; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }

/* ---------- public header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 243, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--ink); letter-spacing: .02em; }
.brand em { color: var(--rose); font-style: normal; }
.nav a { color: var(--soft); margin-left: 26px; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.nav a:hover { color: var(--rose); }
.nav a.btn { margin-left: 26px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--rose); color: #fff !important;
  padding: 11px 26px; border-radius: 999px; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--rose-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--rose) !important; border: 1px solid var(--rose); }
.btn.ghost:hover { background: var(--blush); }
.btn.small { padding: 7px 16px; font-size: .8rem; }
.btn.grey { background: #8b8492; }
.btn.grey:hover { background: #6f6472; }
.btn.green { background: var(--green); }
.btn.red { background: var(--red); }

/* ---------- hero ---------- */
.hero {
  padding: 90px 0 70px; text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 15% 10%, rgba(238, 217, 212, .55), transparent),
    radial-gradient(ellipse 55% 45% at 88% 85%, rgba(201, 162, 39, .12), transparent);
}
.hero .eyebrow { text-transform: uppercase; letter-spacing: .35em; font-size: .8rem; color: var(--rose); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.1; margin-bottom: 18px; }
.hero p.lead { max-width: 560px; margin: 0 auto 30px; color: var(--soft); font-size: 1.1rem; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 2.2rem; }
.section-head p { color: var(--soft); max-width: 520px; margin: 8px auto 0; }
.flourish { color: var(--gold); letter-spacing: .5em; font-size: .9rem; }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
}
.service-card h3 { font-size: 1.35rem; }
.service-card .price { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--rose); }
.service-card .duration { font-size: .82rem; color: var(--soft); text-transform: uppercase; letter-spacing: .08em; }
.service-card p.desc { color: var(--soft); font-size: .95rem; flex: 1; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.gallery-grid a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .25s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }

/* ---------- calendar ---------- */
.cal-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; max-width: 640px; margin: 0 auto; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head h3 { font-size: 1.5rem; }
.cal-head a { font-size: 1.2rem; padding: 4px 12px; border-radius: 8px; }
.cal-head a:hover { background: var(--blush); }
table.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.cal th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--soft); padding-bottom: 8px; font-weight: 500; }
table.cal td { padding: 3px; }
.day {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1.15;
  border-radius: 10px; font-size: .95rem; position: relative; border: 1px solid transparent;
}
.day.available { background: #f1f7f2; color: var(--green); border-color: #d8e8dc; }
a.day.available:hover { background: var(--green); color: #fff; }
.day.requested { background: #fdf3e3; color: var(--amber); border-color: #f0dfc0; }
.day.booked { background: var(--blush-deep); color: var(--rose-dark); }
.day.blocked { background: #f0eef1; color: #b4aeb9; text-decoration: line-through; }
.day.past { color: #c9c3ce; }
.day.today::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.cal-legend { display: flex; gap: 18px; justify-content: center; margin-top: 18px; flex-wrap: wrap; font-size: .82rem; color: var(--soft); }
.cal-legend span::before { content: ''; display: inline-block; width: 11px; height: 11px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.cal-legend .lg-available::before { background: #e2f0e5; }
.cal-legend .lg-requested::before { background: #f6e3bd; }
.cal-legend .lg-booked::before { background: var(--blush-deep); }
.cal-legend .lg-blocked::before { background: #e4e1e7; }

/* ---------- forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; max-width: 640px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); margin-bottom: 5px; }
input, select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  font-family: 'Jost', sans-serif; font-size: .98rem; background: var(--cream); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blush-deep); border-color: var(--rose); }
textarea { resize: vertical; min-height: 90px; }
.form-actions { margin-top: 22px; display: flex; gap: 12px; align-items: center; }
.error-banner { background: #fbeaea; border: 1px solid #ecc8c8; color: var(--red); padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; }
.ok-banner { background: #eaf4ec; border: 1px solid #cfe3d5; color: var(--green); padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; }

/* ---------- status pills ---------- */
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.pill.pending { background: #fdf3e3; color: var(--amber); }
.pill.confirmed { background: #eaf4ec; color: var(--green); }
.pill.declined, .pill.cancelled { background: #f0eef1; color: #8b8492; }
.pill.completed { background: #e9eef6; color: #4a6591; }
.pill.paid { background: #eaf4ec; color: var(--green); }
.pill.unpaid { background: #fbeaea; color: var(--red); }

/* ---------- booking portal ---------- */
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .portal-grid { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } }
.detail-list { list-style: none; }
.detail-list li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.detail-list li span:first-child { color: var(--soft); }
.detail-list li:last-child { border-bottom: none; }

/* ---------- chat ---------- */
.chat-box { display: flex; flex-direction: column; gap: 10px; max-height: 380px; overflow-y: auto; padding: 4px; margin-bottom: 14px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: .95rem; }
.msg .meta { font-size: .72rem; color: var(--soft); margin-top: 3px; }
.msg.customer { align-self: flex-start; background: var(--blush); border-bottom-left-radius: 4px; }
.msg.owner { align-self: flex-end; background: #eef1f6; border-bottom-right-radius: 4px; }
.msg.mine { align-self: flex-end; background: var(--blush-deep); border-bottom-right-radius: 4px; }
.chat-form { display: flex; gap: 10px; }
.chat-form input { flex: 1; }

/* ---------- footer ---------- */
footer.site-footer { padding: 46px 0; text-align: center; color: var(--soft); font-size: .92rem; border-top: 1px solid var(--line); margin-top: 40px; }
footer .brand { font-size: 1.3rem; display: block; margin-bottom: 8px; }

/* ================= ADMIN ================= */
.admin body, body.admin { background: #f5f3f6; }
.admin-header { background: var(--ink); color: #fff; }
.admin-header .wrap { display: flex; align-items: center; height: 58px; gap: 26px; max-width: 1200px; }
.admin-header .brand { color: #fff; font-size: 1.2rem; margin-right: 8px; }
.admin-header a { color: #cfc8d4; font-size: .92rem; position: relative; }
.admin-header a:hover, .admin-header a.active { color: #fff; }
.admin-header .spacer { flex: 1; }
.badge { background: var(--rose); color: #fff; border-radius: 999px; font-size: .68rem; padding: 1px 7px; margin-left: 5px; vertical-align: 2px; }
.admin-main { max-width: 1200px; margin: 30px auto; padding: 0 22px; }
.admin-main h1 { font-size: 2rem; margin-bottom: 20px; }
.cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat-card .num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: var(--rose); line-height: 1; }
.stat-card .lbl { color: var(--soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; margin-top: 6px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.panel h2 { font-size: 1.4rem; margin-bottom: 14px; }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.data th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 500; }
table.data td { padding: 10px; border-bottom: 1px solid #f0ece8; }
table.data tr:hover td { background: #faf7f3; }
.filters { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.filters a { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); font-size: .85rem; background: #fff; }
.filters a.active { background: var(--rose); border-color: var(--rose); color: #fff; }
.inline-form { display: inline; }
.muted { color: var(--soft); font-size: .88rem; }
.admin-cal td { vertical-align: top; height: 92px; padding: 4px; border: 1px solid #f0ece8; }
.admin-cal .daynum { font-size: .85rem; margin-bottom: 4px; display: block; }
.admin-cal .tag { display: block; font-size: .72rem; border-radius: 6px; padding: 2px 6px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-cal .tag.confirmed { background: #eaf4ec; color: var(--green); }
.admin-cal .tag.pending { background: #fdf3e3; color: var(--amber); }
.admin-cal .blockbtn { font-size: .7rem; color: #b4aeb9; background: none; border: none; cursor: pointer; padding: 0; }
.admin-cal .blockbtn:hover { color: var(--rose); text-decoration: underline; }
.admin-cal td.blocked-cell { background: repeating-linear-gradient(45deg, #f3f1f4, #f3f1f4 6px, #ecebee 6px, #ecebee 12px); }

/* ---------- chat fab ---------- */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chat-fab-btn {
  display: flex; align-items: center; gap: 9px;
  background: var(--rose); color: #fff; border: none; cursor: pointer;
  padding: 13px 20px; border-radius: 999px;
  font-family: 'Jost', sans-serif; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(43, 37, 48, .25);
  transition: background .15s ease, transform .15s ease;
}
.chat-fab-btn:hover { background: var(--rose-dark); transform: translateY(-2px); }
.chat-fab-menu { display: flex; flex-direction: column; gap: 8px; }
.chat-fab-option {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  padding: 11px 18px; border-radius: 999px; font-size: .95rem;
  box-shadow: var(--shadow); transition: transform .15s ease;
}
.chat-fab-option:hover { transform: translateY(-1px); }
.chat-fab-option.whatsapp svg { color: #25d366; }
.chat-fab-option.email svg { color: var(--rose); }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .site-header .wrap { height: 56px; }
  .brand { font-size: 1.25rem; }
  .nav a { margin-left: 14px; font-size: .8rem; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 56px 0 44px; }
  .hero p.lead { font-size: 1rem; }
  section.block { padding: 44px 0; }
  .section-head h2 { font-size: 1.8rem; }
  .wrap { padding: 0 16px; }
  .form-card { padding: 22px 18px; }
  .cal-card { padding: 16px 10px; }
  .cal-legend { gap: 10px; font-size: .76rem; }
  .day { font-size: .85rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .services-grid { grid-template-columns: 1fr; }
  .form-actions { flex-wrap: wrap; }
  .detail-list li { flex-wrap: wrap; }
  .msg { max-width: 92%; }
  .chat-fab { right: 14px; bottom: 14px; }
  .chat-fab-btn { padding: 12px 16px; font-size: .85rem; }
}

/* admin on small screens */
@media (max-width: 900px) {
  .admin-header .wrap { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 12px 16px; }
  .admin-header .brand { width: 100%; margin: 0; }
  .admin-main { margin: 18px auto; padding: 0 14px; }
  .panel { padding: 16px; overflow-x: auto; }
  table.data { min-width: 560px; }
  .portal-grid { grid-template-columns: 1fr; }
  .admin-cal td { height: 72px; }
}

/* login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--cream); }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; width: 360px; text-align: center; }
.login-card h1 { font-size: 1.8rem; margin-bottom: 4px; }
.login-card p { color: var(--soft); margin-bottom: 22px; font-size: .92rem; }
.login-card form { text-align: left; }
.login-card .btn { width: 100%; margin-top: 16px; }
