/*!This is an ABOUT style page*/

/*!OVERALL OVERRIDES**/
body {
  background-color: #f9f9f9;
  overflow-x: hidden;
}

h1 { font-size: 4rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.2rem; }
p  { font-size: 1rem; }

/*!INTRODUCTION**/
.about-intro {
  margin-top: 2rem;
  padding: 0 2rem;
}
.about-intro h1 {
  margin-bottom: 2rem;
  font-weight: 400;
}
.about-columns {
  border-top: 1.5px solid black;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 2rem;
  gap: 4rem;
}
.about-columns h4 {
  max-width: 40ch;
  text-align: justify;
}
.about-decor {
  width: 2rem;
  margin: 2rem 0;
  transform: rotate(90deg);
}
.team-photo-wrapper {
  
  height: 800px;
  overflow: hidden;
  position: relative;
}
.team-photo {
  position: absolute; /* stack slides */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .6s ease;
  display: block;
}

/*!INTRO ANIMATIONS**/
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in.delay-1 { animation-delay: 0.3s; }
.fade-in.delay-2 { animation-delay: 0.6s; }
.fade-in.delay-3 { animation-delay: 0.9s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zoom-in .team-photo {
  transform: scale(1.05);
  animation: none;
  will-change: opacity, transform;
}

.zoom-in .team-photo.active {
  animation: zoomIn 1.2s ease-out forwards;
}

@keyframes zoomIn {
  to {
    transform: scale(1);
    opacity: 1; /* this works with .team-photo.active { opacity:1 } */
  }
}


/*!INTRO ADJUSTMENTS FOR SCREENS**/
@media (max-width: 768px) {
  .about-intro {
  padding: 0 1rem;
  }
  .about-columns h4 {
    font-size: 1rem;
    max-width: 40ch;
  }
  .team-photo-wrapper {
  padding: 0;
  height: 500px;
  overflow: hidden;
  position: relative;
  }
}
@media (max-width: 450px) {
  .about-columns {
  display: flex;
  flex-direction: column;
  grid-template-columns: 1fr 1fr;
  padding-top: 2rem;
  gap: 2rem;
  }
}

/*!DROPDOWNS**/
.dropdowns {
  padding: 1rem 2rem;
  margin: 0 auto;
}
.dropdown {
  border-bottom: 1.5px solid #111;
  padding: 1rem;
}
.dropdown-toggle {
  color: black;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.4s ease;
  opacity: 0;
}
.dropdown-content p {
  padding-top: 2rem;
  max-width: 80ch;
}
.dropdown-content img {
  max-width: 800px;
}
.dropdown.open .dropdown-content {
  max-height: 1000px; /* adjust if your content is taller */
  opacity: 1;
}

/**DROPDOWN ARROW**/
.arrow {
  color:black;
  display: inline-block;
  transition: transform 0.3s ease;
}
.dropdown.open .arrow {
  transform: rotate(180deg);
}

/*!DROPDOWNS ADJUSTMENTS FOR SCREENS**/
@media (max-width: 768px) {
  .dropdowns {
    padding: 1rem 1rem;
    margin: 0 auto;
  }
}
@media (max-width: 450px) {
  .dropdown-toggle h3 {
    font-size: 1.7rem;
  }
}

/*!SERVICES**/
.services-section {
  padding: 0.25rem 2rem;
}
.services-section h2 {
  font-weight: 500;
  font-size: clamp(4rem,17vw,15rem);
  margin: 10rem 0 0 0;
}
.services-section h2 span{
  line-height: 0.8;      
}
.services {
  display: flex;
  height: 600px;
  overflow: hidden;
}
.service {
  flex: 1;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
  transition: flex 0.5s ease;
  display: flex;
  align-items: flex-end;
  border-left: #f9f9f9 solid 0.5rem;
}
.service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0));
  z-index: 1;
}
.service .overlay {
  position: relative;
  z-index: 2;
  color: white;
  padding: 1.5rem;
  transition: opacity 0.3s ease;
  max-width: 500px;
}
.service h3 {
  margin-bottom: 1rem;
}
.service .overlay h3 {
  font-size: 2rem;
  transition: font-size 0.3s ease;
  opacity: 1;
}
.service.active .overlay h3 {
  font-size: 3rem;
}
.service p {
  max-width: 300ch;
}
.service:not(.active) .overlay p {
  display: none;
}
.service.active {
  flex: 3;
}
.service.active .overlay {
  opacity: 1;
}
.service::after {
  content: '';
  display: block; /* ensures the box is rendered */
  background-image: var(--arrow);
  background-size: contain;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  position: absolute;
  top: 1rem;
  left: 1rem;
  transition: opacity 0.3s ease;
  z-index: 5;
  filter: invert(1);
}
.service.active::after {
  display: none;
}
.additional-cta {display: flex;
  justify-content: space-between;
  padding: 2rem 2rem 7rem 2rem;}

