:root {
    --night-sky: #1a1f2c;
    --moonlight: #d3d7e0;
    --pine-dark: #2d3639;
    --pine-light: #3c4b44;
    --moss-glow: #7a8f78;
    --accent: #f7931a;
}

/* Base styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--night-sky);
    color: var(--moonlight);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
header {
    text-align: center;
    padding: 20px;
    background-color: var(--pine-dark);
    margin-bottom: 40px;
    border-bottom: 2px solid var(--moss-glow);
}

.logo-container {
    margin: 0 auto 15px;
    width: 200px; /* Updated to match new image dimensions */
    height: 200px;
}

.logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--moss-glow);
    box-shadow: 0 0 20px rgba(122, 143, 120, 0.3);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Prevent image gap */
}

/* Typography */
h1 {
    font-size: 2.5em;
    font-weight: 300;
    margin: 0;
    letter-spacing: 2px;
    color: var(--accent);
}

h2 {
    color: var(--moss-glow);
    font-weight: 400;
    border-bottom: 2px solid var(--pine-light);
    padding-bottom: 10px;
    margin-top: 40px;
    text-align: center;
}

h3 {
    color: var(--accent);
    text-align: center;
    margin: 15px 0;
}

/* Main content sections */
main section {
    margin: 40px auto;
    padding: 30px;
    border-radius: 12px;
    background-color: var(--pine-dark);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* Introduction section */
.intro {
    line-height: 1.8;
    font-size: 1.1em;
}

.intro p {
    margin: 15px 0;
    text-align: center;
}

/* Schedule section */
.schedule {
    text-align: center;
    font-size: 1.2em;
    background-color: var(--pine-light);
}

.schedule h2 {
    border-bottom: 2px solid var(--moss-glow);
    margin-top: 0;
}

/* Definition list styles for schedule */
.schedule dl {
    margin: 20px 0;
    padding: 0;
}

.schedule dt {
    font-weight: bold;
    margin-top: 15px;
    color: var(--moss-glow);
}

.schedule dd {
    margin: 5px 0 15px;
}

.notice {
    margin: 20px 0;
    color: var(--accent);
}

.map {
    width: 100%;
    height: 350px;
    border: none;
    border-radius: 8px;
    margin-top: 20px;
    filter: grayscale(50%) brightness(0.8);
}

/* Business and charity sections */
.business-list, .charity-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.business-card, .charity-card {
    padding: 25px;
    background-color: var(--pine-light);
    border-radius: 8px;
    border-left: 4px solid var(--moss-glow);
    transition: all 0.3s ease;
    text-align: center;
}

.business-card:hover, .charity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    background-color: var(--pine-dark);
    border-left-color: var(--accent);
}

.business-logo, .charity-logo {
    width: 150px; /* Updated to match new image dimensions */
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid var(--moss-glow);
    padding: 10px;
}

.business-logo img, .charity-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.business-info, .charity-info {
    margin-top: 15px;
}

/* Community section */
.community {
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap; /* Added for better mobile support */
}

.contact-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: var(--pine-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 100px; /* Ensure minimum touch target size */
}

.contact-icon img {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.contact-icon span {
    font-size: 0.9em;
    color: var(--moonlight);
    transition: all 0.3s ease;
}

.contact-icon:hover {
    background-color: var(--moss-glow);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.contact-icon:hover span {
    color: var(--night-sky);
}

.contact-icon:hover img {
    filter: brightness(0.2);
}

/* Link styles */
a {
    color: var(--moonlight);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.webdoctor-link:hover {
    color: #CE2029;
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 20px 0;
    background-color: var(--pine-dark);
    border-top: 2px solid var(--moss-glow);
    text-align: center;
}

footer p {
    color: var(--moonlight);
    font-size: 0.9em;
    opacity: 0.8;
    margin: 0;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus styles for better accessibility */
a:focus, button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-icon {
        width: 80%;
        max-width: 200px;
    }
    
    h1 {
        font-size: 2em;
    }
}