/* My Forever Adventure — brand tokens (see brand style guide) */
:root {
  --brand-primary: #1a223d;   /* navy — text/foreground */
  --brand-secondary: #8fd9fb; /* light blue — primary accent */
  --brand-third: #b3ebf2;     /* pale blue */
  --brand-fourth: #fdbcb4;    /* peach */
  --brand-background: #f9f9f9;
  --border-color: rgba(26, 34, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--brand-background);
  color: var(--brand-primary);
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
}

a {
  color: inherit;
}

main {
  flex: 1;
}

/* ---------- Full-screen splash pages (landing / about) ---------- */

.splash {
  position: relative;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  overflow: hidden;
}

.splash__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url('/assets/img/pattern-bg.png');
  background-repeat: repeat;
  background-size: 260px 260px;
}

.splash__content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.splash__logo {
  position: relative;
  z-index: 1;
  width: 14rem;
  height: auto;
}

.splash__tagline {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--brand-primary);
}

.splash__heading {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 2.25rem;
  margin: 0 0 1.5rem;
}

.splash__body {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(26, 34, 61, 0.9);
  margin: 0;
}

@media (min-width: 640px) {
  .splash__logo {
    width: 18rem;
  }
  .splash__tagline {
    font-size: 1.875rem;
  }
  .splash__heading {
    font-size: 3rem;
  }
}

/* ---------- Simple header (privacy / terms pages) ---------- */

.site-header {
  border-bottom: 1px solid var(--border-color);
  background: var(--brand-background);
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo img {
  height: 2.5rem;
  width: auto;
  display: block;
}

.site-header__link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header__link:hover {
  color: #2f6f8a;
}

/* ---------- Legal page layout ---------- */

.legal {
  max-width: 56rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.legal__card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(26, 34, 61, 0.06);
}

.legal__card h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.legal__meta {
  color: rgba(26, 34, 61, 0.7);
  margin: 0 0 1rem;
}

.legal__card section {
  margin-top: 2rem;
}

.legal__card h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.legal__card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.legal__card p,
.legal__card li {
  color: rgba(26, 34, 61, 0.9);
  line-height: 1.65;
}

.legal__card ul,
.legal__card ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.legal__card a {
  color: #2f6f8a;
  text-decoration: underline;
}

.legal__card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.legal__card th,
.legal__card td {
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal__card th {
  background: rgba(179, 235, 242, 0.3);
}

/* ---------- 404 page ---------- */

.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.not-found__card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(26, 34, 61, 0.06);
  text-align: center;
  max-width: 26rem;
}

.not-found__card h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--brand-secondary);
  margin: 0 0 0.5rem;
}

.not-found__card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.not-found__card p {
  color: rgba(26, 34, 61, 0.7);
  margin: 0 0 1.5rem;
}

.btn {
  display: inline-block;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.9;
}

/* ---------- Footer (shared across every page) ---------- */

.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 0;
  background: rgba(179, 235, 242, 0.2);
  border-top: 1px solid var(--border-color);
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(26, 34, 61, 0.7);
}

.site-footer__links a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-footer__links a:hover {
  color: var(--brand-primary);
}

.site-footer__legal {
  color: rgba(26, 34, 61, 0.4);
  font-size: 0.6875rem;
  text-align: center;
  line-height: 1.5;
  max-width: 40rem;
}

/* ---------- Cookie consent brand overrides ---------- */

#cc-main .cm {
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  border-radius: 0.75rem;
  max-width: 420px;
}

#cc-main .cm__title {
  font-family: 'Playfair Display', serif;
}

#cc-main .cm__btn[data-role='all'] {
  background: #8fd9fb;
  color: #1a223d;
  border: none;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  order: -1;
}

#cc-main .cm__btn[data-role='all']:hover {
  background: #5cc9f7;
}

#cc-main .cm__btn[data-role='necessary'] {
  background: transparent;
  color: #2b3f66;
  border: none;
  font-weight: 400;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  text-decoration: underline;
  order: 1;
}

#cc-main .cm__btn[data-role='show'] {
  background: transparent;
  color: #2b3f66;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-weight: 400;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  order: 0;
}

#cc-main .pm__btn[data-role='all'] {
  background: #8fd9fb;
  color: #1a223d;
  border: none;
  font-weight: 700;
}

#cc-main .pm__btn[data-role='save'] {
  background: #8fd9fb;
  color: #1a223d;
  border: none;
  font-weight: 600;
}
