/* ============================================================
   gnheat WordPress Theme — main.css
   Site: http://gnheat.cservicecnter.com
   Business: 지앤히트 (gnheat control)
   ============================================================ */

/* ============================================================
   1. Pretendard — functions.php 에서 preload 처리
   ============================================================ */

/* ============================================================
   2. CSS Custom Properties
   ============================================================ */
:root {
  --bg: #FFFFFF;
  --bg-sub: #ECEFF1;
  --accent: #1A1A1A;
  --accent-sub: #00C853;
  --text: #212121;
  --radius: 12px;
}

/* ============================================================
   3. Reset / Base Styles
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: 29px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent);
}

h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--accent);
}

h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--accent);
}

h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--accent);
}

p {
  line-height: 1.6;
}

a {
  color: var(--accent-sub);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 16px;
}

/* ============================================================
   4. Layout — .container
   ============================================================ */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

/* ============================================================
   5. Layout — .section
   ============================================================ */
.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* ============================================================
   6. Buttons
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-sub);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  min-height: 44px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #00a844;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  min-height: 44px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: #333;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-sms {
  background-color: var(--bg-sub);
  color: var(--accent);
}

.btn-sms:hover {
  background-color: #DCE0E3;
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.br-mobile {
  display: none;
}

/* ============================================================
   7. Icon Wrap
   ============================================================ */
.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ============================================================
   8. Header
   ============================================================ */
.gnheat-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.gnheat-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.gnheat-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}

.gnheat-logo:hover .logo-ko {
  color: var(--accent-sub);
}

.gnheat-logo svg,
.gnheat-logo img {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
}

.gnheat-logo-text {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.logo-ko {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
  font-style: normal;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.logo-en {
  display: block;
  width: 100%;
  font-size: 8.5px;
  font-weight: 500;
  color: #888;
  font-style: normal;
  text-transform: lowercase;
  text-align: justify;
  text-align-last: justify;
  white-space: nowrap;
  overflow: hidden;
}

.gnheat-nav {
  display: flex;
  align-items: center;
}

.gnheat-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gnheat-nav ul li {
  list-style: none;
}

.gnheat-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
  display: block;
  padding: 4px 0;
  position: relative;
}

.gnheat-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-sub);
  transition: width 0.2s ease;
}

.gnheat-nav a:hover {
  color: var(--accent-sub);
}

.gnheat-nav a:hover::after {
  width: 100%;
}

.gnheat-nav a.current-page {
  color: var(--accent-sub);
}

.gnheat-nav a.current-page::after {
  width: 100%;
}

/* Hamburger — hidden on desktop */
.gnheat-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.gnheat-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gnheat-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.gnheat-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.gnheat-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.gnheat-mobile-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 99;
}

.gnheat-mobile-menu.open {
  display: block;
  animation: slideDown 0.25s ease;
}

.gnheat-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gnheat-mobile-menu ul li {
  list-style: none;
}

.gnheat-mobile-menu li a {
  display: block;
  padding: 16px 24px;
  border-bottom: 1px solid var(--bg-sub);
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.gnheat-mobile-menu li a:hover {
  background: var(--bg-sub);
  color: var(--accent-sub);
}

.gnheat-mobile-menu li:last-child a {
  border-bottom: none;
}

.gnheat-mobile-menu li.mobile-menu-cta {
  padding: 12px 24px 20px;
}

/* ============================================================
   9. Hero Section
   ============================================================ */
.gnheat-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* <picture> 히어로 배경 이미지 */
.hero-bg-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 125%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  color: #fff;
  padding: 0 0 80px;
  text-align: center;
}

