/* ==========================================================================
   라라시니어 공식 홈페이지 공통 스타일
   브랜드 컬러: 그린(로고 추출) + 옐로우(CTA 전용) / 웜 화이트 배경
   ========================================================================== */

:root {
  --green: #2E7D52;        /* 브랜드 그린 (액센트 텍스트·아이콘) */
  --deep: #2B5D44;         /* 딥 그린 (제목·밴드·푸터) */
  --jade: #56A579;         /* 엠블럼 그린 (보조 장식) */
  --yellow: #F5C400;       /* 브랜드 옐로우 (CTA 버튼 전용) */
  --yellow-soft: #F5C64F;  /* 옐로우 소프트 (배너 배경) */
  --bg: #FAF6F0;           /* 웜 화이트 배경 */
  --panel: #FFFFFF;
  --ink: #2A2724;
  --muted: #6E675C;
  --line: #EAE1D4;
  --line-soft: #EFE7DB;
  --ph-bg: #F3ECE2;        /* 사진 자리 표시 배경 */
  --ph-border: #CDBFAA;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

.disp {
  font-family: "Jua", "Noto Sans KR", sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

a { color: var(--deep); text-decoration: none; }
a:hover { color: var(--green); }

img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- 버튼 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 30px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-cta {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(245, 196, 0, 0.35);
}
.btn-cta:hover { background: #E9BA00; color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--deep);
  border: 1.5px solid #C9BFB2;
}
.btn-ghost:hover { border-color: var(--deep); color: var(--deep); }
.btn-deep {
  background: var(--deep);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(43, 93, 68, 0.25);
}
.btn-deep:hover { background: #234C38; color: #FFFFFF; }

/* ---- 헤더 ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.site-header .logo img { height: 44px; display: block; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  font-size: 15.5px;
  font-weight: 500;
  color: #4A443C;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); font-weight: 700; }
.site-header .btn { font-size: 15px; padding: 11px 20px; }

/* ---- 섹션 공통 ---- */
.section { padding: 96px 0; }
.section.tint { background: var(--panel); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.sec-title {
  font-size: clamp(27px, 4vw, 38px);
  color: var(--deep);
  margin: 0;
  line-height: 1.3;
  text-wrap: balance;
}
.sec-sub { font-size: 17px; color: var(--muted); margin: 12px 0 0; }

/* ---- 사진 자리 표시 (실사진 교체 전) ---- */
.ph {
  background: var(--ph-bg);
  border: 1.5px dashed var(--ph-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
  padding: 16px;
}
.ph .cap { font-size: 13px; line-height: 1.5; max-width: 260px; }
.ph.has-img { border: none; padding: 0; overflow: hidden; background: none; }
.ph.has-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* admin에서 편집한 문구의 *강조* 표기 */
[data-text] em { font-style: normal; color: var(--green); }
.band [data-text] em, .cta-banner [data-text] em { color: var(--yellow-soft); }

/* admin에서 편집한 문구의 {색|텍스트} 표기 */
.c-green { color: #2E7D52; }
.c-yellow { color: #E0A800; }
.c-red { color: #C0392B; }
.c-blue { color: #2E5395; }
.c-white { color: #FFFFFF; }
.c-gray { color: #6E675C; }

/* ---- 카드 그리드 ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 28px;
}
.card.soft { background: var(--bg); border: 0; }
.card h3 { font-size: 18px; color: var(--deep); margin: 0 0 8px; }
.card p { font-size: 15px; color: var(--muted); margin: 0; }
.card .icon { color: var(--green); margin-bottom: 12px; }

/* ---- 통계 ---- */
.stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat .num {
  font-size: 30px;
  font-weight: 900;
  color: var(--deep);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.stat .num em { font-style: normal; color: var(--green); }
.stat .label { font-size: 13.5px; color: var(--muted); }

/* ---- 표 (커리큘럼) ---- */
.table-scroll { overflow-x: auto; }
table.curriculum {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
table.curriculum th {
  background: #E7F2EA;
  color: var(--deep);
  font-size: 14px;
  text-align: left;
  padding: 12px 16px;
}
table.curriculum td {
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
  vertical-align: top;
}
table.curriculum td.time {
  font-variant-numeric: tabular-nums;
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}
table.curriculum td.what { font-weight: 700; color: var(--deep); white-space: nowrap; }
table.curriculum td.desc { color: var(--muted); font-size: 14.5px; }

/* ---- FAQ ---- */
.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  margin-bottom: 12px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .15s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer {
  padding: 0 26px 22px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

/* ---- 폼 ---- */
.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 28px rgba(43, 93, 68, 0.08);
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #4A443C;
  margin-bottom: 8px;
}
.field label .req { color: #B3261E; }
.field input[type="text"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  background: var(--panel);
  border: 1.5px solid #DCD2C2;
  border-radius: 11px;
  padding: 14px 16px;
  font-size: 15.5px;
  font-family: inherit;
  color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder { color: #9A907F; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 0;
  border-color: var(--green);
}
.pill-group { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-group input[type="radio"] { position: absolute; opacity: 0; }
.pill-group label {
  display: inline-block;
  border: 1.5px solid #DCD2C2;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--panel);
  cursor: pointer;
  margin: 0;
}
.pill-group input[type="radio"]:checked + label {
  border-color: var(--green);
  color: var(--green);
  background: #E7F2EA;
  font-weight: 700;
}
.pill-group input[type="radio"]:focus-visible + label { outline: 2px solid var(--green); }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 22px;
}
.consent input { margin-top: 4px; accent-color: var(--green); }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }
.form-msg { display: none; border-radius: 12px; padding: 16px 20px; font-size: 15px; margin-top: 16px; }
.form-msg.ok { display: block; background: #E7F2EA; color: var(--deep); }
.form-msg.err { display: block; background: #FBECEB; color: #B3261E; }

/* ---- 딥 그린 밴드 ---- */
.band {
  background: var(--deep);
  color: #FFFFFF;
  padding: 96px 0;
}
.band .eyebrow { color: var(--yellow-soft); }
.band h2 { color: #FFFFFF; }
.band .sub-light { color: #D7E8DC; font-size: 17px; line-height: 1.75; }
.band-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.band-item svg { color: var(--yellow-soft); flex-shrink: 0; }
.band-item b { font-size: 16px; display: block; }
.band-item span { font-size: 13.5px; color: #A8C9B3; }
.band a.more { color: var(--yellow-soft); font-weight: 700; font-size: 15.5px; }

/* ---- 옐로우 CTA 배너 ---- */
.cta-banner {
  background: var(--yellow-soft);
  border-radius: 24px;
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-banner h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--deep);
  line-height: 1.35;
  margin: 0 0 10px;
}
.cta-banner p { font-size: 16px; color: #6B571C; margin: 0; }
.cta-banner .actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.cta-banner .phone { font-size: 14.5px; color: #6B571C; }

/* ---- 강사 카드 ---- */
.teachers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.teacher { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.teacher .avatar { width: 120px; height: 120px; border-radius: 999px; }
.teacher .nick {
  background: var(--green);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
}
.teacher .name { font-size: 14px; color: #4A443C; line-height: 1.5; }
.teacher .name small { font-size: 12.5px; color: var(--muted); display: block; }

/* ---- 타임라인 (연혁) ---- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 20px; }
.timeline .dot-col { display: flex; flex-direction: column; align-items: center; }
.timeline .dot {
  width: 14px; height: 14px; border-radius: 999px;
  background: var(--green); flex-shrink: 0; margin-top: 7px;
}
.timeline .rail { width: 2px; flex: 1; background: #D9E7DD; }
.timeline .body { padding-bottom: 28px; }
.timeline .date { font-weight: 900; color: var(--deep); font-variant-numeric: tabular-nums; }
.timeline .desc { font-size: 15px; color: var(--muted); }

/* ---- 푸터 ---- */
.site-footer { background: var(--deep); color: #A8C9B3; padding: 48px 0 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer .brand { font-size: 22px; color: #FFFFFF; }
.site-footer .brand em { font-style: normal; color: var(--yellow-soft); }
.site-footer .info { font-size: 13px; line-height: 1.9; margin-top: 10px; }
.site-footer .cols { display: flex; gap: 48px; font-size: 14px; }
.site-footer .cols b { color: #FFFFFF; display: block; margin-bottom: 8px; }
.site-footer .cols a { display: block; color: #D7E8DC; margin-bottom: 6px; }
.site-footer .cols a:hover { color: var(--yellow-soft); }

/* ---- 모바일 하단 고정 바 ---- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  gap: 10px;
  padding: 10px 20px calc(12px + env(safe-area-inset-bottom));
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 10px rgba(43, 93, 68, 0.06);
}
.mobile-bar .btn { flex: 1; padding: 13px; font-size: 15px; }
.mobile-bar .btn-call { flex: 0.8; background: transparent; border: 1.5px solid var(--deep); color: var(--deep); }

/* ---- 반응형 ---- */
@media (max-width: 960px) {
  .teachers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 30px; }
  .section, .band { padding: 56px 0; }
  .site-nav { display: none; }
  /* 인앱 브라우저(카카오톡 등) 스크롤 버벅임 방지: 모바일은 블러 대신 불투명 배경 */
  .site-header { background: var(--bg); backdrop-filter: none; }
  .site-header .wrap { height: 58px; gap: 10px; }
  .site-header .logo img { height: 32px; }
  .site-header .btn { font-size: 13px; padding: 9px 14px; white-space: nowrap; }
  .teachers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { gap: 0; justify-content: space-between; }
  .cta-banner { padding: 36px 28px; }
  .cta-banner .actions { align-items: stretch; width: 100%; }
  .mobile-bar { display: flex; }
  body.has-mobile-bar { padding-bottom: 76px; }
  .form-card { padding: 28px 22px; }
}
