/* ============================================
   TrainO Website - Common Styles
   Reset, typography, shared components
   ============================================ */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--color-graphite);
  color: var(--color-text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   Shared: Wordmark
   ============================================ */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.wordmark-text {
  font-size: 32px;
  font-weight: 300;
  color: var(--color-text-primary);
  letter-spacing: 3px;
  line-height: 1;
}

.wordmark-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 1px;
}

.wordmark-system {
  font-size: 28px;
  font-weight: 200;
  color: var(--color-text-secondary);
  letter-spacing: 4px;
  line-height: 1;
  margin-left: 10px;
}

/* ============================================
   Shared: Primary Button
   ============================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #2F8F83 0%, #5FAFA6 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--duration-normal) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default);
  box-shadow: 0 4px 20px rgba(47, 143, 131, 0.3),
              0 0 40px rgba(47, 143, 131, 0.08);
  text-decoration: none;
  font-family: inherit;
}

.btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 4px 24px rgba(47, 143, 131, 0.4),
              0 0 48px rgba(47, 143, 131, 0.12);
}

.btn-primary:active {
  opacity: 0.85;
  box-shadow: 0 2px 12px rgba(47, 143, 131, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid rgba(47, 143, 131, 0.35);
  border-radius: var(--radius-md);
  background: rgba(47, 143, 131, 0.08);
  color: var(--color-core-green);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration-normal) var(--ease-default);
  text-decoration: none;
  font-family: inherit;
}

.btn-secondary:hover {
  background: rgba(47, 143, 131, 0.14);
}

/* ============================================
   Shared: Language Toggle
   ============================================ */

.lang-toggle {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
}

.lang-btn {
  padding: 5px 12px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-disabled);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  letter-spacing: 0.5px;
}

.lang-btn.active {
  background: rgba(47, 143, 131, 0.2);
  color: var(--color-core-green);
}

/* ============================================
   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;
}
