/* =========================
   Global Reset & Base
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #020617;
  color: #e5e7eb;
  line-height: 1.6;
}

/* 링크/버튼 기본 스타일 */

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

a:hover {
  text-decoration: none;
}

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

/* 컨테이너 공통 */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 섹션 공통 */

.section {
  padding: 96px 0;
}

.section-label {
  font-size: 17px;             /* 12 → 17px */
  letter-spacing: 0.12em;      /* 조금 줄여야 너무 퍼져 보이지 않음 */
  text-transform: uppercase;
  color: #d1d5db;              /* #9ca3af → #d1d5db (조금 더 밝게) */
  margin-bottom: 16px;         /* 12 → 16px (섹션 제목 아래 여백 확보) */
  font-weight: 600;
}

.section h2 {
  font-size: 28px;
  margin: 0 0 16px;
}

.section-desc {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 32px;
}

/* 두 컬럼 공통 레이아웃 */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

/* =========================
   Header / Navigation
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* 오른쪽 그룹: 국기 + 햄버거 */

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 로고 */

/* 로고 */

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  height: 52px;    /* 기존 42 → 52 */
  width: auto;
  flex-shrink: 0;
  filter: brightness(1.75) contrast(1.5) saturate(1.25)
          drop-shadow(0 0 12px rgba(255, 170, 60, 0.9));
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-main {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.logo-sub {
  font-size: 14px;
  font-weight: 600;
  color: #f3f4f6;
}

/* nav */

.nav {
  display: flex;
  align-items: center;
}

/* 기본: 햄버거 전용 네비게이션 (PC/모바일 모두 동일 패턴) */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;

  position: absolute;
  right: 16px;
  top: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #020617;
  padding: 10px 16px 12px;
  border-radius: 14px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 40;
}

.nav-links.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-links li {
  width: 100%;
}

.nav-links a {
  display: block;
  padding: 6px 0;
  color: #e5e7eb;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: #38bdf8;
}

/* 햄버거 버튼 (PC/모바일 공통 사용) */

.nav-toggle {
  display: block;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 10px;
  background: #e5e7eb;
  margin: 3px 0;
}

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

.hero {
  padding: 96px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-copy {
  position: relative;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #38bdf8;
  margin: 0 0 8px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.3;
}

.highlight {
  color: #fbbf24;
}

.hero-text {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 24px;
}

/* 버튼 */

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #0b1120;
  font-weight: 600;
  border: none;
}

.btn.primary:hover {
  filter: brightness(1.04);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
}

.btn.ghost:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.btn.full {
  width: 100%;
}

/* Hero 태그 */

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: #9ca3af;
}

.hero-tags span {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
}

/* Hero Visual */

.hero-visual {
  position: relative;
  min-height: 240px;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.7;
}

.orb-main {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 30% 30%, #22c55e, transparent 70%);
  top: -30px;
  right: 0;
}

.orb-sub {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 30% 30%, #38bdf8, transparent 70%);
  bottom: -20px;
  left: 10px;
}

.hero-card {
  position: relative;
  background: radial-gradient(circle at top left, #1f2937, #020617);
  border-radius: 18px;
  padding: 20px 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  margin-top: 24px;
}

.hero-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #fbbf24;   /* 동일 포인트 컬러 적용 */
  font-weight: 700;
}

.hero-card p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #cbd5f5;
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: #9ca3af;
}

.hero-card li::before {
  content: "• ";
  color: #22c55e;
}

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

.about-main .lead {
  font-size: 15px;
  color: #e5e7eb;
  margin-bottom: 16px;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 14px;
}

.bullet-list li {
  margin-bottom: 6px;
}

.bullet-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  background: rgba(15, 23, 42, 0.9);
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 12px;
}

.about-philosophy {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.9);
  font-size: 13px;
  color: #cbd5f5;
}

.about-philosophy h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

/* About Side 카드 */

.about-side {
  align-self: stretch;
}

.pill-card {
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border-radius: 18px;
  padding: 20px 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  font-size: 13px;
}

.pill-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.pill-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pill-card li {
  margin-bottom: 6px;
}

/* =========================
   Services
========================= */

.services {
  background: radial-gradient(circle at top, #020617 0%, #020617 40%, #020617 100%);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 18px 16px 16px;
  font-size: 13px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #fbbf24;   /* 당사의 핵심 서비스와 같은 색 */
  font-weight: 700;
}

.card p {
  margin: 0 0 10px;
  color: #d1d5db;
}

.card ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #9ca3af;
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.8);
}

/* =========================
   Portfolio
========================= */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pf-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  font-size: 13px;
}

.pf-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #fbbf24;   /* 동일 포인트 컬러 적용 */
  font-weight: 700;
}

.pf-card p {
  margin: 0 0 10px;
  color: #d1d5db;
}

.pf-card ul {
  margin: 0;
  padding-left: 18px;
  color: #9ca3af;
}

/* =========================
   Contact
========================= */

.contact-inner {
  align-items: stretch;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.contact-list li {
  margin-bottom: 6px;
}

.contact-list a {
  text-decoration: underline;
  transition: color 0.25s ease;
}

.contact-list a:hover {
  color: #fbbf24;
}

.contact-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 18px 16px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  font-size: 13px;
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.contact-card p {
  margin: 0 0 10px;
  color: #d1d5db;
}

.contact-card ol {
  margin: 0 0 14px;
  padding-left: 18px;
}

/* =========================
   Footer
========================= */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.26);
  padding: 22px 0 30px;
  margin-top: 40px;
}

