/* AI Business Path - Shared Styles */


/* General Page Styles */

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	color: #222222;
	background-color: #fbf8f3;
	line-height: 1.6;
}

h1, h2, h3 {
	font-family: Georgia, "Times New Roman", serif;
	color: #222222;
	margin-top: 0;
}

h1 {
	font-size: 2.75em;
}

h2 {
	font-size: 1.9em;
}

h3 {
	font-size: 1.3em;
}

p {
	max-width: 68ch;
}

a {
	color: #8c1d40;
}

a:hover {
	color: #641530;
}

img {
	max-width: 100%;
	display: block;
}

.container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 1.5em;
}


/* Header and Navigation */

.site-header {
	background-color: #fbf8f3;
	border-bottom: 1px solid #e4ded2;
	position: sticky;
	top: 0;
	z-index: 10;
}

.header-inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 1em 1.5em;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1em;
}

.brand {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.25em;
	font-weight: bold;
	color: #222222;
	text-decoration: none;
}

.brand span {
	color: #8c1d40;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5em;
}

.site-nav a {
	color: #222222;
	text-decoration: none;
	padding-bottom: 0.2em;
	border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	color: #8c1d40;
	border-bottom: 2px solid #ffc627;
}


/* Home Page Hero */

.hero {
	position: relative;
	min-height: 68vh;
	display: flex;
	align-items: flex-end;
	background-size: cover;
	background-position: center;
	color: white;
}

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(34, 31, 28, 0.55);
}

.hero-inner {
	position: relative;
	max-width: 1080px;
	width: 100%;
	margin: 0 auto;
	padding: 3em 1.5em;
}

.title-line {
	width: 48px;
	height: 3px;
	background-color: #ffc627;
	margin-bottom: 1em;
}

.home-hero {
	background-image: url("palm-walk-gallery.jpg");
}

.hero h1 {
	color: white;
	max-width: 14ch;
}

.hero p {
	color: #f1ebdc;
	font-size: 1.15em;
	max-width: 52ch;
}


/* Page Headers */

.page-header {
	padding: 3.5em 0 2.5em;
	border-bottom: 1px solid #e4ded2;
}

.page-label {
	color: #8c1d40;
	font-weight: bold;
	margin-bottom: 0.5em;
}

.page-header p {
	color: #6b655c;
	font-size: 1.15em;
}


/* Sections */

section {
	padding: 3.5em 0;
}

section + section {
	border-top: 1px solid #e4ded2;
}

.section-flush {
	border-top: none;
}


/* Cards */

.card-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5em;
	margin-top: 2em;
}

.card {
	flex: 1 1 250px;
	background-color: #f3eee4;
	border-top: 3px solid #8c1d40;
	padding: 1.75em;
}

.card h3 {
	margin-bottom: 0.6em;
}

.card p {
	color: #6b655c;
	max-width: none;
}

.card .stat {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.5em;
	color: #8c1d40;
	margin-bottom: 0.2em;
}


/* Image and Text Layout */

.split {
	display: flex;
	gap: 3em;
	align-items: center;
}

.split > div {
	flex: 1 1 0;
	min-width: 0;
}

.split > img {
	flex: 1 1 0;
	width: 50%;
	min-width: 0;
	height: auto;
	border: 1px solid #e4ded2;
}


/* Comparison Table */

.compare-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1.5em;
}

.compare-table th,
.compare-table td {
	text-align: left;
	padding: 0.85em 1em;
	border-bottom: 1px solid #e4ded2;
	vertical-align: top;
}

.compare-table thead th {
	font-family: Georgia, "Times New Roman", serif;
	color: #8c1d40;
	border-bottom: 2px solid #8c1d40;
}

.compare-table tbody th {
	color: #6b655c;
	font-weight: normal;
}

.compare-table .highlight {
	background-color: #f3eee4;
}

.table-note {
	margin-top: 1em;
	color: #6b655c;
	font-size: 0.9em;
}


/* Information List */

.plain-list {
	list-style: none;
	margin: 1.5em 0 0;
	padding: 0;
}

.plain-list li {
	padding: 0.9em 0;
	border-top: 1px solid #e4ded2;
	display: flex;
	gap: 1.5em;
}

.plain-list li:last-child {
	border-bottom: 1px solid #e4ded2;
}

.plain-list .tag {
	width: 140px;
	color: #8c1d40;
	font-weight: bold;
}


/* Callout Boxes */

