@import './lhg.css';

/* Design Token Mappings - Update this file if design system changes */

@layer base {
  /* Typography classes from Style Guide ******************* */


}

@layer utilities {

  /* Brand Colors */
  .bg-brand {
    background-color: var(--lhg-color-brand-primary, var(--maui-color-brand-primarys));
  }

  .bg-brand-secondary {
    background-color: var(--lhg-color-brand-secondary, var(--maui-color-brand-secondary));
  }

  .text-brand {
    color: var(--lhg-color-brand-primary, var(--maui-color-brand-primary));
  }

  .text-brand-secondary {
    color: var(--lhg-color-brand-secondary, var(--maui-color-brand-secondary));
  }

  .border-brand {
    border-color: var(--lhg-color-brand-primary, var(--maui-color-brand-primary));
  }

  .bg-brand-gradient {
    background: var(--lhg-gradient-brand-core-blue, var(--maui-gradient-brand-core-blue));
  }

  /* LHG Specific Colors */
  .bg-deep-blue {
    background-color: var(--lhg-color-brand-deep-blue);
  }

  .bg-white {
    background-color: var(--lhg-color-brand-white);
  }

  .text-deep-blue {
    color: var(--lhg-color-brand-deep-blue);
  }

  .text-white {
    color: var(--lhg-color-brand-white);
  }

  .text-primary {
    color: var(--lhg-color-text-primary);
  }

  .text-secondary {
    color: var(--lhg-color-text-secondary);
  }

  .border-deep-blue {
    border-color: var(--lhg-color-brand-deep-blue);
  }

  /* LHG Sand Tints */
  .bg-sand-tint-2 {
    background-color: #F5EFE7;
  }

  .bg-blue-tint-2 {
    background-color: #E5F1FF;
  }

  /* LHG Core Colors */
  .bg-lhg-core-blue {
    background-color: var(--lhg-color-brand-core-blue);
  }

  .bg-lhg-deep-blue {
    background-color: var(--lhg-color-brand-deep-blue);
  }

  .bg-lhg-light-blue {
    background-color: var(--lhg-color-brand-light-blue);
  }

  .bg-lhg-red {
    background-color: var(--lhg-color-brand-red);
  }

  .bg-lhg-teal {
    background-color: var(--lhg-color-brand-teal);
  }

  .bg-lhg-purple {
    background-color: var(--lhg-color-brand-purple);
  }

  .bg-lhg-sand {
    background-color: var(--lhg-color-brand-sand);
  }


  /* LHG Grays */
  .bg-lhg-gray-25 {
    background-color: var(--lhg-color-brand-gray-25);
  }

  .bg-lhg-gray-100 {
    background-color: var(--lhg-color-brand-gray-100);
  }

  .bg-lhg-gray-300 {
    background-color: var(--lhg-color-brand-gray-300);
  }

  .bg-lhg-gray-500 {
    background-color: var(--lhg-color-brand-gray-500);
  }

  .bg-lhg-gray-800 {
    background-color: var(--lhg-color-brand-gray-800);
  }

  .text-lhg-gray-300 {
    color: var(--lhg-color-brand-gray-300);
  }

  .text-lhg-gray-500 {
    color: var(--lhg-color-brand-gray-500);
  }

  .text-lhg-gray-800 {
    color: var(--lhg-color-brand-gray-800);
  }

  /* LHG Border Colors */
  .border-lhg-gray-25 {
    border-color: var(--lhg-color-brand-gray-25);
  }

  .border-lhg-gray-100 {
    border-color: var(--lhg-color-brand-gray-100);
  }

  .border-lhg-gray-300 {
    border-color: var(--lhg-color-brand-gray-300);
  }

  .border-lhg-gray-500 {
    border-color: var(--lhg-color-brand-gray-500);
  }

  .border-lhg-red {
    border-color: var(--lhg-color-brand-red);
  }

  /* LHG Gradients */
  .bg-lhg-gradient-core-blue {
    background-image: var(--lhg-gradient-brand-core-blue);
  }

  .bg-lhg-gradient-light-blue {
    background-image: var(--lhg-gradient-brand-light-blue);
  }

  .bg-lhg-gradient-red {
    background-image: var(--lhg-gradient-brand-red);
  }

  .bg-lhg-gradient-teal {
    background-image: var(--lhg-gradient-brand-teal);
  }

  .bg-lhg-gradient-purple {
    background-image: var(--lhg-gradient-brand-purple);
  }

  .bg-lhg-gradient-sand {
    background-image: var(--lhg-gradient-brand-sand);
  }

  /* Semantic Colors */
  .bg-midnight {
    background-color: var(--maui-color-brand-midnight);
  }

  .bg-whale {
    background-color: var(--maui-color-brand-whale-blue);
  }

  .bg-marble {
    background-color: var(--maui-color-brand-marble-blue);
  }

  .text-midnight {
    color: var(--maui-color-brand-midnight);
  }

  .text-whale {
    color: var(--maui-color-brand-whale-blue);
  }

  .text-marble {
    color: var(--maui-color-brand-marble-blue);
  }

  /* Feedback Colors */
  .bg-success {
    background-color: var(--maui-color-brand-green);
  }

  .bg-success-light {
    background-color: var(--maui-color-brand-green-light);
  }

  .bg-error {
    background-color: var(--maui-color-brand-red);
  }

  .bg-error-light {
    background-color: var(--maui-color-brand-red-light);
  }

  .bg-warning {
    background-color: var(--maui-color-brand-pale-yellow);
  }

  .text-success {
    color: var(--maui-color-brand-green);
  }

  .text-success-light {
    color: var(--maui-color-brand-green-light);
  }

  .text-error {
    color: var(--maui-color-brand-red);
  }

  .text-error-light {
    color: var(--maui-color-brand-red-light);
  }

  .text-warning {
    color: var(--maui-color-brand-pale-yellow);
  }

  .border-success {
    border-color: var(--maui-color-brand-green);
  }

  .border-error {
    border-color: var(--maui-color-brand-red);
  }

  /* Typography - Font Families */
  .font-headline {
    font-family: var(--lhg-font-family-head, var(--maui-font-family-headline));
  }

  .font-copy {
    font-family: var(--maui-font-family-copy);
  }

  .font-body {
    font-family: var(--lhg-font-family-text, var(--maui-font-family-body));
  }


  /* Typography - Font Weights */
  .font-thin {
    font-weight: var(--maui-font-weight-thin);
  }

  .font-light {
    font-weight: var(--maui-font-weight-light);
  }

  .font-regular {
    font-weight: var(--maui-font-weight-regular);
  }

  .font-bold {
    font-weight: var(--maui-font-weight-bold);
  }



  /* Hide scrollbar but keep functionality */
  .scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .scrollbar-hide::-webkit-scrollbar {
    display: none;
  }
}

