:root {
  --brickred: #c62828;
  --marigold: #fbc02d;
  --ink: #171717;
  --cream: #fffdf8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Work Sans", sans-serif;
  background: var(--cream);
  color: var(--ink);
}

h1,
h2,
h3,
.font-display {
  font-family: "Fraunces", serif;
}

.num-font {
  font-family: "Poppins", sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Garland / marigold string signature motif --- */
.garland {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  height: 34px;
  overflow: visible;
}

.garland span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #ffe486,
    var(--marigold) 60%,
    var(--brickred) 130%
  );
  box-shadow: 0 3px 6px rgba(198, 40, 40, 0.25);
  animation: sway 3.2s ease-in-out infinite;
}

.garland span:nth-child(odd) {
  animation-delay: 0.4s;
}

.garland span:nth-child(3n) {
  animation-delay: 0.8s;
}

@keyframes sway {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

.section-eyebrow {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--brickred);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.navlink {
  position: relative;
}

.navlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--marigold);
  transition: width 0.3s ease;
}

.navlink:hover::after {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brickred), #a31e1e);
  color: #fff;
  box-shadow: 0 10px 25px -8px rgba(198, 40, 40, 0.55);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -8px rgba(198, 40, 40, 0.6);
  filter: brightness(1.05);
}

.btn-outline {
  border: 1.5px solid var(--marigold);
  color: var(--ink);
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background: var(--marigold);
  border-color: var(--marigold);
  transform: translateY(-2px);
}

.card-hover {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 45px -20px rgba(23, 23, 23, 0.25);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
}

.gallery-item img {
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(23, 23, 23, 0.85),
    rgba(23, 23, 23, 0) 55%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

#navbar {
  transition:
    padding 0.35s ease,
    box-shadow 0.35s ease,
    background-color 0.35s ease;
}

#navbar.scrolled {
  box-shadow: 0 8px 24px -12px rgba(23, 23, 23, 0.25);
}

.hero-shape {
  position: absolute;
  border-radius: 9999px;
  filter: blur(2px);
}

.process-line {
  background: repeating-linear-gradient(
    to bottom,
    var(--marigold) 0 10px,
    transparent 10px 20px
  );
}

@media (min-width: 768px) {
  .process-line-h {
    background: repeating-linear-gradient(
      to right,
      var(--marigold) 0 10px,
      transparent 10px 20px
    );
  }
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: fadeSlide 0.6s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#backToTop {
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brickred);
  outline-offset: 2px;
}

::selection {
  background: var(--marigold);
  color: var(--ink);
}

.counter-num {
  font-variant-numeric: tabular-nums;
}

.bg-diagonal {
  background: linear-gradient(
    120deg,
    var(--brickred) 0%,
    #a31e1e 55%,
    #7d1717 100%
  );
}

#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.lightbox-img {
  max-height: 85vh;
}

.stat-card:hover .stat-icon {
  transform: rotate(-8deg) scale(1.08);
}

.stat-icon {
  transition: transform 0.3s ease;
}
