/* In claxton.css */

/* -------------------------------------------------------------------------- */
/* --- 1. CSS VARIABLES                                                   --- */
/* -------------------------------------------------------------------------- */
:root {
    /* Layout Variables */
    --header-height: 64px;
    --main-horizontal-padding: clamp(20px, 3vw, 40px);
    --fixed-icon-spacing: 20px;
    --black-bar-width: clamp(10px, 4vw, 30px);
    --app-height: 100vh; /* JS-controlled viewport height */

    /* Font Face Variables */
    --font-family-primary: 'Inter', sans-serif;
    --font-family-secondary: 'maitree', serif;
    --font-family-third: 'maitree', serif;

    /* Color Variables */
    --color-white: #ffffff;
    --color-almost-black: #252525;
    --color-black: #000000;
    
    --color-dark-grey: #333333;
    --color-grey: #666666;
    --color-xlight-grey: #e2e5ec;
    --color-lighter-grey: #aaaaaa;
    
    --color-blue: #597e94;
    --color-overlay-background: rgba(0, 0, 0, 0.5);
    --color-pink: #b58686;
    
    --color-greenborder: #dde3d3;
    
    
    --color-weathered-grey: #677179;

    --color-top-light-green: #2a9d8f;
    --color-top-mustard: #c1a65c;
    --color-top-mustard-bk: #e9c46a;
    --color-top-orange: #f4a261;
    --color-top-redorange: #cc7a6f;
    --color-top-peach: #e76f51;
    --color-top-muted-blue: #508b8b;
    --color-light-green: #ecf2e1;
    --color-light-greenBK: #d1d5c0;
    
    --color-top-blue: #6A7E91;
    --color-top-green: #6c724d;
    --color-top-tan: #bd9662;
    --color-top-brown: #A67862;
    --color-top-grey-green: #a9b7a9;
}

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

/* Basic Reset and Body Styles */
body {
    margin: 0;
    font-family: var(--font-family-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-white);
    overflow-x: hidden;
    padding-top: 0; /* Full-bleed hero start */
}

/* Z-Index Starting Points */
.nav-menu { z-index: 999; }
.overlay { z-index: 998; }
.header { z-index: 997; }

/* Adjustable vertical spacer */
.v-space {
    padding-bottom: 10%;
    width: 100%;
}

/* --- MAIN CONTENT CONTAINER STYLES --- */
.content-container {
    width: clamp(80%, 100vw, 95%);
    margin: 0 auto;
    box-sizing: border-box;
    margin-top: 40px;
    margin-bottom: 40px;
    font-family: var(--font-family-secondary);
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    /* font-size, font-weight, color, line-height are inherited */
    color: var(--color-grey);
}
.content-container p {
    margin-bottom: 1em;
}


/* -------------------------------------------------------------------------- */
/* --- 3. HEADER & NAVIGATION (FIXED ELEMENTS)                            --- */
/* -------------------------------------------------------------------------- */

/* Header Styling (Now full-width, fixed) */
.header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 25px;
    background-color: transparent; /* Initially transparent for full-bleed hero */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100vw; 
    z-index: 997;
    box-sizing: border-box; 
    transition: background-color 0.4s ease; 
    overflow: hidden; 
}

/* --- LOGO STYLES --- */
.header a {
    max-width: 50%; 
    height: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}
.header img {
    transition: filter 0.4s ease;
    height: calc(var(--header-height) * 0.35);
    width: auto;
}
.logo {
    font-weight: 700;
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--color-dark-grey);
    transition: color 0.4s ease;
}

/* --- SCROLLED STATE (BACKGROUND + BLUR) --- */
body.scrolled .header {
    background-color: rgba(255, 255, 255, 0.5); 
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* --- 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; /* HIGHEST Z-INDEX */
}
.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-almost-black);
    border-radius: 2px;
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease;
}

/* --- OFF-CANVAS NAV MENU --- */
.nav-menu {
    position: fixed;
    top: 0; 
    right: 0; 
    width: 100%; 
    max-width: 450px; 
    height: 100vh; 
    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: 999; 
    display: flex;
    flex-direction: column;
    padding: 20px; 
    padding-top: 20px; 
    box-sizing: border-box;
    overflow-y: auto;
}
.nav-menu.active {
    transform: translateX(0);
    visibility: visible;
}