.hero-h1 {
  font-size: clamp(36px, 4vw, 84px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.hero-desc {
  font-size: clamp(18px, 1.5vw, 26px);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto;
  line-height: 1.6;
  max-width: 520px;
}

.hero-content .btn-group {
  justify-content: center;
  margin-top: 24px;
}

/* ============================================================
   10. Pain Points Section
   ============================================================ */
.gnheat-pain {
  background: var(--bg-sub);
}

.pain-slider-controls { display: none; }

/* 숫자 뱃지 */
.pain-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00C853 0%, #00a844 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,200,83,.35), inset 0 1px 0 rgba(255,255,255,.25);
  letter-spacing: -0.5px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pain-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s ease;
}

.pain-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pain-item .icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(0, 200, 83, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-sub);
  flex-shrink: 0;
}

.pain-item .icon-wrap svg,
.pain-item .icon-wrap img {
  width: 24px;
  height: 24px;
}

.pain-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--accent);
}

.pain-item p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   11. Fullscreen Image Section
   ============================================================ */
.gnheat-fullscreen {
  height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
}

/* ============================================================
   12. Why Us Section
   ============================================================ */
.gnheat-whyus {
  background: var(--accent);
  color: #fff;
}

.gnheat-whyus .section-title,
.gnheat-whyus h2 {
  color: #fff;
}

.gnheat-whyus .section-subtitle,
.gnheat-whyus > .container > p {
  color: rgba(255, 255, 255, 0.8);
}

.whyus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.whyus-item {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.whyus-item:hover {
  border-color: rgba(0, 200, 83, 0.5);
  background: rgba(255, 255, 255, 0.04);
}

.whyus-item .icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(0, 200, 83, 0.2);
  color: var(--accent-sub);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whyus-item .icon-wrap svg,
.whyus-item .icon-wrap img {
  width: 24px;
  height: 24px;
}

.whyus-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.whyus-item p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   13. Cases / Portfolio
   ============================================================ */
.gnheat-cases {
  background: var(--bg);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.case-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.case-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.case-title {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.case-card:hover .case-img {
  transform: scale(1.05);
}

.cases-more {
  text-align: center;
  margin-top: 40px;
}

/* ============================================================
   14. Services Section
   ============================================================ */
.gnheat-services {
  background: var(--bg-sub);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.service-body {
  padding: 24px;
}

.service-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--accent);
}

.service-body p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 16px;
}

.service-body p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   15. About Section
   ============================================================ */
.gnheat-about {
  background: var(--bg);
}

/* Desktop grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--bg-sub);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.about-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.about-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-sub);
  color: #fff;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-card .icon-wrap svg,
.about-card .icon-wrap img {
  width: 24px;
  height: 24px;
}

.about-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--accent);
}

.about-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* Mobile slider — hidden on desktop */
.about-slider {
  display: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--radius);
}

.about-slider::-webkit-scrollbar {
  display: none;
}

.about-track {
  display: flex;
  gap: 0;
}

.about-track .about-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  border-radius: 0;
}

.about-track .about-card:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.about-track .about-card:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.dot-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dot-nav button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
  min-height: unset;
}

.dot-nav button:hover {
  background: var(--accent-sub);
}

.dot-nav button.active {
  background: var(--accent-sub);
  transform: scale(1.25);
}

/* ============================================================
   16. FAQ Section
   ============================================================ */
.gnheat-faq {
  background: var(--bg);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--accent-sub);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  color: var(--accent);
  font-family: inherit;
  line-height: 1.5;
  min-height: 44px;
  transition: background 0.15s ease;
}

.faq-question:hover {
  background: rgba(0, 200, 83, 0.04);
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--accent-sub);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
  font-weight: 400;
  line-height: 1;
}

.faq-question.open::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}

.faq-answer.open {
  max-height: 500px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

/* ============================================================
   17. CTA Section
   ============================================================ */
.gnheat-cta {
  background: var(--accent-sub);
  color: #fff;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.gnheat-cta h2 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 22px;
}

.gnheat-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.6;
}

.gnheat-cta .btn-group {
  justify-content: center;
}

.gnheat-cta .btn-primary {
  background: #fff;
  color: var(--accent-sub);
  font-weight: 700;
}

