/*-----------------------------------*\
 * #CUSTOM PROPERTY
\*-----------------------------------*/
/* #f1f3f6 */
:root {
  --primary-color: #2a2e53;
  --accent-color: #ed3623cc;
  --text-dark: #333333;
  --text-light: #888888;
  --background-light: #F1F3F6;
  --background-white: #ffffff;
  --btn-primary: #F8F9FA;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  --background-light-dark: rgb(245, 245, 245);
  --transition-speed: 250ms;
  --top-bar-height: 2.5rem;
  --header-height: 4rem;
}

/*-----------------------------------*\
 * #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-white);
}

body.nav-open {
    overflow: hidden;
}


h1, h2, h3 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/*-----------------------------------*\
 * #REUSABLE COMPONENTS
\*-----------------------------------*/

.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: 5px;
  font-weight: 700;
  text-align: center;
  transition: background-color var(--transition-speed) ease,
              transform var(--transition-speed) ease;
}

.btn--primary {
  background-color: var(--primary-color);
  color: var(--background-white);
  border-radius: 50px;
  padding: 0.75em 2em;
  box-shadow: 0 4px 12px rgba(13, 44, 84, 0.2);
}

.btn--primary:hover {
  background-color: #091e3a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 44, 84, 0.25);
}

.btn--accent {
  background-color: var(--accent-color);
  color: var(--btn-primary);
}

.btn--accent:hover {
  background-color: #c8935a;
  transform: translateY(-2px);
}

.btn--small {
    padding: 0.5em 1em;
    font-size: 0.9rem;
}

.btn--secondary {
    background-color: var(--background-light);
    color: var(--primary-color);
    border: 1px solid #e0e0e0;
}

.btn--secondary:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.btn--link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--background-white);
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-current {
    color: var(--background-white);
    font-weight: 700;
}

/*-----------------------------------*\
 * #TOP BAR
\*-----------------------------------*/
.top-bar {
    background-color: var(--primary-color);
    color: var(--background-white);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar__contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--background-white);
    opacity: 0.8;
    transition: opacity var(--transition-speed) ease;
}

.top-bar__link:hover {
    opacity: 1;
}

.top-bar__contact span {
    display: none;
}

.top-bar__actions {
    display: block;
}


/*-----------------------------------*\
 * #HEADER
\*-----------------------------------*/

