/* Delad sidfot + Instagram (och nyhetsbrev när rutan finns).
   Laddas efter styles.css, och efter startsida.css på startsidan.
   Startsidan behåller sina mer specifika .page-home-regler. */

/* Typografi för Instagram- och ev. nyhetsbrevsrubriker, samma som på startsidan */
.ig__label {
  margin: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #b08d57;
}
.ig__title,
.nl .nl__title {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 600 !important;
}
.ig__title {
  margin: .55rem 0 0;
  text-align: center;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  color: #2a1f18;
  letter-spacing: -.01em;
  line-height: 1.08;
}

.ig { background: #f6f0e8; padding: clamp(3rem, 6vw, 4.8rem) var(--pad) clamp(3.4rem, 7vw, 5.2rem); }
.ig__handle { margin: .45rem 0 0; text-align: center; font-size: 1.05rem; color: #6b5e55; }
.ig__grid {
  list-style: none; margin: 2rem auto 0; padding: 0;
  max-width: var(--max);
  display: grid; grid-template-columns: 1fr 1fr; gap: .7rem;
}
@media (min-width: 800px) {
  .ig__grid { grid-template-columns: repeat(4, 1fr); gap: .9rem; }
}
.ig__grid img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.15; object-fit: cover; }
.ig__cta { display: flex; justify-content: center; margin-top: 1.8rem; }
.ig__btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #3a2a1f; color: #f7f0e6; border: 0;
  min-height: 44px; padding: 0 1.3rem;
  font-family: var(--sans); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
}
.ig__btn:hover { background: #b08d57; color: #fff; }
.ig__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.nl { background: #faf3ec; color: var(--text); }
.nl__inner { display: grid; max-width: var(--max); margin: 0 auto; }
.nl__media { min-height: 260px; overflow: hidden; }
.nl__media img { display: block; width: 100%; height: 100%; max-height: 360px; object-fit: cover; object-position: 50% 45%; }
.nl__body { padding: clamp(2.4rem, 7vw, 4rem) var(--pad); min-width: 0; }
.nl__label { margin: 0; font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--text); }
.nl__rule { display: block; width: 124px; height: 1px; background: #b08a5a; margin: 1rem 0 1.4rem; }
.nl .nl__title { margin: 0 0 1rem; font-family: var(--serif); font-weight: 400 !important; text-transform: none; letter-spacing: 0; line-height: 1.08; font-size: clamp(2rem, 6vw, 2.9rem); color: var(--text); }
.nl__text { margin: 0 0 2rem; max-width: 30rem; font-family: var(--sans); font-size: 1rem; line-height: 1.6; color: var(--text); }
.nl__form { max-width: 25rem; }
.nl__field { display: block; margin: 0 0 .9rem; }
.nl__field input {
  width: 100%; min-height: 48px; padding: 0 .9rem; border: 1px solid #241a14; border-radius: 4px; background: #fff;
  font-family: var(--sans); font-size: 1rem; color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s;
}
.nl__field input::placeholder { color: #8b7f75; }
.nl__field input:focus { border-color: #b08a5a; box-shadow: 0 0 0 3px rgba(176, 138, 90, .18); }
.nl__consent { display: flex; gap: .75rem; align-items: flex-start; margin: 1.1rem 0 1.4rem; font-family: var(--sans); font-size: .82rem; line-height: 1.55; color: var(--text); cursor: pointer; }
.nl__consent input { flex: none; width: 18px; height: 18px; margin: .15rem 0 0; accent-color: #241a14; }
.nl__consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.nl__consent a:hover { color: #b08a5a; }
.nl__actions { display: flex; justify-content: flex-end; }
.nl__btn {
  min-width: 11rem; min-height: 46px; padding: 0 1.8rem; border: 1px solid var(--ink, #0e0b09); background: var(--ink, #0e0b09); color: #fff; cursor: pointer;
  font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; transition: background .25s, border-color .25s;
}
.nl__btn:hover, .nl__btn:focus-visible { background: #b08a5a; border-color: #b08a5a; }
.nl__error { margin: -.6rem 0 1rem; font-size: .82rem; color: #8a2f1f; }
.nl__thanks { margin: 1.2rem 0 0; font-family: var(--serif); font-size: 1.25rem; color: var(--text); }
.nl__error[hidden], .nl__thanks[hidden] { display: none; }
@media (min-width: 900px) {
  .nl__inner { grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); min-height: clamp(520px, 42vw, 640px); }
  .nl__media img { max-height: none; height: 100%; }
  .nl__body { align-self: center; padding: clamp(3rem, 5vw, 5rem) var(--pad) clamp(3rem, 5vw, 5rem) clamp(2.5rem, 5vw, 5rem); }
}
.nl { padding-bottom: clamp(4.5rem, 8vw, 6.5rem); }


/* Slutliga nyhetsbrevsregler (samma som på startsidan) */
.nl { background: #fbf7f2; padding-bottom: clamp(4.5rem, 8vw, 6.5rem); }
.nl__label { letter-spacing: .22em; color: #6b5e55; }
.nl .nl__title {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 600 !important;
}

/* ----- Sidfot, samma som startsidan ----- */
.footer-main { position: relative; z-index: 1; }
.site-footer::after {
  content: "Jazzglam";
  left: var(--pad);
  right: auto;
  bottom: 4.2rem;
  z-index: 0;
  color: rgba(180,150,120,.10);
  font-size: clamp(4.5rem, 18vw, 11rem);
  line-height: .8;
}
.footer-cols, .footer-col { position: relative; z-index: 1; }
.footer-col h4 { font-size: .64rem; letter-spacing: .24em; }
.footer-follow { margin: 0 auto; padding: 0 var(--pad) 1.6rem; max-width: var(--max); position: relative; z-index: 1; }
.footer-bottom { position: relative; z-index: 1; padding-inline: var(--pad); max-width: var(--max); margin: 0 auto; width: 100%; box-sizing: border-box; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center; }
.footer-legal a, .footer-legal button {
  background: none; border: 0; padding: 0; color: rgba(240,227,207,.7);
  font: inherit; font-size: .74rem; cursor: pointer; text-decoration: none;
}
.footer-legal a:hover, .footer-legal button:hover { color: #cdb07a; }
.footer-link--plain, .footer-col .footer-link { color: rgba(240,227,207,.78); font-size: .92rem; font-weight: 300; }
.site-footer {
  position: relative;
  background: #0a0705;
  color: #e8dccf;
  overflow: hidden;
}
.site-footer::after {
  content: "Jazzglam";
  position: absolute;
  left: var(--pad);
  bottom: 4.6rem;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 18vw, 11rem);
  line-height: .8;
  color: rgba(180,150,120,.10);
  pointer-events: none;
  letter-spacing: -.02em;
  z-index: 0;
}
.footer-main { position: relative; z-index: 1; }
.footer-about p { max-width: 38ch; }
.footer-word { display: none; }
.footer-follow { margin: 2.2rem 0 0; position: relative; z-index: 1; padding-inline: var(--pad); max-width: var(--max); margin-left: auto; margin-right: auto; }
.footer-follow__label {
  margin: 0 0 .7rem;
  font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: #c9b08a;
}
.footer-follow .socials { display: flex; gap: 1rem; }
.footer-follow a { color: #e8dccf; }
.footer-follow svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { position: relative; z-index: 1; }
.footer-legal a, .footer-legal button {
  background: none; border: 0; padding: 0; color: rgba(240,227,207,.7);
  font: inherit; font-size: .74rem; cursor: pointer; text-decoration: none;
}
.footer-legal a:hover, .footer-legal button:hover { color: #cdb07a; }
.footer-link--plain { color: rgba(240,227,207,.78); font-size: .92rem; font-weight: 300; }
@media (min-width: 1000px) {
  .footer-main {
    grid-template-columns: minmax(16rem, 1.35fr) repeat(3, minmax(9rem, auto)) !important;
    column-gap: clamp(1.6rem, 3vw, 3rem) !important;
  }
}
.footer-soon {
  color: var(--gold-soft, #cdb07a);
  font-style: normal;
}
.footer-follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.4rem;
  padding: 0 var(--pad) 1.2rem;
}
.footer-follow__label { margin: 0; }
.footer-follow .socials a {
  width: 38px; height: 38px;
  color: #f0e3cf;
  border-color: rgba(240,227,207,.35);
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}
.footer-follow .socials a:hover, .footer-follow .socials a:focus-visible {
  color: var(--gold-soft, #cdb07a);
  border-color: var(--gold-soft, #cdb07a);
  transform: translateY(-2px);
}
.site-footer { padding-bottom: 0; }
.footer-bottom {
  display: flex !important;
  flex-wrap: wrap;
  gap: .7rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(240,227,207,.16);
  padding: 1.2rem var(--pad) 1.6rem;
  min-height: 3.2rem;
}
.site-footer::after { bottom: 5.5rem; }
.footer-copy { margin: 0; color: rgba(240,227,207,.75); }
.footer-follow, .footer-bottom {
  background: #0a0705;
  position: relative;
  z-index: 2;
}
.footer-follow { padding-top: 1.4rem; }
.site-footer::after { bottom: 8.2rem; }
.footer-follow {
  justify-content: space-between;
  padding-bottom: 1.6rem;
}
.footer-follow__social { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.footer-follow .footer-bottom {
  margin: 0;
  border: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
}
@media (max-width: 799px) {
  .footer-follow { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 800px) {
  .footer-follow { flex-wrap: nowrap; align-items: center; gap: 1rem 2rem; }
  .footer-follow .footer-bottom { width: auto; max-width: 52%; justify-content: flex-end; }
  .footer-legal { justify-content: flex-end; }
}

/* Lås vattenstämpeln mot äldre regler i styles.css även på smal skärm */
@media (max-width: 639px) {
  .site-footer::after {
    right: auto;
    left: var(--pad);
    font-size: clamp(4.5rem, 18vw, 11rem);
    line-height: .8;
    color: rgba(180,150,120,.10);
    bottom: 8.2rem;
    z-index: 0;
  }
}

/* FAQ-chatt på undersidor: samma utseende och beteende som på startsidan.
   Startsidan laddar inte den här filen, så den lämnas oförändrad. */
.chat__head b {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 600 !important;
}
.chat {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: .6rem;
  left: auto !important;
  right: 1rem !important;
  bottom: 1rem;
  top: auto;
  width: auto;
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - var(--chat-top-gap, 11rem) - 0.25rem);
  z-index: 50;
}
.chat__bubble {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #3a2a1f;
  color: #b08d57;
  border: 0;
  box-shadow: 0 8px 20px rgba(20, 10, 5, .28);
}
.chat__panel {
  width: min(460px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(176, 138, 90, 0.7);
  box-shadow: 0 16px 48px rgba(40, 25, 12, 0.32), 0 0 0 1px rgba(176, 138, 90, 0.22);
  overflow-x: hidden;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 0;
  position: relative;
  max-height: calc(100dvh - var(--chat-top-gap, 11rem) - 5.5rem);
}
.chat__panel[hidden] { display: none !important; }
.chat.chat--flip {
  flex-direction: column-reverse;
}
.chat.chat--flip .chat__panel {
  position: relative;
  top: auto;
  right: auto;
  margin-top: 0;
  max-height: calc(100dvh - var(--chat-top-gap, 11rem) - 5.5rem);
  border: 1px solid rgba(176, 138, 90, 0.7);
  box-shadow: 0 16px 48px rgba(40, 25, 12, 0.32), 0 0 0 1px rgba(176, 138, 90, 0.22);
}
.chat__head {
  background: #3a2a1f;
  color: #f7f0e6;
  padding: 1.35rem 1.5rem;
  display: block;
}
.chat__head small {
  color: #f7f0e6;
  letter-spacing: .2em;
  font-size: .7rem;
}
.chat__head b {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  display: block;
  margin-top: .35rem;
}
.chat__head button { position: absolute; top: .7rem; right: .6rem; }
.chat__body { padding: 0; gap: 0; }
.chat__body details { border-bottom: 1px solid #eadfd3; padding: 0; margin: 0; }
.chat__body summary {
  padding: 1rem 1.5rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: #2a1f18;
}
.chat__body summary::after { color: #b08d57; content: "+"; }
.chat__body details[open] summary::after { content: "–"; }
.chat__body,
.chat__body details,
.chat__body summary,
.chat__body details p,
.chat__actions {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.chat__body details p {
  padding: 0 1.5rem 1rem;
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
  color: #6b5e55;
  overflow-wrap: break-word;
  word-wrap: break-word;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.chat__body summary {
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
}
.chat__actions {
  display: flex;
  gap: .5rem;
  padding: 1.15rem 1rem 1.3rem;
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.chat__actions .btn-line,
.chat__actions .btn-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 0 .4rem;
  font-family: var(--sans, Jost, sans-serif);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  box-sizing: border-box;
  text-align: center;
  transition: background .25s, color .25s, border-color .25s;
}
.chat__actions .btn-line {
  border: 1px solid #3a2a1f;
  background: #3a2a1f;
  color: #f7f0e6;
}
.chat__actions .btn-line:hover {
  background: #6b5344;
  border-color: #6b5344;
  color: #f7f0e6;
}
.chat__actions .btn-fill {
  border: 1px solid #3a2a1f;
  background: #3a2a1f;
  color: #f7f0e6;
}
.chat__actions .btn-fill:hover {
  background: #b08d57;
  border-color: #b08d57;
  color: #fff;
}

@media (max-height: 700px) {
  .chat {
    bottom: 0.5rem;
    gap: 0.35rem;
  }
  .chat__panel,
  .chat.chat--flip .chat__panel {
    max-height: calc(100dvh - var(--chat-top-gap, 11rem) - 4.5rem);
  }
  .chat__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 2.4rem 0.55rem 1rem;
  }
  .chat__head small { display: none; }
  .chat__head b {
    font-size: 1.05rem;
    margin-top: 0;
    line-height: 1.25;
  }
  .chat__head button { top: 0.35rem; right: 0.35rem; }
  .chat__body summary {
    padding: 0.45rem 1.15rem;
    font-size: 0.95rem;
  }
  .chat__actions {
    position: sticky;
    bottom: 0;
    padding: 0.55rem 0.8rem 0.65rem;
  }
  .chat__actions a { min-height: 38px; }
}

@media (max-height: 560px) {
  .chat {
    bottom: 0.4rem;
    gap: 0.28rem;
  }
  .chat__panel,
  .chat.chat--flip .chat__panel {
    max-height: calc(100dvh - var(--chat-top-gap, 11rem) - 4.2rem);
  }
  .chat__head {
    padding: 0.42rem 2.2rem 0.42rem 0.9rem;
  }
  .chat__head b {
    font-size: 0.98rem;
    white-space: nowrap;
  }
  .chat__head button { top: 0.28rem; right: 0.3rem; }
  .chat__body summary {
    padding: 0.3rem 1.05rem;
    font-size: 0.88rem;
  }
  .chat__actions {
    position: sticky;
    bottom: 0;
    padding: 0.32rem 0.7rem 0.4rem;
  }
  .chat__actions a { min-height: 32px; }
}

@media (max-height: 480px) {
  .chat {
    bottom: 0.25rem;
    gap: 0.18rem;
  }
  .chat__panel,
  .chat.chat--flip .chat__panel {
    max-height: calc(100dvh - var(--chat-top-gap, 11rem) - 4rem);
  }
  .chat__head {
    padding: 0.28rem 2rem 0.28rem 0.8rem;
  }
  .chat__head b {
    font-size: 0.92rem;
  }
  .chat__head button { top: 0.18rem; right: 0.22rem; }
  .chat__body summary {
    padding: 0.22rem 0.95rem;
    font-size: 0.84rem;
  }
  .chat__actions {
    padding: 0.22rem 0.6rem 0.28rem;
  }
  .chat__actions a { min-height: 28px; }
}

/* FAQ-ruta: ikonen alltid under rutan; listan rullar inuti när ett svar öppnas. */
.chat,
.chat.chat--flip {
  flex-direction: column-reverse !important;
  align-items: flex-end;
  min-height: 0;
}
.chat__panel,
.chat.chat--flip .chat__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.chat__head { flex: 0 0 auto; }
.chat__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.chat__actions {
  position: sticky;
  bottom: 0;
  flex: 0 0 auto;
  background: #fff;
  z-index: 2;
}

/* Rutan förblir stängd tills den öppnas: hidden måste vinna över display:flex. */
.chat__panel[hidden],
.chat.chat--flip .chat__panel[hidden] {
  display: none !important;
}

.chat__mail-fallback {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  padding: 0.2rem 0.8rem 0.7rem;
  background: #fff;
  color: #2a1f18;
  font-size: 0.88rem;
  line-height: 1.4;
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.chat__mail-fallback p { margin: 0; }
.chat__mail-fallback a {
  color: #3a2a1f;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-transform: none;
  letter-spacing: normal;
  font-size: inherit;
  font-weight: 500;
  background: none;
  border: 0;
  padding: 0;
  min-height: 0;
  display: inline;
}
.chat__mail-copy {
  appearance: none;
  border: 1px solid #3a2a1f;
  background: #fff;
  color: #3a2a1f;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
  min-height: 28px;
  padding: 0 0.7rem;
  cursor: pointer;
}
.chat__mail-copy:hover,
.chat__mail-copy:focus-visible,
.chat__mail-copy.is-copied {
  background: #3a2a1f;
  color: #f7f0e6;
}
