/* ============================================ */
/* CUSTOM CSS - GRUPO GENIS BRAND STYLES */
/* Landing Page Live Framework 2.0 */
/* ============================================ */

/* -------------------- */
/* CSS VARIABLES - GENIS BRAND COLORS */
/* -------------------- */
:root {
  /* Primary Brand Colors - Genis */
  --color-primary-yellow: #E8D21D;     /* Amarelo/Dourado Genis (CTAs, destaques) */
  --color-primary-black: #1A1A1A;      /* Preto Genis (textos principais, backgrounds) */
  --color-primary-white: #FFFFFF;      /* Branco (contraste, texto em dark backgrounds) */

  /* Secondary Colors - Genis */
  --color-secondary-yellow: #F4D03F;   /* Amarelo mais claro (hover states) */
  --color-secondary-dark: #2D2D2D;     /* Cinza escuro (seções alternadas) */

  /* Accent Colors */
  --color-accent-success: #10B981;     /* Verde para checkmarks ✅ */
  --color-accent-error: #EF4444;       /* Vermelho para cross marks ❌ */
  --color-accent-gold: #D4AF37;        /* Dourado premium (badges especiais) */

  /* Neutral Colors */
  --color-gray-900: #1A1A1A;           /* Textos principais (preto Genis) */
  --color-gray-700: #4A4A4A;           /* Textos secundários */
  --color-gray-500: #767676;           /* Textos terciários */
  --color-gray-300: #CCCCCC;           /* Borders sutis */
  --color-gray-100: #F5F5F5;           /* Backgrounds claros */

  /* Gradients - Genis Brand */
  --gradient-primary: linear-gradient(135deg, #E8D21D 0%, #D4AF37 100%);
  --gradient-dark: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
  --gradient-hero: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 50%, #E8D21D 100%);
}

/* -------------------- */
/* GLOBAL STYLES */
/* -------------------- */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Font family - Inter */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-gray-900);
}

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

/* -------------------- */
/* BUTTONS - GENIS BRAND */
/* -------------------- */

/* Primary CTA Button - Genis Yellow */
.btn-genis-primary {
  background: var(--color-primary-yellow);
  color: var(--color-primary-black);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(232, 210, 29, 0.3);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.btn-genis-primary:hover {
  background: var(--color-secondary-yellow);
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(232, 210, 29, 0.5);
}

.btn-genis-primary:active {
  transform: scale(0.98);
}

.btn-genis-primary:focus {
  outline: 3px solid var(--color-primary-yellow);
  outline-offset: 2px;
}

/* -------------------- */
/* ANIMATIONS - GENIS */
/* -------------------- */

/* CTA Pulse Animation - Genis Yellow */
@keyframes pulse-genis {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(232, 210, 29, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(232, 210, 29, 0.6);
  }
}

.cta-pulse {
  animation: pulse-genis 2s ease-in-out infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* -------------------- */
/* GRADIENT UTILITIES - GENIS */
/* -------------------- */

/* Gradient Text - Genis Brand */
.gradient-text-genis {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Background Gradients - Genis */
.bg-gradient-genis-primary {
  background: var(--gradient-primary);
}

.bg-gradient-genis-dark {
  background: var(--gradient-dark);
}

.bg-gradient-genis-hero {
  background: var(--gradient-hero);
}

/* -------------------- */
/* BADGES - GENIS STYLE */
/* -------------------- */

.badge-genis {
  background: var(--color-primary-yellow);
  color: var(--color-primary-black);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  border: 2px solid var(--color-primary-black);
  display: inline-block;
}

.badge-genis-premium {
  background: var(--gradient-primary);
  color: var(--color-primary-black);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  display: inline-block;
}

/* -------------------- */
/* FORM STYLES */
/* -------------------- */

/* Form group spacing */
.form-group {
  margin-bottom: 1.5rem;
}

/* Input focus states - Genis Yellow */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary-yellow);
  box-shadow: 0 0 0 3px rgba(232, 210, 29, 0.1);
}

/* Checkbox custom styling */
input[type="checkbox"]:focus {
  outline: 2px solid var(--color-primary-yellow);
  outline-offset: 2px;
}

/* Error message styling */
.error-message {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-accent-error);
}

/* Hidden utility */
.hidden {
  display: none;
}

/* -------------------- */
/* ACCESSIBILITY ENHANCEMENTS */
/* -------------------- */

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--color-primary-yellow);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary-yellow);
  color: var(--color-primary-black);
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 100;
  font-weight: bold;
}

.skip-to-main:focus {
  top: 0;
}

/* -------------------- */
/* RESPONSIVE UTILITIES */
/* -------------------- */

/* Mobile-specific adjustments */
@media (max-width: 767px) {
  /* Reduce hero headline size on mobile */
  #hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  /* Stack urgency cards vertically on mobile */
  #hero .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Full-width CTAs on mobile */
  .btn-genis-primary {
    width: 100%;
    text-align: center;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  #hero h1 {
    font-size: 3rem;
  }
}

/* Desktop optimizations */
@media (min-width: 1024px) {
  /* Add hover effects only on desktop (no touch screens) */
  .hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  }
}

/* -------------------- */
/* PERFORMANCE OPTIMIZATIONS */
/* -------------------- */

/* Reduce motion for users who prefer it */
@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;
  }

  .cta-pulse {
    animation: none;
  }
}

/* -------------------- */
/* PRINT STYLES */
/* -------------------- */

