/* ───────── Reset / Base ───────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #fafafa;
  color: #1a1a1a;
  font-family: 'Work Sans', 'Nunito Sans', Arial, sans-serif;
  min-height: 100%;
}

/* ───────── Header / Nav ───────── */
header {
  width: 100%;
  padding-top: 22px;
  padding-right: 55px;
  box-sizing: border-box;
  min-height: 70px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  flex-wrap: wrap;
  position: relative;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 32px;
  flex: 1;
}

.nav li a {
  text-decoration: none;
  font-family: 'Nunito Sans', 'Work Sans', Arial, sans-serif;
  color: #a4a29e;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s ease;
  padding: 0 7px;
}

.nav li a.active,
.nav li a:hover,
.nav li a:focus-visible {
  color: #2e3739;
  outline: none;
}

/* ───────── Burger Menu ───────── */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #2e3739;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Optional "X" animation when JS toggles .open on #burger */
.burger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ───────── Contact Title ───────── */
.contact-title {
  font-size: 39px;
  font-family: 'Work Sans', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 100px;
  margin-left: 38px;
  margin-bottom: 30px;
  letter-spacing: 0.06em;
  text-align: center;
}

/* ───────── Footer ───────── */
footer {
  width: 100%;
  text-align: center;
  color: #a4a29e;
  font-family: 'Nunito Sans', 'Work Sans', Arial, sans-serif;
  font-size: 15px;
  margin-bottom: 28px;
}

.social {
  margin-top: 38px;
  margin-bottom: 6px;
}

.instagram-icon {
  width: 24px;
  height: 24px;
  opacity: 0.62;
  transition: opacity 0.18s ease, filter 0.18s ease;
  filter: grayscale(45%);
}
.instagram-icon:hover,
.instagram-icon:focus-visible {
  opacity: 1;
  filter: none;
  outline: none;
}

.copyright {
  margin-top: 0;
  letter-spacing: 0.02em;
  color: #727060;
}

footer li {
  list-style-type: none;
  margin-top: 10px;
}

.privacy {
  font-family: 'Nunito Sans', 'Work Sans', Arial, sans-serif;
  color: #74726f;
  font-size: 1rem;
  letter-spacing: 0.06em;
  transition: color 0.15s ease;
  padding: 0 7px;
}
.privacy:hover,
.privacy:focus-visible {
  color: #2e3739;
  outline: none;
}

/* ───────── Responsive header tweaks ───────── */
@media (max-width: 900px) {
  .contact-title {
    font-size: 29px;
    margin-top: 60px;
    margin-left: 18px;
  }
  .nav ul {
    gap: 18px;
  }
  header { padding-right: 10px; }
}

/* ───────── Contact Section / Form ───────── */
.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 65px;
}

.contact-form {
  background: #fff;
  padding: 38px 32px 32px 32px;
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0px 2px 18px 1px rgba(220, 220, 210, 0.15);
  display: flex;
  flex-direction: column;
  gap: 27px;
  border: 1.6px solid #ededeb;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-form label {
  color: #727060;
  font-size: 16px;
  font-family: 'Nunito Sans', 'Work Sans', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-form input,
.contact-form textarea {
  font-family: 'Work Sans', 'Nunito Sans', Arial, sans-serif;
  padding: 13px 12px;
  font-size: 18px;
  border: 1.4px solid #ccc1ac;
  border-radius: 8px;
  background: #fafaf9;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  resize: none;
}

/* Focus states */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #bda04b;
  box-shadow: 0 1px 2px #e5e0d2, 0 0 0 2px rgba(189, 160, 75, 0.15);
  outline: none;
  background: #fff;
}

/* Error / success helper classes (JS can toggle) */
.contact-form .has-error input,
.contact-form .has-error textarea {
  border-color: #d43f3a;
  box-shadow: 0 0 0 2px rgba(212, 63, 58, 0.12);
}

.contact-form .has-success input,
.contact-form .has-success textarea {
  border-color: #1b9e3e;
  box-shadow: 0 0 0 2px rgba(27, 158, 62, 0.12);
}

/* Button */
.send-btn {
  margin-top: 6px;
  padding: 14px 0;
  background: linear-gradient(92deg, #bda04b 0%, #d1c5ab 100%);
  color: #fff;
  border: none;
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: 18px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.06em;
  box-shadow: 0 1px 10px 0 #e9e2d1;
  transition: background 0.16s ease, color 0.12s ease, transform 0.06s ease;
}

.send-btn:hover,
.send-btn:focus-visible {
  background: linear-gradient(92deg, #a59354 0%, #bda04b 100%);
  color: #fffbe6;
  transform: translateY(-1px);
  outline: none;
}

/* Disabled state while sending */
.send-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  filter: grayscale(18%);
  transform: none;
}

/* ───────── Status message below the button ───────── */
.form-status {
  margin-top: 1rem;
  font-family: inherit;
  font-size: 1rem;
  text-align: center;
  min-height: 1.2em; /* keeps space even before message appears */
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0.95;
}

.form-status.success { color: #1b9e3e; }
.form-status.error   { color: #d43f3a; }

/* Subtle fade-in each update */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}
.form-status { animation: fadeIn 0.4s ease; }

/* ───────── Responsive Nav (burger) ───────── */
@media (max-width: 768px) {
  header { padding: 20px; }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .burger {
    display: flex;
    align-self: flex-end;
    margin-bottom: 10px;
  }

  .nav ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: #fafafa;
    border-top: 1px solid #ddd;
    gap: 16px;
  }

  .nav ul.open { display: flex; }

  .nav li { width: 100%; }

  .nav li a {
    padding: 10px 0;
    font-size: 16px;
  }
}

/* ───────── Small screens form padding ───────── */
@media (max-width: 600px) {
  .contact-form {
    padding: 17px 6vw 21px 6vw;
    max-width: 97vw;
  }
}

/* ───────── Reduced motion preference ───────── */
@media (prefers-reduced-motion: reduce) {
  .send-btn,
  .instagram-icon,
  .nav li a,
  .form-status {
    transition: none !important;
    animation: none !important;
  }
}
