/* In praxis.css */

/* -------------------------------------------------------------------------- */
/* --- 1. CSS VARIABLES                                                   --- */
/* -------------------------------------------------------------------------- */
:root {
    /* Layout Variables */
    --fixed-icon-spacing: 20px;
    --app-height: 100vh; /* JS-controlled viewport height */
    

    /* Font Face Variables */
    --font-family-primary: 'Inter', sans-serif;
    --font-family-secondary: 'Source Serif 4', serif;

    /* Color Variables */
    --color-black: #000000;
    --color-dark-grey: #333333;
    --color-link-hover: #6d7eb5;
    --color-link: #41496d;
    --color-pink: #b58686;
    --color-light-blue: #a8b3c1;
    --color-white: #ffffff;
    
    --color-overlay-background: rgba(50, 50, 50, 0.65);
    

}

/* -------------------------------------------------------------------------- */
/* --- 2. BASE & GLOBAL STYLES                                            --- */
/* -------------------------------------------------------------------------- */


/* Basic Reset and Body Styles */
body {

    margin: 0;

    font-family: var(--font-family-primary);
    color: var(--color-black);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    background: var(--color-white);

    background: -webkit-linear-gradient(
        to right,
        #d8d6d2,
        #C9D6E8
    );

    background: linear-gradient(
        to right,
        #d8d6d2,
        #C9D6E8
    );

    overflow-x: hidden;

    padding-top: 0;

}





/* -------------------------------------------------------------------------- */

/* --- TYPOGRAPHY SYSTEM                                                  --- */

/* -------------------------------------------------------------------------- */



h1,
h2,
h3,
h4,
h5,
p,
ul,
li,
a {
    margin: 0;
    padding: 0;
}

/* -------------------------------------------------------------------------- */

/* --- HEADINGS                                                           --- */

/* -------------------------------------------------------------------------- */

h1 {

    font-family: var(--font-family-secondary);

    font-size: clamp(3rem, 2.2rem + 2.8vw, 4.5rem);
    font-weight: 300;
    line-height: clamp(3rem, 1.5rem + 4.8vw, 4.7rem);

    text-align: center;

    color: var(--color-black);

    width: 100%;
    max-width: 22ch;

    margin-left: auto;
    margin-right: auto;

}

h2 {

    font-family: var(--font-family-primary);

    font-size: clamp(1.2rem, 0.7rem + 1vw, 1.6rem);
    font-weight: 300;
    line-height: clamp(1.5rem, 1.3rem + 1vw, 2rem);

    text-align: center;

    padding-top: clamp(0.2rem, 0.3rem + 0.5vw, 1rem);

    color: var(--color-black);

    width: 100%;
    max-width: 40ch;

    margin-left: auto;
    margin-right: auto;

}

h3 {

    font-family: var(--font-family-secondary);
    font-size: clamp(2.4rem, 1.7rem + 2.0vw, 2.8rem);
    font-weight: 300;
    line-height: clamp(2.4rem, 1.8rem + 2.8vw, 3.6rem);
    text-align: center;
    
    width: 100%;
    max-width: 40ch;
    margin-left: auto;
    margin-right: auto;
    

    
    color: var(--color-black);
}

h4 {
    font-family: var(--font-family-secondary);
    font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.1rem);
    font-weight: 300;
    line-height: clamp(2rem, 1.45rem + 2.2vw, 2.5rem);
    text-align: center;
    color: var(--color-black);

}

h5 {

    font-family: var(--font-family-secondary);
    font-size: clamp(1.3rem, 1rem + 1.3vw, 1.7rem);
    font-weight: 300;
    line-height: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
    text-align: center;
    color: var(--color-black);
    
        width: 100%;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;

}

/* -------------------------------------------------------------------------- */

/* --- BODY COPY                                                          --- */

/* -------------------------------------------------------------------------- */

.section-label {
    font-family: var(--font-family-secondary);
    font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem);
    font-weight: 300;
    line-height: clamp(1.4rem, 1.3rem + 1.2vw, 1.7rem);
    text-align: left;
    color: var(--color-black);

}

