/*
 Theme Name:   Carnoustie Connect
 Description:  Custom theme
 Author:       Carnoustie Creative
 Author URI:   https://www.carnoustiecreative.co.uk
 Template:     baseline
 Version:      1.0.2
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  baseline-child

font-family: gotham-black, sans-serif;
font-weight: 800;
font-style: normal;

font-family: gotham-black, sans-serif;
font-weight: 500;
font-style: normal;

font-family: gotham-xnarrow-book, sans-serif;
font-weight: 500;
font-style: normal;

*/

@view-transition {
    navigation: auto;
}
  
::view-transition-group(root) {
    animation-duration: 1s;
}

:root {
    --cc-sky-blue: #6485C3;
    --cc-violet-blue: #5163A1;
    --cc-ocean: #4F8E8E;
    --cc-pine: #0E6E6E;
    --cc-carrot: #E9883F;
    --cc-stone: #DEDAD5;
    --cc-radius: 2rem;
}

.baseline {
    --baseline-aos-distance: 20px;
    --baseline-aos-distance-negative: -20px;
}

body.baseline {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.3;
    font-family: gotham-black, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: clamp(1.6rem, 2vw, 2rem);
    position: relative;
    z-index: 1;
}

body.baseline:before {
    content: "";
    z-index: -1;
    position: absolute;
    background-image: url('stone-watermark.svg');
    background-size: cover;
    background-position: left top;
    width: 70vw;
    height: 100vh;
    min-height: 60vh;
    right: 0;
    top: 0;   
}

.baseline h1,
.baseline h2,
.baseline h3,
.baseline h4,
.baseline h5 {
    font-weight: 800;
    line-height: 1.1;
}

body.baseline .smaller-text {
    font-size: clamp(1.3rem, 1.3vw, 1.6rem);
}

.baseline h1 {
    color: var(--cc-sky-blue);
    font-size: clamp(5rem, 6vw, 7.5rem);    
}

.baseline h1 em {
    color: var(--cc-violet-blue);
    font-style: normal;
    display: inline-block;
}

.baseline h2 {
    font-size: clamp(3.3rem, 3.3vw, 5rem);
    margin-bottom: 2rem;
}

.baseline h3 {
    font-size: clamp(2.7rem, 2.9vw, 3.5rem);
    margin-bottom: 2rem;
}

.baseline .container {
    max-width: 1600px;
}

/* Header */

body.baseline .header-wrap {
    background: transparent;    
    border-bottom: 0;
    position: fixed;
    width: 100%;
    height: 13.7rem;
    z-index: 14;        
    transition-duration: 0.5s;
    border-bottom: 0.1rem solid transparent; */
}

header .logotitle.row {
    display: flex;
    align-items: center;
    height: 13.7rem;
    padding: 0;
}

body.baseline.header-not-at-top .header-wrap {
    background: var(--cc-stone);
    height: 10rem;
    border-bottom: 0.1rem solid var(--cc-violet-blue);
}

.header-not-at-top header .logotitle.row {
    height: 10rem;
}

header .logotitle.row:after {
    content: none;
    display: none;
}

header .logotitle.row > .four.columns,
header .logotitle.row > .eight.columns.right {
    float: none;
    width: auto;
}

header .logotitle.row > .four.columns {
    flex: 0 0 auto;
    margin-left: 0;
}

header .logotitle.row > .eight.columns.right {
    position: static;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    height: auto;
    margin-left: 4rem;
}

header .first {
    display: none;
}

header .second {
    position: static;
    bottom: auto;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 0;
}

header .second .widget-area {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 0;
    list-style: none;
}

header .second .widget {
    width: 100%;
    margin: 0;
    list-style: none;
}

header .second .textwidget {
    display: flex;
    justify-content: flex-end;
}

header .second #sub-nav-loc {
    display: none;
}

header .logo {
    line-height: 0;
}

header .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.baseline header .logo .custom-logo {
    width: clamp(22rem, 21.32vw, 30.7rem) !important;
    max-width: 100%;
    transition-duration: 0.5s;
    height: auto;
}

