/* ===================================================================
   식품감각평가연구센터 (FSRC) — 디자인 시스템
   palette: 네이비(브랜드) + 스카이블루(포인트), 신선·청결 톤
   =================================================================== */

:root {
  --navy:        #0e3a5f;   /* 로고 네이비 — 헤더/제목 */
  --navy-deep:   #0a2a45;
  --sky:         #1f9dc4;   /* 포인트 스카이블루 */
  --sky-light:   #e8f4f9;
  --sky-bright:  #2fb3d9;
  --ink:         #1f2937;   /* 본문 텍스트 */
  --gray:        #5b6b7b;   /* 보조 텍스트 */
  --line:        #e4eaef;
  --bg:          #ffffff;
  --bg-soft:     #f5f9fb;
  --white:       #ffffff;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 6px 24px rgba(14, 58, 95, 0.08);
  --shadow-lg:   0 16px 48px rgba(14, 58, 95, 0.14);
  --maxw:        1160px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sky);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 800;
  color: var(--navy); line-height: 1.3; letter-spacing: -0.02em;
}
.section-desc { color: var(--gray); font-size: 17px; margin-top: 14px; max-width: 640px; }
.center { text-align: center; }
.center .section-desc { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  border: none;
}
.btn-primary { background: var(--sky); color: #fff; box-shadow: 0 8px 20px rgba(31,157,196,.32); }
.btn-primary:hover { background: var(--sky-bright); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31,157,196,.4); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--sky); color: var(--sky); transform: translateY(-2px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(14,58,95,.07); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > li > a {
  display: block; padding: 10px 16px; font-size: 16px; font-weight: 600;
  color: var(--ink); border-radius: 8px; transition: color .2s, background .2s;
}
.nav > li > a:hover { color: var(--sky); background: var(--sky-light); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-tel { font-weight: 800; color: var(--navy); font-size: 17px; }
.header-tel small { display: block; font-size: 11px; font-weight: 600; color: var(--gray); letter-spacing: .08em; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; border-radius: 2px; }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  padding-top: 74px;
  background: linear-gradient(120deg, #f0f8fb 0%, #ffffff 60%);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.hero-content { animation: rise .9s var(--ease) both; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 24px;
}
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.hero h1 {
  font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.18;
  color: var(--navy); letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--sky); }
.hero-lead { margin-top: 22px; font-size: 19px; color: var(--gray); max-width: 480px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { margin-top: 46px; display: flex; gap: 36px; }
.hero-stats .num { font-size: 30px; font-weight: 800; color: var(--navy); }
.hero-stats .num span { color: var(--sky); }
.hero-stats .lbl { font-size: 14px; color: var(--gray); }

.hero-visual { position: relative; animation: rise 1s var(--ease) .15s both; }
.hero-visual img {
  border-radius: 24px; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; object-fit: cover; width: 100%;
}
.hero-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: #fff; border-radius: var(--radius); padding: 18px 22px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px;
}
.hero-badge .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--sky-light);
  display: grid; place-items: center; font-size: 22px; }
.hero-badge .t { font-weight: 800; color: var(--navy); font-size: 15px; }
.hero-badge .s { font-size: 13px; color: var(--gray); }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ===================================================================
   SECTION shells
   =================================================================== */
section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 56px; }

/* ---------- 신뢰 띠 (trust strip) ---------- */
.trust { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.trust .label { font-size: 14px; font-weight: 700; color: var(--gray); }
.trust .clients { display: flex; gap: 14px 28px; flex-wrap: wrap; }
.trust .clients span { font-size: 15px; font-weight: 600; color: var(--navy); opacity: .85; }

/* ---------- 사업분야 카드 ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--sky), var(--sky-bright));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card .ic {
  width: 56px; height: 56px; border-radius: 14px; background: var(--sky-light);
  display: grid; place-items: center; font-size: 28px; margin-bottom: 20px;
}
.service-card h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 15px; color: var(--gray); line-height: 1.65; }
.service-card .more { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--sky); display: inline-flex; gap: 6px; }
.service-card:hover .more .arrow { transform: translateX(4px); }
.service-card .arrow { transition: transform .25s var(--ease); }

/* ---------- 절차 (process) ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-visual img { border-radius: var(--radius); box-shadow: var(--shadow); }
.mvc-list { display: grid; gap: 16px; margin-top: 28px; }
.mvc-item { display: flex; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.mvc-item .k { font-weight: 800; color: var(--sky); min-width: 56px; }
.mvc-item .v { color: var(--ink); }
.mvc-item .v b { color: var(--navy); }

/* ---------- 통계/연혁 (stats band) ---------- */
.stats-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; border-radius: 24px; padding: 56px 48px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stats-band .num { font-size: 42px; font-weight: 800; line-height: 1; }
.stats-band .num span { color: var(--sky-bright); }
.stats-band .lbl { margin-top: 12px; font-size: 15px; color: rgba(255,255,255,.78); }

/* ---------- CTA (문의/블로그) ---------- */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cta-card {
  border-radius: 24px; padding: 48px 44px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 280px;
}
.cta-contact { background: linear-gradient(135deg, var(--sky) 0%, var(--sky-bright) 100%); color: #fff; }
.cta-blog { background: #fff; border: 1px solid var(--line); color: var(--navy); }
.cta-card h3 { font-size: 28px; font-weight: 800; line-height: 1.3; }
.cta-card p { margin-top: 12px; font-size: 16px; opacity: .92; }
.cta-blog p { color: var(--gray); }
.cta-card .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.cta-contact .tel { font-size: 30px; font-weight: 800; margin-top: 18px; }
.cta-contact .hours { font-size: 14px; opacity: .85; }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 64px 0 36px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-logo img { height: 36px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--sky-bright); }
.footer-info { padding-top: 28px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; line-height: 1.9; }
.footer-info b { color: rgba(255,255,255,.9); font-weight: 600; }
.footer-bottom { margin-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,.85); }
.footer-bottom .links { display: flex; gap: 20px; }

/* ===================================================================
   SUB PAGES (공통 내부 페이지)
   =================================================================== */
.page-hero {
  margin-top: 74px; padding: 72px 0 64px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(47,179,217,.25), transparent 70%); border-radius: 50%;
}
.page-hero .eyebrow { color: var(--sky-bright); }
.page-hero h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.page-hero p { margin-top: 16px; font-size: 18px; color: rgba(255,255,255,.82); max-width: 620px; }
.breadcrumb { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }

