/* ===========================
   Order of Faye — Base Styles
   Single source of truth. No duplicates. No surprises.
   =========================== */

/* Reset & tokens */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
    --bg: #121212;
    --fg: #e9e9e9;
    --muted: #b8b8b8;
    --border: #2a2a2a;
    --accent: #7cb2ff;
    --accent-contrast: #0b1220;
  --ok: #14833b;
  --err: #b00020;
  --warn: #b8860b;

  --radius: 8px;
  --gap: 1rem;
  --maxw: 1000px;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 6px 24px rgba(0,0,0,.4);
}


    

body {
	height: 100%;
	margin: 0;
	padding: 0;
	background: 
		url('/images/bg1.jpg'); /* placeholder, overwritten by JS */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	color: var(--fg);
}


.menu {
	background-color: #525252;
	color: #fff; 
	text-align: center; 
	width: 100%; 
	
	top:0px;	
	position:fixed;
	padding:0.5rem;  
	text-align:right;
}

.footer {
	background-color: #525252;
	color: #fff; 
	text-align: center; 
	width: 100%; 
	font-size: small;	
	bottom:0px;	
	position:fixed;
}



/* Layout helpers */
.container,
.wrap {
  max-width: var(--maxw);
  margin: 1rem auto;
  padding: 0 1rem;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  border-radius: 6px;
}

.card {
  background: color-mix(in oklab, var(--bg) 92%, black 8%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

/* Banner / top nav */
.site-banner {
  padding: .5rem 1rem;
  background: #eee;
  color: #222;
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .site-banner { background: #1a1a1a; color: #ddd; }
}
.site-banner a {
  color: inherit;
  text-decoration: none;
}
.site-banner a:hover { text-decoration: underline; }

/* Typography */
h1, h2, h3 {
  margin: .5em 0 .5em;
  line-height: 1.;
}
h1 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); text-align: center; }
h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); border-bottom: 1px solid var(--border); padding-bottom: .3em; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

p { margin: 1em 0; }
small, .muted { color: var(--muted); }

/* Links */
a { color: var(--accent); }
a:hover { color: #fff; }

/* Media */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* Forms */
form {
  margin: 1rem auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--bg) 97%, black 3%);
  box-shadow: var(--shadow);
  max-width: 720px;              /* centers and constrains wide forms */
}

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem 0;
}
legend { padding: 0 .5rem; font-weight: 600; }

label { display: block; margin: .5rem 0 .35rem; }

/* Inputs fill their grid column. No arbitrary max-width caps. */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: .6rem .65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  box-sizing: border-box;
}

textarea { min-height: 120px; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in oklab, var(--accent) 60%, transparent);
  outline-offset: 1px;
}

/* Grid rows for form fields */
.row,
.form-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: var(--gap);
  align-items: start;
}
.row > div,
.form-grid > div { min-width: 0; }  /* allows children to shrink properly */

@media (max-width: 700px) {
  .row, .form-grid { grid-template-columns: 1fr; }
}
/* Print-friendly tweaks */
@media print {
  .site-banner { display: none; }
  form, fieldset, .card { box-shadow: none; background: #fff; }
}
/* Buttons */
button,
input[type="submit"],
.btn {
  display: inline-block;
  padding: .6rem .95rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
  cursor: pointer;
  font-weight: 600;
}
button:hover,
input[type="submit"]:hover,
.btn:hover { filter: brightness(1.06); }
button:disabled { opacity: .6; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* Messages */
.msg { margin: .5rem 0; }
.ok  { color: var(--ok); }
.err { color: var(--err); }
.warn{ color: var(--warn); }
.hint{ color: var(--muted); font-size: .9rem; }

/* Tables */
table { border-collapse: collapse; width: 100%; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.table-compact th, .table-compact td { padding: 6px 8px; }

/* Utilities */
.center { text-align: center; }
.right  { text-align: right; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.w-100 { width: 100% !important; }




main {
  flex: 1; /* pushes footer down */
}

.site-footer {
  padding: .5rem 0;               /* thinner */
  border-top: 1px solid var(--border, #ccc);
  text-align: center;
  font-size: .8rem;
  color: var(--muted, #666);
  background: var(--bg, #fff);    /* matches page bg */
}
.site-footer a {
  color: inherit;
  text-decoration: underline;
}
