/*
Theme Name: LMD
Author: sandbothe
Version: 0.1
*/

/* Font Face Definitions */

@font-face {
    font-family: 'Romie';
    src: url('./fonts/Romie-Regular.woff2') format('woff2'),
         url('./fonts/Romie-Regular.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Romie';
    src: url('./fonts/Romie-Italic.woff2') format('woff2'),
         url('./fonts/Romie-Italic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url('./fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('./fonts/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote::before, blockquote::after,
q::before, q::after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

img, video, canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button, input, select, textarea {
    margin: 0;
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
}


* {
    box-sizing: border-box;
}

/* Root Variables */
:root {
    --main-layout-padding: 3rem;
    --main-indent: 250px;
    --padding-2x: 2rem;
    --creme-color: #f7f5f1;
}

::-webkit-scrollbar {
    display: none; /* Hides the scrollbar in modern browsers */
}


html {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    background-color: var(--creme-color);
}

body {
    scrollbar-width: none; /* Hides scrollbar in Firefox */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Romie', sans-serif;
    font-weight: 300;
    line-height: 1;
}

h1, h2 {
    font-size: 3.815rem;
    margin-top: 1.5rem;  /* Add margin to space it out from elements above */
    margin-bottom: 1.5rem;  /* Space below for separation */
}

h1.site-headline {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.15rem;
    line-height: 1;
}

h2.subpage-title {
    margin-bottom: 5rem;
}

h3 {
    font-size: 2.441rem;
    margin-top: 3.052rem;
    margin-bottom: 2.441rem;
}

h4 {
    font-size: 1.953rem;
    margin-top: 1.125rem;
    margin-bottom: 1.125rem;
}

h5 {
    font-size: 1.563rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

h6 {
    font-size: 1.25rem;
    margin-top: 0.875rem;
    margin-bottom: 0.875rem;
}




p {
    font-size: 1rem;
    line-height: 1.6;  /* Typically 1.4 to 1.6 times the font size for readability */
    margin-top: 1.5rem;  /* Space above the paragraph */
    margin-bottom: 1.5rem;  /* Space below the paragraph to separate it from other elements */
    font-weight: 300;
}

small {font-size: 0.833rem;}
/* Global Styles */


body {
    font-size: var(--font-size);
    background-color: var(--creme-color);
    line-height: 1.5;
    font-weight: 300;
}

header {
    width: 100vw;
    display: flex;
    position: relative;
    flex-wrap: wrap;
    z-index: 999999;
}

.site-logo {
    width: var(--main-indent);
    padding-top:  var(--padding-2x);
    padding-bottom: var(--padding-2x);
    padding-left: var(--main-layout-padding);
}

.site-logo img {
    width: 115px;
    height: auto;
}

.navigation {
    display: flex;
    justify-content: space-between;
    width: calc(100vw - var(--main-indent));
    padding-right: var(--main-layout-padding);
    padding-top:  var(--padding-2x);
    padding-bottom:  var(--padding-2x);

}

.navigation p, .navigation ul, .navigation li, .navigation a, .navigation span {
    font-family: 'Romie', sans-serif;
    font-weight: 400;
    font-size: 1.15rem;
    line-height: 1;
}

.content {
    padding-left: var(--main-indent);
    padding-right: var(--main-indent);
    padding-bottom: var(--padding-2x);
    min-height: 90vh;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}


.italic, em {
    font-style: italic;
}

.alternate-char {
    font-style: italic;
    font-feature-settings: "aalt" 2;
}
/* mobile navigation */

/* Mobile Nav */
.mobile-nav-icon-wrapper {
    padding: 12px 0;
    display: block;
  }
  
  .mobile-nav-icon {
    display: block;
    height: 2px;
    width: 35px;
    background: black;
    position: relative;
    -moz-transition: 0.2s;
    -o-transition: 0.2s;
    -webkit-transition: 0.2s;
    transition: 0.2s;
  }
  .mobile-nav-icon:before {
    content: '';
    position: absolute;
    top: -10px;
    width: 35px;
    height: 2px;
    background: #000;
    -moz-transition: 0.2s;
    -o-transition: 0.2s;
    -webkit-transition: 0.2s;
    transition: 0.2s;
  }
  .mobile-nav-icon:after {
    content: '';
    position: absolute;
    top: 10px;
    width: 35px;
    height: 2px;
    background: #000;
    -moz-transition: 0.2s;
    -o-transition: 0.2s;
    -webkit-transition: 0.2s;
    transition: 0.2s;
  }
  
  .mobile-nav-icon.active{
    background: transparent;
  }
  .mobile-nav-icon.active:before {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    top: 0;
  }
  .mobile-nav-icon.active:after {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    top: 0;
  }

  .mobile-nav {
    width: 100%;
    padding-left: var(--main-indent);
    display: none;
  }

  .mobile-menu {
    display: block;
    padding-bottom: var(--padding-2x);
  }
  
  .mobile-menu li{
    font-family: 'Romie', sans-serif;
    font-weight: 400;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.mobile-menu li:last-child {
    margin-bottom: 0;
}


.mobile-nav, .mobile-menu-wrapper {
    display: none;
}

.mobile-nav.open {
    display: none;
}


.current-menu-item, .custom-active {
    text-decoration: underline;
    text-decoration-thickness: 1px; /* Adjust the stroke width */
    text-underline-offset: 0.15rem; 
}

.content p {
    max-width: 75ch;
}

.menu-item-has-children {
    position: relative;
}

.menu-item:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px; /* Adjust the stroke width */
    text-underline-offset: 0.15rem; 
}

.submenu-wrapper {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    padding-top: 1rem;
    display: none;
    background-color: var(--creme-color);
    box-shadow: -25px 0px 0px 0px var(--creme-color), 25px 0px 0px 0px var(--creme-color);
    z-index: 9999999;
}

.submenu-wrapper ul {
    display: block;
}

.submenu-wrapper ul li {
    display: block;
    margin-bottom: 0.5rem;
}

.mobile-nav .submenu-wrapper {
    position: relative;
    padding-top: 0;
    padding-left: 1rem;
    background: none;
    box-shadow: none;
}

.mobile-nav .menu-item.menu-item-has-children:hover {
    text-decoration: none!important;
}

.mobile-nav .menu-item.menu-item-has-children:hover a.custom-menu-item {
    text-decoration: underline;
    text-decoration-thickness: 1px; /* Adjust the stroke width */
    text-underline-offset: 0.15rem; 
}

.wp-block-image {
    margin-top: 3rem;
}

.full-content {
    height: 85vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}


.lmd-home-img {
    height: 60%;
    width: auto;
}

.full-content .lmd-home-img img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.full-content .lmd-home-qoute {
    width: 100%;
    font-size: 6vh;
    margin-top: 0;
    padding-top: 0;
    opacity: 0;
    animation: fadeInOut 10s infinite; /* 10s duration, infinite loop */
}


@keyframes fadeInOut {
    0% {
      opacity: 1;  /* Start 100% */
    }
    50% {
      opacity: 0.1;  /* 10% halfway through */
    }
    100% {
      opacity: 1;  /* Fade to 100% opacity */
    }
  }

footer {
    width: 100vw;
    padding-left: var(--main-layout-padding);
    padding-right: var(--main-layout-padding);
    padding-top:  var(--padding-2x);
    padding-bottom:  var(--padding-2x);
    display: flex;
    justify-content: space-between;
}


@media screen and (max-width: 1124px) {
    :root {
        --main-indent: 200px;
        --main-layout-padding: 2rem;
    }
}

@media screen and (max-width: 1075px) {
    :root {
        --main-indent: 150px;
        --main-layout-padding: 2rem;
    }

    .site-logo img {
        width: 75px;
    }
    .desktop-nav {
        display: none;
    }

    .mobile-menu-wrapper{
        display: block;
    }

    .mobile-nav.open {
        display: block;
    }

    .content {
        padding-left: var(--padding-2x);
        padding-right: var(--padding-2x);
        padding-top: var(--padding-2x);
    }


    .navigation, .site-logo {
        padding-bottom: 1rem;
    }

    h2.subpage-title {
        font-size: 2.441rem;
        margin-bottom: 2.441rem;
    }

    h3 {
        font-size: 1.953rem;
        margin-top: 1.953rem;
        margin-bottom: 1.953rem;
    }
}

@media screen and (max-width: 768px) {
    :root {
    
        --main-layout-padding: 1rem;
        --padding-2x: 1rem;
    }
    .full-content .lmd-home-qoute {
        font-size: 2rem;
    }

    .lmd-home-img {
        width: 100%;
        height: auto;
        margin-bottom: 2rem;
    }

    .full-content {
        height: auto;
        display: block;
    }
}