/* =========================
   Re;caRing Website Styles
   Structure: tokens > base > layout > components > utilities > responsive
   ========================= */

/*글씨체 적용*/
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

body {
  font-family:
    'Pretendard',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
}
/*여기까지 글씨체*/


:root {
  --bg: #fff8e8;
  --bg-elevated: #fffdf7;
  --surface: #ffffff;
  --surface-soft: #fff4d9;
  --surface-strong: #ffe3a1;
  --text: #4f3a12;
  --muted: #7a6845;
  --line: #ffe49a;
  --primary: #efab00;
  --primary-dark: #9a6a06;
  --accent: #f1cb69;
  --shadow-soft: 0 14px 32px rgba(110, 82, 20, 0.08);
  --shadow-medium: 0 22px 44px rgba(110, 82, 20, 0.12);
  --radius-2xl: 28px;
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1180px;
  --header-height: 84px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;
  --space-9: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0; /* <- 임시로 추가해놨으니 오류나면 없앨것*/
  min-width: 320px;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(241, 203, 105, 0.2),
      transparent 22%
    ),
    linear-gradient(180deg, #fcfefe 0%, var(--bg) 100%);
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

ul {
  padding-left: 18px;
}

strong {
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--primary-dark);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
}

.page-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding-top: calc(var(--header-height) + 20px);
}

.section {
  padding: var(--space-7) 0;
}

.section--hero-bg {
  position: relative;
  background-image: url('../images/hero-bg.png');
  background-size: cover; /*first 이미지때문에 cover 유지해야*/
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #0a0a0a;
  min-height: 100vh;
}


.section--hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(20, 12, 4, 0.65) 0%,
    rgba(20, 12, 4, 0.4) 50%,
    rgba(20, 12, 4, 0.02) 100%
  );
  pointer-events: none;
  z-index: 0;
}

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

/* 히어로 타이틀 역할의 로고+브랜드명 */
.hero-brand-hero {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 20px;
}

.hero-logo-lg {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 0;
}

.hero-brand-hero-name {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: #f5c518;
  letter-spacing: -0.035em;
  line-height: 1;
}

/* 히어로 브랜드 로고+이름 행 */
.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.hero-brand-row--right {
  justify-content: flex-end;
}

.hero-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
}

.hero-brand-name {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
}

/* 히어로 오버레이 텍스트 — 오른쪽 정렬 */
.hero-stack--overlay {
  max-width: 600px;
}

.hero-stack--right {
  margin-left: auto;
  text-align: right;
}

.hero-stack--right .cta-row--right {
  justify-content: flex-end;
}

.kicker--light {
  background: rgba(212, 160, 23, 0.22);
  color: var(--accent);
}

.hero-title--light {
  color: #ffffff;
}

.hero-mini--light span {
  color: rgba(255, 255, 255, 0.82);
}

.hero-subtitle--light {
  color: rgba(255, 255, 255, 0.75) !important;
}

.btn-secondary--light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-secondary--light:hover {
  background: rgba(255, 255, 255, 0.22);
}

.logo {
  height: 48px;
  width: auto;
}

@media (max-width: 768px) {
  .hero-stack--right {
    margin-left: 0;
    text-align: left;
  }
  .hero-brand-row--right {
    justify-content: flex-start;
  }
  .hero-stack--right .cta-row--right {
    justify-content: flex-start;
  }
}

.section--hero {
  padding-top: var(--space-9);
  padding-bottom: var(--space-7);
}

.section--hero-bg.section--hero {
  padding-top: calc(var(--header-height) + var(--space-7));
}

.section--soft {
  position: relative;
}

.section--soft::before {
  content: '';
  position: absolute;
  inset: 18px 0;
  background: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(239, 220, 169, 0.6);
  border-bottom: 1px solid rgba(239, 220, 169, 0.6);
  pointer-events: none;
}

.section--soft > .container {
  position: relative;
}

.grid-2,
.hero-grid,
.page-hero-grid,
.split-grid,
.contact-grid,
.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: var(--space-6);
  align-items: center;
}

.hero-grid--top,
.contact-grid,
.start-grid {
  align-items: start;
}

.card,
.hero-card,
.panel,
.metric-card,
.feature-card,
.process-card,
.news-card,
.form-card,
.notice-card,
.faq-item,
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-soft);
}

.card,
.hero-card,
.panel,
.metric-card,
.feature-card,
.process-card,
.news-card,
.form-card,
.notice-card,
.cta-banner {
  padding: clamp(20px, 2vw, 30px);
}

