/*
  MODEL [X] / DAUGHTERVERSE BLUE TEXTURED PALETTE
  Refactor for credits.html
  - Same section/container system
  - Light-to-dark blue textured surface
  - Variables at the top control the whole page
*/

:root {
  --page-bg: #d8e9f7;
  --page-bg-deep: #071827;
  --panel-bg: rgba(235, 246, 255, 0.82);
  --panel-bg-2: rgba(202, 226, 244, 0.74);
  --ink: #081827;
  --muted: #426177;
  --line: rgba(19, 57, 86, 0.18);
  --line-strong: rgba(13, 43, 67, 0.28);
  --accent: #77b7e8;
  --accent-dark: #154a78;
  --accent-glow: rgba(118, 184, 235, 0.42);
  --shadow: 0 26px 80px rgba(3, 18, 32, 0.18);
  --radius-lg: 34px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max: 1160px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,0.88) 0 8%, rgba(189,222,246,0.52) 22%, transparent 42%),
    radial-gradient(circle at 86% 14%, rgba(99,166,218,0.38) 0 10%, transparent 34%),
    radial-gradient(circle at 50% 110%, rgba(5,24,41,0.96) 0, rgba(8,36,61,0.88) 25%, transparent 58%),
    linear-gradient(145deg, #f5fbff 0%, #d3e9fa 28%, #9dc7e7 52%, #2f6894 76%, #071827 100%);
  background-attachment: fixed;
}

/* Fine blue-paper texture overlay. It gives the page tooth without requiring an image file. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(5,25,43,0.08) 1px, transparent 1px),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.22) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 58%, rgba(2,17,31,0.16) 0 1px, transparent 1px);
  background-size: 74px 74px, 74px 74px, 19px 19px, 23px 23px;
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.mx-topbar {
  width: min(var(--max), calc(100% - 40px));
  margin: 24px auto 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(239, 248, 255, 0.72);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 16px;
  z-index: 20;
  box-shadow: 0 14px 34px rgba(5, 30, 51, 0.12);
}

.mx-brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.mx-brand span { color: var(--accent-dark); }

.mx-nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mx-nav-links a:hover,
.mx-nav-links a[aria-current="page"] { color: var(--ink); }

.mx-nav-dropdown { position: relative; }

.mx-nav-trigger {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 0;
}

.mx-nav-trigger:hover,
.mx-nav-dropdown:hover .mx-nav-trigger,
.mx-nav-dropdown:focus-within .mx-nav-trigger { color: var(--ink); }

.mx-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 190px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(239, 248, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 52px rgba(5, 30, 51, 0.18);
  display: grid;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 30;
}

.mx-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.02em;
}

.mx-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.mx-nav-dropdown:hover .mx-dropdown-menu,
.mx-nav-dropdown:focus-within .mx-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mx-page-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 30px auto 70px;
}

.mx-hero,
.mx-section,
.mx-footer-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.68), rgba(202,226,244,0.58)),
    var(--panel-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Shared texture for all major containers */
.mx-hero::after,
.mx-section::after,
.mx-footer-panel::after,
.mx-soft-card::after,
.mx-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.36;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.24), transparent 28%, rgba(17,65,100,0.08) 63%, transparent),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 5px);
}

.mx-hero > *,
.mx-section > *,
.mx-footer-panel > *,
.mx-soft-card > *,
.mx-hero-card > * {
  position: relative;
  z-index: 1;
}

.mx-hero {
  min-height: 620px;
  padding: clamp(38px, 7vw, 86px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

.mx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 20%, rgba(118,184,235,0.32), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,0.52), transparent 38%, rgba(4,23,39,0.14));
}


.mx-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Watermark Symbol */
.mx-watermark-x::before {
  content: '𐂷';
  position: absolute;

  top: 1%;
  left: 73%;
  right: auto;
  bottom: auto;

  transform: none;

  font-family: var(--serif);
  font-size: clamp(7rem, 20vw, 18rem);
  color: rgba(21, 74, 120, 0.07);
  line-height: 1;

  background: transparent;
  border: 0;
  box-shadow: none;

  pointer-events: none;
  user-select: none;
  z-index: 0;
}


.mx-hero > * {
  position: relative;
  z-index: 1;
}

.mx-eyebrow {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mx-hero-title,
.mx-page-title,
.mx-model-name,
.mx-section-title {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0;
}

.mx-page-title {
  font-size: clamp(3.4rem, 9vw, 7.6rem);
  color: #061522;
  text-shadow: 0 1px 0 rgba(255,255,255,0.55);
}

.mx-hero-title { font-size: clamp(4rem, 12vw, 10rem); }
.mx-model-name { font-size: clamp(4rem, 13vw, 11rem); }
.mx-section-title { font-size: clamp(2.2rem, 5vw, 4.8rem); color: #09243a; }

.mx-hero-subtitle,
.mx-lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 680px;
}

.mx-hero-card,
.mx-soft-card,
.mx-faq-item,
.mx-stat-card,
.mx-gallery-card {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.62), rgba(178,214,240,0.38)),
    rgba(232, 244, 253, 0.58);
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  overflow: hidden;
}

