:root {
  --apt-ink: #13130A;
  --apt-yellow: #FEEB8F;
  --ink: #13130A;
  --sub: #5B5B52;
  --line: #E7E5DE;
  --bg-1: #FAFAF7;
  --bg-2: #F3F2EC;
  --bg-3: #FFFFFF;
  --bg-4: #F6F5F0;
  --hero-tint: #F3F2EC;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--ink);
  background: #FFFFFF;
  padding-bottom: 72px;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-weight: 700; margin: 0 0 16px; line-height: 1.3; letter-spacing: -0.4px; }
p { line-height: 1.75; color: var(--sub); margin: 0 0 16px; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 200; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 32px; height: 32px; color: var(--ink); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-brand { font-size: 13px; font-weight: 600; color: var(--sub); letter-spacing: 0.5px; }
.logo-keyword { font-size: 19px; font-weight: 700; color: var(--ink); }

.nav {
  display: none; align-items: center; gap: 28px;
  font-family: "Barlow Condensed", sans-serif; font-size: 16px; font-weight: 600;
  letter-spacing: -0.035em; text-transform: uppercase;
}
@media (min-width: 900px) { .nav { display: flex; } }
.nav a { color: var(--ink); }
.nav .navdrop { position: relative; }
.nav .navdrop > a::after { content: " \25BE"; font-size: 12px; }
.navdrop-menu {
  position: absolute; top: 100%; left: 0; min-width: 190px; z-index: 201;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 8px 8px; display: none; box-shadow: 0 16px 32px rgba(0,0,0,0.10);
}
.navdrop:hover .navdrop-menu, .navdrop:focus-within .navdrop-menu { display: block; }
.navdrop-menu a {
  display: block; padding: 9px 12px; border-radius: 6px; font-size: 14px;
  text-transform: none; letter-spacing: -0.3px; font-weight: 500;
}
.navdrop-menu a:hover { background: var(--bg-1); }
.nav a.nav-cta {
  padding: 11px 22px; border-radius: 999px; background: var(--apt-ink); color: #FFF;
  font-weight: 600; font-size: 15px; text-transform: none; letter-spacing: -0.3px;
}

/* ---------- mobile hamburger + drawer ---------- */
.hamburger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 0; }
@media (min-width: 900px) { .hamburger { display: none; } }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; }
.mobile-nav { display: none; flex-direction: column; background: #FFFFFF; border-top: 1px solid var(--line); padding: 8px 24px 20px; position: relative; z-index: 201; }
.mobile-nav.is-open { display: flex; }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }
.mobile-nav a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav-cta { color: var(--apt-ink) !important; font-weight: 700; }

