/* Appily Fortyone — Bloom Roots company info (creative dynamic UI) */

.page-company-roots {
  --rt-olive: var(--a41-olive);
  --rt-olive-dark: var(--a41-olive-dark);
  --rt-gold: var(--a41-gold);
  --rt-rose: var(--a41-rose);
  --rt-sage: var(--a41-sage-mid);
  --rt-ink: var(--a41-ink);
  --rt-muted: var(--a41-muted);
  --rt-border: var(--a41-border);
  --rt-cream: var(--a41-cream);
  --rt-white: var(--a41-white);
  background: var(--rt-cream);
}

.page-company-roots .page-main { padding-top: 0; }

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

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

.a41-roots-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-roots-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--rt-muted);
}
.a41-roots-crumb a {
  color: var(--rt-muted);
  text-decoration: none;
}
.a41-roots-crumb a:hover { color: var(--rt-olive); }

.a41-roots-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(--rt-ink);
}
.a41-roots-hero-copy h1 em {
  font-style: normal;
  color: var(--rt-olive);
  display: block;
}
.a41-roots-tagline {
  margin: 0 0 20px;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--rt-muted);
}

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

.a41-roots-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 36px;
  background: var(--rt-white);
  border: 2px solid var(--rt-border);
  border-radius: 24px;
  box-shadow: 0 20px 56px rgba(42, 36, 24, 0.1);
  text-align: center;
  transition: transform 0.4s, border-color 0.4s;
}
.a41-roots-mark:hover {
  transform: translateY(-4px);
  border-color: var(--rt-gold);
}
.a41-roots-mark-icon {
  font-size: 48px;
  line-height: 1;
}
.a41-roots-mark strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--rt-ink);
}
.a41-roots-mark em {
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rt-gold);
}

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

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

/* —— Story —— */
.a41-roots-story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  margin-bottom: clamp(32px, 5vw, 48px);
  padding: clamp(24px, 3vw, 32px);
  background: var(--rt-white);
  border: 2px solid var(--rt-border);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(42, 36, 24, 0.06);
}
.a41-roots-story-copy h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--rt-ink);
}
.a41-roots-story-copy p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--rt-muted);
}
.a41-roots-story-copy p:last-child { margin-bottom: 0; }
.a41-roots-muted {
  font-style: italic;
  color: var(--rt-olive-dark) !important;
}

.a41-roots-story-visual {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
}
.a41-roots-story-ring {
  position: absolute;
  inset: 0;
  border: 2px dashed var(--rt-gold);
  border-radius: 50%;
  animation: a41RootsSpin 20s linear infinite;
}
@keyframes a41RootsSpin {
  to { transform: rotate(360deg); }
}
.a41-roots-story-bloom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--rt-olive);
}

/* —— Collection rail —— */
.a41-roots-collections {
  margin-bottom: clamp(32px, 5vw, 48px);
}
.a41-roots-rail-scroll {
  margin: 0 calc(-1 * clamp(12px, 3vw, 24px));
  padding: 8px clamp(12px, 3vw, 24px) 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.a41-roots-rail-track {
  display: flex;
  gap: 14px;
  width: max-content;
}
.a41-roots-collection {
  flex: 0 0 clamp(160px, 22vw, 200px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  text-decoration: none;
  scroll-snap-align: start;
  background: var(--rt-white);
  border: 2px solid var(--rt-border);
  border-radius: 18px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.a41-roots-collection:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(42, 36, 24, 0.1);
}
.a41-roots-collection--olive:hover { border-color: var(--rt-olive); }
.a41-roots-collection--gold:hover { border-color: var(--rt-gold); }
.a41-roots-collection--rose:hover { border-color: var(--rt-rose); }
.a41-roots-collection--sage:hover { border-color: var(--rt-sage); }

.a41-roots-collection-icon {
  font-size: 28px;
  line-height: 1;
}
.a41-roots-collection strong {
  font-size: 14px;
  color: var(--rt-ink);
  line-height: 1.3;
}
.a41-roots-collection span:last-child {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rt-muted);
}

/* —— Benefits —— */
.a41-roots-benefits {
  margin-bottom: clamp(32px, 5vw, 48px);
}
.a41-roots-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 20px);
}
.a41-roots-benefit {
  position: relative;
  padding: 22px 20px 20px 24px;
  background: var(--rt-white);
  border: 2px solid var(--rt-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.a41-roots-benefit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--rt-olive);
}
.a41-roots-benefit--gold::before { background: var(--rt-gold); }
.a41-roots-benefit--rose::before { background: var(--rt-rose); }
.a41-roots-benefit--sage::before { background: var(--rt-sage); }
.a41-roots-benefit:hover {
  transform: translateY(-4px);
  border-color: var(--rt-gold);
}
.a41-roots-benefit-num {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--rt-gold);
}
.a41-roots-benefit p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--rt-muted);
}

