/* css/style.css */

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

:root {
  --bg: #ffffff;
  --bg-section: #f8f8f8;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #999;
  --accent: #c23b22;
  --accent-hover: #a03020;
  --border: #e5e5e5;
  --max-width: 960px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

:lang(ko) body,
:lang(ko) {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
}

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

a:hover {
  color: var(--accent);
}

/* === Header === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: block;
  height: 40px;
}

.logo img {
  height: 100%;
  width: auto;
  display: block;
}

.lang-toggle {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lang-toggle a {
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.lang-toggle a:hover {
  color: var(--text);
}

.lang-toggle a.active {
  color: var(--text);
  font-weight: 600;
}

/* === Hero === */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
  text-align: center;
}

.hero-logo {
  width: 280px;
  margin: 0 auto 3rem;
}

.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.hero .tagline {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero .tagline strong {
  color: var(--text);
  font-weight: 600;
}

.hero .description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.8;
}

/* === Divider === */
.divider {
  max-width: 60px;
  margin: 0 auto;
  border: none;
  border-top: 2px solid var(--border);
}

/* === Services === */
.services {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-weight: 500;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.service-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === IP Portfolio === */
.ip-portfolio {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
  background: var(--bg-section);
}

.ip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.ip-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  transition: border-color 0.3s;
}

.ip-card:hover {
  border-color: var(--accent);
}

.ip-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.ip-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === Contact === */
.contact {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.contact-form {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}

.contact-form button:hover {
  background: var(--accent);
}

.form-status {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form-status.success {
  color: #16a34a;
}

.form-status.error {
  color: var(--accent);
}

/* === Footer === */
footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  max-width: var(--max-width);
  margin: 0 auto;
  letter-spacing: 0.02em;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.5rem 3rem;
  }

  .hero-logo {
    width: 200px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .ip-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1.5rem;
  }

  .services,
  .contact {
    padding: 3rem 1.5rem;
  }

  .ip-portfolio {
    padding: 3rem 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}
