/*
 * Link-A-Charm marketing site: everything around the page body.
 *
 * homepage.css is the Drupal theme's compiled homepage stylesheet, copied
 * unchanged (web/themes/custom/linkacharm/linkacharm/css/homepage.css). It
 * styles the content inside .lac-home and nothing else. This file adds the
 * page shell Drupal and Bootstrap used to supply: base reset, header, footer,
 * and the short text pages (contact, 404).
 */

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

html { scroll-padding-top: 5rem; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #FFF8F0;
  color: #1E1B18;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

a { color: #EE3D77; }

:focus-visible { outline: 3px solid #17A69A; outline-offset: 2px; }

.lac-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: #fff;
  border-radius: 10px;
}
.lac-skip:focus { top: 1rem; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.lac-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(199, 154, 95, 0.22);
}

.lac-nav {
  max-width: calc(1180px + 4rem);
  margin-inline: auto;
  padding: 0.55rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* The registered wordmark, set in Shadows Into Light as the Drupal theme does.
   line-height 1.3 because its tall ascenders clip at 1. */
.lac-wordmark {
  font-family: 'Shadows Into Light', cursive;
  font-size: 34px;
  line-height: 1.3;
  color: #1E1B18;
  text-decoration: none;
  white-space: nowrap;
}
.lac-wordmark sup { font-family: 'Outfit', system-ui, sans-serif; font-size: 0.34em; vertical-align: 1.9em; line-height: 0; }

.lac-nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lac-nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #6B6259;
  text-decoration: none;
}
.lac-nav__links a:hover,
.lac-nav__links a:focus { color: #EE3D77; }

.lac-nav__links a.lac-nav__cta {
  display: inline-block;
  background: #EE3D77;
  color: #fff;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 20px -8px rgba(238, 61, 119, 0.85);
  transition: transform 0.18s, box-shadow 0.18s;
}
.lac-nav__links a.lac-nav__cta:hover,
.lac-nav__links a.lac-nav__cta:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -10px rgba(238, 61, 119, 0.9);
}

.lac-nav__toggle {
  display: none;
  border: 0;
  background: none;
  padding: 0.35rem;
  border-radius: 10px;
  color: #1E1B18;
  cursor: pointer;
}
.lac-nav__toggle svg { display: block; width: 1.6rem; height: 1.6rem; }

@media (max-width: 991.98px) {
  .lac-nav { flex-wrap: wrap; padding: 0.55rem 1.25rem; }
  .lac-nav__toggle { display: block; }

  /* Collapsed until the toggle opens it. Without JavaScript the links stay
     visible, so the menu never becomes unreachable. */
  .js .lac-nav__links { display: none; }
  .js .lac-nav.is-open .lac-nav__links { display: flex; }

  .lac-nav__links {
    /* Full width of the bar, gutters included. */
    flex: 0 0 calc(100% + 2.5rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0 -1.25rem;
    padding: 0.25rem 1.25rem 1.25rem;
    background: rgba(255, 248, 240, 0.98);
    border-top: 1px solid rgba(199, 154, 95, 0.22);
    box-shadow: 0 20px 30px -22px rgba(30, 27, 24, 0.45);
  }
  .lac-nav__links a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(199, 154, 95, 0.18);
  }
  .lac-nav__links li:last-child { margin-top: 1.1rem; }
  .lac-nav__links a.lac-nav__cta { display: flex; justify-content: center; border-bottom: 0; padding: 0.85rem 1.3rem; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.lac-footer {
  background: #17203A;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}
.lac-footer__inner {
  max-width: calc(1180px + 4rem);
  margin-inline: auto;
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.lac-footer p { margin: 0; }
.lac-footer ul { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.lac-footer a { color: #fff; text-decoration: none; }
.lac-footer a:hover, .lac-footer a:focus { text-decoration: underline; }

@media (max-width: 575.98px) {
  .lac-footer__inner { padding: 1.25rem; flex-direction: column; align-items: flex-start; }
}

/* ── Short text pages (contact, 404) ────────────────────────────────────── */

.lac-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
}
.lac-page h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.lac-page h2 { font-size: 1.15rem; margin: 2rem 0 0.35rem; }
.lac-page p { font-size: 1.1rem; margin: 0 0 1rem; }
.lac-page .lac-page__back { display: inline-block; margin-top: 1.5rem; font-weight: 600; }