/* --- OVERLAY STYLES --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--app-height);
    background-color: var(--color-overlay-background);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}
.overlay.active {
    opacity: 1; 
    visibility: visible;
}

/* --- HOMEPAGE SPECIFIC: Force Blur/Background on Load --- */
.homepage-index .header {
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


/* -------------------------------------------------------------------------- */
/* --- 4. NAV MENU CONTENT STYLES                                         --- */
/* -------------------------------------------------------------------------- */

.menu-table {
    width: 100%;
    border-collapse: collapse; 
    margin: 0; 
    padding: 0; 
}
.menu-category-row td,
.menu-sub-menu-row td {
    padding: 0; 
    vertical-align: middle; 
}
.menu-content-cell {
    padding-left: clamp(10px, 3vw, 30px); 
    padding-bottom: 25px; 
    vertical-align: middle; 
}
.menu-category-title-link {
    text-decoration: none;
    display: block; 
    padding: 20px 0 20px clamp(10px, 3vw, 60px); 
    margin: 0; 
}
.menu-category-title {
    color: var(--color-pink);
    transition: color 0.3s ease;
    margin: 0; 
    font-size: 1.8rem;
    font-weight: 200;
    line-height: 2rem;
}
.menu-category-title-link:hover .menu-category-title {
    color: var(--color-white); 
    text-decoration: none;
}

/* --- HARDCODED ACTIVE STATE --- */
.menu-category-row.active-page-hardcoded {
    position: relative;
}
.menu-category-row.active-page-hardcoded .menu-category-title {
    color: var(--color-white) !important; 
    cursor: default; 
    padding: 20px 0 20px clamp(10px, 3vw, 60px);
    pointer-events: none;
    text-decoration: none; 
}
.menu-category-row.active-page-hardcoded .menu-content-cell::before {
    content: none; /* Removed the dash */
    color: var(--color-lighter-grey); 
    font-weight: 700;
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
}


/* -------------------------------------------------------------------------- */
/* --- HOMEPAGE GRID STRUCTURE & TYPOGRAPHY (FINAL CORRECTED)             --- */
/* -------------------------------------------------------------------------- */

/* *** 1. HOMEPAGE CONTENT WRAPPER (The new 75% constraint on desktop) *** */
/* Global setting: Ensure it takes full available width, constraint is in MQ */
.homepage-content-wrapper {
    width: 100%; 
    margin: 0 auto;
}

/* Base constraint cleanup */
.homepage-index .content-container {
    margin: 0 auto; 
    padding: 0; 
}


/* Ensure the padding from the content container doesn't break the grid alignment */
.homepage-index .homepage-grid-row {
    padding-left: 0;
    padding-right: 0;
    padding-top: 100px;
    padding-bottom: 100px;
}


/* Row Container: Establishes the Flex context for the two columns */
.homepage-grid-row {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    margin-bottom: 0rem; 
    padding-top: 25px; /* Use 25px default padding set in previous steps */
    padding-bottom: 25px;
}


/* Push the entire grid down from the header */
.homepage-grid-row.intro-row {
    padding-top: 150px; 
}

/* Left Column: Text Lead-in */
.homepage-lead-in-text {
    flex: 0 0 33%;
    max-width: 33%;
    box-sizing: border-box;
    
    /* TYPOGRAPHY & ALIGNMENT */
    font-family: var(--font-family-secondary);
    color: var(--color-almost-black);
    font-weight: 300;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem); 
    line-height: 1.2;
    text-align: right;
    display: block; 
    font-style: italic;
    padding-right: 20px;
    
}

/* Right Column: Content */
.homepage-content-col {
    flex: 1 1 60%;
    max-width: 65%;
    box-sizing: border-box;
}



/* --- HOMEPAGE INTERACTION HINT WAVE --- */

.homepage-index .main-content-block {
    position: relative;
    overflow: hidden;
}

.homepage-index .main-content-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
}

@keyframes homepageRowHintOverlay {
    0% {
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    45% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

body.homepage-index.pulse-ready #row-1-link .main-content-block::before,
body.homepage-index.pulse-ready #row-2-link .main-content-block::before,
body.homepage-index.pulse-ready #row-3-link .main-content-block::before,
body.homepage-index.pulse-ready #row-4-link .main-content-block::before,
body.homepage-index.pulse-ready #row-5-link .main-content-block::before 
{
    animation: homepageRowHintOverlay 0.9s ease-out;
}

body.homepage-index.pulse-ready #row-1-link .main-content-block::before { animation-delay: 0s; }
body.homepage-index.pulse-ready #row-2-link .main-content-block::before { animation-delay: 0.18s; }
body.homepage-index.pulse-ready #row-3-link .main-content-block::before { animation-delay: 0.36s; }
body.homepage-index.pulse-ready #row-4-link .main-content-block::before { animation-delay: 0.54s; }
body.homepage-index.pulse-ready #row-5-link .main-content-block::before { animation-delay: 0.72s; }

/* optional: subtly brighten the left bar too */
body.homepage-index.pulse-ready #row-1-link,
body.homepage-index.pulse-ready #row-2-link,
body.homepage-index.pulse-ready #row-3-link,
body.homepage-index.pulse-ready #row-4-link,
body.homepage-index.pulse-ready #row-5-link {
    position: relative;
}

body.homepage-index.pulse-ready #row-1-link,
body.homepage-index.pulse-ready #row-2-link,
body.homepage-index.pulse-ready #row-3-link,
body.homepage-index.pulse-ready #row-4-link,
body.homepage-index.pulse-ready #row-5-link {
    z-index: 1;
}

/* animate the wrapper bar via the row wrapper */
body.homepage-index.pulse-ready .content-row-cell-wrapper:nth-of-type(1) .narrow-color-block,
body.homepage-index.pulse-ready .content-row-cell-wrapper:nth-of-type(2) .narrow-color-block,
body.homepage-index.pulse-ready .content-row-cell-wrapper:nth-of-type(3) .narrow-color-block,
body.homepage-index.pulse-ready .content-row-cell-wrapper:nth-of-type(4) .narrow-color-block,
body.homepage-index.pulse-ready .content-row-cell-wrapper:nth-of-type(5) .narrow-color-block {
    animation: homepageBarHint 1.4s ease;
        animation-fill-mode: none;

}

