/* Shared font/reset/variables/body/.container/.btn family moved to
   base.css (loaded before this file on every page) - see that file.
   a/ul/ol reset kept here since it's slightly different from the
   shared default (ol included, a always shows var(--blue)). */
a {
	text-decoration: none;
	color: var(--blue);

	&:hover {
		text-decoration: underline;
	}
}

ul, ol {
	list-style: none;
}

/* =========================================================
   HERO BANNER
   Default sizing below is used by terms_of_use.php and
   privacy_agreement.php. corporate_outline.php's hero is taller
   and has an extra <h2> line, so it adds the "about-hero"
   modifier class and gets its own overrides just after.
========================================================= */

.hero-banner {
	background: url("img/hero-background.png") no-repeat center center;
	background-size: cover;
	min-height: calc(40vh - 80px);
	display: flex;
	align-items: center;

	&.about-hero {
		min-height: calc(60vh - 80px);

		& .hero-content h1 {
			font-size: 52px;
		}

		& .hero-content p {
			animation-delay: 0.4s;
		}
	}
}

.hero-content {
	& h1 {
		color: #fff;
		font-size: 40px;
		margin-bottom: 10px;
		opacity: 0;
		transform: translateY(30px);
		animation: fadeUp 0.8s ease forwards;
	}

	& p {
		font-weight: 300;
		color: #fff;
		font-size: 17px;
		opacity: 0;
		transform: translateY(30px);
		animation: fadeUp 0.8s ease forwards;
		animation-delay: 0.2s;
	}

	/* h2 styling is shared in base.css */
}


/* =========================================================
   SHARED SECTION LABEL / INTRO
========================================================= */

.main_inbox {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
}

.section-label {
	display: inline-block;
	margin-bottom: 18px;
	color: var(--blue);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.infrastructure-intro {
	max-width: 850px;
	margin: 0 auto 50px;
	text-align: center;

	& h2 {
		margin: 0 0 20px;
		color: var(--navy);
		font-size: clamp(2rem, 4vw, 2.8rem);
		font-weight: 700;
		line-height: 1.2;
		letter-spacing: -.02em;
	}

	& p {
		max-width: 800px;
		margin: 0 auto;
		color: var(--navy-dark);
		font-size: 17px;
		font-weight: 300;
		line-height: 1.8;
	}
}


/* =========================================================
   WHO WE ARE  (corporate_outline.php)
========================================================= */

.about-intro {
	padding: 100px 0 90px;
	background: #fff;
}

.about-intro-text {
	max-width: 850px;
	margin: 0 auto;
	text-align: center;

	& h2 {
		margin: 0 0 25px;
		color: var(--navy);
		font-size: clamp(2rem, 4vw, 2.8rem);
		font-weight: 700;
		line-height: 1.2;
		letter-spacing: -.02em;
	}

	& p {
		max-width: 800px;
		margin: 0 auto 18px;
		color: var(--navy-dark);
		font-size: 17px;
		font-weight: 300;
		line-height: 1.8;
		text-align: left;
	}
}


/* =========================================================
   CORPORATE PHILOSOPHY  (corporate_outline.php)
========================================================= */

.about-philosophy {
	padding: 90px 0;
	background: var(--gray-bg) url("img/curved_background.png") no-repeat center center;
	background-size: cover;

	& .infrastructure-intro h2 {
		color: #fff;
	}
}

.philosophy-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
}

.philosophy-card {
	display: flex;
	flex-direction: column;
	padding: 32px 28px;
	background: #fff;
	border: 1px solid var(--blue);
	border-radius: var(--radius);
	box-shadow: 0 4px 4px rgba(0, 0, 0, .08);
	transition:
		transform .25s ease,
		box-shadow .25s ease;

	&:hover {
		transform: translateY(-6px);
		box-shadow: 0 14px 28px rgba(0, 0, 0, .15);
	}

	& p {
		margin: 0;
		color: var(--navy-dark);
		font-size: 15px;
		font-weight: 300;
		line-height: 1.7;
	}
}

.strength-number {
	margin-bottom: 16px;
	color: var(--blue);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .08em;
}


/* =========================================================
   ABOUT THE COMPANY  (corporate_outline.php)
========================================================= */

.about-company {
	padding: 90px 0;
	background: #fff;
}

.about-company-layout {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 70px;
}

.about-company-title h2 {
	margin: 0;
	color: var(--navy);
	font-size: clamp(2rem, 4vw, 2.6rem);
	font-weight: 700;
	line-height: 1.2;
}

.about-company-details {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.company-detail {
	padding-bottom: 30px;
	border-bottom: 1px solid var(--border);

	&:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}

	& h3 {
		margin: 0 0 10px;
		color: var(--navy);
		font-size: 16px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: .04em;
	}

	& p {
		margin: 0;
		color: var(--navy-dark);
		font-size: 16px;
		font-weight: 300;
		line-height: 1.7;
	}
}

.client-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6px 30px;

	& li {
		position: relative;
		padding-left: 16px;
		color: var(--navy-dark);
		font-size: 16px;
		font-weight: 300;
		line-height: 1.7;

		&::before {
			content: "";
			position: absolute;
			left: 0;
			top: 11px;
			width: 6px;
			height: 6px;
			border-radius: 50%;
			background: var(--blue);
		}
	}
}

.company-detail-note {
	margin-top: 10px !important;
	color: var(--text-muted) !important;
	font-size: 14px !important;
}


/* =========================================================
   SERVICES / ACCORDION  (corporate_outline.php)
========================================================= */

.about-services {
	padding: 90px 0 110px;
	background: var(--gray-bg);
}

.service-list {
	max-width: 900px;
	margin: 0 auto;
	border-top: 1px solid var(--blue);
}

