/* =========================================================
   style.css - 경원냉동공사 홈페이지 전체 디자인
   ---------------------------------------------------------
   0) 색/크기 기본값(변수)과 기본 설정
   1) 공통 요소  : 컨테이너, 제목, 버튼, 카드 효과, 나타나는 효과
   2) 머리말(메뉴)
   3) 첫 화면(hero)
   4) 메인 구역들 : 실적 숫자, 회사 소개, 시공 분야, 시공 순서, 준공사진, 상담 안내
   5) 서브 페이지 : 제목 영역, 준공사진 목록, 문의하기, 찾아오시는 길
   6) 꼬리말, 휴대폰 전화 버튼
   7) (사진 보기는 공통 뷰어 /common/photo-viewer.js, 색은 이 파일 맨 끝)
   8) 모바일 / 움직임 줄이기
   ★ 관리자 페이지 전용 스타일은 admin.css 에 있습니다.
   ★ 색을 바꾸고 싶으면 아래 :root 의 값만 고치면 사이트 전체에 반영됩니다.
   ========================================================= */


/* ---------------------------------------------------------
   0) 변수 / 기본 설정
   --------------------------------------------------------- */
:root {
    --bg-0: #040b16;                 /* 가장 어두운 배경 */
    --bg-1: #071426;
    --bg-2: #0b1d36;
    --bg-3: #10284a;

    --ice: #8fe3ff;                  /* 포인트 색: 아이스 블루 */
    --ice-2: #4cc9f0;
    --blue: #2a7de1;
    --frost: #eaf7ff;                /* 제목 글자색 */
    --amber: #ffb454;                /* 강조 색: 앰버 */

    --text: #dbe9f6;                 /* 본문 글자색 */
    --muted: #93abc2;                /* 보조 글자색 */
    --line: rgba(143, 227, 255, .16);
    --glass: rgba(255, 255, 255, .045);

    --radius: 18px;
    --maxw: 1240px;
    --header-h: 78px;

    --font: "Pretendard", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg-0);
    overflow-x: hidden;
    word-break: keep-all;            /* 한글 단어 중간에서 줄이 바뀌지 않게 */
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

::selection { background: var(--ice-2); color: #00121f; }


/* ---------------------------------------------------------
   1) 공통 요소
   --------------------------------------------------------- */
.container { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }

.section { position: relative; padding: clamp(72px, 9vw, 130px) 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-1), var(--bg-0)); }

/* 구역 제목 (작은 영문 + 큰 제목 + 설명) */
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2, .about-text h2 {
    font-size: clamp(1.9rem, 4.2vw, 3.1rem);
    line-height: 1.25;
    letter-spacing: -.02em;
    font-weight: 800;
    color: var(--frost);
}
.section-head h2 em, .about-text h2 em, .hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--ice), var(--blue) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

/* 제목 위의 작은 영문 글자 (아이브로우) */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .28em;
    color: var(--ice);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: linear-gradient(90deg, var(--ice), transparent); }
.center .eyebrow::after { content: ""; width: 34px; height: 2px; background: linear-gradient(270deg, var(--ice), transparent); }

/* 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
    color: #00182b;
    background: linear-gradient(120deg, var(--ice), var(--ice-2) 55%, #6fb3ff);
    box-shadow: 0 10px 30px rgba(76, 201, 240, .35);
}
.btn-primary:hover { box-shadow: 0 16px 44px rgba(76, 201, 240, .55); }
.btn-ghost { color: var(--frost); background: rgba(255, 255, 255, .06); border-color: rgba(143, 227, 255, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(143, 227, 255, .14); border-color: var(--ice); }
.btn-amber { color: #261500; background: linear-gradient(120deg, #ffd08a, var(--amber)); box-shadow: 0 10px 30px rgba(255, 180, 84, .3); }
.btn-amber:hover { box-shadow: 0 16px 44px rgba(255, 180, 84, .5); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn .icon { width: 1.15em; height: 1.15em; }

/* 유리 느낌 카드 + 마우스를 따라다니는 빛 (빛 위치는 main.js 가 --mx, --my 로 전달) */
.glass {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.glow-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(143, 227, 255, .16), transparent 60%);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.glow-card:hover::before { opacity: 1; }