.header-not-at-top.baseline header .logo .custom-logo {
    width: clamp(17rem, 18vw, 24rem) !important;
}

header .scroll-nav {
    width: 100%;
}

header .scroll-nav__list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(3rem, 5vw, 7.6rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

header .scroll-nav__item {
    margin: 0;
    line-height: 1;
}

body.baseline header .scroll-nav .scroll-nav__link {
    display: block;
    color: #626261;
    font-size: clamp(1.5rem, 1.28vw, 1.8rem);
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

body.baseline header .scroll-nav .scroll-nav__item--active .scroll-nav__link {
    font-weight: 800;
    color: var(--cc-pine);
}

body.baseline header .scroll-nav .scroll-nav__link:hover {
    color: var(--cc-pine);
}

@media (max-width: 900px) and (min-width: 721px) {

    header .logotitle.row > .eight.columns.right {
        margin-left: 2.4rem;
    }

    body.baseline header .logo .custom-logo {
        width: clamp(20rem, 26vw, 24rem) !important;
    }

    header .scroll-nav__list {
        flex-wrap: wrap;
        gap: clamp(1.8rem, 3vw, 3rem);
        row-gap: 1rem;
    }

    body.baseline header .scroll-nav .scroll-nav__link {
        font-size: 1.45rem;
    }

}

.flex-elm.cde-wavedivider,
.flex-elm.last.cde-wavedivider {
    margin: 0;
}

.flex-elm.cde-wavedivider {    
    position: relative;
    width: 100%;
    height: 12rem;
    line-height: 0;
    overflow: hidden;
}

.flex-elm.cde-wavedivider svg {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12rem;
}

@media (max-width: 720px) {

    body.baseline .mobile-nav {
        display: none;
    }

    .header-wrap .container {
        max-width: calc(100% - 4rem);
        width: calc(100% - 4rem);
    }

    header {
        padding: 0;
    }

    header .logotitle.row {
        justify-content: center;
        min-height: 8.8rem;
    }

    header .logotitle.row > .four.columns {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    header .logotitle.row > .eight.columns.right,
    header .first,
    header .second {
        display: none;
    }

    header .logo {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    header .custom-logo-link {
        justify-content: center;
    }

    body.baseline header .logo .custom-logo {
        width: min(23rem, 78vw) !important;
    }

    .flex-elm.cde-wavedivider svg {
        right: auto;
        left: 50%;
        width: 200%;
        transform: translateX(-50%);
    }

}

.baseline #intro {
    margin-top: 10vw !important;
    min-height: 30vw;
    margin-bottom: -5vw;
}

@media ( max-width: 900px ) {

    .baseline #intro {
        margin-top: 12rem !important;
        min-height: 45rem;     
    }

}

@media ( max-width: 600px ) {

    .baseline #intro {
        margin-top: 20rem !important;          
        margin-bottom: -10rem;
    }

    #intro .image-grid-wrap .cols-two {
        grid-template-columns: 1fr 1fr;
    }

    .baseline .cde-image-left-text-right, 
    .baseline .cde-text-left-image-right, 
    .baseline .cde-two-cols .inner, 
    .baseline .cde-three-cols .inner {
        grid-gap: 2rem;
    }

    .store-badges img {
        margin-bottom: 2rem;
    }
    
    .footer-50-right {
        margin-top: 3rem;
    }

    .baseline .cde-wide-text.has-bgcolor:not(.col-none),
    .baseline .cde-shared-content-elm.has-bgcolor:not(.col-none),
    .baseline .cde-two-cols.has-bgcolor:not(.col-none),
    .baseline .cde-grid-list.has-bgcolor:not(.col-none),
    .baseline .cde-three-cols.has-bgcolor:not(.col-none),
    .baseline .cde-image-left-text-right .right.has-bgcolor:not(.col-none),
    .baseline .cde-text-left-image-right .left.has-bgcolor:not(.col-none),
    .baseline .inner .has-bgcolor:not(.col-none) {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

}

#intro .text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 5vw;
    padding-left: 4rem;
}

@media ( max-width: 600px ) {

    #intro .text {
        padding-left: 0;
        text-align: center;
    }

}

#intro .image-wrapper {
    position: relative;    
}

