/* Redleaf Consulting Group — standalone stylesheet */

:root {
  --ink: #0a0a0b;
  --ink-muted: #17151680;
  --ink-solid-muted: #1a1718;
  --ink-fg: #fafafa;
  --bg: #faf9f7;
  --fg: #1b1717;
  --card: #ffffff;
  --secondary: #efeeeb;
  --muted-fg: #6d6664;
  --primary: #c8102e;
  --primary-2: #8f0c22;
  --primary-fg: #fff;
  --border: #e4e1dc;
  --grad-crimson: linear-gradient(135deg, #c8102e, #8f0c22);
  --grad-ink: linear-gradient(160deg, #1b1717, #0a0a0b);
  --shadow-elegant: 0 24px 60px -30px rgba(200, 16, 46, 0.5);
  --shadow-card: 0 2px 4px -2px rgba(0, 0, 0, 0.06), 0 12px 32px -18px rgba(0, 0, 0, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}
h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
}
h3 {
  font-size: 1.25rem;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 6rem 0;
  scroll-margin-top: 6rem;
}
.section-alt {
  background: var(--secondary);
}
.section-ink {
  background: var(--ink);
  color: var(--ink-fg);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 300ms var(--ease),
    background-color 300ms var(--ease),
    box-shadow 300ms var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-lg {
  padding: 0.85rem 1.9rem;
  font-size: 0.95rem;
}
.btn-sm {
  padding: 0.5rem 1.15rem;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-elegant);
}
.btn-primary:hover {
  background: var(--primary-2);
}
.btn-ghost {
  border-color: rgba(250, 250, 250, 0.28);
  color: var(--ink-fg);
}
.btn-ghost:hover {
  background: rgba(250, 250, 250, 0.1);
}
.arrow {
  transition: transform 300ms var(--ease);
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* sheen sweep */
.sheen {
  position: relative;
  overflow: hidden;
}
.sheen::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: translateX(-140%) skewX(-18deg);
  pointer-events: none;
}
.sheen:hover::after {
  animation: shimmer 900ms ease-out;
}
@keyframes shimmer {
  from {
    transform: translateX(-140%) skewX(-18deg);
  }
  to {
    transform: translateX(320%) skewX(-18deg);
  }
}

.ring {
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(200, 16, 46, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 16, 46, 0);
  }
}

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: var(--grad-crimson);
}

/* ---------- header ---------- */
.header {
  position: fixed;
  inset: 3px 0 auto 0;
  z-index: 50;
  padding: 1rem 0;
  color: var(--ink-fg);
  border-bottom: 1px solid transparent;
  transition: all 500ms var(--ease);
}
.header.scrolled {
 padding: 0.5rem 0;
    background: rgb(109 109 109 / 90%);
    backdrop-filter: blur(4px);
   
    border-bottom-color: #000000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.maple {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  flex: none;
}
.logo-name {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  display: block;
}
.logo-name em {
  color: var(--primary);
  font-style: normal;
}
.logo-sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.55rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.65;
}
.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav a {
    white-space: nowrap;
}
.nav > a:not(.btn) {
  position: relative;
  font-size: 0.875rem;
  opacity: 0.82;
  transition: opacity 250ms;
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 1px;
  width: 0;
  background: var(--primary);
  transition: width 300ms var(--ease);
}
.nav > a:not(.btn):hover {
  opacity: 1;
}
.nav > a:not(.btn):hover::after {
  width: 100%;
}
@media (min-width: 860px) {
  .nav {
    display: flex;
  }
}
.burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: inherit;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 300ms var(--ease), opacity 200ms;
}
.burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.mobile-menu {
  display: grid;
  gap: 1rem;
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  transition: max-height 450ms var(--ease), padding 450ms var(--ease);
}
.mobile-menu.open {
  max-height: 24rem;
  padding: 1.25rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 860px) {
  .mobile-menu,
  .burger {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 92vh;
  overflow: hidden;
  background: var(--ink);
  color: var(--ink-fg);
  padding: 9rem 0 5rem;
}
.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  animation: ken-burns 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes ken-burns {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1.18) translate3d(-1.5%, -1.5%, 0);
  }
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--ink), rgba(10, 10, 11, 0.85) 45%, rgba(10, 10, 11, 0.4));
}
.blob {
  position: absolute;
  border-radius: 999px;
  background: var(--grad-crimson);
  filter: blur(110px);
  z-index: -1;
  animation: float 6s ease-in-out infinite;
}
.blob-a {
  width: 26rem;
  height: 26rem;
  left: -10rem;
  top: 0;
  opacity: 0.25;
}
.blob-b {
  width: 22rem;
  height: 22rem;
  right: -8rem;
  bottom: 0;
  opacity: 0.2;
  animation-delay: -3s;
}
.blob-c {
  width: 12rem;
  height: 12rem;
  right: -4rem;
  top: -4rem;
  opacity: 0.3;
  filter: blur(60px);
}
.blob-d {
  width: 16rem;
  height: 16rem;
  left: -6rem;
  bottom: 0;
  opacity: 0.25;
  filter: blur(90px);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.bob {
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero-inner {
  width: 100%;
}
.hero-inner > * {
  max-width: 48rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(250, 250, 250, 0.15);
  background: rgba(250, 250, 250, 0.05);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.pill .maple {
  width: 1rem;
  height: 1rem;
}
.grad-text {
  background: linear-gradient(100deg, #c8102e, #ef4b62, #8f0c22, #c8102e);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-pan 8s ease-in-out infinite;
}
@keyframes gradient-pan {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.rule {
  display: block;
  height: 2px;
  width: 7rem;
  margin-top: 1.75rem;
  background: var(--grad-crimson);
  transform-origin: left;
  animation: line 900ms var(--ease) both;
  animation-delay: var(--d, 0ms);
}
.rule.static {
  width: 4rem;
  margin-top: 1rem;
  animation: none;
}
@keyframes line {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.lead {
  margin-top: 1.75rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(250, 250, 250, 0.72);
}
.tagline {
  margin-top: 1rem;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(250, 250, 250, 0.9);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.up {
  animation: slide-up 900ms var(--ease) both;
  animation-delay: var(--d, 0ms);
}
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.5);
}
@media (min-width: 640px) {
  .scroll-cue {
    display: flex;
  }
}
.cue-track {
  width: 1px;
  height: 2.5rem;
  background: rgba(250, 250, 250, 0.2);
  overflow: hidden;
}
.cue-dot {
  display: block;
  width: 1px;
  height: 1rem;
  background: var(--primary);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(250%);
  }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--ink-fg);
  border-block: 1px solid rgba(250, 250, 250, 0.08);
  padding: 1rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.6);
}
.marquee-track i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms var(--ease),
    transform 800ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.left {
  transform: translateX(-40px);
}
.reveal.right {
  transform: translateX(40px);
}
.reveal.zoom {
  transform: scale(0.92);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  gap: 3.5rem;
}
@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
}
.dash {
  width: 2rem;
  height: 1px;
  background: var(--primary);
}
.head {
  max-width: 36rem;
}
.prose {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
  color: var(--muted-fg);
  line-height: 1.75;
}
.mission {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 1rem;
  padding: 2.5rem;
  background: var(--grad-ink);
  color: var(--ink-fg);
  box-shadow: var(--shadow-elegant);
  transition: transform 500ms var(--ease);
}
.mission:hover {
  transform: translateY(-6px);
}
.spark {
  font-size: 1.5rem;
  color: var(--primary);
  display: inline-block;
  transition: transform 500ms var(--ease);
}
.mission:hover .spark {
  transform: rotate(20deg) scale(1.15);
}
.mission h3 {
  margin-top: 1.25rem;
  font-size: 1.5rem;
}
.mission p {
  margin-top: 1.25rem;
  line-height: 1.7;
  color: rgba(250, 250, 250, 0.75);
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 250, 250, 0.1);
}
.stat {
  font-family: "Playfair Display", serif;
  font-size: 1.85rem;
  color: var(--primary);
}
.stat-label {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.6);
}

