/* Initial */
@font-face {
    font-family: "Mulish";
    /* add WOFF2 compressed version of the font if possible (variable?) */
    src: url(../font/Mulish-VariableFont_wght.ttf) format("truetype-variations");
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

@view-transition {
    navigation: auto;
}


/* Top-level */
html {
    font-size: 18px;

    --nw-blue: hsl(192, 100%, 44%);
    --nw-blue-light: hsl(192, 100%, 64%);
    --nw-yellow: hsl(47, 100%, 64%);
    --nw-yellow-light: hsl(47, 100%, 84%);
    --nw-teal: hsl(179, 61%, 32%);
    --nw-teal-light: hsl(179, 61%, 42%);
    --nw-grey-dark: hsl(0, 0%, 20%);
    --nw-grey-medium: hsl(0, 0%, 40%);
    --nw-grey-light: hsl(0, 0%, 80%);
    --nw-tan: hsl(46, 100%, 97%);

    --bs-body-font-family: Mulish, var(--bs-font-sans-serif);
}





/* Nav bar related */
.navbar-brand .newworld-logo {
    width: 160px;
}

.nav-item .nav-link {
    font-weight: bold;
    margin: 0px 0.3rem;
}





/* Text styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

p {
    font-weight: 500;
}

/* Consider removing for accessibility - at least check for contrast */
::selection {
    background: var(--nw-teal);
    color: white;
}

a::selection {
    background: var(--nw-grey-dark);
    color: var(--nw-blue-light);
}

.nw-location-heading {
    font-size: 1.3rem;
}

h1.colour-nw-teal {
    color: var(--nw-teal);
}



/* Custom containers */
.nw-container-1920 {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}




/* Link styles */
a {
    color: #1f8281;
    font-weight: 510;
}

a:hover {
    color: white;
    text-decoration: none;
    background-color: var(--nw-teal);
}

a.nav-link:hover {
    color: var(--nw-blue);
    text-decoration: underline;
    background-color: var(--nw-grey-dark);
}

a.dropdown-item:active {
    color: var(--nw-grey-dark);
    background-color: var(--nw-yellow);
}





/* Details element (FAQ) */
details:nth-of-type(1) {
    border-top: 2px solid var(--nw-grey-dark);
    margin-top: 1rem;
}

details {
    border-bottom: 2px solid var(--nw-grey-dark);
}

details>summary {
    cursor: pointer;
    list-style: '+';
    padding: 1.5rem 1rem;
    font-weight: bold;
    color: var(--nw-teal);
}

details[open]>summary {
    cursor: pointer;
    list-style: '-';
}

details>div {
    margin-top: 0px;
    padding: 1rem 2rem;
}





/* Various style elements */
a.nw-product-card {
    color: #212529;
    text-decoration: none;
    background-color: var(--nw-yellow);

    padding: 2.5rem 1rem 1rem 1rem;

    transition: 0.4s;
}

@media (max-width:992px) {
    a.nw-product-card {
        padding: 1.5rem 0.2rem 0.2rem 0.2rem;
    }
}

a.nw-product-card:hover {
    color: white;
    background-color: var(--nw-teal);
}

a.nw-product-card:hover img.nw-home-product-icon {
    border: 3px solid;
    border-color: var(--nw-teal);
}

.nw-product-card .card-body .card-title {
    margin: 0px;
}

img.nw-home-product-icon {
    width: 60%;
    height: auto;
    /* padding: 0.7rem;  causing ovals on iOS...
    margin: 3rem 3rem 0.5rem 3rem; */
    margin-bottom: 1rem;
    border: 3px dotted;
    border-radius: 50%;
    border-color: var(--nw-blue);
    background-color: white;
    box-shadow: 0 0 0 1rem white;
    overflow: hidden;
}

img.nw-why-us-icon {
    width: 60%;
    height: auto;
    border: 3px dotted;
    border-radius: 50%;
    border-color: var(--nw-blue);
    background-color: white;
    box-shadow: 0 0 0 1rem white, 0 0 1rem 1rem lightgray;
    overflow: hidden;

    transition: 0.5s;
}

img.nw-why-us-icon:hover {
    box-shadow: 0 0 0 1rem var(--nw-yellow-light);
}

div.nw-values-card {
    margin-top: 1rem;
    padding: 1rem;
}

img.nw-values-icon {
    width: 60%;
    height: auto;
    margin-bottom: 1rem;
    border: 3px dotted;
    border-radius: 50%;
    border-color: var(--nw-yellow);
    background-color: var(--nw-grey-medium);
    box-shadow: 0 0 0 1rem var(--nw-grey-medium);
    overflow: hidden;
}

.nw-insurer-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

img.nw-insurer-icon {
    width: 100%;
    height: auto;
    padding: 0.4rem;

    transition: 0.5s;
}

img.nw-insurer-icon:hover {
    transform: translateY(-1rem);
}

.nw-box {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 30px;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.nw-border-light-top-bottom {
    border-top: 2px solid var(--nw-grey-light);
    border-bottom: 2px solid var(--nw-grey-light);
}







/* Background related */
.nw-bg-img {
    background-repeat: no-repeat;
    background-size: cover;
}

.nw-bg-img-center {
    background-position: center;
}

.nw-bg-img-bottom {
    background-position: bottom;
}

.nw-bg-img-center-15 {
    background-position: center 15%;
}

.nw-bg-img-top-left {
    /* Potentially remove */
    background-position: top left;
}

.nw-bg-img-translucent {
    position: relative;
    isolation: isolate;
}

.nw-bg-img-translucent::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: white;
    opacity: 0.8;
}

.nw-bg-gradient-white-grey {
    background-image: linear-gradient(to bottom, white 50%, #6b6b6b 50%);
}

/* See Belair pages for inspiration on the campaign and overlap classes */
.nw-bg-img-campaign-template {
    height: 450px;
    margin-bottom: calc(450px / 1.5);
}

.nw-bg-img-campaign-template-overlap {
    width: 100%;
    transform: translate(0, 50%);
    z-index: 1;
}

.bg-nw-yellow {
    background-color: var(--nw-yellow);
}

.bg-nw-yellow-light {
    background-color: var(--nw-yellow-light);
}

.bg-nw-blue-light {
    background-color: var(--nw-blue-light);
}

.bg-nw-teal-light {
    background-color: var(--nw-teal-light);
}

.nw-bg-grey-light {
    background-color: var(--nw-grey-light);
}

.nw-bg-dots-light {
    background-image: radial-gradient(#f3f3f3 0.5px, transparent 20%), radial-gradient(#f3f3f3 0.5px, transparent 20%);
    background-size: 15px 15px;
    background-position: 0 0, 7.5px 7.5px;
}





/* Button related - confirm and update me */
a.btn-nw-blue {
    color: var(--nw-grey-dark);
    background: none;
    background-color: var(--nw-blue-light);
    border-color: var(--nw-blue-light);
    font-weight: bold;
}

a.btn-nw-blue:hover {
    color: var(--nw-grey-dark);
    background: none;
    background-color: var(--nw-blue);
    border-color: var(--nw-blue);
    font-weight: bold;
}

a.btn-nw-blue:focus {
    color: var(--nw-grey-dark);
    background: none;
    background-color: var(--nw-blue);
    border-color: var(--nw-blue);
    font-weight: bold;
    box-shadow: 0 0 0 0.25rem var(--nw-blue-light);
}

a.btn-nw-yellow {
    color: var(--nw-grey-dark);
    background: none;
    background-color: var(--nw-yellow);
    border-color: var(--nw-yellow);
    font-weight: bold;
}

a.btn-nw-yellow:hover {
    color: var(--nw-grey-dark);
    background: none;
    background-color: var(--nw-yellow-light);
    border-color: var(--nw-yellow-light);
    font-weight: bold;
}

a.btn-nw-yellow:focus {
    color: var(--nw-grey-dark);
    background: none;
    background-color: var(--nw-yellow-light);
    border-color: var(--nw-yellow-light);
    font-weight: bold;
    box-shadow: 0 0 0 0.25rem var(--nw-yellow);
}

a.btn-nw-teal {
    color: white;
    background: none;
    background-color: var(--nw-teal);
    border-color: var(--nw-teal);
    font-weight: bold;
}

a.btn-nw-teal:hover {
    color: white;
    background: none;
    background-color: var(--nw-teal-light);
    border-color: var(--nw-teal-light);
    font-weight: bold;
}

a.btn-nw-teal:focus {
    color: white;
    background: none;
    background-color: var(--nw-teal-light);
    border-color: var(--nw-teal-light);
    font-weight: bold;
    box-shadow: 0 0 0 0.25rem var(--nw-teal);
}

a.btn-outline-nw-teal {
    color: var(--nw-teal);
    background: none;
    border-color: var(--nw-teal);
    font-weight: bold;
}

a.btn-outline-nw-teal:hover {
    color: white;
    background: none;
    background-color: var(--nw-teal);
    border-color: var(--nw-teal);
    font-weight: bold;
}

a.btn-outline-nw-teal:focus {
    color: white;
    background: none;
    background-color: var(--nw-teal);
    border-color: var(--nw-teal);
    font-weight: bold;
    box-shadow: 0 0 0 0.25rem var(--nw-teal-light);
}




/* Footer related */
section.footer-legal {
    background-color: #323638;
}

.footer-legal p {
    color: #c7c7c7;
    font-size: 16px;
}

section.footer-legal .legal-link {
    color: #f8d172;
}

a.nw-social-footer-icon {
    background-color: transparent;
    border: 1px solid var(--nw-grey-dark);
    border-radius: 50%;
    margin: 0rem 0.5rem;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

a.nw-social-footer-icon svg {
    fill: var(--nw-grey-dark);
    height: 1.15rem;
    width: 1.15rem;
    margin: 0.6rem;
}

.nw-social-footer-icon:hover>svg {
    fill: white;
}

a.nw-social-footer-icon-fb:hover {
    background-color: #3a5a97;
    border-color: white;
}

a.nw-social-footer-icon-li:hover {
    background-color: #017ab9;
    border-color: white;
}

.nw-border-gradient {
    border-top: 7px solid;
    border-bottom: 7px solid;
    /* Progressive enhancement */
    border-image: linear-gradient(90deg, var(--nw-yellow), var(--nw-yellow) 50%, var(--nw-blue)) 30;
    border-image: linear-gradient(in oklch 90deg, var(--nw-yellow), var(--nw-yellow) 50%, var(--nw-blue)) 30;
}

.nw-footer-internal-links a {
    margin: 0.5rem;
}