/* Appily Fortyone — Bloom Canopy catalog (creative dynamic UI) */

.page-catalog-canopy {
  --cp-olive: var(--a41-olive);
  --cp-olive-dark: var(--a41-olive-dark);
  --cp-gold: var(--a41-gold);
  --cp-rose: var(--a41-rose);
  --cp-sage: var(--a41-sage-mid);
  --cp-ink: var(--a41-ink);
  --cp-muted: var(--a41-muted);
  --cp-border: var(--a41-border);
  --cp-cream: var(--a41-cream);
  --cp-white: var(--a41-white);
  background: var(--cp-cream);
}

.page-catalog-canopy .page-main { padding-top: 0; }

.a41-canopy-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cp-gold);
}

/* —— Top rail —— */
.a41-canopy-top {
  padding: 14px 0;
  background: var(--cp-white);
  border-bottom: 1px solid var(--cp-border);
}
.a41-canopy-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.a41-canopy-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--cp-muted);
}
.a41-canopy-crumb a {
  color: var(--cp-muted);
  text-decoration: none;
}
.a41-canopy-crumb a:hover { color: var(--cp-olive); }
.a41-canopy-ref {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(101, 117, 59, 0.08);
  color: var(--cp-olive-dark);
}

/* —— Hero —— */
.a41-canopy-hero {
  position: relative;
  padding: clamp(32px, 5vw, 52px) 0 clamp(24px, 4vw, 36px);
  overflow: hidden;
}
.a41-canopy-hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 10% 25%, rgba(101, 117, 59, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 90% 70%, rgba(229, 168, 35, 0.12) 0%, transparent 50%),
    linear-gradient(175deg, var(--a41-peach) 0%, var(--cp-cream) 55%, var(--a41-sage) 100%);
  pointer-events: none;
}
.a41-canopy-petal {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  opacity: 0.45;
  animation: a41CanopyDrift 16s ease-in-out infinite;
}
.a41-canopy-petal--a {
  width: 260px; height: 260px;
  top: -60px; right: 10%;
  background: rgba(101, 117, 59, 0.2);
}
.a41-canopy-petal--b {
  width: 200px; height: 200px;
  bottom: -40px; left: 6%;
  background: rgba(229, 168, 35, 0.16);
  animation-delay: -8s;
}
@keyframes a41CanopyDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -10px); }
}

.a41-canopy-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}
.a41-canopy-hero-copy h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--cp-ink);
}
.a41-canopy-hero-copy h1 em {
  font-style: normal;
  color: var(--cp-olive);
  display: block;
}
.a41-canopy-lede {
  margin: 0 0 18px;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--cp-muted);
}

.a41-canopy-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.a41-canopy-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--cp-muted);
  background: var(--cp-white);
  border: 2px solid var(--cp-border);
  border-radius: 999px;
}
.a41-canopy-stat strong {
  font-size: 15px;
  color: var(--cp-olive-dark);
}

.a41-canopy-dial {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}
.a41-canopy-dial-svg {
  width: 100%;
  height: 100%;
}
.a41-canopy-dial-track {
  stroke: var(--cp-border);
}
.a41-canopy-dial-fill {
  stroke: var(--cp-gold);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}
.a41-canopy-dial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.a41-canopy-dial-center strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cp-olive-dark);
}
.a41-canopy-dial-center span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cp-muted);
}

/* —— Body —— */
.a41-canopy-body {
  padding-bottom: clamp(40px, 6vw, 64px);
}

.a41-canopy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 40px);
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--cp-border);
}
.a41-canopy-nav-pill {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--cp-muted);
  background: var(--cp-white);
  border: 2px solid var(--cp-border);
  border-radius: 999px;
  transition: all 0.2s;
}
.a41-canopy-nav-pill:hover {
  color: var(--cp-ink);
  border-color: var(--cp-gold);
  transform: translateY(-2px);
}
.a41-canopy-nav-pill--olive:hover { border-color: var(--cp-olive); color: var(--cp-olive-dark); }
.a41-canopy-nav-pill--gold:hover { border-color: var(--cp-gold); }
.a41-canopy-nav-pill--rose:hover { border-color: var(--cp-rose); }
.a41-canopy-nav-pill--sage:hover { border-color: var(--cp-sage); }
.a41-canopy-nav-pill--all {
  color: var(--cp-olive-dark);
  border-color: var(--cp-olive);
  background: rgba(101, 117, 59, 0.08);
}

.a41-canopy-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.a41-canopy-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--cp-ink);
}
.a41-canopy-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--cp-olive);
  text-decoration: none;
  white-space: nowrap;
}
.a41-canopy-link:hover { color: var(--cp-gold); }

