/* ========================================
   CSS VARIABLES - ABREU ADVOGADOS
   Design System & Component Library
   ======================================== */

/* ========================================
   1. BREAKPOINTS & RESPONSIVE SYSTEM
   ======================================== */
:root {
  /* Breakpoints */
  --breakpoint-xs: 320px;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-2xl: 1536px;
  --breakpoint-3xl: 1600px;
  --breakpoint-4xl: 1800px;
}

/* ========================================
   2. COLOR SYSTEM
   ======================================== */
:root {
  /* Base Colors */
  --color-dark: #000000;
  --color-white: #ffffff;
  --color-blue: #0000FF;

  --color-red-500: #FF1B43;
  --color-red-600: #ED1C24;
  
  /* Gray Scale */
  --color-gray-200: #F5F4F4;
  --color-gray-500: #7E7F80;
  --color-gray-800: #282929;
  --color-gray: #A7A8A9;
  --color-light-gray: #D9D9D9;
  --color-dark-gray: #585858;
  
  /* Semantic Colors */
  --color-primary: var(--color-dark);
  --color-secondary: var(--color-blue);
  --color-text: var(--color-dark);
  --color-text-muted: var(--color-gray);
  --color-background: var(--color-white);
  --color-border: #e5e5e5;
  --color-border-hover: #d5d5d5;
  --color-background-hover: #f5f5f5;
  --color-background-active: #e5e5e5;
}

/* ========================================
   3. TYPOGRAPHY SYSTEM
   ======================================== */
