/*!
 * Components CSS - Valuize Theme
 * Reusable component styles for consistent design system
 * Version: 1.0.0
 */

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */

:root {
  /* Brand Colors - Updated to match actual Valuize website */
  --color-primary-blue: #0c75bc;
  --color-secondary-blue: #0974bb;
  --color-primary-purple: #4d3592;
  --color-secondary-purple: #29235c;
  
  /* Gradients - Updated for hero section compatibility */
  --gradient-primary: linear-gradient(90deg, #4d3592 0%, #090979 35%, #0974bb 100%);
  --gradient-reverse: linear-gradient(90deg, #0974bb 0%, #0951bb 29%, #4d3592 100%);
  
  /* Services section gradient - matching the live site */
  --e-global-color-eede117: #4372B6;
  --e-global-color-fe0ed91: #1B0B38;
  --gradient-services: linear-gradient(180deg, var(--e-global-color-eede117) 0%, var(--e-global-color-fe0ed91) 100%);
  
  /* Text Colors - Optimized for white-to-blue gradient background */
  --color-text-primary: #333333;
  --color-text-heading: #1a1a1a;
  --color-text-muted: #666666;
  --color-text-light: #ffffff;
  
  /* Background Colors */
  --color-bg-primary: #ffffff;
  --color-bg-light: #f8f9fa;
  --color-bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  
  /* Typography */
  --font-primary: 'Roboto', sans-serif;
  --font-headings: 'Roboto', sans-serif;
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-xxl: 80px;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(77, 53, 146, 0.15);
  --shadow-lg: 0 8px 24px rgba(77, 53, 146, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ==========================================================================
   Section Wrapper Components
   ========================================================================== */

.section-wrapper {
  width: 100%;
  position: relative;
}

.section-wrapper--default {
  background: var(--color-bg-primary);
}

.section-wrapper--light {
  background: var(--color-bg-light);
}

.section-wrapper--gradient {
  background: var(--color-bg-gradient);
}

.section-wrapper--padding-small {
  padding: var(--spacing-lg) 0;
}

.section-wrapper--padding-normal {
  padding: var(--spacing-xxl) 0;
}

.section-wrapper--padding-large {
  padding: 120px 0;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
  .section-container {
    padding: 0 var(--spacing-md);
  }
}

/* ==========================================================================
   CTA Button Components
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 16px 32px;
  border: none;
  border-radius: 100px;
  font-family: var(--font-primary);
  font-weight: var(--weight-bold);
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: normal;
  position: relative;
}

.btn:focus {
  outline: 3px solid rgba(67, 114, 182, 0.5);
  outline-offset: 2px;
}

/* Primary CTA Button */
.btn-cta.btn--primary {
  position: relative;
  background: var(--gradient-primary);
  color: var(--color-text-light);
  border: none;
  box-shadow: 0 4px 20px rgba(67, 114, 182, 0.3);
  transition: all 0.2s ease;
}

.btn-cta.btn--primary:before {
  border-radius: 100px;
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--gradient-reverse);
  z-index: -1;
  transition: opacity 0.2s linear;
  opacity: 0;
}

.btn-cta.btn--primary:hover,
.btn-cta.btn--primary:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(77, 53, 146, 0.4);
  color: var(--color-text-light);
}

.btn-cta.btn--primary:hover:before,
.btn-cta.btn--primary:focus:before {
  opacity: 1;
}

/* Secondary CTA Button */
.btn-cta.btn--secondary {
  position: relative;
  background: transparent;
  color: #4372B6;
  border: 2px solid #4372B6;
  box-shadow: 0 2px 8px rgba(67, 114, 182, 0.2);
  transition: all 0.2s ease;
}

.btn-cta.btn--secondary:before {
  border-radius: 100px;
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--gradient-primary);
  z-index: -1;
  transition: opacity 0.2s linear;
  opacity: 0;
}

.btn-cta.btn--secondary:hover,
.btn-cta.btn--secondary:focus {
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77, 53, 146, 0.3);
}

.btn-cta.btn--secondary:hover:before,
.btn-cta.btn--secondary:focus:before {
  opacity: 1;
}

