:root{
	--gap:16px;
	--row-pad:clamp(8px,2vw,16px);
	--outer-pad:clamp(16px,3vw,32px);
	--header-pad-x:20px;
}
*{box-sizing:border-box}

body{
	margin:0;
	font-family:Arial, sans-serif;
	background:#000;
	color:#fff;
}

/* Header / Nav */
header{
	display:flex;
	justify-content:space-between;
	align-items:center;
	background:#000;
	padding:10px var(--header-pad-x);
	gap:12px;
}
.brand img{height:64px; display:block;}

nav ul{
	list-style:none;
	margin:0;
	padding:0;
	display:flex;
	gap:15px;
}
nav a{
	text-decoration:none;
	color:#fff;
	font-weight:bold;
}

/* Hamburger */
.menu-toggle{
	display:none;                 /* shown on mobile via media query/JS */
	align-items:center;
	justify-content:center;
	flex-direction:column;        /* stack bars vertically */
	gap:6px;                      /* space between bars */
	padding:10px;
	min-width:44px;
	min-height:44px;
	border:1px solid #333;
	background:#111;
	border-radius:8px;
	cursor:pointer;
}
.menu-toggle .bar{
	width:28px;
	height:3px;
	background:#fff;
	border-radius:2px;
	display:block;
}

/* Main */
main{
	text-align:center;
}

.aqua { color: aqua; }

.warning {
	color: #ff4500;
	font-size: 2.2em;
	font-weight: bold;
	margin-top: 8px;
	text-align: center;
}