:root {
  /* Font Families */
  --font-primary: "HurmeGeometricSans1", sans-serif;
  --font-secondary: "HurmeGeometricSans4", sans-serif;
  --font-body: "Roboto", sans-serif;
  
  /* Font Weights */
  --font-weight-thin: 300;
  --font-weight-light: 400;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Font Sizes - Mobile First */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 22px;
  --font-size-3xl: 24px;
  --font-size-4xl: 28px;
  --font-size-5xl-sm: 32px;
  --font-size-5xl: 36px;
  --font-size-6xl: 48px;
  --font-size-7xl: 56px;
  --font-size-8xl: 64px;
  
  /* Line Heights */
  --line-height-small: 1;
  --line-height-slim: 1.1;
  --line-height-tight: 1.2;
  --line-height-normal: 1.4;
  --line-height-relaxed: 1.6;
  
  /* Letter Spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
}

/* ========================================
   4. SPACING SYSTEM
   ======================================== */
:root {
  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
}

/* ========================================
   5. LAYOUT SYSTEM
   ======================================== */
:root {
  /* Container */
  --container-max-width: 1440px;
  --container-padding-mobile: 24px;
  --container-padding-tablet: 32px;
  --container-padding-desktop: 48px;
  --container-padding-large: 80px;
  --container-padding-xl: 0px;
}

/* Container Responsive Padding - Mobile First */
:root {
  --container-padding: var(--container-padding-mobile);
}

@media (min-width: 577px) {
  :root {
    --container-padding: var(--container-padding-tablet);
  }
}

@media (min-width: 769px) {
  :root {
    --container-padding: var(--container-padding-desktop);
  }
}

@media (min-width: 993px) {
  :root {
    --container-padding: var(--container-padding-large);
  }
}

@media (min-width: 1536px) {
  :root {
    --container-padding: var(--container-padding-xl);
  }
}

/* ========================================
   6. COMPONENT SYSTEM
   ======================================== */

/* Button Primary */
:root {
  --button-primary-padding-y: var(--space-3);
  --button-primary-padding-x: var(--space-6);
  --button-primary-font-family: var(--font-primary);
  --button-primary-font-weight: var(--font-weight-bold);
  --button-primary-font-size: var(--font-size-sm); /* Mobile first */
  --button-primary-line-height: var(--space-6);
  --button-primary-color: var(--color-primary);
  --button-primary-background: var(--color-background);
  --button-primary-border: 1px solid var(--color-border);
  --button-primary-border-radius: 0px;
  --button-primary-transition: all 0.3s ease;
  
  /* SVG Animation Variables */
  --button-svg-transition: transform 0.3s ease;
  --button-svg-hover-transform: translateX(4px);
  --button-svg-scale: 1;
  --button-svg-hover-scale: 1.1;
  
  /* Button Primary Dark (no arrows) */
  --button-primary-dark-color: var(--color-white);
  --button-primary-dark-background: var(--color-dark);
  --button-primary-dark-border: 1px solid var(--color-dark);
  --button-primary-dark-hover-background: #333333;
  --button-primary-dark-hover-border: 1px solid #333333;
  
  /* Button Primary White (no arrows) */
  --button-primary-white-color: var(--color-dark);
  --button-primary-white-background: var(--color-white);
  --button-primary-white-border: 1px solid var(--color-border);
  --button-primary-white-hover-background: #f5f5f5;
  --button-primary-white-hover-border: 1px solid var(--color-border-hover);
}

/* Button Primary - Desktop */
@media (min-width: 992px) {
  :root {
    --button-primary-font-size: var(--font-size-base);
  }
}

/* ========================================
   7. UTILITY CLASSES - COLORS
   ======================================== */
.abreu-dark { color: var(--color-dark); }
.abreu-white { color: var(--color-white); }
.abreu-gray { color: var(--color-gray); }
.abreu-light-gray { color: var(--color-light-gray); }
.abreu-dark-gray { color: var(--color-dark-gray); }
.abreu-blue { color: var(--color-blue); }

/* ========================================
   8. UTILITY CLASSES - TYPOGRAPHY
   ======================================== */

/* Font Family Classes */
.abreu-font-primary { font-family: var(--font-primary); }
.abreu-font-secondary { font-family: var(--font-secondary); }
.abreu-font-body { font-family: var(--font-body); }

/* Font Weight Classes */
.abreu-font-thin { font-weight: var(--font-weight-thin); }
.abreu-font-light { font-weight: var(--font-weight-light); }
.abreu-font-regular { font-weight: var(--font-weight-regular); }
.abreu-font-medium { font-weight: var(--font-weight-medium); }
.abreu-font-semibold { font-weight: var(--font-weight-semibold); }
.abreu-font-bold { font-weight: var(--font-weight-bold); }

/* Font Size Classes */
.abreu-text-xs { font-size: var(--font-size-xs); }
.abreu-text-sm { font-size: var(--font-size-sm); }
.abreu-text-base { font-size: var(--font-size-base); }
.abreu-text-lg { font-size: var(--font-size-lg); }
.abreu-text-xl { font-size: var(--font-size-xl); }
.abreu-text-2xl { font-size: var(--font-size-2xl); }
.abreu-text-3xl { font-size: var(--font-size-3xl); }
.abreu-text-4xl { font-size: var(--font-size-4xl); }
.abreu-text-5xl { font-size: var(--font-size-5xl); }
.abreu-text-6xl { font-size: var(--font-size-6xl); }
.abreu-text-7xl { font-size: var(--font-size-7xl); }
.abreu-text-8xl { font-size: var(--font-size-8xl); }

/* ========================================
   8.1. UTILITY CLASSES - SVG ANIMATIONS
   ======================================== */

/* SVG Animation Classes */
.svg-animate-slide { transition: var(--button-svg-transition); }
.svg-animate-rotate { transition: var(--button-svg-transition); }
.svg-animate-bounce { transition: var(--button-svg-transition); }
.svg-animate-scale { transition: var(--button-svg-transition); }

/* Hover Effects */
.button-primary:hover .svg-animate-slide { transform: var(--button-svg-hover-transform); }
.button-primary:hover .svg-animate-rotate { transform: rotate(45deg) scale(var(--button-svg-hover-scale)); }
.button-primary:hover .svg-animate-scale { transform: scale(var(--button-svg-hover-scale)); }
.button-primary:hover .svg-animate-bounce { animation: svg-bounce 0.6s ease; }

/* ========================================
   9. COMPONENT CLASSES
   ======================================== */

/* Container */
.default-container {
  width: 100%;
  max-width: var(--container-max-width);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  margin-left: auto;
  margin-right: auto;
}

/* Button Primary */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--button-primary-padding-y) var(--button-primary-padding-x);
  font-family: var(--button-primary-font-family);
  font-weight: var(--button-primary-font-weight);
  font-size: var(--button-primary-font-size);
  line-height: var(--button-primary-line-height);
  color: var(--button-primary-color);
  background-color: var(--button-primary-background);
  border: var(--button-primary-border);
  border-radius: var(--button-primary-border-radius);
  text-decoration: none;
  cursor: pointer;
  transition: var(--button-primary-transition);
  white-space: nowrap;
}

