/* /assets/css/site.css */
/* -------------------------------------------------
 * Mammoth Global Korea - 기본 공통 CSS
 * - 경로 기준: /assets/css/ /assets/js/ /assets/img/
 * - 이미지(hero-1~3)는 나중에 /assets/img/ 에 넣으면 됨
 * ------------------------------------------------- */

:root {
	--bg: #0b0f14;
	--bg2: #0e141c;
	--text: #e9eef6;
	--muted: #b9c3d3;
	--line: rgba(255, 255, 255, 0.15);
	--card: rgba(255, 255, 255, 0.06);
	--card2: rgba(255, 255, 255, 0.08);
	--accent: #ffffff;
	--max: 1120px;
}

@media (min-width: 1800px) {
	:root {
		--max: 1440px;
	}
}


/* reset */
* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	display: block;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1, h2, h3, p {
	margin: 0;
}

main {
	display: block;
}

/* layout */
.inner {
	width: min(var(--max), calc(100% - 40px));
	margin: 0 auto;
}

/* -------------------------------------------------
 * header
 * ------------------------------------------------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;

	background: transparent;
	transition: background-color .25s ease,
	backdrop-filter .25s ease,
	box-shadow .25s ease;
}

.site-header.is-scrolled {
	background: rgba(12, 17, 24, 0.65);
	backdrop-filter: blur(10px);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}

/* 투명 상태(히어로 위): 메뉴 가독성 강화 */
.site-header:not(.is-scrolled) .nav a {
	text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
}

/* 스크롤 후(반투명 배경): 그림자 줄여 더 깔끔하게 */
.site-header.is-scrolled .nav a {
	text-shadow: none;
}


.site-header .inner {
	height: 90px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.logo {
	display: flex;
	align-items: center;
	font-weight: 800;
	letter-spacing: 0.02em;
	font-size: 16px;
}

.logo img {
	height: 80px;
	max-height: calc(90px - 16px); /* 기본 헤더 90px 기준 여백 */
	width: auto;
}

.nav {
	display: flex;
	align-items: center;
	gap: 30px;
}

.nav a {
	font-size: 16px;
	/*color: rgba(233, 238, 246, 0.88);*/
	color: #fff;
	text-shadow: 1px 1px 4px rgba(0, 0, 0, .6);
	padding: 8px 2px;
	border-bottom: 1px solid transparent;
}

.nav a:hover {
	color: var(--text);
	border-bottom-color: rgba(255, 255, 255, 0.25);
}

.nav a.active {
	color: var(--text);
	border-bottom-color: rgba(255, 255, 255, 0.25);
}

.lang {
	display: flex;
	align-items: center;
	gap: 8px;
}

.lang a {
	font-size: 14px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: rgba(233, 238, 246, 1.4);
}

.lang a:hover {
	border-color: rgba(255, 255, 255, 0.24);
}

.lang a.on {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.28);
	color: var(--text);
}

/* mobile header */
@media (max-width: 920px) {
	.nav {
		display: none;
	}

	.site-header .inner {
		height: 58px;
	}

	.logo img {
		max-height: calc(58px - 12px); /* 모바일 헤더 58px 기준 */
		height: auto; /* max-height 우선 */
	}
}


/* -------------------------------------------------
 * hero
 * - JS 없이도 자동 페이드(3장)
 * - 이미지는 /assets/img/hero-1.jpg ~ hero-3.jpg
 * ------------------------------------------------- */
.hero {
	position: relative;
	min-height: 100vh;
	display: block;
	border-bottom: 1px solid var(--line);
	background: var(--bg);
}

.hero-slider {
	position: relative;
	min-height: 100vh;
	overflow: hidden;
}

.hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	animation: heroFade 18s infinite;
}

.hero-slide:nth-child(1) {
	animation-delay: 0s;
}

.hero-slide:nth-child(2) {
	animation-delay: 6s;
}

.hero-slide:nth-child(3) {
	animation-delay: 12s;
}

/* 배경 레이어 */
.hero-bg {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	transform: scale(1.02);
}

/* 이미지 경로 (나중에 교체) */
.hero-bg-1 {
	background-image: url("/assets/img/hero-1.jpg?v=2");
}

.hero-bg-2 {
	background-image: url("/assets/img/hero-2.jpg?v=2");
}

.hero-bg-3 {
	background-image: url("/assets/img/hero-3.jpg?v=2");
}

/* 다크 오버레이 */
.hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg,
	rgba(11, 15, 20, 0.30) 0%,
	rgba(11, 15, 20, 0.10) 45%,
	rgba(11, 15, 20, 0.48) 100%
	),
	linear-gradient(90deg,
			rgba(11, 15, 20, 0.22) 0%,
			rgba(11, 15, 20, 0.06) 55%,
			rgba(11, 15, 20, 0.20) 100%
	);
}


