/* Doorlyst Baloo 2 Font Faces */

@font-face {
  font-family: 'Baloo 2';
  src: url('../fonts/Baloo2-Regular.woff2') format('woff2'),
       url('../fonts/Baloo2-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baloo 2';
  src: url('../fonts/Baloo2-Medium.woff2') format('woff2'),
       url('../fonts/Baloo2-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baloo 2';
  src: url('../fonts/Baloo2-SemiBold.woff2') format('woff2'),
       url('../fonts/Baloo2-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baloo 2';
  src: url('../fonts/Baloo2-Bold.woff2') format('woff2'),
       url('../fonts/Baloo2-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baloo 2';
  src: url('../fonts/Baloo2-ExtraBold.woff2') format('woff2'),
       url('../fonts/Baloo2-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Override all Figtree usage with Baloo 2 */
body {
  font-family: "Baloo 2", sans-serif !important;
}

/* Button hover override - Red #FF2A3C on hover */
.black-button:hover {
  background-color: #FF2A3C !important;
  border-color: #FF2A3C !important;
}

.white-button:hover {
  background-color: #FF2A3C !important;
  border-color: #FF2A3C !important;
  color: white !important;
}

.image-button:hover {
  background-color: #FF2A3C !important;
  border-color: #FF2A3C !important;
}

/* Ensure button icons adapt to red background */
.black-button:hover .button-icons .icon,
.white-button:hover .button-icons .icon,
.image-button:hover .image-button-icons .icon {
  filter: brightness(0) invert(1);
}

/* Navigation buttons hover - Red #FF2A3C */
.icon-button:hover {
  background-color: #FF2A3C !important;
  border-color: #FF2A3C !important;
}

.menu-button:hover {
  background-color: #FF2A3C !important;
  border-color: #FF2A3C !important;
}

/* Ensure navigation button icons become white on red hover */
.icon-button:hover .icon {
  filter: brightness(0) invert(1);
}

.menu-button:hover .menu-button-line {
  background-color: white !important;
}

/* Professional Doorlyst Logo Button - Framer Motion Inspired */
.logo-red-icon {
  /* Initial State: Compact Icon */
  height: 60px;
  width: 60px;
  
  /* Smooth Spring Animation */
  transition: all 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Styling */
  border-radius: 30px;
  background-color: #FF2A3C;
  
  /* Layout */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  
  /* Subtle Shadow */
  box-shadow: 0 2px 8px rgba(255, 42, 60, 0.15),
              0 1px 3px rgba(0, 0, 0, 0.08);
  
  /* Remove default border if any */
  border: none;
  outline: none;
}

/* Icon - Visible by Default (White Icon PNG) */
.logo-red-icon::before {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  background-image: url('../images/Doorlyst_icon_white.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

/* Wordmark - Hidden by Default (White Wordmark PNG) */
.logo-red-icon::after {
  content: '';
  position: absolute;
  width: 95%;
  height: 95%;
  background-image: url('../images/Doorlyst_wordmark_white.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

/* Hover State: Expand to Wordmark */
.logo-red-icon:hover {
  width: 200px;
  height: 72px;
  border-radius: 36px;
  box-shadow: 0 4px 16px rgba(255, 42, 60, 0.25),
              0 2px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Icon Fades Out on Hover */
.logo-red-icon:hover::before {
  opacity: 0;
  transform: scale(0.85);
}

/* Wordmark Fades In on Hover */
.logo-red-icon:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Active State: Press Effect */
.logo-red-icon:active {
  transform: translateY(0) scale(0.96);
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(255, 42, 60, 0.2),
              0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Override original logo hover styles */
.logo:hover {
  background-color: transparent !important;
  border-color: transparent !important;
  color: inherit !important;
}

/* Remove any inherited padding/margin */
.logo {
  padding: 0 !important;
  margin: 0 !important;
}

/* Smooth transition for logo wrapper */
.logo {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus State for Accessibility */
.logo:focus-visible .logo-red-icon {
  outline: 2px solid rgba(255, 42, 60, 0.5);
  outline-offset: 2px;
}

/* Hero subtitle styling */
.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #666;
  margin: 1rem 0 2rem 0;
  max-width: 600px;
  font-weight: 400;
}

/* Warning button hover effects */
.warning-button {
  background-color: #FF2A3C !important;
  border-color: #FF2A3C !important;
  transition: all 0.3s ease;
}

.warning-button:hover {
  background-color: #000000 !important;
  border-color: #000000 !important;
}

/* Siren icon shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
  20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.siren-icon {
  transition: all 0.3s ease;
}

.warning-button:hover .siren-icon {
  animation: shake 0.5s ease-in-out;
  filter: brightness(0) invert(1);
}

