
/* Wild Haven Wildlife Sanctuary
   Shared stylesheet for all pages */

/* General page styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f5f1e7;
    color: #202622;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3 {
    color: #234735;
}

h1 {
    font-size: 2.5em;
}

h2 {
    border-bottom: 2px solid #c4a45a;
    padding-bottom: 8px;
}

a {
    color: #234735;
}

a:hover {
    color: #8a6b25;
}

ol {
    padding-left: 25px;
}

ol li {
    margin-bottom: 8px;
}
img {
    max-width: 100%;
}

/* Header image and website title */
.site-header {
    background-image: url("sanctuary-hero.jpg");
    background-size: cover;
    background-position: center;
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.site-header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(20, 35, 26, 0.55);
}

.header-content {
    position: relative;
    padding: 25px;
}

.header-content h1 {
    color: #ffffff;
    margin: 0;
    font-size: 2.8em;
    text-shadow: 2px 2px 5px #202622;
}

.header-content p {
    margin: 8px 0 0;
    font-size: 1.15em;
}

/* Navigation */
nav {
    background-color: #234735;
    overflow: hidden;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    flex: 1;
    text-align: center;
}

nav a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 15px 10px;
    transition: background-color 0.3s ease;
}

nav a:hover,
nav a:focus {
    background-color: #c4a45a;
    color: #202622;
}

nav a[aria-current="page"] {
    background-color: #2f5c46;
    box-shadow: inset 0 -4px 0 #c4a45a;
    font-weight: bold;
}

nav a[aria-current="page"]:hover,
nav a[aria-current="page"]:focus {
    background-color: #c4a45a;
    color: #202622;
}

/* Main content */
main {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 25px;
}

section {
    margin-bottom: 35px;
}

.intro {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 35px;
}

/* Links styled like buttons */
.button-link {
    display: inline-block;
    background-color: #234735;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 18px;
    margin: 8px 5px;
    border-radius: 4px;
}

.button-link:hover,
.button-link:focus {
    background-color: #c4a45a;
    color: #202622;
}

/* Flexible card layout */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 25px 0;
}

.feature-card {
    flex: 1 1 280px;
    background-color: #ffffff;
    border: 1px solid #d5d0c3;
    border-radius: 6px;
    overflow: hidden;
}

.feature-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 15px 18px;
}

.card-content h3 {
    margin-top: 0;
}

/* Animal gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
}

.imgGallery {
    flex: 1 1 220px;
    background-color: #ffffff;
    border: 1px solid #d5d0c3;
    border-radius: 6px;
    overflow: hidden;
}

.imgGallery img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.imgGallery p {
    padding: 0 15px 10px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
    background-color: #ffffff;
}

caption {
    font-weight: bold;
    text-align: left;
    padding: 10px 0;
    color: #234735;
}

th, td {
    border: 1px solid #8b9b8b;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #dce4d9;
    color: #202622;
}

/* Responsive video */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    margin: 20px auto;
}

.video-container iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: 0;
}

/* Contact information */
.contact-details {
    background-color: #e7e8dc;
    padding: 20px;
    border-left: 5px solid #c4a45a;
    margin-bottom: 30px;
}

/* Contact and volunteer form */
form {
    max-width: 750px;
    background-color: #ffffff;
    padding: 25px;
    border: 1px solid #d5d0c3;
    border-radius: 6px;
}

.form-group {
    margin-bottom: 18px;
}

label,
legend {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #8b9b8b;
    border-radius: 4px;
    font: inherit;
    background-color: #ffffff;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

fieldset {
    border: 1px solid #8b9b8b;
    border-radius: 4px;
    padding: 15px;
    margin: 18px 0;
}

fieldset label {
    display: inline-block;
    font-weight: normal;
    margin: 5px 15px 5px 0;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #c4a45a;
    outline-offset: 2px;
}

input[type="submit"],
input[type="reset"] {
    background-color: #234735;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font: inherit;
    cursor: pointer;
    margin: 5px 8px 5px 0;
}

input[type="submit"]:hover,
input[type="reset"]:hover {
    background-color: #c4a45a;
    color: #202622;
}

/* Image credits and footer */
.image-credits {
    font-size: 0.85em;
    color: #4d554e;
    margin-top: 25px;
}

footer {
    background-color: #202622;
    color: #f5f1e7;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

footer a {
    color: #e3ca82;
}

/* Tablet screens */
@media screen and (max-width: 900px) {
    .site-header {
        min-height: 260px;
    }

    .header-content h1 {
        font-size: 2.3em;
    }

    main {
        padding: 0 20px;
    }

    .imgGallery {
        flex-basis: 40%;
    }
}

/* Phone screens */
@media screen and (max-width: 600px) {
    .site-header {
        min-height: 220px;
    }

    .header-content h1 {
        font-size: 1.9em;
    }

    .header-content p {
        font-size: 1em;
    }

    nav ul {
        flex-direction: column;
    }

    nav li {
        width: 100%;
    }

    main {
        margin: 20px auto;
        padding: 0 15px;
    }

    h1 {
        font-size: 2em;
    }

    .imgGallery {
        flex-basis: 100%;
    }

    .feature-card {
        flex-basis: 100%;
    }

    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 8px;
    }

    form {
        padding: 15px;
    }
}