/* 스크롤하면 스르륵 나타나는 효과 (자바스크립트가 켜져 있을 때만) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }


/* ---------------------------------------------------------
   2) 머리말 (로고 + 메뉴)
   --------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled,
body:not(.page-home) .site-header {
    background: rgba(4, 11, 22, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
}
.header-inner {
    width: min(1360px, 100% - 40px);
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand img { display: block; height: 46px; width: auto; }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.main-nav a:not(.nav-tel) {
    position: relative;
    padding: 8px 2px;
    font-weight: 600;
    color: var(--text);
    transition: color .25s;
}
.main-nav a:not(.nav-tel)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ice), var(--blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}
.main-nav a:not(.nav-tel):hover,
.main-nav a.is-active { color: var(--ice); }
.main-nav a:not(.nav-tel):hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

.nav-tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    color: #00182b;
    background: linear-gradient(120deg, var(--ice), var(--ice-2));
    box-shadow: 0 6px 22px rgba(76, 201, 240, .35);
    transition: transform .25s, box-shadow .25s;
}
.nav-tel:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(76, 201, 240, .55); }

/* 휴대폰 메뉴 버튼 (줄 3개 → × 로 바뀜) */
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--frost); transition: transform .3s, opacity .3s, top .3s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }


/* ---------------------------------------------------------
   3) 첫 화면 (hero)
   --------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 110px;
    overflow: hidden;
    background:
        radial-gradient(1200px 700px at 80% 15%, rgba(76, 201, 240, .22), transparent 60%),
        radial-gradient(900px 600px at 5% 95%, rgba(42, 125, 225, .30), transparent 62%),
        linear-gradient(180deg, #050e1c 0%, #071a33 55%, #04101f 100%);
}
.hero::after {                      /* 아래쪽을 다음 구역 색으로 부드럽게 이어 줌 */
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 160px;
    background: linear-gradient(180deg, transparent, var(--bg-0));
    pointer-events: none;
}

/* 천천히 움직이는 오로라 빛 덩어리 */
.aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; animation: drift 20s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 520px; height: 520px; left: -140px; top: 8%;  background: #1b6fd6; }
.aurora span:nth-child(2) { width: 460px; height: 460px; right: 4%;   top: -90px; background: #1fb6e8; animation-duration: 26s; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 380px; height: 380px; right: 24%;  bottom: -40px; background: #5b6cff; opacity: .3; animation-duration: 23s; animation-delay: -12s; }
@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(60px, 40px, 0) scale(1.18); }
}

/* 격자 무늬 (가운데만 보이게 가장자리는 흐리게) */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(143, 227, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 227, 255, .07) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 18%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 40%, #000 18%, transparent 75%);
}

/* 눈송이가 내리는 캔버스 (main.js 가 그립니다) */
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 40px; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    margin-bottom: 26px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(143, 227, 255, .07);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .22em;
    color: var(--ice);
}
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 12px var(--ice); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }

.hero h1 {
    font-size: clamp(2.5rem, 6.4vw, 5.2rem);
    line-height: 1.12;
    letter-spacing: -.035em;
    font-weight: 900;
    color: var(--frost);
}
.hero-lead { margin-top: 26px; max-width: 560px; font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; color: var(--text); }
.hero-points .icon { color: var(--ice); }

/* 오른쪽의 큰 온도 표시 (숫자가 0 에서 -25 까지 내려감) */
.hero-temp {
    position: relative;
    justify-self: center;
    width: min(380px, 100%);
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    background: radial-gradient(circle at 30% 22%, rgba(143, 227, 255, .2), rgba(10, 30, 58, .55) 62%);
    border: 1px solid var(--line);
    box-shadow: inset 0 0 70px rgba(76, 201, 240, .14), 0 0 90px rgba(42, 125, 225, .28);
    animation: floaty 7s ease-in-out infinite;
}
.hero-temp::before {                /* 빙글 도는 빛 테두리 */
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 55%, var(--ice) 85%, transparent 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    animation: spin 9s linear infinite;
}
.hero-temp::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; border: 1px dashed rgba(143, 227, 255, .22); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 50% { transform: translateY(-14px); } }
.temp-num { display: block; font-size: clamp(4rem, 8vw, 6.4rem); line-height: 1; font-weight: 900; letter-spacing: -.04em; color: var(--frost); text-shadow: 0 0 40px rgba(143, 227, 255, .55); }
.temp-num small { font-size: .45em; font-weight: 700; color: var(--ice); margin-left: 4px; }
.temp-label { display: block; margin-top: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .26em; color: var(--ice); }

