/* =============================================================================
   ALWYN Studio — Site footer (loaded site-wide via assets/footer.js)

   Extracted from index.html on 2026-11-22 as part of the site-wide footer
   rollout. This file is the single source of truth for footer styling.
   Edit here, and every page that includes assets/footer.css picks it up.

   Markup is injected into the <body> by assets/footer.js — do not paste
   the HTML back into individual pages.
   ============================================================================ */

/* Hide page scrollbar on mobile for a cleaner luxury presentation.
   iOS Safari already auto-hides; this covers Android Chrome + other
   webviews (VS Code MobileView, embedded previews) that would otherwise
   show a persistent bar. Page remains fully scrollable. */
@media (max-width: 600px){
  html { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar { display: none; width: 0; height: 0; }
}

/* ===== Footer — Prada-style 4-col with newsletter on the left ===== */
.footer{
  position: relative;
  background: #fff;
  color: #1C1A14;
  font-family: 'IBM Plex Serif', Georgia, serif;
  z-index: 3;
}
/* Optional black bar separating the page from the footer (unused on most pages
   but kept available — add <div class="footer__top-bar"></div> at the top of
   the footer markup in footer.js if you want it back). */
.footer__top-bar{
  height: 80px;
  background: #1C1A14;
}
.footer__inner{
  max-width: 1600px;
  margin: 0 auto;
  padding: 48px 40px 18px;
}
.footer__cols{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
}
.footer__col-title{
  font-family: 'IBM Plex Mono', Menlo, monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1C1A14;
  margin-bottom: 24px;
}
.footer__list{
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 14px;
}
.footer__list a{
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: #1C1A14;
  text-decoration: none;
  transition: color 180ms ease;
}
.footer__list a:hover{ color: #6b6055; }

/* Footer collapsibles — desktop looks like static columns; on mobile each
   <details> becomes a tappable accordion row. The disclosure marker is
   suppressed both as ::marker (Firefox/Safari) and ::-webkit-details-marker
   (older WebKit). Default state is [open] in HTML so non-JS / desktop users
   always see content; footer.js strips [open] on mobile load. */
.footer__col--acc > summary{
  list-style: none;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__col--acc > summary::-webkit-details-marker{ display: none; }
.footer__col--acc > summary::marker{ content: ''; }
.footer__col-chev{
  display: none;
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: #1C1A14;
  transition: transform 240ms ease;
}

/* Newsletter column */
.footer__newsletter{
  display: flex; align-items: center;
  border-bottom: 1px solid #1C1A14;
  margin-bottom: 16px;
  padding-bottom: 4px;
}
.footer__newsletter input{
  flex: 1;
  border: 0; background: transparent;
  padding: 10px 0;
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: 14px;
  color: #1C1A14;
}
.footer__newsletter input:focus{ outline: none; }
.footer__newsletter input::placeholder{ color: #6b6055; }
.footer__newsletter-btn{
  background: transparent; border: 0; cursor: pointer;
  padding: 4px 0 4px 12px;
  display: flex; align-items: center; justify-content: center;
  color: #1C1A14;
  transition: transform 180ms ease;
}
.footer__newsletter-btn:hover{ transform: translateX(3px); }
/* On touch devices, hover transforms feel awkward (briefly trigger on tap
   then snap back). Disable them. */
@media (hover: none){
  .footer__newsletter-btn:hover{ transform: none; }
}
.footer__newsletter-btn svg{ width: 22px; height: 22px; }
.footer__disclaimer{
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: 12px;
  line-height: 1.55;
  color: #6b6055;
  margin-bottom: 28px;
  max-width: 42ch;
}
.footer__turnstile{ margin: 4px 0 16px; }
.footer__disclaimer a{
  color: #1C1A14;
  text-decoration: underline;
}

/* Social icons row */
.footer__socials{
  list-style: none;
  padding: 0; margin: 0;
  display: flex; gap: 22px;
}
.footer__socials a{
  display: inline-flex; align-items: center;
  color: #1C1A14;
  transition: color 180ms ease;
}
.footer__socials a:hover{ color: #6b6055; }
.footer__socials svg{ width: 20px; height: 20px; display: block; }

/* Bottom strip — copyright */
.footer__bottom{
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #f1ede5;
  display: flex; justify-content: flex-end; align-items: center;
}
.footer__copyright{
  font-family: 'IBM Plex Mono', Menlo, monospace;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b6055;
}

/* Newsletter submitted state — replaces form text with a confirmation */
.footer__newsletter-thanks{
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: #1C1A14;
  padding: 12px 0;
  border-bottom: 1px solid #1C1A14;
  margin-bottom: 16px;
}
/* Inline error if /api/newsletter rejects */
.footer__newsletter-error{
  font-family: 'IBM Plex Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: #c00000;
  margin-top: 8px;
}

/* Tablet — stack 2x2 */
@media (max-width: 1000px){
  .footer__cols{ grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__col--newsletter{ grid-column: 1 / -1; }
  .footer__disclaimer{ max-width: 60ch; }
}
/* Mobile — single column, accordions */
@media (max-width: 600px){
  .footer__inner{ padding: 36px 22px 16px; }
  .footer__top-bar{ height: 48px; }
  .footer__cols{ grid-template-columns: 1fr; gap: 0; }
  .footer__col--newsletter{ margin-bottom: 24px; }
  .footer__bottom{ justify-content: flex-start; margin-top: 24px; padding-top: 14px; }
  /* iOS auto-zooms inputs <16px. Bump newsletter email input on mobile. */
  .footer__newsletter input{ font-size: 16px; }

  /* Accordion sections — tappable summary, chevron rotates when open. */
  .footer__col--acc{
    border-top: 1px solid #e5e0d6;
  }
  .footer__col--acc:last-of-type{
    border-bottom: 1px solid #e5e0d6;
  }
  .footer__col--acc > summary{
    cursor: pointer;
    padding: 18px 0;
    margin: 0;
    /* Override the base .footer__col-title margin-bottom inside summary */
  }
  .footer__col--acc > summary.footer__col-title{ margin-bottom: 0; }
  .footer__col-chev{ display: block; }
  .footer__col--acc[open] .footer__col-chev{ transform: rotate(180deg); }
  .footer__col--acc .footer__list{ padding: 4px 0 20px; }
}
