/* ==========================================================================
   UNIVERSAL STYLESHEET
   Optimized for modularity, scalability, and consistency.
   ========================================================================== */

/* --------------------------------------------------------------------------
   #ROOT & CSS VARIABLES
   - Centralized design tokens for colors, typography, spacing, etc.
   - Consistent naming convention (--property-variant-size).
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary: #ff0030;
  --color-primary-dark: #cc0026; /* Added for hover states */
  --color-white: #ffffff;
  --color-gray-light: #E0DDDD;
  --color-gray-medium: #666363;
  --color-gray-dark: #333333;
  --color-black: #000000;
  --color-accent-yellow: #FCE477;
  --color-accent-yellow-dark: #FAE08A; /* Added for hover states */

  /* Modern Button Colors */
  --color-btn-modern-dark-bg: #2a2a2a;
  --color-btn-modern-dark-bg-hover: #1a1a1a;
  --color-btn-modern-dark-bg-active: #0f0f0f;
  --color-btn-modern-orange-bg: #F97316;
  --color-btn-modern-orange-bg-hover: #EA580C;
  --color-btn-modern-text: #ffffff;
  --color-btn-modern-separator: rgba(255, 255, 255, 0.2);
  --color-btn-modern-separator-hover: rgba(255, 255, 255, 0.3);

  /* Typography Scale - Desktop */
  --font-size-3xl: 4rem;    /* 64px */
  --font-size-2xl: 3rem;    /* 48px */
  --font-size-xl: 2rem;     /* 32px */
  --font-size-lg: 1.5rem;   /* 24px */
  --font-size-base: 1rem;   /* 16px */
  --font-size-sm: 0.875rem; /* 14px */

  /* Typography Scale - Mobile */
  --font-size-3xl-mobile: 2.5rem;   /* 40px */
  --font-size-2xl-mobile: 2rem;     /* 32px */
  --font-size-xl-mobile: 1.5rem;    /* 24px */
  --font-size-lg-mobile: 1.4rem;    /* 22.4px */
  --font-size-base-mobile: 1rem;    /* 16px - Standardized for mobile */
  --font-size-sm-mobile: 0.875rem;  /* 14px - Standardized for mobile */
  
  /* Font Weights */
  --font-weight-light: 100;
  --font-weight-regular: 300;
  --font-weight-medium: 500;
  
  /* Layout */
  --spacing-page: 8vw;
  --spacing-page-mobile: 4vw;
  --spacing-unit: 0.5rem; /* 8px base unit for consistent margins/paddings */

  /* Font Families */
  --font-primary: "IBM Plex Sans", sans-serif;
  --font-secondary: "Dela Gothic One", cursive;

  /* Border Radius */
  --radius-sm: 0.5rem; /* 8px */
  --radius-md: 0.8rem;
  --radius-lg: 1rem;
  --radius-full: 50%;
  
  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-modern-btn: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index layers */
  --z-header: 100;
  --z-modal: 200;
  --z-tooltip: 300;
}

/* --------------------------------------------------------------------------
   #BASE & RESET
   - Modern reset for consistent cross-browser rendering.
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding: 0 var(--spacing-page);
  max-width: 100vw;
  color: var(--color-black);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  background-color: var(--color-white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

/* --------------------------------------------------------------------------
   #TYPOGRAPHY
   - Semantic heading scale and base text styles.
   -------------------------------------------------------------------------- */
h1, .h1 { font-size: var(--font-size-3xl); font-weight: var(--font-weight-regular); }
h2, .h2 { font-size: var(--font-size-2xl); font-weight: var(--font-weight-regular); }
h3, .h3 { font-size: var(--font-size-xl); font-weight: var(--font-weight-regular); }
h4, .h4 { font-size: var(--font-size-lg); font-weight: var(--font-weight-regular); }
h5, .h5, p, .text-base { font-size: var(--font-size-base); font-weight: var(--font-weight-regular); }
h6, .h6 { font-size: var(--font-size-sm); font-weight: var(--font-weight-regular); }

/* --------------------------------------------------------------------------
   #UTILITIES
   - Reusable helper classes for rapid development.
   -------------------------------------------------------------------------- */
/* Font Utilities */
.font-light   { font-weight: var(--font-weight-light); }
.font-regular { font-weight: var(--font-weight-regular); }
.font-medium  { font-weight: var(--font-weight-medium); }
.font-secondary { font-family: var(--font-secondary); }

/* Color Utilities */
.text-primary { color: var(--color-primary); }
.text-black   { color: var(--color-black); }
.text-white   { color: var(--color-white); }
.text-gray    { color: var(--color-gray-medium); }

/* Text Alignment Utilities */
.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-justify { text-align: justify; }

/* Shine Animation Utility */
.with-shine-animation {
  position: relative;
  overflow: hidden;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10+ */
  user-select: none;
}

.with-shine-animation::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.with-shine-animation:hover::before {
  left: 100%;
}


/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --------------------------------------------------------------------------
   #COMPONENTS
   - Base styles for common, reusable UI elements.
   -------------------------------------------------------------------------- */
