/* =====================================================================
   Locanto Match Matchmaking — design system
   A calm, editorial identity for a discreet introductions service.
   Palette: ivory paper, deep aubergine ink, muted gold, sage.
   Type: Fraunces (display, editorial) + Inter (body).
   ===================================================================== */
:root {
  --paper: #F7F3EC;
  --surface: #FFFFFF;
  --ink: #2A2230;          /* deep aubergine-charcoal */
  /* ===== PRIMARY BRAND COLOUR — change these two lines to your exact pink ===== */
  --plum: #DE3163;         /* primary (pink) - brand colour */
  --plum-dark: #B81E4E;    /* darker pink for hover/pressed states */
  /* =========================================================================== */
  --gold: var(--plum);     /* accents now follow the primary pink */
  --gold-soft: #FCE4EC;    /* soft pink tint (was gold tint) */
  --gold-ink: #9c1b45;     /* readable text on the soft pink tint */
  --sage: #6E7F6B;
  --muted: #726B74;
  --line: #E6DED2;
  /* Themeable via the admin Appearance panel (overridden inline in <head>) */
  --btn-text: #FFFFFF;     /* text colour on filled buttons */
  --section-bg: var(--gold-soft); /* tinted-section background */
  --footer-bg: var(--ink);        /* footer background */
  --radius: 12px;
  --shadow: 0 10px 34px rgba(42, 34, 48, .08);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.68; }
img { max-width: 100%; display: block; }
a { color: var(--plum); text-decoration: none; }
a:hover { color: var(--plum-dark); }
h1,h2,h3,h4 { font-family: var(--display); font-weight: 500; line-height: 1.14; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-block; font-family: var(--body); font-weight: 600; font-size: .94rem; border: 1.5px solid transparent;
  border-radius: 999px; padding: 13px 30px; cursor: pointer; transition: all .18s; text-align: center; }
