/* JasmineWS.uk CSS v1.0.1 | MIT License | Copyright 2023 JasmineDesign.com
   github.com/jasminedesign/jwsone | github.com/jasminedesign/jwstwo */

:root {
    color-scheme: light dark;
    --color-body-background: rgb(255, 255, 255);
    --color-background: rgb(61,58,72);
    --color-secondary-background: rgb(165, 99, 117);
    --color-title-background: rgb(248, 248, 248);
    --color-text: rgb(76, 88, 108);
    --color-text-white: rgb(255, 255, 255);
    --color-headings: rgb(183, 88, 114);
    --color-headings-light: rgb(255, 189, 207);
    --color-links: rgb(183, 88, 114);
    --color-social-background: rgb(165, 99, 117);
    --color-social-hover: rgb(61,58,72);
    --color-border: rgb(255, 189, 207);
    --color-border-dark: rgb(61,58,72);
    /*---- nav & buttons ----*/    
    --color-one-nav-btn: rgb(61, 58, 72);
    --color-two-nav-btn: rgb(255, 189, 207);
    --color-active-nav-btn: rgb(237 126 36);
    /*---- Form ----*/
    --color-form-background: rgb(229, 229, 229);
    --color-inputs-text: rgb(105, 108, 113);
    --color-inputs-background: rgb(248, 248, 255);
    --color-form-legend: rgb(104, 142, 163);
    --color-form-label: rgb(26, 40, 55);
    --color-form-error: rgb(72, 61, 139);
    /*---- Fonts ----*/
    --font-family: Palatino, "palatino linotype", Didot, "Didot LT STD", "Hoefler Text", Garamond, "Calisto MT", "Times New Roman", serif;
    --font-family-serif: 'Palatino', Georgia, serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-body-background: rgb(21, 18, 27);
        --color-background: rgb(61,58,72);
        --color-secondary-background: rgb(61,58,72);
        --color-title-background: rgb(61,58,72);
        --color-text: rgb(245, 245, 245);
        --color-headings: rgb(255, 156, 183);
        --color-links: rgb(255, 189, 207);
        --color-border: rgb(0, 128, 128);
        --color-border-dark: rgb(183, 88, 114);
        /*---- nav & buttons ----*/    
        --color-one-nav-btn: rgb(255, 255, 255);
        --color-two-nav-btn: rgb(183, 88, 114);
        --color-active-nav-btn: rgb(237 126 36);
        /*---- Form ----*/
        --color-form-background: rgb(22, 27, 34);
        --color-inputs-text: rgb(245, 245, 245);
        --color-inputs-background: rgb(13, 17, 23);
        --color-form-legend: rgb(104, 142, 163);
        --color-form-label: rgb(113, 176, 243);
        --color-form-error: rgb(237, 126, 36);
    }        
    .icon_bg:hover {
        background-color: var(--color-border-dark);
    }
}

*, *:after, *:before { box-sizing: border-box; }
html { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Segoe, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.375;
    margin: 0;
    padding: 0;
}
body {
    display: grid;
    grid-template: auto 1fr auto / 1fr;
    min-height: 100vh;
    gap: 1rem;
    margin: 0;
    padding: 0;
    color: var(--color-text);
    background-color: var(--color-body-background);
    font-size: 1.1rem;
}

/* ------ Typography ------ */
h1, h2, h3, h4, h5, h6 {
    margin: .5rem 0;
    color: var(--color-headings);
    text-align: center;
    font-weight: 700;
}
h1 {font-size: 2.2rem;
    font-family: var(--font-family);
	font-style:italic;
	padding: 0 0 .4rem 0;
    display: flex;
    flex-wrap: wrap;
}
h2 {font-size: 1.75rem;}
h3 {font-size: 1.5rem;}
h4 {font-size: 1.3rem;}
h5 {font-size: 1.2rem; font-weight: 400;}  
h6 {font-size: 1rem; font-weight: 400;}
p {margin: 0 0 .5rem; word-wrap: break-word;}
strong, b {font-weight: 600;}
i, em, sub, sup, var {font-style: italic;}
.col_dark {color: var(--color-text);}
img {display: block; max-width: 100%; height:auto;}

/* ------ Address ------ */
address {font-style: normal; display: flex; flex-direction: column;}
address a {color: var(--color-text-white); padding-bottom: .5rem;}