/* 아래로 스크롤 안내 */
.scroll-hint { position: absolute; left: 50%; bottom: 34px; z-index: 3; width: 26px; height: 44px; margin-left: -13px; border: 2px solid rgba(143, 227, 255, .5); border-radius: 14px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ice); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }


/* ---------------------------------------------------------
   4) 메인 구역들
   --------------------------------------------------------- */

/* 실적 숫자 4개 */
.stats { margin-top: -50px; position: relative; z-index: 5; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 34px 24px; text-align: center; }
.stat-num { display: block; font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.1; font-weight: 900; letter-spacing: -.03em; background: linear-gradient(120deg, #ffffff, var(--ice) 60%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { display: block; margin-top: 8px; font-size: .92rem; font-weight: 600; color: var(--muted); }

/* 회사 소개 */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(36px, 6vw, 90px); }
.about-text p { margin-top: 20px; color: var(--muted); font-size: 1.04rem; }
.about-text h2 { margin-top: 4px; }
.about-points { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.about-points li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-weight: 700; color: var(--frost); }
.about-points .icon { color: var(--ice); }
.about-ceo { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.about-ceo strong { color: var(--frost); font-size: 1.1rem; margin-left: 6px; }

/* 소개 오른쪽: 커다란 눈꽃 장식 */
.about-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(76, 201, 240, .22), transparent 65%); }
.about-visual::before, .about-visual::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.about-visual::before { inset: 6%; }
.about-visual::after { inset: 18%; border-style: dashed; animation: spin 40s linear infinite reverse; }
.frost-flake { width: 56%; height: 56%; color: var(--ice); filter: drop-shadow(0 0 24px rgba(143, 227, 255, .6)); animation: spin 60s linear infinite; }

/* 시공 분야 카드 */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { padding: 34px 30px 36px; overflow: hidden; transition: transform .35s, border-color .35s, box-shadow .35s; }
.service-card:hover { transform: translateY(-8px); border-color: rgba(143, 227, 255, .5); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(143, 227, 255, .12); }
.service-no { position: absolute; top: 18px; right: 24px; font-size: 3.2rem; font-weight: 900; line-height: 1; color: rgba(143, 227, 255, .07); }
.service-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 18px; color: #00182b; background: linear-gradient(135deg, var(--ice), var(--blue)); box-shadow: 0 10px 26px rgba(42, 125, 225, .4); transition: transform .35s; }
.service-icon .icon { width: 30px; height: 30px; }
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); }
.service-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--frost); letter-spacing: -.01em; }
.service-card p { margin-top: 12px; color: var(--muted); font-size: .98rem; }

/* 시공 순서 */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; counter-reset: step; }
.process::before { content: ""; position: absolute; left: 10%; right: 10%; top: 34px; height: 2px; background: linear-gradient(90deg, transparent, var(--ice), var(--blue), transparent); opacity: .5; }
.process-step { position: relative; text-align: center; padding: 0 6px; }
.step-no { position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; font-size: 1.15rem; font-weight: 900; letter-spacing: .04em; color: var(--ice); background: var(--bg-1); border: 2px solid var(--ice); box-shadow: 0 0 0 8px var(--bg-0), 0 0 30px rgba(76, 201, 240, .35); }
.process-step h3 { font-size: 1.12rem; font-weight: 800; color: var(--frost); }
.process-step p { margin-top: 8px; font-size: .92rem; color: var(--muted); }

