/* ==========================================================================
  zkSurvey 서비스 홈페이지 퍼블리싱
  - 공통: app.css
  - 페이지: pages/*.css
  - 작성자: 정유진
  - 작업 날짜: 2026.02.27
   ========================================================================== */

/* Reset (tiny) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Noto Sans KR", sans-serif;
  color: var(--black);
}

img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}
ul,li{
  list-style: none;
}

:focus-visible {
  outline: 1px solid var(--primary);
}

/* Tokens */
:root {
  --primary: #6C52FF;
  --primary-dark: #5811FF;
  --secondary: #181F47;
  --secondary-dark: #101634;
  --white: #ffffff;
  --grey-100: #F5F5F5;
  --grey-200: #EEEEEE;
  --grey-300: #E0E0E0;
  --grey-400: #BDBDBD;
  --grey-500: #9E9E9E;
  --grey-600: #757575;
  --grey-700: #616161;
  --grey-800: #424242;
  --grey-900: #212121;
  --black: #101010;

  --box-shadow: 0 4px 18px 3px rgba(0, 0, 0, 0.02), 0 10px 14px 1px rgba(108, 82, 255, 0.05), 0 6px 6px -3px rgba(0, 0, 0, 0.02);

  --container: 1496px;
  --gutter: 24px;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-round: 999px
}

h1,h2,h3,h4,h5,h6{
  font-weight: 700;
  line-height: 140%;
}
h1{font-size: 2rem;}
h2 {font-size: 1.5rem;}
h3{font-size: 1.375rem;}
h4{font-size: 1.25rem;}
h5{font-size: 1.125rem;}
h6{font-size: 1rem;}

br.mob{display: none;}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 120px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  line-height: 140%;
  margin-bottom: 80px;
  width: 100%;
}

.section-title-center {
  text-align: center;
}

.bg-grey{
  background-color: var(--grey-100);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(229, 231, 235, .6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 50px;
}

.header-inner .left {
  display: flex;
  align-items: center;
  gap: 100px;
}

.brand {
  display: inline-flex;
  align-items: center;
}
.brand img{
  width: 136px;
  height: 36px;
  aspect-ratio: 34/9;
}

.gnb {
  display: flex;
  align-items: center;
  gap: 60px;
}

.gnb-link {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--black);
}

.gnb-link:hover {
  color: var(--primary);
}

.gnb-link.is-active {
  color: var(--primary);
  font-weight: 700;
}

.header-cta .btn-primary {
  display: flex;
  height: 48px;
  padding: 0 24px;
  justify-content: center;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 700;
  transition: background-color 0.25s ease;
}

.header-cta .btn-primary:hover {
  background-color: var(--primary-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-round);
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--grey-300);
  color: var(--black);
}

.btn-lg {
  padding: 14px 28px;
  border-radius: 12px;
}



/* Forms - 문의하기 */
.inquiry {
  background: var(--black);
  color: var(--white);
  padding: 120px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}


.inquiry h2{
  color: var(--white);
  text-align: center;
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 160%; /* 54.4px */
  margin-bottom: 80px;
}

.inquiry .form{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  align-self: stretch;
}

.inquiry .form-row{
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}

.form-label {
  font-size: 1.125rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.req {
  color: #FF4848;
}

.form-input,
.form-textarea {
  width: 100%;
  background-color: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--white);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, .55);
}

.form-textarea {
  resize: vertical;
  min-height: 180px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.form-actions .btn{
  display: flex;
  width: 200px;
  height: 60px;
  padding: 0 24px;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  font-size: 1.25rem;
  font-weight: 700;
}

.inquiry .form-mail{
  color: var(--white);
  text-align: center;
  font-size: 2.875rem;
  font-weight: 700;
  line-height: 160%;
}


/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
}

.footer-inner {
  display: flex;
  padding: 40px 50px;
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.20);
}

.footer-brand{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer-brand img{
  width: 136px;
  height: 36px;
  aspect-ratio: 34/9;
}

.footer-meta{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
}

.footer-meta p {
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
}
.footer-meta span:first-child{
  margin-right: 20px;
}

.footer-links {
  display: flex;
  gap: 40px;
  font-size: 1rem;
}
.footer-links a:hover{
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  padding: 20px 50px 40px 50px;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  font-size: 0.875rem;
  font-weight: 400;
}

/* ==========================================================================
  Mobile Drawer (hamburger -> X) - robust overlay
  Breakpoint: < 900px (MUI md)
============================================================================ */

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  cursor: pointer;
  border: none;
}

/* 3-line hamburger */
.hamburger {
  position: relative;
  width: 22px;
  height: 3px;
  background: var(--black);
  border-radius: var(--radius-round);
  transition: background .18s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--black);
  border-radius: 999px;
  transition: transform .18s ease, top .18s ease, background .18s ease;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Hamburger -> X (button has .is-open) */
.icon-btn.is-open .hamburger {
  background: transparent;
}

.icon-btn.is-open .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.icon-btn.is-open .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Drawer overlay */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-dim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 0;
}

/* Panel slides in from right */
.mobile-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 72vw);
  background: var(--white);
  box-shadow: -12px 0 30px rgba(0, 0, 0, .1);
  z-index: 1;
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.mobile-drawer.is-open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 60px;
}

.mobile-drawer-action {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  margin-top: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

.mobile-nav a {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  padding: 20px 0;
}

body.is-locked {
  overflow: hidden;
}

/* Header controls (default) */
.mobile-menu-btn {
  display: none;
}


/* 서브페이지 공통 */
.sub-banner{
  height: 400px;
  padding: 60px 0;
  color: var(--black);
}
.sub-banner .container{
  height: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.sub-banner .banner-title{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.sub-banner p{
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 160%;
}
.sub-banner img{
  width: auto;
  height: 200px;
  object-fit: cover;
}

.sub-banner.dark{
  background-color: var(--secondary);
  color: var(--white);
}

.sub-title{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
  color: var(--black);
}
.sub-title p{
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 160%;
}

.arrow{
  display: flex;
  width: 50px;
  height: auto;
  align-items: center;
  align-self: stretch;
}
.arrow img{
  display: flex;
  width: 50px;
  height: 50px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  aspect-ratio: 1/1;
}


/* table */
.table-box{
  width: 100%;
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-top: 1px solid var(--grey-400);
}

th,
td {
  border-bottom: 1px solid var(--grey-400);
  padding: 20px 40px;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 160%;
}

thead th {
  background-color: #F4F2FF;
  font-weight: 700;
  border-right: 1px solid var(--grey-400);
}
td{
  border-right: 1px solid var(--grey-400);
}
thead th:last-child,
tbody td:last-child{
  border-right: none;
}