body.homepage-index.pulse-ready .content-row-cell-wrapper:nth-of-type(1) .narrow-color-block { animation-delay: 0s; }
body.homepage-index.pulse-ready .content-row-cell-wrapper:nth-of-type(2) .narrow-color-block { animation-delay: 0.14s; }
body.homepage-index.pulse-ready .content-row-cell-wrapper:nth-of-type(3) .narrow-color-block { animation-delay: 0.28s; }
body.homepage-index.pulse-ready .content-row-cell-wrapper:nth-of-type(4) .narrow-color-block { animation-delay: 0.42s; }
body.homepage-index.pulse-ready .content-row-cell-wrapper:nth-of-type(5) .narrow-color-block { animation-delay: 0.56s; }









/* FULL-WIDTH COLORED DIV (Row 2 Wrapper) */
.full-width-colored-div {
    width: 100vw;
    margin-left: calc(50% - 50vw); 
    box-sizing: border-box;
    padding-left: 0; 
    padding-right: 0; 
}

/* Ensure the inner grid row content is constrained */
/* NOTE: The 75% width is applied to the parent .homepage-content-wrapper in the MQ */
.full-width-colored-div .homepage-grid-row {
    margin: 0 auto;
}

/* The new Results Row container */
.results-wrapper {
    background-color: var(--color-xlight-grey); /* Uses the #d1d5c0
    
    /* Adding the 1px solid to top and bottom */
    /* border-top: 1px solid var(--color-greenborder); */
    /* border-bottom: 1px solid var(--color-white);*/
}

/* RESULTS LIST STYLING */

/* RESULTS LIST - Aligned to intro row bars */
.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.results-list li {
    /* Vertical spacing only - removed left/right padding to align with bars */
    padding-top: 5px; 
    padding-bottom: 5px;
    padding-left: 0; 
    padding-right: 0; 

    /* TYPOGRAPHY */
    font-family: var(--font-family-secondary);
    font-size: clamp(.9rem, 1.8vw, 1.1rem); 
    font-weight: 300;
    line-height: 1.4;
    
    color: var(--color-dark-grey);
    display: flex;
    align-items: flex-start;
}


.results-list li::before {
    content: "";
    width: 3px;
    height: 3px;
    background-color: var(--color-top-blue);
    border-radius: 50%;
    
    /* Spacing between dot and text */
    margin-right: 15px;
    margin-top: 0.5em; 
    flex-shrink: 0;
}

/* The existing Logos container (Adding it now so it's searchable!) */
.logos-wrapper {
    background-color: var(--color-xlight-grey); /* Or whatever your desired logo row color is */
}


/* -------------------------------------------------------------------------- */
/* --- HOMEPAGE CONTENT ROW STRUCTURE (INTERACTIVE STYLING - FINAL LOGIC) --- */
/* -------------------------------------------------------------------------- */

/* A. Overall Wrapper (The hover trigger and variable holder) */
.content-row-cell-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin-bottom: 12px; 
    transition: color 0.3s ease;
    
    /* CRITICAL FIX: Up state text color for all children is BLACK */
    color: var(--color-almost-black); 
}

/* B. The Link (Only wraps the text block) */
.content-row-link {
    display: block; 
    text-decoration: none; 
    transition: color 0.3s ease;
    flex-grow: 1;
    
    /* Inherit default text color from parent wrapper (black) */
    color: inherit; 
}

/* C. Narrow Color Block (Left Cell) */
.narrow-color-block {
    flex: 0 0 3px; 
    height: auto; 
    transition: background-color 0.3s ease;
    
    /* Up state color is the variable passed via inline style */
    background-color: var(--page-hero-color); 
}

/* D. Main Content Block (Right Cell) */
.main-content-block {
    padding-top: 5px; 
    padding-bottom: 5px;
    
    
    /* *** CRITICAL CHANGE: Add padding-left for text indentation *** */
    padding-left: 10px; /* Adjust this value (e.g., 10px, 15px) for desired indentation */
    padding-right: 10px; /* Adjust this value (e.g., 10px, 15px) for desired indentation */

    /* TYPOGRAPHY */
    font-family: var(--font-family-secondary);
    font-size: clamp(.9rem, 1.8vw, 1.1rem); 
    font-weight: 300;
    line-height: 1.4;
    transition: all 0.3s ease;
    
    /* CRITICAL FIX: Up state background is transparent/white (default) */
    background-color: transparent; 
    
    /* Ensure text color is inherited from parent (which is BLACK in up state) */
    color: inherit; 
}


/* E. INTERACTIVE HOVER EFFECTS */



    /* 2. Content Block Hover: Background fills with the variable color */
    .content-row-cell-wrapper:hover .main-content-block {
    /* Hover state: Content background color becomes the variable color */
    background-color: var(--page-hero-color);
    
    /* CRITICAL FIX: EXPLICITLY set the text color to white immediately */
    color: var(--color-white);
}

/* -------------------------------------------------------------------------- */
/* --- 5. HERO SECTION STYLES                                             --- */
/* -------------------------------------------------------------------------- */