.button-primary:hover {
  background-color: var(--color-background-hover);
  border-color: var(--color-border-hover);
  text-decoration: none;
  color: var(--button-primary-color);
}

.button-primary:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.button-primary:active {
  background-color: var(--color-background-active);
  transform: translateY(1px);
}

/* SVG Animation for Buttons */
.button-primary svg,
.button-primary .icon {
  transition: var(--button-svg-transition);
  transform: scale(var(--button-svg-scale));
}

.button-primary:hover svg,
.button-primary:hover .icon {
  transform: var(--button-svg-hover-transform) scale(var(--button-svg-hover-scale));
}

/* Alternative SVG Animation - Slide Right */
.button-primary .svg-slide-right {
  transition: var(--button-svg-transition);
}

.button-primary:hover .svg-slide-right {
  transform: var(--button-svg-hover-transform);
}

/* Alternative SVG Animation - Rotate */
.button-primary .svg-rotate {
  transition: var(--button-svg-transition);
}

.button-primary:hover .svg-rotate {
  transform: rotate(45deg) scale(var(--button-svg-hover-scale));
}

/* Alternative SVG Animation - Bounce */
.button-primary .svg-bounce {
  transition: var(--button-svg-transition);
}

.button-primary:hover .svg-bounce {
  animation: svg-bounce 0.6s ease;
}

@keyframes svg-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) scale(var(--button-svg-hover-scale));
  }
  40% {
    transform: translateY(-8px) scale(var(--button-svg-hover-scale));
  }
  60% {
    transform: translateY(-4px) scale(var(--button-svg-hover-scale));
  }
}

/* ========================================
   BUTTON ANIMATION SYSTEM - SIMPLIFIED
   ======================================== */

/* Animation Variables */
:root {
  --button-animation-duration: 0.5s;
  --button-animation-easing: cubic-bezier(0.25, 0.25, 0.08, 1.08);
  --button-scale-hover: 1.02;
  --button-scale-active: 0.98;
}

/* ========================================
   ARROW SLIDE ANIMATION - SVG PSEUDO ELEMENTS
   ======================================== */

/* Base button with arrow slide animation */
.button-primary.arrow-slide,
.button-primary.arrow-slide-dark,
.header-cta-button.arrow-slide,
.header-cta-button.arrow-slide-dark,
.header-cta-mobile-button.arrow-slide,
.header-cta-mobile-button.arrow-slide-dark,
a.button-primary.arrow-slide,
a.button-primary.arrow-slide-dark,
a.header-cta-button.arrow-slide,
a.header-cta-button.arrow-slide-dark,
a.header-cta-mobile-button.arrow-slide,
.footer-btn.arrow-slide,
.footer-btn.arrow-slide-dark {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding-right: 3.5rem; /* Space for arrow */
  transition: all var(--button-animation-duration) var(--button-animation-easing);
}

/* Button text span - for arrow positioning */
.button-text {
  position: relative;
  display: inline-block;
}