.gnheat-cta .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.gnheat-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.gnheat-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* ============================================================
   18. Footer
   ============================================================ */
.gnheat-footer {
  background: var(--accent);
  color: rgba(255, 255, 255, 0.6);
  padding: 28px 0 20px;
  font-size: 13px;
}

.gnheat-footer .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-company {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.footer-info p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-info a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-decoration: none;
  padding: 4px 12px 4px 0;
  transition: color 0.2s;
}

.footer-nav a:not(:last-child)::after {
  content: '|';
  margin-left: 12px;
  color: rgba(255, 255, 255, 0.25);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.footer-disclaimer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 10px;
}

/* ============================================================
   19. Fade-in Animation
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   20. Keyframes
   ============================================================ */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================================
   21. Section Heading Utility
   ============================================================ */
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-sub);
  margin-bottom: 8px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1.35;
}

.section-subtitle {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

/* ============================================================
   22. Sub-page Styles
   ============================================================ */

/* Page Hero */
.page-hero {
  height: 360px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  color: #fff;
  width: 100%;
}

.page-hero-content h1 {
  color: #fff;
  font-size: 29px;
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
}

/* Case Detail */
.case-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 40px 0;
}

.before-after-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-sub);
  margin-bottom: 8px;
}

/* Service Detail */
.service-detail-content {
  max-width: 860px;
  margin: 0 auto;
}

.service-detail-content h2 {
  font-size: 22px;
  margin: 40px 0 16px;
  color: var(--accent);
}

.service-detail-content h3 {
  font-size: 18px;
  margin: 32px 0 12px;
  color: var(--accent);
}

.service-detail-content p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--text);
}

