/* Common Layout Elements */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-wrapper {
  padding: var(--space-md) 0;
}

.flex-row {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.vertical-line {
  width: 1px;
  align-self: stretch;
  background-color: var(--primary-color);
  flex-shrink: 0;
  display: block; /* Hidden on mobile by media query below */
}

.section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg); /* Reduced from xl to lg */
}

.section.reverse {
  flex-direction: row-reverse;
}

.section img {
  width: 50%;
  border-radius: 8px;
  object-fit: cover;
  height: auto;
  max-height: 500px;
}

.section .text {
  width: 50%;
}

.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md); /* Reduced from lg */
}

.two-column > div {
  flex: 1 1 45%;
  min-width: 300px;
}

.column-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Hero Section */
.hero-image-container {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: var(--space-lg); /* Reduced from xl */
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons */
.cta-btn, .button-l, .btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 10px 24px; /* Slightly tighter */
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid var(--primary-color);
  cursor: pointer;
  text-align: center;
}

.cta-btn:hover, .button-l:hover, .btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(110, 50, 52, 0.15);
}

/* Footer */
footer {
  background-color: #ddd5d2;
  padding: var(--space-lg) 92px; /* Reduced from xl */
  text-align: left;
}

footer .footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .container {
    padding: 0 16px; /* Slightly more space on mobile */
  }
  
  .flex-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .flex-row > div {
    width: 100%;
  }

  .vertical-line {
    display: none !important;
  }

  .section {
    flex-direction: column;
    padding: 0;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
  }

  .section.reverse {
    flex-direction: column;
  }

  .section img,
  .section .text {
    width: 100%;
  }

  .section img {
    max-height: 300px;
  }

  footer {
    padding: var(--space-md) 20px;
  }

  /* Reduce gaps after headers on mobile */
  .section-wrapper h1, 
  .section-wrapper h2 {
    margin-bottom: 4px; /* Tighten significantly */
  }
  
  .flex-row {
    gap: 0; /* Remove gap between heading container and content container */
  }
}
