/* ============================================================
   Grove Partners — Homepage Styles
   Mirrors Oxygen Builder structure with clean, separated CSS.
   ============================================================ */

/* -------------------------
   @font-face: Avenir (MyFonts Webfonts Kit, Build ID 3867246)
   Individual named families defined in grovefonts/grovefonts.css.
   Below: consolidated 'Avenir' family with weight+style aliases so
   existing font-family: 'Avenir' declarations in this stylesheet work.
   Files served from /wp-content/themes/grove/grovefonts/webFonts/
   ------------------------- */
@font-face {
  font-family: 'Avenir';
  src: url('/wp-content/themes/grove/grovefonts/webFonts/Avenir35Light/font.woff2') format('woff2'),
       url('/wp-content/themes/grove/grovefonts/webFonts/Avenir35Light/font.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Avenir';
  src: url('/wp-content/themes/grove/grovefonts/webFonts/Avenir35LightOblique/font.woff2') format('woff2'),
       url('/wp-content/themes/grove/grovefonts/webFonts/Avenir35LightOblique/font.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: block;
}
@font-face {
  font-family: 'Avenir';
  src: url('/wp-content/themes/grove/grovefonts/webFonts/Avenir45Book/font.woff2') format('woff2'),
       url('/wp-content/themes/grove/grovefonts/webFonts/Avenir45Book/font.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Avenir';
  src: url('/wp-content/themes/grove/grovefonts/webFonts/Avenir45BookOblique/font.woff2') format('woff2'),
       url('/wp-content/themes/grove/grovefonts/webFonts/Avenir45BookOblique/font.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: block;
}
@font-face {
  font-family: 'Avenir';
  src: url('/wp-content/themes/grove/grovefonts/webFonts/Avenir55Roman/font.woff2') format('woff2'),
       url('/wp-content/themes/grove/grovefonts/webFonts/Avenir55Roman/font.woff') format('woff');
  font-weight: 450;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Avenir';
  src: url('/wp-content/themes/grove/grovefonts/webFonts/Avenir55Oblique/font.woff2') format('woff2'),
       url('/wp-content/themes/grove/grovefonts/webFonts/Avenir55Oblique/font.woff') format('woff');
  font-weight: 450;
  font-style: italic;
  font-display: block;
}
@font-face {
  font-family: 'Avenir';
  src: url('/wp-content/themes/grove/grovefonts/webFonts/Avenir65Medium/font.woff2') format('woff2'),
       url('/wp-content/themes/grove/grovefonts/webFonts/Avenir65Medium/font.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Avenir';
  src: url('/wp-content/themes/grove/grovefonts/webFonts/Avenir65MediumOblique/font.woff2') format('woff2'),
       url('/wp-content/themes/grove/grovefonts/webFonts/Avenir65MediumOblique/font.woff') format('woff');
  font-weight: 500;
  font-style: italic;
  font-display: block;
}
@font-face {
  font-family: 'Avenir';
  src: url('/wp-content/themes/grove/grovefonts/webFonts/Avenir85Heavy/font.woff2') format('woff2'),
       url('/wp-content/themes/grove/grovefonts/webFonts/Avenir85Heavy/font.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Avenir';
  src: url('/wp-content/themes/grove/grovefonts/webFonts/Avenir85HeavyOblique/font.woff2') format('woff2'),
       url('/wp-content/themes/grove/grovefonts/webFonts/Avenir85HeavyOblique/font.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: block;
}
@font-face {
  font-family: 'Avenir';
  src: url('/wp-content/themes/grove/grovefonts/webFonts/Avenir95Black/font.woff2') format('woff2'),
       url('/wp-content/themes/grove/grovefonts/webFonts/Avenir95Black/font.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Avenir';
  src: url('/wp-content/themes/grove/grovefonts/webFonts/Avenir95BlackOblique/font.woff2') format('woff2'),
       url('/wp-content/themes/grove/grovefonts/webFonts/Avenir95BlackOblique/font.woff') format('woff');
  font-weight: 900;
  font-style: italic;
  font-display: block;
}

/* -------------------------
   Reset / Base
   ------------------------- */
html {
  box-sizing: border-box;
  line-height: 1.15;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body, h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

body {
  font-size: 16px;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: rgba(64, 64, 64, 1);
}

a {
  background-color: transparent;
  text-decoration: none;
}

img {
  border-style: none;
  max-width: 100%;
}

article, aside, details, figcaption, figure,
footer, header, main, menu, nav, section {
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}


/* -------------------------
   Content Page Defaults (.grove-content)
   Apply to any Oxygen text/code block on editorial pages.
   Restores list bullets and heading rhythm stripped by the base reset.
   ------------------------- */
.grove-content ul,
.grove-content ol {
  margin: 0 0 .5em 0;
  padding-left: 1.75em;
}
.grove-content ul { list-style: disc; }
.grove-content ol { list-style: decimal; }
.grove-content ul ul,
.grove-content ol ol { list-style: circle; margin-top: 0.5em; margin-bottom: 0; }
.grove-content li { font-size: 18px; margin-bottom: 0.4em; line-height: 1.65; color: #121212; }

.grove-content p {
  font-size: 18px;
  line-height: 1.65;
  color: #121212;
  margin-bottom: 1.25em;
}
.grove-content h1 {
  font-size: 48px;
  font-weight: 700;
  color: #0B1B2A;
  line-height: 1.15;
  margin-bottom: 0.6em;
}
.grove-content h2 {
  font-size: 34px;
  font-weight: 700;
  color: #0B1B2A;
  line-height: 1.2;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.grove-content h3 {
  font-size: 24px;
  font-weight: 500;
  color: #0046A1;
  line-height: 1.3;
  margin-top: 1.25em;
  margin-bottom: 0.4em;
}
.grove-content h4 {
  font-size: 18px;
  font-weight: 500;
  color: #0046A1;
  line-height: 1.4;
  margin-top: 1em;
  margin-bottom: 0.3em;
}

/* -------------------------
   Oxygen Base Element Classes
   ------------------------- */

/* Sections */
.ct-section {
  width: 100%;
  background-size: cover;
  background-repeat: repeat;
}

.ct-section > .ct-section-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ct-section-inner-wrap {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  height: 100%;
  min-height: inherit;
  padding: 75px 20px;
}

/* Div blocks */
.ct-div-block {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  align-items: flex-start;
}

/* Columns */
.ct-new-columns {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.ct-new-columns > .ct-div-block {
  padding: 20px;
}

/* Images */
.ct-image {
  max-width: 100%;
}

/* Links */
.ct-link {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  text-decoration: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Link buttons */
.ct-link-button {
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

/* Rich text */
.oxy-rich-text p:first-child {
  margin-block-start: 0;
}

.oxy-rich-text p:last-child {
  margin-block-end: 0;
}


/* -------------------------
   Header
   ------------------------- */
.oxy-header-wrapper {
  position: relative;
  background-color: #0b1b2a;
}

.oxy-header-row {
  width: 100%;
  display: block;
}

.oxy-header-container {
  max-width: 1120px;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  padding-right: 20px;
  padding-left: 20px;
}

.oxy-header-left,
.oxy-header-center,
.oxy-header-right {
  display: flex;
  align-items: center;
}

.oxy-header-left {
  justify-content: flex-start;
}

.oxy-header-center {
  flex-grow: 1;
  justify-content: center;
}

.oxy-header-right {
  justify-content: flex-end;
}

.grove-header {
  padding-top: 16px;
  padding-bottom: 16px;
  background-color: #0b1b2a;
}

.grove-header-logo {
  height: 70px;
}


/* -------------------------
   Nav Menu
   ------------------------- */
.oxy-nav-menu-list {
  display: flex;
  padding: 0;
  margin: 0;
  flex-direction: row;
}

.oxy-nav-menu .oxy-nav-menu-list li.menu-item {
  list-style-type: none;
  display: flex;
  flex-direction: column;
}

.oxy-nav-menu .oxy-nav-menu-list li.menu-item a {
  text-decoration: none;
  border-style: solid;
  border-width: 0;
  border-color: transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
}

.grove-nav .menu-item a {
  padding: 14px 20px;
  color: #eceeef;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.grove-nav .menu-item:hover a,
.grove-nav .menu-item:focus-within a {
  color: #0d60cc;
}

.grove-nav .current-menu-item a {
  color: #0d60cc;
}

/* Nav CTA button (last item) */
.grove-nav-btn {
  background-color: #0d60cc !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  transition: background-color 0.2s !important;
  display: inline-block;
  padding-left: 14px;
  padding-right: 14px;
}

.grove-nav-btn:hover {
  background-color: #0a4da6 !important;
}

.grove-nav-btn > a {
  font-weight: 700 !important;
  color: #fff !important;
}

.grove-nav-btn > a:hover {
  color: #fff !important;
}

/* Hamburger toggle — hidden on desktop */
.oxy-menu-toggle {
  cursor: pointer;
  display: none;
}

.grove-nav .oxy-nav-menu-hamburger-line {
  background-color: #eceeef;
  height: 3px;
  border-radius: 2px;
}

.grove-nav .oxy-nav-menu-hamburger-wrap {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grove-nav .oxy-nav-menu-hamburger {
  width: 26px;
  height: 20px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

/* Mobile nav open state */
.oxy-nav-menu.oxy-nav-menu-open {
  width: 100%;
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: auto;
  z-index: 2147483642 !important;
  background-color: #0b1b2a !important;
}

.oxy-nav-menu.oxy-nav-menu-open .oxy-nav-menu-list {
  flex-direction: column !important;
  width: 100%;
  align-items: center;
}

.oxy-nav-menu.oxy-nav-menu-open .oxy-nav-menu-list .menu-item a {
  text-align: center;
  border: 0 !important;
  background-color: transparent !important;
  justify-content: center;
}

#_nav_menu-144-104 .menu-item:last-child {
  margin-left:20px !important;
}

#_nav_menu-144-104 .menu-item a {
    padding: 14px 20px 10px !important;
}
 
/* Contact Us button — desktop: blue pill in header nav */
#menu-header-menu > li:last-child {
  background-color: #0d60cc !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  transition: background-color 0.2s !important;
  text-decoration: none !important;
  display: inline-block;
  padding-left: 14px;
  padding-right: 14px;
}

#menu-header-menu > li:last-child:hover {
  background-color: #0a4da6 !important;
}

#menu-header-menu > li:last-child > a {
  font-weight: 700 !important;
  color: #fff !important;
}

#menu-header-menu > li:last-child > a:hover {
  color: #fff !important;
}

/* Contact Us button — mobile nav override: inherit nav font size */
.oxy-nav-menu.oxy-nav-menu-open #menu-header-menu > li:last-child {
  background-color: #0d60cc !important;
  border-radius: 8px !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  padding: 0 !important;
  text-align: center;
  margin-top: 10px;
  display: flex !important;
  justify-content: center;
  align-self: center;
  width: auto !important;
  margin: 0 20px !important;
}

.oxy-nav-menu.oxy-nav-menu-open #menu-header-menu > li:last-child > a {
  font-size: inherit !important;
  font-weight: 400 !important;
  color: #fff !important;
  padding: 14px 48px 10px !important;
}

.oxy-nav-menu.oxy-nav-menu-open .oxy-menu-toggle {
  display: initial;
}

.oxy-nav-menu.oxy-nav-menu-open .oxy-nav-menu-hamburger-wrap {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
}

.oxy-nav-menu-open .oxy-nav-menu-hamburger {
  transform: rotate(45deg);
}

.oxy-nav-menu-open .oxy-nav-menu-hamburger .oxy-nav-menu-hamburger-line {
  display: none;
}
 
.oxy-nav-menu-open .oxy-nav-menu-hamburger .oxy-nav-menu-hamburger-line:first-child {
  display: initial;
  position: relative;
  top: 8.5px;
}

.oxy-nav-menu-open .oxy-nav-menu-hamburger .oxy-nav-menu-hamburger-line:last-child {
  display: initial;
  position: relative;
  top: -8.5px;
  transform: rotate(90deg);
}

.oxy-nav-menu-prevent-overflow {
  overflow: hidden;
  height: 100%;
}

.grove-nav.oxy-nav-menu.oxy-nav-menu-open .menu-item a {
  padding: 14px 20px;
}


/* -------------------------
   Inner Content
   ------------------------- */
.ct-inner-content {
  padding-left: 0;
  border: none;
}


/* -------------------------
   Hero Section
   ------------------------- */
.grove-home-hero {
  min-height: 563px;
  position: relative;
  z-index: 1;
}

/* Video background */
.oxy-video-background .oxy-video-container {
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.oxy-video-background .oxy-video-container video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  top: 50%;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
}

.oxy-video-overlay {
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
}

/* Dark tint overlay — rendered via ::after on the section to ensure
   it paints above the video container regardless of stacking. */
.oxy-video-background::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgb(11 27 42 / 25%);
  z-index: 1;
  pointer-events: none;
}

/* Ensure hero text sits above the video + overlay */
.oxy-video-background > .ct-section-inner-wrap {
  position: relative;
  z-index: 2;
}

/* Hero inner wrap */
.grove-home-hero > .ct-section-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 563px;
}

/* Hero content wrapper */
.grove-home-hero-content {
  flex-direction: column;
  display: flex;
  align-items: center;
  text-align: center;
  max-width: 1200px;
  width: 100%;
  padding-top: 100px;
}

/* Main headline */
.grove-home-hero .grove-hero-title {
  color: #ffffff;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 75px;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0px 4px 4px rgba(0,0,0,0.25);
}

/* Ticker row */
.grove-ticker-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 80px;
  min-height: 50px; /* reserve space so section doesn't collapse */
}

/* ---- Ticker Phrases ---- */
.ticker-phrase {
  color: #ffffff;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 40px;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0px 4px 4px rgba(0,0,0,0.25);

  /* Stack all phrases in the same spot */
  position: absolute;

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;

  /* Keep element on GPU compositor layer to prevent Safari one-frame repaint
     flash when animation classes are removed (animate.css issues #1228, #1565) */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.ticker-phrase strong,
.ticker-phrase .ticker-bold {
  font-weight: 700;
}

.ticker-phrase.active {
  opacity: 1;
  visibility: visible;
}

/* Animate.css overrides for ticker */
.ticker-phrase.animate__animated {
  --animate-duration: 0.6s;
}


/* -------------------------
   What We Do Section
   ------------------------- */
.grove-whatwedo {
  background-color: #ffffff;
}

.grove-whatwedo > .ct-section-inner-wrap {
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Section heading group */
.grove-whatwedo .grove-section-heading-group {
  flex-direction: column;
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 64px;
}

.grove-whatwedo .grove-section-label {
  color: #121212;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.33;
  text-align: center;
  letter-spacing: -0.24px;
  margin-bottom: 20px;
}

.grove-whatwedo .grove-section-title {
  color: #0b1b2a;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  text-align: center;
  letter-spacing: -0.44px;
}

/* Card rows */
.grove-whatwedo .grove-card-row {
  flex-direction: row;
  display: flex;
  align-items: stretch;
  gap: 32px;
  width: 100%;
  max-width: 1123px;
  margin-bottom: 32px;
}

.grove-card-row--narrow {
  max-width: 1123px;
  justify-content: center;
}

.grove-card-row--narrow .flip-card {
  flex: 0 1 calc((1123px - 64px) / 3);
}

/* ---- Flip Cards ---- */
.flip-card {
  flex: 1;
  min-height: 245px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 245px;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 10px;
  padding: 30px 25px 23px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Front face — navy blue */
.flip-card-front {
  background-color: #0046a1;
}

/* Back face — tan/beige */
.flip-card-back {
  background-color: #ebe9e4;
  transform: rotateY(180deg);
  justify-content: center;
  padding: 30px;
}

.flip-card-back p {
  color: #121212;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
}

/* Card headlines */
.flip-card-title {
  color: #fbfcfc;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.33;
  text-align: left;
}

/* Card arrow icons */
.flip-card-arrow {
  width: 26px;
  height: 19px;
  align-self: flex-end;
}


/* -------------------------
   Where We Work Section
   ------------------------- */
.grove-wherewework {
  background-color: #eae9e4;
}

.grove-wherewework > .ct-section-inner-wrap {
  padding: 70px 156px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Section heading group */
.grove-wherewework .grove-section-heading-group {
  flex-direction: column;
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 54px;
}

.grove-wherewework .grove-section-label {
  color: #121212;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.33;
  text-align: center;
  letter-spacing: -0.24px;
  margin-bottom: 20px;
}

.grove-wherewework .grove-section-title {
  color: #0b1b2a;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.11;
  text-align: center;
  letter-spacing: -0.44px;
}

/* Industry icon rows */
.grove-icon-row {
  flex-direction: row;
  display: flex;
  gap: 60px;
  justify-content: center;
  width: 100%;
  margin-bottom: 40px;
}

.grove-icon-row:last-child {
  margin-bottom: 0;
}

/* Individual icon items */
.icon-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  flex-direction: column;
  display: flex;
  align-items: center;
  text-align: center;
  gap: 24px;
  width: 207px;
}

/* Icon wrappers */
.icon-item-graphic {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon SVGs */
#icon-education,
#icon-ai,
#icon-products,
#icon-food,
#icon-rocket,
#icon-scales,
#icon-coins {
  width: 48px;
  height: 48px;
}

/* Consumer Services has a wider aspect ratio (77:59) */
#icon-services {
  width: 62px;
  height: 48px;
}

/* Icon labels */
.icon-item-label {
  color: #121212;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.25;
  text-align: center;
}

/* Inline SVG sizing */
.icon-svg {
  width: 48px;
  height: 48px;
}

/* ---- Icon scroll animations ---- */

/* Stagger delays — set per data-delay attribute */
.icon-item[data-delay="0"] { transition-delay: 0s; }
.icon-item[data-delay="1"] { transition-delay: 0.1s; }
.icon-item[data-delay="2"] { transition-delay: 0.2s; }
.icon-item[data-delay="3"] { transition-delay: 0.3s; }
.icon-item[data-delay="4"] { transition-delay: 0s; }
.icon-item[data-delay="5"] { transition-delay: 0.1s; }
.icon-item[data-delay="6"] { transition-delay: 0.2s; }
.icon-item[data-delay="7"] { transition-delay: 0.3s; }

/* When scrolled into view */
.icon-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Education icon: GSAP-powered text lines draw-in ---- */
/* Lines start hidden; GSAP handles staggered reveal + repeat */
#icon-education .icon-line {
  opacity: 0;
}

/* ---- AI icon: GSAP-powered sparkle reveal ---- */
/* Sparkles start hidden; GSAP handles staggered reveal + repeat */
#icon-ai .icon-sparkle {
  opacity: 0;
}

/* ---- Consumer Products icon: GSAP-powered rotate + tape seal ---- */
#icon-products .icon-tape line {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
}

/* ---- Food/Agriculture icon: GSAP-powered phased grow ---- */
/* Starts fully clipped; GSAP grows bottom->top, then fades out to repeat */
#icon-food {
  clip-path: inset(100% 0 0 0);
}

/* ---- Emerging Tech icon: GSAP-powered animation ---- */
/* Flame starts hidden; GSAP handles fade-in + flicker */
#icon-rocket .icon-flame {
  opacity: 0;
  transform-origin: 14px 41px;
}
/* Rocket body transform origin for floating bob */
#icon-rocket .icon-body {
  transform-origin: 27.5px 27.5px;
}

/* ---- Government icon: GSAP-powered weighing deliberation ---- */
/* GSAP handles the sequenced tilt animation */

/* ---- Financial icon: stroked SVG, GSAP top coin drop ---- */
#icon-coins path,
#icon-coins line {
  fill: none;
  stroke: #0D60CC;
  stroke-miterlimit: 10;
  stroke-width: 1.6;
}


/* -------------------------
   Learn More CTA Section
   ------------------------- */
.grove-home-cta > .ct-section-inner-wrap {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

/* Homepage CTA button — identical to global .grove-btn-primary, removed redundant rule */


/* -------------------------
   Footer
   ------------------------- */
.grove-footer {
  background-color: #0b1b2a;
  border: none;
}

.grove-footer > .ct-section-inner-wrap {
  padding-top: 0;
  padding-bottom: 0;
}

.grove-footer a {
  color: #ffffff;
}

.grove-footer a:hover,
#footer a:hover {
  color: #0d60cc !important;
}

.grove-footer-columns {
  padding: 0;
  margin: 0;
  border: none;
}

.grove-footer-col {
  width: 100%;
  justify-content: center;
  padding: 0;
  min-height: 60px;
}

.grove-footer-legal {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  margin-top: 0;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
}


/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet landscape (max 1120px) — show hamburger */
@media (max-width: 1120px) {
  .grove-nav .oxy-nav-menu-list {
    display: none;
  }

  .grove-nav .oxy-menu-toggle {
    display: initial;
  }

  .grove-nav.oxy-nav-menu.oxy-nav-menu-open .oxy-nav-menu-list {
    display: initial;
  }
}

/* Tablet portrait (max 991px) */
@media (max-width: 991px) {
  .grove-home-hero .grove-hero-title { font-size: 52px; }
  .ticker-phrase { font-size: 32px; }

  .grove-whatwedo .grove-card-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .grove-wherewework > .ct-section-inner-wrap {
    padding-right: 40px;
    padding-left: 40px;
  }

  .grove-whatwedo > .ct-section-inner-wrap {
    padding-right: 40px;
    padding-left: 40px;
  }

  .grove-icon-row {
    flex-wrap: wrap;
    gap: 32px;
  }

  /* Case studies — tablet */
  .grove-cs-title { font-size: 48px; }
  .grove-cs-title--long { font-size: 44px; }
  .grove-cs-quote { font-size: 36px; }

  .grove-cs-row {
    gap: 40px;
  }

  .grove-cs-client-logo {
    max-width: 220px;
  }

}

/* Mobile landscape (max 767px) */
@media (max-width: 767px) {
  .grove-home-hero .grove-hero-title { font-size: 44px; }
  .ticker-phrase { font-size: 28px; }

  .grove-footer > .ct-section-inner-wrap {
    padding-left: 13px;
  }

  .grove-footer-legal {
    width: 100%;
    font-size: 10px;
  }

  /* Case studies — mobile landscape: hero stacks vertically, centered */
  .grove-cs-hero-split {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .grove-cs-hero-text {
    align-items: center;
    text-align: center;
  }

  .grove-cs-client-logo {
    max-height: 70px;
  }

  .grove-cs-row {
    flex-direction: column;
    gap: 32px;
  }

  .grove-cs-col-spacer {
    display: none;
  }

  .grove-cs-body > .ct-section-inner-wrap {
    padding: 60px 40px;
  }

}

/* Mobile portrait (max 479px) */
@media (max-width: 479px) {
  .grove-header-logo,
  #image-143-104 {
    margin-top: 10px;
    height: 40px !important;
  }

  .grove-home-hero .grove-hero-title {
    font-size: 36px;
    line-height: 1.2;
  }

  .ticker-phrase {
    font-size: 24px;
    line-height: 1.2;
  }

  .grove-ticker-row {
    margin-top: 40px;
    min-height: 35px;
  }

  .grove-whatwedo > .ct-section-inner-wrap {
    padding: 48px 16px;
  }

  .grove-whatwedo .grove-section-heading-group { margin-bottom: 32px; }
  .grove-whatwedo .grove-section-label { font-size: 16px; }
  .grove-whatwedo .grove-section-title { font-size: 36px; }

  .grove-whatwedo .grove-card-row {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
  }

  .grove-card-row--narrow {
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
  }

  .grove-card-row--narrow .flip-card {
    flex: 1;
  }

  .flip-card {
    min-height: 150px;
  }

  .flip-card-inner {
    min-height: 150px;
  }

  .flip-card-back p {
    font-size: 15px;
    line-height: 1.4;
  }

  .flip-card-title {
    font-size: 24px;
  }

  .grove-wherewework > .ct-section-inner-wrap {
    padding: 48px 16px;
  }

  .grove-wherewework .grove-section-heading-group { margin-bottom: 32px; }
  .grove-wherewework .grove-section-label { font-size: 16px; }
  .grove-wherewework .grove-section-title { font-size: 36px; }

  .grove-icon-row {
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
  }

  .icon-item {
    width: 45%;
  }

  .grove-home-cta .grove-btn-primary {
    width: 100%;
  }

  .grove-footer-columns > .ct-div-block {
    width: 100% !important;
  }

  .grove-footer-columns {
    flex-direction: column;
  }

  .grove-footer-col {
    text-align: left;
    align-items: center;
    padding-bottom: 0;
    padding-top: 12px;
  }

  .grove-footer-legal {
    width: auto;
  }

  .grove-btn-primary {
    width: 100%;
  }

  /* Case studies — mobile portrait: stack vertically, center everything */
  .grove-cs-hero-split {
    flex-direction: column !important;
    align-items: center;
    gap: 32px;
    padding: 0 16px;
  }

  .grove-cs-hero-text {
    align-items: center;
    text-align: center;
  }

  .grove-cs-hero > .ct-section-inner-wrap {
    padding: 48px 0;
  }

  .grove-cs-hero-logo {
    align-self: center;
  }

  .grove-cs-client-logo {
    max-width: 160px;
  }

  .grove-cs-breadcrumb { font-size: 16px; }
  .grove-cs-title { font-size: 36px; }
  .grove-cs-title--long { font-size: 36px; }
  .grove-cs-location { font-size: 20px; }

  .grove-cs-body > .ct-section-inner-wrap {
    padding: 48px 16px;
  }

  .grove-cs-columns {
    flex-direction: column;
    gap: 40px;
  }

  .grove-cs-row {
    flex-direction: column;
    gap: 32px;
  }

  /* When media column comes first in HTML, push it below text on mobile */
  .grove-cs-row > .grove-cs-col-media:first-child {
    order: 2;
  }

  .grove-cs-col-spacer {
    display: none;
  }

  .grove-cs-heading { font-size: 24px; }
  .grove-cs-text { font-size: 16px; }

  .grove-cs-testimonial > .ct-section-inner-wrap {
    min-height: 280px;
    padding: 60px 24px;
  }

  .grove-cs-quote { font-size: 24px; }

  .grove-cs-cta > .ct-section-inner-wrap {
    padding: 48px 16px;
  }

}


/* ============================================================
   OUR WORK IN ACTION PAGE (page-id-211)
   ============================================================ */

/* -------------------------
   Hero Section (background image)
   ------------------------- */
.grove-owa-hero {
  position: relative;
  min-height: 563px;
  background-color: #0b1b2a;
  z-index: 1;
}

.grove-owa-hero .oxy-video-overlay {
  background-color: rgba(11, 27, 42, 0.4);
}

.grove-owa-hero > .ct-section-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 563px;
  padding: 120px 80px 80px;
}