/* --- FULL-BLEED COLOR PANEL --- */
.hero-solid-background {
    /* Height adjusted for desktop in media query below */
    height: 85vh; /* Desktop/Base Height */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    position: relative;
    box-sizing: border-box;
    background-color: var(--page-hero-color, var(--color-pink));
    display: block; 
    margin-bottom: 0px; 
    padding-bottom: 0; 
}

/* --- TEXT WRAPPER (STACKING LOGIC) --- */
.hero-text-wrapper {
    position: absolute;
    bottom: 0;
    padding-left: var(--main-horizontal-padding); 
    padding-bottom: var(--main-horizontal-padding);
    width: 100%; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* --- PRIMARY TEXT --- */
.hero-overlap-text {
    position: static; 
    left: 0;
    bottom: 0;
    margin-bottom: 0.1em; 
    font-family: var(--font-family-primary);
    font-weight: 600; 
    font-size: clamp(2rem, 8.0vw, 11rem); 
    line-height: 1.0; 
    color: var(--color-white);
    white-space: normal; 
    margin: 0;
    padding: 0;
    z-index: 10;
}

/* --- SECONDARY TEXT --- */
.hero-sub-text {
    position: static; 
    font-family: var(--font-family-primary);
    font-weight: 200; 
    font-size: clamp(1.8rem, 4.5vw, 4.6rem); 
    line-height: 1.0; 
    color: var(--color-white); 
    margin: 0;
    padding: 0;
    z-index: 10;
}

/* -------------------------------------------------------------------------- */
/* --- 6. INTRO & CONTENT BLOCK STYLES (NON-GRID)                         --- */
/* -------------------------------------------------------------------------- */

/* --- NEW FULL-WIDTH INTRO BLOCK (Secondary Font) --- */
.intro-full-width-block {
    /* 1. Layout & Constraint: Make text lock narrower */
    width: 70%; /* Changed from 75% to 65% */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    font-family: var(--font-family-secondary);
    font-weight: 400; 
    color: var(--color-weathered-grey);
    
    /* 2. Typography: Make font slightly larger */
    /* Increased the minimum, preferred, and maximum sizes */
    font-size: clamp(1.3rem, 2.3vw, 2.6rem); 
    line-height: 2.2; /* Reduced from 2.8 for better line density */
    
    /* 3. Adjustable Vertical Padding */
    padding-top: 6rem;
    padding-bottom: 8rem; 
    text-align: left;
}

/* --- FULL WIDTH SECTION TEXT (Centered) --- */
.full-width-section-text {
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-family-secondary);
    font-size: 2em;
    color: var(--color-dark-grey);
    font-weight: 400;
    margin-top: 100px;
    margin-bottom: clamp(20px, 4vw, 37.5px);
    text-align: center;
}

/* --- TWO-THIRDS CONTENT (BODY COPY) --- */
.two-thirds-content {
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    /* font-size, font-weight, color, line-height are inherited */
    color: var(--color-grey);
    
    
    
    margin-top: 0; 
    margin-bottom: 1em;
    
    /* 1. Revert width to allow margin adjustments */
    width: 90%; /* Revert back to original/default width */
    
    /* 2. Alignment: Left align the block */
    margin-right: auto; 
    
    /* 3. CRITICAL: Adjust margin-left to align the content line */
    /* This value is likely the difference between the grid's 5% padding and the intro block's auto margin. 
       Let's use a safe pixel value like 150px to start, as it's easier to fine-tune. */
    margin-left: 60px; 
    
    /* 4. Remove padding-right from the last attempt */
    padding-right: 0; 
    
    /* Line Height */
    line-height: 2;
    text-align: left; 
    
}

.styled-list {
    /* TYPOGRAPHY */
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    font-family: var(--font-family-secondary);
    color: var(--color-grey);

    /* LAYOUT */
    width: 90%; 
    margin-left: 70px; 
    margin-right: auto; 
    margin-top: 1em;
    margin-bottom: 1.5em;
    
    /* RESET DEFAULT LIST STYLE */
    list-style-type: none; /* Remove default browser bullet */
    padding-left: 0; /* Handled by pseudo-element alignment */
}

.styled-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8em; /* Clean spacing between list items */
}

.styled-list li::before {
    /* THE DOT */
    content: "";
    width: 4px;
    height: 4px;
    background-color: var(--color-grey);
    border-radius: 50%;
    
    /* ALIGNMENT */
    margin-right: 15px;
    margin-top: 0.8em; /* Adjusts for slightly larger 1.2rem font */
    flex-shrink: 0;
}

.content-container p a, 
.full-width-content-text a,
.two-thirds-content a { 
    color: var(--color-blue); 
}


.CURATED {
  font-family: var(--font-family-secondary);
  font-size: 1.2em;
  font-weight: 400;
  color: var(--color-lighter-grey);
  line-height: 1.0;
  margin-top: 0rem;
    padding-bottom: 0px;
}

/* -------------------------------------------------------------------------- */
/* --- 7. GRID & COLUMN STYLES                                            --- */
/* -------------------------------------------------------------------------- */