.btn-primary { background: var(--plum); color: var(--btn-text); }
.btn-primary:hover { background: var(--plum-dark); color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--plum-dark); color: #fff; }
.btn-outline { border-color: var(--plum); color: var(--plum); }
.btn-outline:hover { background: var(--plum); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-light { background: #fff; color: var(--plum); }
.btn-light:hover { background: #fff; color: var(--plum-dark); }
.section-plum .btn-gold, .section-primary .btn-gold { background:#fff; color:var(--plum); }
.btn-ghost:hover { border-color: var(--plum); color: var(--plum); }
.btn-lg { padding: 16px 40px; font-size: 1.02rem; }
.btn-sm { padding: 9px 20px; font-size: .86rem; }
.btn-block { display: block; width: 100%; }
.btn-danger { background: #fff; color: #97331f; border-color: #E3C4BC; }
.btn-danger:hover { background: #FaEEEA; }

/* Header */
.site-header { position: sticky; top: 0; background: rgba(247,243,236,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 100; transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.logo { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--ink); letter-spacing: -.01em; }
.logo em { color: var(--gold); font-style: normal; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: .92rem; }
.main-nav a:hover { color: var(--plum); }
/* The nav call-to-action is a filled button: keep its label white on all states */
.main-nav a.btn-primary, .main-nav a.nav-cta, .main-nav a.nav-cta:hover { color: var(--btn-text); }
.nav-muted { color: var(--muted) !important; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .3s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Flash */
.flash { margin: 16px 0 0; padding: 13px 18px; border-radius: var(--radius); font-weight: 500; font-size: .93rem; }
.flash-success { background: #EAF3EC; color: #24503A; border: 1px solid #C4E0CC; }
.flash-error { background: #FaEEEA; color: #7c2b1a; border: 1px solid #EFCFC6; }

/* Hero slider */
.hero { position: relative; min-height: min(86vh, 700px); display: grid; place-items: center; overflow: hidden; color: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; background-size: cover; background-position: center; }
.hero-slide.active { opacity: 1; }
/* Slow zoom (Ken Burns) on the visible slide; duration follows the admin slide time */
.hero-slide.active { animation: heroZoom calc(var(--hero-dur, 4s) + 1.4s) ease-out both; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hero-slide.active { animation: none; } }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,34,48,.42), rgba(42,34,48,.66)); }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 760px; padding: 90px 22px; }
.hero-content h1 { color: #fff; }
.hero-content p { font-size: clamp(1rem, 2vw, 1.22rem); margin: 20px auto 32px; max-width: 600px; color: rgba(255,255,255,.94); }
.hero-eyebrow { display: inline-block; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 6px 18px; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 22px; }
.hero-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.hero-nav:hover { background: rgba(255,255,255,.3); }
.hero-prev { left: 20px; } .hero-next { right: 20px; }
.hero-dots { position: absolute; z-index: 3; bottom: 28px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: .2s; }
.hero-dot.active { background: var(--gold); width: 26px; border-radius: 999px; }

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--section-bg); }
.section-plum { background: var(--plum); color: #fff; }
.section-plum h2 { color: #fff; }
.section-plum p { color: rgba(255,255,255,.9); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); margin-top: 14px; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; display: block; margin-bottom: 12px; }

/* Cards & grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }
.step-num { font-family: var(--display); font-size: 2.4rem; color: var(--gold); line-height: 1; margin-bottom: 12px; }
.card-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--gold-soft); color: var(--plum); display: grid; place-items: center; margin-bottom: 16px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.img-feature { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.img-feature.tall { max-height: 520px; }
.illus-caption { font-size: .76rem; color: var(--muted); margin-top: 8px; font-style: italic; }

/* Values / list rows */
.value-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.value-row:last-child { border-bottom: 0; }
.value-row .card-icon { flex: none; margin: 0; }
.value-row h3 { font-size: 1.08rem; }
.value-row p { color: var(--muted); font-size: .94rem; margin-top: 3px; }

/* Testimonials */
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.quote-card .mark { font-family: var(--display); font-size: 3rem; color: var(--gold); line-height: .6; }
.quote-card p { font-size: 1.02rem; margin: 12px 0 16px; }
.quote-card .who { font-weight: 600; font-size: .88rem; color: var(--plum); }
.illus-tag { display: inline-block; background: var(--gold-soft); color: var(--gold-ink); border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: 2px 10px; text-transform: uppercase; margin-left: 8px; }

/* Forms */
.form-card { max-width: 720px; margin: 0 auto; }
.field { display: block; margin-bottom: 20px; }
.field span { display: block; font-weight: 600; font-size: .87rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; font-family: var(--body); font-size: .95rem; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--plum); outline: none; }
.field-hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; margin-bottom: 20px; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--plum); }

/* Pricing */
.plan-card { text-align: center; position: relative; }
.plan-card.featured { border: 2px solid var(--gold); }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #fff; border-radius: 999px; font-size: .7rem; font-weight: 700; padding: 4px 15px; letter-spacing: .06em; }
.plan-price { font-family: var(--display); font-size: 2.3rem; margin: 12px 0 2px; }
.plan-price small { font-size: .95rem; color: var(--muted); font-family: var(--body); }
.plan-list { list-style: none; padding: 0; margin: 20px 0 26px; text-align: left; }
.plan-list li { padding: 9px 0 9px 28px; position: relative; font-size: .93rem; border-bottom: 1px dashed var(--line); }
.plan-list li::before { content: '✦'; position: absolute; left: 3px; color: var(--gold); }

/* Prose */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { margin: 36px 0 12px; }
.prose h3 { margin: 26px 0 8px; }
.prose p, .prose li { color: #453d4a; margin-bottom: 13px; }
.prose ul { padding-left: 22px; }
.notice { background: #FBF4E6; border: 1px solid #EAD8B0; color: #6f571f; border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; font-size: .92rem; }

/* Page hero */
.page-hero { background: var(--gold-soft); padding: 68px 0 56px; text-align: center; }
.page-hero p { color: var(--muted); max-width: 580px; margin: 14px auto 0; }

/* Article cards */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s; }
.article-card:hover { transform: translateY(-3px); }
.article-card a { color: inherit; display: block; }
.article-card .thumb { aspect-ratio: 16/10; background: var(--gold-soft); }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card .body { padding: 18px 20px 22px; }
.article-card h3 { font-size: 1.1rem; }
.article-card p { color: var(--muted); font-size: .9rem; margin-top: 6px; }

/* Footer */
.site-footer { background: var(--footer-bg); color: #C9C0CE; margin-top: 80px; padding: 62px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 44px; }
.footer-grid h4 { color: #fff; font-family: var(--body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-grid a { display: block; color: #C9C0CE; font-size: .9rem; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.logo-footer { color: #fff; }
.footer-tag { font-size: .88rem; margin-top: 12px; max-width: 300px; color: #B4A9BA; }
.footer-grid .agent-link { display: flex; align-items: center; gap: 8px; }
.footer-grid .agent-ico { width: 16px; height: 16px; flex: 0 0 auto; opacity: .9; }
.footer-grid .agent-link:hover .agent-ico { opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 22px; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.footer-note { color: #B4A9BA; }

/* Chat widget */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-fab { display: flex; align-items: center; gap: 9px; background: var(--plum); color: #fff; border: 0; border-radius: 999px; padding: 13px 22px; font-family: var(--body); font-weight: 600; font-size: .9rem; cursor: pointer; box-shadow: 0 8px 24px rgba(91,58,87,.4); }
.chat-fab:hover { background: var(--plum-dark); }
.chat-panel { width: min(340px, calc(100vw - 44px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 48px rgba(0,0,0,.18); padding: 20px; }
.chat-head { margin-bottom: 14px; }
.chat-head p { font-size: .8rem; color: var(--muted); margin-top: 3px; }

/* Admin */
.admin-shell { display: grid; grid-template-columns: 210px 1fr; gap: 34px; padding: 40px 0; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 96px; align-self: start; }
.admin-nav a { padding: 9px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: .92rem; }
.admin-nav a:hover, .admin-nav a.active { background: var(--gold-soft); color: var(--plum-dark); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin-bottom: 32px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat-card strong { font-family: var(--display); font-size: 2rem; display: block; color: var(--plum); }
.stat-card span { font-size: .82rem; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .89rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--gold-soft); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.pill { border-radius: 999px; padding: 3px 11px; font-size: .72rem; font-weight: 700; display: inline-block; }
.pill-new, .pill-open { background: #FaEEEA; color: #7c2b1a; }
.pill-contacted, .pill-matching, .pill-answered { background: var(--gold-soft); color: var(--gold-ink); }
.pill-matched { background: #EAF3EC; color: #24503A; }
.pill-closed { background: #EEE; color: #555; }
.pill-illus { background: var(--gold-soft); color: var(--gold-ink); }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form select, .inline-form input { padding: 6px 8px; border-radius: 8px; border: 1.5px solid var(--line); font-size: .82rem; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h3 { margin-bottom: 8px; color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; position: static; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .article-grid, .form-row { grid-template-columns: 1fr; }
  /* Mobile menu: always in the DOM, revealed with a slide-down animation */
  .main-nav { display: flex; position: absolute; top: 74px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; padding: 0 22px; border-bottom: 0; gap: 4px;
    max-height: 0; opacity: 0; overflow: hidden; transform: translateY(-8px);
    transition: max-height .34s ease, opacity .24s ease, transform .34s ease, padding .34s ease; pointer-events: none; box-shadow: var(--shadow); }
  .main-nav.open { max-height: 80vh; opacity: 1; transform: translateY(0); padding: 14px 22px 20px; border-bottom: 1px solid var(--line); pointer-events: auto; }
  .main-nav a { padding: 10px 4px; }
  .main-nav a.nav-cta { margin-top: 6px; text-align: center; }
  .nav-toggle { display: block; }
  .hero-nav { display: none; }
  .chat-fab span { display: none; }
  .chat-fab { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, html { transition: none !important; animation: none !important; scroll-behavior: auto; } }

/* ===================== Page-builder (public) ===================== */
.section-primary { background: var(--plum); color: #fff; }
.section-primary h1, .section-primary h2, .section-primary h3, .section-primary .builder-heading { color: #fff; }
.section-primary p, .section-primary li, .section-primary .builder-text { color: rgba(255,255,255,.92); }
.builder-section .builder-heading { margin-bottom: 12px; }
.builder-cols { display: grid; gap: 26px; align-items: start; }
.builder-cols.cols-1 { grid-template-columns: 1fr; }
.builder-cols.cols-2 { grid-template-columns: repeat(2, 1fr); }
.builder-cols.cols-3 { grid-template-columns: repeat(3, 1fr); }
.builder-cols.cols-4 { grid-template-columns: repeat(4, 1fr); }
.builder-col > * + * { margin-top: 16px; }
.builder-text p { margin-bottom: 12px; }
.builder-image { margin: 0; }
.builder-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.builder-image figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.builder-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.builder-gallery figure { margin: 0; }
.builder-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; }
.builder-gallery figcaption { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* 4 columns on desktop fold to 2 on mobile; 2 fold to 1 */
@media (max-width: 640px) {
  .builder-cols.cols-3, .builder-cols.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .builder-cols.cols-2 { grid-template-columns: 1fr; }
  .builder-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ===================== Page-builder (admin editor) ===================== */
.builder-edit-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.builder-edit-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.builder-edit-cols { display: grid; gap: 12px; }
.builder-edit-cols.cols-1 { grid-template-columns: 1fr; }
.builder-edit-cols.cols-2 { grid-template-columns: repeat(2, 1fr); }
.builder-edit-cols.cols-3 { grid-template-columns: repeat(3, 1fr); }
.builder-edit-cols.cols-4 { grid-template-columns: repeat(4, 1fr); }
.builder-edit-col { background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; padding: 10px; min-height: 80px; }
.builder-col-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.builder-block { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 10px; margin-bottom: 10px; }
.builder-block-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.builder-block textarea, .builder-block input[type=text], .builder-block select { font-size: .84rem; padding: 7px 9px; border: 1.5px solid var(--line); border-radius: 7px; font-family: var(--body); }
.builder-add-block { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.builder-add-block select { font-size: .8rem; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 7px; }
@media (max-width: 700px) {
  .builder-edit-cols.cols-2, .builder-edit-cols.cols-3, .builder-edit-cols.cols-4 { grid-template-columns: 1fr; }
}

/* Media library */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.media-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.media-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 7px; margin-bottom: 6px; }
.media-path { font-size: .68rem; color: var(--muted); word-break: break-all; margin-bottom: 6px; }
.media-path code { font-size: .68rem; }

/* ---- Homepage: added sections ---- */
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.stat-row { display: flex; gap: 26px; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--plum); }
.stat span { font-size: .84rem; color: var(--muted); }
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-strip img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 700px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- Members: cards, grid, profile ---- */
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.member-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(42,34,48,.14); color: inherit; }
.member-photo { width: 100%; aspect-ratio: 4/5; background-size: cover; background-position: center; background-color: var(--gold-soft); }
.member-photo-empty { display: grid; place-items: center; }
.member-photo-empty::after { content: '♥'; font-size: 2rem; color: var(--plum); opacity: .5; }
.member-meta { padding: 14px 16px; }
.member-meta strong { display: block; font-family: var(--display); font-size: 1.15rem; }
.member-meta span { font-size: .86rem; color: var(--muted); }
@media (max-width: 760px) { .member-grid { grid-template-columns: repeat(2, 1fr); } }

.back-link { display: inline-block; color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.profile-head { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
.profile-photo { width: 100%; aspect-ratio: 4/5; background-size: cover; background-position: center; border-radius: var(--radius); box-shadow: var(--shadow); background-color: var(--gold-soft); }
.profile-city { color: var(--plum); font-weight: 600; margin: 4px 0 14px; }
.profile-bio { white-space: pre-wrap; margin-bottom: 20px; }
@media (max-width: 720px) { .profile-head { grid-template-columns: 1fr; } .profile-photo { max-width: 320px; } }

.pill-new { background: var(--gold-soft); color: var(--gold-ink); }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .9rem; }
.alert-error { background: #FDE7EA; color: #9B1C31; border: 1px solid #F5C2C7; }

/* ---- Member galleries (public profile + account) ---- */
.gallery-title { margin: 30px 0 12px; font-family: var(--display); }
.video-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
@media (max-width: 640px) { .video-gallery { grid-template-columns: 1fr; } }

/* ---- Reviews ---- */
.stars { color: var(--plum); letter-spacing: 2px; font-size: .95rem; }
.stars-off { color: var(--line); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.review-card blockquote { margin: 10px 0 16px; font-size: 1rem; line-height: 1.6; }
.review-card figcaption { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background-size: cover; background-position: center; display: inline-block; flex: 0 0 auto; }
@media (max-width: 820px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---- Dashboard user table ---- */
.user-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.user-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.user-row:last-child { border-bottom: 0; }
.user-id { display: flex; align-items: center; gap: 12px; }
.user-id img { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; }
.user-avatar-empty { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--plum); }
.user-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ---- Site Content page hub ---- */
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.page-card { display: block; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.page-card:hover { border-color: var(--plum); box-shadow: var(--shadow); }
.page-card strong { display: block; }
.page-card span { display: block; margin-top: 4px; font-size: .8rem; color: var(--muted); }

/* ---- Responsive Google Maps embed ---- */
.map-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .map-embed { aspect-ratio: 4 / 3; min-height: 260px; } }

/* ---- Builder forms ---- */
.builder-form { max-width: 560px; margin: 0 auto; }
.builder-form .field, .builder-form .check { margin-bottom: 12px; }
.req { color: var(--plum); }