.section-sub-label {
    font-family: var(--font-family-secondary);
    font-size: clamp(1rem, 0.85rem + 0.6vw, 1.45rem);
    font-weight: 400;
    line-height: clamp(1.6rem, 1rem + 2.5vw, 2.5rem);
    text-align: left;
    color: var(--color-black);
}

.section-content {
    font-family: var(--font-family-primary);
    font-size: clamp(1rem, 0.92rem + 0.25vw, 1.15rem);
    font-weight: 300;
    line-height: clamp(1.2rem, .75rem + 1.6vw, 1.8rem);
    text-align: left;
    color: var(--color-black);

}

.section-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.section-content li {
    position: relative;
    padding-left: 0.9rem;
    margin-bottom: 0;
}

.section-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-black);
    opacity: 0.4;
    font-size: 0.75em;
}

.callout-number {

    font-family: var(--font-family-secondary);
    font-size: clamp(3rem, 2rem + 3.5vw, 5rem);
    font-weight: 300;
    line-height: clamp(2.8rem, 1.9rem + 4vw, 5.5rem);
    text-align: left;
    color: var(--color-black);
}

/* -------------------------------------------------------------------------- */

/* --- LINKS                                                              --- */

/* -------------------------------------------------------------------------- */

.section-content a {
    color: var(--color-link);
    font-size: clamp(.75rem, 0.92rem + 0.25vw, 1rem);
    line-height: clamp(1.3rem, 1rem + 2.0vw, 1.75rem);
    transition: color 0.2s ease;

}

.section-content a:hover {
    color: var(--color-link-hover);
    text-decoration: none;
}

/* -------------------------------------------------------------------------- */

/* --- components                                                         --- */

/* -------------------------------------------------------------------------- */

