/* =========================================================
   Granny's Grain - pages.css
   Page-specific premium styling
   ========================================================= */


/* =========================================================
   SHARED PAGE SECTIONS
   ========================================================= */

.section-heading {
  margin-bottom: 42px;
}

.section-heading.centered {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.8px;
  color: var(--teal-dark);
  margin-bottom: 18px;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.split-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}


/* =========================================================
   HOME PAGE HERO
   ========================================================= */

.premium-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 56px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: -2.5px;
  color: var(--brown);
  margin-bottom: 24px;
}

.hero-description {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-visual {
  position: relative;
}

.hero-image-card {
  position: relative;
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(234, 223, 210, 0.9);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.hero-image-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 26px;
}

.floating-label {
  position: absolute;
  left: -18px;
  bottom: 42px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
}

.floating-label span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 4px;
}

.floating-label strong {
  color: var(--teal-dark);
}


/* =========================================================
   TRUST ROW / BRAND STRIP
   ========================================================= */

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-row div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(234, 223, 210, 0.9);
  border-radius: 18px;
  padding: 18px;
}

.trust-row strong {
  display: block;
  color: var(--teal-dark);
  font-size: 24px;
  line-height: 1;
  margin-bottom: 8px;
}

.trust-row span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}

.brand-strip {
  max-width: 1180px;
  margin: 0 auto 32px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.brand-strip span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px;
  text-align: center;
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 14px;
}


/* =========================================================
   HOME PAGE STORY SECTION
   ========================================================= */

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 22px;
}

.story-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.large-card {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  background: linear-gradient(
    135deg,
    rgba(15, 118, 110, 0.08),
    rgba(249, 115, 91, 0.12)
  );
}

.story-card h3 {
  color: var(--brown);
  font-size: 24px;
  margin-bottom: 12px;
}

.story-card p {
  color: var(--muted);
  line-height: 1.7;
}


.story-image-card {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  background-image:
    linear-gradient(
      180deg,
      rgba(11, 79, 74, 0.18) 0%,
      rgba(11, 79, 74, 0.72) 100%
    ),
    url("../images/banners/why-we-started.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.story-image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 118, 110, 0.12),
    rgba(249, 115, 91, 0.14)
  );
}

.story-card-content {
  position: relative;
  z-index: 1;
}

.story-image-card h3 {
  color: white;
}

.story-image-card p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
}

/* ========================================================
   Instagram Section
   ======================================================== */

.instagram-section {
  padding-top: 40px;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.instagram-embed-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.instagram-embed-card iframe,
.instagram-embed-card blockquote {
  max-width: 100% !important;
  min-width: 100% !important;
}

@media (max-width: 980px) {
  .instagram-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   HOME PAGE PRODUCT PREVIEW
   ========================================================= */

.premium-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.premium-product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.premium-product-card:hover {
  transform: translateY(-8px);
}

.premium-product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 24px;
  margin-bottom: 18px;
}

.premium-product-card h3 {
  color: var(--brown);
  font-size: 24px;
  margin-bottom: 10px;
}

.premium-product-card p {
  color: var(--muted);
  line-height: 1.7;
}



/* =========================================================
   HOME PAGE VISION / VALUES / BULK
   ========================================================= */

.vision-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
  background: var(--teal-dark);
  border-radius: 36px;
  padding: 48px;
  box-shadow: var(--shadow);
}

.vision-card h2,
.vision-card p {
  color: white;
}

.vision-card p {
  font-size: 18px;
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.value-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.value-card span {
  display: inline-block;
  color: var(--coral);
  font-weight: 900;
  margin-bottom: 18px;
}

.value-card h3 {
  color: var(--brown);
  font-size: 22px;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--muted);
  line-height: 1.7;
}

.bulk-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  border-radius: 36px;
  padding: 46px;
  box-shadow: var(--shadow);
}

.bulk-card h2,
.bulk-card p {
  color: white;
}

.bulk-card p {
  font-size: 18px;
  line-height: 1.7;
}


/* =========================================================
   PRODUCTS PAGE
   Scope: only applies when body has class="products-page"
   ========================================================= */

.products-page .products-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 36px;
  align-items: stretch;
}

.products-page .products-hero > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.products-page .products-hero h1 {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -2px;
  color: var(--brown);
  max-width: 760px;
  margin-bottom: 22px;
}

.products-page .products-hero p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
  max-width: 680px;
}

.products-page .product-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.products-page .products-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.products-page .products-hero-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.products-page .products-hero-card span,
.products-page .products-hero-card h3,
.products-page .products-hero-card p {
  position: relative;
  z-index: 1;
}

.products-page .products-hero-card span {
  display: inline-block;
  color: #ffd7cf;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.products-page .products-hero-card h3 {
  color: white;
  font-size: 38px;
  line-height: 1.05;
  max-width: 320px;
  margin-bottom: 16px;
}

.products-page .products-hero-card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.8;
  max-width: 420px;
}

