/* styles.css */
:root {
  --bg1: #f7ecff;
  --bg2: #fef3f8;
  --card: #ffffff;
  --text: #141414;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.08);
  --shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
  --shadow2: 0 10px 30px rgba(17, 24, 39, 0.12);
  --r: 18px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    "Noto Sans KR",
    sans-serif;
  background:
    radial-gradient(1200px 500px at 20% 0%, var(--bg1), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, var(--bg2), transparent 60%), #faf7ff;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 18px 56px;
}

.hero {
  text-align: center;
  padding: 6px 0 26px;
  margin-top: 28px;
}

.hero__badge {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #ff4fd8, #7c3aed);
  box-shadow: 0 10px 18px rgba(124, 58, 237, 0.25);
}

.hero__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  font-weight: 900;
  line-height: 1.05;
}

.grad1 {
  color: #ff3fb8;
}
.grad2 {
  color: #a855f7;
}
.grad3 {
  color: #7c3aed;
}

.hero__desc {
  margin: 12px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 14px;
}

.card__icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, 0.1);
}

.card__title {
  font-weight: 800;
}
.card__sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.form {
  display: grid;
  gap: 16px;
  padding: 6px;
}

.field {
  display: grid;
  gap: 8px;
}
.label {
  font-weight: 700;
  font-size: 14px;
}

