/* 기아 카마스터 연락처 — 공통 스타일 */
:root{
  --charcoal:#202422;
  --silver:#E7E9E8;
  --neutral:#F4F5F4;
  --deepgreen:#30483E;
  --point:#C3D7A4;
  --text:#202422;
  --text-sub:#526057;
  --white:#FFFFFF;
  --radius:4px;
  --maxw:1280px;
  --readw:820px;
  --header-h:64px;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:'Pretendard',-apple-system,BlinkMacSystemFont,'Malgun Gothic',sans-serif;
  color:var(--text);
  background:var(--white);
  line-height:1.6;
  word-break:keep-all;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer}
h1,h2,h3{margin:0;line-height:1.3}
p{margin:0}
.container{max-width:var(--maxw);margin:0 auto;padding:0 24px}
:focus-visible{outline:3px solid var(--point);outline-offset:2px}

/* ---------- 버튼 ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 22px;border-radius:var(--radius);font-weight:700;font-size:1rem;
  border:1.5px solid transparent;min-height:44px;white-space:nowrap;
}
.btn--point{background:var(--point);color:#1b2e22}
.btn--outline-dark{background:transparent;color:var(--white);border-color:rgba(255,255,255,.5)}
.btn--outline-light{background:transparent;color:var(--charcoal);border-color:rgba(32,36,34,.3)}
.btn--block{width:100%}
.btn--sm{padding:10px 16px;font-size:.9rem;min-height:40px}

/* ---------- 헤더 ---------- */
.site-header{
  position:sticky;top:0;z-index:100;background:var(--charcoal);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.site-header__inner{
  max-width:var(--maxw);margin:0 auto;padding:0 24px;height:var(--header-h);
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.site-brand{display:flex;flex-direction:column;line-height:1.2;color:var(--white)}
.site-brand__main{font-weight:800;font-size:1.05rem}
.site-brand__sub{font-size:.72rem;color:var(--point)}
.site-nav{display:flex;gap:24px;flex:1;justify-content:center}
.site-nav a{color:var(--white);font-size:.92rem;font-weight:600;opacity:.88}
.site-nav a:hover{opacity:1}
.site-header__actions{display:flex;align-items:center;gap:14px}
.nav-toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;padding:8px}
.nav-toggle span{width:22px;height:2px;background:var(--white);display:block}

/* ---------- 히어로: 비대칭 3분할 ---------- */
.hero{background:var(--charcoal);color:var(--white)}
.hero__grid{
  max-width:var(--maxw);margin:0 auto;padding:48px 24px;
  display:grid;grid-template-columns:44fr 30fr 26fr;gap:32px;align-items:stretch;
}
.hero__intro{display:flex;flex-direction:column;justify-content:center;gap:18px}
.hero__eyebrow{color:var(--point);font-weight:700;font-size:.95rem}
.hero__h1{font-size:clamp(2rem,4vw,2.8rem);font-weight:800;letter-spacing:-.01em}
.hero__person{font-size:1.05rem;font-weight:600}
.hero__person small{display:block;color:#B9C2BC;font-weight:500;font-size:.88rem;margin-top:4px}
.hero__intro-cta{margin-top:8px}
.hero__photo{display:flex;align-items:flex-end;justify-content:center;overflow:hidden;border-radius:var(--radius);background:#111}
.hero__photo img{width:100%;height:100%;object-fit:cover;object-position:top center}
.hero__panel{
  background:var(--deepgreen);border-radius:var(--radius);padding:28px 24px;
  display:flex;flex-direction:column;gap:16px;justify-content:center;
}
.hero__panel-label{font-size:.85rem;color:var(--point)}
.hero__panel-phone{font-size:1.7rem;font-weight:800;letter-spacing:.01em}
.hero__panel-hours{border-top:1px solid rgba(255,255,255,.18);border-bottom:1px solid rgba(255,255,255,.18);padding:12px 0;font-size:.92rem;display:flex;flex-direction:column;gap:4px}
.hero__panel-btns{display:flex;flex-direction:column;gap:10px}
.hero__panel-note{font-size:.8rem;color:#B9C2BC;text-align:center}

/* ---------- 섹션 공통 ---------- */
.section{padding:64px 0}
.section--charcoal{background:var(--charcoal);color:var(--white)}
.section--silver{background:var(--silver)}
.section--neutral{background:var(--neutral)}
.section--green{background:var(--deepgreen);color:var(--white)}
.section__head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:32px;flex-wrap:wrap}
.section__title{font-size:clamp(1.5rem,2.6vw,2rem);font-weight:800}
.section__lede{font-size:.92rem;color:var(--text-sub);display:flex;align-items:center;gap:10px}
.section--charcoal .section__lede,.section--green .section__lede{color:#C7CFC9}
.section__lede::before{content:"";width:28px;height:1px;background:currentColor;display:inline-block}

/* ---------- 캐러셀 ---------- */
.carousel{position:relative}
.carousel__track{
  display:grid;grid-template-columns:repeat(3,1fr);gap:16px;
}
.carousel__item{
  background:var(--white);border:1px solid #D8DBD9;border-radius:var(--radius);overflow:hidden;
}
.carousel__item img{width:100%;height:150px;object-fit:cover}
.carousel__item-body{padding:14px}
.carousel__num{font-size:.78rem;color:var(--text-sub);font-weight:700}
.carousel__label{font-weight:700;font-size:.95rem;margin-top:4px}
.carousel__arrow{display:none}

/* ---------- 담당자 소개 ---------- */
.profile{display:grid;grid-template-columns:340px 1fr;gap:48px;align-items:start}
.profile__photo{border-radius:var(--radius);overflow:hidden;background:#ddd}
.profile__photo img{width:100%;height:auto;object-fit:cover}
.profile__name{font-size:1.6rem;font-weight:800}
.profile__role{color:var(--point-dark,#3d5c4c);font-weight:700;margin-top:4px}
.profile__desc p{margin-bottom:14px;color:var(--text)}
.profile__meta{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;margin:20px 0;padding:20px 0;border-top:1px solid #D8DBD9;border-bottom:1px solid #D8DBD9}
.profile__meta dt{font-size:.78rem;color:var(--text-sub)}
.profile__meta dd{margin:2px 0 0;font-weight:700}
.profile__cta{display:flex;gap:12px;flex-wrap:wrap}

/* ---------- 차량 갤러리 ---------- */
.gallery-tabs{display:flex;gap:8px;overflow-x:auto;margin-bottom:24px;padding-bottom:4px}
.gallery-tabs button{
  flex:0 0 auto;padding:10px 18px;border-radius:var(--radius);border:1px solid #D8DBD9;
  background:var(--white);font-weight:700;font-size:.92rem;min-height:44px;
}
.gallery-tabs button.active{background:var(--deepgreen);color:var(--white);border-color:var(--deepgreen)}
.gallery-panel{display:none}
.gallery-panel.active{display:grid;grid-template-columns:1.4fr 1fr;gap:16px}
.gallery-panel__main{border-radius:var(--radius);overflow:hidden;background:#ddd;cursor:zoom-in}
.gallery-panel__main img{width:100%;aspect-ratio:4/3;object-fit:cover}
.gallery-panel__thumbs{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.gallery-panel__thumbs img{aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius);cursor:zoom-in;background:#ddd}
.gallery-note{margin-top:20px;font-size:.85rem;color:var(--text-sub)}

/* ---------- 상담 절차 ---------- */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.step{border-top:2px solid var(--point);padding-top:16px}
.step__num{font-size:2.2rem;font-weight:800;color:var(--point)}
.step__title{font-weight:700;margin-top:6px}
.step__desc{font-size:.9rem;color:#C7CFC9;margin-top:8px}

/* ---------- 방문 안내 ---------- */
.visit{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.visit__map{border:1px solid #D8DBD9;border-radius:var(--radius);overflow:hidden;background:#ddd;min-height:280px}
.visit__map iframe{width:100%;height:100%;min-height:280px;border:0;display:block}
.visit__info dt{font-size:.8rem;color:var(--text-sub);margin-top:16px}
.visit__info dd{margin:2px 0 0;font-weight:700;font-size:1.05rem}

/* ---------- 표 ---------- */
.table-wrap{overflow-x:auto;margin:24px 0}
table.info-table{width:100%;border-collapse:collapse;font-size:.95rem;min-width:480px}
table.info-table th,table.info-table td{padding:12px 14px;border-bottom:1px solid #D8DBD9;text-align:left;vertical-align:top}
table.info-table th{background:var(--silver);font-weight:700;white-space:nowrap}

/* ---------- 본문 아티클 ---------- */
.article{max-width:var(--readw);margin:0 auto}
.article h2{font-size:1.4rem;margin:40px 0 16px;font-weight:800}
.article h3{font-size:1.15rem;margin:28px 0 12px;font-weight:700}
.article p{margin-bottom:16px;font-size:1.125rem;line-height:1.8}
.article ul,.article ol{margin:0 0 16px;padding-left:22px;font-size:1.125rem;line-height:1.8}
.article .summary-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 0 32px}
.article .summary-card{background:var(--neutral);border-radius:var(--radius);padding:18px;font-size:.95rem}
.article .summary-card b{display:block;color:var(--deepgreen);margin-bottom:6px}
.wide{max-width:var(--maxw);margin:0 auto;padding:0 24px}

/* ---------- FAQ ---------- */
.faq-item{border-bottom:1px solid #D8DBD9;padding:20px 0}
.faq-item h3{font-size:1.02rem;font-weight:700;display:flex;gap:10px}
.faq-item h3::before{content:"Q";color:var(--point-dark,#3d5c4c);font-weight:800}
.faq-item p{margin-top:10px;color:var(--text-sub);font-size:.98rem;padding-left:24px}
.section--charcoal .faq-item,.section--green .faq-item{border-color:rgba(255,255,255,.18)}
.section--charcoal .faq-item p,.section--green .faq-item p{color:#C7CFC9}

/* ---------- CTA 밴드 ---------- */
.cta-band{background:var(--deepgreen);color:var(--white);text-align:center;padding:56px 24px}
.cta-band h2{font-size:1.6rem;margin-bottom:12px}
.cta-band p{color:#C7CFC9;margin-bottom:24px}
.cta-band__btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* ---------- 관련 사이트 ---------- */
.related-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.related-item{background:var(--white);border:1px solid #D8DBD9;border-radius:var(--radius);padding:16px}
.related-item a{font-weight:700;word-break:break-all}
.related-item p{font-size:.85rem;color:var(--text-sub);margin-top:4px}

/* ---------- 푸터 ---------- */
.site-footer{background:var(--charcoal);color:var(--white);padding:48px 0 0}
.site-footer__inner{max-width:var(--maxw);margin:0 auto;padding:0 24px;display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:32px}
.site-brand--footer{margin-bottom:12px}
.site-footer__notice{font-size:.85rem;color:#B9C2BC;max-width:340px}
.site-footer__biz p{font-size:.88rem;color:#C7CFC9;margin-bottom:6px}
.footer-phone{font-size:1.3rem;font-weight:800;display:block;margin-bottom:14px}
.site-footer__bottom{margin-top:32px;border-top:1px solid rgba(255,255,255,.1);padding:18px 24px;text-align:center;font-size:.78rem;color:#8C978F}

/* ---------- 모바일 하단 고정바 ---------- */
.mobile-contact-bar{
  display:none;position:fixed;left:0;right:0;bottom:0;z-index:200;
  background:var(--white);border-top:1px solid #D8DBD9;
  padding:8px calc(8px + env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-right));
  gap:8px;
}
.mobile-contact-bar__btn{
  flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;
  padding:8px 4px;font-size:.72rem;font-weight:700;color:var(--text);min-height:44px;justify-content:center;
  border-radius:var(--radius);
}
.mobile-contact-bar__btn--point{background:var(--point);color:#1b2e22}

/* ---------- 라이트박스 ---------- */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.9);z-index:300;display:none;align-items:center;justify-content:center;padding:24px}
.lightbox.active{display:flex}
.lightbox img{max-width:100%;max-height:90vh;object-fit:contain;border-radius:var(--radius)}
.lightbox__close{position:absolute;top:16px;right:16px;width:44px;height:44px;background:rgba(255,255,255,.12);border:none;border-radius:50%;color:var(--white);font-size:1.4rem}

/* ---------- 브레드크럼 ---------- */
.breadcrumb{font-size:.82rem;color:var(--text-sub);padding:20px 0;display:flex;gap:8px;flex-wrap:wrap}
.breadcrumb a{color:var(--text-sub)}
.breadcrumb span{color:var(--text)}

/* ---------- 가이드 허브 ---------- */
.hub-hero{background:var(--charcoal);color:var(--white);padding:56px 0}
.hub-hero__grid{display:grid;grid-template-columns:1fr 260px;gap:40px;align-items:center}
.hub-hero h1{font-size:clamp(1.8rem,3.4vw,2.4rem);font-weight:800;margin-bottom:16px}
.hub-hero p{color:#C7CFC9;font-size:1.05rem}
.hub-mini-profile{background:var(--deepgreen);border-radius:var(--radius);padding:20px;display:flex;gap:14px;align-items:center}
.hub-mini-profile img{width:64px;height:64px;border-radius:50%;object-fit:cover;flex:none}
.hub-mini-profile .n{font-weight:800}
.hub-mini-profile .r{font-size:.8rem;color:var(--point)}
.hub-filter{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:28px}
.hub-filter a{padding:8px 16px;border-radius:var(--radius);border:1px solid #D8DBD9;font-size:.88rem;font-weight:700;background:var(--white)}
.hub-filter a.active{background:var(--deepgreen);color:var(--white);border-color:var(--deepgreen)}
.hub-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.hub-card{background:var(--white);border:1px solid #D8DBD9;border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.hub-card img{width:100%;aspect-ratio:16/10;object-fit:cover}
.hub-card__body{padding:18px;display:flex;flex-direction:column;gap:8px;flex:1}
.hub-card__cat{font-size:.75rem;font-weight:700;color:var(--deepgreen)}
.hub-card__title{font-weight:800;font-size:1.05rem}
.hub-card__desc{font-size:.88rem;color:var(--text-sub);flex:1}
.hub-card__date{font-size:.78rem;color:#9AA39D}

/* ---------- 상세페이지 관련 카드 ---------- */
.related-guides{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}

/* =========== 반응형 =========== */
@media(max-width:1024px){
  .hero__grid{grid-template-columns:1fr;gap:20px}
  .hero__photo{order:-1;max-height:340px}
  .profile{grid-template-columns:1fr}
  .profile__photo{max-width:320px}
  .visit{grid-template-columns:1fr}
  .steps{grid-template-columns:repeat(2,1fr)}
  .article .summary-cards{grid-template-columns:1fr}
  .hub-hero__grid{grid-template-columns:1fr}
  .hub-grid{grid-template-columns:repeat(2,1fr)}
  .related-guides{grid-template-columns:repeat(2,1fr)}
  .site-footer__inner{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
  .site-nav,.site-header__actions .btn{display:none}
  .nav-toggle{display:flex}
  .site-nav.open{
    display:flex;position:absolute;top:var(--header-h);left:0;right:0;background:var(--charcoal);
    flex-direction:column;padding:16px 24px;gap:16px;border-bottom:1px solid rgba(255,255,255,.1);
  }
  .hero__grid{padding:32px 20px}
  .hero__photo{order:-2;max-height:280px}
  .hero__intro{order:-1}
  .hero__panel{order:0}
  .section{padding:44px 0}
  .carousel__track{grid-template-columns:1fr}
  .gallery-panel.active{grid-template-columns:1fr}
  .gallery-panel__thumbs{grid-template-columns:repeat(3,1fr)}
  .steps{grid-template-columns:1fr}
  .related-list{grid-template-columns:1fr}
  .table-wrap{overflow-x:visible}
  table.info-table{min-width:0;font-size:.82rem;table-layout:fixed;width:100%}
  table.info-table th,table.info-table td{padding:8px 6px;word-break:keep-all}
  .site-footer{padding:28px 0 0}
  .site-footer__inner{grid-template-columns:1fr;text-align:left;gap:20px}
  .site-footer__bottom{margin-top:20px;padding:14px 20px}
  .mobile-contact-bar{display:flex}
  body{padding-bottom:74px}
  .hub-grid{grid-template-columns:1fr}
  .related-guides{grid-template-columns:1fr}
  .article p,.article ul,.article ol{font-size:1rem}
}
@media(max-width:480px){
  .container,.wide{padding:0 16px}
  .hero__h1{font-size:1.9rem}
  .hero__panel-phone{font-size:1.4rem}
}
