/* CHURCHILL STYLE - CLEAN FINAL (footer #bcc2ca) */

/* =========================
   0) Design tokens
   ========================= */
:root {
  --navy: #2c3e50;
  --navy-dark: #1a252f;
  --gold: #c59d5f;
  --gold-hover: #b08d55;
  --white: #ffffff;
  --off-white: #f9f9f9;
  --line: #e0e0e0;

  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Lato', 'Pretendard', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1200px;
}

/* =========================
   1) Base / Reset
   ========================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-sans);
  color: #333;
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

a{
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

ul, li { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; }

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

/* 공통: breadcrumb 제거 */
.breadcrumb{ display:none; }

/* =========================
   2) Header
   ========================= */
.header{
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 90px;
  display: flex;
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-inner{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Brand / Logo */
.brand{
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo{
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 2px;
}

/* 이미지 로고 쓰는 경우 */
.brand-logo{
  height: 48px;
  width: auto;
  display: block;
}

.brand .name{
  display: flex;
  flex-direction: column;
}

.brand .name b{
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand .name span{
  margin-top: 2px;
  font-size: 13px;
  color: #666;
  letter-spacing: 0.5px;
}

/* Desktop nav */
.nav{
  height: 100%;
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-link,
.dropbtn{
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover,
.dropbtn:hover{
  color: var(--gold);
}

/* Dropdown (desktop) */
.drop{
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown{
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--white);
  border-top: 3px solid var(--gold);
  padding: 10px 0;
  z-index: 1001;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.drop:hover .dropdown{
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.dropdown a{
  display: block;
  padding: 12px 25px;
  font-size: 15px;
  color: #555;
  border-bottom: 1px solid #f5f5f5;
}

.dropdown a:hover{
  background: var(--off-white);
  color: var(--navy);
  padding-left: 30px;
}

.chev{
  display: inline-block;
  width: .45em;
  height: .45em;
  border-style: solid;
  border-width: 0.15em 0.15em 0 0;
  transform: rotate(135deg);
  margin-top: 4px;
}

/* CTA button */
.header-cta{
  display: flex;
  align-items: center;
}

.btn{
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.btn-primary{
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--white);
}

.btn-primary:hover{
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-1px);
}

/* 서비스 상세 페이지에서 연락처 버튼 숨김 */
.service-detail .page-hero .row .btn-outline{ display:none; }

/* =========================
   3) Hero
   ========================= */
.hero{
  position: relative;
  width: 100%;
  height: 700px;
  background: url('/assets/img/hero.svg') center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero::before{
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
}

.hero-inner{
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-left: 5%;
}

.hero-inner > div{
  max-width: 600px;
  padding: 50px;
  background: rgba(255, 255, 255, 0.95);
  border-left: 6px solid var(--gold);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.kicker{
  display: block;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h1{
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.5vw, 42px);
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 20px;
  word-break: keep-all;
}

.hero p{
  margin: 0;
  font-size: 17px;
  color: #555;
  line-height: 1.7;
}

/* =========================
   4) Figures / Images helpers
   ========================= */
.doc-figure--banner img{
  width: 100%;
  aspect-ratio: 16 / 4;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
}

.profile-photo{
  width: 160px;
  height: 160px;
  flex: 0 0 160px;
  border-radius: 14px;
  background: #f4f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* =========================
   5) Footer (FINAL)
   ========================= */
.footer{
  background: #bcc2ca;               /* ✅ 확정 */
  border-top: 1px solid #b4bac3;
  padding: 30px 0;
  margin-top: 0;
  box-shadow: none;
}

.footer p,
.footer .small,
.footer-meta span{
  color: #475569;
}

.footer-compact{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand .footer-name{
  margin: 0;
  font-weight: 900;
  font-size: 15px;
  color: var(--navy);
}

.footer-brand .footer-desc{
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.footer-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
}

.footer-meta span{
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.footer-meta b{
  color: var(--navy);
  font-weight: 900;
}

.footer-bottom{
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;

  border-top: none;
  padding-top: 0;
}

.footer-bottom .small{
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
}

@media (max-width: 720px){
  .footer-meta{ justify-content: flex-start; }
  .footer-bottom{ flex-direction: column; }
}

/* footer 직전 여백 제거(빈공간 방지) */
main > :last-child{
  margin-bottom: 0;
  padding-bottom: 0;
}

/* =========================
   6) Mobile nav (only <=991px)
   ========================= */
.mobile-toggle{ display:none; }
.mobile-panel{ display:none; }

@media (max-width: 991px){
  .header{ height: 70px; }

  .nav{ display:none; }
  .header-cta .btn{ display:none; }

  .mobile-toggle{
    display: block;
    background: transparent;
    border: none;
    padding: 10px;
  }

  .bars{
    width: 24px;
    height: 2px;
    background: var(--navy);
    position: relative;
  }
  .bars::before,
  .bars::after{
    content: '';
    width: 24px;
    height: 2px;
    background: var(--navy);
    position: absolute;
    left: 0;
  }
  .bars::before{ top: -8px; }
  .bars::after{ top: 8px; }

  /* JS가 열 때 display:block 주면 열리게 (important 남발 X) */
  .mobile-panel{
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid #eee;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    z-index: 1100;
  }

  .mbtn{
    display: block;
    width: 100%;
    text-align: left;
    padding: 15px;
    border: none;
    background: #f9f9f9;
    font-weight: 700;
    margin-bottom: 10px;
    border-radius: 4px;
    color: var(--navy);
  }

  .msub{ display:none; padding-left:20px; margin-bottom:15px; }
  .msub a{ display:block; padding:10px; font-size:14px; color:#666; }

  .hero-inner > div{
    margin: 0 20px;
    padding: 30px;
    width: 100%;
  }
}

/* PC에서 모바일 요소 완전 숨김(안전장치) */
@media (min-width: 992px){
  .mobile-toggle,
  .mobile-panel{
    display: none !important;
  }
}

/* =========================
   7) Animations
   ========================= */
@keyframes fadeIn{
  from { opacity: 0; transform: translateY(10px) translateX(-50%); }
  to   { opacity: 1; transform: translateY(0) translateX(-50%); }
}

/* --- 카테고리 상세 페이지를 위한 추가 스타일 --- */

/* 본문 텍스트 간격 및 가독성 조정 */
.prose {
    font-size: 16px;
    line-height: 1.8;
}

/* 질문(Q)과 답변(A) 부분에 대한 포인트 스타일 */
.prose b, .prose strong {
    color: #1a252f; /* var(--navy-dark) */
    font-weight: 700;
}

/* 이미지 카드 효과 */
.doc-figure img {
    transition: transform 0.3s ease;
}

.doc-figure img:hover {
    transform: scale(1.02);
}

/* 카드 박스의 그림자를 더 부드럽고 깊게 */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}
