/* === Hand-authored hero CSS (index.html) === */
/* ========================================
   FULLSCREEN HERO - MATCHING ACTUAL CLASSES
   Preserves existing design system
   ======================================== */

/* ============ HERO SECTION ============ */
.home-hero {
  /* Fullscreen viewport */
  min-height: 100vh !important;
  min-height: 100dvh !important; /* Dynamic viewport for mobile */
  height: 100vh;
  height: 100dvh;
  
  /* Reset spacing */
  padding: 0 !important;
  margin: -80px 0 0 0 !important; /* Negative margin for header overlap */
  
  /* Layout */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
}

/* ============ BACKGROUND IMAGE ============ */
.home-hero__bg-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
}

.home-hero__bg-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* ============ OVERLAY ============ */
.home-hero__overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  
  /* Enhanced gradient overlay for better text readability */
  background: linear-gradient(
    180deg,
    rgba(18, 20, 22, 0.3) 0%,
    rgba(18, 20, 22, 0.5) 40%,
    rgba(18, 20, 22, 0.7) 100%
  ) !important;
  
  z-index: 1 !important;
  pointer-events: none !important; /* Allow clicks through overlay */
}

/* ============ OUTER CONTAINER ============ */
.home-hero__container {
  /* Positioning */
  position: relative !important;
  z-index: 2 !important;
  
  /* Layout */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  
  /* Sizing */
  width: 100% !important;
  max-width: 1200px !important;
  padding: 2rem 3rem !important;
  margin: 0 auto !important;
  
  /* Allow pointer events */
  pointer-events: auto !important;
}

/* ============ INNER CONTAINER ============ */
.home-hero__inner-container {
  /* Preserve existing flex layout */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  
  /* Sizing */
  width: 100% !important;
  max-width: 100% !important;
  
  /* Keep existing gap */
  /* gap is already set in Bricks */
  
  /* Ensure proper z-index */
  position: relative !important;
  z-index: 1 !important;
}

/* ============ TYPOGRAPHY - PRESERVING DESIGN SYSTEM ============ */

/* Main Title - Preserve Fame serif font and sizing */
.home-hero__title {
  /* Responsive font size while preserving design */
  font-size: clamp(2.5rem, 7vw, 7.5rem) !important; /* 120px max */
  line-height: 0.95 !important; /* Preserve tight leading */
  margin-bottom: 8px !important; /* Keep existing spacing */
  
  /* Keep existing styles */
  font-family: Fame, serif !important;
  font-weight: 400 !important;
  color: #FFFFFF !important;
  text-align: center !important;
  
  /* Add text shadow for readability */
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4) !important;
}
.home-hero__title em {
  font-style: italic;
  color: var(--primary);
}

/* Tag/Subheading - Preserve Jakarta Sans and uppercase styling */
.home-hero__tag {
  /* Keep existing styles exactly */
  font-size: 0.8rem !important; /* 12.8px */
  font-family: Jakarta, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em !important; /* 3.2px at 16px base */
  text-transform: uppercase !important;
  color: #FFFFFF !important;
  text-align: center !important;
  margin-bottom: 24px !important;
  
  /* Add subtle shadow */
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Subtitle - Preserve existing size and line-height */
.home-hero__subtitle {
  /* Keep existing styles */
  font-size: 1.125rem !important; /* 18px */
  line-height: 1.8 !important; /* 32.4px */
  color: #F1F2F4 !important;
  text-align: center !important;
  margin-bottom: 40px !important;
  
  /* Add constraint for readability */
  max-width: 600px !important;
  
  /* Add shadow for contrast */
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4) !important;
}

/* ============ CTA BUTTON - PRESERVING DESIGN ============ */
.home-hero__cta {
  /* Keep existing sizing and spacing */
  padding: 20px 48px !important;
  font-size: 0.75rem !important; /* 12px */
  
  /* Preserve brand colors */
  background-color: #BE1E2D !important;
  color: #F1F2F4 !important;
  
  /* Keep Bricks button styles */
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  text-align: center !important;
  
  /* Display */
  display: inline-block !important;
  
  /* Ensure it's on top and clickable */
  position: relative !important;
  z-index: 10 !important;
  pointer-events: auto !important;
  
  /* Add depth */
  box-shadow: 0 4px 20px rgba(190, 30, 45, 0.3) !important;
  transition: all 0.3s ease !important;
  
  /* Keep sharp corners if that's your brand */
  border-radius: 0 !important;
  border: none !important;
  cursor: pointer !important;
}

