:root {
    /* Katoen Natie Brand Colours */
    --brand-red: #db0f16; 
    --brand-black: #161616;
    --brand-grey-10: #f4f4f4;
    --brand-grey-20: #e0e0e0;
    --brand-grey-30: #c6c6c6;
    --brand-grey-50: #8d8d8d;
    --brand-grey-70: #525252;
    --brand-grey-90: #262626;
    --white: #ffffff;
    
    /* IBM Carbon-inspired spacing (2x Grid) */
    --spacing-xs: 0.25rem;  /* 4px */
    --spacing-sm: 0.5rem;   /* 8px */
    --spacing-md: 1rem;     /* 16px */
    --spacing-lg: 2rem;     /* 32px */
    --spacing-xl: 4rem;     /* 64px */
    --spacing-2xl: 6rem;    /* 96px */

    /* Typography - IBM Plex Sans */
    --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--brand-black);
    background-color: #F4F4F4;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-size: 1rem;
}

/* Layout - IBM Style */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - IBM White Theme */
.sidebar {
    width: 16rem; /* 256px - IBM standard */
    background-color: #ffffff;
    color: var(--brand-black);
    border-right: 1px solid var(--brand-grey-20);
    padding: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
    position: fixed;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.brand-header {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--brand-grey-20);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.brand-logo {
    width: 37px;
    height: 40px;
    flex-shrink: 0;
    display: block;
}

.brand-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-weight: 700;
    font-size: 16px; /* 16pt = 16px at default browser settings */
    line-height: 1.25;
    color: var(--brand-black);
    letter-spacing: 0;
}

.brand-subtitle {
    font-weight: 400;
    font-size: 12px; /* 12pt = 12px at default browser settings */
    line-height: 1.33;
    color: var(--brand-grey-70);
    letter-spacing: 0;
}

.nav-links {
    list-style: none;
}

.nav-group {
    margin-bottom: 0;
}

.nav-group.active .group-title {
    border: 1px solid var(--brand-red);
    border-radius: 0;
    padding: var(--spacing-xs) var(--spacing-sm);
    margin: var(--spacing-xs) calc(-1 * var(--spacing-sm));
    width: calc(100% + 2 * var(--spacing-sm));
}

.nav-separator {
    height: 1px;
    background-color: var(--brand-grey-20);
    margin: var(--spacing-md) 0;
    list-style: none;
}

.group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 0.875rem;
    color: var(--brand-black);
    font-weight: 400;
    padding: var(--spacing-sm) 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
    font-family: var(--font-sans);
    margin: 0;
}

.group-title:hover {
    color: var(--brand-red);
}

.group-title span {
    flex: 1;
}

.chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    opacity: 0.7;
}

.chevron path {
    fill: var(--brand-grey-70);
}

.chevron-down {
    transform: rotate(0deg);
}

.chevron-up {
    transform: rotate(180deg);
}

.nav-group.active .chevron {
    transform: rotate(180deg);
}

.group-title-link {
    display: block;
    font-size: 0.875rem;
    color: var(--brand-black);
    text-decoration: none;
    padding: var(--spacing-sm) 0;
    font-weight: 400;
    transition: color 0.2s;
}

.group-title-link:hover {
    color: var(--brand-red);
}

.nav-submenu {
    list-style: none;
    padding-left: var(--spacing-md);
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.nav-submenu.active {
    max-height: 500px;
    margin-bottom: var(--spacing-sm);
    padding-top: var(--spacing-xs);
}

.nav-submenu li {
    margin: 0;
}

.nav-submenu li a {
    display: block;
    padding: var(--spacing-xs) 0;
    color: var(--brand-grey-70);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.2s;
    border-left: 2px solid transparent;
    padding-left: var(--spacing-md);
    margin-left: calc(-1 * var(--spacing-md));
}

.nav-submenu li a:hover {
    color: var(--brand-black);
    border-left-color: var(--brand-grey-30);
}

.nav-submenu li a.active {
    color: var(--brand-black);
    font-weight: 600;
    border-left-color: var(--brand-red);
}

/* Main Content - IBM Style */
.content-area {
    margin-left: 16rem;
    padding: var(--spacing-xl) var(--spacing-2xl);
    flex: 1;
    max-width: 75rem; /* 1200px - IBM max width */
    padding-bottom: var(--spacing-2xl); /* Space before footer */
}

/* Hero Section */
.hero-section {
    margin: 64px 0 128px 0;
}

.hero-text-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 0;
    margin-bottom: 64px;
}