.input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  outline: none;
  font-size: 14px;
  background: #f8fafc;
}
.input:focus {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.seg {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.seg__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  background: #fff;
  transition:
    transform 0.06s ease,
    box-shadow 0.12s ease;
}
.seg__item input {
  accent-color: #7c3aed;
}
.seg__item:active {
  transform: scale(0.99);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
}
.tags button.active {
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.hint {
  color: var(--muted);
  font-size: 12.5px;
}

.cta {
  width: 100%;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 14px 14px;
  font-weight: 800;
  color: white;
  background: linear-gradient(90deg, #c084fc, #fb7185);
  box-shadow: 0 14px 24px rgba(251, 113, 133, 0.25);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.cta:active {
  transform: translateY(1px);
}

.result {
  margin-top: 2px;
}
.cardResult {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 10px 0;
  background: #fff;
}
.footnote {
  color: var(--muted);
  font-size: 12px;
  padding-top: 6px;
}

/* modal */
.modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.38);
  z-index: 9998;
}
.modalWrap {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal {
  width: min(820px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal__head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.modal__title {
  font-weight: 900;
}
.modal__close {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}
.modal__body {
  padding: 14px 16px;
  max-height: 70vh;
  overflow: auto;
}

/* accessibility helper */
.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;
}

/* responsive */
@media (min-width: 820px) {
  .card {
    padding: 22px;
  }
  .form {
    gap: 18px;
  }
}
/* other services */

.other-services{
  margin-top:60px;
  text-align:center;
}

.other-title{
  font-size:22px;
  font-weight:700;
  margin-bottom:6px;
}

.other-desc{
  color:#666;
  margin-bottom:24px;
}

.service-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:20px;
}

.service-card{
  display:flex;
  align-items:center;
  gap:14px;
  padding:20px;
  border-radius:16px;
  text-decoration:none;
  color:#111;
  box-shadow:0 6px 16px rgba(0,0,0,0.08);
  transition:0.2s;
}

.service-card:hover{
  transform:translateY(-3px);
}

.service-card.pet{
  background:linear-gradient(135deg,#fff2d9,#ffe8c2);
}

.service-card.korean{
  background:linear-gradient(135deg,#e6f7f0,#d6f0e5);
}

.service-icon{
  font-size:26px;
}

.service-name{
  font-weight:700;
}

.service-text{
  font-size:14px;
  color:#666;
}
/* =========================
   Other services section
   ========================= */

.other-services {
  margin-top: 56px;
  padding: 64px 32px 72px;
  background: linear-gradient(180deg, #f5f1fb 0%, #f3f0f8 100%);
  border-radius: 28px;
}

.other-services__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.other-title {
  margin: 0;
  text-align: center;
  font-size: 44px;
  line-height: 1.2;
  font-weight: 800;
  color: #1f2a44;
  letter-spacing: -0.02em;
}

.other-desc {
  margin: 14px 0 0;
  text-align: center;
  font-size: 24px;
  line-height: 1.5;
  color: #5d6a85;
}

.service-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 150px;
  padding: 34px 34px;
  text-decoration: none;
  color: #182033;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(31, 42, 68, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(31, 42, 68, 0.12);
}

.service-card--pet {
  background: #f5efdf;
}

.service-card--korean {
  background: #e6f5ee;
}

.service-card__icon {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 33px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.service-card__icon--pet {
  background: linear-gradient(135deg, #ff9f0a 0%, #ff8a00 100%);
}

.service-card__icon--korean {
  background: linear-gradient(135deg, #10d07a 0%, #08c46c 100%);
}

.service-card__content {
  min-width: 0;
}

.service-name {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  color: #1c2437;
  letter-spacing: -0.02em;
}

.service-text {
  margin-top: 12px;
  font-size: 24px;
  line-height: 1.5;
  color: #69758f;
  word-break: keep-all;
}

/* tablet */
@media (max-width: 1024px) {
  .other-services {
    padding: 48px 24px 56px;
    border-radius: 24px;
  }

  .other-title {
    font-size: 34px;
  }

  .other-desc {
    font-size: 20px;
  }

  .service-grid {
    gap: 18px;
  }

  .service-card {
    min-height: 128px;
    padding: 26px 24px;
    border-radius: 20px;
  }

  .service-card__icon {
    width: 62px;
    height: 62px;
    font-size: 28px;
    border-radius: 18px;
  }

  .service-name {
    font-size: 28px;
  }

  .service-text {
    font-size: 18px;
  }
}

/* mobile */
@media (max-width: 768px) {
  .other-services {
    margin-top: 40px;
    padding: 36px 18px 40px;
    border-radius: 22px;
  }

  .other-title {
    font-size: 28px;
  }

  .other-desc {
    font-size: 16px;
    margin-top: 10px;
  }

  .service-grid {
    margin-top: 26px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    min-height: auto;
    padding: 20px 18px;
    gap: 14px;
    border-radius: 18px;
  }

  .service-card__icon {
    width: 52px;
    height: 52px;
    font-size: 24px;
    border-radius: 16px;
  }

  .service-name {
    font-size: 22px;
  }

  .service-text {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.45;
  }
}
/* =========================
   Top navigation
   ========================= */

.topnav {
  width: 100%;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(223, 216, 238, 0.9);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topnav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topnav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.topnav__logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #b54cff 0%, #ff4da0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 10px 24px rgba(181, 76, 255, 0.22);
  flex-shrink: 0;
}

.topnav__brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #7f35ff 0%, #ff3fa5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.topnav__menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topnav__link {
  text-decoration: none;
  color: #2c3347;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 14px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.topnav__link:hover {
  background: rgba(177, 86, 255, 0.08);
  color: #7c34ff;
}

.topnav__link--active {
  background: linear-gradient(135deg, #a74cff 0%, #ff4ba0 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(167, 76, 255, 0.22);
}

.topnav__link--active:hover {
  color: #fff;
  transform: translateY(-1px);
}

/* tablet */
@media (max-width: 1024px) {
  .topnav__inner {
    padding: 14px 20px;
  }

  .topnav__brand-text {
    font-size: 20px;
  }

  .topnav__logo {
    width: 46px;
    height: 46px;
    font-size: 20px;
    border-radius: 14px;
  }

  .topnav__link {
    font-size: 14px;
    padding: 10px 14px;
  }
}

/* mobile */
@media (max-width: 768px) {
  .topnav__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 16px;
  }

  .topnav__brand {
    justify-content: center;
  }

  .topnav__menu {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  .topnav__link {
    text-align: center;
    padding: 10px 8px;
    font-size: 13px;
    border-radius: 12px;
  }

  .topnav__brand-text {
    font-size: 19px;
  }
}
/* =========================
   TOP NAV
   ========================= */

.topnav {
  width: 100%;
  margin-top: 20px;
}

.topnav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: white;
  border-radius: 16px;
  border: 1px solid #eee;

  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.topnav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.topnav__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg,#b54cff,#ff4da0);
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-size:18px;
}

.topnav__brand-text {
  font-size:18px;
  font-weight:700;
}

.topnav__menu {
  display:flex;
  gap:8px;
}

.topnav__link {
  text-decoration:none;
  padding:8px 14px;
  border-radius:10px;
  font-weight:600;
  color:#444;
}

.topnav__link:hover{
  background:#f4f4f4;
}

.topnav__link--active{
  background:linear-gradient(135deg,#a74cff,#ff4da0);
  color:white;
}
/* =========================
   FOOTER
========================= */

.site-footer{
  margin-top:60px;
  border-top:1px solid #eae6f2;
  background:#faf8fd;
}

.footer-inner{
  max-width:1100px;
  margin:0 auto;
  padding:40px 20px;
}

.footer-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:40px;
}

.footer-col h4{
  margin-bottom:14px;
  font-size:16px;
  font-weight:700;
  color:#1f2a44;
}

.footer-col a{
  display:block;
  margin-bottom:8px;
  text-decoration:none;
  color:#6b7280;
  font-size:14px;
}

.footer-col a:hover{
  color:#8b5cf6;
}

.footer-col p{
  font-size:14px;
  color:#6b7280;
  line-height:1.6;
}

.footer-bottom{
  margin-top:30px;
  padding-top:20px;
  border-top:1px solid #eae6f2;
  text-align:center;
  font-size:13px;
  color:#8b95a7;
}

/* 모바일 */

@media (max-width:768px){

  .footer-grid{
    grid-template-columns:1fr;
    gap:24px;
  }

}