/* Arrow pseudo-elements with SVG - Default (black arrows) - positioned relative to text span */
.button-primary.arrow-slide .button-text::before,
.button-primary.arrow-slide .button-text::after,
.header-cta-button.arrow-slide .button-text::before,
.header-cta-button.arrow-slide .button-text::after,
.header-cta-mobile-button.arrow-slide .button-text::before,
.header-cta-mobile-button.arrow-slide .button-text::after,
a.button-primary.arrow-slide .button-text::before,
a.button-primary.arrow-slide .button-text::after,
a.header-cta-button.arrow-slide .button-text::before,
a.header-cta-button.arrow-slide .button-text::after,
a.header-cta-mobile-button.arrow-slide .button-text::before,
a.header-cta-mobile-button.arrow-slide .button-text::after,
.footer-btn.arrow-slide .button-text::before,
.footer-btn.arrow-slide .button-text::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -40px; /* Positioned relative to text span */
  width: 30px;
  height: 8px;
  transform: translate(0%, -50%);
  transition: all var(--button-animation-duration) var(--button-animation-easing);
  background-image: url("data:image/svg+xml,%3Csvg width='30' height='8' viewBox='0 0 30 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4H27' stroke='%23000'/%3E%3Cpath d='M24 1L27 4L24 7' stroke='%23000'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Dark version with white arrows - positioned relative to text span */
.button-primary.arrow-slide-dark .button-text::before,
.button-primary.arrow-slide-dark .button-text::after,
.header-cta-button.arrow-slide-dark .button-text::before,
.header-cta-button.arrow-slide-dark .button-text::after,
.header-cta-mobile-button.arrow-slide-dark .button-text::before,
.header-cta-mobile-button.arrow-slide-dark .button-text::after,
a.button-primary.arrow-slide-dark .button-text::before,
a.button-primary.arrow-slide-dark .button-text::after,
a.header-cta-button.arrow-slide-dark .button-text::before,
a.header-cta-button.arrow-slide-dark .button-text::after,
a.header-cta-mobile-button.arrow-slide-dark .button-text::before,
a.header-cta-mobile-button.arrow-slide-dark .button-text::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -40px; /* Positioned relative to text span */
  width: 30px;
  height: 8px;
  transform: translate(0%, -50%);
  transition: all var(--button-animation-duration) var(--button-animation-easing);
  background-image: url("data:image/svg+xml,%3Csvg width='30' height='8' viewBox='0 0 30 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4H27' stroke='%23fff'/%3E%3Cpath d='M24 1L27 4L24 7' stroke='%23fff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Outgoing arrow (visible by default) - Dark version */
.button-primary.arrow-slide-dark .button-text::after,
.header-cta-button.arrow-slide-dark .button-text::after,
.header-cta-mobile-button.arrow-slide-dark .button-text::after,
a.button-primary.arrow-slide-dark .button-text::after,
a.header-cta-button.arrow-slide-dark .button-text::after,
a.header-cta-mobile-button.arrow-slide-dark .button-text::after {
  opacity: 1;
  transform: translate(0%, -50%);
}

/* Incoming arrow (hidden by default) - Dark version */
.button-primary.arrow-slide-dark .button-text::before,
.header-cta-button.arrow-slide-dark .button-text::before,
.header-cta-mobile-button.arrow-slide-dark .button-text::before,
a.button-primary.arrow-slide-dark .button-text::before,
a.header-cta-button.arrow-slide-dark .button-text::before,
a.header-cta-mobile-button.arrow-slide-dark .button-text::before {
  opacity: 0;
  transform: translate(-100%, -50%);
}

/* Outgoing arrow (visible by default) */
.button-primary.arrow-slide::after,
.header-cta-button.arrow-slide::after,
.header-cta-mobile-button.arrow-slide::after,
a.button-primary.arrow-slide::after,
a.header-cta-button.arrow-slide::after,
a.header-cta-mobile-button.arrow-slide::after,
.footer-btn.arrow-slide .button-text::after {
  opacity: 1;
  transform: translate(0%, -50%);
}

/* Incoming arrow (hidden by default) */
.button-primary.arrow-slide::before,
.header-cta-button.arrow-slide::before,
.header-cta-mobile-button.arrow-slide::before,
a.button-primary.arrow-slide::before,
a.header-cta-button.arrow-slide::before,
a.header-cta-mobile-button.arrow-slide::before,
.footer-btn.arrow-slide .button-text::before {
  opacity: 0;
  transform: translate(-100%, -50%);
}

/* Hover states */
.button-primary.arrow-slide:hover::before,
.header-cta-button.arrow-slide:hover::before,
.header-cta-mobile-button.arrow-slide:hover::before,
a.button-primary.arrow-slide:hover::before,
a.header-cta-button.arrow-slide:hover::before,
a.header-cta-mobile-button.arrow-slide:hover::before,
.footer-btn.arrow-slide:hover .button-text::before {
  opacity: 1;
  transform: translate(0%, -50%);
}

.button-primary.arrow-slide:hover::after,
.header-cta-button.arrow-slide:hover::after,
.header-cta-mobile-button.arrow-slide:hover::after,
a.button-primary.arrow-slide:hover::after,
a.header-cta-button.arrow-slide:hover::after,
a.header-cta-mobile-button.arrow-slide:hover::after,
.footer-btn.arrow-slide:hover .button-text::after {
  opacity: 0;
  transform: translate(100%, -50%);
}

/* Hover states for dark version */
.button-primary.arrow-slide-dark:hover .button-text::before,
.header-cta-button.arrow-slide-dark:hover .button-text::before,
.header-cta-mobile-button.arrow-slide-dark:hover .button-text::before,
a.button-primary.arrow-slide-dark:hover .button-text::before,
a.header-cta-button.arrow-slide-dark:hover .button-text::before,
a.header-cta-mobile-button.arrow-slide-dark:hover .button-text::before {
  opacity: 1;
  transform: translate(0%, -50%);
}

.button-primary.arrow-slide-dark:hover .button-text::after,
.header-cta-button.arrow-slide-dark:hover .button-text::after,
.header-cta-mobile-button.arrow-slide-dark:hover .button-text::after,
a.button-primary.arrow-slide-dark:hover .button-text::after,
a.header-cta-button.arrow-slide-dark:hover .button-text::after,
a.header-cta-mobile-button.arrow-slide-dark:hover .button-text::after {
  opacity: 0;
  transform: translate(100%, -50%);
}

/* ========================================
   BUTTONS WITHOUT ARROWS - SHIMMER EFFECT
   ======================================== */

/* Base button styles without arrows */
.button-primary.no-arrow,
.header-cta-button.no-arrow,
.header-cta-mobile-button.no-arrow,
a.button-primary.no-arrow,
a.header-cta-button.no-arrow,
a.header-cta-mobile-button.no-arrow {
  position: relative;
  overflow: hidden;
  transition: all var(--button-animation-duration) var(--button-animation-easing);
}

/* Shimmer effect for buttons without arrows */
.button-primary.no-arrow::before,
.header-cta-button.no-arrow::before,
.header-cta-mobile-button.no-arrow::before,
a.button-primary.no-arrow::before,
a.header-cta-button.no-arrow::before,
a.header-cta-mobile-button.no-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--button-animation-duration) var(--button-animation-easing);
}

