/* ═══════════════════════════════════════
   Shared Layout CSS (Header & Footer)
   ═══════════════════════════════════════ */

/* --- Design Tokens --- */
:root {
  --paper: #FBFBF9;
  --graphite: #222622;
  --graphite-60: rgba(34, 38, 34, 0.6);
  --graphite-40: rgba(34, 38, 34, 0.4);
  --graphite-20: rgba(34, 38, 34, 0.2);
  --graphite-15: rgba(34, 38, 34, 0.15);
  --graphite-12: rgba(34, 38, 34, 0.12);
  --graphite-08: rgba(34, 38, 34, 0.08);
  --graphite-04: rgba(34, 38, 34, 0.04);
  --sage: #E2ECE4;
  --peach: #F9EFE6;
  --gold: #C8A96E;
  --olive: #6B7C5E;
  --warm-gray: #A8A8A0;
  --cream: #F5F0E8;
  --midnight: #1A1C1A;
  --midnight-90: rgba(26, 28, 26, 0.92);

  --serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --nav-h: 60px;
  --pad: 24px;
  --pad-sm: 16px;
  --pad-lg: 40px;
  --radius: 2px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.5s;
  --duration-fast: 0.3s;
}

/* --- Essential Resets for Header & Footer --- */
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
* { box-sizing: border-box; }

/* --- Header (.glass-nav) --- */
.glass-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  /* Initially transparent — overlays the VOGUE hero image */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s ease,
              background 0.4s ease,
              border-color 0.4s ease,
              backdrop-filter 0.4s ease;
}

/* When scrolled past hero — standard glass effect */
.glass-nav.scrolled {
  background: rgba(251, 251, 249, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--graphite-08);
  box-shadow: 0 1px 20px rgba(34, 38, 34, 0.04);
}

.lang-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  padding-bottom: 4px;
}

.lang-btn {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(251, 251, 249, 0.55);
  padding: 4px 4px;
  transition: color 0.4s var(--ease-out);
  position: relative;
}

.lang-btn:hover {
  color: rgba(251, 251, 249, 0.8);
}

.lang-btn.active {
  color: var(--paper);
}

/* Scrolled state — dark text */
.glass-nav.scrolled .lang-btn {
  color: var(--warm-gray);
}

.glass-nav.scrolled .lang-btn:hover {
  color: var(--graphite-60);
}

.glass-nav.scrolled .lang-btn.active {
  color: var(--graphite);
}

.lang-dot {
  font-size: 14px;
  color: rgba(251, 251, 249, 0.25);
  user-select: none;
  line-height: 1;
  transition: color 0.4s ease;
}

.glass-nav.scrolled .lang-dot {
  color: var(--graphite-15);
}

.lang-underline {
  position: absolute;
  bottom: 0;
  height: 1.5px;
  background: var(--gold);
  border-radius: 1px;
  transition: left 0.45s var(--ease-out), width 0.45s var(--ease-out);
  will-change: left, width;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--paper);
  transition: color 0.4s ease;
}

.glass-nav.scrolled .nav-logo {
  color: var(--graphite);
}

/* --- Footer (.editorial-footer) --- */
.editorial-footer {
  padding: 52px var(--pad) 40px;
  text-align: center;
  position: relative;
  background: var(--paper);
  color: var(--graphite);
}

.editorial-footer::before {
  content: none;
}

/* Masthead Group */
.footer-masthead {
  margin-bottom: 22px;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--graphite);
  margin-bottom: 6px;
  display: block;
}

.footer-location {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--graphite-40);
  margin-bottom: 10px;
}

.footer-tagline {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--graphite-60);
  line-height: 155%;
  max-width: 280px;
  margin: 0 auto;
}

/* Collaborations */
.footer-collaborations {
  margin-bottom: 0;
}

.footer-collaborations__label {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--graphite-40);
  margin-bottom: 8px;
}

.footer-collaborations__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 8px;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 145%;
}

