@import url('../fonts/fonts.css');

/* ============================================================
   GLOBAL TYPOGRAPHY — MANROPE FOR SANS-SERIF, INSTRUMENT SERIF FOR HEADINGS
   ============================================================ */
:root {
  --font--body: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  --font--serif: "Instrument Serif", Georgia, serif !important;
  --font-serif: "Instrument Serif", Georgia, serif !important;
}

body,
.text-body, .text-big, .text-small,
.label, .btn, .cta-main, input, textarea, select, button,
.nav-link, .footer-link, .nav-menu-link,
.text-h4.sans, .sans {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

h1, h2, h3, h6,
.text-h0, .text-h1, .text-h2, .text-h3, .text-h4.serif, .serif, .text-serif {
  font-family: "Instrument Serif", Georgia, serif !important;
}

/* Ensure mobile-only menu artifacts and closed dropdowns stay hidden on desktop */
@media (min-width: 992px) {
  .menu-cta-mobile {
    display: none !important;
  }
  .dropdown-list:not(.w--open),
  .nav-dropdown-list:not(.w--open) {
    display: none !important;
  }
  .nav-dropdown:hover .dropdown-list,
  .nav-small-dropdown:hover .nav-dropdown-list {
    display: block !important;
  }
}


/* ============================================================
   1. ROTATING CIRCLE BADGE
   ============================================================ */

/* Keyframe — 22s (slower = more refined, matches Franco's pace) */
@keyframes franco-circle-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Wrapper */
.anomic-circle-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

/* The spinning SVG ring — driven by physics engine (scroll & cursor momentum) */
.anomic-circle-badge__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: none !important;
  will-change: transform;
}

/* Text along circular path — Franco serif */
.anomic-circle-badge__ring text {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: currentColor;
}

/* Center arrow icon */
.anomic-circle-badge__icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hover — ring pauses, arrow shifts right 3px */
.anomic-circle-badge:hover .anomic-circle-badge__ring {
  animation-play-state: paused;
}
.anomic-circle-badge:hover .anomic-circle-badge__icon {
  transform: translateX(3px);
}

/* --- Color variants ---
   --dark: text on Franco linen canvas (#fbf8f3 bg)
   --light: text on Franco dark forest module (#1c2826 bg)       */