/* ---------- floating consult (apt yellow) ---------- */
.floating-consult {
  display: none; position: fixed; right: 28px; bottom: 28px; z-index: 150;
  background: var(--apt-yellow); color: var(--apt-ink); font-weight: 700; font-size: 15px;
  padding: 16px 26px; border-radius: 999px; box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
@media (min-width: 768px) { .floating-consult { display: inline-flex; align-items: center; } }

/* ---------- home hero: full-bleed photo + white text plate (no dark overlay) ---------- */
.hero-full { position: relative; height: 620px; overflow: hidden; background: #EFEEE8; }
.hero-full img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-full-content {
  position: relative; z-index: 2; max-width: 560px; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  background: #FFFFFF; padding: 48px 44px; margin: 0;
}
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.4px;
  color: var(--apt-ink); background: var(--apt-yellow); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; width: fit-content;
}
.hero-full h1 { font-size: 40px; font-weight: 800; color: var(--apt-ink); margin-bottom: 14px; }
@media (min-width: 900px) { .hero-full h1 { font-size: 52px; } }
.hero-full .hero-sub { font-size: 16px; line-height: 1.75; margin-bottom: 24px; max-width: 42ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.btn-fill, .btn-line { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.btn-fill { background: var(--apt-ink); color: #FFF; }
.btn-line { border: 1.5px solid var(--apt-ink); color: var(--apt-ink); }
.hero-checks { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; color: var(--sub); }
.hero-checks li::before { content: "\2713 "; color: var(--apt-ink); font-weight: 700; }
@media (max-width: 899px) {
  .hero-full { height: auto; display: flex; flex-direction: column; }
  .hero-full img { position: static; height: 260px; width: 100%; object-fit: cover; }
  .hero-full-content { max-width: none; padding: 32px 24px; }
}

/* ---------- generic section ---------- */
.section { padding: 96px 0; }
@media (max-width: 600px) { .section { padding: 64px 0; } }
.section-label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--apt-ink); margin-bottom: 12px; }
.section-label svg { width: 18px; height: 18px; }
.section-title { font-size: 30px; margin-bottom: 20px; }
.section-lead { font-size: 16px; max-width: 640px; }

/* ---------- about: split layout ---------- */
.about-split { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) { .about-split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.about-split .about-photo { border-radius: 18px; overflow: hidden; }
.about-split .about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-body { display: grid; gap: 18px; }

/* ---------- size comparison table ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.size-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14.5px; }
.size-table th, .size-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.size-table th { color: var(--apt-ink); font-weight: 700; border-bottom: 2px solid var(--apt-ink); }
.size-table td { color: var(--sub); }

/* ---------- service: apt icon style ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 36px; }
@media (min-width: 900px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service-item { padding: 28px 22px; border: 1px solid var(--apt-ink); border-radius: 4px; }
.service-icon { display: block; width: 44px; height: 44px; flex-shrink: 0; overflow: hidden; margin-bottom: 16px; background: var(--apt-yellow); border-radius: 50%; padding: 9px; }
.service-icon svg { display: block; width: 100%; height: 100%; max-width: 44px; max-height: 44px; color: var(--apt-ink); }
@media (max-width: 767px) { .service-icon { width: 36px; height: 36px; padding: 7px; } .service-icon svg { max-width: 36px; max-height: 36px; } }
.service-item h3 { font-size: 18px; margin-bottom: 8px; }
.service-item p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- cases: home = horizontal carousel ---------- */
.case-carousel { display: flex; gap: 20px; overflow-x: auto; margin-top: 36px; padding-bottom: 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.case-carousel .case-card { flex: 0 0 300px; scroll-snap-align: start; }
.case-carousel::-webkit-scrollbar { height: 6px; }
.case-carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.case-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: box-shadow .25s ease; }
.case-card:hover { box-shadow: 0 18px 34px rgba(0,0,0,0.12); }
.case-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-4); }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.case-card:hover .case-thumb img { transform: scale(1.04); }
.case-body { padding: 18px 20px 22px; }
.case-tag { font-size: 12.5px; color: var(--apt-ink); font-weight: 700; margin-bottom: 8px; }
.case-body h3 { font-size: 17px; margin-bottom: 8px; }
.case-body p { font-size: 14px; margin-bottom: 0; }
.case-more { text-align: center; margin-top: 40px; }

/* apt-portfolio grid (설치사례 목록) */
.case-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
@media (min-width: 600px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .case-grid { grid-template-columns: repeat(4, 1fr); } }
.case-grid.case-grid--pair { max-width: 640px; margin-left: auto; margin-right: auto; }
@media (min-width: 700px) { .case-grid.case-grid--pair { grid-template-columns: repeat(2, 1fr); } }

/* ---------- process ---------- */
.process-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: 36px; }
@media (min-width: 800px) { .process-list { grid-template-columns: repeat(4, 1fr); } }
.process-item { padding: 28px 20px 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .process-item { border-bottom: none; } }
.process-item:first-child { padding-left: 0; }
.process-item:nth-child(2n) { border-right: none; }
@media (min-width: 800px) {
  .process-item:nth-child(2n) { border-right: 1px solid var(--line); }
  .process-item:last-child { border-right: none; }
}
.pnum { color: var(--apt-ink); font-weight: 700; font-size: 13px; display: block; margin-bottom: 10px; }
.process-item h3 { font-size: 16.5px; margin-bottom: 8px; }
.process-item p { font-size: 13.5px; margin-bottom: 0; }

