@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css');

/* ===== CSS Variables (기업형 프리미엄 그린 톤) ===== */
:root {
  --green-main: #1D8A56;
  --green-900: #104C30;
  --green-800: #15623E;
  --green-700: #197B4D;
  --green-600: #209C61;
  --green-500: #25B26F;
  --green-light: #EBF7F1;
  
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --card-alt: #F8FAF9;
  
  --text-900: #111827;
  --text-700: #374151;
  --text-500: #6B7280;
  --text-400: #9CA3AF;
  
  --border: #E5E7EB;
  
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 8px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 25px -5px rgba(29, 138, 86, 0.1), 0 10px 10px -5px rgba(29, 138, 86, 0.04);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --max-width: 1200px;
  --section-padding: 100px;
  --nav-height: 80px;

  /* Section Backgrounds */
  --section-hero: var(--green-900);
  --section-about: var(--bg);
  --section-vision: var(--card-alt);
  --section-projects: var(--bg);
  --section-partners: var(--card-alt);
  --section-news: var(--bg);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F172A;
    --card: #1E293B;
    --card-alt: #0B1121;
    
    --text-900: #F9FAFB;
    --text-700: #E5E7EB;
    --text-500: #9CA3AF;
    --text-400: #6B7280;
    
    --border: #334155;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 25px -5px rgba(29, 138, 86, 0.2);
  }
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.section-header {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background var(--transition), height var(--transition);
}
@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img { height: 40px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-size: 1.4rem; font-weight: 800; color: var(--green-main); letter-spacing: -0.02em; }
.logo-sub { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; color: var(--text-500); }

.nav-desktop { display: none; }
@media (min-width: 768px) {
  .nav-desktop { display: flex; align-items: center; gap: 24px; }
}
.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-700);
  transition: color var(--transition);
  position: relative;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green-main);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--green-main); }
.nav-desktop a:hover::after, .nav-desktop a.active::after { transform: scaleX(1); transform-origin: left; }

.hamburger { background: transparent; width: 44px; height: 44px; padding: 10px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
@media (min-width: 768px) { .hamburger { display: none; } }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-900); transition: var(--transition); }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu-overlay { position: fixed; inset: 0; z-index: 98; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: var(--transition); }
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
.menu-drawer { position: fixed; top: 0; right: 0; z-index: 99; width: 300px; height: 100vh; background: var(--card); transform: translateX(100%); transition: transform var(--transition); padding: 100px 32px; box-shadow: var(--shadow-md); }
body.menu-open .menu-drawer { transform: translateX(0); }
.menu-drawer a { display: block; padding: 16px 0; font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid var(--border); color: var(--text-900); }

/* ===== Hero Section ===== */
#hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--section-hero);
  overflow: hidden;
}
/* 기업형 오버레이 배경 - 언스플래시 업무 공간 이미지 */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(16, 76, 48, 0.95) 0%, rgba(16, 76, 48, 0.7) 100%), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=1920');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.hero-tagline {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
  animation: fadeUpIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  opacity: 0;
  animation: fadeUpIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  line-height: 1.6;
  margin: 0 0 40px;
  opacity: 0;
  animation: fadeUpIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
.hero-buttons {
  opacity: 0;
  animation: fadeUpIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.btn-primary {
  background: var(--green-500);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(37, 178, 111, 0.39);
}
.btn-primary:hover {
  background: var(--green-400);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 178, 111, 0.5);
}

/* ===== General Section Styling ===== */
.section-header {
  margin-bottom: 56px;
}
.section-header.flex-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}
.section-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-900);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.2;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--text-500);
  font-weight: 500;
  margin: 0;
}

/* ===== About ===== */
#about {
  padding: var(--section-padding) 0;
  background: var(--section-about);
}
.about-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 992px) {
  .about-content-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 80px;
  }
  .about-header { flex: 0 0 350px; position: sticky; top: 120px; }
  .section-body { flex: 1; }
}
.title-line {
  width: 60px;
  height: 4px;
  background: var(--green-main);
  margin-top: 24px;
  border-radius: 2px;
}
#about .about-para {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-700);
  margin: 0 0 24px;
}
#about .about-para:first-child {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-900);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* ===== Vision / Mission / Values ===== */
#vision {
  padding: var(--section-padding) 0;
  background: var(--section-vision);
}
.vmv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .vmv-grid { grid-template-columns: repeat(3, 1fr); }
}
.vmv-panel {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  height: 100%;
}
.vmv-panel:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green-main);
}
.vmv-icon {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  color: var(--green-main);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}
.vmv-panel:hover .vmv-icon {
  background: var(--green-main);
  color: #fff;
}
.vmv-icon svg { width: 28px; height: 28px; }
.vmv-panel h3 { font-size: 1.5rem; font-weight: 700; color: var(--text-900); margin: 0 0 16px; }
.vmv-panel p { font-size: 1rem; color: var(--text-500); line-height: 1.6; margin: 0; }
.values-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.values-list li {
  padding: 8px 16px;
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-700);
}

/* ===== Projects ===== */
#projects {
  padding: var(--section-padding) 0;
  background: var(--section-projects);
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-main);
}
.project-card-inner {
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-main);
  margin-bottom: 16px;
}
.project-card-content h3 { font-size: 1.25rem; font-weight: 700; color: var(--text-900); margin: 0 0 12px; line-height: 1.4; }
.project-card-content p { font-size: 0.95rem; color: var(--text-500); margin: 0 0 24px; line-height: 1.6; }
.project-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--card-alt);
  color: var(--text-500);
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ===== Partners ===== */
#partners {
  padding: var(--section-padding) 0;
  background: var(--section-partners);
}
.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .partners-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.partner-card {
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: all var(--transition);
}
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(29, 138, 86, 0.3);
}
.partner-info .partner-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-900);
  margin: 0 0 8px;
}
.partner-info .partner-desc {
  font-size: 0.95rem;
  color: var(--text-500);
  margin: 0;
  line-height: 1.5;
}
.partner-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.partner-period {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-400);
}
.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-main);
  transition: var(--transition-fast);
}
.partner-link:hover { color: var(--green-700); text-decoration: underline; }

/* ===== News ===== */
#news {
  padding: var(--section-padding) 0;
  background: var(--section-news);
}
.news-list { list-style: none; padding: 0; margin: 0; }
.news-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
}
.news-item:first-child { border-top: 1px solid var(--border); }
.news-item a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-900);
  transition: color var(--transition-fast);
}
.news-item:hover a { color: var(--green-main); }
.news-date { font-size: 0.95rem; color: var(--text-500); }
.more-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  font-weight: 600;
  color: var(--text-700);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all var(--transition-fast);
}
.more-btn:hover { background: var(--green-main); color: #fff; border-color: var(--green-main); }

/* ===== Footer ===== */
.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo { margin-bottom: 24px; }
.footer-logo-img { height: 36px; }
.footer-contact { font-size: 0.95rem; line-height: 1.8; max-width: 400px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 1rem; color: rgba(255, 255, 255, 0.9); font-weight: 500; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--green-500); }
.footer-bottom { text-align: center; font-size: 0.85rem; }