.button-primary.no-arrow:hover::before,
.header-cta-button.no-arrow:hover::before,
.header-cta-mobile-button.no-arrow:hover::before,
a.button-primary.no-arrow:hover::before,
a.header-cta-button.no-arrow:hover::before,
a.header-cta-mobile-button.no-arrow:hover::before {
  left: 100%;
}

/* Hover effects for buttons without arrows */
.button-primary.no-arrow:hover,
.header-cta-button.no-arrow:hover,
.header-cta-mobile-button.no-arrow:hover,
a.button-primary.no-arrow:hover,
a.header-cta-button.no-arrow:hover,
a.header-cta-mobile-button.no-arrow:hover {
  transform: scale(var(--button-scale-hover));
}

/* Active state for buttons without arrows */
.button-primary.no-arrow:active,
.header-cta-button.no-arrow:active,
.header-cta-mobile-button.no-arrow:active,
a.button-primary.no-arrow:active,
a.header-cta-button.no-arrow:active,
a.header-cta-mobile-button.no-arrow:active {
  transform: scale(var(--button-scale-active));
}

/* ========================================
   BUTTON VARIANTS - DARK & WHITE (NO ARROWS)
   ======================================== */

/*
  USAGE EXAMPLES:
  
  Dark Button (no arrows):
  <a href="#" class="button-primary button-primary--dark">Saiba mais</a>
  
  White Button (no arrows):
  <a href="#" class="button-primary button-primary--white">Saiba mais</a>
  
  These variants can be reused across the entire project.
  Hover effects include subtle background color changes and scale transforms.
*/