.footer-inner {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
}

.footer-sub {
  margin-top: 4px;
  color: #6b7280;
}

/* =========================
   Responsive: Tablet
========================= */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 24px;
  }

  .two-column {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
  }

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

  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================
   Responsive: Mobile
========================= */

@media (max-width: 720px) {
  .header-inner {
    height: 60px;
  }

  .header-right {
    gap: 4px;
  }

  .lang-switch {
    gap: 4px;
  }

  .lang-flag {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .logo-img {
    height: 30px;  /* 기존 28~34 → 44로 증가 */
    width: auto;
    filter: brightness(1.8) contrast(1.55)
            drop-shadow(0 0 14px rgba(255, 180, 70, 1));
  }

  .logo-sub {
    font-size: 11px;       /* "주식회사 유메이아이티" 글씨도 살짝 축소 */
    line-height: 1.2;
  }

  /* 텍스트 대비 및 크기 개선 */

  body {
    color: #f9fafb;
  }

  h1,
  h2,
  h3 {
    color: #ffffff;
  }

  .hero-text,
  .section-desc,
  p {
    font-size: 15px;
    line-height: 1.7;
    color: #e5e7eb;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    text-align: left;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.35;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-visual {
    margin-top: 24px;
  }

  .hero-card {
    margin-top: 0;
  }

  .hero-tags {
    margin-bottom: 8px;
  }

  .section {
    padding: 80px 0;
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Section label color accents --- */

.section-label {
  color: #60a5fa;
}

/* ABOUT UMAYIT → 주황 포인트 */
#about .section-label {
  color: #fb923c;
}

/* SERVICES & PRODUCTS → 그린 포인트 */
#services .section-label {
  color: #22c55e;
}

.pill-title {
  color: #fbbf24;
  font-weight: 600;
}
/* PROJECT HIGHLIGHTS → 스카이 블루 */
#portfolio .section-label {
  color: #38bdf8;
}

/* CONTACT → 보라 포인트 */
#contact .section-label {
  color: #a855f7;
}

.nav-links a.active {
  font-weight: 700;
  color: #38bdf8 !important;
}

/* 언어 스위치: 국기 이모지 가로 배치 */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 0;
  white-space: nowrap;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.7);
  font-size: 16px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.lang-flag:hover {
  border-color: #38bdf8;
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.9);
}

.lang-flag.active {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

.footer-slogan {
  color: #fbbf24; /* (주)유메이아이티와 동일한 포인트 색 */
  font-weight: 500;
}


/* ===== Desktop (>=721px) Hero / About / Card layout tuning ===== */
@media (min-width: 721px) {

  /* Hero 전체 구조를 데스크톱용 2열로 고정 */
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 40px;
  }

  /* Hero 아래 여백을 조금 줄여서 ABOUT과의 간격 자연스럽게 */
  .hero {
    padding-bottom: 64px;
  }

  /* ABOUT 섹션이 너무 멀어 보이지 않도록 위 여백 줄이기 */
  #about.section,
  #about.section.about,
  #about {
    padding-top: 80px;
  }

  /* Reward Train 카드가 너무 위에 붙지 않도록 살짝 아래로 */
  .hero-visual {
    margin-top: 24px;
  }
  #about .section-label {
    grid-column: 1 / -1;   /* 라벨이 위에서 두 컬럼 전체 차지 */
  }

  #about .about-main {
    grid-column: 1 / 2;    /* 왼쪽 컬럼: 유메이아이티의 의미 */
  }

  #about .about-side {
    grid-column: 2 / 3;    /* 오른쪽 컬럼: 당사의 핵심 서비스 */
  }
}

/* === 모바일에서 Hero → ABOUT 사이 공백 줄이기 === */
@media (max-width: 720px) {
  /* Hero 아래 여백 줄이기 */
  .hero {
    padding-bottom: 40px;   /* 기존 80px → 40px 정도로 축소 */
  }

  /* ABOUT 섹션 위 여백 줄이기 */
  #about,
  #about.section {
    padding-top: 40px;      /* 기존 96px → 40px 정도로 축소 */
  }
  
  #contact.section,
  #contact {
    padding-bottom: 40px;   /* 80px → 40px */
  }

  .site-footer {
    margin-top: 24px;       /* 40px → 24px */
  }
}

/* 모든 카드 제목 색상 통일 (모바일 + PC 강제 적용) */
.hero-card h2,
.card h3,
.pf-card h3 {
  color: #fbbf24 !important;
  font-weight: 700 !important;
}

/* ============================
   CONTACT – Google Map 디자인 개선
   ============================ */
.contact-map {
  margin-top: 20px;
  border-radius: 24px;               /* 더 고급스러운 라운딩 */
  overflow: hidden;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45), /* 입체감 그림자 */
    0 4px 12px rgba(0, 0, 0, 0.25);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 340px;                      /* PC 기준 추천 높이 */
  border: 0;
}

/* 모바일 최적화 */
@media (max-width: 720px) {
  .contact-map iframe {
    height: 260px;
  }
}
