:root {
  /* Archify brand colors */
  --blue-archi-lighter: #80DEFE;      
  --blue-archi-light: #006EE5;      
  --blue-archi-dark: #0122ad;      
  --background-blue-light: #F6FAFF; 
  --text-blue-dark: #212e41;     
  --background-white: #ffffff;
  --background-anim: #DBE3F0;    
    

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;

  /* Typography */
  --font-family: 'Roboto', 'Open Sans', sans-serif;
}
/* Reset and base styles */
@font-face {
  font-family: 'Roboto';
  src: url('/fonts/roboto/Roboto-Thin.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/fonts/roboto/Roboto-Light.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/fonts/roboto/Roboto-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/fonts/roboto/Roboto-Medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/fonts/roboto/Roboto-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/fonts/roboto/Roboto-Black.ttf') format('truetype');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-size: clamp(0.95rem, 1vw, 1rem);
    font-weight: lighter;
    color: #ff0000;
    background-color: var(--background-white);
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3em;
    padding: 0 2rem;
    background-color: var(--background-white);
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    z-index: 1000;
    transition: transform 0.2s ease;
}

.header.is-hidden {
    transform: translateY(-100%);
}

/* Logo styles */
.header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.header__logo:hover {
    opacity: 0.8;
}

.header__logo img {
    height: 40px;
    width: auto;
}

/* Navigation styles */
.header__nav {
    display: flex;
    gap: 2rem;
    margin-left: auto;
    align-items: stretch; /* Add this to make nav items stretch vertically */
}

.header__nav-item {
    height: 100%;
    display: flex;

    align-items: center;


    justify-content: center;
    cursor: pointer; /* Hand cursor for the entire div */
}

/* assets/css/header.css */

.header__nav-link {

    color: var(--blue-archi-dark);
    text-decoration: none;
    font-size: clamp(0.95rem, 1vw, 1rem);
    font-weight: 500;
    border-radius: 4px;

    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative; /* Required for absolute positioning of the pseudo-element */
    display: inline-block; /* Ensures transform works correctly on text */
}

/* Create the underline */
.header__nav-link::after {
    content: '';
    position: absolute;
    left: 50%; /* Start from center */
    bottom: 0; /* Position at the bottom of the link */
    width: 0; /* Start with no width */
    height: 2px; /* Thickness of the underline */
    background-color: var(--blue-archi-dark); /* Color of the underline (same as text) */
    transform: translateX(-50%); /* Center the starting point */

    transition: width 0.1s ease-in-out; /* Animate the width */
}

/* Expand the underline on hover */
.header__nav-item:hover .header__nav-link::after {
    width: 100%;
}




.header__nav-item:hover .header__nav-link {
    color: var(--blue-archi-dark);
}

/* Main content spacing to account for fixed header */
.main-content {
    margin-top: 80px;
}


.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3em;
  padding: 0 2rem;
  background-color: var(--background-white);
  display: flex;
  align-items: stretch;
  z-index: 1000;
  transition: transform 0.2s ease;
}

/* Desktop: nav (incl. logo as its first item) spreads out normally */
.header__nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  align-items: stretch;
}

/* On desktop, logo sits at the very left of the whole header, not inside nav flow */
.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  order: -1; /* pulls it visually first, works because header itself isn't flex-reordering nav vs burger, see note below */
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--blue-archi-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.is-active span:nth-child(2) { opacity: 0; }
.header__burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .header {
    padding: 0 1.25rem;
    justify-content: flex-start;
  }

  .header__burger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 3em;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--background-white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  }

  .header__nav.is-open {
    max-height: 500px;
  }

  /* Logo only visible when nav is open, sits as first row */
  .header__logo {
    order: 0;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .header__nav-item {
    height: auto;
    width: 100%;
    padding: 1rem 1.25rem;
    justify-content: flex-start;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .header__nav-link {
    width: 100%;
  }

  .header__nav-link::after {
    content: none;
  }

}

.header__logo-slot:empty {
  display: none;
}

.header__logo-slot:not(:empty) {
  display: flex;
  align-items: center;
}

.header__logo-image {
  display: block;
  object-fit: contain;
}

.header__logo-reveal {
  position: relative;
  display: block;
  width: 120px;
  height: 40px;
  overflow: hidden;
}

.header__logo-reveal .header__logo-image {
  width: 120px;
  height: 40px;
}

.header__logo-mask {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  height: 100%;
  background-color: var(--background-white);
  transform-origin: right center;
  transition: transform 0.6s ease;
}

.header__logo:hover .header__logo-mask {
  transform: scaleX(0);
}

/* Mobile logo slot styling, only relevant once populated */
@media (max-width: 768px) {
  #logo-slot-desktop {
    display: none; /* never shown on mobile even if populated momentarily */
  }

  .header__logo {
    padding: 0;
  }
  .header__logo-image {
    display: block;
    height: 0;
    width: auto;
  }

  .header__logo-reveal {
    width: 0;
    height: 0;
  }

  .header__logo-reveal .header__logo-image {
    width: auto;
    height: 0;
  }

  .header__logo-mask {
    display: none;
  }

}
.footer {
    background: #f4f8ff;
    padding: 50px 40px 20px;
    color: #3b3b3b;

}

.footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}



.footer .footer-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer .footer-column > * {
    width: 75%;
}

.footer .footer-about > * {
    width: 90%;
}

.footer .footer-logo {
    max-width: clamp(10rem, 30vw, 20rem);
    margin-bottom: 20px;
}

.footer .footer-about {
    max-width: 340px;
}

.footer .footer-column:not(:last-child) {
    border-right: 1px solid var(--blue-archi-dark);
    padding-right: 60px;
}

.footer .footer-column h2,
.footer .footer-column h3 {
    margin: 0 0 20px;
    color: var(--blue-archi-dark);
    font-weight: 700;
}

.footer .footer-column h2 {
    font-size: clamp(1.3rem, 2vw, 2rem);
}

.footer .footer-column h3 {
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
}

.footer .footer-about p {
    line-height: 1.7;
    font-size: clamp(0.95rem, 1vw, 1rem);
    color: #444;
}

.footer .footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer .footer-column li {
    margin-bottom: 14px;
}

.footer .footer-column a {
    text-decoration: none;
    color: #444;
    transition: color 0.25s ease;
}

.footer .footer-column a:hover {
    color: var(--blue-archi-light);
}



.footer .footer-divider {
    max-width: 1200px;
    margin: 45px auto 20px;
    border-top: 1px solid #e3e3e3;
}

.footer .footer-bottom {
    text-align: center;
    color: #666;
    font-size: clamp(0.9rem, 0.95vw, 0.95rem);
    line-height: 1.6;
}

.footer .footer-bottom p {
    margin: 0;
}

/* Responsive */

@media (max-width: 900px) {
    .footer {
        padding: 40px 25px 20px;
    }

    .footer .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer .footer-column:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding-right: 0;
        padding-bottom: 30px;
    }

    .footer .footer-about {
        max-width: 100%;
    }
    .footer li {
        padding-left: 1rem;
    }

    .footer .footer-column > * {
        width: 100%;
    }
}
