/* Global spinner overlay */
#globalSpinnerOverlay {
	position: fixed;
	inset: 0;
	background: rgba(44, 53, 57, 0.35);
	display: none;
	z-index: 1050; /* above navbar/modals */
	backdrop-filter: blur(2px);
}
#globalSpinnerOverlay .spinner-box {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #ffffff;
	padding: 16px;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Fixed navbar with scroll-based theming */
:root {
	--navbar-height: 64px;
}

.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1040;
	transition: background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.navbar-placeholder {
	height: var(--navbar-height);
}

.nav-transition .nav-link,
.nav-transition .navbar-brand,
.nav-transition .navbar-text,
.nav-transition .navbar-toggler {
	transition: color 0.2s ease, border-color 0.2s ease;
}

.navbar.navbar-transparent {
	background: transparent;
	box-shadow: none;
}

.navbar.navbar-solid {
	background: #ffffff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.navbar.navbar-transparent .nav-link,
.navbar.navbar-transparent .navbar-brand,
.navbar.navbar-transparent .navbar-text {
	color: #ffffff;
}

.navbar.navbar-transparent .nav-link:hover,
.navbar.navbar-transparent .nav-link:focus {
	color: rgba(255, 255, 255, 0.8);
}

.navbar.navbar-solid .nav-link,
.navbar.navbar-solid .navbar-brand,
.navbar.navbar-solid .navbar-text {
	color: #2C3539;
}

.navbar.navbar-solid .nav-link:hover,
.navbar.navbar-solid .nav-link:focus {
	color: #0A7A8C;
}

.navbar-transparent .navbar-toggler {
	border-color: rgba(255, 255, 255, 0.55);
}

.navbar-transparent .navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-solid .navbar-toggler {
	border-color: rgba(0, 0, 0, 0.25);
}

.navbar-solid .navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28044, 044, 044, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile menu styling - only on narrow screens when hamburger is showing */
@media (max-width: 991.98px) {
	.navbar-transparent .navbar-collapse {
		background: #ffffff;
		border-radius: 0 0 8px 8px;
		padding: 12px 0;
		margin-top: 8px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	}

	.navbar-transparent .navbar-collapse .nav-link {
		color: #2C3539;
	}

	.navbar-transparent .navbar-collapse .nav-link:hover,
	.navbar-transparent .navbar-collapse .nav-link:focus {
		color: #0A7A8C;
		background: rgba(10, 122, 140, 0.08);
	}

	.navbar-transparent .navbar-collapse .dropdown-menu {
		background: #f8f9fa;
		border: none;
		box-shadow: none;
	}

	.navbar-transparent .navbar-collapse .dropdown-item {
		color: #2C3539;
	}

	.navbar-transparent .navbar-collapse .dropdown-item:hover,
	.navbar-transparent .navbar-collapse .dropdown-item:focus {
		color: #0A7A8C;
		background: rgba(10, 122, 140, 0.08);
	}
}

/* Dropdown menus in transparent navbar (desktop) */
.navbar-transparent .dropdown-menu {
	background: rgba(255, 255, 255, 0.98);
	border: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-transparent .dropdown-item {
	color: #2C3539;
}

.navbar-transparent .dropdown-item:hover,
.navbar-transparent .dropdown-item:focus {
	color: #0A7A8C;
	background: rgba(10, 122, 140, 0.08);
}

.logo-nav {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.logo-mark-white { display: none; }

.logo-text-nav {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.5px;
	color: #2C3539;
}

.logo-text-nav .map { color: #0A7A8C; }
.logo-text-nav .outcomes { color: #2D5F3F; }

.navbar-transparent .logo-mark-white { display: inline-flex; }
.navbar-transparent .logo-mark-color { display: none; }
.navbar-transparent .logo-text-nav,
.navbar-transparent .logo-text-nav .map,
.navbar-transparent .logo-text-nav .outcomes {
	color: #ffffff;
}

/* Topographic overlay (light grid) */
.topo-bg-light {
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(
			0deg,
			transparent,
			transparent 50px,
			rgba(255, 255, 255, 0.14) 50px,
			rgba(255, 255, 255, 0.14) 51px
		),
		repeating-linear-gradient(
			90deg,
			transparent,
			transparent 50px,
			rgba(255, 255, 255, 0.14) 50px,
			rgba(255, 255, 255, 0.14) 51px
		);
	opacity: 0.4;
	pointer-events: none;
	z-index: 0;
}

/* Shared hero gradient shell for login/register/index */
.linear-gradient {
	position: relative;
	background: linear-gradient(135deg, rgba(10,122,140, 1) 0%, rgba(45,95,63, 1) 100%);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	overflow: hidden;
}

/* Header banner variant: keeps gradient + overlay without flex centering
   and uses a shorter height suitable for admin/user pages */
.nav-hero.linear-gradient {
	height: var(--navbar-height);
	min-height: 0;                      /* override min-height for nav-hero */
	display: block;
	padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    pointer-events: none;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--topographic-teal: #0A7A8C;
	--contour-green: #2D5F3F;
	--parchment-cream: #F4F1E8;
	--compass-gold: #C9A661;
	--route-red: #B4534E;
	--elevation-brown: #6B5A47;
	--charcoal: #2C3539;
	--slate-gray: #5A6C75;
	--mist: #E8EBED;
	--white: #FFFFFF;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: var(--parchment-cream);
	color: var(--charcoal);
	line-height: 1.6;
	/* branding2.html uses body padding; keep default here and override for branding.html */
	padding: 40px 20px;
}

/* branding.html uses body.topo-bg and expects no extra padding */
body.topo-bg {
	padding: 0;
}

/* Topographic Background Pattern */
.topo-bg {
	background-image:
		repeating-linear-gradient(
			0deg,
			transparent,
			transparent 50px,
			rgba(10, 122, 140, 0.03) 50px,
			rgba(10, 122, 140, 0.03) 51px
		),
		repeating-linear-gradient(
			90deg,
			transparent,
			transparent 50px,
			rgba(10, 122, 140, 0.03) 50px,
			rgba(10, 122, 140, 0.03) 51px
		);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* branding2 prefers a wider container; apply when body is not topo-bg */
body:not(.topo-bg) .container {
	max-width: 1400px;
}

header {
	background: var(--white);
	border-bottom: 2px solid var(--mist);
	padding: 24px 0;
	margin-bottom: 60px;
}

.header-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo-pathfinder {
	display: flex;
	align-items: center;
	gap: 12px;
}

.compass-icon {
	width: 48px;
	height: 48px;
	position: relative;
}

.compass-icon svg {
	width: 100%;
	height: 100%;
	transition: transform 0.6s ease;
	filter: drop-shadow(0 2px 4px rgba(10, 122, 140, 0.15));
}

.logo-pathfinder:hover .compass-icon svg {
	transform: rotate(45deg);
}

.logo-text {
	font-size: 28px;
	font-weight: 600;
	color: var(--charcoal);
	letter-spacing: 0.5px;
}

.logo-text .map { color: var(--topographic-teal); }
.logo-text .outcomes { color: var(--contour-green); }

.tagline {
	font-size: 14px;
	color: var(--slate-gray);
	font-style: italic;
}

/* Section Styling (branding.html) */
section {
	background: var(--white);
	border-radius: 0px;
	padding: 40px;
	margin-bottom: 40px;
	box-shadow: 0 2px 8px rgba(44, 53, 57, 0.08);
	border: 1px solid var(--mist);
	position: relative;
	overflow: hidden;
}

section::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 200px;
	height: 200px;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23E8EBED" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="%23E8EBED" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="%23E8EBED" stroke-width="0.5"/><line x1="50" y1="10" x2="50" y2="20" stroke="%23E8EBED" stroke-width="1"/><line x1="50" y1="80" x2="50" y2="90" stroke="%23E8EBED" stroke-width="1"/><line x1="10" y1="50" x2="20" y2="50" stroke="%23E8EBED" stroke-width="1"/><line x1="80" y1="50" x2="90" y2="50" stroke="%23E8EBED" stroke-width="1"/></svg>') no-repeat;
	background-size: contain;
	opacity: 0.4;
	pointer-events: none;
}

h1 {
	font-size: 36px;
	color: var(--charcoal);
	margin-bottom: 12px;
	font-weight: 700;
	text-align: left;
}

h2 {
	font-size: 28px;
	color: var(--charcoal);
    margin-top: 80px;              /* for adding space below the navbar */
	margin-bottom: 15px;
	font-weight: 600;
	position: relative;
	z-index: 1;
}

h3 {
	font-size: 20px;
	color: var(--topographic-teal);
	margin-bottom: 16px;
	font-weight: 600;
}

/* Color Palette (branding.html) */
.color-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px;
	margin-top: 24px;
}

.color-card {
	border: 1px solid var(--mist);
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(44, 53, 57, 0.12);
}

.color-swatch {
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: 600;
	font-size: 18px;
	text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.color-info { padding: 16px; background: var(--white); }
.color-name { font-weight: 600; color: var(--charcoal); margin-bottom: 4px; }
.color-hex { font-family: 'Courier New', monospace; color: var(--slate-gray); font-size: 14px; }
.color-usage { font-size: 12px; color: var(--slate-gray); margin-top: 8px; }

/* Logo Variations (branding.html) */
.logo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 32px;
	margin-top: 32px;
}

.logo-variant {
	text-align: center;
	padding: 32px;
	border: 1px solid var(--mist);
	border-radius: 8px;
	transition: all 0.3s ease;
}

.logo-variant:hover {
	border-color: var(--topographic-teal);
	box-shadow: 0 4px 12px rgba(10, 122, 140, 0.1);
}

.logo-variant h4 {
	margin-top: 16px;
	color: var(--slate-gray);
	font-size: 14px;
	font-weight: 500;
}

/* Icon System (branding.html) */
.icon-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 24px;
	margin-top: 24px;
}

.icon-item {
	text-align: center;
	padding: 24px 16px;
	border: 1px solid var(--mist);
	border-radius: 8px;
	transition: all 0.3s ease;
}

.icon-item:hover {
	background: var(--parchment-cream);
	border-color: var(--topographic-teal);
	transform: translateY(-2px);
}

.icon-item svg {
	width: 48px;
	height: 48px;
	stroke: var(--topographic-teal);
	margin-bottom: 12px;
	transition: all 0.3s ease;
}

.icon-item:hover svg {
	stroke: var(--contour-green);
	transform: scale(1.1);
}

.icon-label { font-size: 12px; color: var(--slate-gray); font-weight: 500; }

/* Button Styles (branding.html) */
.button-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 24px;
}

.btn {
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: inherit;
}

.btn-primary {
	background: var(--compass-gold);
	color: var(--white);
	box-shadow: 0 2px 4px rgba(201, 166, 97, 0.2);
}

.btn-primary:hover {
	background: #B8954E;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(201, 166, 97, 0.3);
}

.btn-create {
	background: var(--topographic-teal);
	color: var(--white);
	box-shadow: 0 2px 4px rgba(45, 95, 63, 0.2);
}

.btn-create:hover {
	background: var(--topographic-teal);
    color: var(--white);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(45, 95, 63, 0.3);
}

.btn-update {
	background: var(--compass-gold);
	color: var(--white);
	box-shadow: 0 2px 4px rgba(201, 166, 97, 0.2);
}

.btn-update:hover {
	background: #B8954E;
    color: var(--white);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(201, 166, 97, 0.3);
}

.btn-delete {
    background: var(--route-red);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(180, 83, 78, 0.2);
}
.btn-delete:hover {
    background: var(--route-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(180, 83, 78, 0.3);
}

.btn-clear {
    background: var(--slate-gray);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(107, 90, 71, 0.2);
}
.btn-clear:hover {
    background: var(--white);
    color: var(--slate-gray);
    transform: translateY(-2px);
    border: 1px solid var(--slate-gray);
    box-shadow: 0 4px 8px rgba(107, 90, 71, 0.3);
}

.btn-import {
    background: var(--topographic-teal);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(44, 53, 57, 0.2);
}
.btn-import:hover {
    background: var(--white);
    transform: translateY(-2px);
    color: var(--topographic-teal);
    box-shadow: 0 4px 8px rgba(44, 53, 57, 0.3);
    border: 1px solid var(--topographic-teal);
}

.btn-export {
    background: var(--compass-gold);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(90, 108, 117, 0.2);
}
.btn-export:hover {
    background: var(--white);
    color: var(--compass-gold);
    transform: translateY(-2px);
    border: 1px solid var(--compass-gold);
    box-shadow: 0 4px 8px rgba(90, 108, 117, 0.3);
}

.btn-destroy {
    background: var(--route-red);
    color: var(--mist);
    box-shadow: 0 2px 4px rgba(232, 235, 237, 0.2);
}
.btn-destroy:hover {
    background: var(--mist);
    color: var(--route-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(232, 235, 237, 0.3);
    border: 1px solid var(--route-red);
}

.btn-ghost { 
    background: transparent; 
    color: var(--elevation-brown); 
    border: 1px solid var(--mist); 
}

.btn-ghost:hover { 
    background: var(--mist); 
}

/* Cards (branding.html) */
.card-examples {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	margin-top: 24px;
}

.card {
	background: var(--white);
	border: 1px solid var(--mist);
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(44, 53, 57, 0.08);
	transition: all 0.3s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(44, 53, 57, 0.12); }
.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-icon { width: 40px; height: 40px; background: var(--parchment-cream); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.card-icon svg { width: 24px; height: 24px; stroke: var(--topographic-teal); }
.card h4 { font-size: 18px; color: var(--charcoal); font-weight: 600; }
.card p { color: var(--slate-gray); font-size: 14px; line-height: 1.6; }
.card-footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--mist); display: flex; align-items: center; justify-content: space-between; }
.status-badge { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.status-complete { background: rgba(45, 95, 63, 0.1); color: var(--contour-green); }
.status-progress { background: rgba(10, 122, 140, 0.1); color: var(--topographic-teal); }

/* Route Lines (branding.html) */
.route-demo { margin-top: 32px; padding: 40px; background: var(--parchment-cream); border-radius: 8px; position: relative; }
.route-points { display: flex; justify-content: space-between; align-items: center; position: relative; }
.route-line { position: absolute; top: 50%; left: 10%; right: 10%; height: 3px; background: var(--topographic-teal); border-style: dashed; border-width: 3px 0 0 0; border-color: var(--topographic-teal); }
.route-line::after { content: ''; position: absolute; right: 0; top: -4px; width: 0; height: 0; border-left: 8px solid var(--topographic-teal); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.pin { width: 60px; height: 60px; background: var(--white); border: 3px solid var(--topographic-teal); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 8px rgba(10, 122, 140, 0.2); position: relative; z-index: 2; transition: all 0.3s ease; }
.pin:hover { transform: rotate(-45deg) scale(1.1); box-shadow: 0 6px 12px rgba(10, 122, 140, 0.3); }
.pin-inner { transform: rotate(45deg); font-weight: 600; color: var(--topographic-teal); font-size: 14px; }
.pin.complete { border-color: var(--contour-green); background: var(--contour-green); }
.pin.complete .pin-inner { color: var(--white); }
.pin-label { position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--slate-gray); white-space: nowrap; font-weight: 500; }

/* Progress Bar (branding.html) */
.progress-demo { margin-top: 32px; }
.progress-bar { height: 12px; background: var(--mist); border-radius: 6px; overflow: hidden; position: relative; margin-bottom: 8px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--contour-green), var(--topographic-teal)); border-radius: 6px; transition: width 1s ease; position: relative; }
.progress-fill::after { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; background: var(--compass-gold); border-radius: 50%; box-shadow: 0 2px 4px rgba(201, 166, 97, 0.4); }
.progress-label { display: flex; justify-content: space-between; font-size: 14px; color: var(--slate-gray); margin-bottom: 16px; }

/* Showcase (branding2.html) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 32px; margin-bottom: 40px; }
.showcase-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(44, 53, 57, 0.08); border: 1px solid var(--mist); }
.showcase-header { padding: 20px 24px; background: var(--parchment-cream); border-bottom: 1px solid var(--mist); }
.showcase-header h3 { font-size: 18px; color: var(--topographic-teal); font-weight: 600; }
.showcase-header p { font-size: 14px; color: var(--slate-gray); margin-top: 4px; }
.showcase-content { padding: 40px; display: flex; align-items: center; justify-content: center; min-height: 250px; }
.subtitle { text-align: center; color: var(--slate-gray); font-size: 18px; margin-bottom: 60px; }

/* Dark Hero Section (branding2.html) */
.hero-dark { background: linear-gradient(135deg, #0A7A8C 0%, #2D5F3F 100%); }
.hero-content { text-align: center; color: white; }
.logo-hero { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 24px; transition: transform 0.3s ease; }
.logo-hero:hover { transform: scale(1.05); }
.logo-hero svg { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)); }
.logo-text-hero { font-size: 48px; font-weight: 700; letter-spacing: -0.5px; }
.hero-tagline { font-size: 20px; opacity: 0.95; margin-bottom: 32px; }
.cta-button { background: var(--compass-gold); color: white; padding: 16px 40px; border-radius: 8px; font-size: 18px; font-weight: 600; border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(201, 166, 97, 0.3); transition: all 0.3s ease; }
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201, 166, 97, 0.4); background: #B8954E; }

/* Light Header (branding2.html) */
.header-light { background: var(--white); padding: 20px; border-radius: 8px; }
.nav-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.logo-nav { display: flex; align-items: center; gap: 12px; transition: transform 0.3s ease; }
.logo-nav:hover svg { transform: rotate(45deg); }
.logo-nav svg { transition: transform 0.6s ease; }
.logo-text-nav { font-size: 28px; font-weight: 600; }
.logo-text-nav .map { color: var(--topographic-teal); }
.logo-text-nav .outcomes { color: var(--contour-green); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--slate-gray); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--topographic-teal); }

