/* =========================================================
   SEBAYTE FOOTER & CONTACT FORM
   Organized footer, contact form, map, and responsive styles.
========================================================= */


/* =========================================================
   1. FOOTER LAYOUT
========================================================= */

footer {
  display: grid;
  grid-template-columns: 1fr;
 
  align-items: center;
  justify-items: center;
  text-align: center;

  padding: 5rem;
  background-color: #3d336f;
  color: white;

}


/* =========================================================
   2. FOOTER INFORMATION
========================================================= */

.footer-left {
  margin: 2rem;
  padding: 2rem;
}

.talk h1 {
  margin-top: 2rem;

  color: yellow;
  font-size: clamp(2rem, 4vw, 5rem);
  text-align: center;
}

.talk-info {
  color: white;
  font-size: clamp(.8rem, 2vw, 2.5rem);
  line-height: 1.8rem;
  text-align: center;
}



/* =========================================================
   3. MAP
========================================================= */

.map iframe {
  width: 100%;
  max-width: 300px;
  height: 300px;

  border: 5px solid #f3ef04;
}


/* =========================================================
   4. CONTACT SECTION
========================================================= */

.contact-section {
  width: min(100%, 500px);
  min-height: 500px;
  padding: 12px 10px 10px;

  background-color: #3d336f;
  text-align: center;
}


/* =========================================================
   5. CONTACT FORM CONTAINER
========================================================= */

.contact-form {
  width: 100%;
  min-height: 241px;
  padding: 19px 17px 12px;

  background-color: #f9fcff;
  border-radius: 6px;
}


/* =========================================================
   6. FORM HEADING
========================================================= */

.form-heading {
  position: relative;
  min-height: 39px;
}

.form-heading h2 {
  margin: 0;

  color: #5e17eb;
  font-size: clamp(1rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
}

.form-arrow {
  position: absolute;
  top: -8rem;
  left: 36%;

  width: 5rem;
  height: 5rem;

  fill: #ffffff;
  transform: rotate(-4deg);
}


/* =========================================================
   7. FORM GROUPS & LABELS
========================================================= */

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #5e17eb;
  font-size: clamp(1rem, 2vw, 4rem);
  font-weight: 700;
}


/* =========================================================
   8. FORM INPUTS & TEXTAREA
========================================================= */

.form-group input,
.form-group textarea {
  display: block;
  width: 100%;

  border: 1px solid #917ff5;
  border-radius: 2px;
  background-color: #f9fcff;
  color: #3d336f;

  font: inherit;
  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.form-group input {
  height: 23px;
  padding: 1.5rem;
}

.form-group textarea {
  min-height: 8rem;
  padding: 1.5rem;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #5e17eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgb(94 23 235 / 15%);
}


/* =========================================================
   9. SUBMIT BUTTON
========================================================= */

.contact-form button {
  width: 100%;
  min-height: 25px;
  padding: 2rem;

  border: none;
  border-radius: 9px;
  background-color: #ff65e7;
  color: #5e17eb;

  font-size: clamp(1rem, 2.5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.2px;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form button:hover {
  background-color: #f64bdc;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgb(0 0 0 / 15%);
}

.contact-form button:active {
  transform: translateY(0);
}

.contact-form button:focus-visible {
  outline: 3px solid rgb(94 23 235 / 35%);
  outline-offset: 2px;
}


/* =========================================================
   10. COPYRIGHT SECTION
========================================================= */

.copyright {
  display: grid;
  grid-template-rows: 1fr 1fr;
  align-items: center;

  width: 100%;
  max-width: 100%;
  padding: 2rem;

  border-top: 1px solid grey;
  background-color: #3d336f;
  color: white;

  font-size: clamp(0.5rem, 1.5vw, 1rem);
  font-weight: 100;
  text-align: center;
  gap: 10px;
  letter-spacing: 2px;
}

.copyright a {
  color: inherit;
  text-decoration: underline;
}



/* =========================================================
   LEGAL PAGE FOOTER
========================================================= */

.legal-footer {
  display: grid;
  justify-items: center;
  gap: 1.25rem;

  width: 100%;
  padding: 3rem 1rem 1.5rem;

  background-color: #40346f;
  color: white;
  text-align: center;
}


/* ---------- Footer logo ---------- */

.legal-footer-logo {
  display: block;

  width: clamp(10rem, 20vw, 15rem);
  max-width: 100%;
  height: auto;

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.legal-footer-logo:hover {
  transform: translateY(-4px) rotate(-2deg) scale(1.03);
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.2));
}


/* ---------- Footer navigation ---------- */

.legal-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;

  width: min(100%, 40rem);
  margin: 0;
  padding: 1.25rem 0;

  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);

  list-style: none;
}

.legal-footer-links a {
  display: block;
  padding: 0.55rem 0.9rem;

  color: #ffe66d;
  border-radius: 999px;

  font-weight: 800;
  text-decoration: none;

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.legal-footer-links a:hover,
.legal-footer-links a[aria-current="page"] {
  color: #40346f;
  background-color: #ffe66d;

  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.legal-footer-links a:focus-visible {
  outline: 4px solid #ffe66d;
  outline-offset: 4px;
}


/* ---------- Copyright ---------- */

.legal-footer p {
  margin: 0;

  color: white;
  font-size: clamp(0.8rem, 2vw, 1rem);
  line-height: 1.5;
}


/* ---------- Mobile footer ---------- */

@media (max-width: 600px) {
  .legal-footer {
    gap: 1rem;
    padding: 2.5rem 1rem 1.25rem;
  }

  .legal-footer-logo {
    width: clamp(9rem, 45vw, 12rem);
  }

  .legal-footer-links {
    flex-direction: column;
    gap: 0.35rem;

    width: 100%;
  }

  .legal-footer-links li,
  .legal-footer-links a {
    width: 100%;
  }

  .legal-footer-links a {
    padding: 0.7rem 1rem;
  }
}


/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .legal-footer-logo,
  .legal-footer-links a {
    transition: none;
  }
}



/* 15. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* =========================================================
   12. MOBILE LAYOUT — 800px AND SMALLER
========================================================= */

@media (max-width: 960px) {
  footer {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    padding: 3rem 1.5rem;
    text-align: center;
   
  }

  .footer-left {
    margin: 1rem;
    padding: 1rem;
  }

  .talk h1 {
    text-align: center;
  }


  .contact-section {
   /* width: min(50rem, 40vw, 400px);*/
    min-height: 500px;
    padding: 12px 10px 10px;
    margin: 0 auto;
  }

  .map iframe {
    max-width: 100%;
  }
}


/* =========================================================
   13. REDUCED-MOTION ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .form-group input,
  .form-group textarea,
  .contact-form button {
    transition: none;
  }
}