.grove-owa-hero-content {
  flex-direction: column;
  display: flex;
  align-items: center;
  text-align: center;
  max-width: 1088px;
  gap: 20px;
}

.grove-owa-hero .grove-hero-title {
  color: #ffffff;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 75px;
  line-height: 1.13;
  text-align: center;
  letter-spacing: -1.5px;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.grove-hero-subtitle {
  color: #ffffff;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.36;
  text-align: center;
  letter-spacing: -0.36px;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  max-width: 942px;
}

/* OWA hero responsive — must follow base definition for cascade */
@media (max-width: 991px) {
  .grove-owa-hero .grove-hero-title { font-size: 52px; letter-spacing: -1px; }
  .grove-hero-subtitle { font-size: 28px; }
}
@media (max-width: 767px) {
  .grove-owa-hero .grove-hero-title { font-size: 44px; line-height: 1.1; letter-spacing: 0; }
  .grove-hero-subtitle { font-size: 24px; line-height: 1.33; letter-spacing: -0.24px; }
}
@media (max-width: 479px) {
  .grove-owa-hero .grove-hero-title { font-size: 44px; line-height: 1.1; letter-spacing: 0; }
  .grove-hero-subtitle { font-size: 24px; line-height: 1.33; letter-spacing: -0.24px; max-width: 316px; }
}


/* -------------------------
   Case Study Cards Section
   ------------------------- */
.grove-owa-cards {
  background-color: #ffffff;
}

.grove-owa-cards > .ct-section-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 80px;
}

