:root {
  --bg-color: #000;
  --text-color: #fff;
  --text-focus-hover: #000;
  --blue-color: #b5ffe9;
  --grey-color: #c5e0d8;
  --pink-color: #ceabb1;
  --font-size-large: 1.25rem;
  --font-size-h1: 2.25rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.5rem;
  --font-size-p: 1rem;
  --font-size-button: 0.8rem;
  --font-family-base: 'Manrope', sans-serif;
  --font-family-heading: 'Josefin Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  font-size: 20px;
}

body {
  margin: 0;
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6; 
  position: relative;
}

h1, h2, h3 {
  font-family: var(--font-family-heading);
}

p,a {
  font-family: var(font-family-base);;
}

h1 {
  font-size: var(--font-size-h1);
  margin-bottom: 1rem;
}

h2 {
  font-size: var(--font-size-h2);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: var(--font-size-h3);
  margin-bottom: 0.5rem;
}

p {
  font-size: var(--font-size-p);
  margin-bottom: 1rem;
}

a {
  color: var(--text-color);
  text-decoration: underline;
  text-underline-offset: 2px; 
}

a:hover,a:focus {
  background-color: var(--blue-color); 
  color: var(--text-focus-hover);
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  transition: background-color 0.2s ease-in-out;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--bg-color);
  outline-offset: 3px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  background-color: var(--bg-color);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
  margin: 0;
  padding: 0;
  display: none;
}

nav a {
  font-size: var(--font-size-base);
}

.logo img {
  height: 70px;
  width: auto;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 0.5em 1em;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

main {
  padding: 2em 0;
}

section {
  margin: 3rem 0 6rem 0;
  text-align: center;
}

#qui-som {
  padding: 0 10rem;
}

.white-section{
  background-color: #ffffff;
  color: #000000;
  width: 100%;
  margin: 0;
  padding: 3rem 3rem;
}

.white-section input:focus-visible,
.white-section textarea:focus-visible,
.white-section button:focus-visible {
  outline: 2px solid var(--blue-color);
}

form {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

input, textarea {
  width: 100%;
  padding: 0.5em;
  margin-top: 0.25em;
  color: var(--bg-color);
  border-radius: 4px;
  font-size: 1rem;
}

button {
  margin-top: 3rem;
  padding: 1rem 2rem;
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--blue-color);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-family-heading);
  font-size: var(--font-size-button);
  font-weight: 600;
  transition: all 0.3s ease-in-out;
}

button:hover {
  background-color: var(--blue-color);
  color: var(--bg-color);
  border: 1px solid var(--bg-color);
}

.input-group {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 3rem;
}

.input-field {
  flex: 1;
  min-width: 350px;
}

.input-field input[type="text"],
.input-field input[type="email"] {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--bg-color);
  border-radius: 0;
  padding: 0.5em 0;
  font-size: 1rem;
  color: var(--bg-color);
}

textarea {
  background-color: var(--text-color);
  color: var(--bg-color);
  border: 2px solid var(--bg-color);
  border-radius: 4px;
  padding: 1em;
  font-size: 1rem;
}

::placeholder {
  color: var(--bg-color);
  opacity: 1;
  font-family: var(--font-family-base);
}

.footer {
  background-color: var(--bg-color);
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  display: none;
}

.footer-links li {
  display: inline;
}

.footer-links a {
  color: white;
  text-decoration: underline;
  font-size: 1rem;
}

.footer-links a:hover,
.footer-links a:focus {
  background-color: #444;
  color: #fff;
  border-radius: 4px;
  padding: 0.2rem;
}

.footer-links a:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.decor {
  position: absolute;
  /* max-width: 150px; */
  height: auto;
  pointer-events: none;
  z-index: 0;
  /* opacity: 0.9; */
}

.decor-header {
  top: 20;
  right: -50px; 
  max-width: 150px;
}

.decor-qui-som {
  position: absolute;
  left: -120px; 
  top: 392px; 
  max-width: 250px;
}

.decor-contacte {
  position: absolute;
  right: -70px;
  top: 800px; 
  max-width: 200px;
}

.form-message {
  margin-top: 1rem;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.5em;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  main h1 {
    font-size: 1.125rem;
  }

  .decor {
  display: none;
  }
  
  .decor-header {
    top: 20;
    right: -20px; 
    max-width: 100px;
  }
  
  .decor-qui-som {
    position: absolute;
    left: -100px; 
    top: 892px; 
    max-width: 200px;
  }
  
  .decor-contacte {
    position: absolute;
    right: -20px;
    top: 800px; 
    max-width: 100px;
  }

  #qui-som {
    padding: 0 2rem;
  }
}