/* CTA hover state */
.home-hero__cta:hover {
  background-color: #d42235 !important; /* Brand red hover */
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(190, 30, 45, 0.5) !important;
}

/* CTA active state */
.home-hero__cta:active {
  transform: translateY(0) !important;
  box-shadow: 0 4px 20px rgba(190, 30, 45, 0.4) !important;
}

/* ============ SCROLL INDICATOR ============ */
.home-hero__scroll {
  /* Positioning */
  margin-top: 3rem !important;
  
  /* Keep existing text styles */
  font-size: 0.75rem !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.6) !important;
  text-align: center !important;
  
  /* Subtle animation */
  animation: fadeInOut 2s ease-in-out infinite !important;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

/* Large Desktop (1920px+) */
@media screen and (min-width: 1920px) {
  .home-hero__container {
    max-width: 1400px !important;
    padding: 3rem 4rem !important;
  }
}

/* Desktop (1440px - 1919px) */
@media screen and (min-width: 1440px) and (max-width: 1919px) {
  .home-hero__title {
    font-size: clamp(4rem, 7vw, 7.5rem) !important;
  }
}

/* Laptop (1024px - 1439px) */
@media screen and (max-width: 1439px) {
  .home-hero__container {
    max-width: 1000px !important;
    padding: 2rem 3rem !important;
  }
  
  .home-hero__title {
    font-size: clamp(3rem, 6vw, 5rem) !important;
  }
}

/* Tablet (768px - 1023px) */
@media screen and (max-width: 1023px) {
  .home-hero {
    margin-top: -70px !important; /* Tablet header */
  }
  
  .home-hero__container {
    max-width: 90% !important;
    padding: 2rem !important;
  }
  
  .home-hero__title {
    font-size: clamp(2.5rem, 7vw, 4rem) !important;
  }
  
  .home-hero__tag {
    font-size: 0.75rem !important;
    margin-bottom: 20px !important;
  }
  
  .home-hero__subtitle {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 32px !important;
  }
  
  .home-hero__cta {
    padding: 18px 40px !important;
  }
}

/* Mobile (up to 767px) */
@media screen and (max-width: 767px) {
  .home-hero {
    min-height: 100vh !important;
    min-height: 100svh !important; /* Small viewport */
    height: 100svh !important;
    margin-top: -60px !important; /* Mobile header */
  }
  
  .home-hero__container {
    padding: 1.5rem 1.25rem !important;
    max-width: 95% !important;
  }
  
  .home-hero__inner-container {
    gap: 1rem !important;
  }
  
  .home-hero__title {
    font-size: clamp(2rem, 9vw, 3rem) !important;
    line-height: 1 !important;
    margin-bottom: 12px !important;
  }
  
  .home-hero__tag {
    font-size: 0.688rem !important; /* 11px */
    letter-spacing: 0.15em !important;
    margin-bottom: 16px !important;
  }
  
  .home-hero__subtitle {
    font-size: 0.938rem !important; /* 15px */
    line-height: 1.6 !important;
    margin-bottom: 28px !important;
    max-width: 100% !important;
  }
  
  .home-hero__cta {
    padding: 16px 32px !important;
    font-size: 0.688rem !important; /* 11px */
    width: auto !important;
  }
  
  .home-hero__scroll {
    margin-top: 2rem !important;
    font-size: 0.625rem !important; /* 10px */
  }
  
  /* Enhanced overlay for mobile */
  .home-hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(18, 20, 22, 0.4) 0%,
      rgba(18, 20, 22, 0.6) 50%,
      rgba(18, 20, 22, 0.75) 100%
    ) !important;
  }
}

/* Small Mobile (up to 480px) */
@media screen and (max-width: 480px) {
  .home-hero__container {
    padding: 1rem !important;
  }
  
  .home-hero__title {
    font-size: 2rem !important; /* Fixed size for very small screens */
  }
  
  .home-hero__subtitle {
    font-size: 0.875rem !important;
  }
  
  .home-hero__cta {
    padding: 14px 28px !important;
  }
}

/* Landscape Mobile (height < 500px) */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .home-hero {
    min-height: 100vh !important;
  }
  
  .home-hero__container {
    padding: 1rem 2rem !important;
  }
  
  .home-hero__inner-container {
    gap: 0.5rem !important;
  }
  
  .home-hero__title {
    font-size: 2rem !important;
    margin-bottom: 8px !important;
  }
  
  .home-hero__tag {
    margin-bottom: 12px !important;
  }
  
  .home-hero__subtitle {
    font-size: 0.875rem !important;
    margin-bottom: 16px !important;
  }
  
  .home-hero__cta {
    padding: 12px 24px !important;
  }
  
  .home-hero__scroll {
    display: none !important; /* Hide on landscape mobile */
  }
}

