
/* ==================================================
   INJIGAN ORGANICS
   PREMIUM OUR STORY PAGE
   File: assets/css/story.css
================================================== */

.inj-story-page {
  --story-green: #14412e;
  --story-dark: #0d3224;
  --story-gold: #b48630;
  --story-cream: #f5f1e6;
  --story-paper: #fcfaf5;
  --story-text: #24322b;
  --story-muted: #667467;
  --story-line: #e2ded3;

  background: var(--story-paper);
  color: var(--story-text);
  overflow: hidden;
}

.inj-story-page *,
.inj-story-page *::before,
.inj-story-page *::after {
  box-sizing: border-box;
}

.inj-story-page .wrap {
  width: min(1240px, calc(100% - 80px));
  max-width: 1240px;
  margin-inline: auto;
}

/* 01 - EYEBROW */

.inj-story-eyebrow {
  margin: 0 0 22px;
  color: #a47728;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.6;
  text-transform: uppercase;
}

/* 02 - HERO */

.inj-story-hero {
  background: var(--story-cream);
  border-bottom: 1px solid var(--story-line);
}

.inj-story-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;

  padding-top: 75px;
  padding-bottom: 75px;
}

.inj-story-hero__copy {
  padding: 20px 0;
}

.inj-story-hero__copy h1 {
  max-width: 650px;
  margin: 0 0 25px;

  color: var(--story-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -2.5px;
}

.inj-story-hero__intro {
  max-width: 520px;
  margin: 0 0 32px;

  color: #586b5d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.85;
}

.inj-story-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  min-height: 53px;
  padding: 15px 26px;

  color: #fff;
  background: var(--story-green);

  border: 1px solid var(--story-green);
  border-radius: 7px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;

  transition:
    background-color .2s ease,
    transform .2s ease;
}

.inj-story-btn:hover {
  color: #fff;
  background: var(--story-dark);
  transform: translateY(-2px);
}

.inj-story-hero__visual {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 12px;

  background: #fffaf0;
  border: 1px solid #e6ddcb;
  border-radius: 16px;

  box-shadow: 0 20px 55px rgba(20, 65, 46, .07);
}

.inj-story-hero__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;

  object-fit: cover;
  object-position: center;

  border-radius: 9px;
}

.inj-story-hero__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;

  width: 100%;
  aspect-ratio: 4 / 5;

  color: #fff;
  background: var(--story-green);
  border-radius: 9px;
}

.inj-story-hero__placeholder span {
  font-family: Georgia, serif;
  font-size: clamp(32px, 4vw, 58px);
  letter-spacing: 4px;
}

.inj-story-hero__placeholder small {
  color: #e8b85b;
  font-size: 11px;
  letter-spacing: 3px;
}

/* 03 - EDITABLE STORY CONTENT */

.inj-story-editorial {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(45px, 6vw, 100px);
  align-items: start;

  padding-top: 100px;
  padding-bottom: 110px;
}

