/* Base styles and layout */
:root {
  --primary-color: #2563EB;
  --primary-dark: #1E40AF;
  --primary-light: #DBEAFE;
  --secondary-color: #F59E0B;
  --secondary-dark: #D97706;
  --secondary-light: #FEF3C7;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --white: #FFFFFF;
  --black: #000000;
  
  --box-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --box-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --border-radius-sm: 0.25rem;
  --border-radius: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  
  --font-sans: 'Noto Sans', 'Noto Sans KR', sans-serif;
  --font-normal: 400;
  --font-medium: 500;
  --font-bold: 700;
  
  --transition: all 0.3s ease;
  
  --container-max-width: 1200px;
  --container-padding: 1rem;
  
  --header-height: 4rem;
}

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

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

body {
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--gray-900);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hide {
  display: none !important;
}

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

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

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  font-weight: var(--font-bold);
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: var(--font-medium);
  font-size: 1rem;
  text-align: center;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

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

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: white;
}

.btn-light {
  background-color: var(--white);
  color: var(--gray-900);
}

.btn-light:hover {
  background-color: var(--gray-100);
}

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

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

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

.btn-danger:hover {
  background-color: #DC2626;
}

/* Header */
#main-header {
  background-color: var(--white);
  box-shadow: var(--box-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

#main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: var(--font-bold);
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--gray-900);
}

.logo i {
  color: var(--primary-color);
  margin-right: 0.5rem;
  font-size: 1.75rem;
}

nav {
  display: flex;
  align-items: center;
}

.main-nav {
  display: flex;
  margin-right: 1.5rem;
}

.main-nav li {
  margin-left: 1.5rem;
}

.main-nav a {
  color: var(--gray-700);
  font-weight: var(--font-medium);
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a:hover, 
.main-nav a.active {
  color: var(--primary-color);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.language-selector select {
  padding: 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-sm);
  background-color: var(--white);
  cursor: pointer;
}

.language-selector select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 2rem;
  height: 1.5rem;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--gray-900);
  transition: var(--transition);
}

/* Footer */
footer {
  background-color: var(--gray-800);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
}

.footer-logo i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.footer-links, 
.footer-contact {
  margin-bottom: 1.5rem;
}

.footer-links h3, 
.footer-contact h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: var(--gray-300);
}

.footer-links ul li a:hover {
  color: var(--white);
}

.footer-contact p {
  display: flex;
  align-items: center;
  color: var(--gray-300);
  margin-bottom: 0.75rem;
}

.footer-contact p i {
  margin-right: 0.75rem;
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-700);
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* Page Header */
.page-header {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.125rem;
  margin-bottom: 0;
  opacity: 0.9;
}

/* CTA Section */
.cta-section {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: var(--font-medium);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  background-color: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.error-message {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* Loading spinner */
.service-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  color: var(--gray-500);
}

.service-loading i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .container {
    max-width: 100%;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 767px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  nav {
    position: relative;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    margin-right: 0;
    z-index: 100;
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .main-nav li {
    margin: 0.5rem 0;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo, .footer-links, .footer-contact {
    margin-bottom: 2rem;
    width: 100%;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
  }
}

@media (max-width: 576px) {
  :root {
    --container-padding: 0.75rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .page-header {
    padding: 2rem 0;
  }
  
  .cta-section {
    padding: 3rem 0;
  }
  
  .cta-section h2 {
    font-size: 1.5rem;
  }
}