/* —— Split: dossier + contact —— */
.a41-roots-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(28px, 4vw, 40px);
}

.a41-roots-dossier {
  padding: clamp(24px, 3vw, 32px);
  background: var(--rt-white);
  border: 2px solid var(--rt-border);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(42, 36, 24, 0.06);
}
.a41-roots-dossier-head {
  position: relative;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--rt-border);
}
.a41-roots-dossier-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--rt-ink);
}
.a41-roots-dossier-code {
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rt-gold);
  background: rgba(229, 168, 35, 0.12);
  border-radius: 999px;
}

.a41-roots-dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin: 0;
}
.a41-roots-dossier-grid div {
  margin: 0;
}
.a41-roots-dossier-wide {
  grid-column: 1 / -1;
  padding-top: 8px;
  border-top: 1px dashed var(--rt-border);
}
.a41-roots-dossier-grid dt {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rt-muted);
}
.a41-roots-dossier-grid dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--rt-ink);
}

.a41-roots-contact {
  padding: clamp(24px, 3vw, 32px);
  background: linear-gradient(165deg, #6f8148 0%, #65753b 100%);
  border-radius: 24px;
  color: var(--rt-white);
  box-shadow: 0 16px 48px rgba(101, 117, 59, 0.15);
}
.a41-roots-contact .a41-roots-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}
.a41-roots-contact-head h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--rt-white);
}
.a41-roots-contact-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.a41-roots-contact-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  transition: background 0.2s;
}
.a41-roots-contact-card:hover {
  background: rgba(255, 255, 255, 0.16);
}
.a41-roots-contact-icon {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
}
.a41-roots-contact-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.a41-roots-contact-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rt-white);
  word-break: break-all;
}
.a41-roots-contact-card a {
  color: var(--rt-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Actions —— */
.a41-roots-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}
.a41-roots-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border-radius: 14px;
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.a41-roots-btn--gold {
  color: var(--rt-ink);
  background: linear-gradient(135deg, var(--rt-gold) 0%, #d49520 100%);
  box-shadow: 0 8px 24px rgba(229, 168, 35, 0.35);
}
.a41-roots-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(229, 168, 35, 0.45);
}
.a41-roots-btn--ghost {
  color: var(--rt-olive-dark);
  background: var(--rt-white);
  border-color: var(--rt-olive);
}
.a41-roots-btn--ghost:hover {
  background: rgba(101, 117, 59, 0.08);
  transform: translateY(-2px);
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .a41-roots-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .a41-roots-crumb { justify-content: center; }
  .a41-roots-tagline { margin-left: auto; margin-right: auto; }
  .a41-roots-stats { justify-content: center; }
  .a41-roots-mark { max-width: 280px; margin: 0 auto; }
  .a41-roots-story {
    grid-template-columns: 1fr;
  }
  .a41-roots-benefit-grid {
    grid-template-columns: 1fr 1fr;
  }
  .a41-roots-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .a41-roots-benefit-grid {
    grid-template-columns: 1fr;
  }
  .a41-roots-dossier-grid {
    grid-template-columns: 1fr;
  }
  .a41-roots-dossier-code {
    position: static;
    display: inline-block;
    margin-top: 12px;
  }
  .a41-roots-actions {
    flex-direction: column;
  }
  .a41-roots-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a41-roots-leaf,
  .a41-roots-story-ring,
  .a41-roots-mark,
  .a41-roots-collection,
  .a41-roots-benefit,
  .a41-roots-btn {
    animation: none !important;
    transition: none !important;
  }
  .a41-roots-mark:hover,
  .a41-roots-collection:hover,
  .a41-roots-benefit:hover {
    transform: none;
  }
}