.products-page .product-benefits-strip {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 36px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.products-page .product-benefits-strip div {
  min-height: 120px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(234, 223, 210, 0.9);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(75, 46, 36, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.products-page .product-benefits-strip div:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(75, 46, 36, 0.12);
}

.products-page .product-benefits-strip strong {
  display: block;
  color: var(--teal-dark);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 10px;
}

.products-page .product-benefits-strip span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.products-page .catalog-filter-note {
  background: rgba(15, 118, 110, 0.09);
  color: var(--teal-dark);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  white-space: nowrap;
}

.products-page .premium-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.products-page .premium-shop-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.products-page .premium-shop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(75, 46, 36, 0.16);
}

.products-page .shop-image-wrap {
  position: relative;
  padding: 16px 16px 0;
}

.products-page .shop-image-wrap img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 24px;
}

.products-page .shop-badge {
  position: absolute;
  top: 28px;
  left: 28px;
  background: white;
  color: var(--teal-dark);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(75, 46, 36, 0.15);
}

.products-page .shop-card-body {
  flex: 1;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.products-page .shop-category {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 8px;
}

.products-page .shop-card-body h3 {
  color: var(--brown);
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.products-page .shop-card-body p {
  color: var(--muted);
  line-height: 1.7;
}

.products-page .shop-card-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.products-page .shop-price {
  display: block;
  color: var(--teal-dark);
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 6px;
}

.products-page .shop-card-footer small {
  color: var(--muted);
  font-weight: 700;
}

.products-page .quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.products-page .quality-grid article {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.products-page .quality-grid span {
  display: inline-block;
  color: var(--coral);
  font-weight: 900;
  margin-bottom: 18px;
}

.products-page .quality-grid h3 {
  color: var(--teal-dark);
  font-size: 24px;
  margin-bottom: 10px;
}

.products-page .quality-grid p {
  color: var(--muted);
  line-height: 1.7;
}


/* =========================================================
   CHECKOUT / SUCCESS PAGES
   ========================================================= */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: flex-start;
}

.checkout-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(234, 223, 210, 0.9);
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.checkout-card h2 {
  color: var(--teal-dark);
  margin-bottom: 20px;
}

.checkout-contact-box {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.checkout-contact-box h3 {
  color: var(--teal-dark);
  font-size: 24px;
  margin-bottom: 10px;
}

.checkout-contact-box p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.checkout-contact-box .eyebrow {
  margin-bottom: 10px;
}

.incubation-card {
  margin: 34px 0;
  max-width: 880px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.incubation-card h2 {
  color: var(--teal-dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.incubation-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.incubation-card .eyebrow {
  margin-bottom: 12px;
}

.total-line {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 26px;
  font-weight: 900;
  color: var(--teal-dark);
}

.success-box {
  max-width: 720px;
  margin: 90px auto;
  padding: 54px 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(234, 223, 210, 0.9);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.success-box h1 {
  color: var(--teal-dark);
  font-size: 44px;
  margin-bottom: 14px;
}

.success-box p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 28px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
  .premium-hero,
  .story-grid,
  .vision-card,
  .bulk-card,
  .checkout-layout,
  .products-page .products-hero {
    grid-template-columns: 1fr;
  }

  .premium-product-grid,
  .values-grid,
  .products-page .premium-shop-grid,
  .products-page .quality-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-strip,
  .trust-row,
  .products-page .product-benefits-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .premium-hero,
  .products-page .products-hero {
    padding-top: 64px;
  }

  .hero-image-card img {
    height: 380px;
  }

  .floating-label {
    left: 20px;
  }
}

@media (max-width: 640px) {
  .premium-hero,
  .products-page .products-hero {
    padding-top: 56px;
  }

  .premium-product-grid,
  .values-grid,
  .brand-strip,
  .trust-row,
  .products-page .premium-shop-grid,
  .products-page .quality-grid,
  .products-page .product-benefits-strip {
    grid-template-columns: 1fr;
  }

  .split-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .vision-card,
  .bulk-card {
    padding: 30px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .hero-content h1,
  .products-page .products-hero h1 {
    font-size: 46px;
    letter-spacing: -1.5px;
  }

  .hero-image-card img {
    height: 300px;
  }

  .floating-label {
    position: static;
    margin-top: 16px;
  }

  .products-page .products-hero-card {
    min-height: auto;
    padding: 30px;
  }

  .products-page .products-hero-card h3 {
    font-size: 32px;
  }

  .products-page .shop-card-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =========================================================
   HOMEPAGE BANNER
   ========================================================= */

.homepage-banner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.banner-image-wrap {
  position: relative;
  min-height: 420px;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(234, 223, 210, 0.9);
}

.banner-image-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.banner-image-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(234, 223, 210, 0.9);
}

.banner-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #fff8ef;
}

.banner-overlay-card {
  position: absolute;
  left: 42px;
  bottom: 42px;
  z-index: 2;
  max-width: 560px;
}

.banner-overlay-card h2 {
  color: white;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.banner-overlay-card .eyebrow {
  color: #ffd7cf;
}

@media (max-width: 760px) {
  .banner-image-wrap {
    min-height: auto;
  }

  .banner-image-wrap img {
    height: 420px;
  }

  .banner-overlay-card {
    left: 24px;
    right: 24px;
    bottom: 28px;
  }

  .banner-overlay-card h2 {
    font-size: 34px;
  }
  
}