
/* =====================================================
   INJIGAN ORGANICS - PREMIUM FAQ PAGE
   File: assets/css/faqs.css
   Version: 1.0
===================================================== */

/* 01 - BRAND FOUNDATION */

.io-faq-page {
  --faq-green: #123b2c;
  --faq-deep: #0e3023;
  --faq-gold: #b48431;
  --faq-paper: #fcfaf5;
  --faq-cream: #f4f0e6;
  --faq-line: #e6dfd2;
  --faq-muted: #617164;

  background: var(--faq-paper);
  color: #233a2e;
  font-family: Arial, Helvetica, sans-serif;
}

.io-faq-page *,
.io-faq-page *::before,
.io-faq-page *::after {
  box-sizing: border-box;
}

.io-faq-page .io-faq-shell {
  width: min(1220px, calc(100% - 80px));
  margin-inline: auto;
}

.io-faq-page a {
  text-decoration: none;
}

.io-faq-page a:focus-visible,
.io-faq-page summary:focus-visible {
  outline: 2px solid var(--faq-gold);
  outline-offset: 4px;
}

.io-faq-kicker {
  margin: 0 0 16px;
  color: var(--faq-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.6;
}

/* 02 - HERO SECTION */

.io-faq-hero {
  background: var(--faq-cream);
  border-bottom: 1px solid var(--faq-line);
}

.io-faq-breadcrumb {
  display: flex;
  gap: 11px;
  align-items: center;

  padding-top: 27px;
  color: #7b8178;
  font-size: 12px;
}

.io-faq-breadcrumb a {
  color: var(--faq-green);
  font-weight: 700;
}

.io-faq-breadcrumb a:hover {
  color: var(--faq-gold);
}

.io-faq-hero__grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(0, .92fr);

  gap: clamp(35px, 6vw, 92px);
  align-items: center;
  padding: 56px 0 90px;
}

.io-faq-hero__copy {
  min-width: 0;
}

.io-faq-hero__copy h1 {
  margin: 0 0 24px;
  color: var(--faq-green);

  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(45px, 5.1vw, 74px);
  letter-spacing: -1.9px;
  line-height: 1.09;
}

.io-faq-hero__lead {
  max-width: 515px;
  margin: 0 0 29px;

  color: #596c5e;
  font-size: 16px;
  line-height: 1.85;
}

.io-faq-hero__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;
  gap: 20px;
  padding: 13px 23px;

  background: var(--faq-green);
  border-radius: 7px;
  color: #ffffff;

  font-size: 13px;
  font-weight: 700;

  transition:
    background .2s ease,
    transform .2s ease;
}

.io-faq-hero__link:hover {
  color: #ffffff;
  background: var(--faq-deep);
  transform: translateY(-2px);
}

/* 03 - HERO IMAGE */

.io-faq-hero__visual {
  position: relative;
  min-width: 0;
  padding: 11px;

  background: #fffaf0;
  border: 1px solid #e3dac9;
  border-radius: 15px;

  box-shadow:
    0 20px 50px rgba(17, 56, 39, .07);
}

.io-faq-hero__image {
  display: block;
  width: 100%;
  height: auto;

  aspect-ratio: 1.38;
  object-fit: cover;
  object-position: center;
  border-radius: 9px;
}

.io-faq-hero__image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 12px;
  aspect-ratio: 1.38;

  background: var(--faq-green);
  color: #ffffff;
  border-radius: 9px;
}

.io-faq-hero__image-placeholder span {
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: 3px;
}

.io-faq-hero__image-placeholder small {
  color: #e7bc69;
  font-size: 10px;
  letter-spacing: 2px;
}