.footer-collab-link {
  color: rgba(34, 38, 34, 0.72);
  transition: color var(--duration-fast) ease;
  font-weight: 400;
  text-decoration: none;
}

.footer-collab-link:hover,
.footer-collab-link:active {
  color: var(--graphite);
}

.footer-collab-sep {
  color: var(--graphite-20);
  user-select: none;
  font-size: 10px;
}

/* Subtle Divider (Printer's Mark) */
.footer-divider {
  width: 36px;
  height: 1px;
  background: var(--graphite-12);
  margin: 20px auto;
}

/* Legal Navigation (Microtype) */
.footer-legal {
  margin-bottom: 18px;
}

.footer-legal__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal__links li {
  margin-bottom: 5px;
}

.footer-legal__links a {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--graphite-40);
  transition: color var(--duration-fast) ease;
  display: inline-block;
  text-decoration: none;
  line-height: 140%;
}

.footer-legal__links a:hover,
.footer-legal__links a:active {
  color: var(--graphite);
}

/* Imprint */
.footer-imprint {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--graphite-40);
  margin: 0;
}

/* Canonical photographic footer, shared by every <morn-footer> consumer. */
morn-footer {
  display: block;
}

morn-footer .editorial-footer {
  background: linear-gradient(rgba(16, 23, 20, 0.48), rgba(16, 23, 20, 0.72)),
              url('../Hero_And_Meta/footer-background.webp') center 30% / cover no-repeat;
  color: #FBFBF9;
  padding: clamp(64px, 8vw, 112px) var(--pad) max(40px, env(safe-area-inset-bottom));
}

morn-footer .footer-logo,
morn-footer .footer-collab-link,
morn-footer .footer-legal__links a {
  color: #FBFBF9;
}

morn-footer .footer-location,
morn-footer .footer-tagline,
morn-footer .footer-collaborations__label,
morn-footer .footer-imprint,
morn-footer .footer-collab-sep {
  color: rgba(251, 251, 249, 0.8);
}

morn-footer .footer-divider {
  background: rgba(251, 251, 249, 0.3);
}

morn-footer .footer-collab-link:hover,
morn-footer .footer-legal__links a:hover {
  color: #E8D3A7;
}

morn-footer a:focus-visible {
  outline: 2px solid #E8D3A7;
  outline-offset: 4px;
}

morn-footer[data-footer-reveal] {
  position: relative;
  height: var(--footer-height);
  z-index: 0;
}

morn-footer[data-footer-reveal] .editorial-footer {
  position: fixed;
  bottom: 0;
  left: var(--footer-left);
  width: var(--footer-width);
}

.morn-footer-layout {
  isolation: isolate;
}

main.morn-footer-cover {
  position: relative;
  z-index: 1;
  background-color: var(--footer-cover-color, var(--paper));
}

@media print {
  morn-footer[data-footer-reveal] {
    position: relative;
    height: auto;
    margin-top: 0;
  }

  morn-footer[data-footer-reveal] .editorial-footer {
    position: relative;
    bottom: auto;
    left: auto;
    width: auto;
  }
}

/* --- Global Concierge --- */
morn-concierge {
  display: contents;
}

body.morn-concierge-open {
  overflow: hidden;
}

morn-concierge .concierge-widget {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  color: var(--paper);
  background: var(--midnight);
  border: 1px solid var(--gold);
  border-radius: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(200, 169, 110, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--sans);
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
}

morn-concierge .concierge-widget:hover {
  transform: translateY(-2px);
  border-color: #E8D3A7;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 16px rgba(200, 169, 110, 0.3);
}

morn-concierge .concierge-widget:focus-visible,
morn-concierge .concierge-modal__close:focus-visible,
morn-concierge .concierge-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

morn-concierge .concierge-widget__status {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: morn-concierge-pulse 2.2s infinite ease-in-out;
}

@keyframes morn-concierge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

