:root {
  --bg-0: #f4f6f9;
  --bg-1: #e8ecf2;
  --text: #1a2332;
  --text-muted: #5c6b7d;
  --accent: #2d4a6f;
  --line: rgba(26, 35, 50, 0.08);
  --site-header-h: 4rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: #f7f8fb;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
  padding-top: calc(var(--site-header-h) + env(safe-area-inset-top, 0px));
}

body.page-landing {
  min-height: 100vh;
  min-height: 100dvh;
  background-image: url("landing-bg.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  /* scroll: 모바일 Safari에서 fixed 배경이 본문·푸터와 겹쳐 그려지는 문제 방지 */
  background-attachment: scroll;
}

body.page-landing.page-service {
  background-image: url("service-bg.svg");
}

.site-header.site-header--top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  flex-shrink: 0;
  width: 100%;
  min-height: var(--site-header-h);
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: border-box;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(26, 35, 50, 0.08);
  display: flex;
  align-items: center;
}

body.page-landing .site-header.site-header--top {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

body.page-landing .site-nav .nav-link {
  box-shadow: 0 1px 5px rgba(26, 35, 50, 0.12);
}

.site-header.site-header--top .site-nav {
  max-width: 82rem;
  margin: 0 auto;
  padding: 0.5rem clamp(2rem, 6vw, 4rem);
  width: 100%;
}

.wrap {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 10vw, 6rem);
  max-width: 82rem;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

body.page-landing .wrap {
  padding-bottom: clamp(3.5rem, 12vw, 7rem);
}

.wrap:not(.wrap--page) {
  justify-content: center;
  padding-top: clamp(3rem, 12vh, 8rem);
}

.wrap.wrap--page {
  justify-content: flex-start;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.wrap.about-page {
  align-items: center;
  padding-top: clamp(3rem, 9vw, 5.5rem);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  justify-content: flex-end;
  align-items: center;
}

.site-nav .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 74, 111, 0.45);
  background: #ffffff;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(45, 74, 111, 0.65);
  transform: translateY(-1px);
}

.site-nav .nav-link[aria-current="page"] {
  background: rgba(45, 74, 111, 0.1);
  border-color: var(--accent);
  color: var(--text);
}

.brand {
  font-size: 80px;
  font-weight: 700;
  letter-spacing: 0;
  font-family: "Hagrid Text", "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--accent);
  margin-bottom: 1.6rem;
  text-align: left;
  line-height: 1.04;
}

.hero {
  text-align: left;
}

.hero p {
  color: var(--text);
  font-weight: 400;
}

.hero p:first-child {
  white-space: nowrap;
  font-family: "Hero", "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 24px;
  margin-bottom: 1.5rem;
}

.hero .cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero .cta-btn {
  display: inline-block;
  margin-top: 0;
  padding: 0.64rem 2rem;
  border: 1px solid rgba(45, 74, 111, 0.45);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.02em;
  background: #ffffff;
  backdrop-filter: blur(3px);
  transition: all 0.2s ease;
  line-height: 1.1;
}

.hero .cta-btn:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(45, 74, 111, 0.65);
  transform: translateY(-1px);
}

.hero .subtext {
  margin-top: 0;
  text-align: left;
  color: var(--text);
  font-family: "Hero", "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 19px;
}

.page-main {
  text-align: left;
  max-width: 40rem;
}

.page-main h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-main p {
  color: var(--text);
  margin-bottom: 1rem;
}

.page-main p:last-child {
  margin-bottom: 0;
}

.page-main.contact-main {
  max-width: min(56rem, 100%);
  width: 100%;
}

