:root {
  --brand: #e9a276;
  --brand-strong: #c55b35;
  --navy: #102c3b;
  --navy-deep: #071a28;
  --teal: #3f6f70;
  --text: #182d39;
  --muted: #5d6b72;
  --line: #ded7cd;
  --surface: #f7f3ed;
  --surface-deep: #eee7dd;
  --white: #ffffff;
  --shadow: 0 24px 64px rgba(17, 39, 52, 0.1);
  --header-height: 86px;
}

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

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

body {
  margin: 0;
  color: var(--text);
  background: #fcfbf8;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 80;
  background: rgba(7, 26, 40, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

body.nav-open::before {
  opacity: 1;
  pointer-events: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--white);
  background: var(--navy-deep);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid rgba(222, 215, 205, 0.82);
  background: rgba(252, 251, 248, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.is-scrolled .site-header {
  border-bottom-color: rgba(205, 195, 182, 0.88);
  background: rgba(252, 251, 248, 0.98);
  box-shadow: 0 12px 34px rgba(16, 44, 59, 0.09);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 42px;
  padding-inline: 2px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 60px;
  line-height: 1;
  transition: opacity 180ms ease;
}

.brand:hover {
  opacity: 0.82;
}

.brand-main {
  color: #1e3c55;
  font-family: Manrope, Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-main em {
  color: #ff922b;
  font-style: normal;
}

.brand-sub {
  display: inline-flex;
  align-items: baseline;
  align-self: center;
  margin-top: 6px;
  color: #1e3c55;
  font-family: Manrope, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-sub em {
  color: var(--brand-strong);
  font-style: normal;
  font-weight: 760;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav a {
  position: relative;
  padding: 15px 12px;
  color: #46575f;
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  transition: color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current] {
  color: var(--navy);
}

.nav a::after {
  content: "";
  position: absolute;
  right: auto;
  bottom: 6px;
  left: 50%;
  width: 20px;
  height: 1.5px;
  background: var(--brand-strong);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a[aria-current]::after {
  transform: translateX(-50%) scaleX(1);
}

.nav .nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  margin-left: 6px;
  padding: 15px 12px;
  border: 0;
  border-radius: 0;
  color: var(--brand-strong);
  background: transparent;
  box-shadow: none;
  font-weight: 700;
  line-height: normal;
  transition: color 180ms ease;
}

.nav a.nav-contact[aria-current] {
  color: var(--brand-strong);
}

.nav .nav-contact:hover,
.nav .nav-contact:focus-visible,
.nav .nav-contact[aria-current] {
  color: #a94729;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid #d8cfc3;
  border-radius: 5px;
  background: #fcfbf8;
  box-shadow: 0 6px 16px rgba(16, 44, 59, 0.05);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav-toggle:hover {
  border-color: #c4b5a3;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 44, 59, 0.09);
}

.nav-toggle:active {
  transform: scale(0.96);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--navy);
  transition: transform 200ms ease, opacity 160ms ease;
}

.mobile-nav {
  display: none;
}

.section {
  padding-block: 112px;
}

.section.alt {
  background: var(--surface);
}

.section-head {
  max-width: 780px;
  margin-bottom: 46px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--brand-strong);
  font-family: Manrope, Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--brand-strong);
}

.section-head h2 {
  margin: 18px 0 16px;
  font-size: clamp(2.05rem, 4.5vw, 3.35rem);
  line-height: 1.16;
  letter-spacing: -0.052em;
  word-break: keep-all;
  text-wrap: balance;
}

.section-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  color: var(--navy-deep);
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: #f0b28d;
  border-color: #f0b28d;
}

.btn-secondary {
  color: var(--white);
  background: rgba(21, 54, 68, 0.56);
  border-color: rgba(191, 211, 215, 0.42);
}

.btn-outline {
  color: var(--navy);
  background: var(--white);
  border-color: #9fb8bd;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.card:hover {
  border-color: #83b7b2;
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding-inline: 8px;
  border-radius: 4px;
  color: #086863;
  background: #e3efec;
  font-size: 0.86rem;
  font-weight: 900;
}

.card h3 {
  margin: 18px 0 10px;
  font-size: 1.12rem;
  line-height: 1.42;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.site-footer {
  padding: 30px 0 26px;
  color: #cbd5d7;
  background: var(--navy-deep);
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px 40px;
  align-items: center;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.footer-brand p {
  margin: 7px 0 0;
  color: #aebdc0;
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer-contact {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-contact a {
  padding: 9px 13px;
  border: 1px solid rgba(199, 216, 220, 0.2);
  border-radius: 3px;
  font-size: 0.82rem;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(199, 216, 220, 0.16);
  color: #849ba1;
  font-size: 0.72rem;
}

:focus-visible {
  outline: 3px solid rgba(197, 91, 53, 0.3);
  outline-offset: 3px;
}

@media (min-width: 861px) and (max-width: 1024px) {
  .nav-wrap {
    gap: 20px;
  }

  .nav {
    gap: 2px;
  }

  .nav a,
  .nav .nav-contact {
    padding-inline: 8px;
    font-size: 0.83rem;
  }

  .nav .nav-contact {
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 74px;
  }

  .container {
    width: min(100% - 30px, 1160px);
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    right: 14px;
    left: auto;
    z-index: 90;
    display: grid;
    gap: 0;
    width: min(420px, calc(100% - 28px));
    max-height: calc(100dvh - var(--header-height) - 24px);
    padding: 22px 24px 24px;
    overflow-y: auto;
    border: 1px solid rgba(210, 200, 187, 0.94);
    border-radius: 7px;
    background: rgba(252, 251, 248, 0.99);
    box-shadow: 0 30px 70px rgba(7, 26, 40, 0.2);
    opacity: 0;
    transform: translateY(-14px) scale(0.985);
    transform-origin: top right;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 200ms ease, transform 220ms ease, visibility 220ms ease;
  }

  .mobile-nav::before {
    content: "NAVIGATION · LIVE IN SEOUL";
    padding: 2px 2px 16px;
    border-bottom: 1px solid #ddd5ca;
    color: #887d74;
    font-family: Manrope, Arial, sans-serif;
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.15em;
  }

  .nav-open .mobile-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  .mobile-nav a {
    position: relative;
    padding: 17px 6px;
    border-bottom: 1px solid #e6dfd5;
    color: #344a55;
    font-size: 0.98rem;
    font-weight: 650;
    letter-spacing: -0.018em;
    transition: color 180ms ease, padding-left 180ms ease, background-color 180ms ease;
  }

  .mobile-nav a:hover,
  .mobile-nav a:focus-visible {
    color: var(--navy);
    padding-left: 12px;
    border-radius: 4px;
    background: #f4ede4;
  }

  .mobile-nav a[aria-current] {
    padding-left: 12px;
    border-radius: 4px;
    color: var(--brand-strong);
    background: #f2e7db;
    font-weight: 760;
  }

  .mobile-nav .mobile-contact {
    color: var(--brand-strong);
  }

  .mobile-nav .mobile-contact:hover,
  .mobile-nav .mobile-contact:focus-visible {
    color: #a94729;
  }

  .section {
    padding-block: 76px;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand-main {
    font-size: 1.12rem;
  }

  .brand-sub {
    margin-top: 5px;
    font-size: 0.63rem;
    letter-spacing: 0.18em;
  }

  .mobile-nav {
    padding: 20px 20px 22px;
  }

  .section {
    padding-block: 64px;
  }

  .section-head {
    margin-bottom: 26px;
  }

  .section-head h2 {
    font-size: 1.9rem;
  }

  .btn {
    width: 100%;
  }

  .footer-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .site-footer {
    padding: 24px 0 22px;
  }

  .footer-wrap {
    gap: 20px;
  }

  .footer-contact a {
    padding: 9px 10px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    padding-top: 18px;
  }
}
