/* =========================================================
   (주)영진발전소 — styles.css
   태양광 발전사업 컨설팅. 네이비 + 솔라골드.
   ========================================================= */

:root {
  /* color */
  --ink:        #0B1B2E;
  --ink-2:      #102740;
  --ink-3:      #16314F;
  --sun:        #F5A623;
  --sun-2:      #FFC056;
  --sun-deep:   #DB8C0E;
  --paper:      #F4F6FA;
  --white:      #FFFFFF;
  --warm:       #FBF8F2;
  --text:       #0E1F33;
  --slate:      #51637A;
  --slate-2:    #6E7F94;
  --line:       #E4E8EE;
  --on-dark:        #E7EDF5;
  --on-dark-mute:   #9DB1C7;
  --on-dark-line:   rgba(231,237,245,.14);
  --ring:       rgba(245,166,35,.55);

  /* type */
  --font-sans: "Pretendard Variable","Pretendard",-apple-system,BlinkMacSystemFont,system-ui,
               "Apple SD Gothic Neo","Malgun Gothic","맑은 고딕",sans-serif;
  --font-mono: ui-monospace,"SF Mono","JetBrains Mono","Roboto Mono",Menlo,Consolas,monospace;

  /* layout */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 40px);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11,27,46,.04), 0 12px 30px -12px rgba(11,27,46,.16);
  --shadow-lg: 0 2px 4px rgba(11,27,46,.05), 0 28px 60px -20px rgba(11,27,46,.28);
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -.02em; margin: 0; font-weight: 800; color: var(--text); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 116px); }
.section--paper { background: var(--paper); }
.section--warm  { background: var(--warm); }
.section--dark  { background: var(--ink); color: var(--on-dark); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sun-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin: 0 0 18px;
}
.section--dark .eyebrow { color: var(--sun-2); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; opacity: .9; }

.section__head { max-width: 720px; margin: 0 0 clamp(34px, 5vw, 56px); }
.section__head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section__head .lead { margin-top: 16px; color: var(--slate); font-size: 1.07rem; }
.section--dark .section__head .lead { color: var(--on-dark-mute); }
.lead { font-size: 1.12rem; line-height: 1.75; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--sun); --fg: #1A1205;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 24px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgba(245,166,35,.6); background: var(--sun-deep); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  --bg: transparent; --fg: var(--text);
  border-color: var(--line); box-shadow: none;
}
.btn--ghost:hover { background: var(--white); border-color: var(--slate-2); box-shadow: var(--shadow); }
.section--dark .btn--ghost, .hero .btn--ghost {
  --fg: var(--on-dark); border-color: var(--on-dark-line);
}
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover { background: rgba(231,237,245,.06); border-color: rgba(231,237,245,.3); }
.btn--lg { padding: 16px 30px; font-size: 1.06rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,27,46,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--on-dark-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--on-dark); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  color: var(--on-dark-mute); font-weight: 600; font-size: .96rem;
  padding: 9px 14px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--on-dark); background: rgba(231,237,245,.06); }
