/* Version 4 hybrid:
   Version 1 structure + original floral background + Version 3 nav highlights and favorites */

body.home,
body.shop {
  background-color: #fffaea;
  background-image:
    url("images/floral1.png"),
    url("images/floral2.png"),
    url("images/floral3.png"),
    url("images/floral4.png");
  background-position:
    top left,
    top right,
    bottom left,
    bottom right;
  background-repeat: no-repeat;
  background-size: 300px;
  background-attachment: fixed;
}

body.home #background {
  background: transparent;
}

body.home .site-header,
body.shop .site-header {
  background: rgba(255, 250, 234, .91);
}

/* Keep Version 1's header structure, with Version 3's green pill interaction. */
body.home .shop-nav,
body.shop .shop-nav {
  gap: 5px;
  padding: 6px;
  background: rgba(255, 253, 248, .72);
  border: 1px solid rgba(41, 70, 56, .10);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

body.home .nav-btn,
body.shop .nav-btn {
  padding: 10px 17px;
  border: 0;
  border-radius: 999px;
}

body.home .nav-btn:hover,
body.home .nav-btn.active,
body.shop .nav-btn:hover,
body.shop .nav-btn.active {
  color: #fff;
  background: #294638;
  border-color: transparent;
  transform: none;
}

body.home .modern-hero {
  background: rgba(255, 253, 248, .58);
}

body.home .promise-bar {
  background: rgba(223, 232, 223, .58);
}

body.home .modern-section {
  /* Let the original floral background remain visible behind story sections. */
  background: rgba(255, 253, 248, .58);
  backdrop-filter: none;
}

/* Version 3 Fan Favorites */
body.home .v4-favorites {
  max-width: 1140px;
  margin: clamp(60px, 8vw, 100px) auto;
  padding: clamp(34px, 6vw, 64px);
  background: rgba(255, 253, 248, .58);
  border: 1px solid rgba(31, 41, 35, .11);
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(31, 41, 35, .07);
  backdrop-filter: blur(2px);
  text-align: left;
}

body.home .v4-favorites .favorites-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 34px;
}

body.home .v4-favorites h2 {
  margin: 0;
  font-family: "Italiana", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-style: normal;
  font-weight: 400;
}

body.home .v4-favorites .home-text {
  max-width: 420px;
  margin: 0;
  color: #68736b;
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  line-height: 1.7;
}

body.home .v4-favorites .featured-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: none;
}

body.home .v4-favorites .gallery-item {
  width: auto;
  padding: 0;
  background: rgba(255, 253, 248, .98);
  border: 1px solid rgba(31, 41, 35, .14);
  border-radius: 3px;
  box-shadow: 0 12px 34px rgba(31, 41, 35, .08);
  overflow: hidden;
  text-align: left;
  transition: transform .28s ease, box-shadow .28s ease;
}

body.home .v4-favorites .gallery-item:hover {
  transform: translateY(-4px) scale(1.018);
  box-shadow: 0 20px 46px rgba(31, 41, 35, .14);
}

body.home .v4-favorites .gallery-item img {
  height: clamp(290px, 30vw, 405px);
  border-radius: 0;
  object-fit: cover;
  transition: transform .4s ease;
}

body.home .v4-favorites .gallery-item:hover img {
  transform: scale(1.015);
}

body.home .v4-favorites .caption {
  margin: 0;
  padding: 17px 17px 8px;
  color: #1f2923;
  font-family: "Italiana", Georgia, serif;
  font-size: 1.35rem;
  font-style: normal;
}

body.home .v4-favorites .meta-line {
  display: flex;
  min-height: 32px;
  padding: 0 17px 13px;
  color: #68736b;
  font-family: "DM Sans", sans-serif;
  font-size: .78rem;
  font-style: normal;
}

body.home .v4-favorites .overlay {
  display: none;
}

body.home .v4-favorites .favorites-action {
  margin-top: 30px;
  text-align: center;
}

/* Preserve Version 1's shop layout; only restore the original background. */
body.shop > .gallery,
body.shop .shop-intro,
body.shop .home-footer {
  position: relative;
  z-index: 1;
}

body.shop .shop-intro {
  margin: 28px clamp(20px, 5vw, 72px) 48px;
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
}

body.shop > .gallery {
  padding-top: 28px;
  padding-bottom: 40px;
  background: rgba(255, 253, 248, .58);
  border-radius: 4px;
  backdrop-filter: blur(2px);
}