morn-concierge .concierge-widget__label {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

morn-concierge .concierge-widget__brand {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

morn-concierge .concierge-widget__caption {
  margin-top: 2px;
  color: rgba(251, 251, 249, 0.75);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

morn-concierge .concierge-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) ease;
}

morn-concierge .concierge-modal.active {
  opacity: 1;
  pointer-events: auto;
}

morn-concierge .concierge-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(26, 28, 26, 0.56);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

morn-concierge .concierge-modal__sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--paper);
  background: var(--midnight);
  border: 1px solid rgba(200, 169, 110, 0.3);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease-out);
}

morn-concierge .concierge-modal.active .concierge-modal__sheet {
  transform: translateY(0);
}

morn-concierge .concierge-modal__handle {
  width: 36px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: rgba(200, 169, 110, 0.35);
}

morn-concierge .concierge-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px var(--pad) 8px;
}

morn-concierge .concierge-modal__eyebrow {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

morn-concierge .concierge-modal__close {
  padding: 4px;
  color: var(--paper);
  font-size: 20px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity var(--duration-fast) ease;
}

morn-concierge .concierge-modal__close:hover {
  opacity: 1;
}

morn-concierge .concierge-modal__body {
  padding: 8px var(--pad) 32px;
}

morn-concierge .concierge-card {
  padding: 8px 4px 20px;
}

morn-concierge .concierge-card__profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(200, 169, 110, 0.2);
}

morn-concierge .concierge-card__avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: #141414;
  object-fit: cover;
}

morn-concierge .concierge-card__meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

morn-concierge .concierge-card__title {
  margin: 0 0 4px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
}

morn-concierge .concierge-card__role {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

morn-concierge .concierge-card__bio {
  margin-bottom: 22px;
  color: rgba(251, 251, 249, 0.88);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
}

morn-concierge .concierge-card__bio p {
  margin: 0 0 10px;
}

morn-concierge .concierge-card__list {
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

morn-concierge .concierge-card__list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 24px;
  font-size: 12.5px;
  line-height: 1.45;
}

morn-concierge .concierge-card__list .icon {
  position: absolute;
  top: 0;
  left: 0;
}

morn-concierge .concierge-card__note {
  margin-top: 14px;
  color: rgba(251, 251, 249, 0.7);
  font-size: 12px;
  line-height: 1.45;
}

morn-concierge .concierge-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

morn-concierge .concierge-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 16px;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

morn-concierge .concierge-btn--wa {
  color: #0A1C0A;
  background: #25D366;
}

morn-concierge .concierge-btn--wa:hover {
  background: #20BA5A;
  transform: translateY(-1px);
}

morn-concierge .concierge-btn--tg {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 169, 110, 0.4);
}

morn-concierge .concierge-btn--tg:hover {
  background: rgba(200, 169, 110, 0.15);
  border-color: var(--gold);
  transform: translateY(-1px);
}

morn-concierge .concierge-card__response-time {
  margin-top: 14px;
  color: rgba(251, 251, 249, 0.5);
  font-family: var(--sans);
  font-size: 11px;
  font-style: italic;
  text-align: center;
}

/* Keep approximate USD references legible across all canonical product pages. */
body.morn-product-page[data-sector] .price-tag__amount > small:first-of-type:not(:last-of-type) {
  font-size: 21px !important;
}

body.morn-product-page[data-sector] .pricing-tier-card__approx {
  font-size: 18px !important;
}

@media (max-width: 440px) {
  morn-concierge .concierge-widget {
    right: 16px;
    bottom: max(18px, env(safe-area-inset-bottom));
  }

  morn-concierge .concierge-modal__sheet {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (prefers-reduced-motion: reduce) {
  morn-concierge .concierge-widget__status {
    animation: none;
  }

  morn-concierge .concierge-widget,
  morn-concierge .concierge-modal,
  morn-concierge .concierge-modal__sheet {
    transition: none;
  }
}