@media print {
  /* Hide non-essential elements when printing */
  footer,
  #formulario,
  .cta-pulse {
    display: none;
  }

  /* Ensure text is black for print */
  body {
    color: black;
  }

  /* Remove backgrounds for print */
  section {
    background: white !important;
  }
}

/* -------------------- */
/* CUSTOM SCROLLBAR (WEBKIT) */
/* -------------------- */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary-yellow);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary-yellow);
}

/* -------------------- */
/* LOADING STATES */
/* -------------------- */

/* Button loading state */
.btn-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid var(--color-primary-black);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* -------------------- */
/* UTILITIES */
/* -------------------- */

/* Text selection color - Genis Yellow */
::selection {
  background: var(--color-primary-yellow);
  color: var(--color-primary-black);
}

::-moz-selection {
  background: var(--color-primary-yellow);
  color: var(--color-primary-black);
}

/* Backdrop blur support check */
@supports (backdrop-filter: blur(10px)) {
  .backdrop-blur-sm {
    backdrop-filter: blur(4px);
  }

  .backdrop-blur-md {
    backdrop-filter: blur(12px);
  }
}

/* -------------------- */
/* IMAGE FADE EFFECTS - GABRIEL PHOTOS */
/* -------------------- */

/* Container for Gabriel images with bottom fade effect */
.gabriel-image-fade {
  position: relative;
  display: inline-block;
}

/* Gradient fade overlay - creates smooth bottom transition */
.gabriel-image-fade::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw; /* Full viewport width - no side margins */
  height: 30%; /* Fade covers bottom 30% of image */
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0) 0%,      /* Fully transparent at top */
    rgba(26, 26, 26, 0.3) 30%,   /* Subtle fade begins */
    rgba(26, 26, 26, 0.7) 60%,   /* More opaque */
    rgba(26, 26, 26, 0.95) 90%,  /* Nearly solid */
    rgba(26, 26, 26, 1) 100%     /* Fully solid Genis black */
  );
  pointer-events: none; /* Ensures click/touch events pass through */
  z-index: 1;
}

/* Responsive adjustments for fade intensity */
@media (max-width: 767px) {
  /* Stronger fade on mobile due to closer viewing distance */
  .gabriel-image-fade::after {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    height: 35%;
    background: linear-gradient(
      to bottom,
      rgba(26, 26, 26, 0) 0%,
      rgba(26, 26, 26, 0.4) 25%,
      rgba(26, 26, 26, 0.8) 55%,
      rgba(26, 26, 26, 1) 85%,
      rgba(26, 26, 26, 1) 100%
    );
  }
}

@media (min-width: 1024px) {
  /* Subtle fade on desktop for elegant effect */
  .gabriel-image-fade::after {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    height: 25%;
    background: linear-gradient(
      to bottom,
      rgba(26, 26, 26, 0) 0%,
      rgba(26, 26, 26, 0.2) 35%,
      rgba(26, 26, 26, 0.6) 65%,
      rgba(26, 26, 26, 0.9) 90%,
      rgba(26, 26, 26, 1) 100%
    );
  }
}

/* Alternative: CSS Mask approach (modern browsers) */
/* Uncomment if you prefer mask over pseudo-element overlay */
/*
.gabriel-image-fade img {
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0.7) 85%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0.7) 85%,
    rgba(0, 0, 0, 0) 100%
  );
}
*/

/* -------------------- */
/* DARK MODE OVERRIDES (if needed in future) */
/* -------------------- */

@media (prefers-color-scheme: dark) {
  /* Currently not implementing dark mode as brand is light-focused */
  /* Placeholder for future enhancement */
}

/* ============================================ */
/* PHASE 3: APPLE-STYLE ENHANCEMENTS */
/* ============================================ */

/* -------------------- */
/* APPLE-STYLE SHADOWS */
/* -------------------- */

/* Soft shadow for cards */
.shadow-soft {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.shadow-soft:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Extra soft shadow for floating elements */
.shadow-soft-xl {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
}

/* Apple-style shadow 3xl for CTAs */
.shadow-3xl {
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

/* -------------------- */
/* CARD HOVER EFFECTS */
/* -------------------- */

/* Lift effect for cards */
.card-lift {
  transition: all 0.3s ease;
}

.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* -------------------- */
/* TYPOGRAPHY REFINEMENTS */
/* -------------------- */

/* Tighter tracking for large headlines (Apple-style) */
.tracking-tighter {
  letter-spacing: -0.02em;
}

/* More generous line height for readability */
.leading-relaxed-plus {
  line-height: 1.75;
}

/* Extra large headline sizing (Apple-style premium) */
.text-headline-xl {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* -------------------- */
/* SPACING UTILITIES - APPLE STYLE */
/* -------------------- */

/* Enhanced padding for sections */
.py-extra-lg {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .md\:py-extra-lg {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* -------------------- */
/* CTA BUTTON ENHANCEMENTS */
/* -------------------- */

/* Large CTA button (Apple-style) */
.cta-large {
  padding: 1.5rem 2.5rem;
  font-size: 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 15px 40px rgba(232, 210, 29, 0.3);
}

.cta-large:hover {
  box-shadow: 0 20px 60px rgba(232, 210, 29, 0.5);
  transform: translateY(-2px);
}

/* -------------------- */
/* CARD REFINEMENTS */
/* -------------------- */

/* Apple-style card with subtle border */
.card-apple {
  background: #FFFFFF;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.card-apple:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* -------------------- */
/* FOCUS STATES - ACCESSIBLE */
/* -------------------- */

/* Enhanced focus ring for all interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-primary-yellow);
  outline-offset: 4px;
}