.vertical-snippet {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.vertical-snippet-divider {
    width: 1px;
    align-self: stretch;
    background-color: var(--color-black);
    flex-shrink: 0;
    
    margin-left: 2rem;
}

.vertical-snippet-content {
    display: flex;
    flex-direction: column;
    width: 100%;    
}

.vertical-snippet-content .section-label {
    margin-bottom: clamp(0.6rem, 0.4rem + 0.5vw, 1rem);
}


.horizontal-snippet {
    display: flex;
    flex-direction: column;
}

.horizontal-snippet .section-label {
    margin-bottom: clamp(0.35rem, 0.25rem + 0.35vw, 1rem);
}

.horizontal-snippet-divider {
    width: 100%;
    height: 1px;
    background-color: var(--color-black);
    margin-bottom: clamp(0.2rem, 0.15rem + 0.2vw, 0.7rem);
}

.horizontal-snippet .section-content {
    width: 100%;
}


.numbered-snippet {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
    width: 100%;
    padding-bottom: 3rem;
}

.numbered-snippet-number {
    font-family: var(--font-family-secondary);
    font-size: clamp(3rem, 2rem + 4vw, 6rem);
    font-weight: 300;
    line-height: 0.75;
    color: var(--color-black);
}



/* -------------------------------------------------------------------------- */

/* --- DIAGRAM IMAGE BLOCK                                                --- */

/* -------------------------------------------------------------------------- */

.diagram-block {
    width: 100%;
    margin: 0;
}

.diagram-block img {
    display: block;
    width: 100%;
    height: auto;
    
}

/* -------------------------------------------------------------------------- */

/* --- PAGE STRUCTURE                                                     --- */

/* -------------------------------------------------------------------------- */

.page-shell {
    width: 100%;
    min-height: 100vh;

}

.page-container {
    width: calc(100% - (clamp(2rem, 1rem + 3vw, 5rem) * 2));
    max-width: 1500px;
    
    min-height: 100vh;
    margin-left: auto;
    margin-right: auto;

}

/* -------------------------------------------------------------------------- */
/* --- VERTICAL SPACER                                                    --- */
/* -------------------------------------------------------------------------- */

.vertical-space-xs {
    height: clamp(0.5rem, 0.4rem + 0.4vw, 1rem);
}

.vertical-space-sm {
    height: clamp(2rem, .8rem + 2.5vw, 6rem);
}

.vertical-space-md {
    height: clamp(3rem, 2rem + 4vw, 10rem);
}

.vertical-space-lg {
    height: clamp(4rem, 3rem + 5vw, 12rem);
}

.vertical-space-xl {
    height: clamp(6rem, 5rem + 8vw, 16rem);
}

.content-divider {

    width: min(80%, 1200px);

    height: 1px;

    margin: 0 auto;

    background-color: var(--color-white);

}

/* -------------------------------------------------------------------------- */

/* --- containers                                                         --- */

/* -------------------------------------------------------------------------- */

.compressed-column {
    width: 100%;
    display: flex;
    justify-content: center;

}

.compressed-column-content {

    width: 100%;
    max-width: clamp(28rem, 42vw, 42rem);

}



/* -------------------------------------------------------------------------- */
/* --- FOOTER                                                             --- */
/* -------------------------------------------------------------------------- */

.footer {

    width: 100%;

}

.footer-divider {

    width: 100%;
    height: 1px;
    background-color: var(--color-white);

}

.footer-content {

    width: calc(100% - (clamp(2rem, 1rem + 3vw, 5rem) * 2));

    margin-left: auto;
    margin-right: auto;

    padding-top: clamp(1rem, 0.75rem + 1vw, 2rem);
    padding-bottom: clamp(1rem, 0.75rem + 1vw, 2rem);

}

.footer-statement {

    font-family: var(--font-family-secondary);
    font-size: clamp(1rem, 0.92rem + 0.25vw, 1.15rem);
    color: var(--color-black);

    margin-bottom: clamp(0.35rem, 0.3rem + 0.25vw, 0.75rem);

}

.footer-meta {

    font-family: var(--font-family-primary);
    font-size: clamp(0.75rem, 0.7rem + 0.15vw, 0.9rem);
    color: var(--color-black);

}

.footer-meta a {
    color: var(--color-link);
    transition: color 0.2s ease;
}

.footer-meta a:hover {
    color: var(--color-link-hover);
    text-decoration: none;

}


/* -------------------------------------------------------------------------- */
/* --- TWO COLUMN PANEL                                                   --- */
/* -------------------------------------------------------------------------- */

.two-column-panel {
    width: 100%;
    display: flex;
    justify-content: center;
}

.two-column-panel-content {
    width: 65%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: clamp(2rem, 2rem + 4vw, 8rem);
}

.two-column-panel-left,
.two-column-panel-right {
    width: 100%;
    min-width: 0;
}

@media (max-width: 900px) {
    .two-column-panel-content {
        width: 100%;
        grid-template-columns: 1fr;
        row-gap: clamp(1rem, 1rem + 1vw, 2rem);
    }

    .two-column-panel-left,
    .two-column-panel-right {
        width: min(100%, 32rem);
        justify-self: center;
    }
}


/* -------------------------------------------------------------------------- */

/* --- THREE COLUMN PANEL                                                 --- */

/* -------------------------------------------------------------------------- */

.three-column-panel {
    width: 100%;
    display: flex;
    justify-content: center;
}

.three-column-panel-content {
    width: 85%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: clamp(2rem, 2rem + 3vw, 6rem);
    row-gap: clamp(1rem, 1rem + 1vw, 2rem);
}

.three-column-panel-title {
    grid-column: 1 / -1;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    padding-bottom: clamp(1rem, 1rem + 1vw, 2rem);
}

.three-column-panel-item {
    width: 100%;
    min-width: 0;
}

/* 2 + centered 1 */

@media (max-width: 1100px) {

    .three-column-panel-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .three-column-panel-item:last-child {
        grid-column: 1 / -1;
        width: calc((100% - clamp(2rem, 2rem + 3vw, 6rem)) / 2);
        justify-self: center;
    }

}

/* 1 + 1 + 1 */

@media (max-width: 767px) {

    .three-column-panel-content {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .three-column-panel-item:last-child {
        grid-column: auto;
        width: 100%;
        justify-self: stretch;
    }

}


/* -------------------------------------------------------------------------- */
/* --- FOUR GRID PANEL                                                    --- */
/* -------------------------------------------------------------------------- */

.four-grid-panel {
    width: 100%;
}

.four-grid-panel-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: clamp(2rem, 2rem + 4vw, 8rem);
    row-gap: clamp(1rem, 1rem + 1vw, 2rem);
}

.four-grid-panel-item {
    width: 100%;
    min-width: 0;
}

@media (max-width: 900px) {
    .four-grid-panel-content {
        grid-template-columns: 1fr;
    }

    .four-grid-panel-item {
        width: min(100%, 32rem);
        justify-self: center;
    }
}

/* -------------------------------------------------------------------------- */

/* --- TWO BY TWO PANEL                                                    --- */

/* -------------------------------------------------------------------------- */

.two-by-two-panel {
    width: 100%;
    display: flex;
    justify-content: center;
}

.two-by-two-panel-content {
    width: 65%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: clamp(2rem, 2rem + 4vw, 8rem);
    row-gap: clamp(2.5rem, 2rem + 2vw, 5rem);
    transform: translateX(-1.25%);
}

.two-by-two-panel-item {
    width: 100%;
    min-width: 0;
}

@media (max-width: 900px) {

    .two-by-two-panel-content {
        width: 100%;
        grid-template-columns: 1fr;
        row-gap: clamp(1rem, 1rem + 1vw, 2rem);
    }

    .two-by-two-panel-item {
        width: min(100%, 32rem);
        justify-self: center;
    }

}

/* -------------------------------------------------------------------------- */
/* --- FULL WIDTH TWO COLUMN PANEL                                        --- */
/* -------------------------------------------------------------------------- */

.full-width-two-column-panel {
    width: 100%;
    display: flex;
    justify-content: center;
}

.full-width-two-column-panel-content {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: clamp(2rem, 2rem + 5vw, 10rem);
}

.full-width-two-column-panel-left,
.full-width-two-column-panel-right {
    width: 100%;
    min-width: 0;
}

.full-width-two-column-panel-right .vertical-snippet:nth-child(3),

.full-width-two-column-panel-right .vertical-snippet:nth-child(7) {
    transform: translateX(clamp(1.25rem, 2vw, 2.5rem));
}

.full-width-two-column-panel-left h2,
.full-width-two-column-panel-left h3 {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

@media (max-width: 900px) {
    .full-width-two-column-panel-content {
        width: 100%;
        grid-template-columns: 1fr;
        row-gap: clamp(1rem, 1rem + 1vw, 2rem);
    }

    .full-width-two-column-panel-left,
    .full-width-two-column-panel-right {
        width: min(100%, 32rem);
        justify-self: center;
    }
    
    .full-width-two-column-panel-right .vertical-snippet:nth-child(3),

    .full-width-two-column-panel-right .vertical-snippet:nth-child(7) {

        transform: none;

    }
}


/* -------------------------------------------------------------------------- */
/* --- HEADER & NAVIGATION                                                --- */
/* -------------------------------------------------------------------------- */

/* --- HEADER --- */
.header {

    display: flex;
    justify-content: flex-start;
    align-items: center;

    padding: 15px;

    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;

    z-index: 900;

    box-sizing: border-box;

    background: transparent;

    transition:
        background 0.4s ease,
        backdrop-filter 0.4s ease,
        -webkit-backdrop-filter 0.4s ease;

    overflow: hidden;

}

/* --- HEADER LOGO --- */
.header a {

    max-width: 50%;
    height: 100%;

    flex-shrink: 0;

    box-sizing: border-box;

}

/* --- HEADER BLUR STATE --- */
.homepage-index .header,
body.scrolled .header {

    background: linear-gradient(
        to right,
        rgba(216, 214, 210, 0.3),
        rgba(201, 214, 232, 0.3)
    );

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

}

/* --- OVERLAY --- */
.overlay {

    position: fixed;

    inset: 0;

    width: 100%;
    height: var(--app-height);

    background-color: var(--color-overlay-background);

    z-index: 1000;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.4s ease-in-out,
        visibility 0.4s ease-in-out;

}

.overlay.active {

    opacity: 1;
    visibility: visible;

}

/* --- OFF-CANVAS NAV MENU --- */
.nav-menu {

    position: fixed;

    top: 0;
    right: 0;

    width: min(72vw, 600px);
    height: var(--app-height);

    background-color: var(--color-dark-grey);

    opacity: 1;
    visibility: hidden;

    transform: translateX(100%);

    transition:
        transform 0.4s ease-in-out,
        visibility 0.4s ease-in-out;

    z-index: 1001;

    display: flex;
    flex-direction: column;

    padding: 20px;

    box-sizing: border-box;

    overflow-y: auto;

}

.nav-menu.active {

    transform: translateX(0);
    visibility: visible;

}

/* --- MENU TOGGLE ICONS --- */
.menu-toggle-icons {

    position: fixed;

    top: var(--fixed-icon-spacing);
    right: var(--fixed-icon-spacing);

    width: 30px;
    height: 30px;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;

    z-index: 1002;

}

.hamburger-icon {

    width: 20px;
    height: 14px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    opacity: 1;
    pointer-events: auto;

    position: relative;

    top: 0;
    left: 0;

    transform: none;

}

.hamburger-icon .bar {

    width: 100%;
    height: 2.5px;

    background-color: var(--color-black);

    border-radius: 2px;

    transition:
        transform 0.4s ease,
        opacity 0.4s ease,
        background-color 0.4s ease;

}

/* --- MENU ACTIVE ICON STATE --- */
body.menu-active .hamburger-icon .bar:nth-child(1) {

    transform: translateY(6px) rotate(45deg);
    background-color: var(--color-white) !important;

}

body.menu-active .hamburger-icon .bar:nth-child(2) {

    opacity: 0;

}

body.menu-active .hamburger-icon .bar:nth-child(3) {

    transform: translateY(-6px) rotate(-45deg);
    background-color: var(--color-white) !important;

}

body.menu-active .hamburger-icon .bar {

    background-color: var(--color-white) !important;

}


/* -------------------------------------------------------------------------- */
/* --- NAV MENU CONTENT                                                   --- */
/* -------------------------------------------------------------------------- */

.menu-table {

    width: 100%;
    border-collapse: collapse;

}

.menu-content-cell {

    padding-left: clamp(1rem, 1rem + 3vw, 4rem);
    padding-right: clamp(1rem, 1rem + 3vw, 4rem);

    padding-top: clamp(1.2rem, 1rem + 1vw, 2rem);
    padding-bottom: clamp(1.2rem, 1rem + 1vw, 2rem);

}

.menu-category-title-link {

    text-decoration: none;
    display: block;

}

.menu-category-title {
    font-family: var(--font-family-secondary);
    font-size: clamp(1rem, 1rem + 1.5vw, 2rem);
    font-weight: 100;
    line-height: 1;
    text-align: left;
    color: var(--color-light-blue);
    transition:
        color 0.25s ease,
        transform 0.25s ease;

}

.menu-category-title-link:hover .menu-category-title {
    color: var(--color-white);
    transform: translateX(0.2rem);
}

.menu-category-row.active-page-hardcoded .menu-category-title {
    color: var(--color-white);
}


/* ---------------------------------------------------------- */
/* --- A. SMALL SCREENS (MAX 767px) - MOBILE FIRST FIXES  --- */
/* ---------------------------------------------------------- */
@media (max-width: 767px) {
    
    .overlay {
        top: 0;
        height: 100vh;
    }
 
    /* CRITICAL FIX: Add top padding/margin to the first navigation item on mobile */
    .menu-table .menu-category-row:first-child .menu-content-cell {
        /* Use padding-top to push the content down within the cell */
        padding-top: 50px; 
    }
     
}


