:root {
  --ink: #062a32;
  --teal: #0a5c6b;
  --teal-deep: #083f4a;
  --foam: #e8f4f6;
  --mist: #f3f8f9;
  --accent: #1aa6a0;
  --accent-hot: #e85d4c;
  --line: rgba(6, 42, 50, 0.12);
  --text: #1a3339;
  --muted: #5a7a82;
  --ok: #1a7f5a;
  --warn: #b86b1a;
  --fail: #b33a2e;
  --radius: 14px;
  --font-display: "Fraunces", "Noto Sans KR", serif;
  --font-body: "Manrope", "Noto Sans KR", sans-serif;
  --shadow: 0 18px 50px rgba(6, 42, 50, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(26, 166, 160, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(8, 63, 74, 0.12), transparent 50%),
    linear-gradient(180deg, #f7fbfc 0%, #eef5f6 40%, #f8fafb 100%);
  min-height: 100vh;
  line-height: 1.55;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* —— Layout —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 251, 252, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand__sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0.55rem;
}

.nav-links a:hover {
  color: var(--teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--teal-deep);
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 63, 74, 0.22);
}

.btn--primary:hover {
  background: var(--teal);
}

.btn--accent {
  background: var(--accent);
  color: #062a32;
}

.btn--ghost {
  background: transparent;
  color: var(--teal-deep);
  border: 1px solid var(--line);
}

.btn--danger {
  background: var(--fail);
  color: #fff;
}

.btn--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  padding: 4.5rem 0 3.5rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(6, 42, 50, 0.88) 0%, rgba(10, 92, 107, 0.72) 48%, rgba(26, 166, 160, 0.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='1'%3E%3Cpath d='M0 80h160M80 0v160'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 70% 30%, #1aa6a0, #083f4a 55%, #041e24 100%);
  animation: heroPulse 12s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  from { filter: saturate(1); }
  to { filter: saturate(1.15) brightness(1.05); }
}

.hero__content {
  position: relative;
  z-index: 1;
  color: #f5fbfc;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  animation: riseIn 0.9s ease both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
}

.hero__title {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  margin: 0 0 0.85rem;
  max-width: 28ch;
  opacity: 0.95;
}

.hero__lead {
  margin: 0 0 1.6rem;
  max-width: 42ch;
  color: rgba(245, 251, 252, 0.86);
  font-size: 1.02rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn--primary {
  background: #fff;
  color: var(--teal-deep);
  box-shadow: none;
}

.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero__contact {
  margin: 1.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(245, 251, 252, 0.95);
}

.hero__contact a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__contact a:hover {
  color: #d7f5f3;
}

.trust__contact {
  margin-top: 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.trust__contact a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__contact {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.footer__contact a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Sections —— */
.section {
  padding: 4rem 0;
}

.section--tight {
  padding: 2.5rem 0;
}

.section__head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
  animation: riseIn 0.7s ease both;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  color: var(--ink);
}

.section__desc {
  margin: 0;
  color: var(--muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 860px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: 1.35rem 1.25rem;
  border-top: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.55);
  animation: riseIn 0.8s ease both;
}

.feature:nth-child(2) { animation-delay: 0.08s; }
.feature:nth-child(3) { animation-delay: 0.16s; }

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Schedule —— */
.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid rgba(26, 166, 160, 0.35);
  padding-left: 1.25rem;
}

.timeline__item {
  position: relative;
  padding: 0.85rem 0 1.1rem;
  animation: riseIn 0.6s ease both;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 1.15rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(26, 166, 160, 0.18);
}

.timeline__date {
  font-weight: 700;
  color: var(--teal-deep);
  font-size: 0.92rem;
}

.timeline__body {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.15rem;
}

.highlight-band {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(90deg, rgba(10, 92, 107, 0.1), rgba(26, 166, 160, 0.12));
  border-left: 3px solid var(--teal);
}

.highlight-band strong {
  color: var(--ink);
}

/* —— Form —— */
.form-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.field .req {
  color: var(--accent-hot);
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 166, 160, 0.15);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.file-input {
  border: 1px dashed rgba(10, 92, 107, 0.35);
  border-radius: 10px;
  padding: 1rem;
  background: var(--mist);
  cursor: pointer;
}

.file-input input {
  width: 100%;
}

.form-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.form-msg {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
}

.form-msg--ok {
  background: rgba(26, 127, 90, 0.1);
  color: var(--ok);
}

.form-msg--err {
  background: rgba(179, 58, 46, 0.1);
  color: var(--fail);
}

/* —— Trust / KIT —— */
.trust {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 800px) {
  .trust {
    grid-template-columns: 1fr;
  }
}

.trust__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.stat {
  padding: 1rem;
  background: var(--teal-deep);
  color: #eaf7f8;
  border-radius: 12px;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.1;
}

.stat span {
  font-size: 0.85rem;
  opacity: 0.8;
}

.trust__copy p {
  color: var(--muted);
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer strong {
  color: var(--ink);
}

/* —— Admin —— */
.admin-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-top {
  background: var(--ink);
  color: #eaf7f8;
  padding: 0.9rem 0;
}

.admin-top__inner {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-top a {
  color: #a8dce0;
}

.admin-main {
  width: min(1200px, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
  flex: 1;
}

.login-box {
  max-width: 420px;
  margin: 4rem auto;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-box h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 0.35rem;
}

.login-box p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1rem;
}

.toolbar input,
.toolbar select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: #fff;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 800px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.stat-chip strong {
  display: block;
  font-size: 1.35rem;
  color: var(--ink);
}

.stat-chip span {
  font-size: 0.8rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.data th,
table.data td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.data th {
  background: var(--mist);
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}

table.data tr.is-selected {
  background: rgba(26, 166, 160, 0.08);
}

table.data tr {
  cursor: pointer;
}

.badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge--pending {
  background: rgba(184, 107, 26, 0.12);
  color: var(--warn);
}

.badge--approved {
  background: rgba(26, 127, 90, 0.12);
  color: var(--ok);
}

.badge--rejected {
  background: rgba(179, 58, 46, 0.12);
  color: var(--fail);
}

/* Inline panels (no layer popup) */
.inline-panel {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: riseIn 0.35s ease both;
}

.inline-panel h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1rem;
}

@media (max-width: 700px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.detail-item dt {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.detail-item dd {
  margin: 0.15rem 0 0;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sms-compose textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
  resize: vertical;
}

.empty {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.toast-area {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(360px, calc(100% - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: riseIn 0.25s ease both;
}

.toast--err {
  background: var(--fail);
}

.toast--ok {
  background: var(--ok);
}