@layer components {

  /* Content Width Constraint */
  .content-constrained {
    max-width: 1440px;
    /* or 1200px if you prefer */
    margin-left: auto;
    margin-right: auto;
    padding-left: 80px;
    padding-right: 80px;
  }

  @media (max-width: 768px) {
    .content-constrained {
      padding-left: 20px;
      padding-right: 20px;
    }
  }

  /* Header Styles */
  .header {
    transition: all 0.3s ease;
  }

  .header-transparent {
    background: transparent;
  }

  .header-transparent:hover {
    /*background: rgba(128, 128, 128, 0.5);/* rgba(5, 22, 77, 0.5); */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .header-scrolled {
    background: rgba(5, 22, 77, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .header-scrolled:hover {
    background: rgba(5, 22, 77, 0.95);
  }

  /* Card Typography */
  .card-title {
    font-family: var(--lhg-font-family-head);
    font-size: 28px;
    font-weight: 300;
    line-height: 1.3;
    color: var(--lhg-color-brand-deep-blue);

  }

  .card-body {
    font-family: var(--lhg-font-family-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--lhg-color-brand-deep-blue);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Text content styling */
  .cvc-text {
    color: var(--Muted-Deep-Blue, #05164D);
    font-family: "LHG Text";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    /* 24px */
  }

  .cvc-text p {
    margin-bottom: 2rem;
  }

  .cvc-text p:last-child {
    margin-bottom: 0;
  }

  .cvc-text h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
  }

  .cvc-text h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: bold;
  }

  .cvc-text h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: bold;
  }

  .cvc-text h5 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.0rem;
    font-weight: normal;
  }

  .cvc-text ul,
  .cvc-text ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
  }

  .cvc-text li {
    margin-bottom: 0.5rem;
  }

  .cvc-text a {
    color: var(--lhg-color-brand-primary);
    text-decoration: underline;
  }

  .cvc-text strong {
    font-weight: bold;
  }

  .cvc-text em {
    font-style: italic;
  }

  .big-headline {
    color: var(--Muted-Deep-Blue, #05164D);
    font-family: "LHG Head";
    font-size: 48px;
    font-style: normal;
    font-weight: 300;
    line-height: 130%;
    /* 62.4px */
  }

  @media (max-width: 1023px) {
    .big-headline {
      font-size: 36px;
      line-height: 130%;
      /* 46.8px */
    }
  }

  .subtext {
    font-size: 14px;
    color: #999999;
    /* margin-top: 16px; */
    text-align: left;
  }

  /* Link styles */
  .link-underlined {
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  /* Card hover effects */
  .card-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: visible !important;
  }

  .card-hover::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    bottom: -80px;
    pointer-events: auto;
    z-index: -1;
  }

  .card-hover:hover {
    transform: translateY(-48px);
    margin-bottom: -32px;
  }

  .card-spacer {
    height: 0;
    transition: height 0.3s ease;
  }

  .card-hover:hover .card-spacer {
    height: 32px;
  }

  .card-read-more {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .card-hover:hover .card-read-more {
    opacity: 1;
  }

  .card-hover::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    bottom: -80px;
    pointer-events: auto;
    z-index: -1;
  }

  /* Carousel line indicators with larger click area */
  .carousel-line {
    position: relative;
  }

  .carousel-line::before {
    content: '';
    position: absolute;
    top: -12px;
    /* Extends 12px above */
    bottom: -12px;
    /* Extends 12px below */
    left: -4px;
    /* Extends 4px left */
    right: -4px;
    /* Extends 4px right */
    /* Total clickable area: 40px wide x 26px tall */
  }

  /* Card Carousel Padding and Snap Adjustments */

  #card-carousel {
    scroll-padding-left: 20px;
    scroll-padding-right: 20px;
    padding-right: 20px;
  }

  /* Remove snap-start from cards and apply via CSS instead */
  #card-carousel .snap-start {
    scroll-snap-align: start;
  }

  @media (min-width: 768px) {
    #card-carousel {
      padding-right: 80px !important;
      scroll-padding-left: 80px;
      scroll-padding-right: 80px;
    }
  }

  /* Modal Styles */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
  }

  .modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
  }

  .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 32px;
    width: 720px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: #666;
    flex-shrink: 0;
    margin-left: 16px;
  }

  .modal-close:hover {
    color: #000;
  }

  .modal-body img {
    margin-top: 16px;
  }

  .modal-body p:first-child {
    margin-top: 0;
  }

  /* Teaser aspect ratio */
  .aspect-teaser {
    aspect-ratio: 1280 / 500;
    position: relative;
  }

  .language-box {
    display: inline-flex;
    height: 48px;
    padding: 8px 12px;
    align-items: center;
    gap: 16px;

    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.20);
  }

  /* Base Button Styles */
  .btn {
    display: inline-flex;
    height: 56px;
    padding: 18px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    font-family: "LHG Text", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
  }

  .btn:hover {
    border-radius: 12px;
  }

  /* Primary Button */
  .btn-primary {
    background: var(--CTA-CTA-Blue, #2D5FE4);
    color: var(--Grey-scale-White, #FFF);
  }

  .btn-primary:hover {
    background: #244CB6;
  }

  .btn-primary:active {
    background: var(--CTA-CTA-Blue, #2D5FE4);
  }

  .btn-primary.btn-disabled,
  .btn-primary:disabled {
    background: var(--Grey-scale-Gray-200, #C9C5C1);
    color: var(--Grey-scale-Gray-400, #94908D);
    cursor: not-allowed;
    border-radius: 8px;
  }

  /* Secondary Button */
  .btn-secondary {
    background: transparent;
    border: 1px solid rgba(5, 22, 77, 0.50);
    color: var(--Muted-Deep-Blue, #05164D);
  }

  .btn-secondary:hover {
    border-color: var(--Muted-Deep-Blue, #05164D);
  }

  .btn-secondary:active {
    background: #EAEFFC;
    border-color: var(--Muted-Deep-Blue, #05164D);
  }

  .btn-secondary.btn-disabled,
  .btn-secondary:disabled {
    background: var(--Grey-scale-Gray-100, #E3E1DE);
    color: var(--Grey-scale-Gray-400, #94908D);
    cursor: not-allowed;
    border-radius: 8px;
  }

  /* Primary Invert Button */
  .btn-primary-invert {
    background: white;
    color: var(--Muted-Deep-Blue, #05164D);
  }

  .btn-primary-invert:hover {
    background: var(--Grey-scale-Gray-100, #E3E1DE);
  }

  .btn-primary-invert:active {
    background: white;
  }

  .btn-primary-invert.btn-disabled,
  .btn-primary-invert:disabled {
    background: rgba(255, 255, 255, 0.30);
    color: rgba(255, 255, 255, 0.50);
    cursor: not-allowed;
    border-radius: 8px;
  }

  /* Secondary Invert Button */
  .btn-secondary-invert {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.50);
    color: white;
  }

  .btn-secondary-invert:hover {
    border-color: white;
  }

  .btn-secondary-invert:active {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
  }

  .btn-secondary-invert.btn-disabled,
  .btn-secondary-invert:disabled {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.50);
    cursor: not-allowed;
    border-radius: 8px;
  }

  /* Typography - Desktop Display */
  .text-display-s-light {
    font-family: "LHG Head", sans-serif !important;
    font-size: 56px !important;
    font-style: normal;
    font-weight: 300 !important;
    line-height: 110% !important;
  }

  /* Mobile/Tablet variants */
  @media (max-width: 1200px) {
    .text-display-s-light {
      font-size: 40px !important;
      line-height: 115% !important;
    }
  }

  @media (max-width: 1150px) {
    .text-display-s-light {
      font-size: 30px !important;
      line-height: 115% !important;
    }
  }

  @media (max-width: 900px) {
    .text-display-s-light {
      font-size: 26px !important;
      line-height: 115% !important;
    }
  }

  @media (max-width: 740px) {
    .text-display-s-light {
      font-size: 24px !important;
      line-height: 120% !important;
    }
  }

  /* END Typography classes from Style Guide ******************* */
}

.hero {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero img {
  width: 100%;
  max-width: 2550px; /* Match your image's actual width */
  height: auto;
  display: block;
}

.footer-link {
  color: var(--Grey-scale-White, #FFF);
  font-family: "LHG Text";
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 150%;
  /* 24px */
}

.footer-padding {
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 1024px) {
  .footer-padding {
    padding-left: 80px;
    padding-right: 80px;
  }
}

.content-grid-3-1 {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 8.25rem;
  /* edit gap here */
}

@media (max-width: 1023px) {
  .content-grid-3-1 {
    grid-template-columns: 1fr;
    gap: 2rem;
    /* adjust as needed for mobile spacing */
  }
}

/* Constrain header to hero's max-width */
@media (min-width: 2550px) {
  .header {
    max-width: 4829px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    left: 0;
    right: 0;
  }

  .header > div {
    padding-left: calc((100vw - 2550px) / 2 + 80px);
    padding-right: calc((100vw - 2550px) / 2 + 80px);
  }
}

.cvc-text li {
  list-style-type: disc;
  margin-left: 0.5rem;
  /* indent list items */
  line-height: 150%;
  /* 24px */
}

.downloads-box {
  display: flex;
  width: 302px;
  padding: 32px 24px 40px 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;

  border-radius: 16px;
  background: var(--Tints-Blue-2, #E5F1FF);
}

.downloads-box-headline {
  align-self: stretch;
  color: var(--Muted-Deep-Blue, #05164D);
  font-family: "LHG Head";
  font-size: 24px;
  font-style: normal;
  font-weight: 300;
  line-height: 130%;
  /* 31.2px */
  /* Desktop/Heading/Heading M/Light */
}

.downloads-box-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--CTA-CTA-Blue, #2D5FE4);
  font-family: "LHG Text";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  /* 19.2px */
}

.downloads-box-link-icon {
  width: 13.166px;
  height: 13.101px;
  transform: rotate(90deg);
  align-items: flex-start;
}



.banner-title {
  color: #FFF;
  font-family: "LHG Head";
  font-size: 56px;
  font-style: normal;
  font-weight: 300;
  line-height: 110%;
  display: block;
  word-break: break-word;
}



/* Ticket banner: keep layout stable even if image aspect ratios change */
.banner-container {
  max-width: 100%;
  border-radius: 16px !important;
  overflow: hidden !important;
  max-width: 100%;
  clip-path: inset(0 round 16px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-panel {
  position: relative;
  flex: 1 1 0%;
  height: 350px;
  /* mobile */
  overflow: hidden;
  /* Ensure each panel also clips its content */
}

/* First panel - smaller height on mobile only */
@media (max-width: 767px) {
  .banner-panel:first-child {
    height: 250px;
  }
}

/* Second panel - larger height on mobile only */
@media (max-width: 767px) {
  .banner-panel:last-child {
    height: 605px;
  }
}

.banner-panel>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right;
  /* display: block; */
}

/* Only make images absolute positioned on desktop where flex layout handles them */
@media (min-width: 768px) {
  .banner-panel {
    height: 700px;
    /* desktop/tablet */
  }

  .banner-panel>img {
    position: absolute;
    inset: 0;
  }
}

@media (max-width: 767px) {
  .banner-container {
    width: auto;
    height: auto;
    min-height: 300px;
  }

  .banner-panel:last-child>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    /* display: block; */
  }

  .banner-title {
    font-size: 36px;
  }
}

/* 682 -768 */
@media (min-width: 682px) and (max-width: 768px) {
  .banner-container {
    width: auto;
  }
}

@media (max-width: 681px) {
  .banner-container {
    width: 100%;
  }
}

/* Using different images for mobile / desktop */

.banner-img-mobile {
  display: block;
}

.banner-img-desktop {
  display: none;
}

@media (min-width: 768px) {
  .banner-img-mobile {
    display: none;
  }

  .banner-img-desktop {
    display: block;
  }
}

body {
  max-width: 2550px;
  margin: 0 auto;
}