/* ============================================================
   app.css — site-wide styles, organized in source order.
   Grid + Bootstrap-equivalent utilities live in grid.css;
   the mobile-nav plugin's own styles live in slicknav.css.
   ============================================================ */

/* ────────────────────── 1. Imports ────────────────────── */
@import url('https://cdn.jsdelivr.net/npm/galmuri@latest/dist/galmuri.css');


/* ───────────────── 2. Globals / reset ─────────────────── */
body {
	font-size: 14px;
	font-family: sans-serif;
	color: #ffffff;
	background-color: #33333a;
}
h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
	font-weight: 700;
}
img { max-width: 100%; }

/* a 태그 색상변경을 사용하지 않도록 수정 */
a { color: inherit; }
a:hover {
	text-decoration: none;
	outline: 0;
	color: #3ddbd9;
}
a:focus {
	text-decoration: none;
	outline: 0;
}
::-moz-selection { background: #5500ff; color: #fff; }
::selection     { background: #5500ff; color: #fff; }


/* ─────────────── 3. Section frame (scrollify) ────────────── */
/* Snap-section sizing: 100vh with equal top/bottom padding so flex centering
   puts content at the true viewport center; the navbar covers the top 71px
   from outside, mirrored by a 71px bottom keeps content at viewport-50%. */
.section[data-section-name] {
	box-sizing: border-box;
	height: 100vh;
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.section[data-section-name]:not(.hero) {
	padding: 71px 0;
}
/* Tall sections allow internal overflow for scrollify's scroll-within behavior. */
.history[data-section-name],
.location[data-section-name],
.contact[data-section-name] {
	overflow: visible;
}
/* Horizontal centering — skip the product feature sections, they get zigzag alignment. */
.section[data-section-name]:not(.hero):not(.feature) {
	text-align: center;
}
/* Section background images — hero = cover-stretched; the three product
   feature sections = natural aspect nudged 80px down, with each section's
   solid color filling the surrounding gap to blend with the image edges. */
.hero,
.feature--monster,
.feature--cheiron,
.feature--anyoffice {
	background-size: cover;
	background-repeat: no-repeat;
}

.hero {
	background-image: url(../images/gif/main_img_somma_03.jpg);
	background-position: center 40px;
}
.feature--monster {
	background-color: #32353c;
	background-image: url(../images/gif/monster_07.jpg);
	background-position: center 80px;
}
.feature--cheiron {
	background-color: #42454c;
	background-image: url(../images/gif/cheiron_09.jpg);
	background-position: center 80px;
}
.feature--anyoffice {
	background-color: #31353e;
	background-image: url(../images/gif/any-office_07.jpg);
	background-position: center 80px;
}

/* ─────────────── 4. Shared components ─────────────── */
/* Section heading (icon + h1), used by pricing/history/location. */
.section-heading {
	display: flex;
	align-items: center;
	margin-bottom: 40px;
}
.section-heading__icon {
	width: 70px;
	height: 70px;
}
/* Light-bg variant (location) needs a darker h1. */
.section-heading--light h1 {
	color: #5b5b5b;
}

/* SNS icon shared by navbar + footer. Color returns on hover. */
.social-icon {
	width: 30px;
	height: 30px;
	filter: grayscale(100%);
	transition: filter 0.2s;
}
.social-icon:hover { filter: grayscale(0%); }
.social-icon--sm { width: 20px; height: 20px; }


/* ─────────────── 5. Header / Navigation ─────────────── */
.header-layout .navbar {
	padding: 0;
	background: #f5f7fa;
}
.header-layout .navbar-nav {
	flex-wrap: wrap;
	font-weight: 500;
}
.header-layout .navbar-social { margin-left: 35px; }

.header-layout .navbar-brand img { height: 44px; }

.header-layout .navbar-light .navbar-nav .nav-item {
	padding: 17px 0;
}
.header-layout .navbar-light .navbar-nav .nav-link {
	color: #000000;
	font-size: 16px;
	text-transform: uppercase;
	padding: 8px 14px;
}
.header-layout .navbar-light .navbar-nav .nav-link:hover {
	color: #5500ff;
	font-weight: 700;
}
.header-layout .navbar-light .navbar-nav .nav-link:focus {
	color: #5500ff;
}

/* Mobile hamburger + slicknav-rendered nav. */
.header-layout .navbar-toggle {
	display: none;
	position: absolute;
	right: 15px;
	top: 20px;
}
#responsive-menu {
	display: none;
	width: 100%;
}
.header-layout .slicknav_menu {
	padding: 0;
	background: none;
}
.header-layout .slicknav_btn {
	padding: 8px;
	border: 1px solid #3e4555;
	border-radius: 0;
	margin: 0;
	background: none;
}
.header-layout .slicknav_icon-bar {
	box-shadow: none;
	height: 1px;
	margin-top: 1px;
	margin-bottom: 5px;
	background: #3e4555;
}
.header-layout .slicknav_nav { padding: 10px 0; }
.header-layout .slicknav_nav a {
	color: #bbbbbb;
	margin: 0;
	padding: 6px 2px;
}
.header-layout .slicknav_nav a.active { color: #5500ff; }
.header-layout .slicknav_nav a:hover {
	background: none;
	color: #5500ff;
}


/* ─────────────── 6. #homepage hero ─────────────── */
.hero__title {
	font-size: 60px;
	margin: 0 0 24px;
}
.hero__subtitle {
	font-size: 17px;
	line-height: 1.7;
	margin: 0 0 30px;
	max-width: 500px;
	word-break: keep-all;
	overflow-wrap: break-word;
}
.hero__actions {
	display: flex;
	align-items: center;
	gap: 25px;
	margin-top: 30px;
}
.hero__action {
	width: 126px;
	height: 116px;
	border: 1.5px solid #6e40c9;
	background-color: #313536;
	box-shadow: 0 5px 5px -2px #6e40c95d;
	border-radius: 30px;
	color: #8b949e;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	text-align: center;
	padding-top: 8px;
}
.hero__action:hover,
.hero__action:focus {
	border: 2px solid #5f85ff;
	background-color: #13131e;
	box-shadow: 0 7px 5px -2px #00c8ff3a;
	color: #5f85ff;
	font-weight: 700;
}
.hero__action-icon {
	width: 72px;
	height: 72px;
	transform: scale(1.4);
	transform-origin: center 54%;
}
.hero__action-label {
	margin: -4px 0 0;
	font-size: 0.85rem;
}


/* ─────────────── 7. #pricing OUR SERIES ─────────────── */
.series-section { background: #000000; }
.series-section__cards { margin-top: 20px; }

.series-card {
	border: 2px solid #4c4cff;
	width: 320px;
	height: 400px;
	border-radius: 30px;
	text-align: center;
	box-shadow: 8px 8px 0px 0px #4c4cff;
	margin: 0 auto;
	padding: 24px 16px;
}
.series-card--monster   { background-image: linear-gradient(to bottom, #161b22, #25266e); }
.series-card--cheiron   { background-image: linear-gradient(to bottom, #161b22, #350736); }
.series-card--anyoffice { background-image: linear-gradient(to bottom, #161b22, #260f4a); }

.series-card__subtitle {
	color: #9999ff;
	font-size: 18px;
	font-weight: 500;
}
.series-card__icon {
	display: block;
	width: 175px;
	height: 175px;
	margin: 0 auto;
}

.series-card__desc {
	color: #8b949e;
	font-size: 16px;
	line-height: 1.5;
	min-height: 4.5em;
	word-break: keep-all;
	overflow-wrap: break-word;
}
.series-card__cta {
	border: 1px solid #ffffff;
	background-color: transparent;
	color: #ffffff;
	width: 120px;
	height: 40px;
	border-radius: 20px;
	margin-top: 20px;
	cursor: pointer;
}
.series-card__cta:hover {
	background-color: #ffffff;
	color: #000000;
	font-weight: 700;
}


/* ─────────── 8. #monster / #cheiron / #anyoffice (product features) ─────────── */
.feature__heading { margin-bottom: 30px; }
.feature--right .feature__heading { text-align: right; }
.feature--left  .feature__heading { text-align: left; }

.feature__eyebrow {
	font-family: 'Galmuri', 'Galmuri7';
	font-size: 20px;
	font-weight: 300;
	color: #5f85ff;
	margin: 0;
}
.feature__title {
	font-family: 'Galmuri11';
	font-size: 60px;
	font-weight: 700;
	margin: 0 0 20px;
}
.feature__desc {
	width: 40%;
	color: #8b949e;
	font-size: 18px;
	margin: 0 0 30px;
	word-break: keep-all;
	overflow-wrap: break-word;
}
.feature--right .feature__desc { margin-left: auto; text-align: right; }
.feature--left  .feature__desc { text-align: left; }

.feature__icons {
	display: flex;
	flex-wrap: wrap;
	gap: 35px;
}
.feature--right .feature__icons { justify-content: flex-end; }
.feature--left  .feature__icons { justify-content: flex-start; }

.feature__icon-tile {
	width: 140px;
	height: 140px;
	padding: 8px 0 12px;
	border: 2px solid #8b949e;
	background-color: #313536;
	box-shadow: 0 5px 5px -2px #02f7ff2d;
	border-radius: 30px;
	color: #8b949e;
	font-weight: 500;
	text-align: center;
	cursor: default;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.feature__icon-tile-img {
	width: 85px;
	height: 85px;
	transform: scale(1.3);
	transform-origin: center 32%;
}

.feature__icon-tile-label {
	font-size: 0.85rem;
	line-height: 1.3;
	min-height: 2.6em;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}


/* ─────────────── 9. #history (year slider) ─────────────── */
.history { background: #000000; }

.history-slider {
	position: relative;
	max-width: 980px;
	margin: 0 auto;
	padding: 24px 60px;
	background: url('../images/png/History.png') no-repeat center / cover;
	border-radius: 14px;
	overflow: hidden;
}
.history-viewport {
	height: calc(100vh - 360px);
	min-height: 260px;
	max-height: 740px;
	position: relative;
}
.history-slide {
	display: none;
	height: 100%;
	overflow-y: auto;
	padding-right: 10px;
	text-align: left;
}
.history-slide.active { display: block; }
.history-slide h2 {
	font-size: 32px;
	color: #5500ff;
	margin: 0 0 8px;
	text-shadow: -1px 0 #fff, 0 1px #fff, 1px 0 #fff, 0 -1px #fff;
}
.history-slide .entries p {
	font-size: 15px;
	line-height: 1.55;
	color: rgb(220, 220, 225);
	margin: 6px 0;
}

.history-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 4px;
}
.history-nav:hover { background: rgba(255, 255, 255, 0.28); }
.history-nav.prev { left: 10px; }
.history-nav.next { right: 10px; }

.history-pagination {
	text-align: center;
	padding-top: 18px;
}
.history-pagination .dot {
	width: 12px;
	height: 12px;
	margin: 0 5px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	cursor: pointer;
}
.history-pagination .dot.active { background: #5500ff; }


/* ─────────────── 10. #somma-location (map + address) ─────────────── */
.location { background-color: #eeeeee; }

.location__map iframe {
	display: block;
	width: 100%;
	height: 60vh;
	min-height: 280px;
	max-height: 600px;
	border: 0;
	pointer-events: none;
}

.location__address {
	margin-top: 50px;
	text-align: left;
}
.location__address-line {
	font-size: 16px;
	color: #000000;
	font-weight: 500;
	line-height: 1.6;
	margin: 8px 0 0;
}
.location__address-line strong {
	color: #5500ff;
	font-weight: 700;
}


/* ─────────────── 11. #contact ─────────────── */
.contact { background-color: #360598; }
.contact__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.contact__title {
	font-family: 'Galmuri11';
	font-size: 50px;
	font-weight: 300;
	color: #ffffff;
	margin: 0;
}
.contact__lead {
	color: #ffffff;
	font-size: 16px;
	margin: 30px 0 50px;
}
.contact__line {
	color: #ffffff;
	font-size: 16px;
	line-height: 1.8;
	margin: 0;
}
.contact__email {
	color: #ffffff;
	text-decoration: underline;
}


/* ─────────────── 12. #contact YouTube videos carousel ─────────────── */
.video-grid {
	--visible: 3;
	--gap: 16px;
	margin-top: 40px;
	text-align: left;
}
.video-grid__slider {
	position: relative;
	display: flex;
	align-items: center;
}
.video-grid__viewport {
	flex: 1;
	overflow: hidden;
}
.video-grid__track {
	display: flex;
	gap: var(--gap);
	transition: transform 0.4s ease;
}
.video-card {
	flex: 0 0 calc((100% - var(--gap) * (var(--visible) - 1)) / var(--visible));
	text-decoration: none;
	color: inherit;
	display: block;
}
.video-card__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 8px;
	background-color: #1a0040;
}
.video-card__title {
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	margin: 8px 0 0;
	word-break: keep-all;
	overflow-wrap: break-word;
}
.video-grid__nav {
	flex: 0 0 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	margin: 0 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 3px;
}
.video-grid__nav:hover { background: rgba(255, 255, 255, 0.32); }
.video-grid__nav:disabled { opacity: 0.25; cursor: default; }


/* ─────────────── 13. Footer ─────────────── */
.footer {
	background-color: #eeeeee;
	padding: 12px 0;
	border-top: 1px solid #dce3e9;
	text-align: left;
	position: absolute;
	right: 0;
	left: 0;
	bottom: 0;
}
.footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.footer__company {
	display: flex;
	align-items: center;
	gap: 40px;
	min-width: 0;
}
.footer__logo {
	width: 150px;
	flex-shrink: 0;
}
.footer__company-name {
	color: #9c9c9c;
	font-size: 14px;
	font-weight: 500;
	margin: 0;
}
.footer__meta {
	color: #bbbbbb;
	font-size: 12px;
	line-height: 1.4;
	margin: 1px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 2px 0;
}
.footer__meta span:not(:last-child)::after {
	content: '·';
	margin: 0 8px;
	opacity: 0.6;
}
.footer__copyright {
	color: #bbbbbb;
	font-size: 11px;
	font-weight: 200;
	margin: 3px 0 0;
}
.footer__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	flex-shrink: 0;
}
.footer__policy-link {
	color: #8d97ad;
	font-size: 12px;
	text-decoration: underline;
}
.footer__policy-link:hover { color: #5500ff; }
.footer__social {
	display: flex;
	align-items: center;
	gap: 8px;
}
.footer__social-label {
	color: #8d97ad;
	font-size: 12px;
	margin-right: 4px;
}


/* ─────────────── 14. Responsive overrides ─────────────── */
@media (max-width: 1199px) {
	.header-layout .navbar-light .navbar-nav .nav-link { padding: 8px 6px; }

	/* OUR SERIES: stack 3 cards vertically, each thin/short so they all fit. */
	#pricing .col-md-4 {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		margin-bottom: 12px;
	}
	#pricing .series-card {
		width: 90%;
		max-width: 560px;
		height: auto;
		min-height: 0;
		margin: 0 auto;
		padding: 12px 16px;
		box-shadow: 4px 4px 0px 0px #4c4cff;
		/* Grid layout: icon left, subtitle + description right. */
		display: grid;
		grid-template-columns: 90px 1fr;
		grid-template-areas:
			"icon title"
			"icon body";
		column-gap: 16px;
		row-gap: 4px;
		align-items: center;
	}
	#pricing .series-card__subtitle { grid-area: title; margin: 0; }
	#pricing .series-card__icon {
		grid-area: icon;
		width: 80px !important;
		height: 80px !important;
		margin: 0 auto;
	}
	#pricing .series-card__desc { grid-area: body; margin: 0; min-height: 0; }
	#pricing .series-card__cta { display: none; }
}

@media (max-width: 991px) {
	/* Header collapses to slicknav hamburger. */
	.header-layout .navbar-nav { display: none; }
	.header-layout .navbar {
		padding: 10px 0;
		overflow: auto;
		max-height: 100%;
		align-items: flex-start;
	}
	.header-layout .navbar .container { flex-wrap: wrap; }
	.header-layout .navbar-toggle,
	#responsive-menu { display: block; }

	/* Video grid: 2 visible cards. */
	.video-grid { --visible: 2; }
}

@media (max-width: 767px) {
	/* Feature sections — center the 3 tiers (title / desc / icons) and spread
	   them with even gaps so the section uses full vertical space. */
	.feature > .container {
		display: flex;
		flex-direction: column;
		gap: 48px;
	}
	.feature--right .feature__heading,
	.feature--left  .feature__heading { text-align: center; }
	.feature__heading { margin-bottom: 0; }
	.feature__title { font-size: 36px !important; }
	.feature__desc  {
		width: 100% !important;
		text-align: center !important;
		margin: 0 !important;
	}
	.feature__icons {
		flex-direction: column !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 12px !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	.feature__icon-tile {
		flex-direction: row !important;
		justify-content: flex-start !important;
		text-align: left !important;
		width: 280px !important;
		height: auto !important;
		min-height: 70px !important;
		padding: 12px 16px !important;
		gap: 16px !important;
		border-radius: 14px !important;
	}
	.feature__icon-tile-img {
		width: 44px !important;
		height: 44px !important;
		flex: 0 0 44px;
		transform-origin: center;
	}
	.feature__icon-tile-label {
		margin: 0 !important;
		font-size: 15px !important;
		line-height: 1.3;
	}
	/* On mobile the tile is a horizontal row with ~220px of label space, so the
	   forced line breaks (cheiron labels) become unnecessary — collapse to one line. */
	.feature__icon-tile-label br { display: none; }

	/* Hero — shrink title so it doesn't take 4 lines on a phone; center
	   everything, and stretch the 3 tiers with even gaps so the section
	   uses the full vertical space instead of clumping at the middle. */
	.hero__content {
		display: flex;
		flex-direction: column;
		text-align: center;
		gap: 55px;
	}
	.hero__title {
		font-size: 42px;
		margin: 0;
	}
	.hero__subtitle {
		font-size: 16px;
		margin: 0 auto;
		max-width: 290px;
	}
	.hero__actions {
		gap: 12px;
		margin-top: 0;
		justify-content: center;
	}
	.hero__action {
		width: 100px;
		height: 100px;
		border-radius: 20px;
	}
	.hero__action-icon {
		width: 52px;
		height: 52px;
	}

	/* Section heading — tighter spacing, stays left-aligned. */
	.section-heading { margin-bottom: 24px; }

	/* History slider — hide arrows (use dots), tighten padding. */
	.history-slider { padding: 12px; }
	.history-nav { display: none; }

	/* Location address — phone-size font. */
	.location__address-line { font-size: 14px; }

	/* Contact — compact title + lead so the section fits on a phone. */
	.contact__title {
		font-size: 32px;
		text-align: center;
	}
	.contact__lead {
		font-size: 14px;
		margin: 16px 0 20px;
	}
	.contact__line {
		font-size: 14px;
		line-height: 1.5;
	}

	/* Footer — stack vertically; hide · separators between meta items. */
	.footer__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.footer__company {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.footer__aside {
		align-items: flex-start;
		width: 100%;
	}
	.footer__meta {
		flex-direction: column;
		gap: 2px;
	}
	.footer__meta span:not(:last-child)::after { content: none; }
}

@media (max-width: 575px) {
	/* Video grid: 1 visible card on small phones. */
	.video-grid { --visible: 1; }
}

/* Responsive section backgrounds — swap to the size-matched variant per
   breakpoint. Base images (defined above) target ≥1200px. The smaller
   files were cropped/repositioned for each viewport by the original
   designer, so they look natural on mobile/tablet. */
@media (max-width: 1199px) {
	.hero               { background-image: url(../images/gif/main_img_somma_03_1200.jpg); }
	.feature--monster   { background-image: url(../images/gif/monster_07_1200.jpg); }
	.feature--cheiron   { background-image: url(../images/gif/cheiron_09_1200.jpg); }
	.feature--anyoffice { background-image: url(../images/gif/anyoffice_07_1200.jpg); }
}
@media (max-width: 991px) {
	.hero               { background-image: url(../images/gif/main_img_somma_03_992.jpg); }
	.feature--monster   { background-image: url(../images/gif/monster_07_992.jpg); }
	.feature--cheiron   { background-image: url(../images/gif/cheiron_09_992.jpg); }
	.feature--anyoffice { background-image: url(../images/gif/anyoffice_07_992.jpg); }
}
@media (max-width: 768px) {
	.hero               { background-image: url(../images/gif/main_img_somma_03_768.jpg); }
	.feature--monster   { background-image: url(../images/gif/monster_07_768.jpg); }
	.feature--cheiron   { background-image: url(../images/gif/cheiron_09_768.jpg); }
	.feature--anyoffice { background-image: url(../images/gif/anyoffice_07_768.jpg); }
	.hero,
	.feature--monster,
	.feature--cheiron,
	.feature--anyoffice { background-position: center; }
}
@media (max-width: 575px) {
	.hero               { background-image: url(../images/gif/main_img_somma_03_576.jpg); }
	.feature--monster   { background-image: url(../images/gif/monster_07_576.jpg); }
	.feature--cheiron   { background-image: url(../images/gif/cheiron_09_576.jpg); }
	.feature--anyoffice { background-image: url(../images/gif/anyoffice_07_576.jpg); }
}