.header {
  background: var(--background-white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav--desktop {
    display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__item--dropdown {
  position: static; /* Allow dropdown to position relative to viewport */
}

.nav__link {
  font-weight: 700;
  color: var(--primary-color);
  transition: color var(--transition-speed) ease;
  position: relative;
  padding-bottom: 0.5rem;
}

.nav__link:hover {
  color: var(--accent-color);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform var(--transition-speed) ease-out;
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav-mobile__link.active {
    color: var(--accent-color);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 52px; /* Matches header height */
  left: 0;
  width: 100%;
  background-color: var(--background-white);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--transition-speed) ease,
              visibility var(--transition-speed) ease,
              transform var(--transition-speed) ease;
}


.dropdown-menu .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.dropdown-menu__list {
  flex: 4; /* Takes up 3/4 of the space */
  gap: 0.5rem 1.5rem;
}

.dropdown-menu__item {
  break-inside: avoid-column;
}

.dropdown-menu__link {
  display: block;
  padding: 0.25rem 0.5rem; /* Reduced padding */
  color: var(--text-dark);
  font-weight: 400;
  border-radius: 4px;
  transition: background-color var(--transition-speed) ease,
              color var(--transition-speed) ease;
  font-size: 0.9rem;
}

.dropdown-arrow {
  font-size: 0.7em;
  margin-left: 0.25rem;
  display: inline-block;
  transition: transform var(--transition-speed) ease;
}

.nav__item--dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem; /* Reduced vertical padding */
  color: var(--text-dark);
  font-weight: 400;
  border-radius: 4px;
  transition: background-color var(--transition-speed) ease,
              color var(--transition-speed) ease,
              padding-left var(--transition-speed) ease;
  position: relative;
  font-size: 0.9rem;
}

.dropdown-menu__link::before {
  content: '→';
  display: inline-block;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity var(--transition-speed) ease,
              transform var(--transition-speed) ease;
  color: var(--accent-color);
  font-weight: 700;
}

.dropdown-menu__link:hover {
  background-color: var(--background-light);
  color: var(--primary-color);
  padding-left: 1.5rem;
}

.dropdown-menu__link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.dropdown-menu__cta {
  flex: 1; /* Takes up 1/4 of the space */
  background-color: var(--background-light);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.dropdown-menu__education_item{
  background-color: var(--background-light);
  padding: 1.5rem;
  border-radius: 8px;
  display: inline-block;
  text-align: center;
}

.cta-text {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.header__mobile-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-icon {
    color: var(--primary-color);
}

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.nav-open .nav-toggle {
    position: fixed;
    top: calc(var(--top-bar-height, 0px) + 1.5rem);
    right: 1.5rem;
}

.nav-toggle__icon {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
    position: relative;
    transition: background-color 0s 0.3s;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: transform 0.3s ease-in-out;
}

.nav-toggle__icon::before {
    top: -6px;
}

.nav-toggle__icon::after {
    top: 6px;
}

.nav-open .nav-toggle__icon {
    background-color: transparent;
}

.nav-open .nav-toggle__icon::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle__icon::after {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-mobile-flyout {
    position: fixed;
    top: var(--top-bar-height, 0);
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: calc(100% - var(--top-bar-height, 0));
    background-color: var(--background-white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 99; /* Below header but above content */
    display: flex;
    flex-direction: column;
}

.nav-open .nav-mobile-flyout {
    right: 0;
}

.nav-mobile-flyout__header {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.nav-mobile-flyout__content {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

/* .nav-open .nav-mobile-flyout__content {
    padding-top: 4rem; /* Add padding only when menu is open */
/* } */

.btn--full-width {
    width: 100%;
    margin-bottom: 1.5rem;
}

.nav-mobile__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-mobile__item {
    border-bottom: 1px solid #e0e0e0;
}

.nav-mobile__link {
    display: block;
    padding: 1rem 0;
    color: var(--text-dark);
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-mobile__item--dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.nav-mobile__item--dropdown .nav-mobile__link {
    flex-grow: 1;
}

.nav-mobile__dropdown-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.nav-mobile__item--dropdown.open .nav-mobile__dropdown-toggle {
    transform: rotate(45deg);
}

.nav-mobile__submenu {
    list-style: none;
    padding: 0 0 0 1rem;
    margin: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.nav-mobile__item--dropdown.open .nav-mobile__submenu {
    max-height: 1000px; /* Large value to allow for expansion */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-mobile__submenu-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/*-----------------------------------*\
 * #FOOTER
\*-----------------------------------*/

.footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 2rem; /* Reduced from 5rem */
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-heading {
  font-size: 0.9rem; /* Reduced from 1.1rem */
  color: var(--background-white);
  margin-bottom: 1rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

.location {
  margin-bottom: 0.8rem; /* Reduced from 1.5rem */
}

.location__title {
  font-size: 0.95rem; /* Reduced from 1rem */
  color: var(--background-white);
}

.location__address {
  font-size: 0.85rem; /* Reduced from 0.9rem */
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem; /* Added font-size */
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
  color: var(--background-white);
  padding-left: 5px;
}

.footer-column--subscribe p {
  margin-bottom: 1rem;
  font-size: 0.8rem; /* Added font-size */
}

.footer-achievements {
  margin-top: 2rem;
}

.footer-achievements img {
  max-width: 135px;
  border-radius: 8px;
}

.footer-bottom {
  padding-block: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.copyright {
  font-size: 0.85rem; /* Reduced from 0.9rem */
  text-align: center;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: block;
}

.social-links img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-links a:hover img {
  opacity: 1;
  transform: scale(1.1);
}

/*-----------------------------------*\
 * #MEDIA QUERIES
\*-----------------------------------*/

@media (min-width: 768px) {
    .contact-sheet__content {
        grid-template-columns: 2fr 1fr;
    }
}

@media (min-width: 576px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-main {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

@media (min-width: 768px) {
  .top-bar__contact span {
    display: inline;
  }

  .header__mobile-controls {
    display: none;
  }

  .nav--desktop {
    display: flex;
  }

  .nav__list {
    flex-direction: row;
  }

  .nav__item--dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-menu__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .top-bar__actions {
    display: flex;
    gap: 0.5rem;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  .footer-main {
    grid-template-columns: repeat(4, 1fr);
  }
}


.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-intro-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/*-----------------------------------*\
 * #ANIMATIONS
\*-----------------------------------*/

@keyframes slide-in-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

[data-animation="slide-in-up"] {
    opacity: 0;
}

[data-animation="slide-in-up"].visible {
    animation: slide-in-up 0.8s ease-out forwards;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
}

.fade-in.visible {
    animation: fade-in 1s ease-in forwards;
}

/* Honeycomb Grid Styles */
.honeycomb-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 0;
    --s: 250px; /* size */
    --m: 4px; /* margin */
    font-size: 1.5rem;
}

.honeycomb-cell {
    width: var(--s);
    margin: var(--m);
    height: calc(var(--s)*1.1547);
    display: inline-block;
    font-size:initial;
    clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%);
    background: #6c8898;
    position: relative;
    transition: transform 0.3s ease;
}

.honeycomb-grid::before {
  content: "";
  width: calc(var(--s)/2 + var(--m));
  float: left;
  height: 120%;
  shape-outside: repeating-linear-gradient(
                  #0000 0 calc(var(--s)*.866 + 2*var(--m)),
                  #000  0 calc(var(--s)*.866 + 2*var(--m) + 1px));
}

.honeycomb-cell:hover {
    transform: scale(1.05);
    z-index: 10;
}

.honeycomb-cell__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.honeycomb-cell__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: var(--background-white);
    text-align: center;
}

.honeycomb-cell__title {
    font-size: 1.2rem;
    color: var(--background-white);
    margin: 0;
}

/* Contact Sheet Section */
.contact-sheet {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 4rem 0;
}

.contact-sheet__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.contact-sheet__text {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.contact-sheet__title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-sheet__text p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-sheet__text a,
.contact-sheet__text .highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.contact-sheet__text .email-links {
    margin-bottom: 2rem;
}

.contact-sheet__image img {
    width: 100%;
    max-width: 300px;
    margin-inline: auto;
    border-top-right-radius: 1.5rem;
    border-bottom-left-radius: 1.5rem;
}

@media (min-width: 768px) {
    .contact-sheet__content {
        grid-template-columns: 2fr 1fr;
    }
}