/* 준공사진 카드 (메인, 준공사진 페이지에서 함께 사용) */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; transition: transform .35s, box-shadow .35s, border-color .35s; }
.project-card:hover, .project-card:focus-visible { transform: translateY(-8px); border-color: rgba(143, 227, 255, .55); box-shadow: 0 26px 60px rgba(0, 0, 0, .5); outline: none; }
.project-card.is-hidden { display: none; }
.project-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--bg-3), var(--bg-1)); }
.project-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--bg-1); transition: transform .7s ease; }   /* 사진 전체가 보이게, 남는 공간은 여백 색 */
.project-card:hover .project-thumb img { transform: scale(1.09); }
.project-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 11, 22, .75)); pointer-events: none; }
.project-ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; color: rgba(143, 227, 255, .45); font-size: .8rem; font-weight: 700; letter-spacing: .2em; background: radial-gradient(circle at 30% 20%, rgba(76, 201, 240, .22), transparent 60%), linear-gradient(135deg, var(--bg-3), var(--bg-1)); }
.project-ph .icon { width: 44px; height: 44px; }
.badge { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 5px 14px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; color: #00182b; background: linear-gradient(120deg, var(--ice), var(--ice-2)); }
.photo-count { position: absolute; right: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--frost); background: rgba(4, 11, 22, .6); backdrop-filter: blur(6px); }
.photo-count .icon { width: 1em; height: 1em; }
.project-body { padding: 20px 22px 24px; }
.project-body h3 { font-size: 1.15rem; font-weight: 800; color: var(--frost); letter-spacing: -.01em; }
.project-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .9rem; color: var(--muted); }
.project-meta .icon { color: var(--ice); width: 1.05em; height: 1.05em; }

.empty-state { padding: 70px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--glass); }
.empty-state .icon { width: 46px; height: 46px; margin-bottom: 14px; color: var(--ice); }
.more-link { display: flex; justify-content: center; margin-top: 44px; }

