/* 화운글로벌 — 테슬라 스타일: 풀스크린 패널 · 스크롤 스냅 · 큰 타이포 · 미니멀 버튼
   사진 없이 SVG 일러스트(항로·컨테이너선·크레인)로 구성. 브랜드 블루 #2F5ACF */
:root {
  --blue: #2F5ACF;
  --blue-bright: #5B82E8;
  --navy: #0A1226;
  --navy-2: #101B38;
  --ink: #171A20;            /* 밝은 패널 글자 (테슬라 잉크색) */
  --gray: #5C6B84;
  --white-70: rgba(255,255,255,.72);
  --white-45: rgba(255,255,255,.45);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink); background: var(--navy); line-height: 1.6; word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- 스냅 컨테이너 ---------- */
main.snap {
  height: 100svh; overflow-y: auto;
  scroll-snap-type: y mandatory;
}
.panel {
  min-height: 100svh; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center;
  position: relative; overflow: hidden; padding: 96px 24px 56px;
  text-align: center;
}
.panel.dark  { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.panel.light { background: linear-gradient(180deg, #F7F9FC, #FFFFFF 60%); color: var(--ink); }

/* 패널 상단 텍스트 (테슬라: 제목 위, 비주얼 중앙, 버튼 하단) */
.panel .head { margin-top: 2vh; animation: rise .8s ease both; }
.panel .kicker { display: none; }
.panel h1 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.panel h2 { font-size: clamp(24px, 2.9vw, 36px); font-weight: 600; letter-spacing: -.01em; line-height: 1.28; }
.panel .sub { margin-top: 12px; font-size: clamp(14px, 1.4vw, 16px); font-weight: 400; }
.panel.dark .sub { color: var(--white-70); }
.panel.light .sub { color: var(--gray); }
.panel .sub b { font-weight: 700; }
.panel.dark h1 b, .panel.dark h2 b { color: inherit; font-weight: inherit; }
.panel.light h2 b { color: inherit; font-weight: inherit; }

/* 중앙 비주얼 */
.panel .visual { flex: 1; display: grid; place-items: center; width: 100%; max-width: 980px; min-height: 0; padding: 24px 0; }
.panel .visual svg { width: 100%; height: auto; max-height: 52svh; }

/* 하단 버튼 (테슬라 필 버튼) */
.panel .actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; animation: rise 1s ease both; }
.btn {
  min-width: 264px; text-align: center; padding: 0 34px; height: 40px; line-height: 40px; border-radius: 4px; display: inline-block;
  font-weight: 500; font-size: 14px; letter-spacing: .02em; transition: .18s;
}
.btn.solid { background: var(--blue); color: #fff; }
.btn.solid:hover { background: #2549AE; }
.btn.glass { background: rgba(255,255,255,.65); color: #22314e; backdrop-filter: blur(6px); }
.btn.glass:hover { background: #fff; }
.panel.dark .btn.glass { background: rgba(255,255,255,.65); color: #393C41; border: none; }
.panel.dark .btn.glass:hover { background: rgba(255,255,255,.85); }
.panel .fine { margin-top: 14px; font-size: 11.5px; opacity: .45; letter-spacing: .01em; }

/* 스크롤 유도 화살표 */
.chev { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); opacity: .6; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- 고정 헤더 ---------- */
header.top {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; mix-blend-mode: normal;
}
header.top .logo img { height: 34px; width: auto; display: block; }
header.top nav { display: flex; gap: 6px; }
header.top nav a {
  font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 6px; color: #fff;
  transition: background .15s;
}
header.top nav a:hover { background: rgba(255,255,255,.14); }
header.top.on-light nav a { color: var(--ink); }
header.top.on-light nav a:hover { background: rgba(23,26,32,.06); }
header.top .logo img { filter: brightness(0) invert(1); transition: filter .2s; }
header.top.on-light .logo img { filter: none; }

/* ---------- 항로 지도 애니메이션 ---------- */
.route-dot { animation: sail 7s linear infinite; }
@keyframes sail { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.wave { animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-46px); } }
.pulse { animation: pulse 2.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0% { opacity: .9; transform: scale(.4); } 80% { opacity: 0; transform: scale(1.9); } 100% { opacity: 0; } }

/* ---------- 강점 패널 (숫자 없는 큰 문장) ---------- */
.claims { display: grid; gap: 4vh; max-width: 860px; margin: auto 0; }
.claims .c { opacity: .28; font-size: clamp(20px, 3vw, 34px); font-weight: 700; letter-spacing: -.01em; transition: opacity .3s; }
.claims .c b { color: inherit; }
.claims .c.lit { opacity: 1; }

/* ---------- 절차 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; width: 100%; max-width: 1020px; margin: auto 0; counter-reset: n; }
.step { background: #fff; border: 1px solid #E6EBF4; border-radius: 12px; padding: 26px 16px 22px; text-align: center; }
.step::before {
  counter-increment: n; content: counter(n, decimal-leading-zero);
  display: block; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--blue); margin-bottom: 12px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--gray); }

/* ---------- 상담 패널 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 900px; margin: 5vh 0 0; }
.ccard { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); border-radius: 12px; padding: 26px 20px; }
.ccard .k { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--white-45); margin-bottom: 10px; }
.ccard .v { font-size: 20px; font-weight: 800; }
.ccard .v a:hover { color: var(--blue-bright); }
.ccard .s { margin-top: 6px; font-size: 13px; color: var(--white-70); }

/* 푸터 (마지막 패널 하단) */
.foot { margin-top: auto; padding-top: 6vh; width: 100%; max-width: 900px; font-size: 12.5px; color: var(--white-45); line-height: 2; }
.foot .links { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; font-size: 13px; color: var(--white-70); }
.foot .links a:hover { color: #fff; }

/* ---------- 모바일 ---------- */
@media (max-width: 760px) {
  header.top nav { display: none; }
  header.top { padding: 14px 18px; }
  .panel { padding: 84px 18px 44px; }
  .steps { grid-template-columns: 1fr 1fr; margin: 24px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .btn { min-width: 0; flex: 1 1 46%; }
  .panel .visual svg { max-height: 38svh; }
  main.snap { scroll-snap-type: none; }   /* 모바일에선 스냅이 답답할 수 있어 해제 */
}

/* ---------- 모바일 하단 전화 바 ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    background: var(--blue); color: #fff; box-shadow: 0 -6px 18px rgba(10,18,38,.28);
  }
  .callbar a { flex: 1; text-align: center; padding: 15px 0; font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
  .callbar a + a { border-left: 1px solid rgba(255,255,255,.25); }
  .panel { padding-bottom: 92px; }   /* 전화 바에 내용 안 가리게 */
}

/* ---------- 실사 배경 패널 (테슬라 풀블리드) ---------- */
.panel.photo {
  color: #fff;
  background-size: cover; background-position: center;
}
.panel.photo::before {
  /* 글자 읽히게 위·아래를 어둡게 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,18,38,.55) 0%, rgba(10,18,38,.14) 40%, rgba(10,18,38,.12) 62%, rgba(10,18,38,.60) 100%);
}
.panel.photo > * { position: relative; z-index: 1; }
.panel.photo .sub { color: rgba(255,255,255,.85); }
.panel.photo h1 b, .panel.photo h2 b { color: inherit; font-weight: inherit; }
.panel.photo .btn.glass { background: rgba(255,255,255,.65); color: #393C41; border: none; backdrop-filter: blur(8px); }
.panel.photo .btn.glass:hover { background: rgba(255,255,255,.85); }
.panel.photo .spacer { flex: 1; }
#home.photo  { background-image: url("img/ship1.jpg"); }
#lcl.photo   { background-image: url("img/containers.jpg"); }
#fcl.photo   { background-image: url("img/port1.jpg"); }
#parcel.photo{ background-image: url("img/box1.jpg"); }
#why.photo   { background-image: url("img/warehouse.jpg"); }
#why.photo::before { background: rgba(8,14,30,.88); }
#contact.photo { background-image: url("img/ship2.jpg"); }
#contact.photo::before { background: linear-gradient(180deg, rgba(10,18,38,.86), rgba(10,18,38,.92)); }

/* ---------- FAQ ---------- */
.faq { margin-top: 30px; width: 100%; max-width: 720px; display: grid; gap: 10px; text-align: left; }
.faq details { background: #fff; border: 1px solid #E6EBF4; border-radius: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15.5px; padding: 17px 20px; list-style: none; display: flex; gap: 10px; }
.faq summary::before { content: "Q."; color: var(--blue); font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 20px 17px 46px; font-size: 14.5px; color: var(--gray); }

/* ---------- CBM 계산기 ---------- */
.calc { width: 100%; max-width: 560px; margin: 32px 0; background: #fff; border: 1px solid #E6EBF4; border-radius: 16px; padding: 28px; text-align: left; }
.calc label { display: block; font-size: 13px; font-weight: 700; color: var(--gray); margin: 14px 0 6px; }
.calc .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.calc input { width: 100%; padding: 12px 14px; border: 1px solid #D8E0EE; border-radius: 10px; font-size: 16px; font-family: inherit; }
.calc input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.calc .out { margin-top: 22px; background: #F4F7FD; border-radius: 12px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: baseline; }
.calc .out .n { font-size: 30px; font-weight: 800; color: var(--blue); }
.calc .note { margin-top: 14px; font-size: 12.5px; color: #92A0B7; }

/* ================= 2026 테슬라 실측 스타일 ================= */
/* 흰색 고정 헤더 */
header.top.solid { position: fixed; background: #fff; mix-blend-mode: normal; padding: 12px 24px; box-shadow: 0 1px 0 rgba(23,26,32,.06); }
header.top.solid .logo img { filter: none; height: 36px; }
header.top.solid nav { position: absolute; left: 50%; transform: translateX(-50%); }
header.top.solid nav a { color: #171A20; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 8px; }
header.top.solid nav a:hover { background: rgba(23,26,32,.05); }
header.top.solid .right a { color: #171A20; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 8px; }
header.top.solid .right a:hover { background: rgba(23,26,32,.05); }

/* 히어로: 제목+버튼 상단 묶음 */
.hero2 { margin-top: 56px; height: calc(100svh - 56px); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero2 .bg { position: absolute; inset: 0; background: url("img/ship1.jpg") center/cover; }
.hero2 .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.0), rgba(10,18,38,.18)); }
.hero2 .inner { position: relative; z-index: 1; padding-top: 9svh; }
.hero2 h1 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 600; letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 18px rgba(10,18,38,.45); line-height: 1.25; }
.hero2 .sub { margin-top: 8px; font-size: 14.5px; color: #fff; opacity: .92; text-shadow: 0 1px 10px rgba(10,18,38,.5); }
.hero2 .actions { margin-top: 22px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero2 .fine { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 11.5px; color: rgba(255,255,255,.75); z-index: 1; }
.btn.t { min-width: 200px; height: 40px; line-height: 40px; padding: 0 28px; border-radius: 4px; font-size: 14px; font-weight: 600; display: inline-block; text-align: center; }
.btn.t.blue { background: #3E6AE1; color: #fff; }
.btn.t.blue:hover { background: #3457B1; }
.btn.t.white { background: #fff; color: #171A20; }
.btn.t.white:hover { background: #F2F3F5; }

/* 카드 그리드 (테슬라 하단 섹션) */
.cardsec { background: #fff; padding: 20px; }
.cardgrid { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.scard { position: relative; border-radius: 12px; overflow: hidden; min-height: 480px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; background-size: cover; background-position: center; }
.scard::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,38,.18), rgba(10,18,38,.55) 82%); }
.scard > * { position: relative; z-index: 1; }
.scard h3 { color: #fff; font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.scard p { color: rgba(255,255,255,.9); font-size: 14px; margin-top: 4px; }
.scard .btns { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.scard .btn.t { min-width: 150px; }
.scard.wide { grid-column: 1 / -1; min-height: 420px; }
@media (max-width: 860px) {
  .cardgrid { grid-template-columns: 1fr; }
  .scard { min-height: 380px; }
  header.top.solid nav { display: none; }
  .hero2 { margin-top: 52px; height: calc(100svh - 52px); }
}

/* ===== 테슬라 실측 v2: 카드 라벨/타이틀, 흰 정보카드, 플로팅 버튼, 푸터 ===== */
.scard { justify-content: flex-end; }
.scard .cat { position: absolute; top: 22px; left: 26px; color: #fff; font-size: 13.5px; font-weight: 600; z-index: 1; text-shadow: 0 1px 8px rgba(10,18,38,.4); }
.scard h3 { font-size: 30px; }
/* 흰색 정보 카드 (Tesla 경험하기 스타일) */
.infogrid { max-width: 1600px; margin: 16px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.icard { background: #F4F5F6; border-radius: 12px; padding: 34px 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 180px; }
.icard .tx h3 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; color: #171A20; }
.icard .tx p { margin-top: 6px; font-size: 14px; color: #5C5E62; }
.icard .tx .btn.t { margin-top: 16px; min-width: 140px; }
.icard .vis { font-size: 64px; line-height: 1; opacity: .9; }
@media (min-width: 1100px) { .infogrid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 860px) { .infogrid { grid-template-columns: 1fr; } .icard { padding: 26px; } }
.fx { margin-top: 12px; min-width: 200px; }
.fx-row { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; border-bottom: 1px solid #E4E7EB; font-size: 14px; color: #5C5E62; }
.fx-row b { color: #171A20; font-size: 16px; font-variant-numeric: tabular-nums; }
.fx-date { margin-top: 8px; font-size: 11.5px; color: #93A2BB; }
/* 하단 고정 필 버튼 (시승 예약 스타일) */
.floatpill {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 90;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border: 1px solid #D6D9DE; border-radius: 8px;
  padding: 10px 22px; font-size: 14px; font-weight: 600; color: #171A20; box-shadow: 0 4px 16px rgba(23,26,32,.10);
  display: inline-flex; align-items: center; gap: 8px;
}
.floatpill:hover { background: #fff; }
/* 테슬라 푸터 */
.tfoot { background: #fff; padding: 56px 20px 80px; text-align: center; }
.tfoot .l1 { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; color: #171A20; }
.tfoot .l1 a:hover { text-decoration: underline; }
.tfoot .l1 .cpy { color: #8E8E93; font-weight: 500; }
.tfoot .legal { margin-top: 22px; font-size: 12px; color: #5C5E62; line-height: 2; }
@media (max-width: 560px) { .floatpill { display: none; } }   /* 모바일은 전화바가 있음 */