.io-faq-hero__image-label {
  position: absolute;
  bottom: 29px;
  left: 28px;
  right: 28px;

  display: block;
  width: fit-content;
  max-width: calc(100% - 56px);

  padding: 9px 13px;
  background: rgba(18, 59, 44, .91);
  border-radius: 4px;

  color: #f5edd9;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

/* 04 - TWO COLUMN FAQ LAYOUT */

.io-faq-main {
  padding: 90px 0 100px;
}

.io-faq-main__grid {
  display: grid;
  grid-template-columns:
    minmax(0, .68fr)
    minmax(0, 1.32fr);

  align-items: start;
  gap: clamp(42px, 7vw, 110px);
}

/* 05 - LEFT EDITORIAL COLUMN */

.io-faq-side {
  min-width: 0;
}

.io-faq-side h2 {
  margin: 0 0 21px;
  color: var(--faq-green);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.2px;
}

.io-faq-side > p:not(.io-faq-kicker) {
  margin: 0 0 24px;
  color: var(--faq-muted);
  font-size: 15px;
  line-height: 1.85;
}

.io-faq-side__link {
  display: inline-flex;
  gap: 10px;
  align-items: center;

  color: var(--faq-gold);
  font-size: 13px;
  font-weight: 800;
}

.io-faq-side__link:hover {
  color: var(--faq-green);
}

/* 06 - FAQ SECTION HEADINGS */

.io-faq-answers {
  min-width: 0;
}

.io-faq-answers h2 {
  margin: 0 0 20px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.2;

  color: var(--faq-green);
}

.io-faq-answers h2:not(:first-child) {
  margin-top: 44px;
}

.io-faq-answers h3 {
  margin: 28px 0 16px;
  color: var(--faq-green);
  font-size: 19px;
}

/* 07 - PREMIUM ACCORDION CARDS */

.io-faq-answers .wp-block-details {
  margin: 0 0 13px;
  padding: 0;

  border: 1px solid var(--faq-line);
  border-radius: 12px;

  background: #ffffff;

  box-shadow:
    0 5px 19px rgba(17, 56, 39, .027);

  overflow: hidden;

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

.io-faq-answers .wp-block-details:hover {
  border-color: #d4c6af;
}

.io-faq-answers .wp-block-details[open] {
  border-color: #c7ae82;

  box-shadow:
    0 10px 25px rgba(17, 56, 39, .055);
}

/* 08 - QUESTION HEADING */

.io-faq-answers .wp-block-details summary {
  position: relative;
  display: block;

  min-height: 70px;
  padding: 23px 62px 22px 25px;
  margin: 0;

  color: var(--faq-green);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;

  list-style: none;
  cursor: pointer;
}

.io-faq-answers
.wp-block-details summary::-webkit-details-marker {
  display: none;
}

/* Plus icon */

.io-faq-answers .wp-block-details summary::after {
  content: "+";

  position: absolute;
  right: 20px;
  top: 50%;

  transform: translateY(-50%);

  display: grid;
  place-items: center;

  width: 31px;
  height: 31px;

  border-radius: 50%;
  background: #f7f3ea;
  border: 1px solid #e7ddc9;

  color: var(--faq-gold);
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

/* 09 - ACTIVE QUESTION */

.io-faq-answers .wp-block-details[open] summary {
  border-bottom: 1px solid #efe8dc;
}

.io-faq-answers .wp-block-details[open] summary::after {
  content: "\2212";

  background: var(--faq-green);
  color: #ffffff;
  border-color: var(--faq-green);
}

/* 10 - ANSWER CONTENT */

.io-faq-answers .wp-block-details > :not(summary) {
  margin: 0;
  padding: 0 25px;

  color: #586b5d;
  font-size: 14px;
  line-height: 1.85;
}

.io-faq-answers .wp-block-details > :nth-child(2) {
  padding-top: 18px;
}

.io-faq-answers .wp-block-details > :last-child {
  padding-bottom: 24px;
}

.io-faq-answers .wp-block-details a {
  color: var(--faq-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.io-faq-answers .wp-block-details ul,
.io-faq-answers .wp-block-details ol {
  padding-left: 45px;
}

/* 11 - EMPTY FAQ STATE */

.io-faq-empty {
  padding: 28px;
  border: 1px solid var(--faq-line);
  border-radius: 12px;
  background: #ffffff;
}

.io-faq-empty h2 {
  font-size: 26px;
}

.io-faq-empty p {
  margin: 0;
  color: var(--faq-muted);
  font-size: 14px;
}

/* 12 - CUSTOMER SUPPORT BANNER */

.io-faq-bottom {
  padding: 0 0 95px;
  background: var(--faq-paper);
}

.io-faq-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;
  padding: 36px 42px;

  background: var(--faq-green);
  border-radius: 15px;
}

.io-faq-bottom .io-faq-kicker {
  color: #e5bb70;
  margin-bottom: 9px;
}

.io-faq-bottom h2 {
  margin: 0 0 10px;

  font-family: Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.17;

  color: #ffffff;
}

.io-faq-bottom p:last-child {
  max-width: 600px;
  margin: 0;

  color: #d2e0d5;
  font-size: 14px;
  line-height: 1.75;
}

.io-faq-bottom__button {
  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 15px;
  min-height: 49px;
  padding: 12px 20px;

  color: #173e2b;
  background: #e9c27b;
  border: 1px solid #e9c27b;
  border-radius: 7px;

  font-size: 13px;
  font-weight: 800;
}

.io-faq-bottom__button:hover {
  color: #173e2b;
  background: #f1d49e;
}

/* 13 - TABLET */

@media (max-width: 900px) {

  .io-faq-page .io-faq-shell {
    width: calc(100% - 48px);
  }

  .io-faq-hero__grid {
    gap: 30px;
  }

  .io-faq-main__grid {
    gap: 35px;

    grid-template-columns:
      minmax(0, .8fr)
      minmax(0, 1.2fr);
  }

}

/* 14 - MOBILE */

@media (max-width: 720px) {

  .io-faq-page .io-faq-shell {
    width: calc(100% - 34px);
  }

  .io-faq-breadcrumb {
    padding-top: 20px;
  }

  .io-faq-hero__grid {
    grid-template-columns: 1fr;
    gap: 27px;
    padding: 40px 0 54px;
  }

  .io-faq-hero__copy h1 {
    font-size: clamp(43px, 10vw, 60px);
  }

  .io-faq-hero__lead {
    font-size: 15px;
  }

  .io-faq-main {
    padding: 60px 0 70px;
  }

  .io-faq-main__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .io-faq-side h2 {
    font-size: 36px;
  }

  .io-faq-bottom {
    padding-bottom: 65px;
  }

  .io-faq-bottom__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 27px 24px;
  }

  .io-faq-bottom__button {
    align-self: flex-start;
  }

  .io-faq-answers .wp-block-details summary {
    min-height: 61px;
    padding: 19px 57px 19px 19px;
  }

  .io-faq-answers .wp-block-details > :not(summary) {
    padding-left: 19px;
    padding-right: 19px;
  }

  .io-faq-answers .wp-block-details > :last-child {
    padding-bottom: 19px;
  }

}

/* 15 - ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

  .io-faq-page *,
  .io-faq-page *::before,
  .io-faq-page *::after {
    transition: none !important;
  }

}

/* END INJIGAN FAQ CSS */
