/* Hyrkross.se color palette */
:root {
  --primary-color: #2D3C3A; /* Main color from the logo */
  --secondary-color: #4A5C5A; /* Lighter shade for accents */
  --light-color: #E8EAE9; /* Light color for contrast */
  --text-color: #2D3C3A; /* Text color matching logo */
  --accent-color: #546966; /* Additional accent color */
  --background-color: #F5F5F5; /* Light background */
}

/* Update primary brand colors */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-primary, #text-primary {
  color: var(--primary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-primary:hover {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}

/* Override secondary colors */
.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

/* Navigation styling */
.navbar {
  background-color: var(--background-color);
}

.navbar-nav .nav-link {
  color: var(--text-color);
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link:focus,
.navbar-nav .nav-item.active .nav-link {
  color: var(--primary-color);
}

/* Logo sizing in navbar and footer */
.navbar-brand img {
  max-height: 60px;
  width: auto;
}

/* Hero video styling */
.block-section.bg-video {
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: 0;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.block-section-container.pb-0 {
  position: relative;
  z-index: 2;
}

.block-section-container.pb-0 .block {
  position: relative;
  z-index: 3;
}

/* Footer styling */
.footer-wrapper {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.footer-img {
  max-width: 250px;
  height: auto;
  filter: brightness(0) invert(1); /* Make logo white in dark footer */
}

.footer-contact {
  flex: 1;
  min-width: 200px;
  padding: 1rem;
}

.footer-contact h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: white;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* Contact form and cards */
.btn-float span.icon p a {
  color: var(--primary-color);
}

.block-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(45, 60, 58, 0.25);
}

/* Style for contact cards */
.cards .block-section {
  border-color: var(--primary-color);
}

.contact.col {
  background-color: var(--primary-color) !important;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-logo, 
  .footer-contact {
    margin-bottom: 1.5rem;
  }
}