.nav__links a[aria-current="page"] { color: var(--sun-2); }
.nav__cta { margin-left: 12px; padding: 10px 18px; font-size: .95rem; }
.lang-switch { display: inline-flex; margin-left: 14px; border: 1px solid var(--on-dark-line); border-radius: 8px; overflow: hidden; }
.lang-btn { border: 0; background: transparent; color: var(--on-dark-mute); font-weight: 700; font-size: .8rem; padding: 6px 10px; cursor: pointer; font-family: inherit; line-height: 1; transition: background .15s, color .15s; }
.lang-btn:hover { color: var(--on-dark); }
.lang-btn.is-on { background: var(--sun); color: #1a1205; }
body.i18n-loading { cursor: progress; }
html[lang="en"] .brand span { font-size: .95rem; line-height: 1.15; max-width: 155px; }
html[lang="en"] .nav__links { gap: 0; }
html[lang="en"] .nav__links a { font-size: .79rem; padding: 8px 7px; white-space: nowrap; letter-spacing: -.01em; }
html[lang="en"] .nav__cta { font-size: .8rem; padding: 9px 12px; white-space: nowrap; }
html[lang="en"] .lang-switch { margin-left: 8px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  color: var(--on-dark); border-radius: 8px;
}
.nav__toggle:hover { background: rgba(231,237,245,.08); }
.nav__toggle svg { width: 24px; height: 24px; margin: auto; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.hero::before { /* 햇빛 글로우 */
  content: ""; position: absolute; z-index: -2; inset: 0;
  background:
    radial-gradient(58% 70% at 82% 8%, rgba(245,166,35,.30), rgba(245,166,35,.06) 42%, transparent 66%),
    radial-gradient(40% 50% at 96% 0%, rgba(255,192,86,.28), transparent 60%);
}
.hero::after { /* 태양광 패널 그리드 */
  content: ""; position: absolute; z-index: -1; inset: 0;
  background-image:
    linear-gradient(rgba(231,237,245,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231,237,245,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 38%, transparent 78%);
          mask-image: radial-gradient(120% 100% at 50% 0%, #000 38%, transparent 78%);
}
.hero__inner { padding-block: clamp(72px, 11vw, 132px); position: relative; }
.hero__content { max-width: 760px; }
.hero h1 { font-size: clamp(2.2rem, 6.2vw, 4rem); letter-spacing: -.035em; color: #fff; }
.hero h1 .accent { color: var(--sun); }
.hero__lead { margin-top: 22px; max-width: 620px; color: var(--on-dark-mute); font-size: clamp(1.05rem, 2.2vw, 1.22rem); line-height: 1.7; }
.hero .btn-row { margin-top: 34px; }
.hero__micro { margin-top: 18px; font-size: .92rem; color: var(--on-dark-mute); display: inline-flex; align-items: center; gap: .5em; }
.hero__micro svg { width: 17px; height: 17px; color: var(--sun-2); flex: none; }

/* hero stats */
.hero__stats {
  margin-top: clamp(44px, 6vw, 64px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  border-top: 1px solid var(--on-dark-line); padding-top: 30px;
  max-width: 820px;
}
.hstat__num { font-family: var(--font-mono); font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 700; color: #fff; letter-spacing: -.02em; line-height: 1; }
.hstat__num span { color: var(--sun); }
.hstat__label { margin-top: 9px; font-size: .86rem; color: var(--on-dark-mute); }

/* ---------- grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card__ic {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(245,166,35,.13); color: var(--sun-deep); margin-bottom: 18px;
}
.card__ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.16rem; margin-bottom: 9px; }
.card p { color: var(--slate); font-size: .98rem; }

/* service cards (big, linked) */
.service {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 34px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative; overflow: hidden;
}
.service::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--sun), var(--sun-2));
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d7dde6; }
.service:hover::after { transform: scaleX(1); }
.service__ic { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: var(--ink); color: var(--sun); margin-bottom: 20px; }
.service__ic svg { width: 27px; height: 27px; }
.service h3 { font-size: 1.42rem; }
.service p { color: var(--slate); margin-top: 10px; font-size: 1.02rem; flex: 1; }
.service__go { margin-top: 22px; display: inline-flex; align-items: center; gap: .45em; color: var(--sun-deep); font-weight: 700; font-size: .98rem; }
.service__go svg { width: 18px; height: 18px; transition: transform .18s ease; }
.service:hover .service__go svg { transform: translateX(4px); }

/* ---------- steps ---------- */
.steps { display: grid; gap: 4px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
  padding: 26px 4px; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: var(--sun-deep); padding-top: 3px; min-width: 2.4em; }
.step__body h3 { font-size: 1.18rem; margin-bottom: 6px; }
.step__body p { color: var(--slate); font-size: .99rem; }

/* ---------- prose / content ---------- */
.prose { max-width: 760px; }
.prose p { color: var(--slate); margin-bottom: 18px; font-size: 1.06rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 700; }

.checklist { display: grid; gap: 14px; margin-top: 6px; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; color: var(--slate); }
.checklist li svg { width: 22px; height: 22px; color: var(--sun-deep); flex: none; margin-top: 3px; }
.checklist b { color: var(--text); }

/* two-column split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split--start { align-items: start; }

/* panel (boxed callout) */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.panel--dark { background: var(--ink-2); border-color: var(--on-dark-line); color: var(--on-dark); box-shadow: none; }
.panel--dark .checklist li { color: var(--on-dark); }
.panel--dark .checklist b { color: #fff; }
.panel--dark .checklist li svg { color: var(--sun); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 4px; font-weight: 700; font-size: 1.06rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--sun-deep); font-size: 1.4rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--slate); padding: 0 4px 24px; font-size: 1.01rem; }

/* ---------- page header (inner) ---------- */
.pagehead { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.pagehead::before { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(50% 80% at 88% 0%, rgba(245,166,35,.24), transparent 60%); }
.pagehead::after { content: ""; position: absolute; z-index: -1; inset: 0;
  background-image: linear-gradient(rgba(231,237,245,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(231,237,245,.055) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(120% 120% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(120% 120% at 50% 0%, #000 30%, transparent 75%); }
.pagehead__inner { padding-block: clamp(60px, 8vw, 96px); }
.pagehead h1 { font-size: clamp(2rem, 5vw, 3.1rem); color: #fff; }
.pagehead p { margin-top: 16px; max-width: 620px; color: var(--on-dark-mute); font-size: 1.1rem; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--on-dark-mute); margin-bottom: 18px; font-family: var(--font-mono); letter-spacing: .02em; }
.crumbs a:hover { color: var(--sun-2); }
.crumbs span { opacity: .5; }

/* ---------- cta band ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(60% 120% at 85% 50%, rgba(245,166,35,.22), transparent 60%); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: #fff; max-width: 620px; }
.cta p { margin-top: 12px; color: var(--on-dark-mute); font-size: 1.06rem; }
.cta .btn-row { flex: none; }

/* ---------- videos ---------- */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vcard { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); display: grid; place-items: center; }
.vcard__ph { display: grid; place-items: center; gap: 12px; color: var(--on-dark-mute); text-align: center; padding: 16px; }
.vcard__play { width: 56px; height: 56px; border-radius: 50%; background: rgba(245,166,35,.16); display: grid; place-items: center; color: var(--sun-2); }
.vcard__play svg { width: 26px; height: 26px; }
.vcard iframe { width: 100%; height: 100%; border: 0; }
.vcard__ph small { font-size: .85rem; }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 56px); align-items: start; }
.info-list { display: grid; gap: 22px; margin-top: 6px; }
.info-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.info-item__ic { width: 44px; height: 44px; border-radius: 11px; background: rgba(245,166,35,.13); color: var(--sun-deep); display: grid; place-items: center; flex: none; }
.info-item__ic svg { width: 22px; height: 22px; }
.info-item .k { font-size: .82rem; color: var(--slate-2); font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.info-item .v { font-size: 1.16rem; font-weight: 700; color: var(--text); margin-top: 2px; }
.info-item .v:hover { color: var(--sun-deep); }
.info-item small { color: var(--slate); }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--text); }
.field label .req { color: var(--sun-deep); }
.input, .textarea {
  width: 100%; padding: 13px 15px; font-size: 1rem; font-family: inherit;
  color: var(--text); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: #9aa8b8; }
.input:focus, .textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(245,166,35,.18); }
.textarea { min-height: 132px; resize: vertical; }
.form__status { min-height: 1.4em; font-size: .95rem; font-weight: 600; }
.form__status.ok { color: #1f9d63; }
.form__status.err { color: #d65151; }
.form__note { font-size: .85rem; color: var(--slate-2); }
.form .btn { width: 100%; }

/* ---------- ad slot ---------- */
.ad-slot { margin: 0 auto; max-width: var(--maxw); padding: 8px var(--pad); text-align: center; }
.ad-slot__inner { min-height: 90px; display: grid; place-items: center; color: #aeb8c4; font-size: .8rem; border: 1px dashed var(--line); border-radius: 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-mute); padding-block: clamp(48px, 7vw, 76px) 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.footer__brand .brand { margin-bottom: 16px; }
.footer__brand p { font-size: .95rem; line-height: 1.7; max-width: 320px; }
.footer__col h4 { color: var(--on-dark); font-size: .82rem; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { font-size: .96rem; }
.footer__col a:hover { color: var(--sun-2); }
.footer__contact div { margin-bottom: 14px; }
.footer__contact .k { font-size: .76rem; font-family: var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--slate-2); }
.footer__contact .v { font-size: 1.04rem; color: var(--on-dark); font-weight: 700; }
.footer__contact .v:hover { color: var(--sun-2); }
.footer__meta { font-size: .85rem; line-height: 1.9; }
.footer__bottom { border-top: 1px solid var(--on-dark-line); padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- 현장 갤러리 ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.gallery__loading, .gallery__empty { grid-column: 1 / -1; text-align: center; color: var(--slate-2); padding: 56px 0; }
.g-item { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.g-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg, 0 16px 36px -12px rgba(11,27,46,.22)); }
.g-media { display: block; aspect-ratio: 16 / 9; background: var(--ink); }
.g-media img, .g-media video, .g-media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.g-cap { padding: 12px 14px; font-size: .95rem; color: var(--text); font-weight: 600; }

/* ---------- FAQ ---------- */
.faqs { max-width: 840px; margin: 0 auto; }
.faq-cat { margin-bottom: 38px; }
.faq-cat:last-child { margin-bottom: 0; }
.faq-cat__title { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.faq-item summary { padding: 17px 20px; cursor: pointer; font-weight: 700; color: var(--text); list-style: none; display: flex; align-items: center; gap: 13px; font-size: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--sun); color: #1a1205; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.faq-item summary::after { content: "+"; margin-left: auto; color: var(--slate-2); font-size: 1.35rem; line-height: 1; transition: transform .2s ease; }
.faq-item[open] summary { color: var(--ink); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 2px 20px 20px 59px; color: var(--slate); line-height: 1.78; }
@media (max-width: 560px) { .faq-a { padding-left: 20px; } }

/* ---------- 발전소 수익계산기 ---------- */
.calc3 { display: grid; gap: 18px; }
.calc-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; box-shadow: var(--shadow); }
.calc-card--input { border-top: 3px solid var(--sun); }
.calc-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.calc-card__title { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin: 0; }
.step-badge { flex: none; font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--ink); padding: 5px 11px; border-radius: 999px; }
.step-badge--gold { background: var(--sun); color: #1a1205; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cfield { display: grid; gap: 7px; }
.cfield--full { grid-column: 1 / -1; }
.cfield label { font-size: .9rem; color: var(--text); font-weight: 700; }
.cfield label em { font-style: normal; color: var(--slate-2); font-weight: 500; }
.calc-go { width: 100%; margin-top: 18px; font-size: 1.02rem; padding: 15px; }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 4px; gap: 4px; }
.seg--grow { display: flex; width: 100%; }
.seg--grow .seg__btn { flex: 1; }
.seg--sm { padding: 3px; }
.seg--sm .seg__btn { padding: 7px 16px; font-size: .85rem; }
.seg__btn { border: 0; background: transparent; padding: 10px 22px; border-radius: 7px; font-weight: 700; color: var(--slate); cursor: pointer; font-size: .92rem; font-family: inherit; transition: background .15s, color .15s; }
.seg__btn.is-on { background: var(--ink); color: #fff; }
.calc-map { position: relative; width: 100%; height: 320px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--paper); }
.calc-map.hide, .hide { display: none !important; }
.calc-map__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--slate-2); font-size: .9rem; z-index: 0; }
.calc-map iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; display: block; }
.calc-rhead { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.calc-rhead .calc-card__title { margin-right: auto; }
.rcards4 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rc { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-align: center; box-shadow: var(--shadow); }
.rc__ic { width: 40px; height: 40px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 11px; background: rgba(11,27,46,.06); color: var(--ink); }
.rc__ic svg { width: 21px; height: 21px; }
.rc__t { display: block; color: var(--slate); font-weight: 600; margin-bottom: 8px; font-size: .92rem; }
.rc__v i { font-style: normal; font-size: 1.9rem; font-weight: 800; color: var(--ink); font-family: var(--font-mono); }
.rc__v em { font-style: normal; font-size: .95rem; color: var(--slate-2); margin-left: 3px; }
.rc--gold { background: var(--ink); border-color: var(--ink); }
.rc--gold .rc__ic { background: rgba(245,166,35,.18); color: var(--sun); }
.rc--gold .rc__t { color: var(--on-dark-mute); }
.rc--gold .rc__v i { color: var(--sun); }
.rc--gold .rc__v em { color: var(--sun-2); }
.rsub { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rsub-i { background: #eef4fb; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rsub-i span { color: var(--slate); font-weight: 600; font-size: .92rem; }
.rsub-i span small { color: var(--slate-2); font-weight: 400; font-size: .75rem; }
.rsub-i b { font-family: var(--font-mono); font-size: 1.15rem; color: var(--ink); font-weight: 800; }
.calc-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-ch { font-size: .95rem; font-weight: 700; color: var(--text); margin: 0 0 14px; }
.calc-ch small { color: var(--slate-2); font-weight: 500; }
.chart-box { width: 100%; min-height: 250px; }
.chart-box svg text.ct { fill: var(--slate-2); font-size: 10px; }
.chart-box svg text.ct--sm { font-size: 9px; }
.chart-empty { display: grid; place-items: center; min-height: 250px; text-align: center; color: var(--slate-2); font-size: .9rem; line-height: 1.6; padding: 20px; }
.chart-empty b { color: var(--sun-deep); }
.chart-empty--err, .chart-empty--err b { color: #c0353a; }
.input--err { border-color: #e5484d !important; box-shadow: 0 0 0 3px rgba(229, 72, 77, .12); }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px); background: #c0353a; color: #fff; font-weight: 600; font-size: .95rem; padding: 14px 26px; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .28); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 9999; max-width: 90vw; text-align: center; line-height: 1.5; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.cond-acc { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cond-acc > summary { padding: 16px 22px; cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 10px; }
.cond-acc > summary::-webkit-details-marker { display: none; }
.cond-acc > summary::after { content: "\25BE"; margin-left: auto; color: var(--slate-2); transition: transform .2s; }
.cond-acc[open] > summary::after { transform: rotate(180deg); }
.cond-acc > summary small { color: var(--slate-2); font-weight: 400; font-size: .8rem; }
.cond-panel__head { margin-bottom: 18px; }
.cond-title { font-size: 1.1rem; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.cond-note { font-size: .82rem; color: var(--slate-2); line-height: 1.65; margin: 0; }
.cond-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cond--ro .cond-v b { font-family: var(--font-mono); font-weight: 800; color: var(--text); font-size: 1rem; }
.cond { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #eef4fb; border: 1px solid var(--line); border-radius: 10px; padding: 12px 15px; }
.cond-l { font-weight: 700; color: var(--ink); font-size: .9rem; }
.cond-v { display: flex; align-items: center; gap: 4px; }
.cond-in { width: 90px; border: 0; background: transparent; text-align: right; font-family: var(--font-mono); font-weight: 700; color: var(--text); font-size: 1rem; padding: 2px 0; }
.cond-in:focus { outline: none; border-bottom: 2px solid var(--sun); }
.cond-in--ro { color: var(--slate-2); cursor: default; }
.cond-in--ro:focus { border-bottom: 0; }
.cond-v em { font-style: normal; color: var(--slate-2); font-size: .85rem; }
.calc__note { font-size: .82rem; color: var(--slate-2); margin-top: 4px; line-height: 1.65; }
@media (max-width: 820px) {
  .calc-charts { grid-template-columns: 1fr; }
  .cond-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cgrid { grid-template-columns: 1fr; }
  .rcards4 { grid-template-columns: 1fr; }
  .rsub { grid-template-columns: 1fr; }
  .cond-grid { grid-template-columns: 1fr; }
  .calc-map { height: 260px; }
  .calc-rhead { flex-wrap: wrap; }
}

/* ---------- 분양 매물 ---------- */
.listings { display: grid; gap: 22px; }
.listings__loading, .listings__empty { text-align: center; color: var(--slate-2); padding: 52px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.lcard { display: grid; grid-template-columns: minmax(0, 1.05fr) 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.lcard__img { background: var(--ink); }
.lcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 230px; }
.lcard__body { padding: 26px 28px; }
.lcard__title { font-size: 1.15rem; font-weight: 800; margin: 0 0 16px; color: var(--ink); line-height: 1.45; }
.lrow { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.lrow:last-child { border-bottom: 0; }
.lk { color: var(--slate-2); font-weight: 600; }
.lv { color: var(--text); }
@media (max-width: 720px) {
  .lcard { grid-template-columns: 1fr; }
  .lcard__img img { min-height: 0; aspect-ratio: 16 / 10; }
  .lcard__body { padding: 22px 20px; }
}

/* ---------- floating kakao + mobile action bar ---------- */
.kakao-fab {
  position: fixed; right: 22px; bottom: 24px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  background: #FEE500; color: #191600; padding: 13px 20px; border-radius: 999px;
  font-weight: 700; font-size: .96rem; box-shadow: 0 10px 26px -8px rgba(0,0,0,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.kakao-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(0,0,0,.42); }
.kakao-fab svg { width: 22px; height: 22px; }

/* 연락처 페이지 인라인 카카오 버튼 (상담시간 아래, 미니 사이즈) */
.kakao-inline {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; padding: 11px 18px;
  background: #FEE500; color: #191600; border-radius: 12px;
  font-weight: 700; font-size: .94rem; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.kakao-inline:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -6px rgba(0,0,0,.28); }
.kakao-inline svg { width: 19px; height: 19px; flex-shrink: 0; }

.mobile-bar { display: none; }
@media (max-width: 760px) {
  .kakao-fab { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    gap: 1px; background: var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 16px -6px rgba(11,27,46,.2);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 15px 8px; font-weight: 700; font-size: .98rem; }
  .mobile-bar svg { width: 20px; height: 20px; flex: none; }
  .mb-call { background: var(--ink); color: #fff; }
  .mb-kakao { background: #FEE500; color: #191600; }
  .mb-alt { background: var(--sun); color: #1a1205; }
  body { padding-bottom: 60px; }
}

/* ---------- reveal animation (JS 있을 때만 숨김) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .videos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav__menu { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .site-header.open .nav__menu {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid var(--on-dark-line);
    padding: 14px var(--pad) 22px; gap: 4px;
  }
  .site-header.open .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-header.open .nav__links a { padding: 13px 12px; font-size: 1.02rem; }
  .site-header.open .nav__cta { margin: 10px 0 0; width: 100%; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 22px 8px; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .videos { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .step__num { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
