/* ---------- Responsive Navigation ---------- */
.header .navigation {
	position: relative;
}

.header .navigation .brand {
	display: flex;
	justify-content: center;
	align-items: center;
}

.header .navigation .nav_toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0.35rem;
	background: transparent;
	border: 1px solid rgba(246, 247, 248, 0.25);
	border-radius: 0.5rem;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
}

.header .navigation .nav_toggle:hover {
	background: rgba(246, 247, 248, 0.08);
	transform: none;
}

.header .navigation .nav_toggle .bar {
	display: block;
	background: var(--white);
	border-radius: 0.2rem;
	width: 1.3rem;
	height: 0.12rem;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.header .navigation.nav_open .nav_toggle .bar:nth-child(1) {
	transform: translateY(0.47rem) rotate(45deg);
}

.header .navigation.nav_open .nav_toggle .bar:nth-child(2) {
	opacity: 0;
}

.header .navigation.nav_open .nav_toggle .bar:nth-child(3) {
	transform: translateY(-0.47rem) rotate(-45deg);
}

/* ---------- Large Tablet / Small Desktop ---------- */
@media (max-width: 1200px) {
	/* Layout */
	.padding {
		padding: 0 5rem;
	}

	/* Hero */
	.container .hero {
		position: relative;
		background: url('images/hero_alt_vertical.png');
		background-repeat: no-repeat;
		background-size: cover;
		background-position: center;
	}

	.container .hero::before {
		content: "";
		position: absolute;
		inset: 0;
		background: rgba(255, 255, 255, 0.65);
		z-index: 0;
	}

	.container .hero > * {
		position: relative;
		z-index: 1;
	}

	.container .hero p {
		width: 52%;
	}

	/* Contact */
	.container .contact .content {
		width: 52%;
	}

	/* Services Page */
	.container .services_page .sidebar {
		width: 30%;
	}

	.container .services_page .detail {
		width: 70%;
	}

	.services_commitment .commitment_grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.services_contact_bar .services_contact_text {
		width: 42%;
	}

	.services_contact_bar .services_contact_form {
		width: 58%;
	}

	/* Testimonials Page */
	.container .testimonials .grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Contact Page */
	.container .contact_page > .card {
		width: 60%;
	}

	.container .contact_page .sidebar {
		width: 40%;
	}
}

/* ---------- Tablet ---------- */
@media (max-width: 992px) {
	/* Header */
	.header {
		height: auto;
		min-height: 0;
	}

	.header .topper,
	.header .navigation {
		height: auto;
	}

	/* Layout */
	.padding {
		padding: 0 1.5rem;
	}

	/* Header - Topper */
	.header .topper {
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: 0.6rem;
		padding-top: 0.7rem;
		padding-bottom: 0.7rem;
	}

	.header .topper .item span {
		font-size: 0.72rem;
		letter-spacing: 0.02rem;
		overflow-wrap: anywhere;
	}

	/* Header - Navigation */
	.header .navigation {
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		gap: 0.75rem;
		padding-top: 0.9rem;
		padding-bottom: 0.9rem;
	}

	.header .navigation img {
		width: 6.5rem;
	}

	.header .navigation .nav_toggle {
		display: flex;
		margin-left: auto;
	}

	.header .navigation .links {
		order: 3;
		flex-direction: column;
		align-items: stretch;
		gap: 0.2rem;
		background: rgba(246, 247, 248, 0.07);
		backdrop-filter: blur(10px);
		border: 1px solid rgba(246, 247, 248, 0.18);
		border-radius: 0.75rem;
		padding: 0 0.8rem;
		width: 100%;
		max-height: 0;
		opacity: 0;
		overflow: hidden;
		pointer-events: none;
		transform: translateY(-0.5rem);
		transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease, padding 0.25s ease;
	}

	.header .navigation.nav_open .links {
		max-height: 34rem;
		opacity: 1;
		pointer-events: auto;
		padding: 0.75rem 0.8rem;
		transform: translateY(0);
	}

	.header .navigation .links a {
		border-bottom: 1px solid rgba(246, 247, 248, 0.16);
		padding: 0.7rem 0.5rem;
	}

	.header .navigation .links button {
		margin-top: 0.6rem;
		width: 100%;
	}

	/* Hero */
	.container .hero {
		justify-content: center;
		align-items: flex-start;
		background-position: center;
		padding-top: 4rem;
		padding-bottom: 4rem;
		height: auto;
		min-height: 70vh;
	}

	.container .hero h1 {
		font-size: 2.6rem;
		line-height: 2.9rem;
	}

	.container .hero p {
		width: 88%;
	}

	.container .hero .flex {
		display: flex;
		flex-wrap: wrap;
		gap: 0.75rem;
	}

	/* Hero Banner */
	.container .hero_banner {
		flex-wrap: wrap;
		justify-content: flex-start;
		align-items: stretch;
		padding-top: 1rem;
		padding-bottom: 1rem;
		height: auto;
	}

	.container .hero_banner .item {
		justify-content: flex-start;
		border-right: none;
		border-bottom: 1px solid var(--white);
		padding: 1rem 0;
		width: 50%;
	}

	.container .hero_banner .item:nth-child(4),
	.container .hero_banner .item:nth-child(5) {
		border-bottom: none;
	}

	/* Services */
	.container .services {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
	}

	.container .services .text,
	.container .services .images {
		width: 100%;
	}

	.container .services .text h1 {
		font-size: 2.5rem;
		line-height: 2.8rem;
	}

	.container .services .images {
		flex-wrap: wrap;
	}

	.container .services .images .image {
		width: calc(50% - 0.5rem);
	}

	/* Services Page */
	.container .services_page {
		flex-direction: column;
		padding-top: 3rem;
	}

	.container .services_page .sidebar,
	.container .services_page .detail {
		position: static;
		width: 100%;
	}

	.container .services_page .detail .category ul {
		grid-template-columns: 1fr;
	}

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

	.services_commitment .commitment_item {
		border-right: none;
		border-bottom: 1px solid rgba(246, 247, 248, 0.18);
		padding: 0 0 1.25rem 0;
	}

	.services_commitment .commitment_item:last-child {
		border-bottom: none;
	}

	.services_contact_bar {
		flex-direction: column;
		align-items: flex-start;
	}

	.services_contact_bar .services_contact_text,
	.services_contact_bar .services_contact_form {
		width: 100%;
	}

	.services_contact_bar .services_contact_form {
		flex-wrap: wrap;
	}

	.services_contact_bar .services_contact_form input,
	.services_contact_bar .services_contact_form button {
		width: 100%;
	}

	/* Testimonials Page */
	.container .testimonials .grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Contact Page */
	.container .contact_page {
		flex-direction: column;
	}

	.container .contact_page > .card,
	.container .contact_page .sidebar {
		width: 100%;
	}

	.container .contact_page > .card .heading h2 {
		font-size: 2.6rem;
		line-height: 2.9rem;
	}

	.container .contact_page .form .row {
		flex-direction: column;
	}

	.container .contact_page .form .row.two_column .field {
		width: 100%;
	}

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

	/* Contact */
	.container .contact {
		flex-direction: column;
		justify-content: center;
		align-items: flex-start;
		gap: 1rem;
		padding-top: 1.4rem;
		padding-bottom: 1.4rem;
		height: auto;
	}

	.container .contact .content,
	.container .contact .form {
		width: 100%;
	}

	.container .contact .form {
		flex-wrap: wrap;
	}

	.container .contact .form input,
	.container .contact .form button {
		width: 100%;
	}

	/* Footer */
	.footer .footer_main {
		flex-wrap: wrap;
		justify-content: flex-start;
		padding-top: 1rem;
		padding-bottom: 1rem;
	}

	.footer .footer_main h1 {
		display: none;
	}

	.footer .footer_main .item {
		padding: 0.35rem 0;
		width: 48%;
	}

	.footer .footer_bottom {
		flex-direction: column;
		justify-content: center;
		gap: 0.4rem;
		text-align: center;
		padding-top: 0.7rem;
		padding-bottom: 0.7rem;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
	/* Header */
	.header .topper {
		justify-content: flex-start;
	}

	.header .topper .item {
		width: 100%;
		justify-content: flex-start;
	}

	/* Hero */
	.container .hero h4 {
		font-size: 1rem;
	}

	.container .hero h1 {
		font-size: 2.2rem;
		line-height: 2.5rem;
	}

	.container .hero p {
		width: 100%;
	}

	/* Hero Banner */
	.container .hero_banner .item {
		width: 100%;
	}

	.container .hero_banner .item:nth-child(4) {
		border-bottom: 1px solid var(--white);
	}

	/* Services */
	.container .services .images .image {
		width: 100%;
	}

	/* Services Page */
	.container .services_page {
		padding-top: 2.5rem;
	}

	.container .services_page .detail .category {
		padding: 1.5rem;
	}

	.container .services_page .detail .heading {
		flex-direction: column;
	}

	.container .services_page .detail .heading h3 {
		font-size: 1.7rem;
		line-height: 1.95rem;
	}

	.services_commitment h2 {
		font-size: 2.1rem;
	}

	.services_commitment .commitment_grid {
		grid-template-columns: 1fr;
	}

	/* Testimonials Page */
	.container .testimonials {
		padding-top: 2.5rem;
		padding-bottom: 2.5rem;
	}

	.container .testimonials .heading h2 {
		font-size: 2.2rem;
		line-height: 2.45rem;
	}

	.container .testimonials .grid .card {
		padding: 1.5rem;
	}

	.container .testimonials .grid {
		grid-template-columns: 1fr;
	}

	/* Contact Page */
	.container .contact_page,
	.container .reassurance {
		padding-top: 2.5rem;
		padding-bottom: 2.5rem;
	}

	.container .contact_page > .card .heading h2 {
		font-size: 2.2rem;
		line-height: 2.45rem;
	}

	.container .reassurance {
		grid-template-columns: 1fr;
	}

	/* Contact */
	.container .contact .content {
		align-items: flex-start;
	}

	.container .contact .content img {
		width: 2.75rem;
		height: 2.75rem;
	}

	/* Footer */
	.footer .footer_main .brand {
		width: 100%;
	}

	.footer .footer_main .item {
		width: 100%;
	}
}

/* ---------- Small Mobile ---------- */
@media (max-width: 480px) {
	/* Layout */
	.padding {
		padding: 0 1rem;
	}

	/* Header */
	.header .navigation img {
		width: 5.8rem;
	}

	/* Hero */
	.container .hero {
		min-height: 60vh;
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

	.container .hero h1 {
		font-size: 1.95rem;
		line-height: 2.2rem;
	}

	/* Services */
	.container .services .text h1 {
		font-size: 2rem;
		line-height: 2.3rem;
	}

	/* Services Page */
	.container .services_page .sidebar .card,
	.container .services_page .detail .category {
		padding: 1.2rem;
	}

	.services_contact_bar .services_contact_text {
		align-items: flex-start;
	}

	.services_contact_bar .services_contact_text h3 {
		font-size: 1.45rem;
	}

	/* Testimonials Page */
	.container .testimonials .grid .card {
		padding: 1.2rem;
	}

	.container .testimonials .heading h2 {
		font-size: 1.95rem;
		line-height: 2.2rem;
	}

	/* Contact Page */
	.container .contact_page > .card .heading h2 {
		font-size: 1.95rem;
		line-height: 2.2rem;
	}

	.container .contact_page > .card,
	.container .contact_page .sidebar .card,
	.container .reassurance .card {
		padding: 1.2rem;
	}

	.container .contact_page .actions button {
		width: 100%;
	}

	/* Contact */
	.container .contact .content .text h2 {
		font-size: 1.2rem;
	}
}

/* ---------- Responsive Portal ---------- */
@media (max-width: 1200px) {
	.portal .stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.portal .overview {
		grid-template-columns: 1fr;
	}

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

	.portal .documents .document_grid {
		grid-template-columns: 1fr;
	}

	.portal .cta_card {
		grid-column: 1 / -1;
	}
}

@media (max-width: 992px) {
	.portal .sidebar {
		position: fixed;
		top: 0;
		left: 0;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
	}

	.portal.sidebar_open .sidebar {
		transform: translateX(0);
	}

	.portal.sidebar_open .sidebar_overlay {
		display: block;
	}

	.portal .portal_main {
		padding: 1.25rem;
	}

	.portal .topbar .sidebar_toggle {
		display: flex;
	}

	.portal .projects .project {
		flex-direction: column;
	}

	.portal .projects .project .thumbnail {
		width: 100%;
		height: 12rem;
	}
}

@media (max-width: 768px) {
	.portal .stats,
	.portal .lower {
		grid-template-columns: 1fr;
	}

	.portal .topbar {
		flex-wrap: wrap;
	}

	.portal .topbar .welcome h1 {
		font-size: 1.35rem;
	}

	.portal .topbar .account .profile .text {
		display: none;
	}

	.portal .project .facts {
		grid-template-columns: 1fr;
	}

	.portal .milestones .milestone {
		flex-wrap: wrap;
	}
}

/* ---------- Responsive Plan Builder ---------- */
@media (max-width: 1200px) {
	.portal .plan_builder .grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.portal .plan_builder .grid,
	.portal .plan_builder .totals {
		grid-template-columns: 1fr;
	}

	.portal .plan_builder .section_heading,
	.portal .plan_builder .step_heading {
		flex-wrap: wrap;
	}
}