#intro .image-wrapper img {
    border-radius: 50%;
}

#intro .cols-two {
    grid-gap: 4vw;
}

#intro .cols-two li:nth-child(1) {
    left: -2vw;
    top: 2vw;
}

#intro .cols-two li:nth-child(2) {
    top: 4vw;
    width: 160%;
    position: relative;
    overflow: visible;
}

#intro .cols-two li:nth-child(2) img {
    position: absolute;
    left: -3vw;
    height: 160%;
}

#intro .cols-two li:nth-child(3) {
    max-width: 90%;
    right: -3vw;
    z-index: 9;
    top: 1vw;
}

#intro.cde-gallery-grid.grid-right .image-grid-wrap {
    grid-template-columns: 40% 1fr;
}

@media ( max-width: 600px ) {

    #intro.cde-gallery-grid.grid-right .image-grid-wrap {
        grid-template-columns: 1fr;
    }

}

.form-wrapped .gform_wrapper {
    border-radius: var(--cc-radius);
    padding: 3vw;
    background-color: #fff;
}

.form-wrapped .gform_wrapper label,
.form-wrapped .gform_wrapper legend {
    color: #000 !important;
}

.baseline .gform_wrapper.gravity-theme .gfield_required {
    color: var(--cc-carrot);
}

.baseline .ginput_container.ginput_container_radio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.form-wrapped .gform_wrapper.gravity-theme .gform_fields {
    grid-column-gap: 12px;
    grid-row-gap: 12px;
}

.form-wrapped .gform-footer.gform_footer.top_label {
    padding-bottom: 0;
    justify-content: flex-end;
}

.baseline .gform_wrapper.gravity-theme .gform_footer input {
    margin-bottom: 0;
}

#coming .inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: var(--cde-grid-gap);
}

@media ( max-width: 600px ) {

    #coming .inner {        
        grid-template-columns: 1fr;
        grid-row-gap: 3rem;;
    }

}

#coming .cde-grid-item {
    border-radius: var(--cc-radius);
    padding: 3rem !important;
}

#coming .cde-grid-item-inner {
    display: grid;
    grid-template-columns: minmax(7rem, 25%) minmax(0, 1fr);
    grid-template-areas:
        "image label"
        "image content";
    column-gap: clamp(1.6rem, 2vw, 2.4rem);
    row-gap: 0.4rem;
    align-items: start;
}

#coming .cde-grid-item-inner .item-image {
    grid-area: image;
}

#coming .cde-grid-item-inner .item-image img,
#coming .cde-grid-item-inner .item-image svg {
    display: block;
    width: 100%;
    max-width: 12rem;
    height: auto;
}

#coming .cde-grid-item-inner .item-label {
    grid-area: label;
    margin: 0;
}

#coming .cde-grid-item-inner .item-content {
    grid-area: content;
    min-width: 0;
}

#coming .cde-grid-item-inner .item-content > :last-child {
    margin-bottom: 0;
}

#coming .item-label {
    font-weight: 800;
    font-size: clamp(2.1rem, 2vw, 3rem);
}

#coming .item-content {    
    font-size: clamp(1.4rem, 1.3vw, 1.7rem);
}

@media ( min-width: 600px ) {

    #coming .before {
        padding-top: 3rem;
    }
    
}

#coming .grid-list.cols-1 {
    grid-gap: 2rem;
}

img.phone-shell {
    position: absolute;
    bottom: -6rem;
}

footer h3 {
    color: #fff;
    margin-bottom: 1rem !important;
}

footer .store-badges p {
    margin-bottom: 3rem;
}

.footer-50-right {
    text-align: right;
}

.footer-50-left img {
    margin-bottom: 2rem;
}

p.gform_description {
    font-weight: 800;
    color: var(--cc-pine) !important;
    background-color: transparent !important;
}

#coming .before p:last-child {
    margin-bottom: 0;
    margin-top: auto;
}


#coming .before img {
    max-width: 90%;
    position: relative;
    margin-bottom: -6.6rem;
}

@media ( max-width: 600px ) {

    #coming .before img {
        display: none;
    }

}

#coming .before {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}