:root {
  /* Color Palette */
  --color-primary-blue: #0b3b6f;
  --color-primary-brown: #927150;
  --color-secondary-brown: #725a40;
  --color-bg-ivory: #fff7ee;
  --color-line-beige: #e8d9c8;
  --color-text-navy: #06284e;
  --color-error: #5a3b2e;
  --color-white: #ffffff;

  /* Spacing */
  --container-width: 1280px;
  --header-height: 80px;

  /* Fonts */
  --font-sans: "Noto Sans KR", sans-serif;
  --font-serif: "Noto Serif KR", serif;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-navy);
  background-color: var(--color-bg-ivory);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}
.hidden {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--color-primary-blue);
  color: var(--color-white);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary-sm {
  background-color: var(--color-primary-blue);
  color: var(--color-white);
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-secondary {
  border: 1px solid var(--color-primary-brown);
  color: var(--color-primary-brown);
  background: transparent;
}

.btn-secondary:hover {
  background-color: rgba(146, 113, 80, 0.05);
}

/* Header */
.site-header {
  height: var(--header-height);
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-line-beige);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-blue);
}

.main-nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--color-primary-brown);
}

.mobile-menu-toggle {
  display: none; /* Show on mobile via media query */
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary-blue);
}

/* Footer */
.site-footer {
  background-color: #fdfbf8;
  border-top: 1px solid var(--color-line-beige);
  padding: 40px 0 20px;
  margin-top: 20px;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-info h3 {
  font-family: var(--font-serif);
  color: var(--color-primary-blue);
  margin-bottom: 15px;
}

.footer-info p {
  color: #666;
  margin-bottom: 5px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-partners {
  margin-top: 30px;
  border-top: 1px solid #eee;
  padding-top: 15px;
  color: #888;
  font-size: 0.85rem;
}

.floating-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px; /* Slightly tighter gap for 3 buttons */
  z-index: 900;
  background: white;
  padding: 8px 12px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: max-content;
  max-width: 95vw;
}

.floating-cta .btn {
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.btn-call {
  background-color: var(--color-primary-blue);
  color: white;
}

.btn-kakao {
  background-color: #FEE500;
  color: #000000;
}

.btn-consult {
  background-color: var(--color-primary-brown);
  color: white;
}

/* Mobile Top Nav */
.mobile-top-nav {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid #EEE;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.mobile-top-nav a {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 0.95rem;
    color: #888;
    text-decoration: none;
    font-weight: 500;
}
.mobile-top-nav a.active {
    color: var(--color-text-navy);
    font-weight: 700;
    border-bottom: 2px solid var(--color-text-navy);
}

/* Utils */
/* Responsive Utils - Fixing P2 Duplicate Rendering */
.d-none { display: none !important; }

@media (min-width: 769px) {
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
    .d-md-none { display: none !important; }
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  } /* TODO: Toggle menu */
  .mobile-menu-toggle {
    display: flex;
  }
  .header-inner {
    padding: 0 15px;
  }
}

/* P1-Hotfix-6: Global Section Rhythm Normalization */
.hb-section {
    padding-block: 72px;
}
.hb-section > :first-child {
    margin-top: 0 !important;
}
.hb-section > :last-child {
    margin-bottom: 0 !important;
}
@media (max-width: 768px) {
    .hb-section {
        padding-block: 48px;
    }
}
/* Reduce internal margins of cards if needed */
.check-card { margin-top: 0; }