/* Button Primary Dark (no arrows) */
.button-primary--dark,
a.button-primary--dark {
  color: var(--button-primary-dark-color);
  background-color: var(--button-primary-dark-background);
  border: var(--button-primary-dark-border);
  transition: var(--button-primary-transition);
}

.button-primary--dark:hover,
a.button-primary--dark:hover {
  color: var(--button-primary-dark-color);
  background-color: var(--button-primary-dark-hover-background);
  border-color: var(--button-primary-dark-hover-border);
  transform: scale(var(--button-scale-hover));
}

.button-primary--dark:active,
a.button-primary--dark:active {
  transform: scale(var(--button-scale-active));
}

/* Button Primary White (no arrows) */
.button-primary--white,
a.button-primary--white {
  color: var(--button-primary-white-color);
  background-color: var(--button-primary-white-background);
  border: var(--button-primary-white-border);
  transition: var(--button-primary-transition);
}

.button-primary--white:hover,
a.button-primary--white:hover {
  background-color: var(--button-primary-white-hover-background);
  border-color: var(--button-primary-white-hover-border);
  transform: scale(var(--button-scale-hover));
}

.button-primary--white:active,
a.button-primary--white:active {
  transform: scale(var(--button-scale-active));
}

/* ========================================
   REGULAR BUTTON ANIMATIONS (FALLBACK)
   ======================================== */

/* Base button styles for buttons without specific classes */
.button-primary:not(.arrow-slide):not(.no-arrow),
.header-cta-button:not(.arrow-slide):not(.no-arrow),
.header-cta-mobile-button:not(.arrow-slide):not(.no-arrow),
a.button-primary:not(.arrow-slide):not(.no-arrow),
a.header-cta-button:not(.arrow-slide):not(.no-arrow),
a.header-cta-mobile-button:not(.arrow-slide):not(.no-arrow) {
  position: relative;
  transition: all var(--button-animation-duration) var(--button-animation-easing);
}

/* Hover effects for regular buttons */
.button-primary:not(.arrow-slide):not(.no-arrow):hover,
.header-cta-button:not(.arrow-slide):not(.no-arrow):hover,
.header-cta-mobile-button:not(.arrow-slide):not(.no-arrow):hover,
a.button-primary:not(.arrow-slide):not(.no-arrow):hover,
a.header-cta-button:not(.arrow-slide):not(.no-arrow):hover,
a.header-cta-mobile-button:not(.arrow-slide):not(.no-arrow):hover {
  transform: scale(var(--button-scale-hover));
}

/* Active state */
.button-primary:active,
.header-cta-button:active,
.header-cta-mobile-button:active,
a.button-primary:active,
a.header-cta-button:active,
a.header-cta-mobile-button:active {
  transform: scale(var(--button-scale-active));
}

/* ========================================
   BUTTON WITH ICON ANIMATION
   ======================================== */

