/* Bridal Discovery shared design foundation.
 * v0.9.9-alpha.1 — Surface-Isolated CSS Architecture & Common Design Foundation
 * Loaded by bridaldiscovery.com, app, salon and admin surfaces.
 */

:root {
  color-scheme: light;
  --color-canvas: #f8f5f1;
  --color-surface: #fff;
  --color-surface-soft: #fcfaf8;
  --color-blush-soft: #f4e7e8;
  --color-rose-muted: #d8b7bc;
  --color-plum-900: #3d2030;
  --color-plum-800: #4a2638;
  --color-plum-700: #633048;
  --color-plum-600: #7a3655;
  --color-charcoal: #282327;
  --color-text: #382f35;
  --color-text-muted: #6e666b;
  --color-border: #e5ddde;
  --color-border-strong: #d5c9cc;
  --color-success: #35705a;
  --color-warning: #9a6128;
  --color-danger: #a4434b;
  --color-info: #526c8a;
  --color-gold-muted: #b58a4a;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
    Palatino, Georgia, serif;
  --font-interface: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --radius-small: 0.5rem;
  --radius-control: 0.75rem;
  --radius-card: 1.125rem;
  --radius-feature: 1.5rem;
  --radius-pill: 999px;
  --shadow-small: 0 1px 2px rgb(61 32 48 / 6%);
  --shadow-card: 0 1rem 3rem rgb(61 32 48 / 8%);
  --control-height: 3.125rem;
  --sidebar-width: 17.5rem;
  --content-width: 82rem;
  --form-width: 54rem;
  --transition: 160ms ease;
  --focus-ring: 0 0 0 3px rgb(122 54 85 / 22%);
  --z-sidebar: 30;
  --z-sticky: 20;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--color-canvas);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-text);
  font-family: var(--font-interface);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--color-plum-700);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-plum-900);
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-block: 0;
  color: var(--color-charcoal);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 3.8rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: var(--space-3);
  inset-inline-start: var(--space-3);
  translate: 0 -200%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-control);
  background: var(--color-plum-900);
  color: white;
  font-weight: 750;
}

.skip-link:focus {
  translate: 0;
}

:focus-visible {
  outline: 2px solid var(--color-plum-700);
  outline-offset: 3px;
}

.eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--color-plum-600);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  max-width: 46rem;
  margin: var(--space-4) 0 0;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
}

.microcopy,
.help-text {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

/* Buttons and actions */
.button,
button[type="submit"] {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--color-plum-800);
  border-radius: var(--radius-control);
  background: var(--color-plum-800);
  color: white;
  cursor: pointer;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  transition: translate var(--transition), background var(--transition),
    border-color var(--transition), box-shadow var(--transition);
}

.button:hover,
button[type="submit"]:hover {
  border-color: var(--color-plum-900);
  background: var(--color-plum-900);
  color: white;
  translate: 0 -1px;
}

.button:active,
button[type="submit"]:active {
  translate: 0;
}

.button:focus-visible,
button[type="submit"]:focus-visible {
  box-shadow: var(--focus-ring);
}

.button--secondary {
  border-color: var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-plum-800);
}

.button--secondary:hover {
  border-color: var(--color-plum-700);
  background: var(--color-blush-soft);
  color: var(--color-plum-900);
}

.button--tertiary {
  border-color: transparent;
  background: transparent;
  color: var(--color-plum-700);
}

.button--danger {
  border-color: rgb(164 67 75 / 30%);
  background: #fff7f7;
  color: var(--color-danger);
}

.button--danger:hover {
  border-color: var(--color-danger);
  background: var(--color-danger);
}

.button--sidebar {
  width: 100%;
  justify-content: space-between;
  border-color: rgb(255 255 255 / 15%);
  background: transparent;
  color: rgb(255 255 255 / 76%);
  font-size: 0.82rem;
}

.button--sidebar:hover {
  border-color: rgb(255 255 255 / 30%);
  background: rgb(255 255 255 / 8%);
}

.button[aria-disabled="true"],
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  translate: 0;
}