/* Cards row */
.grove-owa-cards .grove-card-row {
  flex-direction: row;
  display: flex;
  gap: 32px;
  max-width: 1126px;
  width: 100%;
  justify-content: center;
}

/* Individual case study cards */
.grove-case-card {
  background-color: #0b1b2a;
  border-radius: 15px;
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-height: 444px;
  padding: 60px 20px 30px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grove-case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Card content wrapper */
.grove-case-card-content {
  flex-direction: column;
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: center;
  max-width: 320px;
}

/* Client logo images */
.grove-card-logo {
  max-width: 200px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
}

/* Card title (h3) */
.grove-case-card-title {
  color: #ffffff;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.27;
  text-align: center;
}

/* Outline button (Read More) */
.grove-btn-outline {
  background-color: transparent;
  border: 2px solid #0d60cc;
  border-radius: 8px;
  padding: 16px 24px;
  color: #ffffff;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.grove-btn-outline:hover {
  background-color: #0d60cc;
}

/* Primary button (Learn More) */
.grove-btn-primary {
  background-color: #0d60cc;
  border-radius: 8px;
  padding: 16px 24px;
  color: #fbfcfc;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.grove-btn-primary:hover {
  background-color: #0046a1;
}

/* Button wrapper — centered */
.grove-cta-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

/* -------------------------
   OWA Responsive Overrides
   (must follow base definitions for correct cascade)
   ------------------------- */
@media (max-width: 991px) {
  .grove-owa-hero > .ct-section-inner-wrap {
    padding-left: 40px;
    padding-right: 40px;
  }

  .grove-owa-cards > .ct-section-inner-wrap {
    padding: 60px 40px;
  }

  .grove-owa-cards .grove-card-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .grove-owa-hero {
    min-height: 450px;
  }

  .grove-owa-hero > .ct-section-inner-wrap {
    min-height: 450px;
    padding: 100px 24px 60px;
  }

  .grove-owa-cards > .ct-section-inner-wrap {
    padding: 48px 22px;
  }

  .grove-owa-cards .grove-card-row {
    flex-direction: column;
    gap: 32px;
  }

  .grove-case-card {
    min-height: auto;
    padding: 40px 20px 30px;
    gap: 32px;
  }

  .grove-case-card-title {
    font-size: 30px;
  }

  .grove-card-logo {
    max-width: 310px;
    max-height: 78px;
  }

  .grove-cta-wrapper {
    margin-top: 48px;
    width: 100%;
  }

  .grove-cta-wrapper .grove-btn-primary {
    width: 100%;
  }
}

@media (max-width: 479px) {
  .grove-owa-hero {
    min-height: 400px;
  }

  .grove-owa-hero > .ct-section-inner-wrap {
    min-height: 400px;
    padding: 90px 16px 48px;
  }

  .grove-owa-cards > .ct-section-inner-wrap {
    padding: 48px 22px;
  }

  .grove-case-card {
    min-height: auto;
    gap: 32px;
  }

  .grove-card-logo {
    max-width: 310px;
    max-height: 78px;
  }

  .grove-case-card-title {
    font-size: 30px;
    line-height: 1.27;
  }
}


/* ============================================================
   CASE STUDY PAGES (page-id-209, 210, 212)
   Shared template: Hero, Body (Challenge + What We Did),
   Testimonial, CTA
   ============================================================ */

/* -------------------------
   CS Hero Section — white bg, split layout
   (text left, client logo right)
   ------------------------- */
.grove-cs-hero {
  background-color: #ffffff;
}

.grove-cs-hero > .ct-section-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px;
  max-width: 1120px;
}