/* 텍스트 */
.hero-content {
	position: relative;
	z-index: 2;
	width: min(var(--max), calc(100% - 40px));
	margin: 0 auto;
	padding: 84px 0 92px;
	height: 100vh;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 14px;
}

.hero-content h1 {
	font-size: 44px;
	line-height: 1.18;
	letter-spacing: -0.02em;
	font-weight: 900;
	max-width: 920px;
	text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-content p {
	font-size: 16px;
	color: rgba(233, 238, 246, 0.86);
	max-width: 720px;
	white-space: pre-line;
}

/* 도트(선택: JS 없이 시각만) */
.hero-dots {
	position: absolute;
	left: 50%;
	bottom: 22px;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 5;
}

.hero-dots span {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.25);
}

@keyframes heroFade {
	0% {
		opacity: 0;
	}
	8% {
		opacity: 1;
	}
	33% {
		opacity: 1;
	}
	41% {
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

@media (max-width: 920px) {
	.hero, .hero-slider, .hero-content {
		min-height: 66vh;
	}

	.hero-content {
		padding: 72px 0 74px;
	}

	.hero-content h1 {
		font-size: 32px;
	}

	.hero-content p {
		font-size: 14px;
	}
}

@media (max-width: 420px) {
	.hero-content h1 {
		font-size: 28px;
	}
}

/* -------------------------------------------------
 * sections
 * ------------------------------------------------- */
.section {
	padding: 72px 0;
	background: var(--bg);
}

.section:nth-of-type(even) {
	background: var(--bg2);
}

.section-title {
	font-size: 28px;
	font-weight: 900;
	letter-spacing: -0.02em;
	margin-bottom: 14px;
}

.section-desc {
	color: rgba(233, 238, 246, 0.82);
	max-width: 860px;
	white-space: pre-line;
}

/* cards */
.solution-list {
	margin-top: 34px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}


.solution-item {
	padding: 28px 28px 26px;
	border: 1px solid var(--line);
	background: var(--card);
	border-radius: 20px;

	/*min-height: 260px; !* 🔥 핵심 *!*/
	/*min-height: clamp(200px, 18vw, 260px);*/
	display: flex; /* 내부 정렬 */
	flex-direction: column;
	justify-content: flex-start;

	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.solution-item:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, .22);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	cursor: pointer;
}


.solution-item h3 {
	font-size: 19px;
	font-weight: 800;
	margin-bottom: 12px;
}

.solution-item p {
	font-size: 15px;
	line-height: 1.65;
	color: rgba(233, 238, 246, .82);
}


.advantage-list {
	margin-top: 24px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

/* ===== advantage icon list ===== */
.advantage-list li {
	position: relative;
	padding-left: 40px; /* 아이콘 공간 */
}

/* 아이콘 */
.advantage-list li::before {
	content: "✓"; /* 기본 체크 아이콘 */
	position: absolute;
	left: 14px;
	top: 5px;

	font-size: 14px;
	font-weight: 900;
	color: rgba(255, 255, 255, 0.85);

	width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;

	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
}


@media (max-width: 920px) {
	.section {
		padding: 54px 0;
	}

	.section-title {
		font-size: 22px;
	}

	.solution-list {
		grid-template-columns: 1fr;
	}

	.advantage-list {
		grid-template-columns: 1fr;
	}
}


/* -------------------------------------------------
 * (옵션) 이미지 없을 때 임시 배경
 * hero 이미지 파일 없으면 이 그라데이션이 보이게끔 fallback
 * ------------------------------------------------- */
/*.hero-bg {*/
/*	background-color: #0c1118;*/
/*	background-image: radial-gradient(1200px 600px at 20% 10%, rgba(255, 255, 255, 0.10), transparent 55%),*/
/*	radial-gradient(900px 500px at 85% 30%, rgba(255, 255, 255, 0.08), transparent 60%),*/
/*	linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.35));*/
/*}*/


@supports (height: 100dvh) {
	.hero,
	.hero-slider,
	.hero-content {
		height: 100dvh;
		min-height: 100dvh;
	}
}

@media (min-width: 1800px) {
	.hero-content h1 {
		max-width: 1100px;
	}

	.hero-content p {
		max-width: 900px;
	}
}


/* -------------------------------------------------
 * footer (new)
 * ------------------------------------------------- */

.site-footer {
	border-top: 1px solid var(--line);
	background: #070a0e;
	padding: 20px 0 50px;
}

.site-footer .copy {
	font-size: 12px;
	color: rgba(233, 238, 246, 0.60);
}


.footer-grid {
	display: grid;
	grid-template-columns: minmax(220px, 260px) 1fr;
	gap: 28px;
	align-items: start;
}

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.footer-logo {
	padding-top: 14px;
	width: 92px;
	height: auto;
	opacity: .95;
}

.footer-brand-name {
	font-size: 34px;
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.footer-brand-sub {
	font-size: 14px;
	color: rgba(233, 238, 246, .72);
	margin-top: -6px;
}

.footer-info {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.footer-col {
	padding-top: 6px;
}

.footer-label {
	font-size: 14px;
	color: rgba(233, 238, 246, .55);
	margin: 10px 0 4px;
}

.footer-value {
	font-size: 15px;
	color: rgba(233, 238, 246, .88);
	line-height: 1.55;
	word-break: keep-all;
}

.footer-link {
	color: rgba(233, 238, 246, .88);
	/*border-bottom: 1px solid rgba(255, 255, 255, .22);*/
}

.footer-link:hover {
	border-bottom-color: rgba(255, 255, 255, .45);
}

.footer-note {
	grid-column: 1 / -1;
	margin-top: 10px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	font-size: 12px;
	color: rgba(233, 238, 246, .52);
	line-height: 1.6;
}

/* QHD */
@media (min-width: 1800px) {
	.footer-grid {
		grid-template-columns: 300px 1fr;
	}

	.footer-brand-name {
		font-size: 38px;
	}


	.about-section,
	.about-hero__inner,
	.brand-section,
	.brand-hero__inner,
	.sol-section,
	.sol-hero__inner,
	.adv-section,
	.adv-hero__inner {
		max-width: 1400px !important;
	}

	.about-values-grid,
	.brand-cards,
	.sol-grid,
	.adv-grid {
		gap: 20px !important;
	}

}

/* mobile */
@media (max-width: 920px) {


	.solution-item {
		min-height: auto;
		padding: 22px 22px 20px;
	}


	.site-footer {
		padding: 5px 0 24px;
	}

	.footer-brand {
		display: none;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.footer-info {
		grid-template-columns: 1fr;
	}

	.footer-info {
		font-size: 13px;
		line-height: 1.45;
	}

	.footer-info p {
		margin-bottom: 4px;
	}

	.footer-info strong {
		display: inline-block;
		min-width: 92px; /* 라벨 정렬용 */
	}

	.footer-brand-name {
		font-size: 30px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}


}


/* -------------------------------------------------
 * mobile slide menu
 * ------------------------------------------------- */
.m-menu-btn{
	display:none;
	width:40px;
	height:40px;
	background:none;
	border:0;
	padding:0;
	cursor:pointer;
}

.m-menu-btn span{
	display:block;
	height:2px;
	margin:7px 6px;
	background:#fff;
	opacity:.95;
}

/* container */
.m-menu{
	position:fixed;
	inset:0;
	z-index:2000;
	pointer-events:none;
}

.m-menu__overlay{
	position:absolute;
	inset:0;
	background:rgba(0,0,0,.45);
	opacity:0;
	transition:opacity .25s ease;
}

/* panel */
.m-menu__panel{
	position:absolute;
	top:0;
	left:0;
	width:280px;
	max-width:82%;
	height:100%;
	background:#0b0f14;
	transform:translateX(-100%);
	transition:transform .3s ease;

	padding:64px 20px 20px;   /* ✅ 여백 줄임 */
	display:flex;
	flex-direction:column;
}

/* open */
.m-menu.is-open{
	pointer-events:auto;
}

.m-menu.is-open .m-menu__overlay{
	opacity:1;
}

.m-menu.is-open .m-menu__panel{
	transform:translateX(0);
}

/* brand */
.m-menu-brand{
	display:flex;
	align-items:center;
	gap:12px;
	margin-bottom:20px;       /* ✅ 여백 줄임 */
}

.m-menu-brand img{
	width:46px;
	height:auto;
	opacity:.95;
}

.m-menu-brand-text{
	display:flex;
	flex-direction:column;
	line-height:1.1;
}

.m-menu-brand-name{
	font-size:18px;
	font-weight:900;
	letter-spacing:-0.02em;
}

.m-menu-brand-sub{
	font-size:12px;
	color:rgba(233,238,246,.65);
}

/* nav */
.m-nav{
	flex:1;                  /* ✅ 중간 영역이 알아서 채움 */
}

.m-nav a{
	display:block;
	padding:12px 0;          /* ✅ 간격 압축 */
	font-size:17px;
	border-bottom:1px solid rgba(255,255,255,.08);
}

/* lang */
.m-lang{
	display:flex;
	gap:10px;
	margin-top:16px;         /* ✅ 위 여백 줄임 */
}

.m-lang a{
	padding:8px 14px;
	border:1px solid var(--line);
	border-radius:10px;
	font-size:14px;
}

.m-lang a.on{
	background:rgba(255,255,255,.12);
	border-color:rgba(255,255,255,.28);
}

/* mobile only */
@media (max-width: 920px){
	.m-menu-btn{ display:block; }
	.lang{ display:none; }
}


.nowrap {
	white-space: nowrap;
}