@font-face {
    font-family: 'chronicle display semibold';
    src: url('chronicle-display-semibold.otf') format('otf');
    font-weight: normal;
    font-style: normal;
}
:root {
    --box-shadow: 0 4px 4px 0 rgb(0, 0, 0, 0.25);
    --off-black: #212121;
    --red: #C82F31;
    --white: #fff;
    --grey: #cacaca;
    --black: #000000;
    --silver: #d8d8d8;
    --solid-black: #111111;
    --grey-tundora: #414141;
}

/* Utility Classes */
.inner-container {
    margin: auto;
    padding: 0 1rem;
}
.flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.31rem 0;
}
.sr-only {
    left: -9999px;
    position: absolute;
    top: -9999px;
}
.btn {
    background-color: var(--solid-black);
    color: var(--white);
    transition: background-color 0.4s ease;
    width: 70%;
    display: block;
    padding: 1.375rem 0;
    font-family: 'chronicle display semibold';
    font-size: 1.5rem;
    border-radius: 0.25rem;
    text-align: center;
}
.banner-wrapper .btn,
.tartan-finder-wrapper .btn {
    background-color: var(--white);
    color: var(--solid-black);   
}
.btn:hover, 
.banner-wrapper .btn:hover {
    background-color: var(--red);
    color: var(--white);
}
/* Typography */
.flex-container h1 > a {
    color: var(--off-black);
    font-family: 'chronicle display semibold';
    font-size: 1.5rem;
}
.flex-container h1 > a:hover {
    text-decoration: none;
}
a {
    line-height: 2rem;
    text-decoration: none;
}
a:hover:not([class]),
.first-link:hover {
    text-decoration: underline;
}
h3,
h4,
h5 {
    font-family: 'chronicle diplay semibold';
}
h3 {
    font-size: 2.25rem;
    padding-bottom: 2rem;
}
h4 {
    font-size: 2rem;
    padding-bottom: 1.5rem;
}
h5 {
    font-size: 1.5rem;
    padding-bottom: 1.5rem;
    margin: 0;
}

/* Universal Styles */
body {
    background-color: var(--white);
    color: var(--off-black);
    line-height: 1.5;
    font-size: 1rem;
    font-family: 'libre franklin', sans-serif;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
}
.toggle-btn {
    color: var(--off-black);
    cursor: pointer;
    width: 1.5rem;
}
.main-menu {    
    line-height: 2rem;
    padding: 1rem;
}
.menu-border-top {
    border-top: 0.0625rem solid var(--off-black);
}
.first-link {
    align-items: center;
}
.second-tier {
    padding-left: 2rem;
}

/* hide menu */
.first-link svg {
    width: 1rem;
    margin-left: 0.0625rem;
    display: none;
}
nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    position: absolute;
    left: 0;
    background-color: var(--white);
}
nav li a {
    display: block;
    color: var(--off-black)
}
.show-nav {
    max-height: unset;
    overflow: visible;
}

/* icons and labels */
.icons {
    border-top: 0.0625rem solid var(--off-black);
    display: flex;
    gap: 1.875rem;
    justify-content: flex-start;
    white-space: nowrap;
    padding: 2.25rem 1rem 1.25rem 1rem;
}
.icons div {
    text-align: center;
}
.icons a {
    font-size: 0.75rem;
    font-weight: 300;
    text-align: center;
    line-height: 0.5rem;
}
.icons svg {
    align-items: center;
    width: 1.5rem;
}
.toggle-btn:hover,
.icons li:hover svg path,
.icons li:hover a {
    color: var(--red);
    text-decoration: none;
}

/* banner */
.banner {
    background: url('../img/leddies.webp') center / cover no-repeat;
    color: var(--white);
    height: 51.3125rem;
}
.banner-wrapper {
    min-width: 100%;
    background-color: var(--black);
    position: absolute;
    top: 14.0625rem;
    padding: 3rem 1rem;
}
.banner-wrapper p {
    line-height: 1.875rem;
    padding-bottom: 2.25rem;
}

/* swatches */
.flex {
	display: flex;
	flex-flow: wrap column;
}
.layered-swatches {
    position: relative;
    margin: 6rem 0 20rem 0;
}
.swatch {
    width: 13.25rem;
    height: 17.625rem;
    position: absolute;
    display: flex;
    flex-flow: column;
    justify-content: flex-end;
    transition: all 0.5s ease;
    border: 0.0625rem solid var(--off-black);
    border-radius: 0.25rem;
    box-shadow: var(--box-shadow);   
}
.swatch img {
    width: 13.20rem;
    height: 13.5rem;
}
.swatch:nth-child(2) {
    left: 17%;
}
.swatch:nth-child(3) {
    left: 34%;
}
.swatch:hover {
    transform: scale(1.1);
    z-index: 1;
}
.layered-swatches .label {
    background: var(--white);
	padding: 1rem 1rem 0 1rem;
	border-radius: 0 0 0.25rem 0.25rem;
}
.label p {
    line-height: 1.5rem;
}
.label p:first-child {
    text-transform: uppercase;
}
.label p:nth-child(2){
    font-family: 'chronicle display semibold';
    font-size: 1.5rem;
}

