:root {
  --primary-color: #9E3039;
  --secondary-color: #FFFFFF;
  --accent-color: #B5985A;
  --dark-color: #333333;
  --light-color: #F5F5F5;
  --text-color: #212121;
  --text-light: #FFFFFF;
  --font-main: 'Roboto Condensed', sans-serif;
  --font-secondary: 'Lato', sans-serif;
  --transition: all 0.3s ease;
  --border-radius: 3px;
  --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-color);
}

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

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header styles */
.header {
  background-color: var(--primary-color);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  color: var(--secondary-color);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.latvian-pattern {
  height: 10px;
  width: 100%;
  background: repeating-linear-gradient(
    to right,
    var(--accent-color),
    var(--accent-color) 10px,
    var(--secondary-color) 10px,
    var(--secondary-color) 20px
  );
  margin-top: 1rem;
}

/* Main banner */
.banner {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 8rem 0 5rem;
  position: relative;
}

.banner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.banner h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.banner p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.btn-primary {
  display: inline-block;
  background: var(--accent-color);
  color: var(--text-light);
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn-primary:hover {
  background: #a38449;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
}

.banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: repeating-linear-gradient(
    45deg,
    var(--primary-color),
    var(--primary-color) 10px,
    var(--secondary-color) 10px,
    var(--secondary-color) 20px
  );
}

/* Features section */
.features {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--accent-color);
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #666;
}

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

.feature-item {
  background-color: var(--secondary-color);
  border-left: 5px solid var(--primary-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  margin-bottom: 1.5rem;
  display: inline-block;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* How it works */
.how-it-works {
  padding: 5rem 0;
  background-color: #f9f9f9;
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background: repeating-linear-gradient(
    to right,
    var(--accent-color),
    var(--accent-color) 15px,
    var(--secondary-color) 15px,
    var(--secondary-color) 30px
  );
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.step {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  background-color: var(--secondary-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
}

.step-number {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.step-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: #aaa;
  padding: 4rem 0 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 40px;
  margin-right: 10px;
}

.footer-brand-text {
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-about p {
  margin-bottom: 1.5rem;
}

.footer-heading {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #aaa;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-pattern {
  height: 15px;
  background: repeating-linear-gradient(
    45deg,
    var(--primary-color),
    var(--primary-color) 10px,
    var(--secondary-color) 10px,
    var(--secondary-color) 20px
  );
  margin-top: 3rem;
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
  .banner h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .banner {
    padding: 7rem 0 4rem;
  }
  
  .banner h1 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .feature-item {
    padding: 1.5rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
  }
  
  .banner h1 {
    font-size: 1.6rem;
  }
  
  .btn-primary {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}