/* Split container: text left, logo right on desktop */
.grove-cs-hero-split {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
}

/* Text column — left-aligned on desktop */
.grove-cs-hero-text {
  flex-direction: column;
  display: flex;
  align-items: flex-start;
  text-align: left;
  flex: 1;
  gap: 20px;
}

/* Logo column — right side on desktop */
.grove-cs-hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Client logo sizing — desktop default */
.grove-cs-client-logo {
  max-width: 320px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Width-constrained variant (tall/portrait logos) */
.grove-cs-client-logo--wide {
  max-height: none;
  max-width: 280px;
}

/* Breadcrumb */
.grove-cs-breadcrumb {
  color: #121212;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.33;
}

/* Hero title (h1) */
.grove-cs-title {
  color: #0b1b2a;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 70px;
  line-height: 1.14;
  letter-spacing: -1.4px;
}

/* Digimarc has longer title — smaller font */
.grove-cs-title--long {
  font-size: 65px;
  letter-spacing: -1.3px;
}

/* Location (h2) */
.grove-cs-location {
  color: #0046a1;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.375;
}

/* C&W white logo — invert to purple for white bg */
.grove-cs-client-logo--invert {
  filter: brightness(0) saturate(100%) invert(14%) sepia(60%) saturate(5000%) hue-rotate(255deg) brightness(70%) contrast(110%);
}


/* -------------------------
   CS Body Content Section
   ------------------------- */
.grove-cs-body {
  background-color: #e3eaf2;
}

.grove-cs-body > .ct-section-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px;
}

