/* Base styles and CSS Reset */
:root {
  --primary-color: #c8102e; /* Red from Norwegian flag */
  --secondary-color: #00205b; /* Blue from Norwegian flag */
  --accent-color: #f5f5f5;
  --text-color: #333;
  --light-text: #fff;
  --dark-text: #222;
  --background: #f9f9f9;
  --card-bg: #fff;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.25s ease;
}

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

body {
  font-family: 'Arial', 'Helvetica', sans-serif;
  color: var(--text-color);
  line-height: 1.7;
  background-color: var(--background);
}

.container {
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.8rem;
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 3rem;
  color: var(--secondary-color);
  position: relative;
}

h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

h3 {
  font-size: 1.4rem;
  margin-top: 0.5rem;
  color: var(--dark-text);
}

p {
  margin-bottom: 1.2rem;
}

/* Header styles */
header {
  background-color: var(--card-bg);
  box-shadow: var(--box-shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}

.logo-icon {
  margin-right: 0.8rem;
}

.accent {
  color: var(--secondary-color);
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: 600;
  position: relative;
}

nav a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav a:hover:after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero section */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.tagline {
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.visual-svg {
  width: 100%;
  height: 400px;
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--light-text);
  font-weight: bold;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.cta-button:hover {
  background: var(--secondary-color);
  color: var(--light-text);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 32, 91, 0.4);
}

/* How it works section */
.how-it-works {
  padding: 5rem 0;
  background-color: var(--card-bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
}

.step:hover {
  transform: translateY(-10px);
}

.step-icon {
  position: relative;
  margin: 0 auto 1.5rem;
  width: 80px;
  height: 80px;
}

.step-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* Features section */
.features {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(0, 32, 91, 0.03) 0%, rgba(200, 16, 46, 0.03) 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.feature {
  padding: 2rem;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature svg {
  margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background-color: var(--card-bg);
}

.testimonial-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial {
  background: linear-gradient(135deg, rgba(0, 32, 91, 0.03) 0%, rgba(200, 16, 46, 0.03) 100%);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
}

.user {
  font-weight: bold;
  color: var(--secondary-color);
}

/* FAQ section */
.faq {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(0, 32, 91, 0.03) 0%, rgba(200, 16, 46, 0.03) 100%);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  margin-bottom: 1.5rem;
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.faq-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  position: relative;
}

/* CTA section */
.cta-section {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
}

.cta-section h2,
.cta-section p {
  color: var(--light-text);
}

.cta-section .cta-button {
  background: var(--light-text);
  color: var(--primary-color);
  margin-top: 1.5rem;
}

.cta-section .cta-button:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--secondary-color);
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 4rem 0 1rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  flex: 1;
  min-width: 280px;
}

.footer-logo {
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-column h4 {
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-column a {
  color: #aaa;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--light-text);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  color: #888;
  font-size: 0.85rem;
}

/* Responsive design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    max-height: 300px;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu a {
    display: block;
    padding: 1rem 2rem;
  }
  
  .footer-content {
    flex-direction: column;
  }
}