.contact-main {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.contact-main > h1,
.contact-main > .contact-intro {
  text-align: center;
}

.contact-intro {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  text-align: left;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.contact-layout__info {
  text-align: left;
  padding-top: 0.25rem;
}

.contact-layout__info .contact-email {
  margin-bottom: 1.15rem;
}

.contact-layout__info .contact-social {
  margin-bottom: 0;
}

.contact-layout__info .contact-insta {
  justify-content: flex-start;
}

.contact-layout__form {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-width: 0;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-layout__form {
    justify-content: stretch;
  }

  .contact-layout .contact-form-card {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

.contact-email {
  margin-bottom: 1.35rem;
}

.contact-email a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* Minimal contact form (clean labels, grey border inputs, pill Submit) */
.contact-form-card {
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
  max-width: 28rem;
  margin-left: auto;
  margin-right: 0;
  padding: clamp(1.75rem, 4vw, 2.25rem) clamp(1.5rem, 3.5vw, 2rem);
  text-align: left;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.contact-form--minimal {
  display: block;
}

.contact-form--minimal .contact-form__field {
  margin-bottom: 1.35rem;
}

.contact-form--minimal .contact-form__field:last-of-type {
  margin-bottom: 1.5rem;
}

.contact-form--minimal .contact-form__field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.contact-form--minimal input,
.contact-form--minimal textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #4a4a4a;
  border-radius: 9px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form--minimal textarea {
  resize: vertical;
  min-height: 10rem;
  line-height: 1.5;
}

.contact-form--minimal input::placeholder,
.contact-form--minimal textarea::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.contact-form--minimal input:hover,
.contact-form--minimal textarea:hover {
  border-color: #333;
}

.contact-form--minimal input:focus,
.contact-form--minimal textarea:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 1px #1a1a1a;
}

.contact-form--minimal .contact-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0;
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: #1a1a1a;
  background: #e0e0e0;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, filter 0.15s ease;
}

.contact-form--minimal .contact-form__submit:hover {
  filter: brightness(0.97);
  transform: none;
}

.contact-form--minimal .contact-form__submit:active {
  filter: brightness(0.92);
}

.contact-form--minimal .contact-form__submit:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

.contact-social {
  margin-bottom: 0;
}

.contact-insta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.0625rem;
  transition: color 0.2s ease;
}

.contact-insta:hover {
  color: var(--accent);
}

.contact-insta__icon {
  width: 1.625rem;
  height: 1.625rem;
  flex-shrink: 0;
}

.contact-hours {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid rgba(26, 35, 50, 0.12);
  text-align: left;
}

.contact-layout__info .contact-hours {
  margin-top: clamp(1.35rem, 3vw, 1.85rem);
  padding-top: clamp(1.15rem, 2.5vw, 1.5rem);
}

.contact-hours__title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 0.65rem;
  line-height: 1.3;
}

.contact-hours__line {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.contact-hours__line:last-child {
  margin-bottom: 0;
}

.about-page .about-page-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

.about-hero-title {
  text-align: center;
  width: 100%;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: clamp(2.25rem, 5.5vw, 3.5rem);
  line-height: 1.25;
}

.about-textbox {
  text-align: center;
  max-width: 48rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: clamp(0.75rem, 2.5vw, 1.5rem);
  padding-top: clamp(0.75rem, 2vw, 1.25rem);
  background: transparent;
  border: none;
  box-shadow: none;
}

.about-textbox p {
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.65;
  font-size: 1rem;
}

.about-textbox p:last-child {
  margin-bottom: 0;
}

.about-mission-lead {
  margin-top: 1.25rem;
  margin-bottom: 0.35rem !important;
  font-weight: 600;
}

.about-mission-line {
  margin-top: 0;
  font-weight: 500;
}

.wrap.service-page {
  align-items: center;
  padding-top: clamp(3rem, 9vw, 5.5rem);
}

.service-hero {
  text-align: center;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
}

.service-hero__name {
  font-size: clamp(3.25rem, 14vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  line-height: 1.05;
  margin: 0 0 clamp(0.85rem, 2.5vw, 1.35rem);
  font-family: "Hagrid Text", "DM Sans", system-ui, -apple-system, sans-serif;
}

.service-hero__tagline {
  margin: 0 0 clamp(0.75rem, 2vw, 1.1rem);
  font-size: clamp(1.4625rem, 3.64vw, 1.95rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.03em;
}

.service-hero__desc {
  margin: 0;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(0.9rem, 2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  opacity: 0.92;
}

.service-hero__actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: clamp(1.25rem, 3.5vw, 2rem);
}

.service-hero__btn {
  display: inline-block;
  padding: 0.55rem 1.75rem;
  border: 1px solid rgba(45, 74, 111, 0.45);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(26, 35, 50, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.service-hero__btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(45, 74, 111, 0.65);
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .brand {
    font-size: clamp(2.3rem, 9vw, 4.5rem);
  }

  .hero p:first-child {
    white-space: normal;
    font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  }

  .hero .cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .hero .cta-btn {
    font-size: 1.1rem;
  }

  .site-nav {
    justify-content: flex-start;
  }
}

footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.75rem clamp(1.5rem, 5vw, 3rem) 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-muted);
  background: linear-gradient(to top, var(--bg-1), transparent);
  flex-shrink: 0;
}

footer p + p {
  margin-top: 0.35rem;
}

body.page-landing footer {
  margin-top: auto;
  background: transparent;
  border-top: 1px solid rgba(26, 35, 50, 0.14);
  backdrop-filter: none;
}

body.page-landing footer p {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}
