/* ===============================
   GLOBAL RESETS & UTILITIES
=============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #111111, #4a3f35 60%, #c3b299);
  color: #ffffff;
  font-family: 'Caudex', serif;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  z-index: 1;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 128, 64, 0.15) 70%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

h1, h2, h3, p {
  text-shadow:
    0 0 4px rgba(0, 255, 128, 0.2),
    0 0 10px rgba(0, 255, 128, 0.1),
    0 0 20px rgba(0, 255, 128, 0.05);
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

/* ===============================
   FOOTER
=============================== */
footer {
  margin-top: auto;
  background-color: black;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 1rem;
  text-align: center;
}

.copyright {
  font-weight: bold;
  color: white;
  width: 100%;
  height: 100%;
  text-align: center;
}

.copyright a {
  color: white;
}

footer::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 0;
  width: 100%;
  height: 15px;
  background: linear-gradient(
    to top,
    rgba(0, 255, 128, 0.2),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
  z-index: 1;
  filter: blur(4px);
}

/* ===============================
   NAVBAR
=============================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background-color: black;
  color: #fff;
  z-index: 50;
}

.nav-links a {
  color: #fff;
}

.navigation::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 15px;
  background: linear-gradient(
    to bottom,
    rgba(0, 255, 128, 0.2),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
  z-index: 1;
  filter: blur(4px);
}

.navhead {
  font-size: 36px;
}

.navigation {
  position: sticky;
  top: 0px;
  z-index: 100;
}

/* NAVBAR MENU */
.menu {
  display: flex;
  gap: 1em;
  font-size: 16px;
}

.menu li:hover {
  background-color: black;
  border-radius: 5px;
  transition: 0.3s ease;
}

.menu li {
  padding: 5px 14px;
}

/* DROPDOWN MENU */
.about {
  position: relative;
}

.dropdown {
  background-color: black;
  padding: 1em 0;
  position: absolute;
  display: none;
  border-radius: 8px;
  top: 100%;
  z-index: 200;
}

.dropdown li + li {
  margin-top: 10px;
}

.dropdown li {
  padding: 0.5em 1em;
  width: 8em;
  text-align: center;
}

.dropdown li:hover {
  background-color: black;
}

.about:hover .dropdown {
  display: block;
}

/* ===============================
   RESPONSIVE NAVBAR
=============================== */
input[type=checkbox] {
  display: none;
}

.hamburger {
  display: none;
  font-size: 24px;
  user-select: none;
}

@media (max-width: 768px) {
  .menu {
    display: none;
    position: absolute;
    background-color: black;
    right: 0;
    left: 0;
    text-align: center;
    padding: 16px 0;
  }

  .menu li:hover {
    display: inline-block;
    background-color: black;
    transition: 0.3s ease;
  }

  .menu li + li {
    margin-top: 12px;
  }

  input[type=checkbox]:checked ~ .menu {
    display: block;
  }

  .hamburger {
    display: block;
  }

  .dropdown {
    left: 50%;
    top: 30px;
    transform: translateX(35%);
  }

  .dropdown li:hover {
    background-color: black;
  }
}

/* ===============================
   COMMON LAYOUT
=============================== */
.wrap,
.intro,
.image,
h1,
footer {
  position: relative;
  z-index: 1;
}

.image {
  display: block;
  margin: 0 auto;
  text-align: center;
}

.headline {
  font-style: italic;
  text-align: center;
}

/* ===== Middle Path – Callout (Image Icon, Soft Variant) ================== */
/* If you already define these vars globally, you can keep yours and skip this */
:root{
  --mp-surface: #0b0d12;                 /* deep midnight */
  --mp-ink:     #f3f0ff;                 /* parchment text */
  --mp-muted:   #bdb7cf;                 /* secondary text */
  --mp-amethyst: 139, 92, 246;           /* rgb() components for rgba() */
  --mp-cyan:     72, 199, 247;           /* rgb() components for rgba() */
}