.service-item {
	border-bottom: 1px solid var(--blue);

	&.active {
		& .service-answer {
			display: block;
		}

		& .service-icon {
			transform: rotate(45deg);
			background: var(--blue);
			color: #fff;
			border-color: var(--blue);
		}

		& .service-question {
			color: var(--blue);
		}
	}
}

.service-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 22px 5px;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	color: var(--navy-dark);
	transition:
		color 0.2s ease,
		padding-left 0.2s ease;

	&:hover {
		color: var(--blue);
		padding-left: 10px;
	}
}

.service-question-label {
	font-size: 16px;
	line-height: 1.5;
	font-weight: 600;
}

.service-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid #d7e0e8;
	border-radius: 50%;
	color: var(--blue);
	font-size: 20px;
	line-height: 1;
	font-weight: 400;
	transition:
		transform 0.25s ease,
		background-color 0.25s ease,
		color 0.25s ease;
}

.service-answer {
	display: none;
	padding: 0 55px 24px 5px;
	color: #687583;
	font-size: 15px;
	line-height: 1.75;

	& p {
		margin: 0 0 10px;
	}

	& ul {
		margin: 0;
	}

	& li {
		position: relative;
		padding-left: 16px;
		margin-bottom: 6px;

		&::before {
			content: "";
			position: absolute;
			left: 0;
			top: 10px;
			width: 5px;
			height: 5px;
			border-radius: 50%;
			background: var(--blue);
		}
	}
}


/* =========================================================
   LEGAL CONTENT  (terms_of_use.php, privacy_agreement.php)
========================================================= */

.legal-content {
	padding: 80px 0 110px;
	background: #fff;
}

.legal-inner {
	max-width: 820px;
	margin: 0 auto;
}

.legal-intro-heading {
	margin: 0 0 20px;
	color: var(--navy);
	font-size: 22px;
	font-weight: 700;
}

.legal-intro {
	color: var(--navy-dark);
	font-size: 16px;
	line-height: 1.8;
	font-weight: 300;
	margin-bottom: 50px;

	& p + p {
		margin-top: 14px;
	}
}

.legal-heading {
	margin: 40px 0 16px;
	padding-top: 24px;
	border-top: 1px solid var(--blue);
	color: var(--navy);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}

.legal-section {
	&:first-of-type .legal-heading {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}

	& p,
	& > ol > li {
		color: var(--navy-dark);
		font-size: 16px;
		line-height: 1.8;
		font-weight: 300;
	}

	& ol {
		counter-reset: legal-counter;
		margin: 0;
	}

	& > ol > li {
		counter-increment: legal-counter;
		position: relative;
		padding-left: 32px;
		margin-bottom: 14px;

		&::before {
			content: counter(legal-counter) ".";
			position: absolute;
			left: 0;
			top: 0;
			color: var(--blue);
			font-weight: 600;
		}
	}

	& ol ol,
	& ol ul {
		counter-reset: legal-subcounter;
		margin: 10px 0 0;
	}

	& ol ol li {
		counter-increment: legal-subcounter;
		position: relative;
		padding-left: 28px;
		margin-bottom: 8px;
		font-size: 15px;

		&::before {
			content: "(" counter(legal-subcounter) ")";
			position: absolute;
			left: 0;
			top: 0;
			color: var(--navy-dark);
			font-weight: 400;
		}
	}

	& ul li {
		position: relative;
		padding-left: 18px;
		margin-bottom: 8px;
		font-size: 15px;

		&::before {
			content: "";
			position: absolute;
			left: 0;
			top: 9px;
			width: 5px;
			height: 5px;
			border-radius: 50%;
			background: var(--blue);
		}
	}
}

/* Label/value disclosure pairs (commercial_code.php) */
.legal-dl {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 0;

	& dt {
		padding: 18px 20px 18px 0;
		border-bottom: 1px solid var(--border);
		color: var(--navy);
		font-size: 15px;
		font-weight: 700;
	}

	& dd {
		margin: 0;
		padding: 18px 0;
		border-bottom: 1px solid var(--border);
		color: var(--navy-dark);
		font-size: 16px;
		font-weight: 300;
		line-height: 1.7;
	}

	& dt:last-of-type,
	& dd:last-of-type {
		border-bottom: 0;
	}
}

.legal-signature {
	margin-top: 50px;
	padding-top: 24px;
	border-top: 1px solid var(--blue);
	text-align: right;
	color: var(--navy-dark);
	font-size: 15px;
	line-height: 1.8;
	font-weight: 300;
}


/* =========================================================
   TABLET  (corporate_outline.php)
========================================================= */

@media (max-width: 1000px) {

	.philosophy-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.about-company-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

	.hero-content h1 {
		font-size: 30px;
	}

	.about-intro,
	.about-philosophy,
	.about-company,
	.about-services {
		padding: 60px 0;
	}

	.philosophy-grid {
		grid-template-columns: 1fr;
	}

	.client-list {
		grid-template-columns: 1fr;
	}

	.service-question {
		padding: 19px 0;
		gap: 15px;

		&:hover {
			padding-left: 0;
		}
	}

	.service-answer {
		padding: 0 30px 22px 0;
		font-size: 14px;
	}

	.legal-content {
		padding: 50px 0 70px;
	}

	.legal-heading {
		font-size: 18px;
	}

	.legal-section p,
	.legal-section > ol > li {
		font-size: 15px;
	}

	.legal-signature {
		text-align: left;
	}

	.legal-dl {
		grid-template-columns: 1fr;

		& dt {
			padding: 18px 0 4px;
			border-bottom: 0;
		}

		& dd {
			padding: 0 0 18px;
		}
	}
}