.mx-hero-card {
  background:
    radial-gradient(circle at top right, rgba(119,183,232,0.34), transparent 35%),
    linear-gradient(145deg, rgba(249,253,255,0.74), rgba(174,209,236,0.52));
}

.mx-hero-card a,
.mx-soft-card a {
  color: #0b518a;
  font-weight: 800;
  border-bottom: 1px solid rgba(11,81,138,0.35);
}

.mx-hero-card a:hover,
.mx-soft-card a:hover {
  color: #04243c;
  border-bottom-color: #04243c;
}

.mx-section { margin-top: 26px; padding: clamp(34px, 6vw, 72px); }
.mx-section--wash {
  background:
    linear-gradient(145deg, rgba(213,235,250,0.74), rgba(139,188,224,0.42)),
    rgba(207,230,247,0.64);
}

.mx-two-col {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.mx-three-grid,
.mx-card-grid,
.mx-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mx-card-grid { margin-top: 28px; }
.mx-gallery-grid { margin-top: 30px; }

.mx-soft-card h3,
.mx-hero-card h3 {
  margin: 0 0 10px;
  color: #082135;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.mx-soft-card p:last-child,
.mx-hero-card p:last-child { margin-bottom: 0; }

.mx-footer-panel {
  margin-top: 26px;
  padding: 34px;
  background:
    linear-gradient(145deg, rgba(21,74,120,0.88), rgba(5,22,38,0.94));
  color: rgba(241,248,255,0.94);
}

.mx-footer-panel .mx-small { color: rgba(219,235,248,0.78); }
.mx-footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mx-small { color: var(--muted); font-size: .9rem; }

/* Page identity hook */
.theme-blue-credits {
  --page-bg: #d8e9f7;
  --panel-bg: rgba(235, 246, 255, 0.82);
  --panel-bg-2: rgba(202, 226, 244, 0.74);
  --ink: #081827;
  --muted: #426177;
  --accent: #77b7e8;
  --accent-dark: #154a78;
}

@media (max-width: 880px) {
  .mx-topbar {
    border-radius: 26px;
    align-items: flex-start;
    flex-direction: column;
  }

  .mx-nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .mx-dropdown-menu {
    left: 0;
    transform: translateY(8px);
  }

  .mx-nav-dropdown:hover .mx-dropdown-menu,
  .mx-nav-dropdown:focus-within .mx-dropdown-menu { transform: translateY(0); }

  .mx-hero,
  .mx-two-col { grid-template-columns: 1fr; }

  .mx-three-grid,
  .mx-card-grid,
  .mx-gallery-grid { grid-template-columns: 1fr; }

  .mx-hero { min-height: auto; }
}

@media (max-width: 560px) {
  .mx-topbar,
  .mx-page-shell { width: min(100% - 24px, var(--max)); }
  .mx-hero,
  .mx-section { border-radius: 24px; }
}


/* ─────────────────────────────────────────────
   IMAGE FOOTER BOX
   Turns the footer into a visual image panel.
   Change the image path below as needed.
   ───────────────────────────────────────────── */

.mx-footer-image-box {
  min-height: 320px;
  padding: 0;
  background:
    linear-gradient(
      135deg,
      rgba(7, 28, 52, 0.72),
      rgba(19, 82, 138, 0.42)
    ),
    url("../img/saraawake.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.mx-footer-image-overlay {
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(
      circle at top left,
      rgba(188, 225, 255, 0.22),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      rgba(3, 18, 34, 0.08),
      rgba(3, 18, 34, 0.76)
    );
}

.mx-footer-image-box strong {
  display: block;
  max-width: 760px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.mx-footer-image-box .mx-small {
  max-width: 620px;
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
}




/* ─────────────────────────────────────────────
   REUSABLE IMAGE PANEL
   Use this anywhere inside <main class="mx-page-shell">.
   ───────────────────────────────────────────── */

.mx-image-panel {
  min-height: 320px;
  padding: 0;
  background:
    linear-gradient(
      135deg,
      rgba(7, 28, 52, 0.72),
      rgba(19, 82, 138, 0.42)
    ),
    url("../img/saraface.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.mx-image-panel-overlay {
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(
      circle at top left,
      rgba(188, 225, 255, 0.22),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      rgba(3, 18, 34, 0.08),
      rgba(3, 18, 34, 0.76)
    );
}

.mx-image-panel-copy {
  max-width: 820px;
}

.mx-image-panel-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.mx-image-panel .mx-small {
  max-width: 620px;
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
}

.mx-image-panel-eyebrow {
  color: #7b6a14;
}