.service-highlight {
  background: var(--bg-sub);
  border-left: 4px solid var(--accent-sub);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.service-highlight p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

/* Contact */
.contact-box {
  background: var(--bg-sub);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-item .icon-wrap {
  width: 40px;
  height: 40px;
  background: rgba(0, 200, 83, 0.1);
  border-radius: 50%;
  color: var(--accent-sub);
  flex-shrink: 0;
}

.contact-info-item .icon-wrap svg {
  width: 20px;
  height: 20px;
}

.contact-info-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-info-item-label {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-item-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.contact-info-item-value a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info-item-value a:hover {
  color: var(--accent-sub);
}

/* ============================================================
   23. Mobile Breakpoint — max-width: 767px
   ============================================================ */
@media (max-width: 767px) {
  /* Base typography */
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 17px;
  }

  /* Container */
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Section padding */
  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  /* Header */
  .gnheat-nav {
    display: none;
  }

  .gnheat-hamburger {
    display: flex;
  }

  /* Hero — mobile */
  .gnheat-hero {
    min-height: 448px;
    align-items: flex-end;
  }

  .hero-bg-img {
    height: 125%;
    object-position: center top;
  }

  .hero-overlay {
    background: rgba(0, 0, 0, 0.28);
  }

  .hero-content {
    padding: 0 0 36px;
    max-width: 100%;
    width: 100%;
    align-self: flex-end;
  }

  .hero-h1 {
    font-size: 29px !important;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
    margin-bottom: 12px !important;
  }

  .hero-desc {
    font-size: 16px !important;
    color: rgba(255,255,255,.9) !important;
    margin-bottom: 24px !important;
  }

  .hero-content .btn-group {
    align-items: center;
  }

  .hero-content .btn-primary {
    width: auto;
  }

  /* Pain grid */
  /* Pain 슬라이더 — 모바일 */
  .pain-slider-wrap {
    position: relative;
  }
  .pain-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    padding-bottom: 4px;
  }
  .pain-grid::-webkit-scrollbar { display: none; }
  .pain-item {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    padding: 28px 20px;
  }
  .pain-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
  }
  .pain-slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-sub);
    background: #fff;
    color: var(--accent-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, color .2s;
  }
  .pain-slider-btn:active {
    background: var(--accent-sub);
    color: #fff;
  }
  .pain-slider-btn:disabled {
    border-color: #ddd;
    color: #ccc;
    cursor: default;
  }
  .pain-dots {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .pain-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .2s;
  }
  .pain-dots button.active {
    background: var(--accent-sub);
    transform: scale(1.3);
  }

  /* Fullscreen image */
  .gnheat-fullscreen {
    height: 280px;
  }

  /* Why us grid */
  .whyus-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Cases — full-width single-card slider on mobile */
  .cases-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: var(--radius);
  }

  .cases-slider::-webkit-scrollbar {
    display: none;
  }

  .cases-grid {
    display: flex;
    gap: 0;
  }

  .case-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }

  .case-card:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
  }

  .case-card:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-img {
    height: 200px;
  }

  /* About — show slider, hide grid */
  .about-grid {
    display: none;
  }

  .about-slider {
    display: block;
  }

  .about-track .about-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  /* CTA section */
  .gnheat-cta {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .gnheat-cta h2 {
    font-size: 20px;
  }

  .gnheat-cta p {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .br-mobile {
    display: inline;
  }

  /* Footer nav 모바일 */
  .footer-nav a:not(:last-child)::after {
    margin-left: 10px;
  }

  /* Section heading */
  .section-header {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-subtitle {
    font-size: 15px;
    margin-bottom: 0;
  }

  /* Sub-page hero */
  .page-hero {
    height: 220px;
  }

  .page-hero-content {
    padding: 24px 0;
  }

  .page-hero-content h1 {
    font-size: 22px;
  }

  /* Case detail */
  .case-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 24px 0;
  }

  /* Contact box */
  .contact-box {
    padding: 24px 20px;
  }

  /* Buttons */
  .btn-group {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
    width: auto;
    flex: 0 1 auto;
    padding: 12px 24px;
  }
}

/* ============================================================
   24. Desktop Breakpoint — min-width: 768px
   ============================================================ */
@media (min-width: 768px) {
  /* Hide mobile slider elements on desktop */
  .about-slider {
    display: none;
  }

  .dot-nav {
    display: none;
  }

  /* Show desktop grid */
  .about-grid {
    display: grid;
  }
}

/* ============================================================
   25. Large Desktop — min-width: 1024px
   ============================================================ */
@media (min-width: 1024px) {
  h1 {
    font-size: 29px;
  }

  h2 {
    font-size: 22px;
  }

  .section-title {
    font-size: 22px;
  }

  /* 큰 화면(1024px 이상)에서는 히어로 텍스트를 왼쪽 아래로, 화면 비율에 맞게 커지도록 */
  .hero-content {
    margin: 0;
    text-align: left;
    max-width: min(60vw, 1100px);
    padding-left: clamp(24px, 6vw, 140px);
  }

  .hero-desc {
    margin: 0;
  }

  .hero-content .btn-group {
    justify-content: flex-start;
  }

  .hero-content .btn-primary,
  .hero-content .btn-secondary {
    font-size: clamp(16px, 1.2vw, 22px);
    padding: clamp(12px, 1vw, 20px) clamp(20px, 2vw, 36px);
    min-height: clamp(44px, 3vw, 64px);
  }

  .gnheat-logo svg,
  .gnheat-logo img {
    width: clamp(40px, 2.2vw, 56px);
    height: clamp(40px, 2.2vw, 56px);
  }

  .logo-ko {
    font-size: clamp(17px, 1.1vw, 22px);
  }

  .logo-en {
    font-size: clamp(8.5px, 0.55vw, 11px);
  }
}

/* ============================================================
   26. Print Styles
   ============================================================ */
@media print {
  .gnheat-header,
  .gnheat-footer,
  .gnheat-cta,
  .gnheat-hamburger,
  .gnheat-mobile-menu {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ============================================================
   End of main.css
   ============================================================ */