.hero-text-left {
    grid-column: 1 / 4; /* 3/9 width */
    border-bottom: none;
}

.hero-title {
    font-size: 20px; /* 20pt */
    font-weight: 400;
    color: #191919;
    line-height: 1.5;
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.hero-text-right {
    grid-column: 4 / 10; /* Remaining 6/9 width */
}

.hero-description {
    font-size: 24px; /* 24pt */
    line-height: 1.5; /* 150% */
    color: #191919;
    font-weight: 400;
    margin: 0 0 var(--spacing-md) 0;
    max-width: none;
}

.hero-arrow {
    font-size: 24px; /* 24pt */
    line-height: 1.5; /* 150% */
    color: #191919;
    margin-top: var(--spacing-md);
}

.hero-navigation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    aspect-ratio: 3 / 3; /* Square grid */
    min-height: 600px;
}

.nav-block {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    text-decoration: none;
    color: #191919;
    transition: opacity 0.2s;
    overflow: hidden;
}

.nav-block:hover {
    opacity: 0.9;
}

.nav-block-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.nav-block-label {
    font-size: 20px; /* 20pt */
    font-weight: 400;
    color: #191919;
    z-index: 1;
    position: relative;
    align-self: flex-start;
}

.nav-block-label-white {
    color: #ffffff;
}

.nav-block-arrow {
    font-size: 20px; /* 20pt */
    font-weight: 400;
    color: #191919;
    align-self: flex-end;
    z-index: 1;
    position: relative;
    margin-top: auto;
}

.nav-block-arrow-white {
    color: #ffffff;
}

/* Navigation Block Colors and Grid Positioning */
.nav-block-philosophy {
    grid-row: 1;
    grid-column: 1;
    background-color: #ffffff; /* White */
}

.nav-block-typeface {
    grid-row: 1;
    grid-column: 2;
    background-color: #9D9D9D; /* Darker grey */
}

.nav-block-color {
    grid-row: 1;
    grid-column: 3;
    background-color: #db0f16; /* Katoen Natie Red */
}

.nav-block-photography {
    grid-row: 2 / 4; /* Spans rows 2 and 3 (2/3 height) */
    grid-column: 1 / 3; /* Spans columns 1 and 2 (2/3 width) */
    background-color: #000000;
    color: #ffffff;
}

.nav-block-iconography {
    grid-row: 2;
    grid-column: 3;
    background-color: #DBDBDB; /* Light grey */
}

.nav-block-layout {
    grid-row: 3;
    grid-column: 3;
    background-color: #007d79; /* Teal */
}

.section {
    margin-bottom: var(--spacing-2xl);
    scroll-margin-top: 2rem;
}

.subsection {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

/* Typography - IBM Plex Sans Scale */
h1 {
    font-size: 3.75rem; /* 60px - IBM Display 01 */
    font-weight: 300;
    line-height: 1.19;
    letter-spacing: 0;
    margin-bottom: var(--spacing-lg);
    max-width: 20ch;
}

h2 {
    font-size: 2.5rem; /* 40px - IBM Display 02 */
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0;
    margin-bottom: var(--spacing-lg);
    margin-top: 0;
    border-bottom: 1px solid var(--brand-grey-20);
    padding-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem; /* 24px - IBM Heading 03 */
    font-weight: 400;
    line-height: 1.33;
    letter-spacing: 0;
    margin-bottom: var(--spacing-md);
    color: var(--brand-black);
}

h4 {
    font-size: 1.25rem; /* 20px - IBM Heading 04 */
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
}

p {
    font-size: 1rem; /* 16px - IBM Body 01 */
    color: var(--brand-black);
    max-width: 65ch;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
    line-height: 1.5;
}

p.lead {
    font-size: 1.25rem; /* 20px */
    font-weight: 400;
    line-height: 1.5;
    max-width: 48ch;
    margin-bottom: var(--spacing-xl);
    color: var(--brand-black);
}

/* Hero Image */
.hero-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    margin-bottom: var(--spacing-xl);
    margin-top: calc(-1 * var(--spacing-xl));
    margin-left: calc(-1 * var(--spacing-2xl));
    margin-right: calc(-1 * var(--spacing-2xl));
    width: calc(100% + 2 * var(--spacing-2xl));
}

/* Components */
.divider {
    border: 0;
    height: 1px;
    background-color: var(--brand-grey-20);
    margin: var(--spacing-xl) 0;
}