/* Rows wrapper — stacks rows vertically */
.grove-cs-columns {
  display: flex;
  flex-direction: column;
  gap: 64px;
  max-width: 1126px;
  width: 100%;
}

/* Each row — side by side */
.grove-cs-row {
  display: flex;
  flex-direction: row;
  gap: 64px;
  align-items: flex-start;
}

/* Text column (Challenge or What We Did) */
.grove-cs-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 20px;
}

/* Photo/media column — sits beside the text */
.grove-cs-col-media {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Empty spacer on the left of Row 2 */
.grove-cs-col-spacer {
  flex: 1;
}

/* Empty media column on C&W (no photo) — keep space so text stays in left column */
.grove-cs-col-media--empty {
  visibility: hidden;
}

/* Section headings (The Challenge / What We Did) */
.grove-cs-heading {
  color: #0046a1;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.3;
}

/* Body text */
.grove-cs-text {
  color: #333333;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
}

.grove-cs-text p {
  margin: 0 0 16px;
}

.grove-cs-text p:last-child {
  margin-bottom: 0;
}

.grove-cs-text a {
  color: #0d60cc;
  text-decoration: underline;
}

.grove-cs-text a:hover {
  color: #0046a1;
}

/* Case study photos */
.grove-cs-photo {
  width: 100%;
  max-width: 545px;
  border-radius: 10px;
  box-shadow: 6px 6px 9.4px rgba(0, 0, 0, 0.15);
  margin-top: 12px;
}


/* -------------------------
   CS Testimonial Section
   ------------------------- */
.grove-cs-testimonial {
  background-color: #0b1b2a;
}

.grove-cs-testimonial > .ct-section-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 100px 120px;
}