/* --- TWO-THIRDS/ONE-THIRD GRID --- */
.two-thirds-one-third-grid {
    padding: 0 5%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap; 
    margin-bottom: 40px; 
    justify-content: space-between; 
}
.two-thirds-column {
    flex: 1 1 100%; /* Default to full width on mobile */
}
.one-third-column {
    flex: 1 1 100%; /* Default to full width on mobile */
    /* *** CRITICAL FIX: Add Flexbox to stack snippets vertically *** */
    display: flex; 
    flex-direction: column; 
    gap: 30px; /* Restores the vertical gap between snippets */
    padding-left: 0;
    padding-right: 0;
}

/* --- HEADINGS (TWO-THIRDS COLUMN) --- */
.two-thirds-h1 {
    font-size: clamp(1.5rem, 10vw, 4.2rem);
    font-family: var(--font-family-primary);
    font-weight: 200;
    line-height: 1.2;
    color: var(--color-black);
    margin-top: 0px;
    margin-bottom: .4em;
}
.two-thirds-h2 {
    font-size: clamp(.5rem, 6vw, 2.5rem);
    font-family: var(--font-family-primary);

    /* *** ADD THIS NEW RULE: Allow the heading to use the available space *** */
    width: auto; 
    max-width: 100%; /* Ensure it does not exceed the column width */
    
    margin-left: 60px;
    font-weight: 100;
    line-height: 1.2;
    color: var(--color-black);
    margin-top: 0px;
    margin-bottom: .4em;
}


/* --- IMAGES & SNIPPETS --- */
.two-thirds-full-width-image {
    width: calc(100% + var(--main-horizontal-padding) + 5% + 20px);
    margin-left: calc(-1 * var(--main-horizontal-padding) - 5% - 12px);
    display: block;
    height: auto;
    margin-bottom: 2em; 
    border: 1px solid #cccccc; 
}

/* --- SNIPPETS STYLES SPECIFICALLY FOR THE ONE-THIRD COLUMN --- */
.one-third-column .snippet-tagline {
    font-size: 0.9rem; 
    font-weight: 400;
}
.one-third-column .snippet-title {
    font-size: 1.2rem;
    font-weight: 400;
      transition: text-decoration 0.2s ease;

}
.one-third-column .snippet-content {
    font-size: 0.9rem; 
    color: var(--color-top-grey);

}

/* -------------------------------------------------------------------------- */
/* --- 7.5 SNIPPETS GRID & CARD STYLES (GENERAL)                          --- */
/* -------------------------------------------------------------------------- */

.snippets-grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;                
  align-items: flex-start;
  justify-content: left;
  margin-bottom: 60px;
}

/* Only direct children become flex items with a fixed card width */
.snippets-grid-container > .content-snippet,
.snippets-grid-container > .snippet-link {
  flex: 0 0 275px;
  max-width: 275px;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
  display: block;           
}

.content-snippet .snippet-title {
    font-weight: 300;
    font-size: 1.2rem;
    margin-bottom: 1.0rem;
    line-height: 1.6rem;
}

.content-snippet .snippet-content {
    font-size: 0.9rem;
    margin-bottom: .5rem;
}

.content-snippet .snippet-tagline {
    font-size: 0.9rem;
    line-height: 1.4rem;
}


a.content-snippet,
a.snippet-link {
  cursor: pointer;   
  color: inherit;
  text-decoration: none;
}

a.content-snippet * ,
a.snippet-link * {
  text-decoration: none;
  box-sizing: border-box;
}

a.content-snippet:focus-visible,
a.snippet-link:focus-visible {
  outline: 2px solid #cccccc;
  outline-offset: 4px;
}

/* Inner elements (spacing + typography) */
.snippet-bar {
  height: 2px;
  width: 100%;
  background-color: var(--color-black);
  margin: 0 0 8px 0;
}

/* Reset native margins */
.content-snippet h3,
.content-snippet p {
  margin: 0;
}

/* Title */
.snippet-title {
  font-family: var(--font-family-primary);
  font-size: 1.4em;
  font-weight: 700;
  color: var(--color-blue);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  transition: text-decoration 0.2s ease;
  overflow-wrap: anywhere;
}

/* Only underline title on hover/focus */
a.content-snippet:hover .snippet-title,
a.content-snippet:focus-visible .snippet-title,
a.snippet-link:hover .snippet-title,
a.snippet-link:focus-visible .snippet-title {
  text-decoration: underline;
}

/* Body copy */
.snippet-content {
  font-weight: 400;
  color: var(--color-black);
  margin-top: 0.5rem;
}

/* Tagline */
.snippet-tagline {
  font-family: var(--font-family-secondary);
  font-size: 0.9em;
  font-weight: 400;
  color: var(--color-lighter-grey);
  line-height: 1.6;
  margin-top: 0.5rem;
    padding-bottom: 20px;
}

/* -------------------------------------------------------------------------- */
/* --- 7.6 HOMEPAGE TESTIMONIAL / BIO CARD STYLES                         --- */
/* -------------------------------------------------------------------------- */

/* A. Main Card Container (Overrides general .content-snippet) */
.content-snippet.bio-card {
    /* Inherits flex-basis: 275px and max-width: 275px from general snippets */
    display: flex;
    flex-direction: column;
    
    /* *** CRITICAL CHANGES: REMOVE visual styling and padding *** */
    padding: 0px; /* REMOVED padding */
    background-color: var(--color-white); 
    border: none; /* REMOVED border */
    box-shadow: none; /* REMOVED box-shadow/shading */
}