/* Button with icon/SVG - only when present */
.button-primary:not(.arrow-slide) svg,
.button-primary:not(.arrow-slide) .button-icon,
.header-cta-button:not(.arrow-slide) svg,
.header-cta-mobile-button:not(.arrow-slide) svg,
a.button-primary:not(.arrow-slide) svg,
a.header-cta-button:not(.arrow-slide) svg,
a.header-cta-mobile-button:not(.arrow-slide) svg {
  transition: transform var(--button-animation-duration) var(--button-animation-easing);
  flex-shrink: 0;
}

.button-primary:not(.arrow-slide):hover svg,
.button-primary:not(.arrow-slide):hover .button-icon,
.header-cta-button:not(.arrow-slide):hover svg,
.header-cta-mobile-button:not(.arrow-slide):hover svg,
a.button-primary:not(.arrow-slide):hover svg,
a.header-cta-button:not(.arrow-slide):hover svg,
a.header-cta-mobile-button:not(.arrow-slide):hover svg {
  transform: translateX(4px);
}

/* ========================================
   10. ACCESSIBILITY & FOCUS MANAGEMENT
   ======================================== */
:root {
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
  --focus-ring-color: var(--color-primary);
}

/* ========================================
   11. ANIMATION & TRANSITIONS
   ======================================== */
:root {
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========================================
   12. Z-INDEX SCALE
   ======================================== */
:root {
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
}

/* ========================================
   13. SCALING ANIMATIONS - REUSABLE
   ======================================== */
:root {
  /* Scaling Animation Variables */
  --scale-normal: 1;
  --scale-sm: 1.05;
  --scale-md: 1.1;
  --scale-lg: 1.15;
  --scale-xl: 1.2;
  --scale-transition: transform 0.3s cubic-bezier(0.25, 0.25, 0.08, 1.08);
  --scale-transition-fast: transform 0.2s ease;
  --scale-transition-slow: transform 0.4s ease;
  
  /* Underline Animation Variables */
  --underline-color: var(--color-red-500);
  --underline-height: 2px;
  --underline-height-thick: 3px;
  --underline-transition: all 0.3s cubic-bezier(0.25, 0.25, 0.08, 1.08);
  --underline-transition-fast: all 0.2s ease;
  --underline-transition-slow: all 0.4s ease;
}

/* ========================================
   14. REUSABLE SCALING CLASSES
   ======================================== */

/* Base scaling class - small scale */
.scaling-sm {
  transition: var(--scale-transition);
  transform: scale(var(--scale-normal));
  display: inline-block;
}

.scaling-sm:hover,
a:hover .scaling-sm {
  transform: scale(var(--scale-sm));
}

/* Medium scaling */
.scaling-md {
  transition: var(--scale-transition);
  transform: scale(var(--scale-normal));
  display: inline-block;
}

.scaling-md:hover,
a:hover .scaling-md {
  transform: scale(var(--scale-md));
}

/* Large scaling */
.scaling-lg {
  transition: var(--scale-transition);
  transform: scale(var(--scale-normal));
  display: inline-block;
}

.scaling-lg:hover,
a:hover .scaling-lg {
  transform: scale(var(--scale-lg));
}

/* Extra large scaling */
.scaling-xl {
  transition: var(--scale-transition);
  transform: scale(var(--scale-normal));
  display: inline-block;
}

.scaling-xl:hover,
a:hover .scaling-xl {
  transform: scale(var(--scale-xl));
}

/* Fast transition variants */
.scaling-sm-fast {
  transition: var(--scale-transition-fast);
  transform: scale(var(--scale-normal));
  display: inline-block;
}

.scaling-sm-fast:hover,
a:hover .scaling-sm-fast {
  transform: scale(var(--scale-sm));
}

/* Slow transition variants */
.scaling-lg-slow {
  transition: var(--scale-transition-slow);
  transform: scale(var(--scale-normal));
  display: inline-block;
}

.scaling-lg-slow:hover,
a:hover .scaling-lg-slow {
  transform: scale(var(--scale-lg));
}

/* ========================================
   15. LINE CLAMP UTILITIES - TAILWIND STYLE
   ======================================== */

/* Line Clamp Variables */
:root {
  --line-clamp-1: 1;
  --line-clamp-2: 2;
  --line-clamp-3: 3;
  --line-clamp-4: 4;
  --line-clamp-5: 5;
  --line-clamp-6: 6;
  --line-clamp-none: none;
}

/* Line Clamp Base */
.line-clamp-1,
.line-clamp-2,
.line-clamp-3,
.line-clamp-4,
.line-clamp-5,
.line-clamp-6 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--line-clamp-1);
}