/* ------ Links ------ */
a {
    text-decoration: underline;
    font-weight: 500;
    color: var(--color-links);
	cursor: pointer;
}
a:hover {text-decoration: none;}
a:focus-visible {outline: medium dashed var(--color-border);}

/* -------------------- Header section -------------------- */
header {
    grid-column: 1 / 2;
    grid-row: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    padding: .5rem;
    background-color: var(--color-background);
    gap: 1rem;
}
header p {
    color: var(--color-text-white);
    margin: 0 0 .25rem;
}
@media screen and (min-width: 600px) {
    header {
    padding: 1rem 2rem;
    justify-content: space-between;
    }
}
/* -------------------- Main section -------------------- */
main {
    grid-column: 1 / 2;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0;
    padding: .5rem 0 0;
    justify-content: space-evenly;
    gap: 2rem;
}
/* -------------------- Layout Panel Options -------------------- */
/* -------- Panels (100% across in mobile) -------- */
.panel_full,
.title_panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 100%;
}
.title_panel {
    padding: 1rem;
    border-radius: 8px;
}
@media screen and (min-width: 768px) {
    .title_panel {
    flex:0 1 65%;
    padding: 1rem 1rem 1rem 2rem;
    }   
}
/* -------- Text Panels (100% across in mobile) -------- */
.text_panel {
    display: flex;
    flex-direction: column;
    align-self: center;
    width: clamp(33ch, 100%, 65ch);
    padding: 0 1.5rem;
}
.light-bg {
    background: var(--color-title-background);
}
/* -------------------- CTA Panel -------------------- */
.callout {
    display: flex;
    background-color: var(--color-secondary-background);
    color: var(--color-text-white);
    font-size: 1.3em;
    line-height: 1.375;
    padding: 1.5rem 2rem;
    flex-wrap: wrap;
    flex: auto;
    justify-content: space-evenly;
}
.callout-txt {
    display: flex;
    align-items: center;
    justify-content: center;
}
.callout-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: max-content;
    margin-left: 1rem;
}
.btn_link {
    color: var(--color-one-nav-btn);
    display: inline-block;
    border-radius: 3px;
    background: var(--color-two-nav-btn);
    text-decoration: none;
    padding: 1rem;
}
.btn_link:hover {
    color: var(--color-two-nav-btn);
    background-color: var(--color-one-nav-btn);
}
/* -------------------- Footer -------------------- */
footer {
    grid-column: 1 / 2;
    grid-row: 3;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: center;
    padding: 1rem 0;
    gap: 2rem;
}
.footer_socials {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex: 0 0 100%;
    justify-content: space-evenly;
    align-items: center;
    gap: 1rem;
}
.footer_socials p {
    display: flex;
    flex-direction: row;
    flex: 0 0 100%;
    justify-content: center;
}
.icon_bg {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 500px;
    background-color: var(--color-social-background);
    width: 70px;
    height: 70px;
    text-decoration: none;
    margin-left: 1rem;
}
.icon_bg:hover {
    background-color: var(--color-social-hover);
}
.copy {
    display: flex;
    flex-direction: column;
    flex: 0 0 100%;
    justify-content: center;
    align-items: center;
}
@media screen and (min-width: 900px) {
    
    .footer_socials  {
        flex: 0 0 40%;
    }
    .copy {
        flex: 0 0 50%;
    }
}
/* -------------------- Services-grid -------------------- */
.wrap {
    width: min(125ch, 100% - 3rem);
    margin-inline: auto;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
@media screen and (min-width: 1000px) {
    
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
}
.grid-items {
    display: grid;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.grid-items a {
    font-size: 1.75rem;
    text-align: center;
    text-underline-offset: 4px;
}
.bg-dark {
    background-color: var(--color-background);
}

@media screen and (min-width: 528px) {
    .grid-items {
    background-color: var(--color-secondary-background);
        padding: 0;
    }
    .grid-items a {
        color: white;
        padding: .5rem;
    }
    .item_3 {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    .item_4 {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    .item_7 {
        grid-column: 2 / 3;
        grid-row: 4 / 5;
    }
    .item_8 {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
    }
}
@media screen and (min-width: 768px) {

    .item_1 {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    .item_2 {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    .item_3 {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
    }
    .item_4 {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }
    .item_5 {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
    .item_6 {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    .item_7 {
        grid-column: 3 / 4;
        grid-row: 3 / 4;
    }
    .item_8 {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }
    .item_9 {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    .item_10 {
        display: none;
    }
}