/* main.css - Common styles for SIBE Construction website */

/* Import Acumin Pro font from Typekit */
@import url("https://use.typekit.net/gbg8gbx.css");

/* Base styles */
body {
  font-family: "acumin-pro", sans-serif;
  font-weight: 300;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography settings */
h1, h2, h3, h4, h5, h6 {
  font-family: "acumin-pro", sans-serif;
  font-weight: 700;
  font-style: normal;
}

strong, b, .font-bold, .font-semibold {
  font-family: "acumin-pro", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.font-semibold, 
.nav-link {
  font-family: "acumin-pro", sans-serif;
  font-weight: 600;
  font-style: normal;
}

/* Explicitly set nav links to semibold in both desktop and mobile */
.nav-link,
#mobile-menu a {
  font-family: "acumin-pro", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.font-medium, 
.job-listing-name {
  font-family: "acumin-pro", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Mobile menu animation - fade in AND fade out */
.mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Hamburger to X animation */
.hamburger-line {
  transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.menu-open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-open .hamburger-line:nth-child(2) {
  transform: rotate(-45deg);
}

/* Active menu item styling */
.nav-link {
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px; /* Creates space between text and underline */
  left: 0;
  width: 100%;
  height: 2px; /* Underline thickness */
  background-color: white;
}

/* Dark pages version (for Kontakt and Spontanansökan pages) */
.dark-page .nav-link.active::after {
  background-color: #494949;
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  background-color: white;
}

.form-input:focus {
  outline: none;
  border-color: #3992c5;
  box-shadow: 0 0 0 3px rgba(57, 146, 197, 0.2);
}

.file-input {
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  padding: 0.5rem;
  width: 100%;
}

.submit-button {
  background-color: #01a7e1;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 700; /* Updated to bold */
  transition: background-color 0.2s;
  width: 100%;
}

.submit-button:hover {
  background-color: #0090c8;
}

.submit-button:disabled {
  background-color: #cbd5e0;
  cursor: not-allowed;
}