@font-face {
    font-family: "Advanced-ERP";
    src: url("Advanced-ERP-Font.woff2") format("woff2"),
         url("Advanced-ERP-Font.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html,
body {
    height: 100%;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: white;
    background: #333 url("images/Hokianga1.webp") center / cover no-repeat fixed;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    background-color: #00000080;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
header img {
    max-width: 370px;
    height: auto;
}

nav {
    position: relative;
    z-index: 5;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}
nav > ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
}
nav > ul > li {
    position: relative;
    margin: 0 0.4rem;
}
nav a {
    font-family: "Advanced-ERP", Arial, sans-serif;
    font-size: larger;
    text-decoration: none;
}
nav a:hover {
    text-decoration: underline;
}
nav a.current,
nav a.current:visited,
nav a.current:hover {
    color: white;
}
nav .submenu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10;
    visibility: hidden;
    padding: 0.35rem 0.75rem 0.5rem;
    background-color: #000000c0;
    white-space: nowrap;
}
nav .has-submenu:hover .submenu,
nav .has-submenu:focus-within .submenu {
    visibility: visible;
}

.page {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
main {
    max-width: 1500px;
    padding: 2rem;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: xx-small;
    padding: 0 1rem;
    background-color: #1e1e1e40;
    flex-shrink: 0;
}
footer .terms {
    font-size: small;
}

main,
footer {
    text-shadow: #000000 2px 2px 5px;
}

a,
a:visited {
    color: #ff8800;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
ol {
    margin-left: 1.5rem;
}
ul {
    margin-left: 2rem;
}
p {
    margin-bottom: 1rem;
}
hr {
    border: none;
    border-top: 4px solid rgba(255, 255, 255, 0.85);
    margin: 2rem 0;
}

.about {
    display: flex;
    gap: 1.5rem;
}
.about > img {
    max-height: 640px;
    max-width: 640px;
    flex-shrink: 0;
    padding: 20px;
    object-fit: contain;
}

div.products {
    overflow: hidden;
}
div.products::after {
    content: "";
    display: block;
    clear: both;
}
.products-logo {
    float: left;
    margin: 0 1.25rem 0.75rem 0;
}
.products-logo img {
    display: block;
    max-width: 300px;
    max-height: 150px;
    background-color: white;
    padding: 12px;
    border-radius: 12px;
}
.products-landscape {
    float: right;
    margin: 0 0 0.75rem 1.25rem;
}
.products-landscape img {
    display: block;
    width: 480px;
    height: auto;
}
.products > h2:first-of-type {
    margin-top: 0;
}

.contact-form {
    position: relative;
    max-width: 36rem;
    margin: 1.5rem 0 2rem;
    padding: 1.25rem 1.5rem;
    background-color: #00000080;
    box-sizing: border-box;
}
.contact-form p {
    margin-bottom: 0.85rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.25rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.6rem;
    border: 1px solid #ffffff80;
    border-radius: 2px;
    background-color: #00000066;
    color: white;
    font: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #ff8800;
    outline-offset: 1px;
}
.contact-form textarea {
    resize: vertical;
    min-height: 8rem;
}
.contact-form button {
    font: inherit;
    font-size: larger;
    padding: 0.4rem 1.25rem;
    border: none;
    border-radius: 2px;
    background-color: #ff8800;
    color: #111;
    cursor: pointer;
}
.contact-form button:hover {
    text-decoration: underline;
}
.contact-form button:disabled {
    opacity: 0.6;
    cursor: wait;
}
.contact-form .hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.contact-form-status.error {
    color: #ffcc99;
}