/* BIOS GRID */

#bios-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

/* B. Headshot Image */
.bio-image {
    width: 100%; /* Image fills the container width */
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
}

/* C. Name Typography */
.bio-name {
    font-family: var(--font-family-primary);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-dark-grey);
    line-height: 1.2;
    margin-bottom: 5px;
}

/* D. Job Title Typography */
.bio-job-title {
    font-family: var(--font-family-primary);
    font-size: .9rem;
    font-weight: 600;
    color: var(--color-top-brown);
    line-height: 1.3;
    margin-bottom: 10px; /* Space between title and content */
}

.bio-job-title-light {
    font-family: var(--font-family-primary);
    font-size: .7rem;
    font-weight: 300;
    color: var(--color-top-brown);
    line-height: 1.3;
    font-style: italic;
    margin-bottom: 10px; /* Space between title and content */
}

/* E. Testimonial Content Typography */
.bio-content {
    font-family: var(--font-family-secondary);
    font-size: .9rem;
    font-weight: 300;
    color: var(--color-dark-grey);
    line-height: 1.6;
    margin-top: auto; /* Pushes content to the bottom of the card if space allows */
}


/* -------------------------------------------------------------------------- */
/* --- 8. FOOTER STYLES                                                   --- */
/* -------------------------------------------------------------------------- */

.footer {
    background-color: var(--color-black);
    color: var(--color-white); 
    padding-top: 3px; 
    padding-bottom: 5px; 
    box-sizing: border-box; 
}
.footer-content-wrapper {
    padding-left: var(--main-horizontal-padding);
    padding-right: var(--main-horizontal-padding);
    font-family: var(--font-family-secondary); 
}
.footer-name {
    font-family: var(--font-family-primary);
    color: var(--color-pink);
    font-weight: 600; 
    font-size: 1.1rem;
    margin-bottom: .8rem; 
    display: block; 
}
.footer-tagline {
    font-family: var(--font-family-secondary);
    color: var(--color-white);
    font-weight: 200; 
    font-size: .9rem;
    margin-bottom: .5rem; 
    display: block; 
}
.footer-link a {
    color: var(--color-blue); 
    text-decoration: none;
    font-size: .9rem;
    transition: text-decoration 0.3s ease;
}
.footer-link a:hover {
    color: var(--color-white); 
    text-decoration: underline;
}
.footer-copyright {
    font-size: 0.7em; 
    opacity: 0.8; 
    color: var(--color-xlight-grey);
    margin-top: 2em; 
}







/* -------------------------------------------------------------------------- */
/* --- 9. MEDIA QUERIES (CONSOLIDATED)                                    --- */
/* -------------------------------------------------------------------------- */

