: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;
}

#index .content-row {
    display: flex;
    flex-direction: column;
    /* gap: 2rem; */
    align-items: stretch; /* All children get the same height */
    position: relative;
    margin: 2% 0rem;
}

/* Logo image — takes up full height of the row */
#index #logo_title {
    display:none;
    height: auto;
    width: clamp(10rem, 30vw, 20rem);
    object-fit: contain;
    flex-shrink: 0;
    padding-bottom: 1rem;
    align-self: flex-start;
}

/* Wrapper for text content — stacks title, sub_title, description horizontally */
#index .text-column {
    display: flex;
    flex-direction: column;
    justify-content: top;
    gap: 5%;
    flex: 1;
}

#index #title_image {
    height: 90%;
    width: 45%;
    object-fit: contain;
    flex-shrink: 0;
    padding: 3rem 3rem;
    padding-bottom: 1%;
    margin-left: 0%; /* Pull image left to overlap text */
}

/* Title */
#index .title {
    text-align: left;
    font-size: clamp(1.5rem, 4vw, 4rem);
    font-weight: bolder;
    color: var(--text-blue-dark);
    display: flex;
    align-items: center;
}

/* Sub-title */
#index .subtitle {
    text-align: left;
    font-size: clamp(1.2rem, 2vw, 3rem);
    font-weight: bold;
    color: var(--blue-archi-light);
    display: flex;
    align-items: center;
}

/* Description */
#index .description {
    font-size: clamp(1.0rem, 1.4vw, 2rem);
    color: var(--blue-archi-dark);
    text-align: left;
    display: flex;
    align-items: center;
    width: 60%;
}

#index .subtitle-2 {
    font-size: clamp(1rem, 1.5vw, 1.8rem);
}




#index .dark-blue {
    color: var(--blue-archi-dark);
}

#index .description span {
    align-self: flex-start;
}


/* Separator line between title and subtitle */
#index .title-separator {
    border: none;
    border-top: 2px solid var(--blue-archi-light);
    margin: 0rem 0rem;
    margin-right: 80%;

}


#index #section-1 {
    
    min-height: 100vh;
    justify-content: top;
    display: flex;
    flex-direction: row;
    align-items: stretch; /* All children get the same height */
    position: relative;
    margin: 0rem 0rem;
    padding-left: 7%;
    /* padding-right: 2%; */
    padding-bottom: 0rem;
    padding-top: calc(3em);
    background-color: var(--background-white);
    position: sticky;
    top: 0;
    z-index: 1;
    
}

#index #section-2{
    position: relative;
    margin-top: 0vh;

    /* min-height: 100vh; */

    display: flex;
    flex-direction: column;
    /* justify-content: space-evenly; */
    padding: 2rem 4rem;

    /* overflow:hidden; */
    border-radius: 3rem 3rem 0 0;
    box-shadow: 0 -24px 40px rgba(33,46,65,.18);
    z-index: 2;
    background: #f4f8ff;
}





/* ============================= */
/* Desktop-only tightened layout */
/* ============================= */

@media (max-width: 1400px) {
    #index #section-2 {

        overflow: hidden;
        display: flex;
        /* flex-direction: column; */
    }

}

