﻿/*Lee's CSS*/
.logo a {
    text-decoration: none;
    color: var(--text-primary); /* Use your theme's primary text color variable */
}

.stardos-stencil-regular {
    font-family: "Stardos Stencil", system-ui;
    font-weight: 400;
    font-style: normal;
}

.stardos-stencil-bold {
    font-family: "Stardos Stencil", system-ui;
    font-weight: 700;
    font-style: normal;
}

section.about {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    section.about .polaroid {
        transform: rotate(-1.5deg);
        padding: 0.5rem; /* Add padding inside polaroid for rotation clearance */
    }

    section.about h1 {
        flex-basis: 100%;
        text-align: center;
        margin-bottom: clamp(0rem, 2.5vw, 1.5rem);
    }

h1 {
    margin-bottom: 1.5rem;
}

h2 {
    margin-bottom: 1rem;
}

h1, .sans-serif {
    font-family: sans-serif
}

/*.about h1 {
    text-align: center;
}*/

img {
    max-width: 100%; /* Ensures the image scales down to fit the container */
    height: auto; /* Maintains the original aspect ratio */
    display: block; /* Removes any inline spacing issues (optional but recommended) */
}

.house-sign {
    margin-left: auto;
    margin-right: auto;
}

.hero.avian-vet-list {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/*avian-vet-list .history {
background-color: 
}*/

.vet-list-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
}

    .vet-list-container > div {
        background-color: var(--vet-card-bg);
        padding: 1.5rem;
        border-radius: 0.5rem;
        border: 1px solid var(--border-color);
    }

/* Dark mode: Use a slightly lighter version of --bg-secondary */
@media (prefers-color-scheme: dark) {
    .vet-list-container > div,
    .vet-list-container.historical > div {
        background-color: hsl(var(--dark-hue), var(--dark-saturation), calc(var(--dark-lightness) + 5%));
    }
}

/* Manual dark mode toggle */
:root:has(#dark-mode-toggle:checked) .vet-list-container > div,
:root:has(#dark-mode-toggle:checked) .vet-list-container.historical > div,
:root:has(#dark-mode-toggle-desktop:checked) .vet-list-container > div,
:root:has(#dark-mode-toggle-desktop:checked) .vet-list-container.historical > div {
    background-color: hsl(var(--dark-hue), var(--dark-saturation), calc(var(--dark-lightness) - 0%));
}

/* Manual light mode when system is dark */
@media (prefers-color-scheme: dark) {
    :root:has(#dark-mode-toggle:checked) .vet-list-container > div,
    :root:has(#dark-mode-toggle:checked) .vet-list-container.historical > div,
    :root:has(#dark-mode-toggle-desktop:checked) .vet-list-container > div,
    :root:has(#dark-mode-toggle-desktop:checked) .vet-list-container.historical > div {
        background-color: hsl(var(--dark-hue), var(--dark-saturation), 95%);
    }
}

.avian-vet-list.history, .avian-vet-list h2 {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

section.avian-vet-list.history p {
    margin-bottom: 1.25rem !important;
}

.vet-list-container.historical {
    justify-content: center;
}

    .vet-list-container.historical > div {
        background-color: var(--vet-card-bg);
        padding: 1.5rem;
        border-radius: 0.5rem;
        border: 1px solid var(--border-color);
    }

div.vet-list-container.historical span {
    display: inline-block;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding-inline: 0.75rem;
    padding-block: 0.25rem;
    border-radius: 0.75rem;
    margin-bottom: .5rem !important;
}

.about {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

    .about img {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

.sandys-story {
    column-width: 35ch;
    column-gap: 2rem;
    padding: 0 1rem; /* Add horizontal padding to story container */
}

    .sandys-story p {
        font-size: 1.2rem;
        font-family: Cambria, Cochin, Georgia, Times, Times New Roman, serif;
        /*text-align: justify;*/
        margin-top: 0; /* Optional: Keeps paragraphs flush at the top if desired */
        margin-bottom: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .sandys-story .polaroid {
        margin-left: auto;
        margin-right: auto;
        margin-top: -.1rem;
        margin-bottom: 2rem;
    }

    .sandys-story blockquote {
        border-left: 4px solid var(--accent-green);
        padding-left: 1.5rem;
        margin: 2rem 1rem;
        font-style: italic;
        font-size: 1.3rem;
        color: var(--text-secondary);
    }

        .sandys-story blockquote p {
            margin-bottom: 0;
        }

span.written-in {
    margin-left: 4rem;
}

/* About Your Parrot section - styled like vet cards */
.about-your-parrot {
    max-width: 600px;
    margin: 2rem auto;
    background-color: var(--vet-card-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

    .about-your-parrot h2 {
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .about-your-parrot p {
        margin-bottom: 1.5rem;
    }

        .about-your-parrot p:last-child {
            margin-bottom: 0;
        }

    /* Fill-in-the-blank lines for Placing Your Bird page */
    .about-your-parrot strong {
        display: flex;
        align-items: baseline;
    }

        .about-your-parrot strong::after {
            content: "";
            flex: 1;
            border-bottom: 1px solid var(--border-color);
            margin-left: 0.5rem;
            min-width: 3rem;
        }

    .about-your-parrot br {
        display: block;
        margin-bottom: 0.75rem;
    }

/* Footer Styling */
footer {
    background-color: var(--bg-secondary);
    border-top: 2px solid var(--accent-green);
    margin-top: 3rem;
    padding: 2rem 0 1.5rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

    footer .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    footer a {
        color: var(--link-color);
        text-decoration: none;
        transition: color 0.3s;
    }

        footer a:hover,
        footer a:focus {
            color: var(--link-hover-color);
            text-decoration: underline;
        }

/* Remove conflicting styles */
.footer.text-muted {
    border-top: none !important; /* Override any default border */
    color: inherit; /* Use our color */
}

/*Grok template's CSS*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-hue: 210;
    --dark-saturation: 29%;
    --dark-lightness: 24%; /* Changed from 28% to match body bg exactly */
    --dark-mode-blue: hsl(var(--dark-hue), var(--dark-saturation), var(--dark-lightness));
    --bg-primary: floralwhite; /* Warm cream/off-white - was #fffbf5 */
    --bg-secondary: hsl(var(--dark-hue), var(--dark-saturation), 85%); /* Light version of dark blue for light mode */
    --vet-card-bg: hsl(var(--dark-hue), var(--dark-saturation), 95%); /* ADD THIS */
    --text-primary: darkslategray; /* Was #333333 */
    --text-secondary: dimgray; /* Was #555555 */
    --accent-green: darkseagreen; /* Pale green earthtone - was #a5d6a7 */
    --accent-beige: beige; /* Pale beige - was #f5f5dc */
    --toggle-bg: lightgray; /* Was #cccccc */
    --toggle-circle: white; /* Was #ffffff */
    --button-text: white; /* Was #ffffff */
    --button-hover-bg: darkseagreen; /* Slightly darker pale green - was #8fbc8f */
    --border-color: gainsboro; /* Was #dddddd */
    --link-color: royalblue; /* Standard blue for light mode - was #0066cc */
    --link-hover-color: mediumblue; /* Darker blue for hover - was #0052a3 */
    --aav-orange: #f45320; /* AAV badge color */
    --abvp-blue: #007bff; /* ABVP badge color */
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #2c3e50; /* Dark blue-gray - keeping hex as no good named equivalent */
        --bg-secondary: var(--dark-mode-blue); /* Use the same base dark blue */
        --vet-card-bg: hsl(var(--dark-hue), var(--dark-saturation), calc(var(--dark-lightness) + 5%)); /* ADD THIS */
        --text-primary: whitesmoke; /* Was #f8f9fa */
        --text-secondary: lightgray; /* Was #cccccc */
        --accent-green: #5d8a6b; /* Darker pale green - no good named equivalent */
        --accent-beige: #a08d6e; /* Darker beige - no good named equivalent */
        --toggle-bg: dimgray; /* Was #555555 */
        --toggle-circle: #2c3e50; /* Keeping hex - matches bg-primary */
        --button-text: #2c3e50; /* Keeping hex - matches bg-primary */
        --button-hover-bg: #4a6a52; /* No good named equivalent */
        --border-color: dimgray; /* Was #555555 */
        --link-color: lightblue; /* Light blue for dark mode - was #add8e6 */
        --link-hover-color: skyblue; /* Slightly darker blue for hover - was #87ceeb */
    }
}

:root:has(#dark-mode-toggle:checked),
:root:has(#dark-mode-toggle-desktop:checked) {
    --bg-primary: #2c3e50;
    --bg-secondary: var(--dark-mode-blue);
    --vet-card-bg: hsl(var(--dark-hue), var(--dark-saturation), calc(var(--dark-lightness) + 5%)); /* ADD THIS */
    --text-primary: whitesmoke;
    --text-secondary: lightgray;
    --accent-green: #5d8a6b;
    --accent-beige: #a08d6a;
    --toggle-bg: dimgray;
    --toggle-circle: #2c3e50;
    --button-text: #2c3e50;
    --button-hover-bg: #4a6a52;
    --border-color: dimgray;
    --link-color: lightblue;
    --link-hover-color: skyblue;
}

@media (prefers-color-scheme: dark) {
    :root:has(#dark-mode-toggle:checked),
    :root:has(#dark-mode-toggle-desktop:checked) {
        --bg-primary: floralwhite; /* Warm cream/off-white */
        --bg-secondary: hsl(var(--dark-hue), var(--dark-saturation), 85%); /* Light version of dark-mode blue */
        --vet-card-bg: hsl(var(--dark-hue), var(--dark-saturation), 95%); /* ADD THIS */
        --text-primary: darkslategray;
        --text-secondary: dimgray;
        --accent-green: darkseagreen;
        --accent-beige: beige;
        --toggle-bg: lightgray;
        --toggle-circle: white;
        --button-text: white;
        --button-hover-bg: darkseagreen;
        --border-color: gainsboro;
        --link-color: royalblue;
        --link-hover-color: mediumblue;
    }
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* General link styles */
a {
    color: var(--link-color);
}

    a:hover,
    a:focus {
        color: var(--link-hover-color);
    }

header {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    /* Border now spans full viewport width */
}

.header-content {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    /* Content constrained to max width and centered */
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

    .logo::before {
        content: '🦜';
        display: inline-block;
        transform: scaleX(-1);
        margin-right: 0.5rem;
    }

nav ul {
    list-style: none;
    display: flex;
    gap: 4rem;
}

nav a {
    text-decoration: none;
    color: var(--text-primary); /* Same color for all states */
    transition: color 0.3s;
    padding-bottom: 4px;
}

    nav a:hover, nav a:focus {
        color: var(--text-primary); /* Keep same color on hover */
    }

    /* Active navigation link styling */
    nav a.active {
        color: var(--text-primary); /* Same color */
        font-weight: 600; /* Bold to distinguish */
        padding-inline: 4px;
        border-bottom: 2px solid var(--accent-green); /* Green underline to distinguish */
        padding-bottom: 2px;
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#dark-mode-toggle,
#dark-mode-toggle-desktop {
    display: none;
}

.toggle {
    width: 40px;
    height: 20px;
    background-color: var(--toggle-bg);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .toggle::before {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 16px;
        height: 16px;
        background-color: var(--toggle-circle);
        border-radius: 50%;
        transition: transform 0.3s;
    }

#dark-mode-toggle:checked + .toggle::before,
#dark-mode-toggle-desktop:checked + .toggle::before {
    transform: translateX(20px);
}

.donate-btn {
    background-color: var(--accent-green);
    color: var(--button-text);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

    .donate-btn:hover, .donate-btn:focus {
        background-color: var(--button-hover-bg);
    }

.hero {
    background-color: var(--bg-primary);
    text-align: center;
    padding: 1rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.25rem;
        color: var(--text-secondary);
        margin-bottom: 2rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.btn-primary {
    background-color: var(--accent-green);
    color: var(--button-text);
}

    .btn-primary:hover, .btn-primary:focus {
        background-color: var(--button-hover-bg);
    }

.btn-secondary {
    background-color: var(--accent-beige);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

    .btn-secondary:hover, .btn-secondary:focus {
        background-color: var(--bg-secondary);
    }

.mission {
    background-color: var(--bg-secondary);
    text-align: center;
    padding: 1rem 1rem;
}

    .mission h2 {
        font-size: 2rem;
    }

/* Responsive Design */
@media (max-width: 860px) {
    header {
        flex-direction: row;
        gap: 1.5rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* Accessibility enhancements */
a:focus, button:focus, label:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/*Lee's CSS*/
.polaroid {
    display: grid;
    place-content: center;
    box-shadow: 5px 5px 10px black;
    margin-top: 20px;
    width: fit-content;
    height: fit-content;
    background: white;
    padding: 10px;
    color: darkslategray;
    margin-bottom: 40px;
}

    .polaroid img {
        margin-top: .2rem;
    }

    .polaroid p {
        margin-top: 10px;
        font-size: 2rem;
        display: grid;
        place-content: center;
        font-family: "caveat",cursive;
    }

.web-address {
    font-family: monospace;
    font-size: 1rem;
}

/* Desktop navigation - inline horizontal */
nav#nav-menu {
    display: block;
}

    nav#nav-menu ul {
        list-style: none;
        display: flex;
        gap: clamp(1rem, 4vw, 4rem);
    }

    nav#nav-menu a {
        text-decoration: none;
        color: var(--text-primary); /* Same color for all states */
        transition: color 0.3s;
        padding-bottom: 4px;
    }

        nav#nav-menu a:hover,
        nav#nav-menu a:focus {
            color: var(--text-primary); /* Keep same color on hover */
        }

        nav#nav-menu a.active {
            color: var(--text-primary); /* Same color */
            font-weight: 600; /* Bold to distinguish */
            padding-inline: 4px;
            border-bottom: 2px solid var(--accent-green); /* Green underline to distinguish */
            padding-bottom: 2px;
        }

.hamburger {
    display: none;
}

/* Mobile navigation - popover */
@media (max-width: 860px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        margin-left: auto;
    }

        .hamburger span {
            display: block;
            width: 25px;
            height: 3px;
            background-color: var(--text-primary);
            border-radius: 2px;
        }

    /* Hide desktop nav styling on mobile */
    nav#nav-menu:not([popover]:popover-open) {
        display: none;
    }

    /* Popover styles when open */
    nav#nav-menu:popover-open {
        display: block;
        background-color: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 0.5rem;
        padding: 0.5rem 0;
        margin: 0;
        inset: unset;
        top: 4rem;
        right: 1rem;
    }

        nav#nav-menu:popover-open::backdrop {
            background-color: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(2px);
        }

        nav#nav-menu:popover-open ul {
            flex-direction: column;
            gap: 0;
        }

        nav#nav-menu:popover-open a {
            display: block;
            padding: 0.75rem 1.5rem;
            white-space: nowrap;
        }

            nav#nav-menu:popover-open a:hover,
            nav#nav-menu:popover-open a:focus {
                background-color: var(--bg-primary);
            }

            nav#nav-menu:popover-open a.active {
                border-bottom: none;
                border-left: 3px solid var(--accent-green);
                padding-left: calc(1.5rem - 3px);
            }

        /* Show theme toggle in mobile nav */
        nav#nav-menu:popover-open .theme-toggle-item {
            display: block;
            border-top: 1px solid var(--border-color);
            margin-top: 0.5rem;
            padding-top: 0.5rem;
        }

    /* Hide desktop theme toggle on mobile */
    .header-actions {
        display: none;
    }
}

/* Theme toggle in mobile navigation */
.theme-toggle-item {
    display: none;
}

/* Show theme toggle on desktop as last nav item */
.theme-toggle-item {
    display: block;
}

.theme-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0; /* Remove padding on desktop */
    cursor: pointer;
    gap: 1rem;
}

/* Mobile-specific theme toggle padding */
@media (max-width: 860px) {
    .theme-toggle-label {
        padding: 0.75rem 1.5rem;
    }
}

.theme-label-text {
    color: var(--text-primary); /* Match nav link color - CONSISTENT EVERYWHERE */
    font-weight: 300; /* Lighter than nav links (400) for subtlety */
    font-size: 0.9rem; /* Smaller than default nav link size */
    font-style: italic; /* Adds distinction without bolding */
    line-height: 1; /* Align with nav links */
}

.theme-toggle-label input[type="checkbox"] {
    display: none;
}

.theme-toggle-label .toggle {
    flex-shrink: 0;
}

/* Show theme toggle on desktop as last nav item */
.theme-toggle-item {
    display: block;
}

/* Show "Light Mode" by default */
.theme-label-text::before {
    content: attr(data-light);
}

/* Show "Dark Mode" when toggle is checked */
#dark-mode-toggle:checked ~ .theme-toggle-label .theme-label-text::before,
#dark-mode-toggle-desktop:checked ~ .theme-label-text::before,
.theme-toggle-label:has(#dark-mode-toggle:checked) .theme-label-text::before,
.theme-toggle-desktop-label:has(#dark-mode-toggle-desktop:checked) .theme-label-text::before {
    content: attr(data-dark);
}

/* Azure Maps styling */
.azure-map {
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 0 auto;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Contact info card styling */
.contact-info-card {
    margin-bottom: 2rem;
}

    .contact-info-card h2 {
        margin-bottom: 1rem;
    }

    .contact-info-card p {
        margin-bottom: 0.5rem;
    }

nav#nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.theme-toggle-item {
    margin-left: auto;
}
