/* ============================================================
   OKWEE Design System
   www.okwee.com
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

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

/* ── CSS Variables ── */
:root {
  --color-ink:        #0f0f0f;
  --color-ink-soft:   #2a2a2a;
  --color-text:       #333333;
  --color-text-muted: #737373;
  --color-text-light: #a3a3a3;
  --color-bg:         #fafafa;
  --color-bg-warm:    #f7f4f0;
  --color-bg-medical: #eef4f6;
  --color-border:     #e8e8e8;
  --color-border-light: #f0f0f0;
  --color-accent:     #c9a87c;
  --color-accent-soft:#d4b896;
  --color-accent-dark:#a68b5f;
  --color-white:      #ffffff;
  --radius-sm:        4px;
  --radius-md:        8px;
  --radius-lg:        16px;
  --shadow-sm:        0 1px 3px rgba(0,0,0,0.04);
  --shadow-md:        0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg:        0 12px 40px rgba(0,0,0,0.08);
  --transition:       0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Typography ── */
.text-xs   { font-size: 0.75rem;  line-height: 1.5; letter-spacing: 0.02em; }
.text-sm   { font-size: 0.875rem; line-height: 1.6; letter-spacing: 0.01em; }
.text-base { font-size: 1rem;     line-height: 1.7; }
.text-lg   { font-size: 1.125rem; line-height: 1.6; }
.text-xl   { font-size: 1.25rem;  line-height: 1.5; }
.text-2xl  { font-size: 1.5rem;   line-height: 1.4; letter-spacing: -0.01em; }
.text-3xl  { font-size: 1.875rem; line-height: 1.3; letter-spacing: -0.02em; }
.text-4xl  { font-size: 2.25rem;  line-height: 1.2; letter-spacing: -0.02em; }
.text-5xl  { font-size: 3rem;     line-height: 1.1; letter-spacing: -0.03em; }
.text-6xl  { font-size: 3.75rem;  line-height: 1.05; letter-spacing: -0.03em; }

.font-light   { font-weight: 300; }
.font-normal  { font-weight: 400; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }

.tracking-wide { letter-spacing: 0.05em; }
.tracking-wider{ letter-spacing: 0.1em; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 48px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 64px; }
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-ink);
}

.logo span {
  font-weight: 300;
  color: var(--color-text-muted);
}

.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 40px;
  }
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-ink);
  opacity: 1;
}

.nav-mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

@media (min-width: 768px) {
  .nav-mobile-toggle { display: none; }
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-ink);
  transition: var(--transition);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--color-ink);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-ink-soft);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border: 1.5px solid var(--color-ink);
}

.btn-outline:hover {
  background: var(--color-ink);
  color: var(--color-white);
  opacity: 1;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  opacity: 1;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.75rem;
}

/* ── Sections ── */
.section {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .section { padding: 120px 0; }
}

.section-sm { padding: 60px 0; }
.section-lg { padding: 100px 0; }

@media (min-width: 768px) {
  .section-lg { padding: 160px 0; }
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}

.section-subtitle {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Cards ── */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--color-border-light);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
  color: var(--color-accent-dark);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.card-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Grid ── */
.grid-2 {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

.grid-3 {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.grid-4 {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Hero ── */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
  background-color: #f5f1eb;
}

.hero::before {
  content: '';
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/bg.jpg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: auto calc(100dvh - 72px);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 3.75rem; }
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-bg-accent {
  position: absolute;
  right: -10%;
  top: 20%;
  width: 50%;
  height: 60%;
  background: linear-gradient(135deg, var(--color-bg-warm) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 0 auto;
  max-width: 1280px;
}

/* ── Quote / Testimonial ── */
.quote {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-ink-soft);
  font-style: italic;
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--color-accent);
}

.quote-author {
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  font-style: normal;
}

/* ── Footer ── */
.site-footer {
  background: var(--color-ink);
  color: var(--color-text-light);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  gap: 48px;
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 280px;
}

.footer-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-text-light);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.footer-icp {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* ── Page Header ── */
.page-header {
  padding-top: 140px;
  padding-bottom: 60px;
  background: var(--color-bg);
}

@media (min-width: 768px) {
  .page-header { padding-top: 180px; padding-bottom: 80px; }
}

.page-header-title {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-ink);
}

@media (min-width: 768px) {
  .page-header-title { font-size: 3.5rem; }
}

.page-header-zboss {
  position: relative;
  background-color: #f8f3ec;
  overflow: hidden;
}

.page-header-zboss::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1280px);
  height: 100%;
  background-image: url('../assets/images/bgzboss.jpg');
  background-position: right top;
  background-repeat: no-repeat;
  background-size: auto 100%;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .page-header-zboss::before { display: none; }
}

.page-header-zboss .container {
  position: relative;
  z-index: 1;
}

.page-header-desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-top: 16px;
  max-width: 560px;
  line-height: 1.7;
}

/* ── Image Placeholder ── */
.img-placeholder {
  background: linear-gradient(135deg, var(--color-bg-warm) 0%, var(--color-bg-medical) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  min-height: 200px;
}

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-ink);
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-ink);
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── Utility ── */
.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;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.pt-0  { padding-top: 0; }
.pb-0  { padding-bottom: 0; }

.bg-white { background: var(--color-white); }
.bg-warm  { background: var(--color-bg-warm); }
.bg-medical { background: var(--color-bg-medical); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ── Scroll reveal base ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