/* 본문 블록 */
.block { padding: 80px 0; }
.block + .block { padding-top: 0; }
.block-head { margin-bottom: 36px; }
.block-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--navy); }
.block-head .eyebrow { margin-bottom: 10px; }
.lead-text { font-size: 18px; color: var(--ink); line-height: 1.85; }
.lead-text + .lead-text { margin-top: 16px; }
.muted { color: var(--gray); }

/* 정보 테이블 (회사개요 등) */
.info-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); }
.info-table th, .info-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 200px; background: var(--bg-soft); font-weight: 700; color: var(--navy); }
.info-table td { color: var(--ink); }

/* 데이터 테이블 (검사 비교 등) */
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; overflow: hidden; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.data-table th { background: var(--navy); color: #fff; padding: 16px 18px; text-align: left; font-weight: 700; }
.data-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); background: #fff; vertical-align: top; color: var(--ink); }
.data-table tr:last-child td { border-bottom: none; }
.data-table .hl { font-weight: 700; color: var(--navy); white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* 연혁 타임라인 */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 28px; }
.timeline li::before { content: ""; position: absolute; left: -32px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--sky); }
.timeline .year { font-weight: 800; color: var(--sky); font-size: 17px; }
.timeline .desc { color: var(--ink); margin-top: 2px; }

/* STEP 절차 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step::before { counter-increment: step; content: "STEP " counter(step); font-size: 13px; font-weight: 800; color: var(--sky); letter-spacing: .05em; }
.step h4 { font-size: 18px; font-weight: 800; color: var(--navy); margin: 8px 0 8px; }
.step p { font-size: 14px; color: var(--gray); }

/* 카드 그리드 (특징 등) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.feature .ic { width: 52px; height: 52px; border-radius: 13px; background: var(--sky-light); display: grid; place-items: center; font-size: 26px; margin-bottom: 16px; }
.feature h4 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--gray); }

/* 검사 상세 (anchor 섹션) */
.svc-detail { scroll-margin-top: 90px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.svc-detail:last-child { border-bottom: none; }
.svc-detail .tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--sky-light); color: var(--sky); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.svc-detail h3 { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 18px; }
.spec-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.spec-list .row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.spec-list .k { font-weight: 700; color: var(--sky); }
.spec-list .v { color: var(--ink); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.channel { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.channel:hover { border-color: var(--sky); transform: translateY(-3px); box-shadow: var(--shadow); }
.channel .ic { width: 50px; height: 50px; flex: none; border-radius: 13px; display: grid; place-items: center; font-size: 24px; }
.channel.tel .ic { background: var(--sky-light); }
.channel.mail .ic { background: #eef6ed; }
.channel.kakao .ic { background: #fee500; }
.channel.blog .ic { background: #eafaf0; }
.channel .t { font-size: 13px; color: var(--gray); font-weight: 600; }
.channel .v { font-size: 19px; font-weight: 800; color: var(--navy); }
.channel .s { font-size: 13px; color: var(--gray); }

form.inquiry { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
form.inquiry .field { margin-bottom: 18px; }
form.inquiry label { display: block; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
form.inquiry label .req { color: #e2574c; }
form.inquiry input, form.inquiry select, form.inquiry textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
form.inquiry input:focus, form.inquiry select:focus, form.inquiry textarea:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(31,157,196,.14);
}
form.inquiry textarea { resize: vertical; min-height: 130px; }
form.inquiry .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.inquiry .agree { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--gray); }
form.inquiry .agree input { width: auto; margin-top: 4px; }
form.inquiry button { width: 100%; justify-content: center; margin-top: 6px; }

/* 지도 */
.map-embed { width: 100%; aspect-ratio: 16/7; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* 약관 본문 */
.legal { max-width: 820px; }
.legal h3 { font-size: 19px; font-weight: 800; color: var(--navy); margin: 32px 0 12px; }
.legal p, .legal li { color: var(--ink); font-size: 15px; line-height: 1.85; }
.legal ul { list-style: disc; padding-left: 22px; margin: 10px 0; }

/* 블로그 미리보기 (메인) */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; display: block; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--sky-light), #d8eef5); display: grid; place-items: center; font-size: 40px; }
.blog-card .body { padding: 22px 24px; }
.blog-card .cat { font-size: 12px; font-weight: 700; color: var(--sky); letter-spacing: .05em; }
.blog-card h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 8px 0; line-height: 1.5; }
.blog-card .date { font-size: 13px; color: var(--gray); }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 960px) {
  .nav, .header-tel { display: none; }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; gap: 36px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: 36px; padding: 44px 32px; }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .steps, .feature-grid, .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .info-table th { width: 130px; }

  /* 모바일 메뉴 */
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 74px; left: 0; right: 0; background: #fff;
    padding: 12px 24px 24px; box-shadow: var(--shadow-lg); gap: 2px;
  }
  .nav.open > li > a { padding: 14px 12px; border-radius: 8px; }
}
@media (max-width: 560px) {
  section { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
  .hero-badge { left: 12px; right: 12px; bottom: -18px; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-card { padding: 36px 28px; }
}