/* Favicon Demo (branding2.html) */
.favicon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 24px; text-align: center; }
.favicon-item { padding: 20px; background: var(--parchment-cream); border-radius: 8px; }
.favicon-item svg { margin-bottom: 12px; }
.favicon-label { font-size: 12px; color: var(--slate-gray); font-weight: 500; }

/* App Icon (branding2.html) */
.app-icon-demo { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.phone-mockup { width: 280px; height: 560px; background: #1C1C1E; border-radius: 40px; padding: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); position: relative; }
.phone-screen { width: 100%; height: 100%; background: linear-gradient(180deg, #1C1C1E 0%, #2C2C2E 100%); border-radius: 32px; padding: 60px 20px 20px 20px; overflow: hidden; }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.app-icon { width: 100%; aspect-ratio: 1; border-radius: 22%; overflow: hidden; background: var(--charcoal); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); transition: transform 0.2s ease; }
.app-icon:hover { transform: scale(1.1); }
.app-icon.mapoutcomes { background: linear-gradient(135deg, #0A7A8C 0%, #2D5F3F 100%); }
.app-icon svg { width: 70%; height: 70%; }

/* Business Card (branding2.html) */
.business-card { width: 100%; max-width: 500px; height: 280px; background: var(--charcoal); border-radius: 12px; padding: 32px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.business-card::before { content: ''; position: absolute; top: 0; right: 0; width: 300px; height: 300px; background: radial-gradient(circle, rgba(10, 122, 140, 0.15) 0%, transparent 70%); }
.card-logo-section { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.card-logo-text { font-size: 32px; font-weight: 700; color: white; }
.card-info { position: relative; z-index: 1; }
.card-name { font-size: 20px; font-weight: 600; color: white; margin-bottom: 4px; }
.card-title { font-size: 14px; color: var(--compass-gold); margin-bottom: 16px; }
.card-contact { font-size: 13px; color: rgba(255, 255, 255, 0.7); line-height: 1.8; }

/* Email Signature (branding2.html) */
.email-signature { background: white; padding: 24px; border-left: 4px solid var(--topographic-teal); font-family: Arial, sans-serif; }
.sig-logo-line { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sig-name { font-size: 18px; font-weight: 700; color: var(--charcoal); margin-bottom: 2px; }
.sig-title { font-size: 14px; color: var(--topographic-teal); margin-bottom: 12px; }
.sig-company { font-size: 16px; font-weight: 600; color: var(--charcoal); margin-bottom: 8px; }
.sig-contact { font-size: 13px; color: var(--slate-gray); line-height: 1.6; }

/* Loading Animation (branding2.html) */
.loading-demo { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.spinner { animation: spin 2s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.loading-text { font-size: 16px; color: var(--slate-gray); font-weight: 500; }

/* Social Media (branding2.html) */
.social-preview { width: 100%; max-width: 500px; background: white; border: 1px solid var(--mist); border-radius: 8px; overflow: hidden; }
.social-header { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--mist); }
.social-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--topographic-teal), var(--contour-green)); display: flex; align-items: center; justify-content: center; }
.social-info h4 { font-size: 15px; font-weight: 600; color: var(--charcoal); }
.social-info p { font-size: 13px; color: var(--slate-gray); }
.social-content { padding: 16px; }
.social-text { font-size: 14px; color: var(--charcoal); margin-bottom: 12px; }
.social-image { width: 100%; height: 200px; background: linear-gradient(135deg, #0A7A8C 0%, #2D5F3F 100%); display: flex; align-items: center; justify-content: center; border-radius: 8px; }

/* Animation (branding.html) */
@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

section { animation: fadeInUp 0.6s ease forwards; }
section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }

/* Responsive */
@media (max-width: 768px) {
	/* branding.html adjustments */
	.header-content { flex-direction: column; text-align: center; }
	.logo-text { font-size: 24px; }
	section { padding: 24px; }
	h1 { font-size: 28px; text-align: center; }
	h2 { font-size: 24px; }
	.route-points { flex-direction: column; gap: 80px; }
	.route-line { width: 3px; height: calc(100% - 100px); left: 50%; top: 60px; border-style: none; border-left: 3px dashed var(--topographic-teal); }
	.route-line::after { left: -5px; bottom: -8px; top: auto; transform: rotate(90deg); }

	/* branding2 adjustments */
	.grid { grid-template-columns: 1fr; }
	.nav-bar { flex-direction: column; }
	.phone-mockup { width: 240px; height: 480px; }
	.business-card { height: auto; min-height: 280px; }
	h1 { font-size: 32px; }
}

/* Hero section styles (index.php landing hero) */
.hero {
	min-height: 72vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 20px;
	color: #fff;
	text-align: center;
	background:
		linear-gradient(rgba(2,8,23,0.55), rgba(2,8,23,0.55));
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(2,8,23,0.35);
}

.hero .container {
	max-width: 1100px;
	width: 100%;
}

.hero h2 {
	font-size: clamp(28px, 4.5vw, 44px);
	margin: 0 0 12px;
	letter-spacing: 0.2px;
}

.hero p.lead {
	font-size: clamp(15px, 2.2vw, 18px);
	margin: 0 0 20px;
	opacity: 0.95;
}

.cta {
	display: inline-block;
	background: linear-gradient(90deg,#ffd166,#ffb703);
	color: #04293a;
	padding: 12px 22px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(255,183,3,0.18);
	transition: transform .15s ease, box-shadow .15s ease;
}

.cta:hover,
.cta:focus {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(2,8,23,0.38);
}

.features {
	display: flex;
	gap: 16px;
	justify-content: center;
	margin-top: 26px;
	flex-wrap: wrap;
}

.feature {
	background: rgba(255,255,255,0.06);
	padding: 10px 14px;
	border-radius: 10px;
	min-width: 160px;
	font-weight: 600;
	font-size: 14px;
	color: #e6f0f6;
}

@media (max-width: 640px) {
	.hero { padding: 36px 16px; min-height: 60vh; }
	.features { flex-direction: column; align-items: center; }
}

/* Hero section styles (index.php landing hero) */
.hero {
	min-height: 72vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 20px;
	color: #fff;
	text-align: center;
	background:
		linear-gradient(rgba(2,8,23,0.55), rgba(2,8,23,0.55));
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(2,8,23,0.35);
}

.hero .container {
	max-width: 1100px;
	width: 100%;
}

.hero h2 {
	font-size: clamp(28px, 4.5vw, 44px);
	margin: 0 0 12px;
	letter-spacing: 0.2px;
}

.hero p.lead {
	font-size: clamp(15px, 2.2vw, 18px);
	margin: 0 0 20px;
	opacity: 0.95;
}

.cta {
	display: inline-block;
	background: linear-gradient(90deg,#ffd166,#ffb703);
	color: #04293a;
	padding: 12px 22px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(255,183,3,0.18);
	transition: transform .15s ease, box-shadow .15s ease;
}

.cta:hover,
.cta:focus {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(2,8,23,0.38);
}

.features {
	display: flex;
	gap: 16px;
	justify-content: center;
	margin-top: 26px;
	flex-wrap: wrap;
}

.feature {
	background: rgba(255,255,255,0.06);
	padding: 10px 14px;
	border-radius: 10px;
	min-width: 160px;
	font-weight: 600;
	font-size: 14px;
	color: #e6f0f6;
}

@media (max-width: 640px) {
	.hero { padding: 36px 16px; min-height: 60vh; }
	.features { flex-direction: column; align-items: center; }
}

/* Filter select boxes - global styling */
form[id*="FilterForm"] select,
form[id$="FilterForm"] select {
border-color: #ced4da;
}

form[id*="FilterForm"] select:focus,
form[id$="FilterForm"] select:focus {
border-color: #adb5bd;
box-shadow: 0 0 0 0.2rem rgba(206, 212, 218, 0.25);
}