.card-title,
.section-head h2,
.panel h2,
.panel h3,
.feature-card h3,
.news-card h3,
.notice-card h3,
.process-card h2,
.form-card h2,
.form-card h3,
.hero-card h2 {
  margin-bottom: var(--space-2);
}

.section-head {
  display: grid;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(212, 160, 23, 0.14);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.hero-title,
.page-title {
  font-size: clamp(2.1rem, 4vw, 3.75rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-4);
}

.hero-subtitle,
.page-subtitle,
.muted,
.metric-card span,
.feature-card p,
.process-card p,
.news-card p,
.form-card p,
.notice-card p,
li,
.helper {
  color: var(--muted);
}

.hero-stack,
.hero-mini,
.form-grid,
.start-options,
.footer-brand,
.feature-stack,
.guide-stack,
.faq-list {
  display: grid;
  gap: var(--space-4);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand strong {
  color: #6a6a6a;
  font-size: 1.0rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.footer-brand .small {
  color: #818181;
  font-size: 0.78rem;
  font-weight: 400;
}

.hero-mini {
  gap: var(--space-1);
  color: var(--primary-dark);
  font-weight: 700;
}

.hero-card {
  gap: var(--space-4);
}

.stat-grid,
.preview-grid,
.news-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.feature-card,
.news-card,
.notice-card {
  height: 100%;
}

.icon-circle {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(212, 160, 23, 0.16),
    rgba(241, 203, 105, 0.34)
  );
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: var(--space-3);
}

.inline-badge,
.news-meta,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(212, 160, 23, 0.14);
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: var(--surface-soft);
}

.feature-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: var(--space-4);
  align-items: start;
}

.process-steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--space-4);
}

.step {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 18px;
}

.step .num {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  background: linear-gradient(
    135deg,
    rgba(212, 160, 23, 0.1),
    rgba(241, 203, 105, 0.18)
  );
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-4);
}

.tab {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.tab.active {
  background: rgba(212, 160, 23, 0.14);
  color: var(--primary-dark);
  border-color: rgba(212, 160, 23, 0.24);
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  color: var(--text);
  font-weight: 800;
}

.faq-question span:last-child {
  flex-shrink: 0;
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.faq-answer {
  display: none;
  padding: 0 24px 22px;
}

.faq-item.open .faq-answer {
  display: block;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.site-footer {
  margin-top: 0;
  padding: 34px 0 36px;
  background: rgba(237, 237, 237, 0.78);
}

.footer-inner {
  width: min(1060px, calc(100% - 80px));
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
}

.small,
.helper {
  font-size: 0.94rem;
}

.center {
  text-align: center;
}

.stack-sm {
  display: grid;
  gap: var(--space-3);
}

.footer-kakao-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 22px;
  border-radius: 999px;

  background: #e7e4dd;
  color: #000000;

  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
}

.footer-kakao-btn:hover {
  background: #3a3a3a;
  color: #ffffff;
}

/* =========================
   Responsive
   desktop: default
   tablet: <= 1024px
   mobile: <= 768px
   small mobile: <= 560px
   ========================= */

@media (max-width: 1200px) {
  .container {
    width: min(var(--max-width), calc(100% - 32px));
  }
}

@media (max-width: 1024px) {
  :root {
    --header-height: 128px;
    --space-8: 48px;
    --space-9: 60px;
  }

  .hero-grid,
  .page-hero-grid,
  .split-grid,
  .contact-grid,
  .start-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .panel,
  .form-card,
  .process-card,
  .cta-banner {
    padding: 24px;
  }

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

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

@media (max-width: 768px) {
  :root {
    --header-height: 156px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;
  }

  .container {
    width: min(var(--max-width), calc(100% - 24px));
  }

  .section {
    padding: var(--space-6) 0;
  }

  .section--hero {
    padding-top: var(--space-8);
  }

  .hero-title,
  .page-title {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
  }

  .hero-subtitle,
  .page-subtitle {
    font-size: 1rem;
  }

  .stat-grid,
  .preview-grid,
  .news-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
  }

  .faq-question {
    align-items: flex-start;
  }

  .faq-question span:last-child {
    margin-top: 2px;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 188px;
  }

  .container {
    width: min(var(--max-width), calc(100% - 20px));
  }

  .btn,
  .cta-row .btn {
    width: 100%;
  }

  .cta-row {
    width: 100%;
  }

  .faq-question,
  .faq-answer,
  .card,
  .hero-card,
  .panel,
  .metric-card,
  .feature-card,
  .process-card,
  .news-card,
  .form-card,
  .notice-card,
  .cta-banner {
    padding-left: 18px;
    padding-right: 18px;
  }
}