/* ============================= */
/* Tablet / small laptop         */
/* ============================= */
@media (max-width: 1024px) {

    #index #section-1 {
        padding-top: 3rem;
        flex-direction: column;
        height: auto;
        min-height: auto;
        padding-bottom: 2rem;
        padding-left: 3rem;
        padding-right: 3rem;
    }

    /* Stack logo + text vertically instead of side-by-side */

    #index #logo_title {
        display:flex;
        padding-bottom: 2rem;
        align-self: center;
    }

    #index .text-column {
        gap: 1.8rem;
    }

    #index .title {
        text-align: center;
        justify-content: center;        
    }

    #index .title-separator {
        margin-right: 40%;
        margin-left: 40%;
    }

    #index .subtitle {
        text-align: center;
        justify-content: center;
    }

    /* Description no longer a narrow 27% column — full width under the title */
    #index .description {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    #index #title_image{
        width: 20rem;
        max-height:15rem;
        align-self: center;
        padding-top: 2%;
        padding-right: 0%;
        margin: 0%
    }
    #index .description span {
        align-self: center;
    }
    
    #index #section-2{
        padding: 3rem 1rem 1.5rem 1.5rem;
    }
    #index #title-2 {
        font-size: clamp(1.8rem, 3vw, 3rem);
    }
    #index .subtitle-2{
        margin-bottom: 1rem;
        margin-top: 1rem;
    }
    #index .cards {
        gap: 0rem;
    }
    #index .card {
        padding: 2rem 0rem 2rem 0rem; 
        margin: 0rem 2rem;
    }
    #index .card:first-child {
        padding-top: 0rem; 
    }
    #index .card:last-child {
        padding-bottom: 0rem; 
    }
    #index .card:not(:last-child){
        border-right:0px solid rgba(255,255,255,.15);
        border-bottom:2px solid rgba(255,255,255,.15);
    }
    #index .icon {
        width:3rem;
        height:3rem;
        margin-bottom:0rem;
    }
    #index h2{
        font-size: clamp(1.5rem, 2.5vw, 2.5rem);
        margin-top: .1rem;
    }
    #index .small-line{
        margin:.8rem auto .8rem;
        background:var(--blue-archi-light);
    }


}

/* ============================= */
/* Mobile (phones, landscape too)*/
/* ============================= */
@media (max-width: 768px) {

    #index .text-column {
        gap: 1.2rem;
    }




    #index .subtitle-2{
    }

    #index .card {
        margin: 0rem 0rem;
    }

}

/* ============================= */
/* Small phones                  */
/* ============================= */
@media (max-width: 480px) {
   #index #section-1 {
        padding-top: 3rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        flex-direction: column;
        gap: 1rem;
    }

    /* Stack logo + text vertically instead of side-by-side */

    #index #logo_title {
        display:flex;
        max-height: 5rem;
        padding-bottom: 2rem;
        align-self: center;
    }

    #index .text-column {
        gap: 1.2rem;
    }

    #index .title {
        text-align: center;
        justify-content: center;
    }

    #index .title-separator {
        border: none;
        border-top: 2px solid var(--blue-archi-light);
        margin-right: 40%;
        margin-left: 40%;

    }

    #index .subtitle {
        text-align: center;
        justify-content: center;
    }

    /* Description no longer a narrow 27% column — full width under the title */
    #index .description {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    #index #title_image{
        width: 100%;
        max-width: 20rem;
        max-height:20rem;
        align-self: center;
        padding-top: 2%;
        padding-right: 0%;
        margin: 0%
    }

    #index .description span {
        align-self: center;
    }

    

    #index #section-2{
        /* margin-top: -150vh; */
        padding: 3rem 1rem 1.5rem 1.5rem;
        min-height: 150vh;
    }

    #index #title-2 {
    }

    #index .subtitle-2{
        margin-bottom: 1rem;
        margin-top: 1rem;
    }

    #index .cards {
        gap: 0rem;
    }
    #index .card {
        padding: 2rem 0rem 2rem 0rem; 
    }
    .card:first-child {
        padding-top: 0rem; 
    }
    #index .card:last-child {
        padding-bottom: 0rem; 
    }

    #index .card:not(:last-child){
        border-right:0px solid rgba(255,255,255,.15);
        border-bottom:2px solid rgba(255,255,255,.15);
    }

    #index .icon {
        width:3rem;
        height:3rem;
        margin-bottom:0rem;
    }

    #index h2{
        margin-top: .1rem;
    }

    #index .small-line{
        margin:.8rem auto .8rem;
        background:var(--blue-archi-light);
    }

   

    

}
