/* === Trans Deitti — Nordic Calm Minimal Style === */

:root {
  --bg: #f8f6f1;
  --bg-card: #ffffff;
  --text: #2c2c2c;
  --text-light: #5c5c5c;
  --text-muted: #7a7a7a;
  --primary: #2d5a4b;
  --primary-hover: #1f4236;
  --accent: #3a7d6c;
  --accent-light: #e8f0ed;
  --secondary: #e8d5c4;
  --secondary-light: #f4ede6;
  --border: #e0dcd3;
  --border-light: #ede9e1;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* === Header === */

.site-header {
  background: rgba(248,246,241,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo:hover {
  color: var(--primary-hover);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 450;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.header-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--primary-hover);
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Hero === */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #3a5f52 0%, #2d4a3e 30%, #3a6b5c 60%, #4a7d6e 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28,38,34,0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.cta-button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.cta-button:active {
  transform: translateY(0);
}

/* === Sections === */

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--secondary-light);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.section p {
  color: var(--text-light);
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.section p:last-child {
  margin-bottom: 0;
}

/* === Cards === */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.15s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

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

.card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.925rem;
}

.card-link:hover {
  text-decoration: underline;
}

/* === Topic Cards (homepage topic links) === */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s, transform 0.15s;
  display: block;
}

.topic-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

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

.topic-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* === List styles in content === */

.content-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.content-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

.content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
}

.content-list strong {
  color: var(--text);
  font-weight: 600;
}

/* === FAQ === */

.faq-list {
  margin-top: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border-light);
}

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

.faq-item p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* === Three Step Section === */

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  color: var(--primary);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* === Internal Link List === */

.link-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem;
}

.link-list li a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 450;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.link-list li a:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

/* === Final CTA Section === */

.cta-section {
  text-align: center;
  padding: 4rem 0;
  background: var(--secondary-light);
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 1.75rem;
}

/* === Footer === */

.site-footer {
  background: #2c2c2c;
  color: #bbb;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

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

.footer-col ul li a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-brand {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: #777;
  margin-top: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid #3d3d3d;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
}

/* === Legal Page Styles === */

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 0.75rem 0 1.25rem 1.5rem;
  color: var(--text-light);
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

/* === Content section (non-hero pages) === */

.content-section {
  padding: 4rem 0;
}

.content-section h2 {
  margin-top: 2.5rem;
}

.content-section h2:first-of-type {
  margin-top: 0;
}

/* === Responsive === */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(248,246,241,0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 7vw, 2.25rem);
  }

  .section {
    padding: 3rem 0;
  }

  .card-grid,
  .topic-grid,
  .step-grid,
  .link-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .cta-button {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }
}
