/**
 * Critical Styles
 * Above-the-fold rendering essentials
 */
/* SDS */

html {
  background-color: #000;
}

/* Reset */
html,
body,
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Calibri Light', Calibri, sans-serif;
  color: #fff;
}
*::before,
*::after {
  box-sizing: border-box;
}

/* Body layout */
body {
  margin: 0;
  padding: 0;
  background-color: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: none;
  overflow-x: hidden;
  transition: overflow var(--animation-duration-fast) var(--animation-easing);
}
body.modal-open {
  overflow: hidden;
}
body.modal-closed {
  overflow: auto;
}

/* Main content area */
main,
body .main-sections {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  margin-top: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  perspective: 1200px;
}
#service-section .service-hero-text h1,
#careers-section .career-hero-text h1 {
  color: #000 ;
}
html body #careers-section .career-hero-text h1,
html body #careers-section .career-hero-text h1 *,
html body #careers-section .career-hero-text h1 strong {
  color: #000 ;
  text-shadow: none !important;
}
#service-section .menu-item-header .menu-label,
body #careers-section .menu-item-header .menu-label {
  color: #000 ;
}
body .news-section {
  width: 100%;
  position: fixed;
  top: calc(var(--header-height) + var(--spacing-sm));
  left: 0;
  right: 0;
  height: var(--news-banner-height);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  background: transparent;
}
body .news-banner {
  position: fixed;
  top: calc(var(--header-height) + var(--spacing-xs));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 600px; 
  min-width: 300px; 
  margin: 0;
  padding: var(--spacing-xs) var(--spacing-md);
  height: calc(var(--news-banner-height) - var(--spacing-xs));
  min-height: 40px;
  background: var(--news-bg);
  border: 1px solid var(--news-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--news-shadow);
  backdrop-filter: blur(20px);
  color: var(--news-text);
  font-size: var(--font-size-base); 
  text-align: center;
  overflow: visible; 
}

@keyframes news-banner-fadein {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(12px);
  }
  to {
    opacity: 0.96;
    filter: none;
    transform: none;
  }
}

@keyframes subtle-pulse {
  0%, 100% {
    opacity: 0.96;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.005);
  }
}
body .news-banner-text {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  color: var(--news-text);
  text-align: center;
  white-space: normal;
  opacity: 0.96;
  line-height: var(--line-height-content);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: var(--letter-spacing-wide);
  animation:
    news-banner-fadein 1.1s cubic-bezier(0.4, 1.4, 0.6, 1),
    subtle-pulse 4s ease-in-out infinite;
}
html {
  background-color: #000;
}
body .logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}
body .header-spacer {
  height: calc(var(--header-height) + var(--news-banner-height) + var(--spacing-xs));
  flex-shrink: 0;
  width: 100%;
  display: block;
}
body .claim-section {
  width: 100%;
  height: var(--claim-section-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 1;
  margin-top: 0; 
  padding: 0 var(--container-padding);
}
body .claim-container {
  max-width: var(--max-width);
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
  width: auto;            
  align-items: center;
}

@keyframes claimTitleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body .site-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--container-bg-transparent);
  backdrop-filter: blur(30px) saturate(200%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md); 
  box-shadow: var(--shadow-container);
  border-bottom-left-radius: var(--border-radius-xxl);
  border-bottom-right-radius: var(--border-radius-xxl);
  z-index: 100;
  height: var(--header-height);
  min-height: var(--header-height);
  max-height: var(--header-height);
  overflow: hidden;
}
.site-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1px;
  right: 1px;
  height: 2px;
  background: var(--shimmer-gradient);
  opacity: 0.6;
}
body .nav-link {
  font-family: var(--font-brand);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-normal);
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  margin: 0 0.1rem;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link:focus {
  color: var(--text-accent);
}

@keyframes claimTitleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fonts-loading .claim-title {
  visibility: hidden;
  opacity: 0;
}

.fonts-loaded .claim-title {
  visibility: visible;
  opacity: 0; 
  animation: claimTitleFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards; /* Smoother and faster */
}

body .claim-title {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(1.2rem, 4vw, 3.5rem); 
  font-weight: var(--font-weight-normal);
  letter-spacing: var(--letter-spacing-wide);
  line-height: var(--line-height-title);
  color: #ffffff;
  margin: 0;
  text-transform: capitalize;
  position: absolute;
  width: auto;
  height: 90vh;
  align-content: center;
  text-shadow: 0px 5px 8px black;
  font-weight: bold;

}
.hero-title-divider {
  display: block;
  width: 80%;
  max-width: 900px;
  height: 3px;
  background: #ffffff;
  margin: 20px auto 20px auto;
  border: none;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.45);
}
body .fonts-loading .nav-link {
  font-family: var(--font-family-primary);
}
body .fonts-loaded .claim-title {
  font-family: var(--font-brand);
}
body .fonts-loaded .nav-link {
  font-family: var(--font-brand);
}
body .header-right {
  display: flex;
  align-items: center;
  margin-left: var(--spacing-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body .header-right .globe-icon {
  height: 48px;
  min-height: 40px;
  max-height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)) contrast(1.1) brightness(1.05);
  transition: all var(--transition-smooth);
  cursor: pointer;
}
.header-right .globe-icon:hover {
  transform: scale(1.05) rotate(5deg);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* Ultra-smooth animation WITHOUT blur effects */
@keyframes claimTitleSmoothIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  60% {
    opacity: 0.8;
    transform: translateY(5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fonts-loaded .claim-title {
  visibility: visible;
  animation: claimTitleSmoothIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
}

/* Animated header line overlay */
.animated-header-line {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 101;
  pointer-events: none;
}

.animated-header-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 20%,
    #e74c3c 30%,
    #ff6b6b 40%,
    #e74c3c 50%,
    transparent 60%,
    transparent 100%
  );
  animation: continuousLineFlow 3s linear infinite;
}

@keyframes continuousLineFlow {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Hero features subtitle - same style as main title, no glow */
.hero-features-glow {
  display: block;
  color: #ffffff; /* Match main title color */
  font-size: clamp(1rem, 1.2vw, 1.6rem);
  font-family: var(--font-brand); /* Match title font */
  font-weight: 600; /* Match title weight */
  text-shadow: 0px 5px 8px rgba(0,0,0,0.6); /* Match main title shadow */
  line-height: 1.25;
  margin: -8px auto 0 auto; /* pull up toward divider and center */
  max-width: 90%;
  animation: none; /* Remove animation */
  text-align: center;
}

/* Mobile: adjust subtitle size */
@media (max-width: 768px) {
  .hero-features-glow {
    font-size: clamp(0.65rem, 4vw, 0.6rem);
  }
}

@media (max-width: 768px) {

  .gallery-container {
    position: relative;
  }

  body .claim-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
  }
  
  body .claim-title{
    position: static;
    height: auto;
    width: 100%;
    text-align: center;
    font-size: clamp(1.2rem, 5vw, 2rem);
    pointer-events: none;
    margin: 0;
  }
}

@media (max-width: 480px) {
  body .news-banner {
    margin: 0 var(--spacing-xs);
    padding: calc(var(--spacing-sm) * 0.8) var(--spacing-sm);
  }
  body .news-banner-text {
    font-size: var(--font-size-base);
    letter-spacing: var(--letter-spacing-normal);
  }
}