/* main */
.content p {
    padding-bottom: 1.5rem;
}
.tartan-finder .container-flex img {
    margin-top: 6rem;
}
.tartan-finder-wrapper {
    background-color: var(--solid-black);
    color: var(--white);
    padding: 6rem 1rem;
}
.tartan-finder-wrapper p {
    padding-bottom: 3rem;
}
.rental-packages h4 {
    padding-top: 6rem;
    text-align: center;
}
.rental-packages > .inner-container > p:nth-of-type(1) {
    padding-bottom: 1.5rem;
}
.rental-packages > .inner-container > p:nth-of-type(2) {
    padding-bottom: 4.5rem;
}

/* cards */
.card {
    box-shadow: var(--box-shadow);
    border: var(--grey) 0.0625rem solid;
    border-radius: 4px 4px 4px 4px;
    margin-bottom: 3rem;
    width: 100%;
    position: relative;
}
.card h5 {
    background-color: var(--off-black);
    color: var(--white);
    font-family: 'chronicle display semibold';
    font-size: 1.5rem;
    text-align: center;
    margin: 0;
    padding: 1.125rem 0;
    border-radius: 4px 4px 0 0;
}
.card .card-body {
    padding: 2.25rem 0 3rem 0;
}
.card p:first-child {
    font-size: 2rem;
    text-align: center;
    font-family: 'chronicle display semibold';
}
.card li {
    text-align: center;
    line-height: 1.5rem;
}
.card-body p {
    font-family: 'libre franklin', sans-serif;
    font-size: 1rem;
    text-align: center;
    padding-bottom: 1rem;
}
.card-body > p:nth-of-type(2){
    padding: 2.25rem 1rem 2.25rem 1rem;
}
.superscript {
    color: var(--grey-tundora);   
    border-top: 0.0625rem var(--grey) solid;
    padding: 1.5rem 0 3rem 0;
    margin: 0;
}
.superscript li {
    line-height: 1.5rem;
    text-align: left;
    padding-left: 1rem;
}
.card-body .btn {
    text-align: center;
    display: block;
    margin: auto;
}
.our-pick {
    position: absolute;
    background-color: var(--red);
    color: var(--white);
    border-radius: 1rem;
    text-align: center;
    display: block;
    width: 6rem;
    height: 2.25rem;
    right: -1rem;
    top: -1rem;
    padding-top: 0.40rem;
    font-weight: 600;
}

/* footer */
footer {
    background-color:var(--solid-black);
    color: var(--white);
    padding: 6.125rem 1rem;
}
footer h3:first-of-type {
    font-size: 2rem;
}
.copyright {
    text-align: center;
}
.copyright p {
    color: var(--silver);
    font-style: italic;
    padding-bottom: 3rem;
}
.copyright-border {
    border-bottom: 0.0625rem var(--white) solid;
}
.wide-flex-wrapper,
.footer-links {
    padding-top: 3rem;
}
footer .wide-flex-wrapper h3 {
    font-family: 'libre franklin', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    padding-bottom: 0;
}
.wide-flex-wrapper h3:nth-of-type(2) {
    padding-top: 1rem;
}