/* 상담 안내 띠 */
.cta-band { padding: clamp(60px, 8vw, 100px) 0; }
.cta-inner { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 76px) clamp(26px, 5vw, 70px); border-radius: 28px; text-align: center; background: radial-gradient(800px 360px at 80% 0%, rgba(76, 201, 240, .38), transparent 60%), radial-gradient(700px 360px at 0% 100%, rgba(42, 125, 225, .5), transparent 60%), linear-gradient(135deg, #0d2a52, #071a33); border: 1px solid rgba(143, 227, 255, .3); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.cta-inner h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); font-weight: 900; letter-spacing: -.02em; color: var(--frost); }
.cta-inner p { margin: 14px auto 0; max-width: 560px; color: var(--muted); }
.cta-tel { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; font-size: clamp(2rem, 5.4vw, 3.8rem); font-weight: 900; letter-spacing: -.02em; color: var(--frost); }
.cta-tel .icon { width: .8em; height: .8em; color: var(--ice); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }


/* ---------------------------------------------------------
   5) 서브 페이지 (준공사진, 문의하기, 찾아오시는 길)
   --------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 70px) 0 56px; background: radial-gradient(900px 400px at 85% 0%, rgba(76, 201, 240, .2), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(42, 125, 225, .22), transparent 60%), linear-gradient(180deg, #06142a, var(--bg-0)); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.03em; color: var(--frost); }
.page-hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--ice), var(--blue) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { margin-top: 14px; max-width: 620px; color: var(--muted); font-size: 1.05rem; }
.page-body { padding: 56px 0 clamp(80px, 9vw, 120px); }

/* 준공사진 필터 버튼 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip { padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-weight: 700; color: var(--text); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.chip:hover { border-color: var(--ice); transform: translateY(-2px); }
.chip.is-active { color: #00182b; background: linear-gradient(120deg, var(--ice), var(--ice-2)); border-color: transparent; }

/* 문의하기 */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.form-card, .info-card { padding: clamp(26px, 4vw, 44px); }
.form-card h2, .info-card h2 { font-size: 1.5rem; font-weight: 800; color: var(--frost); margin-bottom: 24px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: .9rem; font-weight: 700; color: var(--frost); }
.field label span { color: var(--amber); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(143, 227, 255, .22); background: rgba(4, 11, 22, .6); color: var(--frost); font: inherit; transition: border-color .25s, box-shadow .25s; }
.field select option { background: #0b1d36; color: #eaf7ff; }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 4px rgba(143, 227, 255, .14); }
.field input::placeholder, .field textarea::placeholder { color: #5f7a93; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* 자동 가입 프로그램을 걸러내는 숨김 칸 */
.form-msg { padding: 16px 20px; margin-bottom: 24px; border-radius: 12px; font-weight: 600; }
.form-msg.ok { color: #aef0cf; background: rgba(46, 204, 134, .12); border: 1px solid rgba(46, 204, 134, .4); }
.form-msg.err { color: #ffc4c4; background: rgba(255, 92, 92, .12); border: 1px solid rgba(255, 92, 92, .4); }

.info-list li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.info-list li:first-child { border-top: 0; padding-top: 0; }
.info-list .icon { margin-top: 3px; width: 22px; height: 22px; color: var(--ice); }
.info-list dt, .info-list strong { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .2em; color: var(--ice); margin-bottom: 4px; }
.info-list span, .info-list a { color: var(--frost); font-size: 1.04rem; }
.info-list a:hover { color: var(--ice); }
.info-list small { display: block; color: var(--muted); font-size: .88rem; }

/* 찾아오시는 길 */
.location-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: stretch; }
.map-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; min-height: 460px; }
.map-card iframe { flex: 1; width: 100%; min-height: 420px; border: 0; filter: saturate(.9) contrast(1.02); }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }


/* ---------------------------------------------------------
   6) 꼬리말 / 휴대폰 전화 버튼
   --------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-0), #02070f); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: 64px 0 44px; }
.footer-brand img { display: block; height: 44px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: .95rem; }
.footer-col h4 { margin-bottom: 18px; font-size: .78rem; font-weight: 800; letter-spacing: .26em; color: var(--ice); }
.footer-col li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; color: var(--text); font-size: .95rem; }
.footer-col .icon { margin-top: 4px; width: 17px; height: 17px; color: var(--ice); }
.footer-col a:hover { color: var(--ice); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0 30px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--ice); }

.call-fab { display: none; }


/* ---------------------------------------------------------
   8) 모바일 / 태블릿, 움직임 줄이기
   --------------------------------------------------------- */
@media (max-width: 1000px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-temp { display: none; }                         /* 좁은 화면에서는 큰 온도 표시를 숨김 */
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid, .location-grid { grid-template-columns: 1fr; }
    .about-visual { max-width: 380px; margin-inline: auto; order: -1; }
    .service-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: 1fr; gap: 0; }
    .process::before { left: 33px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: linear-gradient(180deg, var(--ice), var(--blue)); }
    .process-step { display: grid; grid-template-columns: 68px 1fr; gap: 0 20px; text-align: left; padding: 0 0 30px; }
    .step-no { margin: 0; grid-row: span 2; }
    .process-step p { margin-top: 2px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    /* 휴대폰: 메뉴가 위에서 내려오는 방식 */
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 24px 26px;
        background: rgba(4, 11, 22, .97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        visibility: hidden;
        transition: transform .35s ease, visibility .35s;
    }
    body.nav-open .main-nav { transform: none; visibility: visible; }
    .main-nav a:not(.nav-tel) { padding: 16px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
    .main-nav a:not(.nav-tel)::after { display: none; }
    .nav-tel { justify-content: center; margin-top: 18px; padding: 15px; }
    body.nav-open .site-header { background: rgba(4, 11, 22, .97); }

    /* 화면 아래에 항상 떠 있는 전화 버튼 */
    .call-fab {
        position: fixed;
        left: 14px; right: 14px; bottom: 14px;
        z-index: 90;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 16px;
        border-radius: 999px;
        font-weight: 800;
        color: #00182b;
        background: linear-gradient(120deg, var(--ice), var(--ice-2));
        box-shadow: 0 12px 34px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .2) inset;
    }
    body { padding-bottom: 76px; }
}

@media (max-width: 640px) {
    .container { width: min(var(--maxw), 100% - 36px); }
    .stats { margin-top: -34px; }
    .stat { padding: 24px 12px; }
    .service-grid, .project-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-points { gap: 10px 18px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .scroll-hint { display: none; }
}

/* 어지러움을 느끼는 분을 위해, 기기에서 "움직임 줄이기"를 켜 두었다면 움직임을 끕니다 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}


/* 공통 사진 뷰어(/common/photo-viewer.js) 색: 사이트 남색·아이스 블루에 맞춤 */
:root { --pv-bg: rgba(2, 7, 15, .95); --pv-fg: var(--frost); --pv-btn-bg: rgba(143, 227, 255, .14); --pv-btn-color: var(--frost); --pv-accent: var(--ice); }
