* {
  box-sizing: border-box;
}

:root {
  --primary-color: #2c3e50; /* Midnight Blue */
  --secondary-color: #3498db; /* Peter River Blue */
  --accent-color: #f1c40f; /* Sunflower Yellow */
  --light-gray: #ecf0f1; /* Clouds White */
  --dark-gray: #7f8c8d; /* Asbestos Gray */
  --text-color: #34495e; /* Wet Asphalt */
  --white: #ffffff;
  --border-radius: 8px;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --header-bg: #e6e5df;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--light-gray);
  color: var(--text-color);
  line-height: 1.7;
}

header {
  background-color: var(--header-bg);
  padding: 1.5rem 1rem;
  text-align: center;
  width: 100%;
}

.logo {
  max-height: 150px;
  margin-bottom: 1rem;
}

.header-content p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--primary-color);
  max-width: 600px;
  margin: 0 auto;
}

nav {
  background-color: var(--white);
  border-bottom: 1px solid #eaeaea;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  padding: 1rem 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s, background-color 0.3s;
}

nav a:hover {
  color: var(--secondary-color);
  background-color: var(--light-gray);
}

section {
  /* max-width and padding will be applied to sections individually */
  margin: 0 auto;
}

section:not(#intro) {
  padding: 2rem;
  max-width: 1000px;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.section-inside {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

#intro {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  border-top: 5px solid #800000;
  border-bottom: 5px solid #800000;
}

#intro h2 {
  margin-top: 2rem;
}

#intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('iowa.PNG');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: -1;
}

#intro .section-inside {
  background: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

#intro h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#intro p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

#intro .cta-button {
  margin-top: 2rem;
  padding: 1rem 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  background-color: var(--secondary-color);
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

#intro .cta-button:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pricing-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid transparent;
  position: relative; /* For the popular label */
}

.pricing-card.popular {
  border-color: var(--accent-color);
}

.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 700;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.pricing-card h3 {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 1.25rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.card-header {
}

.card-content {
  flex-grow: 1;
}

.pricing-card p {
  margin-bottom: 1.5rem;
}

.pricing-card .cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 0.75rem 1rem; /* Reduced padding */
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  text-align: center;
  transition: background-color 0.3s;
  margin-top: auto;
}

.pricing-card .cta-button:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.link-row {
  display: flex;
  flex-direction: column; /* Stack buttons vertically */
  gap: 1rem; /* Add space between buttons */
  margin-top: auto;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.link-item a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.link-item a:hover {
  text-decoration: underline;
}

footer {
  background-color: var(--header-bg);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.logo-footer {
  max-height: 50px;
  margin-bottom: 1rem;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

th, td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  text-align: left;
}

th {
  background-color: var(--light-gray);
  font-weight: 700;
  color: var(--primary-color);
}

tbody tr:nth-of-type(even) {
  background-color: #f9f9f9;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
}

.hamburger-box {
  width: 40px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
  width: 40px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 4px;
  position: absolute;
  transition: transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
  position: absolute;
  transition: transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger-inner::before {
  top: -10px;
}

.hamburger-inner::after {
  bottom: -10px;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    justify-content: center;
    padding: 1rem;
  }
  .hamburger {
    display: block;
  }

  .nav-container {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background-color: var(--white);
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

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

  nav a {
    padding: 1rem;
    border-top: 1px solid var(--light-gray);
  }

  h2 {
    font-size: 2rem;
  }

  #intro {
    min-height: 300px;
    padding: 2rem 1rem;
  }

  #intro h2 {
    font-size: 2rem;
  }

  #intro p {
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  #intro h2 {
    font-size: 1.5rem; /* Further reduce font size for very small screens */
  }

  #intro p {
    font-size: 0.9rem; /* Further reduce font size for very small screens */
  }
}