/* ---------------------------------------------------------- */
/* --- A. SMALL SCREENS (MAX 767px) - MOBILE FIRST FIXES  --- */
/* ---------------------------------------------------------- */
@media (max-width: 767px) {
    
    /* NAV & HEADER OVERRIDES */
    .nav-menu {
        max-height: calc(100vh - 40px);
    }
    body.menu-active .header img {
        filter: brightness(0) saturate(100%) invert(82%) sepia(9%) saturate(22%) hue-rotate(348deg) brightness(106%) contrast(95%);
    }
    body.menu-active .header {
        background-color: var(--color-dark-grey);
        z-index: 1001; 
        opacity: 1;
    }
    .overlay {
        top: 0;
        height: 100vh;
    }

    /* CONTENT LAYOUT ADJUSTMENTS */
    .content-container {
        padding-left: var(--main-horizontal-padding);
        padding-right: var(--main-horizontal-padding);
    }
    .fixed-width-block-number {
        font-size: 3em;
        font-weight: 400;
        position: relative;
        left: 0;
    }
    .content-snippet {
        width: 100%;
        flex-basis: 100%;
        flex-grow: 1;
        max-width: 100%;
    }
    .snippets-grid-container {
        gap: 20px;
        margin-bottom: 50px;
    }
    
    /* OVERRIDE: Make the intro block wider on small mobile screens */
    .intro-full-width-block {
        width: 85%; 
        font-weight: 400;
        padding-top: 7rem;
        padding-bottom: 7rem;
        
    }
    
    
    .two-thirds-content {
        font-size: 1rem;
        letter-spacing: 0.02em;

        color: var(--color-dark-grey);
    
        margin-top: 0; 
        margin-bottom: 1em;
    
        /* 1. Revert width to allow margin adjustments */
        width: 90%; /* Revert back to original/default width */
    
        /* 2. Alignment: Left align the block */
      
        margin-left: 0px; 
    
    /* 4. Remove padding-right from the last attempt */
        padding-right: 0; 
    
    /* Line Height */
        line-height: 1.8;
        text-align: left; 
    }
    
    .styled-list {
        font-size: 1rem;
        letter-spacing: 0.02em;
    /* font-size, font-weight, color, line-height are inherited */
                color: var(--color-dark-grey);

    
    /* LAYOUT: Re-add necessary width and alignment */
        width: 90%; /* MUST match the parent's width */
        margin-left: 0px; /* MUST match the parent's alignment margin */
        margin-right: auto; /* Required for margin-left to function correctly */
    
    /* Keep list-specific properties and vertical margins/padding */
        margin-top: 1em;
        margin-bottom: 1.5em;
        padding-left: 25px; /* Necessary for list indentation */
    
        list-style-type: disc;
    }
    
    .two-thirds-h2 {
        margin-left: 0px;
        font-weight: 100;
        letter-spacing: 0.02em;
        font-size: 2.3rem;


    }
    
    
    .styled-list strong {
        font-weight: 700;
        color: var(--color-black);
    }

    
    
    
    /* New Homepage stuff */

/* CRITICAL FIX: Reduce the horizontal padding variable ONLY for the homepage on mobile */
    .homepage-index {
        --main-horizontal-padding: 20px;
        margin-bottom: 0rem; 
        align-content: center

    }

    .homepage-grid-row {
        flex-direction: column; 
        margin-bottom: 0rem; 
        /* This padding now correctly uses the 20px variable */
        padding: 0 var(--main-horizontal-padding); 
    }

/* 2A. HOMEPAGE LEAD-IN TEXT (MOBILE STRUCTURE) */
    .homepage-lead-in-text {
        /* CRITICAL FIX: Reset flex properties to ensure 100% column stacking */
        flex: 0 0 100% !important; 
        max-width: 100% !important; 
    
        /* CRITICAL FIX: Re-apply 90% constraint and center it */
        width: 90% !important; 
        margin: 0 auto 20px auto !important; 
    
        /* Ensure the text is left aligned */
        text-align: left !important; 
    
        padding-right: 0 !important; 
        padding-bottom: 20px;
        box-sizing: border-box !important;
    }

/* 2B. HOMEPAGE CONTENT COLUMN (MOBILE STRUCTURE) */
    .homepage-content-col {
        /* CRITICAL FIX: Reset flex properties to ensure 100% column stacking */
        flex: 0 0 100% !important; 
        max-width: 100% !important; 
    
        /* CRITICAL FIX: Re-apply 90% constraint and center it */
        width: 90% !important; 
        margin: 0 auto !important; 
    
        /* The content inside is left-aligned */
        text-align: left !important;
    
        padding-right: 0 !important; 
        box-sizing: border-box !important;
    }

    /* NEW HOMEPAGE OVERRIDE: Desktop constraint for Row 2 */
    .full-width-colored-div .homepage-grid-row {
        /* Set width and center the block */
        width: 95%; 
        margin: 0 auto;
    
        /* CRITICAL FIX: Change justification to fix missing right padding. */
        /* This forces the columns to align to the left, using the columns' widths (33% + 65%) to create the space */
        justify-content: flex-start;
        margin-bottom: 0rem; 

    }
    
    
    /* 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; 
    }
  
    
}


/* ---------------------------------------------------------- */
/* --- B. MEDIUM SCREENS (MIN 768px) - TABLET/DESKTOP     --- */
/* ---------------------------------------------------------- */
@media (min-width: 768px) {
    
    /* HERO SECTION */
    .hero-solid-background {
        height: 70vh; /* Base Desktop/Tablet height */
    }
    
    /* INTRO CONTENT */
    .site-intro-h2 {
        font-weight: 100;
    }
    .nav-menu {
        max-width: 450px;
    }
    .intro-content-wrapper {
        width: 75%;
    }
    .intro-column {
        flex: 1 1 calc(50% - 20px);
    }

    /* GRID LAYOUTS */
    .colored-div-text-col {
        flex: 1 1 calc(50% - 20px);
    }
    .colored-div-image-col {
        flex: 1 1 calc(50% - 20px);
        text-align: right; 
    }
    .two-thirds-one-third-grid {
        gap: 80px;
    }
    .two-thirds-column {
        flex: 1;
    }
    .one-third-column {
        flex: 0 0 275px;
    }
    
    
    

    

    /* 1. Constraint for Row 1 and Row 3 (Content Container/Wrapper) */
    .homepage-content-wrapper,
    .homepage-index .content-container {
    width: 95%; /* Keeping the 85% expansion */
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
    }

    /* 2. Constraint for Row 2 (Logos Row Inner Content) */
    .full-width-colored-div .homepage-grid-row {
        width: 92%; 
        margin: 0 auto;
    
        /* FIX: Ensure content is aligned to the start, not justified */
        justify-content: flex-start;
        padding-left: 0; 
        padding-right: 0; 
        
    }
    


    /* 3. CRITICAL FIX: Restore Spacing and Alignment for Logos Row Columns */
    .full-width-colored-div .homepage-lead-in-text {
        /* Add a standard margin/gap to the right of the lead-in column */
        margin-right: 2%; /* Use a percentage for relative gap (e.g., 3% to 5%) */
        
    }   

    /* 4. Fix for Content Column Width in Logos Row */
    .full-width-colored-div .homepage-content-col {
        /* Temporarily adjust the max-width to account for the new 3% margin, 
        ensuring the 33% + 3% + 60% doesn't break 100% too badly. */
        max-width: 72%;
    }
    
    #bios-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    /* C. Name Typography */
    .bio-name {
        margin-top: 3px;
    }
    
    
    /* Left Column: Text Lead-in */
    .homepage-lead-in-text {
        flex: 0 0 43%;
        max-width: 43%;
        box-sizing: border-box;   

    }   
    
    
    
    /* Right Column: Content */
    .homepage-content-col {
        flex: 1 1 50%;
        max-width: 55%;
        box-sizing: border-box;
    }
    
    
    .one-third-column .snippet-tagline {
        font-size: 0.9rem; 
        font-weight: 400;
        padding-top: 5px;
    }
    .one-third-column .snippet-title {
        font-size: 1.2rem;
        font-weight: 400;
        line-height: 1.8rem;
        padding-bottom: 10px;
        padding-top: 5px;
        transition: text-decoration 0.2s ease;

    }
    .one-third-column .snippet-content {
        font-size: 1rem; 
    }


    
}


/* ---------------------------------------------------------- */
/* --- C. TABLET SCREENS ONLY (768px to 1023px)           --- */
/* ---------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {

    /* CRITICAL FIX: Enforce 2/3 and 1/3 layout specifically for Tablets */
    .two-thirds-one-third-grid {
        gap: 40px; /* Reducing the gap slightly for smaller tablet screens */
        flex-wrap: nowrap;
    }
    .two-thirds-column {
        /* Allow the main content to take the majority of the remaining space */
        flex: 1 1 auto; 
        max-width: 60%; /* Set a comfortable max-width for tablet */
    }
    .one-third-column {
        /* Keep the sidebar fixed but adjust its width for tablet (e.g., 220px) */
        flex: 0 0 200px; 
        max-width: 200px; 
    }
    
    
    /* 1. Reduce H2 Left Margin */
    .two-thirds-h2 {
    /* Your global setting is margin-left: 55px. Let's reduce this significantly for tablet. */
        margin-left: 10px; 
        font-size: 1.3rem;
        font-weight: 200;

    }

/* 2. Reduce Content Left Margin */
    .two-thirds-content {
        /* Your global setting is margin-left: 60px. Let's reduce this to match the H2. */
        margin-left: 10px; 
        font-size: .8rem;

    
        /* Also ensure list's indentation doesn't break alignment */
        padding-right: 0;
    }

/* 3. Reduce Styled List Left Margin */
    .styled-list {
        /* Your global setting is margin-left: 70px. Let's reduce this to match the content. */
        margin-left: 30px; /* Needs slightly more than 20px due to bullet point indentation */
    
        /* Ensure list is still using 90% width or auto */
        width: auto;
        font-size: .8rem;

    }
    
    .one-third-column .snippet-tagline {
        font-size: 0.7rem; 
        font-weight: 400;
    }
    .one-third-column .snippet-title {
        font-size: 1.1rem;
        font-weight: 400;
          transition: text-decoration 0.2s ease;

    }
    .one-third-column .snippet-content {
        font-size: 0.8rem; 
        color: var(--color-top-grey);

    }
    
    .CURATED {
        font-size: 1.1em;
        line-height: 1.0;
        padding-bottom: 0px;
    }
}




