/* ---------- Base Colors ---------- */
:root {
  --bg-peach: #f8ded7;   /* outer background */
  --body-peach: #fff9f6; /* inner body */
  --line: #ead9d2;       /* border */
  --ink: #222;           /* text */
}

/* ---------- Page Background ---------- */
body {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  color: var(--ink);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;

  /* fallback color behind your image */
  background-color: var(--bg-peach);

  /* repeating background image */
  background-image: url("/design/backgrounds/5020.png"); /* update file path/name */
  background-repeat: repeat;      /* tiles in all directions */
  background-size: auto;          /* keeps the image at its real pixel size */
  background-attachment: fixed;   /* optional – makes pattern stay still */
  background-position: top left;  /* start tiling from corner */
}

/* ---------- Main Box ---------- */
.container {
  background: var(--body-peach);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(950px, 90%);
  margin-top: 3rem; /* space above header */
  margin-bottom: 3rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* ensures clean rounded corners */
}

/* ---------- Header ---------- */
header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  border-bottom: none;
}

h1 {
  margin: 0 0 0.8rem 0;
  font-size: 1.8rem;
}

/* ---------- Navigation ---------- */

nav {
  margin-top: 2rem;
}

/* shared row styles */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* primary nav (top row) */
nav .nav-primary a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  transition: background 0.2s ease;
}

nav .nav-primary a:hover {
  background: #ffe7a8;
}

/* spacing between rows */
nav .nav-secondary {
  margin-top: 1.4rem;
}

/* secondary nav (bottom row) */
nav .nav-secondary a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: #FFEEEB;
  opacity: 0.9;
  transition: background 0.2s ease, opacity 0.2s ease;
}

nav .nav-secondary a:hover {
  background: #fff3cf;
}

/* ---------- Main ---------- */
main {
  padding: 1.25rem 2rem 2rem;
}

/* ---------- Inner Page Layout ---------- */
main.page{
  padding: 3rem 2rem 4rem;
  display: grid;
  place-items: center;   /* centers the panel */
}

/* the center “paper” block */
.page-panel{
  width: min(720px, 92%);
  text-align: center;

  padding: 3rem 2.25rem;
  border-radius: 18px;

  background: rgba(255,255,255,0.18);   /* subtle */
  border: 1px solid rgba(0,0,0,0.12);
}

/* optional icon at top */
.page-icon{
  width: 90px;
  height: auto;
  display: block;
  margin: 0 auto 1.25rem;
  opacity: 0.95;
}

.page-panel h2{
  margin: 0 0 1.25rem 0;
  font-size: 1.4rem;
}

.page-panel p{
  margin: 0.5rem 0;
  line-height: 1.45;
}

.page-panel .small{
  font-size: 0.9rem;
  opacity: 0.7;
}


/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 1rem;
  background: var(--body-peach);
}


/* ---------- section separator ---------- */

.section-separator{
  margin: 5rem auto 3rem;
  width: 70%;
  height: 1px;
  background: rgba(0,0,0,0.08);
}

/* ---------- HQ / Admin Footer ---------- */
.hq-footer{
  margin-top: 3rem;
  border-top: 1px solid rgba(0,0,0,0.18);
  background: transparent;
  padding: 2rem 1.5rem 1.25rem;
}

.hq-inner{
  max-width: 1000px;
  margin: 0 auto;

  display: flex;              /* switch from grid */
  justify-content: center;    /* center the group */
  gap: 0.75rem;               /* tighter spacing */
  flex-wrap: wrap;            /* wraps nicely on small screens */
}

/* Button tiles */
.hq-btn{
  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  color: var(--ink);
  text-align: center;

  padding: 0.45rem 0.75rem;          /* smaller */
  min-height: unset;               /* important */
  
  
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.45);

  box-shadow: none;                /* remove card feel */
  font-size: 0.85rem;

  transition: background 0.15s ease, transform 0.1s ease;
}

.hq-btn:hover{
  background: rgba(255,255,255,0.7);
  transform: translateY(-1px);

}

/* Bottom row (copyright left, socials right) */
.hq-bottom{
  max-width: 1000px;
  margin: 1.25rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.12);
}

.hq-bottom-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  opacity: 0.85;
  font-size: 0.9rem;
}

.hq-social-bottom{
  display: flex;
  gap: 12px;
  align-items: center;
}

.hq-social-bottom img{
  width: 26px;
  height: 26px;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.hq-social-bottom img:hover{
  opacity: 0.65;
}

/* Responsive */
@media (max-width: 1000px){
  .hq-inner{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .hq-inner{ grid-template-columns: 1fr; }

  .hq-bottom-inner{
    flex-direction: column;
    gap: 0.75rem;
  }
}