@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Shared narrow content shell used by utility pages on all surfaces. */
.shell {
  width: min(44rem, calc(100% - 2rem));
  margin-inline: auto;
  padding-block: clamp(4rem, 12vw, 8rem);
}.shell > h1 {
  max-width: 13ch;
}.shell > p:not(.eyebrow) {
  max-width: 38rem;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Privacy consent and analytics preferences — v0.9.9-alpha.6.2.8.1 */
.footer-privacy-button {
  display: block;
  width: fit-content;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
}
.footer-privacy-button:hover,
.footer-privacy-button:focus-visible { text-decoration: underline; }

.privacy-consent[hidden],
.privacy-preferences[hidden] { display: none !important; }

.privacy-consent {
  position: fixed;
  z-index: 10000;
  inset: auto .75rem .75rem .75rem;
  pointer-events: none;
}
.privacy-consent__banner {
  width: min(56rem, 100%);
  margin-inline: auto;
  padding: .8rem .95rem;
  border: 1px solid rgb(73 39 70 / 18%);
  border-radius: .85rem;
  background: #fff;
  box-shadow: 0 14px 42px rgb(39 21 37 / 18%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .7rem 1rem;
  align-items: center;
  pointer-events: auto;
}
.privacy-consent__copy strong,
.privacy-preferences__dialog h2 { color: var(--color-plum-900); }
.privacy-consent__copy strong { display: block; font-size: .94rem; line-height: 1.25; }
.privacy-consent__copy p { margin: .18rem 0 0; color: var(--color-text-muted); font-size: .82rem; line-height: 1.4; }
.privacy-consent__copy a { color: var(--color-plum-700); font-weight: 700; white-space: nowrap; }
.privacy-consent__actions {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: .45rem;
  align-items: center;
}
.privacy-preferences__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.privacy-button {
  min-height: 2.5rem;
  padding: .5rem .78rem;
  border-radius: var(--radius-control);
  border: 1px solid var(--color-plum-800);
  cursor: pointer;
  font: inherit;
  font-size: .84rem;
  font-weight: 760;
  line-height: 1.15;
  white-space: nowrap;
}
.privacy-button--primary { background: var(--color-plum-800); color: #fff; }
.privacy-button--secondary { background: #fff; color: var(--color-plum-800); }
.privacy-button--text { border-color: transparent; background: transparent; color: var(--color-plum-700); padding-inline: .55rem; }
.privacy-button:focus-visible { box-shadow: var(--focus-ring); outline: 0; }

.privacy-preferences {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: grid;
  place-items: center;
  padding: .75rem;
}
.privacy-preferences__backdrop { position: absolute; inset: 0; background: rgb(28 16 27 / 62%); }
.privacy-preferences__dialog {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
  padding: 1.15rem 1.2rem;
  border-radius: .95rem;
  background: #fff;
  box-shadow: 0 20px 60px rgb(16 8 15 / 28%);
  outline: 0;
}
.privacy-preferences__dialog .eyebrow { margin: 0 0 .2rem; }
.privacy-preferences__dialog h2 { margin: 0 2.5rem .45rem 0; font-size: clamp(1.25rem, 3vw, 1.55rem); line-height: 1.18; }
.privacy-preferences__dialog > p:not(.eyebrow) { margin: 0; color: var(--color-text-muted); font-size: .88rem; line-height: 1.45; }
.privacy-preferences__close {
  position: absolute;
  top: .65rem;
  right: .65rem;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-blush-soft);
  color: var(--color-plum-900);
  cursor: pointer;
  font-size: 1.25rem;
}
.privacy-preferences__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: .65rem;
  padding: .72rem .8rem;
  border: 1px solid var(--color-border);
  border-radius: .7rem;
  background: #fff;
}
.privacy-preferences__category div { display: grid; gap: .12rem; }
.privacy-preferences__category strong { font-size: .92rem; }
.privacy-preferences__category small { color: var(--color-text-muted); font-size: .8rem; line-height: 1.35; }
.privacy-preferences__category input { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; accent-color: var(--color-plum-800); }
.privacy-preferences__always { color: var(--color-plum-700); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.privacy-preferences__actions { margin-top: .8rem; }
body.privacy-preferences-open { overflow: hidden; }

@media (max-width: 900px) {
  .privacy-consent__banner { width: min(48rem, 100%); }
  .privacy-consent__actions { grid-template-columns: repeat(2, auto); }
  .privacy-consent__actions .privacy-button--text { grid-column: 1 / -1; padding-block: .2rem; min-height: 2rem; }
}

@media (max-width: 600px) {
  .privacy-consent { inset: auto .45rem .45rem .45rem; }
  .privacy-consent__banner {
    grid-template-columns: 1fr;
    gap: .55rem;
    padding: .72rem .78rem;
    border-radius: .75rem;
  }
  .privacy-consent__copy strong { font-size: .9rem; }
  .privacy-consent__copy p { font-size: .79rem; line-height: 1.35; }
  .privacy-consent__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .privacy-consent__actions .privacy-button { min-height: 2.75rem; padding: .48rem .55rem; white-space: normal; }
  .privacy-consent__actions .privacy-button--text { grid-column: 1 / -1; min-height: 2.25rem; padding-block: .2rem; }
  .privacy-preferences { padding: .45rem; align-items: end; }
  .privacy-preferences__dialog {
    width: 100%;
    max-height: calc(100vh - .9rem);
    padding: 1rem .9rem .9rem;
    border-radius: .9rem;
  }
  .privacy-preferences__dialog h2 { font-size: 1.28rem; }
  .privacy-preferences__category { align-items: flex-start; padding: .68rem .7rem; }
  .privacy-preferences__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .privacy-preferences__actions .privacy-button { min-height: 2.75rem; padding-inline: .5rem; white-space: normal; }
}
.privacy-floating-button {
  position: fixed;
  z-index: 9990;
  right: 1rem;
  bottom: 1rem;
  padding: .55rem .8rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--color-plum-800);
  box-shadow: 0 6px 22px rgb(39 21 37 / 12%);
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 760;
}
.privacy-consent:not([hidden]) ~ .privacy-floating-button { display: none; }
