
/* ==========================================================
   WEBSITE STYLE LAB
   Mobile-first responsive styling
========================================================== */


/* ==========================================================
   PORTFOLIO PAGE
========================================================== */

.style-lab-page {
    padding: 35px 20px 60px;
}

.style-lab-page__container {
    max-width: 992px;
    margin: 0 auto;
}

.style-lab-page__intro {
    max-width: 850px;
    margin-bottom: 45px;
}

.style-lab-page__intro p {
    line-height: 1.7;
}


/* ==========================================================
   THEME SELECTOR
========================================================== */

.style-lab-controls {
    padding: 20px;
    background: #f4f5f6;
    border: 1px solid #dddddd;
    border-radius: 10px;
    margin-bottom: 40px;
}

.style-lab-controls h2 {
    margin-top: 0;
}

.style-lab-controls__themes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 25px 0 20px;
}

.style-lab-controls__theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid #dddddd;
    border-radius: 6px;
    background: #ffffff;
    color: #222222;
    font: inherit;
    cursor: pointer;
    transition:
        border-color .2s,
        background .2s,
        transform .2s;
}

.style-lab-controls__theme:hover {
    border-color: var(--color-teal, #00a79d);
    transform: translateY(-2px);
}

.style-lab-controls__theme.is-active {
    border-color: var(--color-teal, #00a79d);
    background: #e9f8f6;
}

.style-lab-controls__theme:focus-visible,
.style-lab-controls__reset:focus-visible {
    outline: 3px solid var(--color-teal, #00a79d);
    outline-offset: 3px;
}

.style-lab-controls__swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.style-lab-controls__swatch--corporate {
    background: #1765a3;
}

.style-lab-controls__swatch--luxury {
    background: #c4a36a;
}

.style-lab-controls__swatch--creative {
    background: #ef5a91;
}

.style-lab-controls__swatch--technology {
    background: #25d6bb;
}

/* ADDITIONAL THEME SWATCHES */
.style-lab-controls__swatch--minimalist { background: #555555; }
.style-lab-controls__swatch--organic { background: #71856a; }
.style-lab-controls__swatch--brutalist { background: #ed3b2f; }
.style-lab-controls__swatch--retro { background: #bf6633; }

.style-lab-controls__reset {
    background: transparent;
    border: 0;
    padding: 8px 0;
    color: var(--color-teal, #00a79d);
    font: inherit;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* ==========================================================
   PREVIEW HEADER
========================================================== */

.style-lab-preview-section__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.style-lab-preview-section__heading h2 {
    margin: 0;
}

#style-lab-current-theme {
    font-size: 13px;
    padding: 7px 14px;
    background: #eeeeee;
    border-radius: 30px;
}


/* ==========================================================
   THEME VARIABLES
========================================================== */

.style-lab-preview {
    --demo-bg: #f3f6fa;
    --demo-surface: #ffffff;
    --demo-text: #18314b;
    --demo-muted: #66778a;
    --demo-primary: #1765a3;
    --demo-on-primary: #ffffff;
    --demo-font: Arial, Helvetica, sans-serif;
    --demo-radius: 6px;
    --demo-space: 55px;

    border: 1px solid #cccccc;
    overflow: hidden;
    background: var(--demo-bg);
    color: var(--demo-text);
    font-family: var(--demo-font);
    transition:
        background .3s,
        color .3s;
}


/* LUXURY */

.style-lab-preview[data-theme="luxury"] {
    --demo-bg: #181818;
    --demo-surface: #262626;
    --demo-text: #f6f0e5;
    --demo-muted: #c4bbad;
    --demo-primary: #c4a36a;
    --demo-on-primary: #181818;
    --demo-font: Georgia, 'Times New Roman', serif;
    --demo-radius: 2px;
    --demo-space: 70px;
}


/* CREATIVE */

.style-lab-preview[data-theme="creative"] {
    --demo-bg: #fff0da;
    --demo-surface: #ffffff;
    --demo-text: #372554;
    --demo-muted: #695679;
    --demo-primary: #ef5a91;
    --demo-on-primary: #ffffff;
    --demo-font: 'Trebuchet MS', Arial, sans-serif;
    --demo-radius: 24px;
    --demo-space: 55px;
}


/* TECHNOLOGY */

.style-lab-preview[data-theme="technology"] {
    --demo-bg: #081820;
    --demo-surface: #102833;
    --demo-text: #e6fbf9;
    --demo-muted: #9bb9be;
    --demo-primary: #25d6bb;
    --demo-on-primary: #081820;
    --demo-font: Arial, Helvetica, sans-serif;
    --demo-radius: 12px;
    --demo-space: 60px;
}


/* MINIMALIST / EDITORIAL */
.style-lab-preview[data-theme="minimalist"] {
    --demo-bg: #ffffff;
    --demo-surface: #f6f6f4;
    --demo-text: #171717;
    --demo-muted: #555555;
    --demo-primary: #171717;
    --demo-on-primary: #ffffff;
    --demo-font: 'Helvetica Neue', Arial, sans-serif;
    --demo-radius: 0px;
    --demo-space: 75px;
}

/* ORGANIC / NATURAL */
.style-lab-preview[data-theme="organic"] {
    --demo-bg: #edf0e5;
    --demo-surface: #faf7ee;
    --demo-text: #2e4435;
    --demo-muted: #526451;
    --demo-primary: #466b4d;
    --demo-on-primary: #ffffff;
    --demo-font: 'Trebuchet MS', Arial, sans-serif;
    --demo-radius: 26px;
    --demo-space: 70px;
}

/* BOLD / BRUTALIST */
.style-lab-preview[data-theme="brutalist"] {
    --demo-bg: #f7ef3c;
    --demo-surface: #fffdf0;
    --demo-text: #111111;
    --demo-muted: #303030;
    --demo-primary: #d82c22;
    --demo-on-primary: #ffffff;
    --demo-font: Impact, 'Arial Black', Arial, sans-serif;
    --demo-radius: 0px;
    --demo-space: 60px;
}

/* RETRO / VINTAGE */
.style-lab-preview[data-theme="retro"] {
    --demo-bg: #f5e4c3;
    --demo-surface: #fff3dc;
    --demo-text: #4b3026;
    --demo-muted: #755747;
    --demo-primary: #a94b2c;
    --demo-on-primary: #fff8e9;
    --demo-font: Georgia, 'Times New Roman', serif;
    --demo-radius: 14px;
    --demo-space: 70px;
}

/* ==========================================================
   DEMONSTRATION WEBSITE
========================================================== */

.demo-site,
.demo-site * {
    box-sizing: border-box;
}

.demo-site {
    background: var(--demo-bg);
    color: var(--demo-text);
    font-family: var(--demo-font);
}

.demo-site h2,
.demo-site h3,
.demo-site h4 {
    color: var(--demo-text);
    font-family: var(--demo-font);
    line-height: 1.2;
    text-transform: none;
    letter-spacing: normal;
}

.demo-site p {
    color: var(--demo-muted);
    font-family: var(--demo-font);
    line-height: 1.7;
}


/* ==========================================================
   DEMO HEADER
========================================================== */

.demo-site__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: var(--demo-surface);
}

.demo-site__logo {
    color: var(--demo-text);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
}

.demo-site__logo span {
    color: var(--demo-primary);
}

.demo-site__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    color: var(--demo-text);
    font-size: 12px;
}


/* ==========================================================
   DEMO HERO
========================================================== */

.demo-site__hero {
    padding: 65px 25px;
    background: var(--demo-bg);
    text-align: center;
}

.demo-site__hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.demo-site__eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--demo-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.demo-site__hero h2 {
    font-size: 32px;
    margin: 0 0 25px;
}

.demo-site__hero p {
    max-width: 580px;
    font-size: 17px;
    margin: 0 auto 30px;
}


/* ==========================================================
   DEMO BUTTONS
========================================================== */

.demo-site__button {
    display: inline-block;
    padding: 15px 28px;
    border: 2px solid var(--demo-primary);
    border-radius: var(--demo-radius);
    background: var(--demo-primary);
    color: var(--demo-on-primary);
    font-family: var(--demo-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        filter .2s,
        transform .2s;
}

.demo-site__button:hover {
    filter: brightness(.85);
    transform: translateY(-2px);
}

.demo-site__button:focus-visible {
    outline: 3px solid var(--demo-primary);
    outline-offset: 4px;
}


/* ==========================================================
   DEMO SERVICES
========================================================== */

.demo-site__services {
    padding: var(--demo-space) 25px;
    background: var(--demo-surface);
}

.demo-site__section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.demo-site__section-heading h3 {
    font-size: 36px;
    margin: 0 0 15px;
}

.demo-site__service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.demo-site__card {
    padding: 25px;
    background: var(--demo-bg);
    border-radius: var(--demo-radius);
    transition: transform .2s;
}

.demo-site__card:hover {
    transform: translateY(-5px);
}

.demo-site__card-icon {
    color: var(--demo-primary);
    font-size: 32px;
    margin-bottom: 25px;
}

.demo-site__card h4 {
    font-size: 21px;
    margin: 0 0 12px;
}

.demo-site__card p {
    font-size: 14px;
    margin: 0;
}


/* ==========================================================
   DEMO CTA
========================================================== */

.demo-site__cta {
    text-align: center;
    padding: var(--demo-space) 25px;
}

.demo-site__cta h3 {
    font-size: 34px;
    margin: 0 0 15px;
}

.demo-site__cta p {
    margin-bottom: 25px;
}

.demo-site__button--secondary {
    background: transparent;
    color: var(--demo-primary);
}


/* ==========================================================
   DEMO FOOTER
========================================================== */

.demo-site__footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 25px;
    background: var(--demo-surface);
    color: var(--demo-muted);
    font-size: 12px;
    text-align: center;
}


/* ==========================================================
   THEME-SPECIFIC STYLING
========================================================== */

/* LUXURY */

.style-lab-preview[data-theme="luxury"] .demo-site__hero {
    text-align: center;
}

.style-lab-preview[data-theme="luxury"] .demo-site__hero-content {
    margin: 0 auto;
}

.style-lab-preview[data-theme="luxury"] .demo-site__hero p {
    margin-left: auto;
    margin-right: auto;
}


/* CREATIVE */

.style-lab-preview[data-theme="creative"] .demo-site__hero {
    background: linear-gradient(135deg, #fff0da, #ffe1ed);
}

.style-lab-preview[data-theme="creative"] .demo-site__button {
    border-radius: 40px;
}


/* TECHNOLOGY */

.style-lab-preview[data-theme="technology"] .demo-site__card {
    border: 1px solid rgba(37, 214, 187, .25);
}

/* MINIMALIST: EDITORIAL SPACING AND FINE DIVIDERS */
.style-lab-preview[data-theme="minimalist"] .demo-site__header,
.style-lab-preview[data-theme="minimalist"] .demo-site__footer {
    border-bottom: 1px solid #d2d2d0;
}
.style-lab-preview[data-theme="minimalist"] .demo-site__eyebrow,
.style-lab-preview[data-theme="minimalist"] .demo-site__nav {
    text-transform: uppercase;
    letter-spacing: 2px;
}
.style-lab-preview[data-theme="minimalist"] .demo-site__card {
    border-top: 1px solid #171717;
    background: transparent;
}
.style-lab-preview[data-theme="minimalist"] .demo-site__hero h2 {
    font-weight: 300;
    letter-spacing: -1.5px;
}

/* ORGANIC: SOFT SHAPES AND NATURAL DEPTH */
.style-lab-preview[data-theme="organic"] .demo-site__hero {
    background: radial-gradient(ellipse at 15% 15%, #d6e2c9, transparent 60%), var(--demo-bg);
}
.style-lab-preview[data-theme="organic"] .demo-site__card {
    border: 1px solid #c8d2be;
    box-shadow: 0 8px 22px rgba(46, 68, 53, .07);
}
.style-lab-preview[data-theme="organic"] .demo-site__button {
    border-radius: 999px;
}

/* BRUTALIST: HEAVY BORDERS AND OFFSET SHADOWS */
.style-lab-preview[data-theme="brutalist"] .demo-site__header,
.style-lab-preview[data-theme="brutalist"] .demo-site__footer {
    border-bottom: 4px solid #111111;
}
.style-lab-preview[data-theme="brutalist"] .demo-site__card {
    border: 3px solid #111111;
    box-shadow: 7px 7px 0 #111111;
}
.style-lab-preview[data-theme="brutalist"] .demo-site__button {
    border: 3px solid #111111;
    box-shadow: 5px 5px 0 #111111;
    text-transform: uppercase;
}
.style-lab-preview[data-theme="brutalist"] .demo-site__hero h2,
.style-lab-preview[data-theme="brutalist"] .demo-site__section-heading h3 {
    text-transform: uppercase;
    letter-spacing: -1px;
}
.style-lab-preview[data-theme="brutalist"] .demo-site__card:hover {
    transform: translateY(-5px);
}

/* RETRO: WARM GRADIENTS AND VINTAGE DETAIL */
.style-lab-preview[data-theme="retro"] .demo-site__hero {
    background: radial-gradient(circle at 50% 5%, #f9d59b, transparent 65%), var(--demo-bg);
}
.style-lab-preview[data-theme="retro"] .demo-site__card {
    border: 2px solid #bd8c61;
    box-shadow: 4px 4px 0 #bd8c61;
}
.style-lab-preview[data-theme="retro"] .demo-site__eyebrow {
    letter-spacing: 3px;
    text-transform: uppercase;
}
.style-lab-preview[data-theme="retro"] .demo-site__button {
    border-radius: 999px;
    letter-spacing: .5px;
}

/* LOWER SECTION */

.style-lab-page__lower-cta--outer {
    width: 100%;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.65)
        ),
        url("/images/work/img_slider-bg--01.jpg");

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.style-lab-page__lower-cta--inner {
    max-width: 992px;
    margin: 0 auto;
    padding: 35px 25px 50px;
    color: var(--color-white);
    text-align: center;
}

.style-lab-page__lower-cta--inner h2 {
    font-family: var(--font-heading);
    font-size: 40px; 
    font-weight: bold;
    color: var(--color-teal);
    margin: 16px 0;
}



/* ==========================================================
   TABLET / DESKTOP
   768px AND UP
========================================================== */

@media (min-width: 768px) {

    /* PORTFOLIO PAGE */

    .style-lab-page {
        padding: 50px 25px 80px;
    }


    /* THEME SELECTOR */

    .style-lab-controls {
        padding: 30px;
        text-align: left;
    }

    .style-lab-controls__themes {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 15px;
        margin: 25px 0 0;
    }

    .style-lab-controls__theme {
        min-width: 0;
        padding: 12px 8px;
        justify-content: center;
    }


    /* PREVIEW HEADER */

    .style-lab-preview-section__heading {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }


    /* DEMO HEADER */

    .demo-site__header {
        flex-direction: row;
        padding: 25px 40px;
    }

    .demo-site__nav {
        gap: 25px;
        font-size: 14px;
    }


    /* DEMO HERO */

    .demo-site__hero {
        padding: 100px 55px;
    }

    .demo-site__hero h2 {
        font-size: clamp(36px, 5vw, 58px);
    }


    /* DEMO SERVICES */

    .demo-site__services {
        padding: var(--demo-space) 45px;
    }

    .demo-site__service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .demo-site__card {
        padding: 30px;
    }


    /* DEMO FOOTER */

    .demo-site__footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 25px 40px;
        text-align: left;
    }
    
    /* LOWER SECTION */

    .style-lab-page__lower-cta--inner {
        padding: 35px 0 50px;
        text-align: left;
}


    /* THEME SPACING */

    .style-lab-preview {
        --demo-space: 65px;
    }

    .style-lab-preview[data-theme="luxury"] {
        --demo-space: 85px;
    }

    .style-lab-preview[data-theme="creative"] {
        --demo-space: 65px;
    }

    .style-lab-preview[data-theme="technology"] {
        --demo-space: 70px;
    }

    .style-lab-preview[data-theme="minimalist"] { --demo-space: 95px; }
    .style-lab-preview[data-theme="organic"] { --demo-space: 85px; }
    .style-lab-preview[data-theme="brutalist"] { --demo-space: 75px; }
    .style-lab-preview[data-theme="retro"] { --demo-space: 85px; }

}