.wide-flex-wrapper a{
    color:var(--white);
    text-decoration: none;
}
.wide-flex-wrapper a:hover {
    text-decoration: underline;
}
.wide-flex-wrapper address {
    font-style: normal;
    padding-bottom: 1rem;
}
/* 861px */
@media (min-width:53.8rem) {  
    .flex-container {
        padding: 1.5rem 3rem;
    }
    .banner {
        height: 65.25rem;
    }
    .banner-wrapper {
        padding: 3rem 10.75rem;
        top: 21.375rem;
    }
    .banner .btn {
        width: 50%;
    }
    .banner h3 {
        font-size: 3rem;
    }
    .banner p {
        font-size: 1.25rem; 
    }
    .layered-swatches {
        margin-bottom: 35rem;
        max-width: 51rem;
    }
    .swatch {
        width: 16.875rem;
        height: 22.5rem;
    }
    .swatch img {
        width: 16.875rem;
        height: 17.4rem;        
    }
    .swatch:nth-child(1) {
        left: 3rem;
    }
    .swatch:nth-child(2) {
        top: 4.5rem;
        left: 18rem;
    }
    .swatch:nth-child(3) {
        top: 9rem;
        left: 33rem;
    }
    .label p:last-child {
        padding-bottom: 1rem;
    }
    .content,
    .rental-packages {
        padding: 0 10.75rem 6rem 10.75rem;
    }
    h4 {
        font-size: 3rem;
    }
    .container-flex {
        display: flex;
        flex-direction: row-reverse;
    }
    .tartan-finder-wrapper {
        min-width: 60%;
        padding: 6rem 2rem 6rem 3.5rem;
        height: 29.375rem;
    }
    .tartan-finder .container-flex img {
        height: 29.375rem;
        margin: 0;
    }
    .btn {
        width: 50%;
    }
    .superscript li {
        padding-left: 2rem;
    }
    footer {
        padding: 6rem 3rem;
    }
    .copyright p{
        padding: 0 7.8125rem 3rem 7.8125rem;
    }
    .wide-flex-wrapper .footer-nav {
        display: flex;
        flex-wrap: wrap;
    }
    .footer-links {
        width: calc(100% / 2);
    }

}
/* 1440px */
@media (min-width: 90rem) {

    /* nav */ 
    header .inner-container {
        width: 100%;
        gap: 5%
    }   
    header div.inner-container > .flex-container {
        flex: 1 0 auto;
    }
    .wide-flex {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        width: 70%;
        margin: 0;
        padding:0 6rem;
    }
    .icons {
        padding: 1rem 0;
        margin: unset;
        border-top: none;
        padding-bottom: 1rem;
    }
    .toggle-btn {
        display: none;
    }
    .main-menu {
        margin: 0;
        padding-top: 1.5rem;
        display: flex;
        justify-content: flex-end;
    }
    .main-menu li {
        position: relative;
    }
    .first-link {
        padding: 0 0.5rem;
    }
    .first-link svg {
        display: unset;
    }
    nav {
        justify-content: flex-end;
        position: static;
        overflow: visible;
        white-space: nowrap;
    }
    nav ul li {
        list-style-type: none;
    }
    .second-tier {
        min-width: 100%;
        background-color: var(--white);
        padding: 1rem;
        position: absolute;
        visibility: hidden;
        left: 0;
        text-align: left;        
    }
    .main-menu li:hover > .second-tier {
        visibility: visible;
    }
    .menu-border-top {
        display: none;
    }

    /* main */    
    .banner-wrapper {
        background-color: transparent;
        padding: 3rem 45.75rem 3rem 6rem;
    }
    .banner .btn {
        background-color: var(--solid-black);       
        color: var(--white);
        width: 40%;
    }
    .banner h3 {
        font-size: 4rem;
        line-height: 4rem;
    }
    .flex {
        flex-flow: nowrap;
        gap: 3rem;
        align-items: center;
    }
    .col {
        width: calc(100% / 2);
        margin-top: 0;
    }
    .content {
        padding: 13.6875rem 6rem 15.26rem 0;
    }
    .layered-swatches {
        margin-bottom: 38rem;
        max-width: 50%;
    }
    .swatch:nth-child(2) {
        left: 25%;
    }
    .swatch:nth-child(3) {
       left: 45%;
    }
    a.btn,
    .card a.btn {
        width: 50%;
    }
    .tartan-finder-wrapper {
       min-width: 50%;
    }
    .tartan-finder img {
        width: 100%
    }
    .container-flex div{
        width: calc(100% / 2);
    }
    .rental-packages {
        padding: 0 0 5.9375rem 0;
    }
    .rental-packages p:not(.our-pick) {
        padding: 0 24.5rem;
    }
    .card-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    .card-flex h2 { 
        width: 100%;
    }
    .card {
        width: calc(100% / 3 - 2%);
        margin-bottom: 0;
        height: 50.625rem   
    }
    .card p:not(.our-pick) {
        padding: 0;
    }
    .card-body > p:nth-of-type(2) {
        padding: 0 2rem 1.5rem 2rem;
    }
    .card:nth-child(2) {
       height: 53.6875rem;
    }   
    .card .btn {
        position: absolute;
        width: 70%;
        left: 0;
        right: 0;
        bottom: 0;
        margin-bottom: 3rem;
    }
    footer {
        padding: 6rem;
    }
    .copyright p{
        padding: 0 26.5rem 3rem 26.5rem;
    }
    .wide-flex-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content:space-between;
    }
    .wide-flex-wrapper .footer-nav {
        width: 60%;
        display:flex;
        flex-wrap: wrap;
    }
    .footer-links {
        padding-top: 0;
        width: calc(100% / 4);
        justify-content: right;
    }
}