/*
Theme Name: 환풍기설치 W.N소신
Theme URI: https://faninstall.koreajibsuri.com/
Author: W.N 소신
Description: 환풍기 설치/교체 전문 브랜드 사이트 테마
Version: 1.0
Text Domain: faninstall
*/

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Tokens ---------- */
:root{
  --bg:#FBFAF6;
  --bg-alt:#F2ECE1;
  --bg-green:#EEF2EA;
  --ink:#2B2A26;
  --ink-soft:#615F57;
  --ink-faint:#8B887E;
  --accent:#7C9873;
  --accent-deep:#5C7A57;
  --line:#E4DECF;
  --white:#FFFFFF;
  --radius:3px;
  --wrap:1180px;
  --gap:clamp(48px, 8vw, 120px);
}

html, body{ background:var(--bg); color:var(--ink); }
body{
  font-family:"Pretendard","Apple SD Gothic Neo","Malgun Gothic",-apple-system,BlinkMacSystemFont,sans-serif;
  font-weight:400;
  line-height:1.7;
  letter-spacing:-0.01em;
  -webkit-font-smoothing:antialiased;
}

.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 28px; }
@media (max-width:640px){ .wrap{ padding:0 22px; } }

section{ padding:var(--gap) 0; }
section[id]{ scroll-margin-top:90px; }
.tight{ padding-top:calc(var(--gap) * 0.5); padding-bottom:calc(var(--gap) * 0.5); }

h1,h2,h3{ font-weight:700; letter-spacing:-0.02em; color:var(--ink); }
.eyebrow{
  font-size:13px; font-weight:600; letter-spacing:.18em; text-transform:uppercase;
  color:var(--accent-deep); margin-bottom:18px; display:inline-block;
}
.lede{ color:var(--ink-soft); font-size:17px; line-height:1.85; }
.hr{ border:none; border-top:1px solid var(--line); margin:0; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:16px 34px; border-radius:var(--radius);
  font-weight:700; font-size:16px; letter-spacing:-0.01em;
  transition:transform .15s ease, background .15s ease;
}
.btn-solid{ background:var(--ink); color:var(--white); }
.btn-solid:hover{ background:var(--accent-deep); transform:translateY(-1px); }
.btn-outline{ border:1.5px solid var(--ink); color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:var(--white); }
.btn-ghost{ border:1.5px solid rgba(255,255,255,.55); color:var(--white); }
.btn::before{ content:"☎"; font-size:15px; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(251,250,246,.92); backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; height:76px; }
.brand{ font-size:19px; font-weight:800; letter-spacing:-0.02em; }
.brand span{ color:var(--accent-deep); }
.main-nav ul{ display:flex; align-items:center; gap:36px; }
.main-nav a{ font-size:15px; font-weight:500; color:var(--ink-soft); }
.main-nav a:hover{ color:var(--ink); }
.main-nav .nav-cta{
  background:var(--ink); color:var(--white); padding:10px 20px; border-radius:var(--radius); font-weight:700;
}
.nav-toggle{ display:none; background:none; border:none; }
@media (max-width:860px){
  .main-nav ul{ gap:18px; }
  .main-nav a{ font-size:13px; }
  .main-nav .nav-cta{ padding:9px 14px; font-size:13px; }
}
@media (max-width:560px){
  .brand{ font-size:16px; }
  .main-nav ul{ gap:10px; }
  .main-nav a{ font-size:12.5px; }
}

/* ---------- Hero ---------- */
.hero{ position:relative; padding:0; }
.hero-media{ position:relative; height:56vh; min-height:400px; max-height:620px; overflow:hidden; background:var(--bg-alt); }
.hero-media svg{ width:100%; height:100%; object-fit:cover; }