.grove-cs-quote {
  color: #ffffff;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.3;
  text-align: center;
  font-style: italic;
  max-width: 900px;
}


/* -------------------------
   CS CTA Section
   ------------------------- */
.grove-cs-cta {
  background-color: #ffffff;
}

.grove-cs-cta > .ct-section-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px;
}


/* ============================================================
   ACCESSIBILITY: Respect prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ticker-phrase,
  .ticker-phrase.animate__animated {
    animation: none !important;
    transition: none !important;
  }

  /* Show first phrase statically */
  .ticker-phrase {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .ticker-phrase.active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .flip-card-inner {
    transition: none !important;
  }

  /* Disable all icon animations */
  .icon-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  #icon-education .icon-line,
  #icon-ai .icon-sparkle,
  #icon-products,
  #icon-products .icon-tape line,
  #icon-food,
  #icon-rocket .icon-body,
  #icon-rocket .icon-flame,
  #icon-scales .scales-moving,
  #icon-coins .icon-coin-top,
  #icon-services {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  #icon-food {
    clip-path: inset(0 0 0 0) !important;
  }

  #icon-coins .icon-coin-top path,
  #icon-coins .icon-coin-top line {
    stroke-dashoffset: 0 !important;
    stroke-dasharray: none !important;
  }

  #icon-products .icon-tape line {
    stroke-dashoffset: 0 !important;
  }

  /* Disable card hover lift */
  .grove-case-card,
  .location-card-link {
    transition: none !important;
  }
}


/* ============================================================
   OUR TEAM PAGE (page-id-109)
   ============================================================ */

/* -------------------------
   Hero Section (video background)
   ------------------------- */
.grove-team-hero {
  background-image: linear-gradient(rgba(11,27,42,0.79) 20%, rgba(11,27,42,0.79) 50%);
  position: relative;
  min-height: 601px;
  z-index: 1;
}

.grove-team-hero .oxy-video-overlay {
  background-color: rgba(11, 27, 42, 0.4);
}

.grove-team-hero > .ct-section-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 601px;
  padding: 100px 80px 80px;
}

/* Hero content wrapper */
.grove-team-hero-content {
  flex-direction: column;
  display: flex;
  align-items: center;
  text-align: center;
  max-width: 1088px;
  gap: 20px;
}

/* Breadcrumb */
.grove-team-hero .grove-section-label {
  color: #ffffff;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.33;
  text-align: center;
}

/* Hero H1 */
.grove-team-hero .grove-hero-title {
  color: #ffffff;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 75px;
  line-height: 1.13;
  text-align: center;
  letter-spacing: -1.5px;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

/* Team hero responsive — must follow base definition for cascade */
@media (max-width: 991px) {
  .grove-team-hero .grove-hero-title { font-size: 52px; }
  .grove-team-hero .grove-section-label { font-size: 20px; }
}
@media (max-width: 767px) {
  .grove-team-hero .grove-hero-title { font-size: 44px; }
}
@media (max-width: 479px) {
  .grove-team-hero .grove-hero-title { font-size: 36px; }
  .grove-team-hero .grove-section-label { font-size: 16px; }
}

/* CTA button row */
.grove-hero-cta-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 20px;
}

/* Hero buttons — identical to global .grove-btn-primary, removed redundant rule */


/* -------------------------
   Team Section
   ------------------------- */
.grove-team-grid-section {
  background-color: #ffffff;
}

.grove-team-grid-section > .ct-section-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px;
}

/* Section title */
.grove-team-section-title {
  color: #0b1b2a;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 64px;
}

/* Team grid — single flex container, 3-col desktop / 2-col mobile */
.grove-team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 32px;
  width: 100%;
  max-width: 1280px;
  justify-content: center;
}

/* Legacy class kept for reference — replaced by .grove-team-grid */
.grove-team-row {
  flex-direction: row;
  display: flex;
  gap: 32px;
  width: 100%;
  max-width: 1280px;
  justify-content: center;
  margin-bottom: 48px;
}

/* Team member card links — 3 per row on desktop */
.grove-team-card-link {
  flex: 0 0 calc(33.333% - 22px);
  max-width: calc(33.333% - 22px);
  flex-direction: column;
  display: flex;
  align-items: center;
  text-align: center;
  gap: 16px;
  text-decoration: none;
  cursor: pointer;
}

/* Photo container */
.grove-team-photo-container {
  background-color: #ebeae5;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.45s ease;
}
.grove-team-card-link:hover .grove-team-photo-container {
  box-shadow: 0 10px 32px rgba(13, 96, 204, 0.18);
}

/* Headshot images — grayscale; hover reveals color with vibrancy + subtle zoom */
.grove-team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  transition: filter 0.45s ease, transform 0.45s ease;
}
.grove-team-card-link:hover .grove-team-photo {
  -webkit-filter: grayscale(0%) saturate(1.2) brightness(1.04);
  filter: grayscale(0%) saturate(1.2) brightness(1.04);
  transform: scale(1.05);
}

/* Team member names */
.grove-team-name {
  color: #0046a1;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.22;
  text-align: center;
}

/* Team member roles */
.grove-team-role {
  color: #555555;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
}


/* -------------------------
   Office Locations Section
   ------------------------- */
.grove-locations-section {
  background-color: #ffffff;
}

.grove-locations-section > .ct-section-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px;
}

/* Section title */
.grove-locations-title {
  color: #0b1b2a;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 48px;
}

