/*
 * Custom styles for the Blick clone.
 *
 * The original site uses a rich palette of purples and blues with the Rubik typeface.
 * This stylesheet recreates the look and feel in a simplified, responsive layout.
 */

/* Reset margins and paddings to ensure consistency across browsers */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Rubik', sans-serif;
  color: #2f1c6a; /* dark meteorite */
  background-color: #f9f7ff; /* very light purple background */
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navigation styles */
.header {
  background-color: #270a47; /* very dark purple */
  color: #ffffff;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  font-size: 32px;
  font-weight: 700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-links li a {
  color: #ffffff;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links li a:hover {
  color: #8c85ff; /* light meteorite */
}

/* Hero section */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1 1 500px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #d5dfff; /* pale purple */
  max-width: 450px;
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.btn-primary {
  background-color: #673de6; /* primary purple */
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #8c85ff;
}

.hero-image {
  flex: 1 1 500px;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
}

/* Generic section styles */
main .section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Alternate background colours for contrast */
#your-finances {
  background-color: #ffffff;
}

#anywhere {
  background-color: #f9f7ff;
  flex-direction: row-reverse;
}

#tracking {
  background-color: #ffffff;
}

.section-content {
  flex: 1 1 500px;
}

.section-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #270a47;
}

.section-content p {
  font-size: 1.1rem;
  color: #5025d1;
  max-width: 500px;
}

.section-image {
  flex: 1 1 500px;
  text-align: center;
}

.section-image img {
  width: 100%;
  max-width: 400px;
}

/* Testimonials section */
.testimonials {
  background-color: #1f1346;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

.testimonials h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.testimonial-cards {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.testimonial-card {
  background-color: #5025d1;
  padding: 30px;
  border-radius: 16px;
  text-align: left;
}

.testimonial-card p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.4;
}

.testimonial-card strong {
  font-weight: 700;
}

/* Stats section */
.stats {
  background-color: #2f1c6a;
  color: #ffffff;
  display: flex;
  justify-content: space-around;
  padding: 60px 80px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  margin: 20px;
}

.stat .number {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.stat .label {
  font-size: 1rem;
}

/* CTA section */
.cta {
  background-color: #1f1346;
  color: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cta-content {
  flex: 1 1 500px;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
}

.cta-image {
  flex: 1 1 500px;
  text-align: center;
}

.cta-image img {
  width: 100%;
  max-width: 400px;
}

/* Footer styles */
.footer {
  background-color: #270a47;
  color: #ffffff;
  padding: 40px 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.newsletter {
  display: flex;
  margin-top: 20px;
}

.newsletter input {
  padding: 10px;
  border-radius: 50px 0 0 50px;
  border: none;
  outline: none;
  width: 250px;
}

.newsletter button {
  padding: 10px 20px;
  border: none;
  border-radius: 0 50px 50px 0;
  background-color: #673de6;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter button:hover {
  background-color: #8c85ff;
}

.socials {
  margin-top: 20px;
  display: flex;
  gap: 16px;
}

.socials a img {
  width: 24px;
  height: 24px;
  filter: invert(1);
  transition: opacity 0.2s ease;
}

.socials a img:hover {
  opacity: 0.8;
}

/* Responsive rules */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* hide nav links on small screens */
  }
  .hero,
  main .section,
  .cta {
    flex-direction: column;
    text-align: center;
  }
  .hero-content,
  .section-content,
  .cta-content {
    flex: 1 1 auto;
  }
  .hero-image,
  .section-image,
  .cta-image {
    margin-top: 40px;
  }
}