/* =========================================================
   (주)카엔퍼블릭 - 정적 사이트 스타일
   Brand: #009D7C
   ========================================================= */

:root {
  --brand: #009d7c;
  --brand-dark: #007e63;
  --brand-darker: #00604b;
  --brand-soft: #e6f5f1;
  --ink: #18211f;
  --body: #3a4744;
  --muted: #7a8783;
  --line: #e7ecea;
  --bg: #ffffff;
  --bg-soft: #f5f8f7;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(0, 60, 47, 0.08);
  --shadow-lg: 0 14px 40px rgba(0, 60, 47, 0.12);
  --max: 1140px;
  --header-h: 68px;
  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- 헤더 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand__logo { height: 40px; width: auto; border-radius: 8px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a {
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav > a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav__cta {
  margin-left: 8px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 700 !important;
}
.nav__cta:hover { background: var(--brand-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 스크린리더 전용 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- 히어로: 메인 비주얼 슬라이더 ---------- */
.hero { position: relative; background: #0d1513; }
.hero-slider {
  position: relative;
  width: 100%;
  /* 높이를 배너 비율(1920×500)에 고정 → 어떤 폭에서도 배너 전체가 잘림 없이 표시 */
  aspect-ratio: 1920 / 500;
  max-height: 520px;
  overflow: hidden;
  background: #0d1513;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .7s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slider::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(to top, rgba(0,0,0,.32), transparent);
  pointer-events: none;
}

/* 화살표 */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(0,0,0,.30); color: #fff;
  font-size: 26px; line-height: 1; font-weight: 400;
  display: grid; place-items: center;
  transition: background .15s;
}
.hero-arrow:hover { background: rgba(0,0,0,.55); }
.hero-arrow--prev { left: 18px; }
.hero-arrow--next { right: 18px; }

/* 인디케이터 점 */
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3;
  display: flex; justify-content: center; gap: 9px;
}
.hero-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.55); cursor: pointer; transition: all .2s;
}
.hero-dots button.is-active { background: #fff; width: 26px; border-radius: 999px; }

/* ---------- 브랜드 인트로 바 ---------- */
.intro {
  background:
    radial-gradient(120% 160% at 92% 0%, rgba(255,255,255,.14), transparent 55%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 70%, var(--brand-darker) 100%);
  color: #fff;
}
.intro__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px 36px;
  padding: 26px 20px;
}
.intro__eyebrow {
  font-size: 13.5px; font-weight: 600; color: #d2f0e8; margin-bottom: 8px;
}
.intro__title {
  color: #fff; font-size: clamp(21px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em;
}
.intro__title strong { color: #fff; }
.intro__desc { margin-top: 8px; color: #e3f4ef; font-size: 15px; max-width: 620px; }
.intro__aside { display: grid; gap: 8px; justify-items: flex-start; }
.intro__hours { font-size: 14px; color: #eaf7f3; }
.intro__hours .muted { color: #bfe4da; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 16px; font-weight: 700;
  border-radius: 999px;
  transition: transform .12s, box-shadow .15s, background .15s, color .15s;
  cursor: pointer;
}
.btn--primary { background: #fff; color: var(--brand-dark); box-shadow: var(--shadow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- 섹션 공통 ---------- */
.section { padding: 78px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section__eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  color: var(--brand); margin-bottom: 10px;
}
.section__eyebrow--on { color: #bdeee2; }
.section__title { font-size: clamp(25px, 3.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.section__title--on { color: #fff; }
.section__sub { color: var(--muted); margin-top: 12px; font-size: 16px; }

/* ---------- 카드 ---------- */
.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-soft); font-size: 28px;
  margin-bottom: 18px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--body); font-size: 15.5px; }
.card__link {
  display: inline-block; margin-top: 16px;
  color: var(--brand-dark); font-weight: 700; font-size: 15px;
}
.card__link:hover { color: var(--brand); }

/* ---------- 보유 차량 ---------- */
.fleet-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.fleet-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fleet-card__img { background: #fff; aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 10px; }
.fleet-card__img img { width: 100%; height: 100%; object-fit: contain; }
.fleet-card__body { padding: 24px 26px 28px; }
.fleet-card__body h3 { font-size: 21px; margin: 10px 0 8px; }
.fleet-card__body p { font-size: 15px; color: var(--body); }
.tag {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  color: var(--brand-dark); background: var(--brand-soft);
  padding: 4px 12px; border-radius: 999px;
}
.tag--alt { color: #6b5800; background: #fff3cd; }
.fleet-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

/* ---------- 예약 안내 ---------- */
.section--brand {
  background:
    radial-gradient(120% 140% at 90% 10%, rgba(255,255,255,.12), transparent 50%),
    linear-gradient(135deg, var(--brand-dark), var(--brand-darker));
  color: #fff;
}
.reserve { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.reserve__desc { color: #e3f4ef; margin: 16px 0 22px; font-size: 16px; }
.reserve__hours { display: grid; gap: 8px; font-size: 15px; color: #eaf7f3; }
.reserve__hours strong { display: inline-block; min-width: 64px; color: #fff; }
.reserve__actions { display: grid; gap: 14px; }
.contact-btn {
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  transition: background .15s, transform .12s;
}
.contact-btn:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.contact-btn__label { font-size: 13px; color: #c9ebe2; }
.contact-btn__value { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }

/* ---------- 아코디언 ---------- */
.accordion { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.acc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); overflow: hidden; }
.acc__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font-size: 16.5px; font-weight: 700; color: var(--ink);
  background: transparent; border: 0; cursor: pointer; text-align: left;
}
.acc__head:hover { color: var(--brand-dark); }
.acc__icon { position: relative; width: 16px; height: 16px; flex: none; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; background: var(--brand); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.acc__icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.acc__icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.acc__head[aria-expanded="true"] .acc__icon::after { transform: rotate(90deg); opacity: 0; }
.acc__body {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.acc__body > ul, .acc__body > p { padding: 0 22px 20px; }
.acc__body ul { display: grid; gap: 8px; }
.acc__body li { position: relative; padding-left: 16px; color: var(--body); font-size: 15px; }
.acc__body li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.acc__body p { color: var(--body); font-size: 15px; }
.acc__body a { color: var(--brand-dark); text-decoration: underline; }

/* ---------- 고객지원 ---------- */
.support { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.support h3 { font-size: 19px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--brand-soft); }
.notice-list { display: grid; gap: 14px; }
.notice-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px;
}
.notice-list__badge {
  flex: none; font-size: 12px; font-weight: 700; color: #fff;
  background: var(--brand); padding: 3px 10px; border-radius: 999px; margin-top: 2px;
}
.notice-list__title { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.notice-list__desc { font-size: 14.5px; color: var(--muted); }
.support__faq .accordion { margin: 0; }

/* ---------- 오시는 길 ---------- */
.location { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: stretch; }
.map {
  position: relative; min-height: 380px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.map__fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(45deg, #eef4f2 0 14px, #f5f8f7 14px 28px);
}
.map__fallback-title { font-size: 18px; font-weight: 800; color: var(--ink); }
.map__fallback-addr { color: var(--body); font-size: 15px; }
.map__fallback-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 4px; }
.map__fallback-links a {
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: var(--brand); color: #fff;
}
.map__fallback-links a:hover { background: var(--brand-dark); }
.map__fallback-links a + a { background: var(--ink); }

.location__info {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; background: var(--bg);
}
.location__info dl { display: grid; grid-template-columns: 78px 1fr; gap: 14px 16px; margin: 0; }
.location__info dt { color: var(--muted); font-weight: 700; font-size: 14px; }
.location__info dd { margin: 0; color: var(--ink); font-size: 15px; }
.location__info dd a { color: var(--brand-dark); font-weight: 600; }

/* ---------- 푸터 ---------- */
.footer { background: #0f1816; color: #aeb9b6; padding: 56px 0 40px; font-size: 14px; }
.footer__inner { display: grid; gap: 28px; }
.footer__logo { height: 42px; width: auto; border-radius: 8px; }
.footer__tagline { margin-top: 12px; color: #8b9794; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 40px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer__col p { margin: 3px 0; }
.footer__tel { color: #fff !important; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.footer__company { color: #828e8b; line-height: 1.9; font-size: 13px; }
.footer__copy { margin-top: 14px; color: #5f6b68; }

/* ---------- 플로팅 전화 버튼 ---------- */
.float-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-size: 24px;
  box-shadow: var(--shadow-lg);
}
.float-call:active { transform: scale(.94); }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 900px) {
  .intro__inner { flex-direction: column; align-items: flex-start; }
  .intro__aside { width: 100%; }
  .cards--3 { grid-template-columns: 1fr; }
  .reserve { grid-template-columns: 1fr; gap: 32px; }
  .support { grid-template-columns: 1fr; gap: 36px; }
  .location { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: calc(var(--header-h) + 0px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 16px 16px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s, opacity .22s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav > a { padding: 14px 12px; border-radius: 10px; font-size: 16px; }
  .nav__cta { margin: 10px 0 0; text-align: center; }

  .hero-arrow { width: 34px; height: 34px; font-size: 20px; }
  .hero-arrow--prev { left: 10px; }
  .hero-arrow--next { right: 10px; }
  .section { padding: 56px 0; }
  .cards--2 { grid-template-columns: 1fr; }
  .intro__aside .btn { width: 100%; }
  .float-call { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
