:root {
    --color-primary: #928616;
    --color-secondary: #636C33;
    --color-tertiary: #6E8624;
    --color-tint: #EFEDDC;
    --color-body: #434343;
    --font-heading: "berthold-baskerville-pro", sans-serif;
    --font-body: "brother-1816", sans-serif;

    /* Font size scale — meaningful range at every step */
    --fs-sm: 0.75rem;
    --fs-base: clamp(0.94rem, 0.11vi + 0.91rem, 1rem);
    --fs-md: clamp(1.17rem, 0.29vi + 1.1rem, 1.33rem);
    --fs-lg: clamp(1.46rem, 0.57vi + 1.32rem, 1.78rem);
    --fs-xl: clamp(1.60rem, 0.98vi + 1.40rem, 2.37rem);
    --fs-xxl: clamp(1.90rem, 1.80vi + 1.50rem, 3.20rem);
    --fs-xxxl: clamp(2.20rem, 2.80vi + 1.60rem, 4.20rem);

    /* Line height scale */
    --lh-sm: 1.5;
    --lh-base: 1.65;
    --lh-md: 1.4;
    --lh-lg: 1.3;
    --lh-xl: 1.2;
    --lh-xxl: 1.1;
    --lh-xxxl: 1.05;
}

h1,
h2,
h3,
h4,
h5,
h6,
.fs-h1,
.fs-h2,
.fs-h3,
.fs-h4,
.fs-h5,
.fs-h6 {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 400;
}

h1,
.fs-h1 {
    font-size: var(--fs-xxxl);
    line-height: var(--lh-xxxl);
    text-transform: uppercase;
}

h2,
.fs-h2 {
    font-size: var(--fs-xxl);
    line-height: var(--lh-xxl);
}

h3,
.fs-h3 {
    font-size: var(--fs-xl);
    line-height: var(--lh-xl);
}

h4,
.fs-h4 {
    font-size: var(--fs-lg);
    line-height: var(--lh-lg);
}

h5,
.fs-h5 {
    font-size: var(--fs-md);
    line-height: var(--lh-md);
}

h6,
.fs-h6 {
    font-size: var(--fs-sm);
    line-height: var(--lh-sm);
}

p,
.fs-p {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    font-weight: 300;
}

.fs-sm {
    font-size: var(--fs-sm);
}

.fs-md {
    font-size: var(--fs-md);
}

.fs-lg {
    font-size: var(--fs-lg);
}

.fs-xl {
    font-size: var(--fs-xl);
}

b, strong {
    font-weight: bold;
}


body {
    background-color: white;
    font-weight: 300;
    font-size: var(--fs-base);
    font-family: var(--font-body);
    color: var(--color-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: min(max(16px, 4vw), 18px);
}


a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

p {
    margin-bottom: 20px;
    font-family: var(--font-body);
}

p.lead {
    font-family: var(--font-lead);
}

.btn-primary {
    color: #fff;
    background-color: var(--color-primary);
    border: 0;
    text-decoration: none;
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--color-tertiary);
    border: 0;
    text-decoration: none;
}

.btn-secondary {
    color: #fff;
    background-color: var(--color-secondary);
    border: 0;
    text-decoration: none;
}

.btn-secondary:hover {
    color: #fff;
    background-color: var(--color-primary);
    border: 0;
    text-decoration: none;
}

/* LAYOUT */

header {
    background-color: white;
    color: var(--color-body);
    position: relative;

    .contact-details {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 9999;

        & a {
            font-size: 0.8rem;
        }
    }

    nav.navbar {
        padding-bottom: 0;
    }

    & ul.nav {
        margin-top: 26px;
    }

    & ul.nav li {
        padding-left: 12px;
        padding-right: 12px;
    }

    & ul.nav li a.nav-link {
        text-transform: uppercase;
        color: var(--color-body);
        padding-left: 0;
        padding-right: 0;
        border-bottom: 3px solid transparent;
    }

    & ul.nav li a.nav-link:hover {
        text-decoration: none;
        border-bottom: 3px solid var(--color-tint);
    }

    & ul.nav li a.nav-link.active {
        border-bottom: 3px solid var(--color-primary);
    }

    & ul.nav li a.nav-link:last-child {
        padding-right: 0;
    }
}


.tint {
    background-color: var(--color-tint);
    color: black;
}

.card {
    background-color: var(--color-tint);
    border: 0;
    height: 100%;
    position: relative;
    z-index: 10;

    & .card-title {
        font-size: var(--fs-md);
        position: relative;
        padding-left: 90px;
        padding-top: 12px;
    }

    & .card-title img {
        position: absolute;
        top: -8px;
        left: 16px;
        width: 65px;
        height: auto;
    }

    & .card-body {
        text-align: center;
    }

    & .btn {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
}


.page-carousel,
.carousel-inner,
.carousel-item {
    height: 650px;
}

.carousel-item img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}