/* Location cards row */
.grove-location-cards-row {
  flex-direction: row;
  display: flex;
  gap: 32px;
  max-width: 1126px;
  width: 100%;
  justify-content: center;
}

/* Location card link wrapper */
.location-card-link {
  flex: 1;
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}

.location-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Location cards */
.grove-location-card {
  background-color: #0046a1;
  border-radius: 10px;
  padding: 25px 18px 25px 24px;
  flex-direction: column;
  display: flex;
  gap: 18px;
  min-height: 280px;
  height: 100%;
}

/* Location pin icon */
.grove-location-pin {
  width: 37px;
  height: 47px;
  flex-shrink: 0;
}

/* City names */
.grove-location-city {
  color: #ffffff;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 45px;
  line-height: 1.15;
  text-align: left;
}

/* Addresses */
.grove-location-address {
  color: #ffffff;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.33;
  text-align: left;
}

/* Button wrapper */
.grove-locations-section .grove-cta-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* Locations Learn More button — identical to global .grove-btn-primary, removed redundant rule */

/* -------------------------
   Team Page Responsive Overrides
   (must follow base definitions for correct cascade)
   ------------------------- */
@media (max-width: 991px) {
  .grove-team-hero > .ct-section-inner-wrap,
  .grove-team-grid-section > .ct-section-inner-wrap,
  .grove-locations-section > .ct-section-inner-wrap {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 767px) {
  .grove-team-name {
    font-size: 28px;
  }

  .grove-location-city {
    font-size: 36px;
  }
}

@media (max-width: 479px) {
  .grove-team-hero {
    min-height: 400px;
  }

  .grove-team-hero > .ct-section-inner-wrap {
    min-height: 400px;
    padding: 80px 16px 48px;
  }

  .grove-hero-cta-row {
    flex-direction: column;
    width: 100%;
  }

  .grove-hero-cta-row .grove-btn-primary {
    width: 100%;
  }

  .grove-team-grid-section > .ct-section-inner-wrap {
    padding: 48px 16px;
  }

  .grove-team-section-title {
    font-size: 36px;
    margin-bottom: 32px;
  }

  .grove-team-grid {
    gap: 24px !important;
    justify-content: flex-start !important;
  }

  /* Legacy row fallback */
  .grove-team-row {
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
  }

  .grove-team-card-link {
    flex: 0 0 calc(50% - 12px) !important;
    max-width: calc(50% - 12px) !important;
  }

  .grove-team-photo-container {
    aspect-ratio: 1 / 1;
  }

  .grove-team-name {
    font-size: 24px;
  }

  .grove-team-role {
    font-size: 14px;
  }

  .grove-locations-section > .ct-section-inner-wrap {
    padding: 48px 16px;
  }

  .grove-locations-title {
    font-size: 36px;
    margin-bottom: 32px;
  }

  .grove-location-cards-row {
    flex-direction: column;
    gap: 20px;
  }

  .grove-location-cards-row .location-card-link {
    flex: none;
    width: 100%;
  }

  .grove-location-card {
    min-height: 200px;
  }

  .grove-location-city {
    font-size: 32px;
  }

  .grove-locations-section .grove-btn-primary {
    width: 100%;
  }
}


/* ============================================================
   TEAM MEMBER BIO PAGES (page-id-122, 124, 125, 127, 128, 129, 130, 149, 173)
   ============================================================ */

/* -------------------------
   Bio Section (white bg)
   ------------------------- */
.bio-section {
  background-color: #ffffff;
}

.bio-section > .ct-section-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px;
}

.bio-section-heading {
  color: #0b1b2a;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 48px;
}

/* -------------------------
   Bio Layout (two-column)
   ------------------------- */
.bio-layout {
  display: flex;
  flex-direction: row;
  gap: 48px;
  max-width: 1232px;
  width: 100%;
  align-items: flex-start;
}

/* Left column: photo + name + role + icons */
.bio-info-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  width: 405px;
  flex-shrink: 0;
}

/* Photo container */
.bio-photo-container {
  background-color: #ebe9e4;
  border-radius: 20px;
  overflow: hidden;
  width: 405px;
  height: 388px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
}

/* Name */
.bio-name {
  color: #0046a1;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.22;
  text-align: center;
}

/* Role */
.bio-role {
  color: #555555;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
}

/* Social icons row */
.bio-social-icons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 8px;
  justify-content: center;
}

.bio-social-link {
  display: inline-flex;
  transition: opacity 0.2s;
}

.bio-social-link:hover {
  opacity: 0.8;
}

.bio-social-link svg {
  width: 35px;
  height: 35px;
}

/* Right column: bio text */
.bio-text-column {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bio-text {
  color: #121212;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.25px;
}

/* -------------------------
   CTA Section (tan bg)
   ------------------------- */
.bio-cta-section {
  background-color: #ebe9e4;
}

.bio-cta-section > .ct-section-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px;
}

.bio-cta-label {
  color: #121212;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.33;
  text-align: center;
  margin-bottom: 20px;
}

.bio-cta-headline {
  color: #0b1b2a;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 75px;
  line-height: 1.13;
  text-align: center;
  letter-spacing: -1.5px;
  margin-bottom: 32px;
}

.bio-cta-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
}

.bio-cta-buttons .grove-btn-primary {
  min-width: 200px;
}

/* -------------------------
   Locations Section (white bg)
   ------------------------- */
.bio-locations-section {
  background-color: #ffffff;
}

.bio-locations-section > .ct-section-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px;
}

.bio-locations-heading {
  color: #0b1b2a;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 48px;
}

.bio-location-cards-row {
  display: flex;
  flex-direction: row;
  gap: 32px;
  max-width: 1126px;
  width: 100%;
  justify-content: center;
}

.bio-location-cards-row .location-card-link {
  flex: 1;
}

.bio-location-card {
  background-color: #0046a1;
  border-radius: 10px;
  padding: 25px 18px 25px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  height: 100%;
}

.bio-location-card .ct-headline {
  color: #ffffff;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 45px;
  line-height: 1.15;
  text-align: left;
}

.bio-location-card .ct-text-block {
  color: #ffffff;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.33;
  text-align: left;
}

.bio-learn-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* -------------------------
   Bio Page Responsive
   ------------------------- */

