/* Follows a roughly SMACSS/BEM-lite mindset */

/* ========== Base / Reset ========== */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #2b2b2b;
  background-color: #fdfcf9;
  line-height: 1.6;
}

/* ========== Typography & Utilities ========== */
.note {
  margin-top: 1rem;
  font-style: italic;
  font-size: 0.95rem;
  color: #666;
}

.note--compact {
  margin-top: -0.5rem;
}

.note--spacious {
  margin-top: 1.25rem;
}

.stacked-paragraph {
  margin-bottom: 1.5rem;
}

ol {
  margin: 1rem 0;
  padding-left: 1.2rem;
}

/* ========== Layout ========== */
.container {
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 2rem;
}

/* ========== Header & Logo ========== */
header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  height: 5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  position: relative;
  padding-left: 10rem;
}

.logo-img {
  height: 11.25rem;
  width: 11.25rem;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 90%;
  left: 1.25rem;
  transform: translateY(-50%);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  z-index: 20;
  transition: top 0.4s ease;
}

.logo-img.logo-scrolled {
  top: 14%;
  transition: top 0.4s ease;
}

/* ========== Navigation ========== */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-end;
}

nav a {
  text-decoration: none;
  color: #2b2b2b;
  font-weight: 500;
}

nav a:focus-visible {
  outline: 0.125rem solid #2e5c50;
  outline-offset: 0.25rem;
}

nav a.button {
  background-color: #2e5c50;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
}

nav a.button:hover {
  background-color: #244b42;
}

nav a.active {
  border-bottom: 0.125rem solid #2e5c50;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #2b2b2b;
  cursor: pointer;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 30;
}

/* ========== Hero Section ========== */
.hero {
  background-image: url("images/banner.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.4);
  padding: 6rem 2rem;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ========== Section Headings ========== */
.preview h3,
.consign h3,
.about h3,
.contact h3,
.testimonials h3,
.faq h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.consign h4 {
  margin-top: 1.25rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2e5c50;
  letter-spacing: 0.3px;
}

.consign p + p,
.about p + p {
  margin-top: 0.75rem;
}

.portal-note {
  margin-top: 1.25rem;
}

.portal-link {
  font-weight: bold;
  color: #2e5c50;
  text-decoration: none;
}

.portal-link:hover {
  text-decoration: underline;
}

/* ========== Instagram Widget ========== */
.lightwidget-widget {
  max-width: 100%;
  height: auto;
}

/* ========== Team Grid ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.75rem, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.team-photo {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}

/* ========== Testimonials ========== */
.testimonials blockquote {
  font-style: italic;
  background: #f3f3f3;
  padding: 1rem 1.5rem;
  border-left: 0.3125rem solid #2e5c50;
  margin: 1.5rem 0;
}

/* ========== FAQ Accordion ========== */
.faq-question {
  background: #f1f1f1;
  color: #2b2b2b;
  font-family: "Poppins", sans-serif;
  /* Locking it down explicitly since it keeps falling back unexpectedly */
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 0.75rem 1rem;
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
}

.faq-answer {
  display: none;
  padding: 0.5rem 1rem 1rem;
  background: #fafafa;
}

.faq-question.active + .faq-answer {
  display: block;
}

/* ========== Forms ========== */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

form label {
  font-weight: 500;
  margin-bottom: 0.1rem;
  display: inline-block;
}

form input,
form select,
form textarea,
form button {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
}

form textarea {
  resize: vertical;
}

form button {
  background-color: #2e5c50;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #244b42;
}

form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #2b2b2b;
  min-height: 1.5rem;
}

.form-status--success {
  color: #1b6b46;
}

.form-status--error {
  color: #a32121;
}

/* ========== Footer ========== */
footer {
  background-color: #eee;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

footer a {
  color: #333;
  text-decoration: none;
}

.footer-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 0.25rem;
  filter: grayscale(100%) brightness(0);
}

/* ========== Backgrounds ========== */
.about,
.faq,
.preview {
  background-image: url("images/pattern-background-10.png");
  background-repeat: repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: contain;
}

/* ========== Responsive / Mobile Adjustments ========== */
@media (max-width: 48rem) {
  .menu-toggle {
    display: block;
  }

  .header-flex {
    flex-direction: column;
    align-items: center;
    padding-left: 0;
    padding-top: 6.25rem;
  }

  .logo-img {
    position: relative;
    top: -0.2rem;
    transform: none;
    margin-bottom: 0.7rem;
    height: 8.75rem;
    width: 8.75rem;

    /* Fade + slide on load (mobile only) */
    opacity: 0;
    transform: translateY(0.75rem);
    animation: slideFadeIn 0.8s ease-out forwards;
  }

  .logo-img.logo-scrolled {
    top: -0.2rem;
    /* Preventing scroll animation from applying */
  }

  @keyframes slideFadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  nav#mobile-menu ul {
    display: none;
    flex-direction: column;
    background: #fff;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 5rem;
    left: 0;
    z-index: 25;
    padding: 1rem 0;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
  }

  nav#mobile-menu ul.show {
    display: flex;
  }

  footer ul {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}