.button {
    display: inline-flex;
    align-items: center;
    background-color: var(--brand-black);
    color: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    min-width: 10rem;
    justify-content: space-between;
}

.button:hover {
    background-color: var(--brand-red);
}

.button::after {
    content: "→";
    margin-left: var(--spacing-md);
}

/* Grids - IBM 2x Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: var(--spacing-lg);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: var(--spacing-lg);
}

.stacked-cards {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.stacked-cards .card {
    width: 100%;
    margin-bottom: 24px;
}

.stacked-cards .card:last-child {
    margin-bottom: 0;
}

.card {
    padding: var(--spacing-lg);
    border: 1px solid var(--brand-grey-20);
    background: var(--white);
    transition: all 0.2s ease;
}

.card:hover {
    background: var(--brand-grey-10);
    border-color: var(--brand-grey-30);
}

.card.display-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl);
}

.card.display-card.dark {
    background-color: var(--brand-black);
    color: white;
    border-color: var(--brand-black);
}

/* Manifesto Content - Two Column */
.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.manifesto-content {
    grid-column: 1 / 8; /* 7/9 width */
}

.manifesto-content p {
    font-size: 1rem;
    line-height: 1.625;
    margin-bottom: var(--spacing-lg);
    max-width: none;
}

.manifesto-content p:last-child {
    margin-bottom: 0;
}

.signature-block {
    grid-column: 8 / 10; /* 2/9 width */
    padding-top: 0;
    border-top: none;
    width: 100%;
    align-self: start;
}

.signer-name {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0;
}

.signer-title {
    font-size: 0.875rem;
    color: var(--brand-grey-70);
    margin-bottom: 0;
}

/* Color Swatches */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 0;
}

.color-swatch {
    height: 12rem;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
    font-size: 0.875rem;
}

.color-swatch .hex {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    opacity: 0.9;
}

.color-swatch .name {
    font-weight: 600;
    font-size: 1rem;
    margin-top: var(--spacing-xs);
}

.color-swatch .usage {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    margin-top: var(--spacing-xs);
    letter-spacing: 0.32px;
}

/* Color Palette - IBM Style */
.color-palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

/* Constrain single items to half width (like secondary colors) */
.color-palette-grid:has(.color-palette-item:only-child) {
    grid-template-columns: 1fr 1fr;
}

.color-palette-grid:has(.color-palette-item:only-child) .color-palette-item {
    max-width: 100%;
}

.color-palette-item {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--brand-grey-20);
    overflow: hidden;
}

.color-swatch-large {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-lg);
    color: var(--white);
    position: relative;
    transition: transform 0.2s ease;
}

.color-swatch-large:hover {
    transform: scale(1.02);
}

.color-swatch-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: inherit;
}

.color-spec-tabs {
    display: flex;
    border-bottom: 1px solid var(--brand-grey-20);
    background: var(--brand-grey-10);
}

.color-tab {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-xs);
    background: transparent;
    border: none;
    border-right: 1px solid var(--brand-grey-20);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.32px;
    color: var(--brand-grey-70);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.color-tab:last-child {
    border-right: none;
}

.color-tab:hover {
    background: var(--white);
    color: var(--brand-black);
}

.color-tab.active {
    background: var(--white);
    color: var(--brand-black);
    border-bottom: 2px solid var(--brand-red);
}

.color-spec-display {
    padding: var(--spacing-lg);
    min-height: 80px;
    display: flex;
    align-items: center;
    background: var(--white);
}

.color-spec-value {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.color-spec-value.active {
    display: flex;
}

.spec-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-grey-70);
    text-transform: uppercase;
    letter-spacing: 0.32px;
    min-width: 80px;
}

.spec-value {
    font-size: 1rem;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--brand-black);
    font-weight: 400;
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 2px;
    transition: background 0.2s;
    flex: 1;
    text-align: right;
}

.spec-value:hover {
    background: var(--brand-grey-10);
}

.color-note {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--brand-grey-10);
    border-left: 4px solid var(--brand-red);
}

.color-note p {
    margin-bottom: var(--spacing-md);
    max-width: none;
}

/* Usage Rules */
.usage-rule {
    margin-top: var(--spacing-lg);
}