/* —— Mosaic grid —— */
.a41-canopy-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  margin-bottom: clamp(28px, 4vw, 40px);
}

.a41-canopy-tile {
  display: flex;
  flex-direction: column;
  background: var(--cp-white);
  border: 2px solid var(--cp-border);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.a41-canopy-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(42, 36, 24, 0.1);
}
.a41-canopy-tile--olive:hover { border-color: var(--cp-olive); }
.a41-canopy-tile--gold:hover { border-color: var(--cp-gold); }
.a41-canopy-tile--rose:hover { border-color: var(--cp-rose); }
.a41-canopy-tile--sage:hover { border-color: var(--cp-sage); }

.a41-canopy-tile--wide {
  grid-column: span 2;
  flex-direction: row;
}
.a41-canopy-tile--wide .a41-canopy-tile-cover {
  flex: 0 0 55%;
  aspect-ratio: auto;
  min-height: 220px;
}
.a41-canopy-tile--wide .a41-canopy-tile-body {
  flex: 1;
  justify-content: center;
}

.a41-canopy-tile-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  text-decoration: none;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.95) 0%, transparent 55%),
    linear-gradient(160deg, #f4f0e6 0%, #e5ece1 100%);
  padding: 18px 20px 28px;
  box-sizing: border-box;
}
.a41-canopy-tile-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.a41-canopy-tile:hover .a41-canopy-tile-cover img {
  transform: scale(1.04);
}
.a41-canopy-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(42, 36, 24, 0.12) 100%);
  pointer-events: none;
}
.a41-canopy-tile-icon {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.a41-canopy-tile-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 20px;
}
.a41-canopy-tile-count {
  display: inline-block;
  margin-bottom: 4px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cp-gold);
  background: rgba(229, 168, 35, 0.12);
  border-radius: 999px;
}
.a41-canopy-tile-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}
.a41-canopy-tile-head h3 a {
  color: var(--cp-ink);
  text-decoration: none;
}
.a41-canopy-tile-head h3 a:hover { color: var(--cp-olive); }

.a41-canopy-tile-peeks {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.a41-canopy-tile-peeks li {
  flex-shrink: 0;
}
.a41-canopy-tile-peeks a {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--cp-border);
  background: linear-gradient(145deg, #f7f3ea, #e9efe6);
  padding: 4px;
  box-sizing: border-box;
  transition: border-color 0.2s, transform 0.2s;
}
.a41-canopy-tile-peeks a:hover {
  border-color: var(--cp-gold);
  transform: scale(1.08);
}
.a41-canopy-tile-peeks img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.a41-canopy-tile-foot {
  margin-top: auto;
  padding-top: 8px;
}
.a41-canopy-tile-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--cp-olive);
  text-decoration: none;
}
.a41-canopy-tile-cta:hover { color: var(--cp-gold); }

/* —— CTA band —— */
.a41-canopy-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px) clamp(22px, 3vw, 32px);
  background: var(--cp-white);
  border: 2px solid var(--cp-border);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(42, 36, 24, 0.06);
}
.a41-canopy-cta-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--cp-ink);
}
.a41-canopy-cta-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cp-muted);
}

.a41-canopy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border-radius: 14px;
  border: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.a41-canopy-btn--gold {
  color: var(--cp-ink);
  background: linear-gradient(135deg, var(--cp-gold) 0%, #d49520 100%);
  box-shadow: 0 8px 24px rgba(229, 168, 35, 0.35);
}
.a41-canopy-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(229, 168, 35, 0.45);
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .a41-canopy-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .a41-canopy-lede { margin-left: auto; margin-right: auto; }
  .a41-canopy-stats { justify-content: center; }
  .a41-canopy-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }
  .a41-canopy-tile--wide {
    grid-column: span 2;
    flex-direction: column;
  }
  .a41-canopy-tile--wide .a41-canopy-tile-cover {
    flex: none;
    aspect-ratio: 16 / 10;
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .a41-canopy-mosaic {
    grid-template-columns: 1fr;
  }
  .a41-canopy-tile--wide {
    grid-column: span 1;
  }
  .a41-canopy-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
  }
  .a41-canopy-nav-pill {
    flex-shrink: 0;
  }
  .a41-canopy-cta {
    flex-direction: column;
    text-align: center;
  }
  .a41-canopy-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a41-canopy-petal,
  .a41-canopy-tile,
  .a41-canopy-tile-cover img,
  .a41-canopy-nav-pill,
  .a41-canopy-btn {
    animation: none !important;
    transition: none !important;
  }
  .a41-canopy-tile:hover,
  .a41-canopy-nav-pill:hover {
    transform: none;
  }
}