body.shop .home-footer {
  background: rgba(255, 253, 248, .93);
}

@media (max-width: 900px) {
  body.home .shop-nav,
  body.shop .shop-nav {
    padding: 0;
    background: transparent;
    border: 0;
  }

  body.home,
  body.shop {
    background-size: 210px;
  }
}

@media (max-width: 680px) {
  body.home,
  body.shop {
    background-size: 145px;
  }

  body.home .v4-favorites {
    margin: 40px 14px 70px;
    padding: 34px 20px;
  }

  body.home .v4-favorites .favorites-heading {
    display: block;
  }

  body.home .v4-favorites .home-text {
    margin-top: 14px;
  }

  body.home .v4-favorites .featured-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  body.home .v4-favorites .gallery-item img {
    height: 410px;
  }

  body.shop .shop-intro {
    margin-left: 14px;
    margin-right: 14px;
  }
}

/* v0.2.1 — consistent full-width footer across the storefront */
.site-wide-footer,
body.home .home-footer,
body.shop .home-footer {
  width: 100vw;
  max-width: none;
  position: relative;
  left: 50%;
  margin: 0 0 0 -50vw;
  padding: 38px clamp(24px, 7vw, 100px);
  border-top: 1px solid rgba(31, 41, 35, .14);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  box-sizing: border-box;
  background: rgba(255, 253, 248, .95);
  color: #68736b;
  font-family: "DM Sans", Arial, sans-serif;
  font-style: normal;
  text-align: left;
}

.site-wide-footer .footer-inner,
body.home .footer-inner,
body.shop .footer-inner {
  width: 100%;
  max-width: 1320px;
  margin-right: auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-wide-footer .footer-brand {
  color: #28362f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.site-wide-footer .footer-tagline {
  margin-top: 5px;
  font-size: .78rem;
}

.site-wide-footer .footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 42px);
}

.site-wide-footer .footer-links a {
  color: inherit;
  text-decoration: none;
}

.site-wide-footer .footer-links a:hover,
.site-wide-footer .footer-links a:focus-visible {
  color: #274f3d;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-wide-footer .footer-copy {
  font-size: .75rem;
  white-space: nowrap;
}

body.utility-page {
  min-height: 100vh;
  padding: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

body.utility-page > .card {
  width: min(680px, calc(100% - 40px));
  margin: 20px auto;
  box-sizing: border-box;
}

body.utility-page > .site-wide-footer {
  left: auto;
  width: 100%;
  margin-top: auto;
  margin-left: 0;
}

@media (max-width: 720px) {
  .site-wide-footer .footer-inner,
  body.home .footer-inner,
  body.shop .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .site-wide-footer .footer-links {
    flex-wrap: wrap;
  }
}

/* Keep short pages flush with the bottom of the viewport. */
html {
  min-height: 100%;
}

body.shop,
body.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

body.shop {
  padding-bottom: 0;
}

body.contact-page {
  padding-bottom: 0;
}

body.shop > .site-wide-footer,
body.contact-page > .site-wide-footer {
  margin-top: auto;
}

/* v0.2.2 — tighter spacing between primary content sections */
body.home .modern-section {
  padding-top: clamp(52px, 6vw, 88px);
  padding-bottom: clamp(52px, 6vw, 88px);
}

body.home .v4-favorites {
  margin-top: clamp(42px, 5vw, 70px);
  margin-bottom: clamp(28px, 3vw, 44px);
}

body.shop .shop-intro {
  margin-bottom: 16px;
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: 24px;
}

body.shop > .gallery {
  padding-top: 10px;
}

@media (max-width: 680px) {
  body.home .modern-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  body.home .v4-favorites {
    margin: 34px 14px;
  }

  body.shop .shop-intro {
    margin-bottom: 8px;
    padding-top: 42px;
    padding-bottom: 18px;
  }

  body.shop > .gallery {
    padding-top: 6px;
  }
}

/* Bring the story and values sections into a closer visual group. */
body.home #story {
  padding-bottom: clamp(36px, 4vw, 58px);
}

body.home #story + .modern-section {
  padding-top: clamp(36px, 4vw, 58px);
}

@media (max-width: 680px) {
  body.home #story {
    padding-bottom: 32px;
  }

  body.home #story + .modern-section {
    padding-top: 32px;
  }
}