/* Dialogs */
dialog{
	border:none;
	border-radius:12px;
	padding:20px;
	background:#f4f4f4;
	max-width:640px;
	width:min(92vw,640px);
	text-align:left;
}
dialog::backdrop{background:rgba(0,0,0,.5);}
dialog h2{color:#222;margin:0 0 10px;}
dialog p, dialog li, dialog a{color:#333;}
dialog a{color:#0073e6; text-decoration:none;}
dialog a:hover{text-decoration:underline;}
.services-list{margin:.5rem 0 0; padding-left:1.2rem; gap:30px;}


/* Rows layout */
.rows{
	display:flex;
	flex-direction:column;
	gap:20px;
	margin:24px;
}
.image-row{
	display:flex;
	align-items:center;
	gap:var(--gap);
	padding:var(--row-pad);              /* space inside outer border */
	border:1px solid #222;
	border-radius:10px;
	background:#0a0a0a;
}
.media,.content{
	flex:0 0 50%;
	max-width:50%;
	min-width:0;
}
.media img{width:100%; height:auto; display:block; border-radius:6px;}
.content{line-height:1.5; padding:0;}

/* Odd rows: image left, text left; add outer RIGHT padding so text doesn't hug border */
.rows .image-row:nth-child(odd) .content{
	text-align:left;
	padding-right:var(--outer-pad);
}

/* Even rows: image right, text right; reverse row and add outer LEFT padding */
.rows .image-row:nth-child(even){flex-direction:row-reverse;}
.rows .image-row:nth-child(even) .content{
	text-align:right;
	padding-left:var(--outer-pad);
}

/* Add space between items */
.services-list li + li {
	margin-top: 10px;        /* increase/decrease to taste */
}

/* Make each row taller (bigger tap target) */
.services-list a {
	display: block;
	padding-top: 6px;
	padding-bottom: 6px;
	line-height: 1.4;
}

/* Mobile */
@media (max-width:700px){
	header{flex-wrap:wrap;}
	.brand img{height:48px;}
	.menu-toggle{display:inline-flex;}

	nav#primary-nav{
		width:100%;
		border-top:1px solid #222;
	}
	nav#primary-nav[hidden]{display:none;}
	nav#primary-nav ul{flex-direction:column; gap:0;}
	nav#primary-nav li+li{border-top:1px solid #111;}
	nav#primary-nav a{display:block; padding:12px 0;}

	.rows .image-row,
	.rows .image-row:nth-child(even){
		flex-direction:column; align-items:stretch;
	}
	.rows .image-row .media,
	.rows .image-row .content{
		flex:1 1 100%; max-width:100%;
	}
	.rows .image-row .content{
		text-align:left; padding:clamp(12px,4vw,20px);
	}
}
/* optional container used by partials */
.wrap{max-width:1100px;margin:0 auto;padding:clamp(16px,4vw,32px)}
/* Approach cards used inside service fragments */
.approach{max-width:1100px;margin:0 auto;padding:clamp(16px,4vw,32px)}
.approach-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:clamp(12px,2vw,20px)}
.approach-card{border:1px solid #e2e8f0;border-radius:14px;padding:16px 16px 18px;background:#fff;color:#000;box-shadow:0 4px 14px rgba(0,0,0,.04)}
.approach-chip{display:inline-block;font-size:.78rem;letter-spacing:.2px;margin-bottom:8px;padding:4px 10px;border-radius:999px;background:#eef4ff;border:1px solid #dbe7ff;color:#1e3a8a}
.approach-card h3{margin:.2rem 0 .4rem;font-size:1.15rem;line-height:1.35}
.approach-card p{margin:0;color:#374151}

/*
@media (prefers-color-scheme: dark){
	.approach-card{background:#12151a;border-color:#2a3544;box-shadow:0 6px 18px rgba(0,0,0,.25)}
	.approach-chip{background:#1f2a3a;border-color:#2a3544;color:#9ec1ff}
	.approach-card p{color:#c7d2fe}
}
*/

/* Kill any accidental focus outline on initial load only */
.no-initial-focus :is(h1,h2,h3,h4,h5,h6):focus { outline: none !important; }

/* ===== Contacts page layout & readable link colors ===== */

/* Put Patrick & Richard side-by-side on ONE row */
.people-row{
  display: flex;
  gap: var(--gap);
  align-items: stretch;
  margin: 24px;
}

.people-row > *{
	flex: 1 1 0;
	min-width: 0px;
}

/* Contact info + form grid below */
.contact-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin: 24px;
}

/* Cards & form panel look good on black */
.contact-card, .contact-form{
  border: 1px solid #222;
  border-radius: 10px;
	color: #000;
  background: #CAE7D7;
  padding: var(--row-pad);
}


/* Put this in your styles.css */
.contact-card { text-align: left; }

.contact-card label {
  display: block;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
}

.contact-card input,
.contact-card select {
  display: block;
  width: 100%;
  max-width: 28rem;   /* tweak as you like */
  padding: 0.5rem;
  box-sizing: border-box;
}

.contact-card .contact-link {
  display: inline-block;
  margin-top: 0.75rem;
}

.contact-card .wo-form textarea {
  width: 100%;
  padding: 0.5rem;
  box-sizing: border-box;
  resize: vertical;
}

/* Make links readable on black (not blue) */
.people-row a,
.contact-card a{
  color: #e5e7eb !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.people-row a:hover,
.contact-card a:hover,
.contact-form a:hover,
.people-row a:focus-visible,
.contact-card a:focus-visible,
.contact-form a:focus-visible{
  color: #ffffff !important;
  outline: 2px solid #ffffff;        /* clear keyboard focus */
  outline-offset: 2px;
}

/* Optional: tone down blue in the top nav hover too */
nav a:hover{ color: #f5f5f5; }     /* overrides the earlier #0073e6 */

@media (max-width: 800px){
  .contact-grid{ grid-template-columns: 1fr; } /* stacks the info + form only */
}

/* --- People row: responsive columns (overrides earlier flex rule) --- */
.people-row{
  display: grid !important;                  /* override earlier display:flex */
  grid-template-columns: repeat(3, minmax(0, 1fr));  /* desktop/tablet */
  gap: var(--gap, 16px);
  margin: 24px;                              /* keep your spacing */
}
.people-row > *{ min-width: 0; }             /* prevent overflow pushing wraps */

/* Mobile wide (<= 768px): two per row */
@media (max-width: 768px){
  .people-row{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile narrow (<= 480px): stacked (one per row) */
@media (max-width: 480px){
  .people-row{ grid-template-columns: 1fr; }
}

/* Left-justify default page content inside <main> */
main { text-align: left; }

/* Keep service rows left-aligned even when image is on the right */
.rows .image-row:nth-child(even) .content { text-align: left; }

/* Contacts page: default left, but center the names */
body[data-service="contacts"] .contact-card { text-align: left; }
body[data-service="contacts"] .contact-card :is(h2, h3, .name) { text-align: center; }

h1 { text-align: center; }

/* Unify contact link color across list and card */
.contact-link {
  color: inherit;                 /* use the surrounding text color */
  text-decoration: underline;
}

/* Beat the earlier .contact-card a { ... } rule */
.contact-card a.contact-link {
  color: inherit !important;      /* ensures same color as in lists */
}

/* Make the message box fill a good portion of the screen */
/* At least 8 lines tall, but can grow with the screen */
.fill-viewport {
  width: 100%;
  /* Use the element’s line-height if supported, else a sensible fallback */
  min-height: max(calc(8 * 1lh), 45svh);
  resize: vertical;
}
@supports not (height: 1lh) {
  .fill-viewport { min-height: max(10em, 45svh); } /* approx 8 lines */
}

/* Make the “Forgot password?” and “Request access” links visible and spaced */
.contact-form .row a.alt,
.contact-form .actions a.alt {
  display: inline-block;
  color: #000;                 /* or your accent, e.g. #0073e6 */
  text-decoration: underline;
}

.contact-form .actions {
  display: flex;               /* ensure the link sits next to the button */
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;             /* so it doesn’t get pushed off-screen */
}

/* Vendor Login: readable links on light panel */
body[data-service="login"] .contact-form { background:#CAE7D7 !important; color:#000; }
body[data-service="login"] .contact-form a { color:#000 !important; }
body[data-service="login"] .contact-form .actions { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }

.contact-duo { grid-template-columns: 1fr 1fr; }

#wcbs-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  border-bottom: 1px solid #ddd;
}

.app-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 0;
  flex: 1;
}

.app-sidebar {
  border-right: 1px solid #ddd;
  padding: .75rem;
}

.app-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-sidebar button {
  display: block;
  width: 100%;
  text-align: left;
  padding: .4rem .5rem;
  border: none;
  background: none;
  cursor: pointer;
}

.app-content {
  padding: .75rem 1rem;
  overflow: auto;
}

.menu-section {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #0a1f1a;            /* MUCH darker, highly readable */
  border-left: 6px solid #8ac8af;
  padding-left: 10px;
  font-weight: 600;
}

/* Center the menu header (H1 + P) on the menu partial */
body[data-service="menu"] .menu-header {
  margin: 0 auto 1.5rem;
  text-align: center;
  width: 100%;
}