.inj-story-editorial__heading h2 {
  max-width: 470px;

  color: var(--story-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(39px, 4vw, 57px);
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 1.14;
}

.inj-story-editorial__content {
  min-width: 0;
  color: #526357;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.95;
}

.inj-story-editorial__content p {
  margin: 0 0 24px;
}

.inj-story-editorial__content h2,
.inj-story-editorial__content h3 {
  margin: 32px 0 18px;

  color: var(--story-green);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
}

.inj-story-editorial__content h2 {
  font-size: clamp(29px, 3vw, 42px);
}

.inj-story-editorial__content h3 {
  font-size: 28px;
}

.inj-story-editorial__content ul,
.inj-story-editorial__content ol {
  padding-left: 24px;
  margin: 16px 0 25px;
}

.inj-story-editorial__content li {
  margin-bottom: 10px;
}

.inj-story-editorial__content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.inj-story-editorial__content figure {
  max-width: 100%;
  margin: 30px 0;
}

.inj-story-editorial__content figcaption {
  margin-top: 10px;
  color: var(--story-muted);
  font-size: 12px;
  text-align: center;
}

.inj-story-editorial__content a {
  color: var(--story-green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 04 - DYNAMIC PRODUCT SECTION */

.inj-story-collection {
  padding: 90px 0 110px;

  background: #f5f1e6;
  border-top: 1px solid var(--story-line);
}

.inj-story-collection__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}

.inj-story-collection__heading h2 {
  max-width: 700px;
  margin: 0;

  color: var(--story-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -1.4px;
}

.inj-story-view-all {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;

  padding: 12px 20px;
  color: var(--story-green);
  border: 1px solid #bb985d;
  border-radius: 7px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;

  transition:
    background-color .2s ease,
    color .2s ease;
}

.inj-story-view-all:hover {
  color: #fff;
  background: var(--story-green);
  border-color: var(--story-green);
}

.inj-story-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.inj-story-product-card {
  min-width: 0;
  overflow: hidden;

  background: #fff;
  border: 1px solid #e2ddd2;
  border-radius: 13px;
  box-shadow: 0 6px 22px rgba(20, 65, 46, .035);

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.inj-story-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(20, 65, 46, .10);
}

.inj-story-product-card > a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.inj-story-product-card__photo {
  overflow: hidden;
  background: #efeee6;
}

.inj-story-product-card__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;

  object-fit: cover;
  object-position: center;
}

.inj-story-product-card h3 {
  margin: 0;
  padding: 21px 20px 7px;

  color: var(--story-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.25;
}

.inj-story-product-card__link {
  display: inline-block;
  margin: 0 20px 24px;
  color: #a17428;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

/* 05 - RESPONSIVE */

@media (max-width: 1000px) {

  .inj-story-hero__grid {
    gap: 32px;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .inj-story-editorial {
    gap: 42px;
    padding-top: 75px;
    padding-bottom: 85px;
  }

  .inj-story-product-grid {
    gap: 15px;
  }

}

@media (max-width: 760px) {

  .inj-story-page .wrap {
    width: calc(100% - 36px);
  }

  .inj-story-hero__grid {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 45px;
    padding-bottom: 55px;
  }

  .inj-story-hero__copy {
    padding: 0;
  }

  .inj-story-hero__copy h1 {
    font-size: clamp(48px, 11vw, 66px);
  }

  .inj-story-hero__intro {
    font-size: 15px;
  }

  .inj-story-hero__visual {
    max-width: 550px;
  }

  .inj-story-hero__image {
    aspect-ratio: 5 / 4;
  }

  .inj-story-editorial {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 65px;
    padding-bottom: 70px;
  }

  .inj-story-collection {
    padding: 65px 0 80px;
  }

  .inj-story-collection__heading {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }

  .inj-story-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 490px) {

  .inj-story-product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .inj-story-product-card h3 {
    font-size: 25px;
  }

  .inj-story-hero__image {
    aspect-ratio: 4 / 5;
  }

}

@media (prefers-reduced-motion: reduce) {

  .inj-story-page *,
  .inj-story-page *::before,
  .inj-story-page *::after {
    transition: none !important;
  }

}

/* END INJIGAN OUR STORY CSS */


/* ================================================
   INJIGAN ORGANICS — OUR STORY RESPONSIVE
   File: assets/css/story-responsive-final.css
   Original story.css remains unchanged
================================================ */

/* GENERAL SAFETY */

.inj-story-page img,
.inj-story-page video,
.inj-story-page iframe {
    max-width: 100%;
}

.inj-story-page .inj-story-hero__copy,
.inj-story-page .inj-story-hero__visual,
.inj-story-page .inj-story-editorial__heading,
.inj-story-page .inj-story-editorial__content,
.inj-story-page .inj-story-collection__heading,
.inj-story-page .inj-story-product-card {
    min-width: 0;
}

/* ================================================
   TABLET — 900px AND BELOW
================================================ */

@media (max-width: 900px) {

    .inj-story-page .wrap {
        width: min(100% - 48px, 700px);
        max-width: 700px;
        margin-inline: auto;
    }

    /* HERO */

    .inj-story-page .inj-story-hero__grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        align-items: center;
        gap: 34px;
        padding-block: 62px 66px;
    }

    .inj-story-page .inj-story-hero__copy {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .inj-story-page .inj-story-eyebrow {
        max-width: 100%;
        margin: 0 auto 15px;
        text-align: center;
    }

    .inj-story-page .inj-story-hero__copy h1 {
        width: 100%;
        max-width: 680px;
        margin: 0 auto 22px;
        font-size: clamp(44px, 7.2vw, 68px);
        line-height: 1.1;
        letter-spacing: -1.6px;
        text-align: center;
        text-wrap: balance;
    }

    .inj-story-page .inj-story-hero__intro {
        width: 100%;
        max-width: 550px;
        margin: 0 auto 27px;
        font-size: 16px;
        line-height: 1.8;
        text-align: center;
    }

    .inj-story-page .inj-story-btn {
        display: inline-flex;
        width: auto;
        max-width: 100%;
        min-height: 50px;
        margin-inline: auto;
        padding: 13px 24px;
        text-align: center;
    }

    .inj-story-page .inj-story-hero__visual {
        width: min(100%, 560px);
        max-width: 560px;
        margin: 0 auto;
        padding: 10px;
    }

    .inj-story-page .inj-story-hero__image,
    .inj-story-page .inj-story-hero__placeholder {
        aspect-ratio: 5 / 4;
    }

    /* EDITORIAL SECTION */

    .inj-story-page .inj-story-editorial {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 26px;
        padding-block: 72px 78px;
        text-align: center;
    }

    .inj-story-page .inj-story-editorial__heading,
    .inj-story-page .inj-story-editorial__content {
        width: 100%;
        max-width: 640px;
        margin-inline: auto;
    }

    .inj-story-page .inj-story-editorial__heading h2 {
        max-width: 620px;
        margin-inline: auto;
        font-size: clamp(36px, 5.4vw, 51px);
        line-height: 1.14;
        letter-spacing: -1px;
        text-align: center;
        text-wrap: balance;
    }

    .inj-story-page .inj-story-editorial__content {
        font-size: 15px;
        line-height: 1.85;
        text-align: center;
        overflow-wrap: break-word;
    }

    .inj-story-page .inj-story-editorial__content h2,
    .inj-story-page .inj-story-editorial__content h3,
    .inj-story-page .inj-story-editorial__content p {
        text-align: center;
    }

    .inj-story-page .inj-story-editorial__content h2,
    .inj-story-page .inj-story-editorial__content h3 {
        margin-top: 27px;
    }

    /* Keep bullet and numbered lists readable */

    .inj-story-page .inj-story-editorial__content ul,
    .inj-story-page .inj-story-editorial__content ol {
        width: fit-content;
        max-width: 100%;
        margin: 16px auto 25px;
        padding-left: 24px;
        text-align: left;
    }

    .inj-story-page .inj-story-editorial__content figure,
    .inj-story-page .inj-story-editorial__content img {
        margin-left: auto;
        margin-right: auto;
    }

    .inj-story-page
    .inj-story-editorial__content
    .wp-block-buttons {
        justify-content: center;
    }

    /* PRODUCT COLLECTION */

    .inj-story-page .inj-story-collection {
        padding-block: 73px 84px;
    }

    .inj-story-page .inj-story-collection__heading {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        width: 100%;
        margin: 0 auto 33px;
        text-align: center;
    }

    .inj-story-page .inj-story-collection__heading h2 {
        max-width: 650px;
        margin-inline: auto;
        font-size: clamp(35px, 5vw, 49px);
        text-align: center;
        text-wrap: balance;
    }

    .inj-story-page .inj-story-view-all {
        align-self: center;
        min-height: 48px;
        max-width: 100%;
        margin-inline: auto;
        text-align: center;
    }

    .inj-story-page .inj-story-product-grid {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 18px;
        width: 100%;
        max-width: 700px;
        margin-inline: auto;
        align-items: stretch;
    }

    .inj-story-page .inj-story-product-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        text-align: center;
    }

    .inj-story-page .inj-story-product-card > a {
        display: flex;
        flex-direction: column;
        flex: 1;
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .inj-story-page .inj-story-product-card__photo,
    .inj-story-page .inj-story-product-card__photo img {
        width: 100%;
    }

    .inj-story-page .inj-story-product-card h3 {
        margin: 0;
        padding: 19px 14px 9px;
        font-size: clamp(21px, 3vw, 25px);
        text-align: center;
        text-wrap: balance;
    }

    .inj-story-page .inj-story-product-card__link {
        display: block;
        margin: auto 14px 22px;
        padding-top: 5px;
        text-align: center;
    }
}

/* ================================================
   MOBILE — 600px AND BELOW
================================================ */

@media (max-width: 600px) {

    .inj-story-page .wrap {
        width: calc(100% - 36px);
        max-width: 440px;
    }

    /* HERO */

    .inj-story-page .inj-story-hero__grid {
        gap: 27px;
        padding-block: 43px 50px;
    }

    .inj-story-page .inj-story-eyebrow {
        margin-bottom: 13px;
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .inj-story-page .inj-story-hero__copy h1 {
        max-width: 100%;
        margin-bottom: 17px;
        font-size: clamp(38px, 10vw, 53px);
        line-height: 1.12;
        letter-spacing: -1.2px;
    }

    .inj-story-page .inj-story-hero__intro {
        max-width: 370px;
        margin-bottom: 22px;
        font-size: 14px;
        line-height: 1.8;
    }

    .inj-story-page .inj-story-btn {
        width: min(100%, 310px);
        justify-content: center;
        min-height: 51px;
    }

    .inj-story-page .inj-story-hero__visual {
        width: min(100%, 440px);
        padding: 8px;
        border-radius: 13px;
    }

    .inj-story-page .inj-story-hero__image,
    .inj-story-page .inj-story-hero__placeholder {
        aspect-ratio: 4 / 5;
        border-radius: 8px;
    }

    /* EDITORIAL */

    .inj-story-page .inj-story-editorial {
        gap: 18px;
        padding-block: 56px 62px;
    }

    .inj-story-page .inj-story-editorial__heading h2 {
        font-size: clamp(33px, 8.4vw, 43px);
        line-height: 1.16;
    }

    .inj-story-page .inj-story-editorial__content {
        font-size: 14px;
        line-height: 1.9;
    }

    .inj-story-page .inj-story-editorial__content h2 {
        font-size: clamp(26px, 7vw, 34px);
    }

    .inj-story-page .inj-story-editorial__content h3 {
        font-size: clamp(22px, 6vw, 27px);
    }

    /* COLLECTION */

    .inj-story-page .inj-story-collection {
        padding-block: 57px 68px;
    }

    .inj-story-page .inj-story-collection__heading {
        gap: 17px;
        margin-bottom: 28px;
    }

    .inj-story-page .inj-story-collection__heading h2 {
        font-size: clamp(33px, 8.4vw, 43px);
        line-height: 1.17;
    }

    .inj-story-page .inj-story-view-all {
        display: inline-flex;
        width: min(100%, 300px);
        justify-content: center;
    }

    .inj-story-page .inj-story-product-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        width: 100%;
        max-width: 420px;
    }

    .inj-story-page .inj-story-product-card h3 {
        padding: 18px 12px 8px;
        font-size: 25px;
    }
}

/* ================================================
   SMALL PHONES — 360px AND BELOW
================================================ */

@media (max-width: 360px) {

    .inj-story-page .wrap {
        width: calc(100% - 28px);
    }

    .inj-story-page .inj-story-hero__copy h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .inj-story-page .inj-story-editorial__heading h2,
    .inj-story-page .inj-story-collection__heading h2 {
        font-size: 32px;
    }

    .inj-story-page .inj-story-hero__intro,
    .inj-story-page .inj-story-editorial__content {
        font-size: 13.5px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .inj-story-page .inj-story-btn,
    .inj-story-page .inj-story-product-card {
        transition: none !important;
    }
}

/* END OUR STORY RESPONSIVE CSS */