/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: calc(var(--spacing-unit) * 1.5);
  min-height: 2.5rem; /* Standardized height */
  min-width: 100px;
  width: 100%;
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-base);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn--secondary {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--secondary:hover {
  background-color: color-mix(in srgb, var(--color-primary) 10%, white);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-gray-light);
}
.btn--white:hover {
    border-color: var(--color-gray-medium);
}

.btn--line {
  background-color: transparent;
  color: var(--color-black);
  border: 1px solid var(--color-black);
}
.btn--line:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn--yellow {
  background-color: var(--color-accent-yellow);
  color: var(--color-black);
  border-color: var(--color-accent-yellow);
}
.btn--yellow:hover {
  background-color: var(--color-accent-yellow-dark);
  border-color: var(--color-accent-yellow-dark);
}

.btn--black {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}
.btn--black:hover {
    background-color: var(--color-gray-dark);
    border-color: var(--color-gray-dark);
}

/* Floating Icon Button */
.floating-icon-btn {
  position: relative;
  background-color: var(--color-black);
  color: white;
  border: none;
  height: 3rem;
  border-radius: 1.5rem;
  padding-left: 1.5rem; /* Space for text */
  padding-right: 3rem;  /* Space for icon overlap */
}

.floating-icon-btn__icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(25%, -50%); /* Adjusted for a cleaner overlap */
  width: 3rem;
  height: 3rem;
  background-color: #F6B001; /* Kept specific color as it seems unique */
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.floating-icon-btn__icon svg,
.floating-icon-btn__icon img {
    width: 1.5rem;
    height: 1.5rem;
}

/* Modern Button Component */
.btn--modern {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 3rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: var(--transition-modern-btn);
  padding: 0;
  text-decoration: none;
  box-shadow: none;
}

.btn--modern__text {
  flex: 1;
  padding-left: 16px;
  text-align: center;
  letter-spacing: 0.025em;
}

.btn--modern__icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  position: relative;
}

.btn--modern__icon-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 24px;
  transition: background-color 0.3s ease;
}

.btn--modern__icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn--modern:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn--modern:hover .btn--modern__icon {
  transform: scale(1.1) rotate(5deg);
}

.btn--modern:active {
  transform: translateY(0);
}

/* Modifier: Dark */
.btn--modern--dark {
  background-color: var(--color-btn-modern-dark-bg);
  color: var(--color-btn-modern-text);
}
.btn--modern--dark .btn--modern__icon {
  fill: var(--color-btn-modern-text);
}
.btn--modern--dark .btn--modern__icon-container::before {
  background-color: var(--color-btn-modern-separator);
}
.btn--modern--dark:hover {
  background-color: var(--color-btn-modern-dark-bg-hover);
}
.btn--modern--dark:hover .btn--modern__icon-container::before {
  background-color: var(--color-btn-modern-separator-hover);
}
.btn--modern--dark:active {
  background-color: var(--color-btn-modern-dark-bg-active);
}

/* Modifier: Orange */
.btn--modern--orange {
  background-color: var(--color-btn-modern-orange-bg);
  color: var(--color-btn-modern-text);
}
.btn--modern--orange .btn--modern__icon {
  fill: var(--color-btn-modern-text);
}
.btn--modern--orange .btn--modern__icon-container::before {
  background-color: var(--color-btn-modern-separator);
}
.btn--modern--orange:hover {
  background-color: var(--color-btn-modern-orange-bg-hover);
}
.btn--modern--orange:hover .btn--modern__icon-container::before {
  background-color: var(--color-btn-modern-separator-hover);
}
.btn--modern--orange:active {
  background-color: var(--color-btn-modern-orange-bg); /* Keeping same color for active for this variant */
}


/* Forms */
.input-base {
  min-height: 2.5rem; /* Standardized height */
  width: 100%;
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-base);
  font-family: var(--font-pr);
}

.input-base::placeholder {
  color: var(--color-gray-medium);
  font-size: var(--font-size-sm);
}

.input-base:focus {
  outline: none;
  border-color: var(--color-primary);
}

select.input-base {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

input[type="checkbox"]:checked, 
input[type="radio"]:checked {
  accent-color: var(--color-primary);
}

/* Misc */
.divider {
  border: 0;
  border-top: 1px solid var(--color-gray-light);
  margin: var(--spacing-unit) 0;
}

/* --------------------------------------------------------------------------
   #RESPONSIVE & ACCESSIBILITY
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1200px) {
  h1, .h1 { font-size: var(--font-size-3xl-mobile); }
  h2, .h2 { font-size: var(--font-size-2xl-mobile); }
  h3, .h3 { font-size: var(--font-size-xl-mobile); }
  h4, .h4 { font-size: var(--font-size-lg-mobile); }
  h5, .h5, p, .text-base { font-size: var(--font-size-base-mobile); }
  h6, .h6 { font-size: var(--font-size-sm-mobile); }
  
  body {
    padding: 0 var(--spacing-page-mobile);
  }
  /* Modern Button Component */
.btn--modern {
  min-height: 2.5rem;
  font-size: 12px;
}

.btn--modern__icon-container {
  width: 2.5rem;
  height: 2.5rem;
}



@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
