/* ============================================================
   TAMSCIENCE · style.css v2.0
   화이트 베이스 · 옐로우 포인트 · Noto Sans KR
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

:root {
  --yellow:  #FFD700;
  --yellow2: #FFC200;
  --navy:    #1A2E4A;
  --navy2:   #0F1E33;
  --text:    #1A2E4A;
  --muted:   #5A6880;
  --light:   #F5F7FB;
  --border:  #E4E8F0;
  --white:   #FFFFFF;
  --radius:  16px;
  --radius-lg: 24px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans KR', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  word-break: keep-all;
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ── 공통 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  transition: .22s; border: 0; cursor: pointer;
}
.btn-primary   { background: var(--yellow); color: var(--navy2); }
.btn-primary:hover { background: var(--yellow2); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,215,0,.35); }
.btn-outline   { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white     { background: #fff; color: var(--navy2); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.15); }
.btn-ghost     { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ── 섹션 공통 ── */
.section-pad   { padding: 100px 7vw; }
.section-label {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em;
  color: var(--yellow2); text-transform: uppercase;
}
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 {
  font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1.18; margin: 0 0 18px;
  letter-spacing: -.04em; color: var(--navy);
}
.section-head h2 em { font-style: normal; color: var(--yellow2); }
.section-head p { font-size: 17px; line-height: 1.75; color: var(--muted); margin: 0; }

/* ── Construction bar ── */
.construction-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; gap: 14px; justify-content: center;
  padding: 0 18px; height: 44px;
  background: var(--navy2); color: #fff;
  font-size: 13px; font-weight: 500;
}
.construction-bar strong { color: var(--yellow); font-size: 11px; letter-spacing: .15em; }
.construction-bar button {
  margin-left: auto; width: 24px; height: 24px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 17px;
}
.construction-bar.is-hidden { display: none; }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; height: 72px;
  display: flex; align-items: center; gap: 32px; padding: 0 5vw;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-header.has-bar { top: 44px; }
.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(26,46,74,.1); }

.logo { display: flex; align-items: center; height: 44px; }
.logo img { height: 36px; width: auto; }

.gnb {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
}
.gnb a {
  padding: 6px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 700; color: var(--navy);
  transition: .2s;
}
.gnb a:hover, .gnb a.active { background: var(--light); color: var(--navy2); }

.header-cta {
  height: 40px; padding: 0 18px;
  background: var(--yellow); color: var(--navy2);
  border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: .2s; display: flex; align-items: center;
}
.header-cta:hover { background: var(--yellow2); }

.menu-btn {
  display: none; background: none; border: 0;
  width: 40px; height: 40px; padding: 8px; margin-left: auto;
}
.menu-btn span { display: block; height: 2px; background: var(--navy); margin: 6px 0; transition: .25s; border-radius: 2px; }
.menu-btn.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn.is-open span:last-child  { transform: translateY(-4px) rotate(-45deg); }

.mobile-panel {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  z-index: 99; background: var(--white); padding: 12px 20px 32px;
  overflow-y: auto; border-top: 1px solid var(--border);
}
.mobile-panel.is-open { display: block; }
.mobile-panel a {
  display: block; padding: 16px 8px;
  font-size: 17px; font-weight: 700; color: var(--navy);
  border-bottom: 1px solid var(--border);
}
.mobile-panel .m-cta {
  display: block; margin-top: 20px; text-align: center;
  background: var(--yellow); color: var(--navy2);
  padding: 16px; border-radius: var(--radius);
  font-weight: 700; font-size: 16px;
}

/* ── Hero Slider ── */
.hero-slider {
  position: relative; height: 100vh; min-height: 700px;
  overflow: hidden; background: var(--navy2);
  color: #fff; margin-top: 72px;
}
.hero-slider.has-bar { margin-top: 116px; }

.slides, .slide, .slide picture, .slide img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.slide {
  opacity: 0; pointer-events: none;
  transition: opacity .9s ease, transform .9s ease;
  transform: scale(1.03);
}
.slide.is-active { opacity: 1; pointer-events: auto; transform: scale(1); }
.slide img { object-fit: cover; object-position: center; }

/* 그라디언트 오버레이 */
.slide-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(15,30,51,.82) 0%, rgba(15,30,51,.5) 50%, rgba(15,30,51,.15) 100%),
    linear-gradient(0deg, rgba(0,0,0,.4) 0%, transparent 50%);
}

/* 옐로우 포인트 사선 장식 */
.slide-deco {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  width: 45vw; height: 100%;
  background: linear-gradient(135deg, transparent 60%, rgba(255,215,0,.08) 100%);
  pointer-events: none;
}