.usage-rule p {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.usage-rule strong {
    color: var(--brand-red);
    font-weight: 600;
}

.dont-examples {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.dont-example {
    position: relative;
    display: inline-block;
}

.dont-icon {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    background-color: var(--brand-black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

.do-icon {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    background-color: #22c55e;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

.gradient-circle-row {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.gradient-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--brand-grey-20);
}

.gradient-bar {
    width: 100%;
    height: 60px;
    border: 1px solid var(--brand-grey-20);
    border-radius: 4px;
}

.text-background-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.text-bg-example {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.example-bg {
    width: 100%;
    min-height: 120px;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--brand-grey-20);
}

.example-bg p {
    font-size: 0.875rem;
    font-weight: 400;
    text-align: center;
    margin: 0;
    max-width: none;
}

.text-bg-example.dont .example-bg {
    border-color: #dc2626;
    border-width: 2px;
}

.text-bg-example.do .example-bg {
    border-color: #22c55e;
    border-width: 2px;
}

/* Typography Specimen */
.type-specimen {
    display: flex;
    gap: var(--spacing-xl);
    align-items: flex-start;
    border: 1px solid var(--brand-grey-20);
    padding: var(--spacing-xl);
    background: var(--brand-grey-10);
}

.font-display {
    font-size: 8rem;
    line-height: 1;
    font-weight: 300;
    color: var(--brand-black);
}

.weights span {
    display: block;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.type-scale-examples {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: var(--brand-grey-10);
    border: 1px solid var(--brand-grey-20);
}

.type-scale-examples > div {
    border-bottom: 1px solid var(--brand-grey-20);
    padding-bottom: var(--spacing-sm);
}

.type-scale-examples > div:last-child {
    border-bottom: none;
}

/* Placeholders */
.placeholder-box {
    width: 100%;
    height: 200px;
    border: 1px dashed var(--brand-grey-30);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-grey-50);
    margin-bottom: var(--spacing-sm);
    background: var(--brand-grey-10);
    font-size: 0.875rem;
}

.placeholder-box.small {
    height: 120px;
}

.placeholder-image-large {
    width: 100%;
    height: 400px;
    background-color: var(--brand-grey-10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-grey-50);
    font-size: 0.875rem;
    border: 1px dashed var(--brand-grey-30);
}

/* Checklist */
.checklist {
    list-style: none;
}

.checklist li {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-lg);
    position: relative;
}

.checklist li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--brand-red);
    font-weight: bold;
    font-size: 1.2em;
}

/* Glossary List */
.glossary-list {
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-lg);
}

.glossary-list li {
    margin-bottom: var(--spacing-md);
    padding-left: 0;
    line-height: 1.6;
}

.glossary-list li strong {
    color: var(--brand-black);
    font-weight: 600;
}

/* Downloads */
.download-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.download-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: #ffffff;
    text-decoration: none;
    color: var(--brand-black);
    transition: background 0.2s;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    border: 1px solid transparent;
    min-height: 80px;
}

.download-item:hover {
    background: var(--brand-grey-10);
    border-color: var(--brand-grey-30);
}

.download-item .label {
    flex: 1;
    padding-right: 24px;
}

