/* ==================================================
   Windsor Parks and Recreation Website
   File: parks.css
   Purpose: Shared styling for all website pages
   ================================================== */

/* Use consistent sizing on every element */
* {
    box-sizing: border-box;
}

/* Main page colours and default text */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
    color: #263746;
    background-color: #f3f7f5;
}

/* Make images responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header branding */
.site-header {
    background-color: #073763;
    color: white;
    padding: 24px 5%;
}

.site-header h1 {
    margin: 0;
    font-size: 2rem;
}

.site-header p {
    margin: 4px 0 0;
}

/* Navigation menu */
.main-nav {
    background-color: #0b5137;
    padding: 12px 5%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.main-nav a:hover,
.main-nav a:focus {
    text-decoration: underline;
}

/* Main content area */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 30px auto;
}

/* Introductory banner */
.hero {
    background: linear-gradient(135deg, #e2eee6, #ffffff);
    padding: 30px;
    border-left: 6px solid #0b7653;
    border-radius: 8px;
    margin-bottom: 28px;
}

.hero h2 {
    color: #073763;
    margin-top: 0;
}

/* Cards used on the table of contents */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.place-card {
    background: white;
    padding: 22px;
    border-radius: 8px;
    border: 1px solid #d8e2dc;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.place-card h3 {
    margin-top: 0;
    color: #073763;
}

.place-card a {
    color: #075e42;
    font-weight: bold;
}

/* Detail page heading */
.page-title {
    color: #073763;
    font-size: 2.2rem;
    line-height: 1.2;
}

.address {
    color: #425c6c;
    font-weight: bold;
}

/* Main photograph and its caption */
.feature-photo {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 10px;
}

.photo-caption {
    font-size: 0.9rem;
    color: #52636c;
    margin-top: 8px;
}

/* Information panel */
.info-panel {
    background-color: white;
    padding: 24px;
    margin: 24px 0;
    border-radius: 8px;
    border: 1px solid #d8e2dc;
}

h2,
h3 {
    color: #0b5137;
}

/* Previous, contents and next links */
.page-navigation {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0;
}

.page-navigation a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #073763;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.page-navigation a:hover,
.page-navigation a:focus {
    background-color: #0b5137;
}

/* Fixed Follow the Trail link.
   It stays near the right edge while scrolling. */
.trail-link {
    position: fixed;
    right: 0;
    top: 60%;
    z-index: 100;
    background-color: #d7a928;
    color: #182c35;
    text-decoration: none;
    font-weight: bold;
    padding: 14px 12px;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    writing-mode: vertical-rl;
}

.trail-link:hover,
.trail-link:focus {
    background-color: #f2c94c;
}

/* Footer and contact information */
.site-footer {
    background-color: #073763;
    color: white;
    padding: 28px 5%;
    margin-top: 45px;
}

.site-footer a {
    color: #d7e9ff;
}

.site-footer p {
    margin: 5px 0;
}

/* Make keyboard focus easy to see */
a:focus-visible {
    outline: 3px solid #d7a928;
    outline-offset: 3px;
}

/* Responsive layout for phones and small screens */
@media (max-width: 650px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .site-header h1 {
        font-size: 1.6rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .hero {
        padding: 20px;
    }

    .container {
        width: 92%;
    }

    .trail-link {
        top: auto;
        bottom: 18px;
        writing-mode: horizontal-tb;
        border-radius: 8px 0 0 8px;
        padding: 12px;
    }
}
