/* ==========================================================================
   L'Chaim — components
   --------------------------------------------------------------------------
   Hand-authored; no build step. Loaded AFTER the reset/tokens (lc-base.css)
   and, during the migration, after the outgoing generated utility sheet
   (app.css) so component rules keep winning over leftover utilities.

   Sections
     1. Shims (migration only)
     2. Icons
     3. Site chrome — header, nav, footer
     4. Components — buttons, modal shell, elevation
   ========================================================================== */

/* MIGRATION SHIM — still referenced by pages not yet converted to semantic
   classes. Delete once assets/app.css is gone. */
.font-serif { font-family: var(--font-serif) !important; }

/* Inline SVG icons (includes/icons.php): inline-block like the font glyphs
   they replaced, optically aligned with the surrounding text. */
.lc-icon { display: inline-block; vertical-align: -.125em; flex-shrink: 0; }

@keyframes lc-spin { to { transform: rotate(360deg); } }
.lc-spin { animation: lc-spin 2s linear infinite; }

/* Icon tone modifiers, passed to icon() as its class argument. */
.icon-accent { color: var(--gold-500); }
.icon-dim    { opacity: 0.8; }

/* ==========================================================================
   4. Site chrome
   ========================================================================== */

/* --- Header shell ------------------------------------------------------- */

.glass-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 249, .9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(169, 146, 104, .15);
}

.nav-bar {
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--onyx-900);
  letter-spacing: -0.025em;
}

/* --- Desktop navigation -------------------------------------------------- */

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links-group {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--onyx-500);
  text-decoration: none;
  transition: color .3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--gold-500);
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: left;
}

.nav-link:hover,
.nav-link.active { color: var(--onyx-900); }

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-dot {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(169, 146, 104, .3);
}

.nav-divider {
  width: 1px;
  height: 1.5rem;
  background: var(--gold-200);
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

/* Pill actions in the header. Display is intentionally left to the .btn-*
   base classes below so the two stay in sync. */
.nav-btn {
  border-radius: 0.25rem;
  padding: 0.75rem 1.25rem;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-items: center;
  gap: 0.5rem;
}

.nav-btn--cta { padding-left: 1.5rem; padding-right: 1.5rem; }

.nav-badge {
  background: var(--gold-500);
  color: var(--white);
  border-radius: 9999px;
  min-width: 18px;
  height: 18px;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* --- Mobile navigation --------------------------------------------------- */

.nav-toggle { color: var(--onyx-900); }

.nav-toggle:focus { outline: 2px solid transparent; outline-offset: 2px; }

.nav-toggle-icon { font-size: 1.5rem; line-height: 2rem; }

.nav-mobile {
  border-color: var(--gold-100);
  border-top-width: 1px;
  background: var(--white);
}

.nav-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
}

.nav-mobile-link {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--onyx-600);
  border-color: var(--gold-100);
  border-bottom-width: 1px;
  transition: var(--transition-base);
}

.nav-mobile-link:hover { color: var(--onyx-900); }

.nav-mobile-link.is-active { color: var(--gold-600); }

.nav-mobile-link.is-active:hover { color: var(--gold-600); }

.nav-mobile-btn {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  border-radius: 0.25rem;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-mobile-btn--cta { margin-top: 0.75rem; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--onyx-900);
  border-color: var(--onyx-800);
  border-top-width: 1px;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-inner {
  max-width: var(--footer-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-name {
  font-size: 1.5rem;
  line-height: 2rem;
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--gold-50);
}

.footer-brand-tagline {
  color: var(--onyx-400);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.625;
  margin-top: 1rem;
}

.footer-heading {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--gold-400);
}

.footer-list {
  font-size: 13px;
  font-weight: 300;
  color: var(--onyx-300);
}

.footer-list > li + li { margin-top: 0.75rem; }

.footer-list a { transition: var(--transition-base); }

.footer-list a:hover { color: var(--gold-200); }

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--onyx-400);
  font-size: 1.125rem;
  line-height: 1.75rem;
  transition: var(--transition-base);
}

.footer-social a:hover { color: var(--gold-300); }

.footer-bottom {
  padding-top: 2rem;
  border-color: var(--onyx-800);
  border-top-width: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-legal {
  font-size: 11px;
  color: var(--onyx-500);
  letter-spacing: 0.025em;
}

.footer-sep {
  display: none;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  color: var(--onyx-600);
}

.footer-heart {
  color: var(--gold-500);
  margin-left: 0.125rem;
  margin-right: 0.125rem;
}

@media (min-width: 768px) {
  .footer-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: span 1 / span 1; }
  .footer-bottom { flex-direction: row; }
  .footer-sep { display: inline; }
}

/* ==========================================================================
   5. Components
   ========================================================================== */

/* --- Buttons ------------------------------------------------------------- */

.btn-dark {
  background: var(--onyx-900);
  color: var(--gold-200);
  border: 1px solid var(--onyx-900);
  transition: all .3s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

.btn-dark:hover {
  background: var(--onyx-800);
  border-color: var(--onyx-800);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(23, 22, 20, .15);
}

.btn-outline {
  background: transparent;
  color: var(--onyx-900);
  border: 1px solid rgba(169, 146, 104, .4);
  transition: all .3s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--onyx-900);
  background: rgba(23, 22, 20, .03);
}

/* Light "pill" button used for the favourites-enquiry action in the nav. */
.btn-light {
  background: var(--gold-100);
  color: var(--gold-700);
  border: 1px solid rgba(169, 146, 104, .35);
  transition: all .25s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

.btn-light:hover {
  background: var(--gold-200);
  border-color: rgba(169, 146, 104, .55);
  color: var(--onyx-900);
}

/* --- Modal shell --------------------------------------------------------- */

.modal-overlay {
  background: rgba(23, 22, 20, .45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

select option { color: var(--onyx-900); }

/* --- Elevation helpers --------------------------------------------------- */

.shadow-luxury       { box-shadow: var(--shadow-luxury); }
.shadow-luxury-hover { box-shadow: var(--shadow-luxury-hover); }
.shadow-gold-glow    { box-shadow: var(--shadow-gold-glow); }