/* Outline Button */
.btn-cta.btn--outline {
  position: relative;
  background: transparent;
  color: #4372B6;
  border: 2px solid #4372B6;
  transition: all 0.2s ease;
}

.btn-cta.btn--outline:before {
  border-radius: 100px;
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--gradient-primary);
  z-index: -1;
  transition: opacity 0.2s linear;
  opacity: 0;
}

.btn-cta.btn--outline:hover,
.btn-cta.btn--outline:focus {
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(77, 53, 146, 0.25);
}

.btn-cta.btn--outline:hover:before,
.btn-cta.btn--outline:focus:before {
  opacity: 1;
}

/* Button Sizes */
.btn--small {
  padding: 12px 24px;
  font-size: 0.9rem;
}

.btn--large {
  padding: 20px 40px;
  font-size: 1.1rem;
  font-weight: var(--weight-bold);
}

/* Button Icons */
.btn .btn-icon {
  font-size: 1.1em;
}

/* Service Button FontAwesome Icons */
.service-cta .btn i,
.btn i.fa-solid {
  color: white !important;
  font-size: 18px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Component Specificity Overrides */
/* Override entry-content styles for component classes */
.entry-content h3.challenge-title,
.all__content h3.challenge-title,
.entry-content h3.service-title,
.all__content h3.service-title {
  font-family: var(--font-headings);
  font-weight: var(--weight-bold);
  color: inherit;
  line-height: inherit;
  margin-bottom: inherit;
}

.entry-content p.challenge-description,
.all__content p.challenge-description,
.entry-content p.service-description,
.all__content p.service-description {
  font-family: var(--font-primary);
  font-weight: 300;
  color: inherit;
  line-height: inherit;
  margin-bottom: inherit;
  padding-bottom: 0;
}

.entry-content ul.service-features li,
.all__content ul.service-features li {
  list-style-type: none !important;
  font-family: var(--font-primary);
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* ==========================================================================
   Grid Container Components
   ========================================================================== */

.grid-container {
  display: grid;
  width: 100%;
}

.grid-2-col {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3-col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4-col {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-4-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Grid Gaps */
.grid-gap-small {
  gap: var(--spacing-md);
}

.grid-gap-normal {
  gap: var(--spacing-lg);
}

.grid-gap-large {
  gap: var(--spacing-xl);
}

/* Grid Alignment */
.grid-align-start {
  align-items: start;
}

.grid-align-center {
  align-items: center;
}

.grid-align-end {
  align-items: end;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .grid-2-col,
  .grid-3-col,
  .grid-4-col,
  .grid-auto {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

/* ==========================================================================
   Typography Components
   ========================================================================== */

.section-headline-primary {
  font-family: var(--font-headings);
  font-weight: var(--weight-bold);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1.1;
  color: var(--color-text-heading);
  margin: 0 0 var(--spacing-lg) 0;
  letter-spacing: -0.02em;
}

h1.hero-headline,
.hero-headline {
  font-family: var(--font-headings);
  font-weight: 300;
  font-size: 2.6rem;
  line-height: 1.05;
  color: #1B0B38;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.025em;
}

.hero-headline span {
  font-weight: 500;
}

p.hero-subheadline,
.hero-subheadline {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.4;
  color: #1B0B38;
  margin: 0 0 var(--spacing-xl) 0;
}

/* Override entry-content p styles for hero-subheadline */
.entry-content p.hero-subheadline,
.all__content p.hero-subheadline {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.4;
  color: #1B0B38;
  margin: 0 0 var(--spacing-xl) 0;
  padding-bottom: 0;
}

h2.section-headline-secondary,
.section-headline-secondary {
  font-family: var(--font-headings);
  font-weight: 300;
  font-size: 2.6rem;
  line-height: 1.05;
  color: #1B0B38;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.025em;
}

.section-headline-secondary span {
  font-weight: 500;
}

p.subheading,
.subheading {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.4;
  color: #1B0B38;
  margin-bottom: var(--spacing-xl);
}

.feature-title {
  font-family: var(--font-headings);
  font-weight: var(--weight-bold);
  font-size: 1.4rem;
  line-height: 1.3;
  color: #4372B6;
  margin: 0 0 var(--spacing-md) 0;
}

.body-text {
  font-family: var(--font-primary);
  font-weight: var(--weight-regular);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  margin: 0 0 var(--spacing-md) 0;
}

.text-large {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* ==========================================================================
   Footer Components
   ========================================================================== */

.site-footer {
  background: linear-gradient(180deg, #483790 0%, #0974BA 100%);
  color: white;
}

.footer-content {
  margin-bottom: var(--spacing-lg);
}

.footer-section-title {
  font-family: var(--font-headings);
  font-weight: var(--weight-bold);
  font-size: 1rem;
  color: white;
  margin-bottom: var(--spacing-md);
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: var(--spacing-sm);
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  transition: color var(--transition-fast);
}

.footer-menu a:hover {
  color: white;
}

.footer-contact a {
  font-weight: var(--weight-bold);
}

.footer-social-icons {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0;
  display: flex;
  gap: var(--spacing-sm);
}

.footer-social-icons li {
  margin: 0;
}

.footer-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all var(--transition-fast);
}

.footer-social-icons a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-social-icons svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.valueflow-link {
  margin-top: var(--spacing-lg);
}

.valueflow-title {
  font-family: var(--font-headings);
  font-weight: var(--weight-bold);
  font-size: 1rem;
  color: white;
  margin-bottom: var(--spacing-sm);
}

.valueflow-logo {
  max-width: 150px;
  height: auto;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--spacing-lg);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-copyright {
  font-family: var(--font-primary);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: var(--spacing-md);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 0.7rem;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: white;
}

@media (max-width: 767px) {
  .footer-section {
    text-align: center;
  }
  
  .footer-section-title {
    text-align: center;
  }
  
  .footer-menu {
    text-align: center;
  }
  
  .footer-social-icons {
    justify-content: center;
  }
  
  .valueflow-link {
    text-align: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Global Button Override - Apply pill shape to ALL buttons
   ========================================================================== */

.button,
.btn,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.wp-block-button__link,
.wp-element-button,
a.button,
.entry-content a.button,
.all__content a.button,
.footer-cta .footer-cta-holder .button,
.cta-wide .button,
.cta-simple .button,
.custom-title-block .button,
#vws .gform_wrapper input.button,
.parallax-window .content-overlay a.button {
  border-radius: 100px;
}

/* Also apply to pseudo-elements that use border-radius */
.button:before,
.entry-content a.button:before,
.all__content a.button:before,
.footer-cta .footer-cta-holder .button:before,
.cta-wide .button:before,
.cta-simple .button:before,
.custom-title-block .button:before,
.parallax-window .content-overlay a.button:before {
  border-radius: 100px;
}

/* ==========================================================================
   Responsive Typography for Section Titles
   ========================================================================== */

/* Mobile responsive styling for section titles */
@media (max-width: 768px) {
  .section-headline-secondary {
    font-size: 1.8rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  h1.hero-headline, .hero-headline, h2.section-headline-secondary, .section-headline-secondary {
    font-size: 1.8rem;
  }
  
  p.hero-subheadline, .hero-subheadline, p.subheading, .subheading, .challenges-intro p {
    font-size: 1rem;
  }

  .subheading {
    font-size: 1.1rem;
    line-height: 1.5;
  }
  
  .feature-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .section-headline-secondary {
    font-size: 1.8rem;
    line-height: 1.15;
  }
  
  .subheading {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .feature-title {
    font-size: 1.1rem;
  }
} 

#quadmenu.quadmenu-default_theme .quadmenu-navbar-nav .quadmenu-dropdown-menu .button {
  background: #483790;
}

/* ==========================================================================
   Responsive Typography
   ========================================================================== */

@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.8rem;
    line-height: 1.15;
  }
  
  .hero-subheadline {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .section-headline-secondary {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .subheading {
    font-size: 1rem;
    line-height: 1.5;
  }
}