.additional-cta .additional-block {box-sizing: border-box;
  display:flex;
  justify-content: space-between;
  align-content: space-between;
  flex-direction:column;}
.additional-cta .cta-button {
  margin-top: auto;
  line-height: 2;
  text-decoration: none;
}

.additional-text h4{
  font-family:'Halyard-Display', sans-serif;
  font-size: 2rem;
  padding-left: 2rem;
  max-width: 55ch;
  text-align: justify;
  line-height: 1.1;
}

/*!SERVICES ADJUSTMENTS FOR SCREENS**/
@media (max-width: 1300px) {
  .services-section {
  padding: 0.25rem 2rem;
  }

  .services-section h2 span{
    
    line-height: 0.8;      
    display: inline-block; 
    overflow: hidden;  
  }
  .services {
    height: 500px;
  }

  .service .overlay {
  padding: 1rem;
  }

  .service .overlay h3 {
    font-size: 1.5rem;
  }
  .service.active .overlay h3 {
    font-size: 2.2rem;
  }

  .additional-text h4{
  font-size: 1.6rem;
  max-width: 45ch;
}
}

@media (max-width: 900px) {

    .services-section {
      
  padding: 0.25rem 1rem;
  }

  .additional-cta {
    padding: 5rem 1rem;

  }

    .additional-text h4{
  font-size: 1.2rem;
  max-width: 40ch;
  }


  .services-section h2 span{
    margin: 2rem 0 0 0;
  }

  .services {
    
    flex-direction: column;
    height: auto;
  }

  .service {
    flex: 1 1 auto; /* allow vertical stacking */
    height: 120px;
    border-left: none;
    border-top: #f9f9f9 solid 0.5rem;
    transition: height 0.5s ease;
  }

  .service.active {
    flex: 1 1 auto;
    height: 300px; /* slightly taller for active */
  }

  .service .overlay {
  padding: 1rem;
  }

  .service::after {
    top: 0.5rem;
    left: 0.5rem;
  }
}
@media (max-width: 650px) {
    .additional-cta {flex-direction:column ; padding:3rem 0.5rem; margin-top: 2rem;}
    .additional-cta .cta-button {display: none;}
    .additional-text h4{text-indent: 2rem;
      padding: 0;}

}
@media (max-width: 450px) {
  .services-section {
  padding: 0;
  }

  .additional-cta {flex-direction:column ; padding: 1rem 1rem 3rem 1rem;}
  .additional-cta .cta-button {margin-bottom: 2rem; font-size: 0.5rem;}
  .additional-text h4{
    font-size: 1.2rem; line-height: 1;}

  .services-section h2 {
    font-weight: 400;
    padding-left: 1rem;
    margin: 0;
    margin-top: 5rem;
  }


  .services-section h2 span{
    margin: 0;
    margin-top: 2rem;
  }
}


/*!SERVICES ANIMATION**/
.curtain-mask {
  pointer-events: none;
  display: inline-block;
  position: relative;
  padding: .12em 0 .20em;    
  overflow: hidden;  
  line-height: inherit;
}
.curtain-mask::after {
  pointer-events: none;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f9f9f9; 
  transform: translateY(0%);
  transition: transform 1.2s ease;
  z-index: 1;
  top: -.12em; 
  bottom: -.20em;
}

.curtain-mask.reveal::after {
  pointer-events: none;
  z-index: 1;
  transform: translateY(-110%);
}

/*TODO: COMPLETE ADAPTATION FOR SCREENS*/
/*!TEAM SLIDER**/
.team-slider-section {
  position: relative;
  z-index: 2;
  background-color: white;
  user-select: none;
  padding: 3rem 2rem;
  overflow: hidden;
}
.team-slider-section h2 {
  margin: 3rem 0;
}
.team-slider {
  z-index: 3; 
  pointer-events: auto;
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}
.team-slider::-webkit-scrollbar {
  display: none;
}
.team-slider:active {
  cursor: grabbing;
}
.team-member {
  flex: 0 0 250px;
  text-align: left;
}
.team-member .photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-member .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(100%);
}
.team-member strong {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}
.team-member p {
  margin: 0.2rem 0;
  color: #333;
}

.team-slider img {
  -webkit-user-drag: none;
  user-select: none;
}
.team-photo.active { opacity: 1; }

.team-slider-wrap { position: relative; }

.team-arrow {
  position: absolute; top: 58%; transform: translateY(-60%);
  font-size: 1rem;
  width: 32px; height: 32px; line-height: 22px; text-align: center;
  user-select: none; opacity: .9; z-index: 30;
  background-color: transparent;
  border: none;
  color: #111;
}

.team-arrow.left  { left: 1rem; }
.team-arrow.right { right: 1rem; }
.team-arrow[disabled] { opacity: .3; pointer-events: none; }
.team-slider { overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth; }
.team-slider.dragging { cursor: grabbing; }