.callout {
	background-color: #8c1d40;
	color: white;
	padding: 2em;
	margin-top: 2em;
}

.callout h3 {
	color: white;
}

.callout p {
	color: #f1ebdc;
	max-width: none;
}

.callout a {
	color: #ffc627;
	font-weight: bold;
}


/* Buttons */

.btn {
	display: inline-block;
	background-color: #8c1d40;
	color: white;
	text-decoration: none;
	padding: 0.7em 1.4em;
	border: 1px solid #8c1d40;
}

.btn:hover {
	background-color: #641530;
	color: white;
}

.btn-ghost {
	background-color: #ffffff;
	color: #8c1d40;
	border: 1px solid #ffffff;
}

.btn-ghost:hover {
	background-color: #f3eee4;
	color: #641530;
	border-color: #f3eee4;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	margin-top: 1.75em;
}


/* In-Progress Pages */

.stub {
	padding: 5em 0;
	text-align: center;
}

.stub .stat {
	color: #6b655c;
}


/* Footer */

.site-footer {
	border-top: 1px solid #e4ded2;
	margin-top: 2em;
}

.footer-inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 2.5em 1.5em;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1em;
}

.footer-inner p {
	margin: 0;
	font-size: 0.9em;
	color: #6b655c;
	max-width: 46ch;
}

.footer-note {
	text-align: right;
}

/* Mobile Navigation Toggle */

.menu-toggle {
	display: none;
}

.site-nav[hidden],
.menu-toggle[hidden] {
	display: none;
}
	
/* Tablet Styles */

@media (max-width: 760px) {

	.split {
		flex-direction: column;
		align-items: stretch;
	}

	.split > div,
	.split > img {
		width: 100%;
	}

	.site-nav {
		gap: 1em;
	}

	.compare-table {
		font-size: 0.9em;
	}
}


/* Mobile Styles */

@media (max-width: 600px) {

	.site-header {
		position: static;
	}

	.header-inner {
	flex-direction: row;
	align-items: center;
	flex-wrap: wrap;
	}

	.brand {
		flex: 1;
	}



	.menu-toggle {
		display: block;
		font: inherit;
		padding: 0.6em 1em;
		min-height: 44px;
		background-color: #fbf8f3;
		border: 1px solid #8c1d40;
		border-radius: 0;
		cursor: pointer;
		color: #8c1d40;
	}


	.site-nav {
		flex-basis: 100%;
		flex-direction: column;
		width: 100%;
		gap: 0;
	}

	.site-nav a {
		width: 100%;
		padding: 0.75em 0;
		border-bottom: 1px solid #e4ded2;
	}


	.plain-list li {
		flex-direction: column;
		gap: 0.3em;
	}

	.plain-list .tag {
		width: auto;
	}

	.footer-inner {
		flex-direction: column;
	}

	.footer-note {
		text-align: left;
	}

	h1 {
		font-size: 2.1em;
	}

	.hero {
		min-height: 60vh;
	}

	.card-grid {
		flex-direction: column;
	}
}
/* Housing comparison: square edges and plain labels. */
.housing-controls,
.housing-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
}

.housing-controls {
	margin: 2rem 0 1rem;
}

.housing-controls label,
.housing-panel label {
	display: block;
	font-weight: bold;
	margin: .6rem 0 .3rem;
}

.housing-controls input,
.housing-controls select,
.housing-panel input,
.housing-panel select {
	font: inherit;
	padding: .65rem;
	width: 100%;
	min-height: 44px;
	color: #222;
	background: #fff;
	border: 1px solid #756f66;
	border-radius: 0;
}

.housing-panel {
	min-width: 0;
	border-top: 3px solid #8c1d40;
	padding-top: 1.25rem;
}

.housing-panel h3 {
	margin-top: 1rem;
}

.housing-panel dl {
	margin: 1rem 0;
}

.housing-panel dt {
	font-weight: bold;
	margin-top: 1rem;
}

.housing-panel dd {
	margin: 0;
}

.housing-panel .amount {
	color: #8c1d40;
	font-size: 1.4rem;
	font-weight: bold;
}

.housing-panel .cost-output {
	border-top: 1px solid #b5ab9c;
	border-bottom: 1px solid #b5ab9c;
	margin: 1.25rem 0;
	padding: .75rem 0;
}

.field-error {
	color: #8c1d40;
	min-height: 1.5em;
	margin: .25em 0;
}