/* Base callout */
.mp-callout{
  position: relative;
  isolation: isolate;                    /* keep internal effects contained */
  z-index: 1;                            /* above body overlays */
  width: 100%;
  max-width: min(720px, 92vw);
  margin-inline: auto;
  margin-block: clamp(1rem, 3vw, 1.75rem);
  padding: clamp(1rem, 2vw, 1.25rem);
  text-align: center;

  color: var(--mp-ink);
  background:
    radial-gradient(120% 140% at 12% 0%,  rgba(var(--mp-amethyst), 0.10), transparent 45%),
    radial-gradient(120% 140% at 88% 100%, rgba(var(--mp-cyan), 0.09), transparent 45%),
    var(--mp-surface);
  border-radius: 16px;
  border: 1px solid rgba(var(--mp-amethyst), 0.24);
  box-shadow: 0 12px 30px -18px rgba(var(--mp-amethyst), 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(.55rem, 1.3vw, .85rem);
  overflow: hidden;
}

/* Width tweaks per page */
.mp-callout--beliefs{ max-width: min(760px, 94vw); }
.mp-callout--about { max-width: min(620px, 92vw); }

/* Softer variant */
.mp-callout--soft{
  background:
    radial-gradient(110% 130% at 15% 5%,  rgba(var(--mp-amethyst), 0.08), transparent 48%),
    radial-gradient(110% 130% at 85% 95%, rgba(var(--mp-cyan), 0.07), transparent 48%),
    var(--mp-surface);
  border-color: rgba(var(--mp-amethyst), 0.18);
  box-shadow: 0 10px 24px -18px rgba(var(--mp-amethyst), 0.28);
}

/* Icon box now driven by a variable you can override per instance */
.mp-callout__icon{
  position: relative;
  --icon-size: clamp(64px, 8vw, 84px);   /* default size */
  inline-size: var(--icon-size);
  block-size: var(--icon-size);
  border-radius: 12px;
  outline: 1px solid rgba(var(--mp-amethyst), 0.30);
  overflow: hidden;

  /* Image */
  background-position: center;
  background-size: cover;                /* image scales with box */
  background-repeat: no-repeat;
}

/* Soft glow overlay above the image */
.mp-callout__icon::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(75% 75% at 50% 35%, rgba(var(--mp-amethyst), 0.14), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.22), transparent 60%);
  pointer-events: none;
}

/* Optional size helpers */
.mp-callout__icon--lg  { --icon-size: clamp(84px, 9vw, 108px); }
.mp-callout__icon--xl  { --icon-size: clamp(96px,10vw, 128px); }
.mp-callout__icon--md  { --icon-size: clamp(72px, 8.5vw, 96px); }  /* a subtle bump */

/* Text */
.mp-callout__title{
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  letter-spacing: .2px;
  color: var(--mp-ink);
}
.mp-callout__text{
  margin: 0;
  color: var(--mp-muted);
  line-height: 1.6;
  font-size: clamp(.95rem, 1.2vw, 1rem);
}
.mp-callout__link{
  color: rgba(var(--mp-cyan), 0.9);
  text-underline-offset: 3px;
}
.mp-callout__link:hover{ text-decoration: underline; }

/* ===== Galaxy Fold / Ultra-Narrow Hardening ===== */

/* 1) Never let the page scroll sideways */
html, body { max-width: 100%; overflow-x: hidden; }

/* 2) Make images scale down (overrides HTML width/height attributes) */
img { max-width: 100%; height: auto; }

/* 3) Footer no longer sits on top of content at tiny widths */
@media (max-width: 360px) {
  footer { position: static; }           /* let it flow */
  body { padding-bottom: 0; }            /* no need to reserve space */
}

/* 4) Navbar fits: shrink logo + title, keep hamburger usable */
@media (max-width: 360px) {
  .navbar { gap: 8px; padding: 8px 10px; }
  .logo img { width: 96px; height: auto; }     /* was 150px fixed */
  .navhead {
    font-size: 18px;                         /* was 36px */
    line-height: 1.2;
    max-width: 58vw;                         /* prevent overflow beside logo */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hamburger { font-size: 20px; }
}

/* 5) Mobile menu: keep it inside the viewport and easy to tap */
@media (max-width: 768px) {
  /* Ensure the dropdown menu doesn’t “drift” off-screen */
  .dropdown {
    position: static;          /* stack naturally under parent item */
    transform: none;
    left: auto; top: auto;
    width: 100%;
    display: none;             /* hidden until parent hover/focus */
    padding: 0.25em 0;
    border-radius: 8px;
  }

  /* If you prefer the submenu ALWAYS visible on small screens, flip this to 'block' */
  .about:hover .dropdown,
  .about:focus-within .dropdown { display: block; }

  /* Make the whole menu comfy on tiny screens */
  .menu {
    right: 0; left: 0;
    text-align: left;
    padding: 8px 12px;
  }
  .menu li { padding: 10px 8px; }
  .menu a { display: block; word-break: break-word; }
}

/* 6) Hero image & text: remove fixed heights, allow wrap */
@media (max-width: 360px) {
  .image img { width: 100%; height: auto; }   /* overrides 1000×450 attributes */
  .headline h1 { font-size: 1.2rem; line-height: 1.25; word-break: break-word; }
  .headline h3 { font-size: .95rem; line-height: 1.35; }
  .intro { padding: 10px 12px; }
}

/* 7) CTA behaves well on 280–320px */
@media (max-width: 360px) {
  .cta-container { padding: 8px 0 12px; }
  .cta-container .cta-button,
  .cta-button, .btn, button {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    white-space: normal; /* wraps instead of overflowing */
  }
}

/* 8) General content: single-column + safe tables */
@media (max-width: 360px) {
  .wrap, .intro { margin: 0 auto; }
  table { display: block; width: 100%; overflow-x: auto; }
}
