/* ===========================
   Variables
   =========================== */
:root {
  --color-bg: #fafaf7;
  --color-bg-section: #f4f1ec;
  --color-bg-card: #ffffff;
  --color-bg-soft: #f7f3ec;
  --color-text: #2a2522;
  --color-text-light: #6b6259;
  --color-text-muted: #9b9089;
  --color-brand: #a18567;
  --color-brand-dark: #8a6f52;
  --color-brand-light: #c4ad91;
  --color-brand-soft: #ede4d6;
  --color-border: #e8e0d4;
  --color-border-light: #f0ebe2;

  --shadow-sm: 0 1px 3px rgba(138, 111, 82, 0.06);
  --shadow-md: 0 4px 16px rgba(138, 111, 82, 0.08);
  --shadow-lg: 0 12px 32px rgba(138, 111, 82, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

/* ===========================
   Reset & Base
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   Header / Navigation
   =========================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
}

.nav {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 48px;
  flex: 1;
}

.logo {
  height: 80px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  gap: 40px;
}

.nav-menu a {
  font-size: 19px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand);
  transition: width 0.3s ease;
}

.nav-menu a:hover { color: var(--color-brand); }
.nav-menu a:hover::after { width: 100%; }
.nav-menu a.active { color: var(--color-brand); }
.nav-menu a.active::after { width: 100%; }

.btn-cta {
  padding: 14px 28px;
  background: var(--color-brand);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 17px;
  transition: all 0.25s;
  flex-shrink: 0;
}

.btn-cta:hover {
  background: var(--color-brand-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s;
}

/* ===========================
   Buttons
   =========================== */
.btn-primary {
  padding: 16px 32px;
  background: var(--color-brand);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--color-brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  padding: 16px 32px;
  background: white;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--color-border);
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  transform: translateY(-2px);
}

/* ===========================
   Page Header (서비스/회사소개 등 상단)
   =========================== */
.page-header {
  padding: 90px 0 80px;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-section) 100%);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-header p {
  font-size: 17px;
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: #2a2522;
  color: #d8d2cc;
  padding: 60px 0 30px;
  margin-top: 80px;
}

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

.footer-brand img {
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  margin-bottom: 18px;
  filter: brightness(0) invert(1) opacity(0.9);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: #b8b0a8;
  max-width: 320px;
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section ul {
  display: grid;
  gap: 10px;
}

.footer-section li {
  font-size: 14px;
  color: #b8b0a8;
  line-height: 1.6;
}

.footer-section a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid #3a342f;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #8a8278;
}

/* ===========================
   Disclaimer (예시 명시)
   =========================== */
.disclaimer {
  background: var(--color-bg-soft);
  border-left: 3px solid var(--color-brand-light);
  padding: 14px 18px;
  margin-top: 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.disclaimer strong {
  color: var(--color-brand-dark);
  font-weight: 600;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1100px) {
  .nav { gap: 32px; }
  .nav-left { gap: 32px; }
  .logo { height: 64px; max-width: 280px; }
  .nav-menu { gap: 28px; }
  .nav-menu a { font-size: 16px; }
  .btn-cta { padding: 11px 20px; font-size: 14px; }
}

@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .page-header { padding: 60px 0 60px; }
  .logo { height: 56px; max-width: 240px; }
  .nav-menu { gap: 22px; }
  .nav-menu a { font-size: 15px; }
}

@media (max-width: 820px) {
  .nav-menu, .btn-cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .nav-menu.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--color-border-light);
    z-index: 50;
  }
  .nav-menu.active a { font-size: 17px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav { padding: 12px 20px; gap: 16px; }
  .nav-left { gap: 16px; }
  .logo { height: 44px; max-width: 200px; }

  .btn-primary, .btn-secondary {
    padding: 14px 24px;
    font-size: 14px;
  }
}