.download-item .download-icon {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Footer Navigation (Upper Section) */
.footer-nav {
    width: 100vw;
    background-color: #262626; /* Carbon Gray 90 */
    border-top: 1px solid #393939;
    padding: var(--spacing-lg) var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
    margin-left: calc(-50vw + 50%);
    position: relative;
    z-index: 1001; /* Above sidebar */
    box-sizing: border-box;
}

.footer-nav-content {
    max-width: 75rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-nav-label {
    font-size: 0.75rem;
    color: #8d8d8d;
    text-transform: uppercase;
    letter-spacing: 0.32px;
    margin-bottom: var(--spacing-xs);
}

.footer-nav-link {
    font-size: 1rem;
    color: #f4f4f4;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}

.footer-nav-link:hover {
    color: var(--brand-red);
}

/* Main Footer (Lower Section) */
.main-footer {
    width: 100vw;
    background-color: #161616; /* Carbon Gray 100 */
    color: #f4f4f4;
    padding: var(--spacing-xl) var(--spacing-2xl) var(--spacing-lg);
    margin-left: calc(-50vw + 50%);
    position: relative;
    margin-top: 0;
    box-sizing: border-box;
    z-index: 1001; /* Above sidebar */
}

.footer-content {
    max-width: 75rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-column a {
    color: #f4f4f4;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
    display: inline-block;
}

.footer-column a:hover {
    color: var(--brand-red);
}

.footer-column-right {
    text-align: right;
    align-items: flex-end;
}

.footer-column-right p {
    font-size: 0.875rem;
    color: #c6c6c6;
    margin-bottom: var(--spacing-xs);
    max-width: none;
}

.footer-column-right a {
    color: #f4f4f4;
    text-decoration: underline;
}

.footer-column-right a:hover {
    color: var(--brand-red);
}

.footer-updated {
    margin-top: var(--spacing-md) !important;
    font-size: 0.75rem !important;
    color: #8d8d8d !important;
}

.footer-copyright {
    font-size: 0.75rem !important;
    color: #8d8d8d !important;
    margin-top: var(--spacing-xs) !important;
}

.footer-logo {
    position: absolute;
    bottom: var(--spacing-lg);
    left: var(--spacing-2xl);
}

.footer-logo-img {
    width: 30px;
    height: 32px;
    display: block;
}

/* Mobile */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #393939;
        padding: var(--spacing-md);
    }

    .content-area {
        margin-left: 0;
        padding: var(--spacing-lg);
    }

    .hero-image {
        margin-left: calc(-1 * var(--spacing-lg));
        margin-right: calc(-1 * var(--spacing-lg));
        width: calc(100% + 2 * var(--spacing-lg));
    }

    h1 {
        font-size: 2.5rem;
    }

    .manifesto-grid {
        grid-template-columns: 1fr;
    }

    .manifesto-content {
        grid-column: 1;
    }

    .signature-block {
        grid-column: 1;
        margin-top: var(--spacing-lg);
    }

    .footer-nav {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .main-footer {
        padding: var(--spacing-lg);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-column-right {
        text-align: left;
        align-items: flex-start;
    }

    .footer-logo {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: var(--spacing-lg);
    }
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    right: 16px; /* 16px from right side of screen */
    bottom: 64px; /* 64px from bottom */
    width: 36px;
    height: 40px;
    background-image: url('assets/icons/honeycomb-dark.svg');
    background-size: 36px 40px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    padding: 0;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    transform: translateY(-2px);
}

.back-to-top-arrow {
    width: 12px;
    height: 16px;
    display: block;
    position: relative;
    z-index: 1;
}

/* Logo Grid Layouts */
.logo-grid-9 {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.logo-variant-card {
    display: flex;
    flex-direction: column;
}

/* Photography Section */
.photography-intro {
    margin-top: var(--spacing-lg);
    max-width: 100%;
}

.photography-intro p {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    font-size: 1rem;
}

.photography-intro p:last-child {
    margin-bottom: 0;
}

.photography-masonry {
    column-count: 3;
    column-gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    break-inside: avoid;
}

.photography-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: var(--spacing-md);
    break-inside: avoid;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    width: 100%;
}

.photography-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.photography-item:last-child {
    margin-bottom: 0;
}

.photography-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.photography-item:hover .photography-image {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .photography-masonry {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .photography-masonry {
        column-count: 1;
    }
}

/* Pictogram Grid */
.pictogram-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.pictogram-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--brand-grey-20);
    padding: var(--spacing-lg);
}

.pictogram-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.logo-display-box {
    border: 1px solid var(--brand-grey-20);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    aspect-ratio: 1;
    overflow: hidden;
}

.logo-display-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.logo-example {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-dos-donts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.logo-example-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.logo-example-card .do-icon,
.logo-example-card .dont-icon {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

.logo-example-card .do-icon {
    background-color: #22c55e;
    color: var(--white);
}

.logo-example-card .dont-icon {
    background-color: var(--brand-black);
    color: var(--white);
}

.caption {
    font-size: 12px;
    line-height: 16px;
    color: #525252;
    margin-top: var(--spacing-sm);
}

.logo-example-card .caption {
    text-align: center;
}

/* Premises Gallery */
.premises-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.premises-gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #d9d9d9;
    background: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.premises-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.premises-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.premises-gallery-item:hover img {
    transform: scale(1.05);
}

/* Image Modal/Lightbox */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    animation: zoomIn 0.3s ease;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.image-modal-close:active {
    transform: rotate(90deg) scale(0.9);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .premises-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .image-modal-close {
        top: 10px;
        right: 20px;
        font-size: 32px;
        width: 36px;
        height: 36px;
    }
    
    .image-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
}

@media (max-width: 480px) {
    .premises-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .download-list {
        grid-template-columns: 1fr;
    }
    
    .back-to-top-btn {
        right: 16px;
    }

    .logo-grid-9 {
        grid-template-columns: 1fr;
    }

    .logo-variant-card {
        grid-column: 1 !important;
    }

    .logo-dos-donts-grid {
        grid-template-columns: 1fr;
    }
}