/* Asennus Ruponen – custom component styles
   Tailwind utilities come from the CDN; this file defines the reusable
   component classes referenced in index.html (plain CSS, no build step). */

:root {
  --accent: #e11d2a;
  --accent-dark: #b3141f;
  --steel-50: #f5f7fa;
  --steel-100: #e9eef3;
  --steel-700: #334155;
  --steel-800: #1e293b;
  --steel-900: #0f172a;
}

html {
  scroll-behavior: smooth;
}

/* ----- Buttons ----- */
.btn,
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent);
}

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

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

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
}

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

/* ----- Section heading ----- */
.section-title {
  font-family: "Oswald", "Inter", sans-serif;
  font-size: 1.875rem;
  line-height: 1.15;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--steel-900);
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

/* ----- Nav links ----- */
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--steel-700);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
}
