* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HERO SLIDER */
.hero-slider {
    position: relative;
    width: 100%;
    height: 450px; /* slightly bigger vertically */
    overflow: hidden;
    z-index: 0; /* ensures nav stays on top */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;

    
    animation: slider 12s infinite;
    animation-fill-mode: forwards;

    
    -webkit-animation: slider 12s infinite;
    -webkit-animation-fill-mode: forwards;

    will-change: opacity; 
    transform: translateZ(0);
}

/* Slide timing */
.slide:nth-child(1) { animation-delay: 0s; -webkit-animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 4s; -webkit-animation-delay: 4s; }
.slide:nth-child(3) { animation-delay: 8s; -webkit-animation-delay: 8s; }

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Keyframes */
@-webkit-keyframes slider {
    0% { opacity: 0; }
    10% { opacity: 1; }
    30% { opacity: 1; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes slider {
    0% { opacity: 0; }
    10% { opacity: 1; }
    30% { opacity: 1; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

/* Responsive heights */
@media (max-width: 768px) {
    .hero-slider { height: 350px; }
}

@media (max-width: 480px) {
    .hero-slider { height: 250px; }
}

/* BODY & LAYOUT */
body {
    margin: 0;
    min-height: 100vh;
    font-family: sans-serif;
    line-height: 1.5;
    display: block; /* remove flex to prevent nav issues */
}

/* MAIN CONTENT */
main {
    width: 100%;
    max-width: 960px;
    padding: 0 2em;
    margin: 0 auto;
}

/* HEADER & NAVIGATION */
header {
    width: 100%;
    border-bottom: 1px solid #d4d4d4;
    z-index: 1001;
}

.navigation {
    width: 100%;
    display: flex;
    align-items: center;
    background-color: #131212;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1001; /* above hero slider */
    flex-wrap: wrap; /* allows responsive wrapping on small screens */
}

.site-logo {
    margin-right: auto;
}

.site-logo img {
    width: 60px;
    height: auto;
}

.navigation ul {
    list-style: none;
    display: flex;
    margin-left: auto;
    flex-wrap: wrap; /* allows menu to wrap on mobile */
}

.navigation li {
    margin-left: 20px;
}

.navigation a {
    display: block;
    color: #dfd5d5;
    text-decoration: none;
    padding: 1em 1.5em;
    position: relative;
}

.navigation a:hover {
    color: #6484ef;
}

/* Hover underline */
.navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 0;
    height: 2px;
    background-color: #6484ef;
    transition: width 0.3s ease;
}

.navigation a:hover::after {
    width: 100%;
}

/* HOME CONTENT / FORM */
.home-content {
    margin: 2em 0;
    display: flex;
    justify-content: center;
}

.form {
    width: 100%;
    max-width: 400px;
}

.form label {
    display: block;
    margin-top: 1em;
}

.form input,
.form textarea {
    width: 100%;
    padding: 0.6em;
    margin-top: 0.3em;
    border: 1px solid #ccc;
}

.form textarea {
    min-height: 100px;
}

.form input[type="submit"] {
    margin-top: 1.5em;
    background-color: #253c8a;
    color: white;
    border: none;
    cursor: pointer;
}

.form input[type="submit"]:hover {
    background-color: #6484ef;
}

/* FOOTER */
footer {
    margin-top: auto;
    background-color: #d4d4d4;
    text-align: center;
    padding: 1em 0;
}

/* HEADINGS & PARAGRAPHS */
h1,h2,h3,h4,h5,h6 {
    color: #253c8a;
    margin: 1em 0 0.3em 0;
    font-weight: bold;
}

p {
    margin: 0.8em 0;
}