.comparison-status {
	border-top: 2px solid #8c1d40;
	padding-top: 1rem;
	max-width: none;
}

.table-scroll {
	overflow-x: auto;
}

.table-scroll table {
	min-width: 620px;
}

caption {
	text-align: left;
	font-weight: bold;
}

:focus-visible {
	outline: 3px solid #8c1d40;
	outline-offset: 3px;
}

@media(max-width:700px) {

	.housing-controls,
	.housing-columns {
		grid-template-columns: 1fr;
	}
}


/* Hide empty feedback messages to avoid unnecessary gaps. */

.field-error:empty {
	display: none;
}


/* Curriculum Accordion - Bootstrap Collapse */

#courseAccordion {
	margin: 1.5em 0 2em;
	border-top: 3px solid #8c1d40;
}

#courseAccordion .accordion-item {
	border-bottom: 1px solid #e4ded2;
}

#courseAccordion .accordion-header {
	margin: 0;
}

#courseAccordion .accordion-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	width: 100%;
	min-height: 48px;
	padding: 1em;
	border: 0;
	border-radius: 0;
	background-color: #f3eee4;
	color: #8c1d40;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

#courseAccordion .accordion-button:hover {
	background-color: #eae2d5;
}

#courseAccordion .accordion-button:not(.collapsed) {
	background-color: #8c1d40;
	color: #ffffff;
}

#courseAccordion .accordion-button::after {
	content: "";
	width: 0.5em;
	height: 0.5em;
	flex-shrink: 0;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

#courseAccordion .accordion-button:not(.collapsed)::after {
	transform: rotate(225deg);
}

#courseAccordion .accordion-button:focus-visible {
	outline: 3px solid #ffc627;
	outline-offset: -3px;
}

#courseAccordion .accordion-body {
	padding: 1.25em;
}

#courseAccordion .accordion-body p {
	margin: 0;
}

/* Visibility and animation used by Bootstrap's Collapse plugin. */

#courseAccordion .collapse:not(.show) {
	display: none;
}

#courseAccordion .collapsing {
	height: 0;
	overflow: hidden;
	transition: height 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {

	#courseAccordion .collapsing {
		transition: none;
	}
}

/* Housing Cards and Bootstrap Modal */

.housing-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5em;
	margin-top: 2em;
}

.housing-gallery-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1.25em;
	border-top: 3px solid #8c1d40;
	background-color: #f3eee4;
}

.housing-gallery-card > img,
.housing-image-placeholder {
	width: 100%;
	height: 220px;
	object-fit: contain;
	background-color: #ffffff;
	margin: 0 0 1.25em;
}

.housing-image-placeholder {
	display: grid;
	place-items: center;
	padding: 1em;
	text-align: center;
}

.housing-gallery-card .btn {
	margin-top: auto;
}

.housing-gallery-card button,
.housing-modal button {
	font: inherit;
	cursor: pointer;
	border-radius: 0;
	min-height: 44px;
}

.housing-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1055;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
}

.housing-modal .modal-dialog {
	position: relative;
	max-width: 1150px;
	margin: 1.5em auto;
	padding: 0 1em;
	pointer-events: none;
}

.housing-modal .modal-content {
	background-color: #fbf8f3;
	border-top: 4px solid #8c1d40;
	pointer-events: auto;
}

.housing-modal .modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	padding: 1.25em;
	border-bottom: 1px solid #e4ded2;
}

.housing-modal .modal-header h2 {
	margin: 0;
	font-size: 1.5em;
}

.housing-modal .modal-body {
	padding: 1.25em;
}

.housing-modal-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 2em;
}

#housingModalImage {
	width: 100%;
	height: 65vh;
	object-fit: contain;
	background-color: #ffffff;
}

.housing-image-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
}

.housing-modal [hidden] {
	display: none !important;
}

#housingModalDetails dt {
	font-weight: bold;
	color: #8c1d40;
	margin-top: 0.75em;
}

#housingModalDetails dd {
	margin: 0;
}

.modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1050;
	background-color: #000000;
	opacity: 0.55;
}

body.modal-open {
	overflow: hidden;
}

@media (max-width: 900px) {

	.housing-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.housing-modal-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {

	.housing-card-grid {
		grid-template-columns: 1fr;
	}

	.housing-modal .modal-dialog {
		margin: 0.5em auto;
		padding: 0 0.5em;
	}

	#housingModalImage {
		height: 50vh;
	}
}
