/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Import Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul, ol {
    list-style: none;
}

/* Body Styles */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: white;
}

.blackfont {
    color: black;
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
}

h5 {
    font-size: 1.25rem;
    font-weight: 500;
}

h6 {
    font-size: 1rem;
    font-weight: 500;
}

/* Basic Text Styles */
p {
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Link Styles */
a {
    text-decoration: none;
    color: white;
}

/* List Styles */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/*Layout*/
.viewport, .viewport-centered {
    min-height: 92vh;
}

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

.container {
    padding: 30px;
    margin: 0 auto;
}

/* Buttons */
.primary-btn {
    font-size: 1rem;
    padding: 15px 20px;
    width: 15rem;
    background: none;
    color: white;
    cursor: pointer;
    border: 2px solid white;
    transition: 0.3s ease;
}

.primary-btn:hover {
    background-color: white;
    color: black;
    transition: 0.3s ease;
}

/* Nav */
.nav {
    background-color: black;
    padding: 10px 20px;
    min-height: 8vh;
    display: flex;
    align-items: center;
}

.menuitems {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.items1, .items2 {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.items1 {
    flex: 1;
    justify-content: flex-start;
}

.items2 {
    flex: 1;
    justify-content: flex-end;
}

.navlogo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.navlogo img {
    height: 50px;
}

.nav a {
    text-align: center;
    text-decoration: none;
    font-size: 17px;
    position: relative;
}

.items1 a::before, .items2 a::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.items1 a:hover::before, .items2 a:hover::before {
    transform: scaleX(1);
}

.nav .icon {
    display: none;
}

.nav button.icon {
    position: relative;
    z-index: 2500; 
}

/* Mobile navigation overlay */
.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 2400; 
    right: 0;
    top: 0;
    background-color: rgba(0,0,0,0.9);
    transition: 0.5s;
    overflow: hidden;
}

.overlay-content {
    position: relative;
    top: 50%;
    width: 100%;
    text-align: center;
    transform: translateY(-50%);
    white-space: nowrap;
    overflow: hidden;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    display: block;
    transition: 0.3s;
    white-space: nowrap;
    overflow-x: visible;
    opacity: 0;
    transition: opacity 0.5s ease-in 0.1s;
}

.overlay a:hover, .overlay a:focus {
    color: grey;
}

.overlay.open {
    width: 100%;
}

.overlay.open a {
    opacity: 1;
}

.overlay:not(.open) a {
    transition: opacity 0.2s ease-out; 
}

/* Footer */
.footercontainer {
    background-color: black;
    padding: 40px 80px;
    width: 100%;
}

.footergrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.footercontainer ul {
    padding-left: 0;
}

.footermiddle a:hover, .footermiddle a.active {
    color: #008C72;
}

.footerright {
    justify-self: end;
}

.copyright {
    text-align: center;
}

.copyright p {
    font-size: 0.75rem;
}

.iconflex {
    display: flex;
    padding-bottom: 20px;
}

.iconwrapper:not(:last-child) {
    margin-right: 15px;
}

.iconwrapper a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    font-size: 25px;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    transition: 0.3s ease;
}

.iconwrapper a:hover {
    color: #008C72;
    border-color: #008C72;
}

/* Media Queries */
@media screen and (max-width: 992px) {
    /* Font scaling for mobile */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    h5 {
        font-size: 1.125rem;
    }

    h6 {
        font-size: 0.875rem;
    }

    p {
        font-size: 0.9rem;
    }

    .primary-btn {
        font-size: 0.9rem;
        padding: 12px 18px;
        width: 14rem;
    }

    /* Navigation styles */
    .items1, .items2 {
        display: none;
    }
    
    .nav button.icon {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .navlogo {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        text-align: left;
    }
    
    .navlogo img {
        height: 40px;
    }
    
    /* Footer styles */
    .footergrid {
        grid-template-columns: 1fr;
        justify-items: center; 
        gap: 1rem;
    }

    .footerleft, .footermiddle, .footerright {
        text-align: center;
        justify-self: center;
    }
}