/* ---------- cards ---------- */
.grid-3 {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}
@media (min-width: 800px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition:
    transform 500ms var(--ease),
    box-shadow 500ms var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-elegant);
}
.card-top {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease);
}
.card:hover .card-top {
  transform: scaleX(1);
}
.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.85rem;
  background: var(--grad-crimson);
  color: #fff;
  font-size: 1.35rem;
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease);
}
.card:hover .icon {
  transform: scale(1.12) rotate(6deg);
  box-shadow: var(--shadow-elegant);
}
.card h3 {
  margin-top: 1.5rem;
  transition: color 300ms;
}
.card:hover h3 {
  color: var(--primary);
}
.card p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted-fg);
}
.note {
  margin-top: 2rem;
  border: 1px dashed rgba(200, 16, 46, 0.4);
  background: rgba(200, 16, 46, 0.06);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--primary-2);
}

/* why-us tiles */
.grid-tiles {
  display: grid;
  gap: 1px;
  margin-top: 3.5rem;
  border: 1px solid rgba(250, 250, 250, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(250, 250, 250, 0.1);
}
@media (min-width: 640px) {
  .grid-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .grid-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tile {
  position: relative;
  overflow: hidden;
  height: 100%;
  background: var(--ink);
  padding: 2rem;
  transition: background-color 500ms var(--ease);
}
.tile:hover {
  background: var(--ink-solid-muted);
}
.tile-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--grad-crimson);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 500ms var(--ease);
}
.tile:hover .tile-bar {
  transform: scaleY(1);
}
.tile-icon {
  font-size: 1.35rem;
  color: var(--primary);
  display: inline-block;
  transition: transform 500ms var(--ease);
}
.tile:hover .tile-icon {
  transform: translateY(-4px) scale(1.2);
}
.tile h3 {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  transition: transform 500ms var(--ease);
}
.tile:hover h3 {
  transform: translateX(4px);
}
.tile p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(250, 250, 250, 0.6);
}

/* testimonials */
.quote-mark {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  line-height: 1;
  color: rgba(200, 16, 46, 0.6);
  transition: transform 500ms var(--ease), color 500ms;
}
.card:hover .quote-mark {
  transform: scale(1.1);
  color: var(--primary);
}
.stars {
  display: flex;
  gap: 0.25rem;
  margin-top: 1.5rem;
  color: var(--primary);
}
.stars span {
  transition: transform 300ms var(--ease);
}
.card:hover .stars span {
  transform: translateY(-4px) scale(1.2);
}
.author {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.author b {
  font-family: "Playfair Display", serif;
  font-weight: 500;
}
.author small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted-fg);
}

/* ---------- contact ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--grad-ink);
  color: var(--ink-fg);
  padding: 3.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-elegant);
}
@media (min-width: 640px) {
  .cta {
    padding: 3.5rem 3rem;
  }
}
.cta-sub {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: rgba(250, 250, 250, 0.7);
}
.contact-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}
@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.ci-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--grad-crimson);
  color: #fff;
  transition: transform 400ms var(--ease);
}
.contact-item:hover .ci-icon {
  transform: scale(1.1) rotate(-8deg);
}
.ci-label {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.5);
}
.contact-item a,
.contact-item p {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  word-break: break-word;
  color: rgba(250, 250, 250, 0.88);
  transition: color 250ms;
}
.contact-item a:hover {
  color: var(--primary);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3rem;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: black;
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.copy {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