/* ---------------------------------------------------------- */
/* --- C. LARGE SCREENS (MIN 1024px) - LARGE DESKTOP      --- */
/* ---------------------------------------------------------- */
@media (min-width: 1024px) {
    
    /* HERO SECTION */
    .hero-solid-background {
        height: 85vh; /* Larger Desktop height */
    }
    .intro-full-width-block {
        padding-top: 10rem;
        padding-bottom: 8rem;
    }
    
    /* IMAGE ADJUSTMENTS */
    .two-thirds-full-width-image {
        margin-left: calc(-1 * var(--main-horizontal-padding) - 5% - 23px);
    }

    /* LEGACY/UNUSED OVERLAYS */
    .hero-text-overlay {
        bottom: 150px;
        left: 100px;
        max-width: 450px;
    }
    
    /* *** NEW CRITICAL RULE: Increase max font size for desktop *** */
    .intro-full-width-block {
        width: 80%; /* Changed from 75% to 65% */
        line-height: 2.5; /* Reduced from 2.8 for better line density */

        font-weight: 200; 

        /* Pushes the font size up on large screens, overriding the universal clamp() max */
        font-size: clamp(1.5rem, 3.0vw, 3.2rem); 
        padding-top: 12rem;
        padding-bottom: 12rem;
        
    }
    
    #bios-grid-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
    
        /* C. Name Typography */
    .bio-name {
        margin-top: 7px;
    }
     
    
}


/* -------------------------------------------------------------------------- */
/* --- Z. FINAL UNIVERSAL ACTIVE STATE & VISIBILITY FIX (GLOBAL)          --- */
/* -------------------------------------------------------------------------- */
/* These rules must be at the very end of the file to ensure they override the default bar color on all screens. */

/* Animation for Hamburger to X - Top Bar */
body.menu-active .hamburger-icon .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background-color: var(--color-white) !important;
}

/* Animation for Hamburger to X - Middle Bar */
body.menu-active .hamburger-icon .bar:nth-child(2) {
    opacity: 0;
}

/* Animation for Hamburger to X - Bottom Bar */
body.menu-active .hamburger-icon .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background-color: var(--color-white) !important;
}

/* General Active Bar Color (Back-up override for all bars) */
body.menu-active .hamburger-icon .bar {
    background-color: var(--color-white) !important;
}