/* 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: #fcfbfa;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Lora", serif;
}

img,
iframe {
  max-width: 100%;
}

iframe {
  border: 0;
}

main section {
  scroll-margin-top: 6rem;
}

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

.eyebrow {
  color: #b46b4d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f5c7aa;
}

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

/* ========== Header & Logo ========== */
header {
  background: rgba(252, 251, 250, 0.94);
  backdrop-filter: blur(0.75rem);
  border-bottom: 1px solid rgba(32, 32, 31, 0.1);
  min-height: 5.25rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: none;
  min-height: 5.25rem;
  position: relative;
  padding-left: 13rem;
  padding-right: clamp(1rem, 4vw, 4rem);
}

.logo-img {
  height: 11.25rem;
  width: 11.25rem;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 92%;
  left: clamp(1rem, 4vw, 3rem);
  transform: translateY(-50%);
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.14);
  z-index: 20;
  transition: top 0.4s ease;
}

.logo-img.logo-scrolled {
  top: 10%;
}

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

nav a {
  text-decoration: none;
  color: #2b2b2b;
  font-size: 0.95rem;
  font-weight: 600;
}

nav a:hover {
  color: #2e5c50;
}

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

nav a.button {
  background-color: #2e5c50;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
}

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 {
  display: grid;
  align-items: end;
  min-height: min(42rem, calc(100vh - 5.25rem));
  background:
    linear-gradient(rgba(9, 20, 17, 0.2), rgba(9, 20, 17, 0.66)),
    url("images/banner.jpg") center / cover;
  color: #fff;
  padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 6vw, 6rem);
  text-align: left;
}

.hero-copy {
  max-width: 49rem;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 5.6vw, 5.25rem);
  font-weight: 600;
  line-height: 1.05;
}

.hero p:not(.eyebrow) {
  max-width: 42rem;
  margin-top: 1rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-button--primary {
  background: #2e5c50;
  color: #fff;
}

.hero-button--primary:hover {
  background: #244b42;
}

.hero-button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
}

.hero-button--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ========== Section Headings ========== */
.section-heading {
  max-width: 44rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-heading h3 {
  font-size: clamp(2.2rem, 3.6vw, 3.35rem);
  margin-bottom: 0;
  color: #333;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.3px;
}

.section-heading p:not(.eyebrow) {
  color: #66625c;
  margin-top: 0.75rem;
}

.preview .container,
.consign .container,
.about .container,
.testimonials .container,
.faq .container,
.contact .container {
  max-width: 72rem;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

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

.consign h4 + p {
  margin-top: 0.35rem;
}

.consign h4:not(:first-of-type) {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(46, 92, 80, 0.18);
}

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

.portal-note {
  margin-top: 1.25rem;
  padding-left: 1rem;
  border-left: 0.2rem solid rgba(46, 92, 80, 0.35);
}

.portal-note strong {
  color: #4f8f42;
  font-weight: 700;
}

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

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

/* ========== Instagram Widget ========== */
.lightwidget-widget {
  width: 100%;
  max-width: 100%;
  min-height: 22rem;
  height: auto;
  border: 0;
  overflow: hidden;
  background: #e6e3dd;
}

.widget-fallback {
  margin-top: 1rem;
  color: #66625c;
  font-size: 0.95rem;
  text-align: center;
}

.widget-fallback a {
  color: #2e5c50;
  font-weight: 700;
  text-decoration: none;
}

.widget-fallback a:hover {
  text-decoration: underline;
}

/* ========== 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-list {
  display: grid;
  gap: 0;
}

.faq-group {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid #ded8cf;
  box-shadow: 0 0.7rem 2rem rgba(30, 32, 30, 0.05);
}

.faq-question {
  background: transparent;
  color: #2b2b2b;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 1rem 3rem 1rem 1.15rem;
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.15rem;
  color: #2e5c50;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-question.active::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 1.15rem 1.15rem;
  background: transparent;
  color: #66625c;
}

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

.faq-answer p {
  margin-top: 0.75rem;
}

.faq-answer-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 13rem);
  gap: 1.25rem;
  align-items: start;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

.faq-image {
  display: block;
  width: 100%;
  max-height: 18rem;
  object-fit: contain;
  border: 1px solid #ded8cf;
  background: #fff;
}

@media (min-width: 64rem) {
  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 2rem;
  }

  .faq-answer-content {
    grid-template-columns: 1fr;
  }

  .faq-image {
    max-width: 16rem;
  }
}

/* ========== Contact ========== */
.contact-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: center;
  margin: 0.5rem 0 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.contact-detail p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.contact-detail a {
  color: #2e5c50;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-detail a:hover {
  text-decoration: underline;
}

.contact-icon {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  color: #2e5c50;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========== Footer ========== */
footer {
  background-color: #2e5c50;
  color: #fff;
  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: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

footer svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  vertical-align: middle;
  margin-right: 0.25rem;
}

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

/* ========== Backgrounds ========== */
.about,
.faq,
.preview {
  background-image:
    linear-gradient(rgba(242, 238, 231, 0.9), rgba(242, 238, 231, 0.9)),
    url("images/pattern-background-10.png");
  background-repeat: repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: auto, 52rem auto;
}

/* ========== Responsive / Mobile Adjustments ========== */
@media (max-width: 48rem) {
  main section {
    scroll-margin-top: 5rem;
  }

  .container {
    padding: 1.5rem 1rem;
  }

  header {
    height: auto;
    min-height: 4.75rem;
  }

  .menu-toggle {
    display: block;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    min-width: 2.75rem;
    min-height: 2.75rem;
    line-height: 1;
  }

  .header-flex {
    justify-content: space-between;
    align-items: center;
    min-height: 4.75rem;
    padding-left: 0;
    padding: 0.5rem 4.75rem 0.5rem 1rem;
  }

  .header-flex > a {
    display: flex;
    align-items: center;
    height: 3.75rem;
  }

  .logo-img {
    display: block;
    position: relative;
    top: auto;
    height: 3.75rem;
    width: 3.75rem;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(0.75rem);
    animation: slideFadeIn 0.8s ease-out forwards;
  }

  .logo-img.logo-scrolled {
    top: auto;
  }

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

  nav#mobile-menu ul {
    display: none;
    flex-direction: column;
    background: #fcfbfa;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 100%;
    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;
  }

  nav#mobile-menu a {
    display: block;
    padding: 0.45rem 1rem;
  }

  nav#mobile-menu a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.72rem 1.15rem;
    line-height: 1;
    margin-top: 0.25rem;
  }

  .hero {
    min-height: 38rem;
    padding: 5rem 1rem 4rem;
  }

  .hero h1 {
    line-height: 1.2;
  }

  .hero-actions {
    gap: 0.65rem;
  }

  .hero-button {
    width: 100%;
  }

  .section-heading {
    text-align: left;
  }

  .section-heading h3 {
    line-height: 1.25;
  }

  .about,
  .faq,
  .preview {
    background-attachment: scroll;
    background-size: auto, 36rem auto;
  }

  .lightwidget-widget {
    min-height: 18rem;
  }

  .faq-answer-content {
    grid-template-columns: 1fr;
  }

  .faq-image {
    max-width: 16rem;
  }

  .contact .map iframe {
    height: 16rem;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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