/**
 * Top Page Styles
 *
 * @package Onwords
 */

/* ==========================================================================
   Common Section Styles
   ========================================================================== */

section {
	position: relative;
}

.about__label,
.business__label,
.inquiry__label,
.message__label,
.news__label {
	font-size: 16px;
	font-weight: 600;
	line-height: 28px;
	color: #e60112;
	letter-spacing: normal;
}

.about__label {
	letter-spacing: 1.6px;
}

.about__heading,
.business__heading,
.inquiry__heading,
.message__heading,
.news__heading {
	font-size: 36px;
	font-weight: 700;
	line-height: 57.6px;
	color: #222;
	margin-bottom: 32px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
	position: relative;
	height: 640px;
	max-width: 1200px;
	margin: 0 auto;
	overflow: hidden;
}

.hero__carousel {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	transition: transform 0.8s cubic-bezier(0.58, 0.21, 0.41, 0.96);
}

.hero__slide {
	position: relative;
	min-width: 100%;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: flex;
	flex-shrink: 0;
}

.hero__slide::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.2);
	z-index: 1;
}

.hero__content {
	max-width: 1120px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	color: #fff;
	z-index: 2;
	padding: 0 0 88px 0;
	height: 100%;
}

.hero__title {
	font-size: 64px;
	font-weight: 600;
	line-height: 76.8px;
	color: #fff;
	margin-bottom: 11px;
}

.hero__subtitle {
	font-size: 20px;
	font-weight: 500;
	line-height: 30px;
	color: #fff;
	margin-top: 0;
	margin-bottom: 0;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
	position: relative;
	padding: 0;
	margin-top: 50px;
	background-color: #fff;
}

.about__container {
	position: relative;
	padding: 80px 0;
	margin: 0 auto;
	width: 1280px;
	max-width: calc(100% - 64px);
	z-index: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 0;
}

.about__background {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 0;
	background-color: #f6f6f6;
	border-radius: 0 20px 20px 0;
	z-index: 0;
	transition: width 0.7s ease-in-out 0.4s;
}

.about.is-visible .about__background {
	width: 75%;
}

.about__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	flex: 0 0 auto;
	width: 576px;
	max-width: 45%;
}

.about__body {
	font-size: 16px;
	font-weight: 400;
	line-height: 28.8px;
	color: #222;
}

.about__image-container {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 640px;
	max-width: 50%;
}

.about__image {
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: fill;
}

/* ==========================================================================
   Message Section
   ========================================================================== */

.message {
	padding: 80px 0;
	background-color: #fff;
}

.message__container {
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.message__heading,
.message__label {
	text-align: center;
}

.message__label {
	margin-bottom: 0;
}

.message__heading {
	margin-bottom: 20px;
}

.message__block {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 40px;
}

.message__block:last-child {
	margin-bottom: 0;
}

.message__image {
	width: 100%;
	max-width: 370px;
	height: auto;
	flex-shrink: 0;
	position: relative;
	border-radius: 8px;
	overflow: hidden;
}

.message__text-container {
	flex-shrink: 1;
	max-width: 752px;
	width: 100%;
}

.message__text {
	font-size: 16px;
	font-weight: 500;
	line-height: 28px;
	color: #222;
	margin: 0;
}

/* ==========================================================================
   Business Section
   ========================================================================== */

.business {
	padding: 0;
	background-color: #fff;
}

.business__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

.business__heading,
.business__label {
	text-align: center;
}

.business__heading {
	margin-bottom: 20px;
}

.business__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 560px));
	gap: 60px;
	width: 100%;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* ==========================================================================
   News Section
   ========================================================================== */

.news {
	padding: 80px 0;
	background-color: #fff;
}

.news__container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.news__heading,
.news__label {
	text-align: center;
}

.news__list {
	list-style: none;
	padding: 0;
	margin: 0 0 32px 0;
	width: 100%;
	align-self: stretch;
}

.news__item {
	margin-bottom: 0;
}

.news__no-posts {
	font-size: 16px;
	color: #666;
	text-align: center;
	padding: 40px 0;
}

/* ==========================================================================
   Inquiry Section
   ========================================================================== */

.inquiry {
	background-color: transparent;
}

.inquiry__container {
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
}

.inquiry__header {
	text-align: center;
	margin-bottom: 40px;
}

.inquiry__label {
	text-align: center;
}

.inquiry__heading {
	text-align: center;
}

.inquiry__form {
	max-width: 656px;
	margin: 0 auto;
	padding: 0 16px;
}

.hs-form-frame {
	width: 100%;
	min-height: 1000px;
}

.hs-form-frame iframe {
	border: none;
	width: 100%;
	height: 100%;
}

/* ==========================================================================
   Responsive - Mobile (767px)
   ========================================================================== */

@media (max-width: 767px) {
	.about__container {
		padding: 40px 0;
	}

	.message {
		padding: 40px 0;
	}

	.message__block {
		margin: 0 40px 40px;
	}

	.news {
		padding: 40px 0;
	}

	.inquiry__form {
		padding: 0;
	}

	.business__container {
		padding: 0 16px;
	}

	.business__cards {
		gap: 50px;
	}
}

/* ==========================================================================
   Responsive - Tablet (768px - 1023px)
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1023px) {
	.business__cards {
		gap: 32px;
	}
}