video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pic-montage .row div {
    height: 500px;
}

.pic-montage img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}

.pic-full-montage .row div {
    height: auto;
}

.pic-full-montage img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}

img.cottage-intro {
    position: absolute;
    top: -48px;
    left: -90px;
    width: 146px;
    height: auto;
    z-index: 10;
}

.ash-cottage-first {
    position: relative;
}

.ash-cottage-second {
    position: relative;
}

.ash-cottage-first .container-xl::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url(images/icon-ash.svg);
    background-size: 40%;
    background-position: 95% -15%;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.ash-cottage-second::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: scaleX(-1);
    background-image: url(images/icon-ash.svg);
    background-size: 40%;
    background-position: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
}


.oak-cottage-first {
    position: relative;
}

.oak-cottage-second {
    position: relative;
}

.oak-cottage-first .container-xl::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url(images/icon-oak.svg);
    background-size: 40%;
    background-position: 95% -15%;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.oak-cottage-second::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: scaleX(-1);
    background-image: url(images/icon-oak.svg);
    background-size: 40%;
    background-position: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
}

#map {
    height: 650px;
}

.form-control {
    background-color: var(--color-tint);
    color: var(--color-body);
    border: 0;
}

.form-floating > .form-control {
    background-color: var(--color-tint);
    color: var(--color-body);
    border: 0;
}

footer {
    background-color: var(--color-tint);
    color: var(--color-primary);
    padding: 30px 0;
}

footer img {
    max-width: 300px;
}

footer .nav-link {
    color: var(--color-body);
    text-transform: uppercase;
}

footer .nav-link:hover {
    color: var(--color-body);
    text-transform: uppercase;
}

footer a {
    color: color: var(--color-body);
}