.anomic-circle-badge--dark  { color: var(--text-primary,  #111827); }
.anomic-circle-badge--light { color: var(--text-inverted, #fbf8f3); }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .anomic-circle-badge__ring { animation: none !important; }
}


/* ============================================================
   2. STAT COUNTER — element that animates from 0 to target
   ============================================================ */

/* Mark elements that should counter-animate */
[data-franco-counter] {
  /* No CSS needed — JS drives this */
  display: inline-block;
}


/* ============================================================
   3. SCROLL REVEAL — extends existing .franco-reveal system
   ============================================================ */

/* .franco-reveal already defined in design-system.css as:
   opacity: 0; transform: translateY(20px)
   We just enhance it with a stagger support class */

.franco-reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.franco-reveal-group > *.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children (up to 8 items) */
.franco-reveal-group > *:nth-child(1) { transition-delay: 0ms; }
.franco-reveal-group > *:nth-child(2) { transition-delay: 80ms; }
.franco-reveal-group > *:nth-child(3) { transition-delay: 160ms; }
.franco-reveal-group > *:nth-child(4) { transition-delay: 240ms; }
.franco-reveal-group > *:nth-child(5) { transition-delay: 320ms; }
.franco-reveal-group > *:nth-child(6) { transition-delay: 400ms; }
.franco-reveal-group > *:nth-child(7) { transition-delay: 480ms; }
.franco-reveal-group > *:nth-child(8) { transition-delay: 560ms; }


/* ============================================================
   4. NAV FROSTED GLASS — scroll-triggered
   ============================================================ */

/* Nav starts transparent, gains glass treatment after 60px scroll.
   JS adds .is-scrolled class. CSS handles the transition.       */

.navbar-master,
.navbar {
  transition: background-color 300ms ease,
              backdrop-filter  300ms ease,
              border-color     300ms ease;
}

.navbar-master.is-scrolled .navbar,
.is-scrolled.navbar {
  background: rgba(251, 248, 243, 0.88) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08) !important;
}


/* ============================================================
   5. BADGE CTA SECTION — the block you place on pages
   ============================================================ */

/* A full-width Franco-native dark CTA section with the badge */
.franco-cta-dark {
  background-color: var(--bg-dark-accent, #1c2826);
  border-radius: 16px;
  padding: 96px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.franco-cta-dark .franco-cta-heading {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-inverted, #fbf8f3);
  max-width: 640px;
  margin: 0;
}

.franco-cta-dark .franco-cta-sub {
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  color: rgba(251, 248, 243, 0.55);
  max-width: 480px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .anomic-circle-badge { width: 120px; height: 120px; }
  .anomic-circle-badge__ring text { font-size: 9px; }
  .franco-cta-dark { padding: 64px 24px; }
}

/* Hide requested footer disclaimer and author attribution globally */
.footer-bottom-message,
.footer-bottom-wrap a[href*="arieljedrzejczak.com"],
.footer-bottom-wrap .text-small:has(a[href*="arieljedrzejczak.com"]),
.footer-bottom-tile .text-small:has(a[href*="arieljedrzejczak.com"]),
footer .text-small:has(a[href*="arieljedrzejczak.com"]),
footer .text-body:has(a[href*="arieljedrzejczak.com"]),
.menu-bottom-tile .text-body:has(a[href*="arieljedrzejczak.com"]) {
  display: none !important;
}

/* ============================================================
   SATISFIED & HAPPY CUSTOMERS — TESTIMONIAL CARDS
   Card 1 (Jessica Mercedes): Gray tone (#ECE7D9)
   Card 2 (Mark Taylor): White tone (#FFFFFF)
   Notch Cutout: Transparent card background so DP notch is crisp & clean
   ============================================================ */
.section.home-a-testimonials-section {
  background-color: var(--dark, #16231b) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.home-a-testimonials-section .label-master .label {
  color: var(--light, #f9f5eb) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.home-a-testimonials-section .text-h0 {
  color: var(--light, #f9f5eb) !important;
}

.home-a-testimonials-section .testimonial-video {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border-radius: 8px;
}

/* Card 1 (Jessica Mercedes): Gray (#ECE7D9) */
.home-a-testimonials-section .testimonial-card.white-card {
  background-color: transparent !important;
  background-image: url("../assets/cdn.prod.website-files.com/6751dc3d88655c482ba588b8/6759aec83189b1af24148d7d_Subtract_20Light_402x.svg") !important;
  background-position: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-size: auto !important;
  color: #16231b !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.home-a-testimonials-section .testimonial-card.white-card .text-h5,
.home-a-testimonials-section .testimonial-card.white-card .text-body.medium {
  color: #16231b !important;
}

.home-a-testimonials-section .testimonial-card.white-card .label {
  color: rgba(22, 35, 27, 0.65) !important;
}

.home-a-testimonials-section .testimonial-card.white-card .testimonial-card-bg,
.home-a-testimonials-section .testimonial-card.white-card .testimonial-card-bg.light {
  background-color: #ECE7D9 !important;
}

/* Card 2 (Mark Taylor): White (#FFFFFF) */
.home-a-testimonials-section .testimonial-card:not(.white-card) {
  background-color: transparent !important;
  background-image: url("../assets/cdn.prod.website-files.com/6751dc3d88655c482ba588b8/Subtract_20White.svg") !important;
  background-position: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-size: auto !important;
  color: #16231b !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.home-a-testimonials-section .testimonial-card:not(.white-card) .text-h5,
.home-a-testimonials-section .testimonial-card:not(.white-card) .text-body.medium {
  color: #16231b !important;
}

.home-a-testimonials-section .testimonial-card:not(.white-card) .label {
  color: rgba(22, 35, 27, 0.65) !important;
}

.home-a-testimonials-section .testimonial-card:not(.white-card) .testimonial-card-bg {
  background-color: #FFFFFF !important;
}

/* DP Author Cutout: Floating in the bottom-right notch */
.home-a-testimonials-section .testimonial-author {
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

/* Ensure closed Webflow dropdowns do not render or intercept clicks */
.w-dropdown-list:not(.w--open),
.dropdown-list:not(.w--open),
.nav-dropdown-list:not(.w--open) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ============================================================
   BUTTON TEXT FLIP HOVER ANIMATION
   Restores Franco's signature flip-up hover interaction
   ============================================================ */
.cta-small {
  overflow: hidden !important;
  position: relative !important;
}

.cta-small .button-animation-hide {
  overflow: hidden !important;
  height: 18px !important;
  display: block !important;
  position: relative !important;
}

.cta-small .button-animation-wrap {
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform;
}

.cta-small:hover .button-animation-wrap {
  transform: translateY(-50%) !important;
}

.cta-small .button-content-tile {
  height: 18px !important;
  line-height: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.cta-main .button-animation-hide {
  overflow: hidden !important;
  height: 24px !important;
  display: block !important;
  position: relative !important;
}

.cta-main .button-animation-wrap {
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform;
}

.cta-main:hover .button-animation-wrap {
  transform: translateY(-50%) !important;
}

.cta-main .button-content-tile {
  height: 24px !important;
  line-height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}






/* Fix testimonial card author notch text collision */
.home-a-testimonials-section .testimonial-card .testimonial-info {
  padding-right: 95px !important;
  max-width: calc(100% - 80px) !important;
  word-wrap: break-word !important;
}

/* ============================================================
   PERFECT NAVBAR MENU CENTERING & VERTICAL ALIGNMENT (DESKTOP)
   ============================================================ */
@media screen and (min-width: 992px) {
  .nav-container {
    position: relative !important;
  }

  .nav-menu-wrap {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: -webkit-fit-content !important;
    width: -moz-fit-content !important;
    width: fit-content !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10 !important;
  }

  .nav-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    height: 100% !important;
  }

  .nav-menu .nav-link,
  .nav-menu .dropdown-toggle,
  .nav-menu .navigation-link-hover-wrap {
    display: flex !important;
    align-items: center !important;
    height: 32px !important;
    line-height: 32px !important;
  }
}