/* ---------- region ---------- */
.region-groups { margin-top: 36px; display: grid; gap: 28px; }
.region-group h3 { font-size: 15px; color: var(--sub); font-weight: 600; margin-bottom: 12px; }
.region-links { display: flex; flex-wrap: wrap; gap: 10px; }
.region-links a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: #FFF; }
.region-links a:hover { border-color: var(--apt-ink); }

/* ---------- faq ---------- */
.faq-list { margin-top: 32px; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 4px; padding: 20px 22px; background: #FFF; }
.faq-item h3 { font-size: 15.5px; margin-bottom: 8px; }
.faq-item p { font-size: 14px; margin-bottom: 0; }

/* ---------- closing ---------- */
.closing { position: relative; height: 560px; display: flex; align-items: center; justify-content: center; color: #FFF; text-align: center; overflow: hidden; }
@media (max-width: 600px) { .closing { height: 460px; } }
.closing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.closing::after { content: ""; position: absolute; inset: 0; background: rgba(19,19,10,0.6); z-index: 1; }
.closing--solid { background: #13130A; }
.closing--solid::after { display: none; }
.closing-inner { position: relative; z-index: 2; max-width: 640px; padding: 0 24px; }
.closing-head { font-size: 26px; font-weight: 700; margin-bottom: 14px; color: var(--apt-yellow); }
@media (min-width: 700px) { .closing-head { font-size: 32px; white-space: nowrap; } }
.closing-quote { font-size: 15px; color: #E8E6DC; opacity: 0.9; margin-bottom: 28px; }
.closing-cta { display: inline-block; padding: 14px 34px; background: transparent; color: #FFF; border: 1px solid #FFF; border-radius: 0; font-weight: 600; }

/* ---------- footer (black) ---------- */
footer { background: #000000; color: #EDEDE7; padding: 56px 0 40px; }
@media (min-width: 768px) { footer { padding-bottom: 56px; } }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr; } }
.footer-brand { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: #FFF; }
.footer-info { font-size: 13.5px; color: #B5B5A9; line-height: 1.9; }
.footer-info a { color: #EDEDE7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: #EDEDE7; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid #2A2A22; font-size: 12.5px; color: #8A8A7C; }

/* ---------- page hero (subpages: tint panel, no photo) ---------- */
.page-hero { padding: 56px 20px; }
.page-hero__inner { max-width: 1180px; margin: 0 auto; background: var(--hero-tint); border-radius: 4px; padding: 44px 36px; }
.page-hero .eyebrow { font-size: 13px; font-weight: 700; color: var(--apt-ink); margin-bottom: 10px; display: block; }
.page-hero h1 { font-size: 28px; margin-bottom: 10px; }
@media (min-width: 800px) { .page-hero h1 { font-size: 34px; } }
.page-hero p { max-width: 60ch; margin-bottom: 0; }

/* ---------- case / region detail body (apt-journal: wide photo, generous margin) ---------- */
.detail-body { padding: 72px 0; }
.detail-photo { max-width: 900px; margin: 0 auto 28px; border-radius: 4px; overflow: hidden; background: var(--bg-4); }
.detail-photo img { width: 100%; height: auto; object-fit: cover; max-height: 620px; margin: 0 auto; }
.detail-label { text-align: center; font-size: 13px; color: var(--apt-ink); font-weight: 700; margin-bottom: 10px; }
.detail-h2 { text-align: center; font-size: 26px; font-weight: 700; margin-bottom: 24px; }
.detail-text { max-width: 680px; margin: 0 auto; font-size: 15px; }
.case-detail-text { max-width: 640px; margin: 0 auto; text-align: left; }
.case-detail-text p { font-size: 15px; font-weight: 500; line-height: 1.9; color: #4A4A42; margin: 0 0 18px; }
.case-detail-text p:last-child { margin-bottom: 0; }
.detail-back { text-align: center; margin: 40px 0 0; }

/* ---------- mobile bottom bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; height: 60px; background: var(--apt-ink); }
@media (min-width: 768px) { .mobile-bar { display: none; } }
.mobile-bar a { display: flex; align-items: center; justify-content: center; color: #FFF; font-weight: 600; font-size: 15px; }
.mobile-bar a:first-child { background: rgba(255,255,255,0.10); }

/* prose */
.prose p { font-size: 15.5px; }