.info-box {
    position: relative;
    z-index: 999999;
    border-image: conic-gradient(#EFEDDC 0 0) fill 0//0 100vmax;
}

.info-box p {
    font-family: "buckley", sans-serif;
    font-size: 1.6rem;
    line-height: 1.8rem;
}

.info-box img {
    border: 10px solid white;
    transform: rotate(-5deg);
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}


/* Hidden Gem Component */

.gem-wrap {
    font-family: var(--font-body);
    margin: 0 auto;
    max-width: 100px;
    -webkit-transition: max-width .5s ease;
    transition: max-width .5s ease;
    position: relative;
    z-index: 99999;
}

.gem-wrap:has(.gem-label-bar.visible) {
    max-width: 400px;
}

.gem-trigger-row {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.gem-acorn {
    width: 95px;
    height: 125px;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.gem-acorn {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gem-acorn:hover {
    animation: gem-wiggle 0.4s ease-in-out;
}

@keyframes gem-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    50% { transform: rotate(8deg); }
    75% { transform: rotate(-4deg); }
}

.gem-label-bar {
    display: inline-flex;
    align-items: center;
    background: #f0ede3;
    border-radius: 0 10px 10px 0;
    padding: 0;
    height: 52px;
    overflow: hidden;
    width: 0;
    opacity: 0;
    transition: width 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
    white-space: nowrap;
    cursor: pointer;
    margin-left: -12px;
}

.gem-label-bar.visible {
    width: 290px;
    opacity: 1;
    padding: 0 18px 0 24px;
    margin-left: -20px;
}

.gem-label-text {
    font-size: 18px;
    color: #4a4540;
    font-style: italic;
    flex: 1;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.gem-chevron {
    font-size: 18px;
    color: #4a4540;
    margin-left: 12px;
    transition: transform 0.3s;
}

.gem-chevron.up {
    transform: rotate(180deg);
}

.gem-panel {
    position: absolute;
    width: 350px;
    z-index: 1;
    top: 76px;
    left: 49px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.gem-panel.open {
    max-height: 600px;
    opacity: 1;
    margin-top: 8px;
    margin-left: -35px;
}

.gem-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gem-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gem-card-body {
    padding: 16px 18px 20px;
}

.gem-card-body p {
    font-size: 15px;
    line-height: 1.65;
    color: #333;
}

.gem-card-body strong {
    color: #222;
}


/* POPUP BOX */

.popUpBoxBar {
    min-height: 700px;
}

.popUpBox {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    flex-direction: column;
    text-align: center;
}

.popUpBox > div {
    z-index: 2;
    position: relative;
    top: 10%;
    -webkit-transition: all 0.4s ease-in-out 0s;
    -moz-transition: all 0.4s ease-in-out 0s;
    transition: all 0.4s ease-in-out 0s;
}

.popUpBox .infoBox {
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    -webkit-transition: all 0.4s ease-in-out 0s;
    -moz-transition: all 0.4s ease-in-out 0s;
    transition: all 0.4s ease-in-out 0s;
    top: 50%;
    left: 50%;
    opacity: 0;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.popUpBox:hover > div {
    top: 0%;
}

.popUpBox:hover .infoBox {
    top: 40%;
    opacity: 1;
}

.popUpBox p {
    font-size: 1.3rem;
    font-weight: 100;
    max-width: 34ch;
    margin: 0 auto 30px auto;
}

.popUpBox .infoBox .btn {
    width: 50%;
    margin: 0 auto;

}

.popUpBox h3 {
    text-transform: uppercase;
    font-size: 3.5rem;
    font-weight: 100;
    margin-bottom: 20px;
    line-height: 4rem;
}


.popUpBox::before {
    content: "";
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1;
}


/* ZOOM BOX */

.zoomBoxBar {
    min-height: 450px;
}

.zoomBox {
    position: relative;
    color: white;
    text-align: center;
    overflow: hidden;
    background-color: black;
    background-clip: content-box;
}

.zoomBox a {
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: block;
}

.zoomBox img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 1;
    transition: all .5s;
}

.zoomBox div h3 {
    z-index: 2;
    position: absolute;
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
    -webkit-transition: all 0.4s ease-in-out 0s;
    -moz-transition: all 0.4s ease-in-out 0s;
    transition: all 0.4s ease-in-out 0s;
    top: 50%;
    left: 50%;
    opacity: 0;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.zoomBox:hover div h3 {
    top: 50%;
    opacity: 1;
}

.zoomBox:hover img {
    transform: scale(105%);
    opacity: 0.6;
}



/* UTILITIES */

.fadeInUp-scroll {
    opacity: 0;
    transform: translateY(0px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fadeInUp-scroll.visible {
    opacity: 1;
    transform: translateY(0px);
    transition-delay: 0.5s;
}

.centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.objectFit {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.picScale {
    overflow: hidden;
}

.picScale a img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    -webkit-transition-property: all;
    -webkit-transition-duration: 0.5s;
    -webkit-transition-timing-function: ease;
}

.picScale a:hover img {
    transform: scale(1.03);
}

.btn-text:hover {
    text-decoration: none;
}

.btn-text span {
    display: inline-block;
    transition: 0.2s ease-in;
}

.btn-text:hover span {
    transform: translateX(50%);
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

.bg-secondary {
    background-color: var(--color-secondary) !important;
}

.text-primary {
    color: var(--color-primary) !important;
}

.text-secondary {
    color: var(--color-secondary) !important;
}

.text-shadow {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.bg-ash {
    background-color: var(--color-secondary);
}

.bg-oak {
    background-color: var(--color-primary);
}

.bg-elm {
    background-color: var(--color-tertiary);
}

.offcanvas {
    width: 100%;
}


/* RESPONSIVE */

.navbar-toggler {
    color: white;
    background-color: var(--color-primary);
    width: 100%;
    border-radius: 0;
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 15px;
}

@media (max-width: 992px) {

    header nav.navbar {
        flex-direction: column;
    }

    header ul.nav {
        margin: 0 auto;
    }

    .navbar-brand img {
        width: 100%;
    }

}

@media (max-width: 768px) {

    .navbar-brand {
        width: 100%;
        margin-right: 0;
        text-align: center;
    }

    .navbar-brand img {
        width: 50%;
    }

    footer .nav {
        flex-direction: column;
        justify-content: center !important;
        text-align: center;
    }

}

@media (max-width: 576px) {
    
    img.cottage-intro {
        left: -100px;
        top: -35px;
        width: 110px;
    }

    .navbar-brand img {
        width: 70%;
    }
    
    .offcanvas {
        background-color: var(--color-tint);
    }
    
    header ul.nav {
        margin: 0 auto;
        flex-direction: column;
        text-align: center;
    }
    
    .offcanvas-body {
        position: relative;
    }
    
    .contact-details-mobile {
        position: absolute;
        bottom: 30px;
        width: 100%;
        text-align: center;
    }
    
    .offcanvas-header, .offcanvas-body {
        z-index: 999;
    }
    
    .offcanvas::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-image: url(images/icon-ash.svg);
        background-size: 120%;
        background-position: 30% 20%;
        background-repeat: no-repeat;
        opacity: 0.05;
        z-index: 1;
    }
    
    .page-carousel, .carousel-inner, .carousel-item {
        height: 400px;
    }
    
    video {
        height: 400px;
    }
    
    .oak-cottage-first .container-xl::after {
        content: '';
        position: absolute;
        left: 0;
        top: 30%;
        width: 100%;
        height: 100%;
        background-size: 120%;
        background-position: unset;
        background-repeat: no-repeat;
        opacity: 0.08;
        z-index: 1;
    }
    
    .ash-cottage-first .container-xl::after {
        content: '';
        position: absolute;
        left: 0;
        top: 30%;
        width: 100%;
        height: 100%;
        background-size: 120%;
        background-position: unset;
        background-repeat: no-repeat;
        opacity: 0.08;
        z-index: 1;
    } 
    
    .ash-cottage-second::after, .oak-cottage-second::after {
        display: none;
    }

}
