: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: 'Times New Roman', Times, serif;
}
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
  font-family: "Liberation Sans Narrow";
  src: url("../fonts/LiberationSansNarrow-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
    /* Default font for the entire project */
    /* Primary choice: Times New Roman for a classic, professional look */
    /* font-family:  Arial, "Helvetica Neue", Helvetica, sans-serif; */

    /* font-family: "Playfair Display",serif; */
    /* font-family: "IBM Plex Serif", serif; */
    /* font-family: "Fraunces", serif; */
    


    /* font-family: 'Courier New', Courier, monospace; */

    /* font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; */

    /* font-family: Georgia, 'Times New Roman', Times, serif; */

    font-family: 'Roboto', 'Open Sans', sans-serif;

    /* font-family: "Liberation Sans Narrow", sans-serif; */

    /* Optional: Set a base font size if desired */
    font-size: clamp(0.95rem, 1vw, 1rem);
    font-weight: lighter;
    /* Optional: Set a base text color */
    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;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    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;

    /* padding: 0.5rem 1rem; */
    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);
}

#rive-canvas {
    width: 150px;   /* match whatever your logo's visual size should be */
    height: 50px;
    display: block;
}

/* 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__logo-slot:empty {
  display: none;
}

.header__logo-image {
  display: none;
}

/* 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: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  #rive-canvas {
    display: none;
  }

  .header__logo-image {
    display: block;
    height: 64px; /* adjust to match your desired mobile logo size */
    width: auto;
  }

}