.slide-content {
  position: absolute; z-index: 5;
  left: 8vw; top: 50%; transform: translateY(-50%);
  max-width: 740px;
}
.slide-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--yellow);
}
.slide-eyebrow::before {
  content: ""; display: block; width: 28px; height: 2px;
  background: var(--yellow); border-radius: 2px;
}
.slide h1, .slide h2 {
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 1.02; margin: 0 0 20px;
  letter-spacing: -.06em; font-weight: 900;
}
.slide h1 em, .slide h2 em { font-style: normal; color: var(--yellow); }
.slide .lead {
  font-size: clamp(16px, 1.4vw, 20px); line-height: 1.65;
  color: rgba(255,255,255,.82); margin: 0 0 36px; font-weight: 400;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 슬라이더 컨트롤 */
.slider-arrow {
  position: absolute; top: 50%; z-index: 10;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,.3); border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  font-size: 26px; line-height: 1;
  backdrop-filter: blur(8px); transition: .25s;
}
.slider-arrow:hover { background: var(--yellow); color: var(--navy2); border-color: var(--yellow); }
.prev { left: 24px; }
.next { right: 24px; }

.slider-dots {
  position: absolute; bottom: 40px; left: 8vw; z-index: 10;
  display: flex; gap: 8px;
}
.slider-dots button {
  width: 36px; height: 3px; border: 0; border-radius: 2px; padding: 0;
  background: rgba(255,255,255,.3); transition: .25s;
}
.slider-dots button.is-active { background: var(--yellow); width: 52px; }

.scroll-cue {
  position: absolute; right: 5vw; bottom: 40px; z-index: 10;
  font-size: 11px; letter-spacing: .22em; font-weight: 700;
  color: rgba(255,255,255,.6); writing-mode: vertical-rl;
}

/* ── Intro (과학친구) ── */
.intro { background: var(--white); }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feature-card {
  padding: 36px 32px; border-radius: var(--radius-lg);
  background: var(--light); border: 1px solid var(--border);
  transition: .25s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(26,46,74,.08); }
.feature-card .fc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--yellow); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 24px;
}
.feature-card strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: .15em; color: var(--yellow2); margin-bottom: 10px; }
.feature-card h3 { font-size: 20px; margin: 0 0 12px; color: var(--navy); font-weight: 700; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.72; font-size: 15px; }

/* ── 제품 쇼룸 ── */
.showroom { background: var(--light); }
.product-rail { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.product-card {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  min-height: 400px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px; color: #fff;
  transition: .3s; border: 0;
}
.product-card.big { min-height: 480px; }
.product-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,20,40,.75) 0%, rgba(10,20,40,.2) 55%, transparent 100%);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(0,0,0,.22); }
.product-card .pc-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #1A2E4A 0%, #2B5BA8 100%);
}
.product-card.big .pc-bg   { background: linear-gradient(135deg, #0F3D2E 0%, #1A7A52 100%); }
.product-card.air .pc-bg   { background: linear-gradient(135deg, #0A1E3D 0%, #1A5FA8 100%); }
.product-card .pc-content  { position: relative; z-index: 2; }
.product-card .pc-label    { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--yellow); margin-bottom: 12px; }
.product-card h3           { font-size: 26px; line-height: 1.2; margin: 0 0 10px; font-weight: 700; }
.product-card p            { font-size: 14px; color: rgba(255,255,255,.78); line-height: 1.6; margin: 0 0 20px; }
.product-card .pc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--yellow);
  padding: 8px 16px; border: 1.5px solid var(--yellow); border-radius: 999px;
  transition: .2s;
}
.product-card:hover .pc-btn { background: var(--yellow); color: var(--navy2); }

/* 옐로우 악센트 (이미지 없을 때) */
.pc-accent {
  position: absolute; top: 24px; right: 24px; z-index: 1;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,215,0,.15); border: 1.5px solid rgba(255,215,0,.3);
}

/* 카드 실사진 배경 */
.product-card .pc-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
  transition: transform .5s ease;
}
.product-card:hover .pc-photo { transform: scale(1.05); }

/* ── 프로그램 ── */
.program { background: var(--white); }
.program-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.program-item { background: var(--white); padding: 36px 28px; }
.program-item .p-num { font-size: 13px; font-weight: 700; color: var(--yellow2); margin-bottom: 20px; }
.program-item h3 { font-size: 19px; font-weight: 700; margin: 0 0 12px; color: var(--navy); }
.program-item p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }

/* ── Trust ── */
.trust { background: var(--navy2); color: #fff; }
.trust .section-head h2 { color: #fff; }
.trust .section-head p  { color: rgba(255,255,255,.68); }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.trust-card {
  padding: 32px 24px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.trust-card strong { display: block; font-size: 48px; font-weight: 900; color: var(--yellow); letter-spacing: -.05em; line-height: 1; }
.trust-card span   { display: block; margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.7); font-weight: 500; }

/* ── CTA Banner ── */
.cta-banner {
  background: var(--yellow); padding: 80px 7vw;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(28px, 3.8vw, 52px); line-height: 1.2; margin: 0 0 14px; color: var(--navy2); font-weight: 900; letter-spacing: -.04em; }
.cta-banner p  { font-size: 18px; color: var(--navy); margin: 0 0 32px; }
.cta-banner .cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.footer {
  background: var(--navy2); color: rgba(255,255,255,.6);
  padding: 60px 7vw 40px;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 32px;
}
.footer-brand .footer-logo img { height: 32px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: 13px; line-height: 1.75; color: rgba(255,255,255,.55); }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--yellow); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.65); transition: .2s; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.footer-biz { font-size: 12px; line-height: 1.9; color: rgba(255,255,255,.4); }
.footer-biz strong { color: rgba(255,255,255,.65); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-copy a { color: rgba(255,255,255,.45); transition: .2s; }
.footer-copy a:hover { color: var(--yellow); }

/* ── 팝업 ── */
.open-popup { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.open-popup.is-hidden { display: none; }
.open-popup__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.open-popup__box {
  position: relative; width: min(500px,100%);
  border-radius: 24px; padding: 40px 36px 32px;
  background: var(--white); box-shadow: 0 32px 80px rgba(0,0,0,.25);
  border-top: 4px solid var(--yellow);
}
.open-popup__close {
  position: absolute; right: 16px; top: 16px;
  width: 36px; height: 36px; border: 1px solid var(--border);
  border-radius: 50%; background: var(--light); color: var(--muted);
  font-size: 22px; line-height: 34px; text-align: center;
}
.open-popup__label { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--yellow2); margin-bottom: 14px; }
.open-popup__box h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.12; margin: 0; color: var(--navy); }
.open-popup__box h2 strong { color: var(--yellow2); }
.open-popup__text { margin: 16px 0 20px; font-size: 15px; color: var(--muted); line-height: 1.7; }
.open-popup__today { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.open-popup__today input { accent-color: var(--yellow2); }
.open-popup__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.open-popup__btn {
  flex: 1; height: 48px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.open-popup__btn.primary { background: var(--yellow); color: var(--navy2); }
.open-popup__btn.line    { background: var(--light); color: var(--muted); border: 1px solid var(--border); }

/* ── 서브페이지 공통 ── */
.page-hero {
  background: var(--navy2); color: #fff; padding: 80px 7vw 70px;
  margin-top: 72px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(135deg, transparent 40%, rgba(255,215,0,.07) 100%);
  pointer-events: none;
}
.page-hero .ph-label { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--yellow); margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(32px,4.5vw,60px); font-weight: 900; margin: 0 0 14px; letter-spacing: -.05em; }
.page-hero p  { font-size: 17px; color: rgba(255,255,255,.72); margin: 0; max-width: 580px; line-height: 1.7; }
.breadcrumb { display: flex; gap: 6px; align-items: center; margin-bottom: 20px; font-size: 12px; color: rgba(255,255,255,.5); }
.breadcrumb a { color: rgba(255,255,255,.5); } .breadcrumb a:hover { color: var(--yellow); }
.breadcrumb span { color: rgba(255,255,255,.25); }

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .feature-grid   { grid-template-columns: repeat(2,1fr); }
  .product-rail   { grid-template-columns: 1fr 1fr; }
  .program-grid   { grid-template-columns: repeat(2,1fr); }
  .trust-grid     { grid-template-columns: repeat(2,1fr); }
  .footer-inner   { grid-template-columns: 1fr 1fr; }
  .product-card.big { grid-column: span 2; }
}
@media (max-width: 768px) {
  body.popup-open { overflow: hidden; }
  .site-header    { height: 64px; padding: 0 18px; }
  .gnb, .header-cta { display: none; }
  .menu-btn { display: block; }
  .hero-slider    { height: 88vh; min-height: 600px; margin-top: 64px; }
  .slide-content  { left: 20px; right: 20px; top: auto; bottom: 100px; transform: none; max-width: none; }
  .slide h1, .slide h2 { font-size: 40px; }
  .slider-arrow   { display: none; }
  .slider-dots    { left: 20px; bottom: 36px; }
  .scroll-cue     { display: none; }
  .section-pad    { padding: 64px 20px; }
  .section-head   { text-align: left; }
  .feature-grid, .product-rail, .program-grid, .trust-grid { grid-template-columns: 1fr; }
  .product-card.big { grid-column: span 1; }
  .footer-inner   { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom  { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; }
  .page-hero      { margin-top: 64px; padding: 56px 20px 48px; }
  .open-popup__box { padding: 32px 22px 26px; }
  .open-popup__btn { width: 100%; }
}

/* 푸터 로고 사이즈 보정 */
.footer-logo img { height: 36px; width: auto; }
/* 헤더 로고 사이즈 보정 (PC 130% 확대) */
.logo img { height: 44px; width: auto; }
@media (max-width: 768px) {
  .logo img { height: 36px; width: auto; }
}