/* Tablet */
@media (max-width: 991px) {
  .bio-cta-headline {
    font-size: 56px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .bio-section > .ct-section-inner-wrap {
    padding: 40px 16px;
  }

  .bio-section-heading {
    font-size: 36px;
    margin-bottom: 32px;
  }

  .bio-layout {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }

  .bio-info-column {
    width: 100%;
    max-width: 341px;
  }

  .bio-photo-container {
    width: 341px;
    height: 324px;
  }

  .bio-name {
    font-size: 30px;
  }

  .bio-role {
    font-size: 15px;
  }

  .bio-text {
    font-size: 16px;
  }

  .bio-cta-section > .ct-section-inner-wrap {
    padding: 48px 16px;
  }

  .bio-cta-label {
    font-size: 18px;
  }

  .bio-cta-headline {
    font-size: 44px;
  }

  .bio-cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .bio-cta-buttons .grove-btn-primary {
    min-width: unset;
    width: 100%;
  }

  .bio-locations-section > .ct-section-inner-wrap {
    padding: 48px 16px;
  }

  .bio-locations-heading {
    font-size: 36px;
    margin-bottom: 32px;
  }

  .bio-location-cards-row {
    flex-direction: column;
    gap: 20px;
  }

  .bio-location-card {
    min-height: 200px;
  }

  .bio-location-card .ct-headline {
    font-size: 37px;
  }
}


/* =============================================================
   WordPress / Oxygen Builder Overrides
   =============================================================
   Oxygen generates ID-based CSS (specificity 1-0-0) that overrides
   our class-based selectors. This section uses !important to win
   the cascade battle for properties critical to interactive features.
   These rules only matter on the live WP site — locally they're
   harmless since the ID selectors don't exist.
   ============================================================= */

/* ---- Ticker: force absolute positioning + hidden on phrase wrappers ---- */
/* Oxygen sets display:flex on each ticker-phrase div via ID selectors.
   position:absolute needs !important to beat Oxygen's ID-based display:flex.
   opacity/visibility must NOT use !important — GSAP controls them via inline
   styles, which !important class rules would override. */
.grove-ticker-row .ticker-phrase {
  position: absolute !important;
  opacity: 0;
  visibility: hidden;
}

.grove-ticker-row .ticker-phrase.active {
  opacity: 1;
  visibility: visible;
}

/* Ticker headline inside the phrase div — inherit font-size from parent,
   override Oxygen's ID-based 40px on each headline element */
.grove-ticker-row .ticker-phrase .ct-headline {
  font-size: inherit !important;
  font-weight: 300 !important;
  display: inline !important;
}

.grove-ticker-row .ticker-phrase .ticker-bold {
  font-weight: 700 !important;
}

/* ---- Flip Cards: override Oxygen's card styles on the outer wrapper ---- */
/* Oxygen sets background-color, padding, flex on the outer .flip-card via IDs
   like #div_block-1009-2. We need the outer to be transparent with perspective. */
.grove-card-row .flip-card {
  background-color: transparent !important;
  padding: 0 !important;
  perspective: 1000px !important;
  min-height: 245px !important;
  cursor: pointer !important;
}

/* Oxygen sets transition-duration on the outer card — we need it on .flip-card-inner */
.grove-card-row .flip-card {
  transition: none !important;
}

/* Oxygen's hover on the outer card IDs (translateY, background-color change) */
.grove-card-row .flip-card:hover {
  background-color: transparent !important;
  transform: none !important;
}

/* Inner container needs 3D transform support */
.grove-card-row .flip-card-inner {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 245px !important;
  transition: transform 0.6s ease !important;
  transform-style: preserve-3d !important;
}

.grove-card-row .flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg) !important;
}

/* Front face */
.grove-card-row .flip-card-front {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  border-radius: 10px !important;
  padding: 30px 25px 23px 30px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  background-color: #0046a1 !important;
  box-shadow: 6px 6px 9.4px 0px #00000026;
}

/* Back face */
.grove-card-row .flip-card-back {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  border-radius: 10px !important;
  padding: 30px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  background-color: #ebe9e4 !important;
  transform: rotateY(180deg) !important;
}

/* Back face text — target both <p> and .ct-text-block for WP compatibility */
.flip-card-back p,
.flip-card-back .ct-text-block {
  color: #121212;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
}

/* Card headlines in WP — Oxygen sets these via ID but they should be fine.
   Add !important to ensure white text on front face */
.flip-card-front .ct-headline {
  color: #fbfcfc !important;
  font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-weight: 400 !important;
  font-size: 30px !important;
  line-height: 1.33 !important;
}

/* Arrow images on front face */
.flip-card-front .ct-image {
  width: 26px !important;
  height: 19px !important;
  align-self: flex-end !important;
}

/* ---- Card Row containers: Oxygen sets display/flex/gap via IDs ---- */
/* Ensure both rows behave as flex-row with proper gap */
.grove-card-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 32px !important;
  width: 100% !important;
}

/* ---- Card Row 1: Oxygen sets max-width:1123px via #div_block-1008-2 ---- */
/* Already correct in Oxygen, but reinforce to be safe */
.grove-card-row:not(.grove-card-row--narrow) {
  max-width: 1123px !important;
  margin-bottom: 32px !important;
}

/* ---- Card Row 2: Oxygen sets max-width:738px via #div_block-1018-2 ---- */
/* Should be same width as row 1 so the 2 cards match the 3-card sizing */
.grove-card-row.grove-card-row--narrow {
  max-width: 1123px !important;
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ---- Row 2 cards: Oxygen sets flex:1 via IDs — override to match 3-card width ---- */
/* Each card should be (1123px - 2*32px gap) / 3 = ~353px, not flex:1 which stretches */
.grove-card-row.grove-card-row--narrow .flip-card {
  flex: 0 1 calc((1123px - 64px) / 3) !important;
}

/* ---- Food icon: hide leftover <img> from original Oxygen build ---- */
/* WP has both an <img> and a <svg> (in ct_code_block) for this icon */
#image-1044-2 {
  display: none !important;
}

/* ---- Icons: target by Oxygen's structure since .icon-item class is missing ---- */
/* On WP the icon containers are plain ct-div-block with IDs, not .icon-item.
   We use the section structure to target them. */
/* Oxygen's "Where We Work" section icon rows */
#div_block-1029-2 > .ct-div-block,
#div_block-1046-2 > .ct-div-block {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#div_block-1029-2 > .ct-div-block.visible,
#div_block-1046-2 > .ct-div-block.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive overrides for WP ---- */
@media (max-width: 991px) {
  .grove-card-row {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
}

@media (max-width: 767px) {
  .grove-card-row {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .grove-card-row .flip-card {
    flex: 1 !important;
    min-height: 150px !important;
  }
  .grove-card-row .flip-card-inner {
    min-height: 150px !important;
  }
  .grove-card-row.grove-card-row--narrow {
    max-width: 100% !important;
  }
  .grove-card-row.grove-card-row--narrow .flip-card {
    flex: 1 !important;
  }
  .flip-card-front .ct-headline {
    font-size: 24px !important;
  }
  .flip-card-back p,
  .flip-card-back .ct-text-block {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  .grove-content ul, .grove-content ol {
    padding-left: .5em;
  }
}

@media (max-width: 479px) {
  .grove-card-row .flip-card {
    min-height: 130px !important;
  }
  .grove-card-row .flip-card-inner {
    min-height: 130px !important;
  }

}
