/* ==========================================================================
   VERTICAL RESCUE / 수직구조대 — shared stylesheet
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  --bg: #fdf7ee;
  --bg-alt: #f7ead5;
  --surface: #ffffff;
  --surface-2: #fbf0dd;
  --border: rgba(70, 45, 20, 0.14);
  --text: #2b2016;
  --text-dim: #6e5c48;
  --text-faint: #a4907a;
  --accent: #ff4b23;
  --accent-dim: #b8391c;
  --container: 1240px;
  --gap: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }

section { position: relative; }

/* photo placeholder: real image layer + gradient fallback so empty slots
   still look premium before real photos are uploaded */
.photo {
  position: relative;
  background-repeat: no-repeat;
  background-size: cover, cover;
  background-position: center, center;
  background-image: linear-gradient(160deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%), var(--ph, linear-gradient(145deg,#f3e3ca,#eccfa0));
}
.photo[data-src] { background-image: linear-gradient(160deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%), var(--ph, linear-gradient(145deg,#f3e3ca,#eccfa0)); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dim); }
.btn-outline { border-color: rgba(43,32,22,0.3); color: var(--text); }
.btn-outline:hover { border-color: var(--text); background: rgba(43,32,22,0.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* buttons sitting over a dark photo scrim (hero/banner/cta) stay light */
.hero .btn-outline, .page-banner .btn-outline, .cta-band .btn-outline {
  border-color: rgba(255,255,255,.5); color: #fff;
}
.hero .btn-outline:hover, .page-banner .btn-outline:hover, .cta-band .btn-outline:hover {
  border-color: #fff; background: rgba(255,255,255,.12);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent);
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(253,247,238,.92);
  backdrop-filter: blur(10px);
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
}

.wordmark { font-size: 19px; font-weight: 800; letter-spacing: 0.02em; }
.wordmark small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.22em; color: var(--text-dim); margin-top: 2px; }
.site-header .wordmark { color: #fff; }
.site-header .wordmark small { color: rgba(255,255,255,.75); }
.site-header.is-scrolled .wordmark { color: var(--text); }
.site-header.is-scrolled .wordmark small { color: var(--text-dim); }

.nav-desktop { display: flex; align-items: center; gap: 34px; }
.nav-desktop a {
  font-size: 14px; font-weight: 600; color: #eee;
  position: relative; padding: 4px 0;
}
.site-header.is-scrolled .nav-desktop a { color: var(--text); }
.nav-desktop a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-desktop a:hover::after, .nav-desktop a.active::after { transform: scaleX(1); }
.nav-desktop .btn { margin-left: 6px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none; background: transparent;
  position: relative; z-index: 110;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 22px; height: 2px; background: #fff; margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5px); }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(0) rotate(45deg); background: var(--text); }
.nav-toggle.is-open span::after { transform: translateY(0) rotate(-45deg); background: var(--text); }
.site-header.is-scrolled .nav-toggle:not(.is-open) span,
.site-header.is-scrolled .nav-toggle:not(.is-open) span::before,
.site-header.is-scrolled .nav-toggle:not(.is-open) span::after { background: var(--text); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 105;
  background: rgba(253,248,240,.98);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 26px; padding: 32px;
  transform: translateY(-100%); transition: transform .3s ease;
}
.nav-mobile.is-open { transform: translateY(0); }
.nav-mobile a { font-size: 24px; font-weight: 700; }
.nav-mobile .btn { margin-top: 10px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  height: 100svh; min-height: 560px;
  display: flex; align-items: flex-end;
  --ph: linear-gradient(150deg,#5a3b22,#241207 70%);
  color: #fff;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(35,20,8,.75) 0%, rgba(35,20,8,.15) 55%, rgba(35,20,8,.45) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: 88px; }
.hero h1 { font-size: clamp(46px, 8vw, 96px); line-height: .98; }
.hero .sub { margin-top: 18px; font-size: clamp(15px, 2vw, 19px); color: #e7e7e5; max-width: 520px; font-weight: 500; }
.hero .btn-row { margin-top: 34px; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: 11px; letter-spacing: .18em; color: #cfcfcf; text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* page banner (for sub pages) */
.page-banner {
  height: 46vh; min-height: 340px; display: flex; align-items: flex-end;
  --ph: linear-gradient(150deg,#5a3b22,#241207 70%);
  color: #fff;
}
.page-banner::after { content:''; position:absolute; inset:0; background: linear-gradient(to top, rgba(30,16,6,.8), rgba(30,16,6,.25)); }
.page-banner-inner { position: relative; z-index:2; padding-bottom: 56px; }
.page-banner h1 { font-size: clamp(36px, 6vw, 64px); }
.page-banner .sub { margin-top: 14px; color: #ddd; font-size: 15px; max-width: 560px; }

/* ==========================================================================
   Intro
   ========================================================================== */

.intro { padding: 120px 0 100px; }
.intro-head { max-width: 640px; margin-bottom: 56px; }
.intro-head h2 { font-size: clamp(30px, 4vw, 44px); }
.intro-head p { margin-top: 18px; color: var(--text-dim); font-size: 17px; }
.intro-photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gap); }
.intro-photos .photo { aspect-ratio: 4/3; }
.intro-photos .photo:first-child { aspect-ratio: 16/10; }

/* ==========================================================================
   Capability cards
   ========================================================================== */

.capabilities { padding: 100px 0; background: var(--bg-alt); }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head p { margin-top: 14px; color: var(--text-dim); font-size: 16px; }

.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.cap-card { display: block; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.cap-card .photo { aspect-ratio: 1/1; --ph: linear-gradient(150deg,#f3e3ca,#e8cfa8); }
.cap-card .body { padding: 22px; }
.cap-card .en { font-size: 11px; letter-spacing: .14em; color: var(--accent); font-weight: 700; }
.cap-card h3 { font-size: 18px; margin-top: 8px; }
.cap-card p { margin-top: 8px; font-size: 13.5px; color: var(--text-dim); }

/* ==========================================================================
   Field cards (activity fields, large photo, hover overlay)
   ========================================================================== */

.fields { padding: 100px 0; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.field-card {
  position: relative; aspect-ratio: 5/4; overflow: hidden; display: flex; align-items: flex-end;
  --ph: linear-gradient(150deg,#f3e3ca,#e8cfa8);
}
.field-card .label { position: relative; z-index: 2; padding: 26px; }
.field-card .label .en { font-size: 11px; letter-spacing: .14em; color: var(--accent); font-weight: 700; }
.field-card .label h3 { font-size: 22px; margin-top: 8px; }
.field-card .label p {
  max-height: 0; opacity: 0; overflow: hidden; font-size: 13.5px; color: #ddd; margin-top: 0;
  transition: max-height .3s ease, opacity .3s ease, margin-top .3s ease;
}
.field-card:hover .label p, .field-card:focus-within .label p { max-height: 60px; opacity: 1; margin-top: 8px; }
.field-card:hover, .field-card:focus-within { outline: 1px solid rgba(255,255,255,.25); }

/* ==========================================================================
   Field cases
   ========================================================================== */

.cases { padding: 100px 0; background: var(--bg-alt); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.case-card { display: block; border: 1px solid var(--border); background: var(--surface); }
.case-card .photo { aspect-ratio: 4/3; --ph: linear-gradient(150deg,#f3e3ca,#e8cfa8); }
.case-card .body { padding: 20px; }
.case-card .tag { font-size: 11px; letter-spacing: .12em; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.case-card h3 { font-size: 17px; margin-top: 8px; }
.case-card .meta { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.case-card .meta span { font-size: 11.5px; color: var(--text-dim); border: 1px solid var(--border); padding: 3px 8px; }
.case-card p { margin-top: 12px; font-size: 13.5px; color: var(--text-dim); }
.section-more { margin-top: 40px; text-align: center; }

/* ==========================================================================
   Archive gallery + lightbox
   ========================================================================== */

.archive { padding: 100px 0; }
.archive-grid {
  columns: 4 220px; column-gap: 16px;
}
.archive-grid .photo {
  width: 100%; margin-bottom: 16px; break-inside: avoid; cursor: zoom-in;
  --ph: linear-gradient(150deg,#f3e3ca,#e8cfa8);
}
.archive-grid .photo.h-a { aspect-ratio: 3/4; }
.archive-grid .photo.h-b { aspect-ratio: 4/3; }
.archive-grid .photo.h-c { aspect-ratio: 1/1; }
.archive-grid .photo.h-d { aspect-ratio: 3/5; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(4,4,5,.96);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff;
  width: 44px; height: 44px; font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Structured response (process)
   ========================================================================== */

.process { padding: 110px 0; background: var(--bg-alt); }
.process-list { display: flex; flex-direction: column; }
.process-item { display: grid; grid-template-columns: 100px 1fr 240px; gap: 28px; padding: 34px 0; border-top: 1px solid var(--border); align-items: center; }
.process-item:last-child { border-bottom: 1px solid var(--border); }
.process-num { font-size: 42px; font-weight: 800; color: var(--text-faint); }
.process-text .en { font-size: 12px; letter-spacing: .14em; color: var(--accent); font-weight: 700; }
.process-text h3 { font-size: 20px; margin-top: 6px; }
.process-text p { margin-top: 8px; color: var(--text-dim); font-size: 14px; }
.process-item .photo { aspect-ratio: 4/3; --ph: linear-gradient(150deg,#f3e3ca,#e8cfa8); }

/* ==========================================================================
   Service detail rows (services.html / service-detail.html)
   ========================================================================== */

.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 64px 0; border-top: 1px solid var(--border); }
.service-block:first-child { border-top: none; padding-top: 0; }
.service-block .photo { aspect-ratio: 4/3; --ph: linear-gradient(150deg,#f3e3ca,#e8cfa8); }
.service-block:nth-child(even) .photo { order: 2; }
.service-block .en { font-size: 12px; letter-spacing: .14em; color: var(--accent); font-weight: 700; }
.service-block h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 8px; }
.service-block > div > p { margin-top: 16px; color: var(--text-dim); font-size: 15px; }
.service-block ul { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.service-block li { font-size: 14px; color: var(--text-dim); padding-left: 18px; position: relative; }
.service-block li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }

.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.area-list span { font-size: 13.5px; color: var(--text-dim); border: 1px solid var(--border); padding: 8px 16px; }

@media (max-width: 980px) {
  .service-block { grid-template-columns: 1fr; padding: 44px 0; }
  .service-block:nth-child(even) .photo { order: 0; }
}

/* ==========================================================================
   Why band
   ========================================================================== */

.why { padding: 120px 0; --ph: linear-gradient(150deg,#4a2f18,#20100a); position: relative; color: #fff; }
.why::after { content:''; position:absolute; inset:0; background: rgba(35,18,8,.68); }
.why .container { position: relative; z-index: 2; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: 48px; }
.why-item .en { font-size: 12px; letter-spacing: .14em; color: var(--accent); font-weight: 700; }
.why-item h3 { font-size: 22px; margin-top: 10px; }
.why-item p { margin-top: 10px; color: rgba(255,255,255,.78); font-size: 14px; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band { padding: 150px 0; text-align: center; --ph: linear-gradient(150deg,#4a2f18,#20100a); position: relative; color: #fff; }
.cta-band::after { content:''; position:absolute; inset:0; background: rgba(35,18,8,.64); }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); }
.cta-band .sub { margin: 18px auto 0; color: #ddd; font-size: 16px; max-width: 480px; }
.cta-band .btn-row { justify-content: center; margin-top: 32px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: #f3e4cd; border-top: 1px solid var(--border); padding: 14px 0 10px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.footer-brand .wordmark { font-size: 20px; }
.footer-brand p { margin-top: 8px; color: var(--text-dim); font-size: 14px; max-width: 320px; }
.footer-col h4 { font-size: 12px; letter-spacing: .12em; color: var(--text-faint); text-transform: uppercase; margin-bottom: 8px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-dim); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-biz { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.footer-biz span:not(:last-child)::after { content: '·'; margin: 0 10px; color: var(--text-faint); }
.footer-biz a { color: var(--text-dim); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; font-size: 12.5px; color: var(--text-faint); flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   Mobile fixed call button
   ========================================================================== */

.mobile-call {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--accent); color: #fff;
  padding: 16px 20px; text-align: center; font-weight: 800; font-size: 15px; letter-spacing: .02em;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .field-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-item { grid-template-columns: 60px 1fr; }
  .process-item .photo { grid-column: 1 / -1; aspect-ratio: 16/9; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .intro-photos { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .site-header { padding: 18px 20px; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .archive-grid { columns: 2 160px; }
  .mobile-call { display: block; }
  body { padding-bottom: 52px; }
  .why-grid { grid-template-columns: 1fr; }
}