/* Continuously flowing photo strip — motion, not a slide/carousel transition */
.hero-flow{ display:flex; align-items:center; }
.hero-track{ display:flex; height:100%; width:max-content; will-change:transform; animation:heroFlow 200s linear infinite; }
.hero-track img{ height:100%; width:auto; flex:none; object-fit:cover; }
@keyframes heroFlow{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion:reduce){ .hero-track{ animation:none; } }

.hero-copy{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-end;
  padding:0 0 56px; background:linear-gradient(0deg, rgba(43,42,38,.58), rgba(43,42,38,.08) 60%, rgba(43,42,38,.28));
}
.hero-copy .wrap{ width:100%; }
.hero-copy h1{ color:var(--white); font-size:clamp(30px,4.4vw,52px); line-height:1.25; margin-bottom:14px; }
.hero-copy p{ color:#F2F0EA; font-size:clamp(15px,1.6vw,18px); max-width:520px; margin-bottom:26px; }

/* ---------- Statement (big text only) ---------- */
.statement{ text-align:center; }
.statement .wrap{ max-width:820px; }
.statement p{ font-size:clamp(22px,3.4vw,34px); font-weight:700; line-height:1.5; letter-spacing:-0.02em; }
.statement p + p{ margin-top:20px; font-size:clamp(16px,1.8vw,19px); font-weight:400; color:var(--ink-soft); line-height:1.8; }

/* ---------- Split (image + text, either side) ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.split.rev{ direction:rtl; }
.split.rev > *{ direction:ltr; }
.split-media{ border-radius:var(--radius); overflow:hidden; background:var(--bg-alt); }
.split-media img{ width:100%; height:100%; object-fit:cover; }
.split-media.ratio-portrait{ aspect-ratio:3/4; }
.split-media.ratio-landscape{ aspect-ratio:4/3; }
.split-media.ratio-square{ aspect-ratio:1/1; }
.split-text h2{ font-size:clamp(24px,3vw,36px); margin-bottom:20px; }
.split-text p{ color:var(--ink-soft); font-size:16px; margin-top:14px; }
.split-text .stat-row{ display:flex; gap:36px; margin-top:32px; }
.split-text .stat-row div b{ display:block; font-size:26px; font-weight:800; color:var(--accent-deep); }
.split-text .stat-row div span{ font-size:13px; color:var(--ink-faint); }
@media (max-width:860px){
  .split{ grid-template-columns:1fr; gap:28px; }
  .split.rev{ direction:ltr; }
}

/* ---------- Wide image + caption ---------- */
.wide-media{ border-radius:var(--radius); overflow:hidden; background:var(--bg-alt); aspect-ratio:21/9; margin-bottom:22px; }
.wide-media img{ width:100%; height:100%; object-fit:cover; }
.wide-caption{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; color:var(--ink-faint); font-size:14px; }
.wide-caption strong{ color:var(--ink); font-size:16px; }
@media (max-width:640px){ .wide-media{ aspect-ratio:4/3; } }

/* Wide before/after: two real photos split side by side */
.wide-before-after{ display:flex; gap:2px; }
.ba-half{ position:relative; flex:1 1 50%; overflow:hidden; }
.ba-half img{ width:100%; height:100%; object-fit:cover; }
.ba-tag{
  position:absolute; top:16px; left:16px; z-index:2;
  background:rgba(43,42,38,.72); color:var(--white); font-size:12px; font-weight:700; letter-spacing:.12em;
  padding:6px 12px; border-radius:999px;
}

/* ---------- Thumb grids (3 or 5) ---------- */
.thumbs{ display:grid; gap:22px; }
.thumbs.of-3{ grid-template-columns:repeat(3,1fr); }
.thumbs.of-5{ grid-template-columns:repeat(5,1fr); }
.thumb figure{ border-radius:var(--radius); overflow:hidden; background:var(--bg-alt); aspect-ratio:4/5; margin-bottom:12px; }
.thumb figure img{ width:100%; height:100%; object-fit:cover; }
.thumb.wide-item figure{ aspect-ratio:16/10; }
.thumb h3{ font-size:16px; margin-bottom:6px; }
.thumb p{ font-size:14px; color:var(--ink-soft); }
@media (max-width:860px){
  .thumbs.of-5{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:640px){
  .thumbs.of-3, .thumbs.of-5{ grid-template-columns:repeat(2,1fr); }
}

/* ---------- Magazine keyword feature ---------- */
.magazine{ display:grid; grid-template-columns:1.1fr 1fr; gap:70px; }
.mag-feature h2{ font-size:clamp(24px,3vw,34px); margin-bottom:16px; }
.mag-feature .mag-media{ aspect-ratio:5/6; border-radius:var(--radius); overflow:hidden; background:var(--bg-alt); margin-top:26px; }
.mag-media img{ width:100%; height:100%; object-fit:cover; }
.mag-list{ display:flex; flex-direction:column; }
.mag-list li{ padding:24px 0; border-bottom:1px solid var(--line); }
.mag-list li:first-child{ padding-top:0; }
.mag-list .num{ font-size:13px; font-weight:700; color:var(--accent-deep); letter-spacing:.08em; }
.mag-list h3{ font-size:19px; margin:8px 0 8px; }
.mag-list p{ font-size:14.5px; color:var(--ink-soft); }
@media (max-width:860px){ .magazine{ grid-template-columns:1fr; gap:36px; } }

/* ---------- Checklist / info box ---------- */
.checklist-box{ background:var(--bg-green); border-radius:var(--radius); padding:52px; }
.checklist-box h2{ font-size:clamp(22px,2.6vw,30px); margin-bottom:28px; }
.checklist{ display:grid; grid-template-columns:1fr 1fr; gap:18px 40px; }
.checklist li{ display:flex; gap:14px; align-items:flex-start; font-size:15.5px; color:var(--ink); }
.checklist li::before{ content:""; flex:none; width:9px; height:9px; border-radius:50%; background:var(--accent); margin-top:7px; }
.checklist li span{ color:var(--ink-soft); font-size:13.5px; display:block; margin-top:3px; }
@media (max-width:640px){ .checklist-box{ padding:32px 24px; } .checklist{ grid-template-columns:1fr; } }

/* ---------- Table ---------- */
.info-table{ border-top:2px solid var(--ink); }
.info-table tr{ border-bottom:1px solid var(--line); }
.info-table th, .info-table td{ text-align:left; padding:20px 12px; font-size:15px; vertical-align:top; }
.info-table th{ width:28%; font-weight:700; color:var(--ink); }
.info-table td{ color:var(--ink-soft); }
@media (max-width:640px){
  .info-table th, .info-table td{ display:block; width:100%; padding:6px 0; }
  .info-table th{ padding-top:18px; }
}

/* ---------- Process flow ---------- */
.process{ display:flex; align-items:flex-start; gap:0; overflow-x:auto; padding-bottom:8px; }
.process-step{ flex:1 0 150px; position:relative; padding:0 22px; text-align:left; }
.process-step .n{ font-size:13px; font-weight:700; color:var(--accent-deep); margin-bottom:14px; letter-spacing:.06em; }
.process-step h3{ font-size:16.5px; margin-bottom:8px; }
.process-step p{ font-size:13.5px; color:var(--ink-soft); }
.process-step:not(:last-child)::after{
  content:"→"; position:absolute; right:-4px; top:0; color:var(--ink-faint); font-size:16px;
}
@media (max-width:860px){
  .process{ flex-direction:column; gap:26px; }
  .process-step{ padding:0; border-left:2px solid var(--line); padding-left:20px; }
  .process-step::after{ display:none; }
}

/* ---------- Quote / emotive banner ---------- */
.quote-banner{ background:var(--bg-alt); text-align:center; }
.quote-banner .wrap{ max-width:760px; }
.quote-banner p{ font-size:clamp(20px,2.8vw,28px); font-weight:700; line-height:1.6; }
.quote-banner p + p{ margin-top:18px; font-weight:400; font-size:16px; color:var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq{ max-width:840px; margin:0 auto; }
.faq details{ border-bottom:1px solid var(--line); padding:26px 0; }
.faq summary{ list-style:none; display:flex; justify-content:space-between; gap:20px; align-items:center; font-size:17px; font-weight:600; cursor:pointer; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; font-size:22px; font-weight:400; color:var(--accent-deep); flex:none; }
.faq details[open] summary::after{ content:"–"; }
.faq details p{ margin-top:16px; color:var(--ink-soft); font-size:15px; padding-right:36px; }

/* ---------- CTA ---------- */
.cta{ text-align:center; }
.cta-soft{ background:var(--bg-green); }
.cta-strong{ background:var(--ink); color:var(--white); }
.cta h2{ font-size:clamp(24px,3.4vw,36px); margin-bottom:14px; }
.cta-strong h2{ color:var(--white); }
.cta p{ color:var(--ink-soft); margin-bottom:30px; }
.cta-strong p{ color:#D8D6CE; }
.cta-strong .btn-solid{ background:var(--accent); }
.cta-strong .btn-solid:hover{ background:var(--accent-deep); }

/* ---------- Links grid (region cross-links / sitemap) ---------- */
.links-block h2{ font-size:22px; margin-bottom:26px; }
.links-row{ display:flex; flex-wrap:wrap; gap:14px; }
.links-row a{
  padding:13px 22px; border:1px solid var(--line); border-radius:999px; font-size:14.5px; font-weight:500;
  color:var(--ink-soft);
}
.links-row a:hover{ border-color:var(--ink); color:var(--ink); }

.sitemap-groups{ display:grid; grid-template-columns:repeat(3,1fr); gap:36px; }
.sitemap-card{ border-top:2px solid var(--ink); padding-top:22px; }
.sitemap-card h3{ font-size:17px; margin-bottom:16px; }
.sitemap-card li{ padding:8px 0; font-size:15px; color:var(--ink-soft); }
.sitemap-card a:hover{ color:var(--accent-deep); }
@media (max-width:860px){ .sitemap-groups{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .sitemap-groups{ grid-template-columns:1fr; } }

/* ---------- Footer ---------- */
.site-footer{ border-top:1px solid var(--line); padding:56px 0 100px; background:var(--bg); }
.footer-top{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:24px; margin-bottom:34px; }
.footer-top .brand{ font-size:17px; }
.footer-sitemap-link{ font-size:14px; font-weight:600; border:1px solid var(--line); padding:9px 18px; border-radius:999px; }
.footer-biz{ font-size:13.5px; color:var(--ink-faint); line-height:2; }
.footer-biz b{ color:var(--ink-soft); }
@media (min-width:640px){ .site-footer{ padding-bottom:56px; } }

/* ---------- Floating call ---------- */
.call-float{
  position:fixed; right:24px; bottom:96px; z-index:60;
  width:56px; height:56px; border-radius:50%; background:var(--ink); color:var(--white);
  display:flex; align-items:center; justify-content:center; font-size:22px;
  box-shadow:0 8px 24px rgba(43,42,38,.25);
}
.call-bar{ display:none; }
@media (max-width:640px){
  .call-float{ display:none; }
  .call-bar{
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:59; height:64px;
    background:var(--ink); color:var(--white); align-items:center; justify-content:center; gap:10px;
    font-size:16px; font-weight:700;
  }
}

/* ---------- Misc ---------- */
.center{ text-align:center; }
.mt-lg{ margin-top:var(--gap); }
.section-head{ margin-bottom:44px; }
.section-head.center{ margin-left:auto; margin-right:auto; max-width:640px; }
.section-head h2{ font-size:clamp(24px,3.2vw,36px); }
.bg-alt{ background:var(--bg-alt); }
.bg-green{ background:var(--bg-green); }