/* Short viewports (height < 700px) */
@media screen and (max-height: 700px) {
  .home-hero__container {
    padding: 1.5rem 3rem !important;
  }
  
  .home-hero__inner-container {
    gap: 0.75rem !important;
  }
  
  .home-hero__title {
    margin-bottom: 6px !important;
  }
  
  .home-hero__tag {
    margin-bottom: 16px !important;
  }
  
  .home-hero__subtitle {
    margin-bottom: 24px !important;
  }
  
  .home-hero__scroll {
    margin-top: 1.5rem !important;
  }
}

/* ========================================
   HEADER ADJUSTMENTS
   ======================================== */

/* Ensure header stays on top of fullscreen hero */
header,
.brx-header,
#brx-header {
  position: relative !important;
  z-index: 999 !important;
}

/* ========================================
   ACCESSIBILITY & PERFORMANCE
   ======================================== */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .home-hero__cta {
    transition: none !important;
  }
  
  .home-hero__scroll {
    animation: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .home-hero__overlay {
    background: rgba(0, 0, 0, 0.8) !important;
  }
  
  .home-hero__title,
  .home-hero__tag,
  .home-hero__subtitle {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1) !important;
  }
}

/* Print styles */
@media print {
  .home-hero {
    min-height: auto !important;
    height: auto !important;
    page-break-after: always !important;
  }
}

.card-home-value__wrapper{
  /* Here you can change the width in pixels or percentage of the mask gradient on the sides of the container. */
  --card-home-value-transparency-size: 90%;
  
  counter-increment: item;

  .card-home-value__container-info {

    /* Styles and configuration of the outgoing card counter */
    &:before {
      content: counter(item);
      /* Font size from 144px to 80px in mobile version */
      font-size: clamp(12.8rem, 6.8828rem + 12.3791vw, 25.6rem);
      color: var(--primary-trans-20);
      font-weight: 800;
      position: absolute;
      left: calc(-1 * var(--space-xs));
      top: calc(-1 * var(--space-xs));
      line-height: .8;
      z-index: -1;
      
      /* Mask gradient styles */
      -webkit-mask-image: linear-gradient(to top, transparent, #000 var(--card-home-value-transparency-size));
    mask-image: linear-gradient(to top, transparent, #000 var(--card-home-value-transparency-size));
    }
  }
}

.home-services__img {
    position: relative;
  }

  .home-services__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--base-trans-40);
    pointer-events: none;
  }

.testimonials-card {
  background: rgba(18, 20, 22, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(190, 30, 45, 0.3);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  animation: floatIn 0.8s ease-out;
  box-shadow: inset 0 1px 0 0 rgba(237, 237, 237, 0.08);
}

.testimonials-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(190, 30, 45, 0.12) 0%, rgba(190, 30, 45, 0.04) 100%);
  pointer-events: none;
}

.testimonials-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190, 30, 45, 0.5), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.testimonials-card > * {
  position: relative;
  z-index: 1;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.testimonials-card__testimonial-wrapper {
  margin: 0 0 1.5rem 0;
}

.testimonials-card__testimonial {
  font-size: 1rem;
  line-height: 1.6;
  color: #EDEDED;
  font-style: italic;
}

.testimonials-card__testimonial p {
  margin: 0;
}

.testimonials-card__author-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.testimonials-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(190, 30, 45, 0.6);
  transition: transform 0.3s ease;
}

.testimonials-card:hover .testimonials-card__avatar {
  transform: scale(1.08);
}

.testimonials-card__author-info {
  margin: 0;
}

.testimonials-card__author {
  font-weight: 600;
  color: var(--base-ultra-light);
  font-size: 0.95rem;
  margin: 0;
}

.testimonials-card__position {
  color: var(--base-semi-light);
  font-size: 0.85rem;
  margin: 0.25rem 0 0 0;
}

.testimonials-card__counter-element {
  background: rgba(190, 30, 45, 0.12);
  border: 1px solid rgba(190, 30, 45, 0.4);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
}

.testimonials-card:hover .testimonials-card__counter-element {
  background: rgba(190, 30, 45, 0.18);
  border-color: rgba(190, 30, 45, 0.6);
}

.testimonials-card__counter {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f2f3f4, #BE1E2D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulseGlow 2s ease-in-out infinite;
}

.testimonials-card__counter-info {
  color: var(--base-ultra-light);
  font-size: 0.85rem;
  margin: 0.5rem 0 0 0;
  opacity: 0.85;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}
