/* ====== Базовий reset ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-size: 30% auto;
  background-repeat: repeat;
  background-position: center;
  background-attachment: fixed;
}

/* ===== Variables ===== */
:root {
  --clr-text: #111;
  --clr-bg-input: rgba(255, 255, 255, 0.6);
  --clr-input-focus: #fff;
  --clr-input-shadow: rgba(0, 0, 0, 0.2);
  --clr-btn-bg: #000;
  --clr-btn-text: #ffeb3b;
  --font-base: "Roboto", sans-serif;
  --font-heading: "Comfortaa", cursive;
}

/* ====== Header ====== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffe235;
  padding: 1vw 5vw 0vw 7vw;
}

nav a {
  font-family: "Roboto", sans-serif;
  text-decoration: none;
  font-weight: bold;
  color: #444141;
  font-weight: 100;
  font-size: 1.3vw;
  margin-left: 1vw;
}

.logo img {
  height: 15vh;
}

.active-page {
  color: #000000;
  font-weight: bolder;
  font-size: 1.4vw;
}
/* ===== Contacts Section ===== */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  margin: 0vw 25vw;
}

.detail {
  width: 25%;
  /* background: #fff; */
  border-radius: 8px;
  padding: 10px;
  /* box-shadow: 0 1px 4px rgba(0,0,0,0.1); */
  text-align: left;
}

.detail span {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
  color: #2e7d32; /* темно-зелений */
}

.detail p {
  margin: 0;
  color: #333;
  font-size: 14px;
}

#map {
  height: 300px;
  width: 50%;
  border-radius: 12px;
  margin: 0 25vw;
}

h1 {
  text-align: center;
  margin: 1vh 0;
}

.contact-hero {
  margin-top: 30px;
  text-align: center;
}

.contact-hero h1 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--clr-text);
}

/* ==== Форма ==== */
.form-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 0 25vw;
}

.form-group {
  display: flex;
  text-align: start;
  flex-direction: column;
  width: 100%;
  margin-bottom: 15px;
}

.form-group label {
  margin-bottom: 8px;
  font-size: 15px;
  font-family: var(--font-heading);
}

.form-group input,
.form-group select {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 8px;
  background-color: #ffffff;
  padding-left: 10px;
  font-size: 16px;
}

/* ===== Submit Button ===== */
.form-actions {
  text-align: center;
  margin-top: 30px;
  padding-bottom: 80px;
}

.form-actions button {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  position: static;
  transform: none;
  background: var(--clr-btn-bg);
  color: var(--clr-btn-text);
  border: none;
  border-radius: 25px;
  padding: 12px 25px;
  cursor: pointer;
  transition: background 0.3s;
  width: 90%;
  max-width: 300px;
  margin: 0 auto;
}

.form-actions button:hover {
  background: #333;
}

.message {
  font-size: 14px;
}
@media (max-width: 1200px) {
  nav a {
    font-size: 16px;
  }

  .active-page {
    font-size: 17px;
  }

  .form-actions button {
    font-size: 20px;
  }

  .logo img {
    height: 15vh;
  }
  .contact-details {
    margin: 0 15vw;
  }

  .form-row {
    padding: 0 15vw;
  }

  #map {
    width: 70%;
    margin: 0 15vw;
  }
}
/* ========================= */
/* ===  MOBILE ADAPTIVE  === */
/* ========================= */

@media (max-width: 768px) {

  /* HEADER */
  header {
    background: none;
    padding: 2vh 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* прибираємо десктоп-меню — працює hamburger */
  nav a {
    display: none;
  }

  .logo img {
    height: 20vw;
    width: auto;
  }

  /* CONTACT HERO */
  .contact-hero {
    padding: 0 5vw;
    margin-top: 2vh;
    text-align: center;
  }

  .contact-hero h1 {
    font-size: 6vw;
    font-family: var(--font-heading);
  }

  /* CONTACT DETAILS */
  .contact-details {
    margin: 0 5vw;
    display: flex;
    flex-wrap: wrap;
    gap: 4vw;
    justify-content: center;
  }

  .detail {
    width: 45%;
    text-align: center;
    padding: 2vw;
  }

  .detail span {
    font-size: 4vw;
  }

  .detail p {
    font-size: 3.3vw;
  }

  /* MAP */
  #map {
    width: 90%;
    margin: 4vh auto;
    height: 220px;
    border-radius: 12px;
  }

  /* FORM */
  .form-row {
    flex-direction: column;
    gap: 2vh;
    padding: 0 5vw;
  }

  .form-group {
    width: 100%;
  }

  .form-group label {
    font-size: 4vw;
    margin-bottom: 1vw;
  }

  .form-group input,
  .form-group select {
    width: 100%;
    height: 6vh;
    font-size: 4vw;
    border-radius: 2vw;
    padding-left: 2vw;
  }

  /* BUTTON */
  .form-actions {
    margin-top: 4vh;
    text-align: center;
  }

  .form-actions button {
    font-size: 5vw;
    padding: 2vw 6vw;
    border-radius: 6vw;
    width: auto;
  }

  .message {
    font-size: 3vw;
    margin-top: 2vh;
  }
}

/* ===== Extra small screens ===== */
@media (max-width: 450px) {

  .detail {
    width: 48%;
    padding: 2vw 0;
  }

  .detail span,
  .detail p {
    font-size: 4vw;
  }

  .form-actions button {
    font-size: 7vw;
    padding: 3vw 6vw;
  }

  h1 {
    font-size: 8vw;
    margin-left: 5vw;
    text-align: left;
  }

  #map {
    height: 200px;
  }
}