/* Individual Line Clamp Classes */
.line-clamp-1 {
  -webkit-line-clamp: var(--line-clamp-1);
}

.line-clamp-2 {
  -webkit-line-clamp: var(--line-clamp-2);
}

.line-clamp-3 {
  -webkit-line-clamp: var(--line-clamp-3);
}

.line-clamp-4 {
  -webkit-line-clamp: var(--line-clamp-4);
}

.line-clamp-5 {
  -webkit-line-clamp: var(--line-clamp-5);
}

.line-clamp-6 {
  -webkit-line-clamp: var(--line-clamp-6);
}

/* No Line Clamp */
.line-clamp-none {
  overflow: visible;
  display: block;
  -webkit-box-orient: horizontal;
  -webkit-line-clamp: var(--line-clamp-none);
}

/* Responsive Line Clamp - 6 lines mobile, 4 lines desktop */
.line-clamp-responsive {
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 6 !important; 
}

/* Desktop: 4 lines */
@media (min-width: 768px) {
  .line-clamp-responsive {
    -webkit-line-clamp: 4 !important;
  }
}

/* ========================================
   16. REUSABLE UNDERLINE ANIMATION CLASSES
   ======================================== */

/* Basic underline - appears from left to right */
.underline-basic {
  position: relative;
  text-decoration: none;
  transition: var(--underline-transition);
}

.underline-basic::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: var(--underline-height);
  background-color: var(--underline-color);
  transition: var(--underline-transition);
}

.underline-basic:hover::after {
  width: 100%;
}

/* Underline from center - expands outward */
.underline-center {
  position: relative;
  text-decoration: none;
  transition: var(--underline-transition);
}

.underline-center::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: var(--underline-height);
  background-color: var(--underline-color);
  transition: var(--underline-transition);
  transform: translateX(-50%);
}

.underline-center:hover::after {
  width: 100%;
}

/* Underline slide - slides in from left */
.underline-slide {
  position: relative;
  text-decoration: none;
  transition: var(--underline-transition);
  overflow: hidden;
}

.underline-slide::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -100%;
  width: 100%;
  height: var(--underline-height);
  background-color: var(--underline-color);
  transition: var(--underline-transition);
}

.underline-slide:hover::after {
  left: 0;
}

/* Thick underline */
.underline-thick {
  position: relative;
  text-decoration: none;
  transition: var(--underline-transition);
}

.underline-thick::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: var(--underline-height-thick);
  background-color: var(--underline-color);
  transition: var(--underline-transition);
}

.underline-thick:hover::after {
  width: 100%;
}

/* Fast transition variants */
.underline-basic-fast {
  position: relative;
  text-decoration: none;
  transition: var(--underline-transition-fast);
}

.underline-basic-fast::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: var(--underline-height);
  background-color: var(--underline-color);
  transition: var(--underline-transition-fast);
}

.underline-basic-fast:hover::after {
  width: 100%;
}

/* Slow transition variants */
.underline-center-slow {
  position: relative;
  text-decoration: none;
  transition: var(--underline-transition-slow);
}

.underline-center-slow::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: var(--underline-height);
  background-color: var(--underline-color);
  transition: var(--underline-transition-slow);
  transform: translateX(-50%);
}

.underline-center-slow:hover::after {
  width: 100%;
}

