/*
 * Styling for the Worklife Biohacks landing page
 * Colour palette based on the Norwegian flag: dominant blue and white with red accents.
 */

/* CSS Variables */
:root {
  --wl-blue-dark: #00205b;
  --wl-blue: #004b8d;
  --wl-blue-light: #0071c1;
  --wl-red: #c20430;
  --wl-white: #ffffff;
  --wl-gray-light: #f5f7fa;
  --wl-text-dark: #1a1a1a;
}

/* Reset & base styles */
.wl-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--wl-text-dark);
}

.wl-container h1,
.wl-container h2,
.wl-container h3 {
  margin: 0 0 0.5em;
  font-weight: 700;
}

.wl-container p {
  margin: 0 0 1em;
}

.wl-container ul {
  list-style: disc inside;
  margin: 0 0 1em;
  padding: 0;
}

/* Button styles */
.wl-btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wl-btn-primary {
  background-color: var(--wl-red);
  color: var(--wl-white);
}

.wl-btn-primary:hover {
  background-color: #a10329;
}

.wl-btn-secondary {
  background-color: var(--wl-blue);
  color: var(--wl-white);
  border: none;
}

.wl-btn-secondary:hover {
  background-color: var(--wl-blue-light);
}

/* Hero Section */
.wl-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  background: linear-gradient(135deg, var(--wl-blue-dark) 0%, var(--wl-blue) 50%, var(--wl-blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wl-white);
  text-align: center;
}

.wl-hero-overlay {
  max-width: 800px;
  padding: 0 1em;
}

.wl-hero-title {
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

.wl-hero-subtitle {
  font-size: 1.25em;
  margin-bottom: 1.5em;
}

/* Generic Section */
.wl-section {
  padding: 3em 1em;
  background-color: var(--wl-white);
}

.wl-section:nth-of-type(even) {
  background-color: var(--wl-gray-light);
}

.wl-section-title {
  font-size: 2em;
  color: var(--wl-blue-dark);
  margin-bottom: 1em;
  text-align: center;
}

.wl-section-text {
  max-width: 800px;
  margin: 0 auto 2em;
  text-align: center;
}

/* Program Grid */
.wl-program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5em;
  max-width: 1000px;
  margin: 0 auto;
}

.wl-program-item {
  background-color: var(--wl-white);
  border: 1px solid var(--wl-blue-light);
  border-radius: 6px;
  padding: 1em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wl-program-title {
  font-size: 1.25em;
  color: var(--wl-blue);
  margin-bottom: 0.5em;
}

/* Gamification */
.wl-gamification-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1em;
  line-height: 1.5;
}

/* Pricing Grid */
.wl-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
  max-width: 1000px;
  margin: 0 auto;
}

.wl-pricing-item {
  background-color: var(--wl-white);
  border: 1px solid var(--wl-blue);
  border-radius: 6px;
  padding: 1.5em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wl-pricing-item h3 {
  color: var(--wl-blue-dark);
  margin-bottom: 0.5em;
}

.wl-pricing-item p {
  font-size: 0.95em;
}

/* Contact Section */
.wl-contact-form {
  max-width: 600px;
  margin: 0 auto 2em;
  display: flex;
  flex-direction: column;
}

.wl-contact-form label {
  margin-bottom: 0.25em;
  font-weight: 600;
}

.wl-contact-form input,
.wl-contact-form textarea {
  padding: 0.5em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

.wl-contact-form button {
  align-self: flex-start;
}

.wl-contact-info {
  text-align: center;
  font-size: 0.95em;
}

.wl-contact-info p {
  margin: 0.3em 0;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .wl-hero-title {
    font-size: 2em;
  }
  .wl-hero-subtitle {
    font-size: 1.1em;
  }
}