html {
    scroll-behavior: smooth;
}

body {
    display: block;
    margin: auto;
    width: 100%;
    height: auto;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Libre Franklin', Arial, sans-serif;
    top: 0;
    position: relative;
    color: #24313a;
    background: #f5f7f8;
    line-height: 1.6;
}

/* Navigation */

header nav {
    background: #173b54 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

nav li a {
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: 0.25s ease;
}

nav li a:hover {
    color: #f7d99a !important;
}

nav li i {
    color: #c9912f;
}

/* Hero */

.hero-bg {
    display: block;
    width: 100%;
    margin: auto;
    min-height: 700px;
    background-image:
        linear-gradient(rgba(16, 44, 64, 0.18), rgba(16, 44, 64, 0.22)),
        url('http://shoresofmadeiracondo.com/img/building.jpg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top center;
    position: relative;
    background-color: #173b54;
}

.hero-overlay {
    display: block;
    width: 100%;
    min-height: 150px;
    margin: auto;
    position: absolute;
    bottom: 0;
    background: rgba(23, 59, 84, 0.92);
    color: white;
    padding: 18px 0;
    border-top: solid 4px #c9912f;
    animation: fadeup 0.8s ease-out 1;
}

.hero-overlay .container {
    padding: 18px 15px;
}

.hero-overlay h1 {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 1px 2px 5px rgba(0,0,0,0.45);
    margin-bottom: 8px;
}

.hero-overlay p {
    font-size: 17px;
    margin-bottom: 0;
    color: rgba(255,255,255,0.94);
}

@media (max-width: 768px) {

    .hero-bg {
        min-height: 520px;
    }

    .hero-overlay {
        min-height: 0;
        height: auto;
        padding: 12px 10px;
        background: rgba(23, 59, 84, 0.95);
    }

    .hero-overlay .container {
        padding: 10px;
    }

    .hero-overlay h1 {
        font-size: 25px;
        line-height: 1.2;
    }

    .hero-overlay p {
        font-size: 15px;
    }
}

@keyframes fadeup {

    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Page Animation */

.page-links {
    margin-top: 0;
    animation: fadein1 0.8s ease 1;
}

@keyframes fadein1 {

    from {
        margin-top: -100px;
        opacity: 0;
    }

    to {
        margin-top: 0;
        opacity: 1;
    }
}

/* Homepage Cards */

.home-row {
    display: block;
    width: 100%;
    min-height: 250px;
    background: #ffffff;
    margin: 5px;
    padding: 24px;
    border-radius: 14px;
    margin-top: 45px;
    border: solid 1px #d9e1e6;
    border-top: solid 5px #1f4f6f;
    box-shadow: 0 4px 14px rgba(16, 44, 64, 0.10);
    transition: 0.25s ease;
}

.home-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(16, 44, 64, 0.16);
    border-top-color: #c9912f;
}

.home-row h2 {
    color: #173b54;
    padding-bottom: 14px;
    border-bottom: solid 2px rgba(201, 145, 47, 0.18);
    font-weight: 800;
    font-size: 25px;
}

.home-row h2 i {
    color: #c9912f;
}

.home-row p {
    font-size: 17px;
    color: #24313a;
}

.home-row a {
    background: #1f4f6f;
    border: solid 1px #1f4f6f;
    color: #ffffff;
    float: right;
    font-size: 16px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 8px;
    transition: 0.25s ease;
    text-decoration: none;
}

.home-row a:hover {
    border-color: #a87422;
    background: #a87422;
    color: #ffffff;
}

/* Board Members */

.board-member {
    text-align: center;
    margin-top: 25px;
    background: #ffffff;
    border: solid 1px #d9e1e6;
    border-radius: 12px;
    padding: 22px 16px;
    box-shadow: 0 4px 14px rgba(16, 44, 64, 0.10);
}

.board-member h2 {
    border-top: solid 2px #d9e1e6;
    padding-top: 15px;
    color: #173b54;
    font-weight: 800;
}

.board-member h3 {
    color: #1f4f6f;
    font-weight: 700;
}

/* Documents */

.document {
    display: block;
    min-height: 150px;
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    color: #24313a;
    border: solid 1px #d9e1e6;
    border-left: solid 5px #1f4f6f;
    margin: 10px;
    margin-top: 25px;
    box-shadow: 0 4px 14px rgba(16, 44, 64, 0.10);
    transition: 0.25s ease;
}

.document:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 44, 64, 0.16);
    border-left-color: #c9912f;
}

.document h2 {
    color: #173b54;
    padding-bottom: 14px;
    border-bottom: solid 2px rgba(201, 145, 47, 0.18);
    font-weight: 800;
    font-size: 22px;
}

.document a {
    border: solid 1px #1f4f6f;
    background: #1f4f6f;
    color: #ffffff;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    margin-top: 25px;
    border-radius: 8px;
    padding: 10px 14px;
    transition: 0.25s ease;
    text-decoration: none;
}

.document a:hover {
    background: #a87422;
    border-color: #a87422;
    color: #ffffff;
}

/* Logo */

#amtech-logo {
    height: auto;
    width: 100%;
}

/* Text */

.text-primary {
    color: #1f4f6f !important;
}

p,
li {
    color: #24313a;
}

a {
    color: #1f4f6f;
}

a:hover {
    color: #a87422;
}

/* Forms */

form button {
    background: #1f4f6f;
    border: solid 1px #1f4f6f;
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 10px 18px;
    transition: 0.25s ease;
}

form button:hover {
    background: #a87422;
    border-color: #a87422;
    color: #ffffff;
}

/* Footer */

footer {
    background: #102c40;
    text-align: center;
    min-height: 250px;
    padding-top: 80px;
    padding-bottom: 50px;
    color: #ffffff;
    border-top: solid 4px #c9912f;
    bottom: 0;
    margin-bottom: 0 !important;
}

footer a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
    color: #f7d99a;
}

footer p {
    color: #ffffff;
}
footer span {
    color: #ffffff;
}

/* Mobile */

@media (max-width: 768px) {

    .home-row,
    .document,
    .board-member {
        margin-left: 0;
        margin-right: 0;
        padding: 18px;
    }

    .home-row h2,
    .document h2 {
        font-size: 21px;
    }

    .home-row p {
        font-size: 15px;
    }

    .home-row a {
        float: none;
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }

    footer {
        padding-top: 55px;
        padding-bottom: 40px;
    }
}