/*!TEAM ADJUSTMENTS FOR SCREENS**/

@media (max-width: 900px) {
  .team-slider {
  gap: 1rem;}

  .team-member {
  flex: 0 0 170px;
  }

  .team-slider-section {
    padding: 3rem 1rem;
  }

  .team-arrow {font-size: 1.5rem;}

  .team-arrow.left  { left: 0.25rem; }
  .team-arrow.right { right: 0.25rem; }

}

/*!AWARDS**/
.awards-section {
  margin: 10rem 0 0 0;
  background: #f9f9f9;
  padding: 4rem 2rem;
}
.awards-section h2 { margin-bottom: 1.5rem; }



.awards-text {
  display: none;
  color: #111;
  margin: 5rem 0 2rem 0;
  padding: 0 0.5rem;
  font-family:'Halyard-Display', sans-serif;
  text-align: justify;
  line-height: 1.1;
  font-size: 1.2rem;
  text-indent: 2rem;
}
.awards-text p { margin: 0; }

.awards-logos {
  margin-top: 4rem;
  display: grid;
  --gap: 1rem;
  gap: var(--gap);
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.award-tile {
  position: relative;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 0;
  overflow: hidden;
  user-select: none;
}

.bg-white { background: #ffffff; }
.bg-gray { background: #111; }
.bg-gray-dark { background: #e7e7e7; }

.span-2x1 {
  grid-column: span 2;
  aspect-ratio: calc(2 + var(--gap)) / 1;
}

.award-tile.is-text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
.award-tile.is-text p {
  margin: 0;
  font-family: 'Fustat', system-ui, sans-serif;
  color: #111;
}

.award-tile.is-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover:hover) and (pointer:fine) {
  .award-tile.is-image img {
    filter: grayscale(100%);
    transition: filter 240ms ease;
  }
  .award-tile.is-image:hover img { filter: none; }
}

.award-tile.is-flip { perspective: 1000px; }
.award-tile.is-flip .tile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 360ms cubic-bezier(.2,.7,.2,1);
}
.award-tile.is-flip.is-active .tile-inner { transform: rotateY(180deg); }

.tile-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  padding: 1rem;
}
.tile-front {
  background: transparent;
  color: #fff;
  font-family: 'Halyard-Display', sans-serif;
  text-align: center;
}

/* Flip hint arrow */
.award-tile.is-flip .tile-front::after {
  content: "↻";
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  line-height: 1;
  color: currentColor;   /* inherits the front text color (#fff) */
  pointer-events: none;
}

/* Hover polish for pointer devices */
@media (hover:hover) and (pointer:fine) {
  .award-tile.is-flip:hover .tile-front::after {
    transform: rotate(180deg);
    transition: transform 240ms ease;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .award-tile.is-flip:hover .tile-front::after {
    transition: none;
    transform: none;
  }
}

.tile-back {
  transform: rotateY(180deg);
  background: transparent;
}
.tile-back img {
  max-width: 70%;
  max-height: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
}

.award-name {
  display: inline-block;
  font-family: 'Halyard-Display', sans-serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 1.8vw, 3rem);
  line-height: 1.15;
  text-align: center;
}

/* ===================== MEDIA QUERIES ===================== */

@media (max-width: 1200px) {
  .awards-logos { --gap: 0.5rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .award-tile.is-empty { display: none; }
  .hide-tablet { display: none !important; }
}

@media (max-width: 768px) {
  .awards-section { padding: 4rem 1rem; margin: 4rem 0 0 0; }
  .awards-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .award-tile.is-text { display: none; }
  .award-tile.is-image { display: none; }
  .span-2x1 { grid-column: span 1; aspect-ratio: 1 / 1; }
  .hide-mobile { display: none !important; }
  .awards-text {display:block;}
}

@media (hover:none) {
  .award-tile.is-image img { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .award-tile.is-flip .tile-inner { transition: none; }
}


/*!CTA**/
.cta-section {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: bottom;
  padding: 2rem 2rem;
  gap: 2rem;
  flex-wrap: wrap;
  background-color: #f9f9f9;
}
.cta-left h2  {
  font-weight: 500;
  font-size: clamp(4rem,17vw,15rem);
  margin-bottom: 3rem;
  line-height: 0.75;
  overflow: visible;
}
.cta-right .cta-button {
  padding: 0.5rem;
  font-size: 1.5rem;
  text-decoration: none;
  color: #111;
  font-weight: 400;
  transition: all 0.3s ease;
}
.cta-right .cta-button:hover {
  transform: translateX(5px);
  text-decoration: underline;
}


/*!CTA ADJUSTMENTS FOR SCREENS**/

@media (max-width: 900px) {
  .cta-section {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 450px) {

  .cta-left h2 {font-weight: 400;}

  .cta-right .cta-button {
    padding: 0;
    font-size: 1.2rem;
  }
}

