/* 
  State-of-the-Art Design System
  Oriental Medical Clinic - MH-003
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;700;900&display=swap');

:root {
  /* Architectural Color Palette - Refined for depth */
  --c-primary: #382D28;
  /* Even Deeper Umber */
  --c-accent: #B08D74;
  /* Sophisticated Golden Bronze */
  --c-accent-light: #D4BEAF;
  --c-bg-light: #FBF9F7;
  /* Luminous Beige */
  --c-bg-deep: #F1ECE8;
  /* Warm Architectural Grey */
  --c-text-main: #2D2623;
  /* Near Black */
  --c-text-sub: #5D5451;
  /* Muted Soil */
  --c-white: #FFFFFF;
  --c-border: rgba(56, 45, 40, 0.08);

  /* Typography - Fluid System */
  --font-serif: 'Noto Serif KR', serif;
  --font-sans: 'Pretendard', -apple-system, sans-serif;

  /* Spacing & Metrics - Vertical Rhythm */
  --section-pad: clamp(80px, 12vw, 160px);
  --container-w: 1320px;
  --radius-lg: 40px;
  --radius-md: 20px;
  --radius-sm: 8px;

  /* Animation Tokens - Liquid Motion */
  --bezier: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.8s var(--bezier);
  --transition-fast: all 0.3s var(--bezier);

  /* Shadows - Deep & Soft */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 15px 45px rgba(56, 45, 40, 0.06);
  --shadow-lg: 0 30px 80px rgba(56, 45, 40, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-slow);
}

ul,
ol {
  list-style: none;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--c-bg-light);
  color: var(--c-text-main);
  line-height: 1.7;
  overflow-x: hidden;
  word-break: keep-all;
  max-width: 100vw;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 40px;
}

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

/* Typography Overhaul */
.serif {
  font-family: var(--font-serif);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
}

.heading-tag {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1.15;
  margin-bottom: 2.5rem;
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  color: var(--c-text-sub);
  line-height: 1.8;
}

/* Premium Buttons - Refined */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 48px;
  border-radius: 60px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-slow);
  padding: 1.2rem 3rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

/* Specific Hover for Body Buttons (Excluding Header) */
main .btn:hover,
:not(#header):not(.nav-desktop) .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Clean Button Interaction */
.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  border: 1px solid var(--c-primary);
  color: var(--c-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--c-primary);
  color: var(--c-white);
}

/* Interactive Utility */
.magnetic {
  display: inline-block;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: var(--transition-slow);
}

[data-reveal].active {
  opacity: 1;
  transform: translateY(0);
}

/* Image Reveal Mask */
.img-mask {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.img-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 1.2s var(--bezier);
}

.img-mask.active img {
  transform: scale(1);
}

/* Global Section Styles */
.section {
  padding: var(--section-pad) 0;
}

.bg-deep {
  background-color: var(--c-bg-deep);
}

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

.m-auto {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

  .section-title {
    font-size: 2.5rem;
  }
}