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

* {
  margin: 0;
}

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #555;
  --color-accent: #4D0FFD;
  --color-accent-hover: #3a0bc4;
  --color-accent-light: #79BFFF;
  --color-border: #e0e0e0;
  --color-surface: #f4f0ff;
  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 960px;
}

html {
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

a:hover {
  text-decoration: underline;
}

/* Layout */

.main * {
  opacity: 0;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.main a {
  animation-delay: 0.25s;
}

.section {
  animation-delay: 0.25s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main {
  flex: 1;
}

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

/* Header */

.header {
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 55px;
  width: auto;
}

.logo:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-dropdown {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  padding: 0.3rem 0.6rem;
  background: var(--color-surface);
  border: none;
  border-radius: 4px;
}

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

.lang-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.35rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-width: 120px;
  z-index: 200;
}

.lang-option {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.lang-option:hover {
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
}

.nav-icon {
  display: flex;
  align-items: center;
  color: var(--color-text-secondary);
}

.nav-icon:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* Hero */

.hero {
  padding: 5rem 0 4rem;
}

.hero-sm {
  padding: 3.5rem 0 2.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 720px;
}

.hero-sub {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 540px;
}

/* Sections */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-surface);
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.center {
  text-align: center;
}

.center .measure,
.measure {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

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

.card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Buttons */

.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border-radius: 6px;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
}

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

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Prose (for long-form text pages) */

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.prose ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: var(--color-accent);
}

/* Services */

.service-block {
  margin-bottom: 3rem;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block p {
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 640px;
}

.service-list {
  padding-left: 1.25rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.service-list li {
  margin-bottom: 0.25rem;
}

/* Contact */

.contact-grid {
  max-width: 480px;
}

.contact-info h2 {
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-detail {
  margin-bottom: 1.75rem;
}

.contact-detail h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.contact-detail p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Footer */

.footer {
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.footer-detail {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-link {
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.35rem;
}

/* Responsive */

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav {
    gap: 1.25rem;
  }
}
