/* ===========================
   CUBE CSS - Composition Layer
   =========================== */

:root {
    /* Colors - RGB format for opacity support */
    --color-primary: 155, 139, 109;
    --color-primary-dark: 139, 123, 95;
    --color-secondary: 232, 223, 210;
    --color-dark: 58, 58, 58;
    --color-light: 245, 245, 245;
    --color-text: 74, 74, 74;
    --color-accent: 123, 159, 184;
    --color-white: 255, 255, 255;
    --color-black: 0, 0, 0;
    --color-black-rgb: 0, 0, 0;

    /* Opacity / Transparency */
    --opacity: 0.9;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Typography */
    --font-sans: 'Poppins', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --text-base: 16px;
    --text-sm: 14px;
    --text-lg: 20px;
    --text-xl: 24px;
    --text-2xl: 28px;
    --text-3xl: 36px;
    --text-4xl: 42px;

    /* Sizing */
    --container-max: 1320px;
    --container-padding: 18px;

    /* Breakpoints */
    --bp-mobile: 480px;
    --bp-tablet: 768px;
    --bp-desktop: 1024px;
    --bp-large: 1440px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;

    /* Z-index */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 100;
    --z-modal: 1000;
}

/* Mobile-first: Adjust spacing for smaller screens */
@media (max-width: 480px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
        --text-base: 15px;
        --text-4xl: 28px;
        --text-3xl: 24px;
        --text-2xl: 20px;
        --container-padding: 16px;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: rgb(var(--color-text));
    line-height: 1.6;
    background: rgb(var(--color-white));
}

/* ===========================
   CUBE CSS - Elements
   =========================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: rgb(var(--color-dark));
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }

a {
    color: rgb(var(--color-primary));
    transition: color var(--transition-base);
}

a:hover {
    color: rgb(var(--color-primary-dark));
}

.mobile-expandable-text {
    transition: max-height var(--transition-base), padding-bottom var(--transition-base);
}

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

.brand-image {
    object-fit: cover;
    object-position: 50% 50%;
    transform-origin: center center;
    transform: scale(1);
}

/* ===========================
   CUBE CSS - Utility Layer
   =========================== */

.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* UTILITY: Section header spacing */

.section-header {
    margin-bottom: 3rem;
}

/* ===========================
   CUBE CSS - Exception Layer
   =========================== */

@media (max-width: 1024px) {
    h1 { font-size: var(--text-3xl); }
}

@media (max-width: 768px) {
    h1 { font-size: var(--text-2xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-lg); }
    
    .section-header {
        margin-bottom: 2rem;
    }

    .mobile-expandable-text {
        position: relative;
        max-height: 7.5rem;
        overflow: hidden;
        padding-bottom: var(--space-sm);
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-expandable-text > p {
        margin-bottom: var(--space-md);
        line-height: 1.8;
    }

    .mobile-expandable-text > p:last-child {
        margin-bottom: 0;
    }

    .mobile-expandable-text::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3rem;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.98));
        pointer-events: none;
        transition: opacity var(--transition-base);
    }

    .mobile-expandable-text.is-expanded {
        max-height: none;
        overflow: visible;
        padding-bottom: 0;
    }

    .mobile-expandable-text.is-expanded::after {
        opacity: 0;
    }

}

@media (max-width: 480px) {
    h1 { font-size: var(--text-2xl); }
    h2 { font-size: var(--text-xl); }
    h3 { font-size: var(--text-base); }

}

