/* -----------------------------
   Full-page sand background for homepage
------------------------------ */
body.home {
    background-image: url('../images/sand-background.png');
    background-size: cover;          /* fill the page */
    background-repeat: no-repeat;    /* don’t tile */
    background-position: center top; /* position nicely */
    background-attachment: fixed;    /* keeps background fixed while scrolling */
    background-color: #fdf6e3;       /* fallback color */
    margin: 0;
    padding: 0;
}

/* -----------------------------
   Site Header (blends with page)
------------------------------ */
.site-header {
    background: transparent;          /* transparent so it blends with page */
    min-height: 40px;                 /* compact height */
    padding: 5px 20px;                /* vertical & horizontal padding */
    display: flex;
    align-items: center;              /* vertical centering */
    justify-content: center;
    gap: 10px;                        /* space between paw and title */
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* -----------------------------
   Header content
------------------------------ */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.header-content .paw {
    max-width: 50px;
    height: auto;
}

/* FIX: Ensure header paw icon always stays the correct size */
.paw-icon {
    width: 60px;          /* adjust to preference */
    height: 60px;
    background-image: url('../assets/images/Blue-Paw-Print-on-White-Background.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;       /* prevents stretching */
}


.site-title {
    font-family: 'Arial', sans-serif;
    font-size: 1.8rem;
    color: #5a4d3c;                     /* soft brown */
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.25); /* subtle shadow for readability */
}

/* -----------------------------
   Family Image
------------------------------ */
img.family {
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}

/* -----------------------------
   Quadrants on Homepage
------------------------------ */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.main-content > div {
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    flex: 1 1 45%;
    margin-bottom: 20px;
}

/* Soft background colors for quadrants */
.main-content > div:nth-child(odd) {
    background-color: #fff8dc; /* soft yellow */
}

.main-content > div:nth-child(even) {
    background-color: #e6f7ff; /* soft blue */
}

/* -----------------------------
   Links inside quadrants
------------------------------ */
.main-content a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    font-weight: bold;
    color: #333;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.main-content a:hover {
    background-color: #333;
    color: #fff;
}

/* -----------------------------
   Responsive adjustments
------------------------------ */
@media (max-width: 768px) {
    .site-header {
        padding: 5px 10px;           /* slightly smaller on mobile */
    }

    .header-content {
        flex-direction: row;          /* keep paw and title in a row */
        gap: 8px;
    }

    .site-title {
        font-size: 1.8rem;            /* keep text size */
    }

    .header-content .paw {
        max-width: 50px;              /* keep paw size */
        height: auto;
    }

    .main-content > div {
        flex: 1 1 100%;               /* stack quadrants on small screens */
    }

    img.family {
        max-width: 90%;               /* scale family image on small screens */
    }
}

/* -----------------------------
   Minimal back header with logout
------------------------------ */
.back-header {
    width: 100%;
    background-color: #fdf6e3;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between; /* back left, logout right */
}

.back-header .back-button {
    text-decoration: none;
    color: #5a4d3c;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
}

.back-header .back-logout-button {
    text-decoration: none;
    color: #fff;
    background-color: #c0392b; 
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
}



.back-header .back-button:hover {
    color: #7b664f;
}

.back-header .back-logout-button:hover {
    background-color: #e74c3c;
}

/* Responsive adjustment for very small screens */
@media (max-width: 480px) {
    .admin-back-header {
        flex-direction: column;      /* stack back button and logout vertically */
        align-items: flex-start;     /* align left */
        gap: 5px;                    /* small space between them */
    }

    .back-header .back-button,
    .back-header .back-logout-button {
        margin-bottom: 0;
    }
}

.home-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.section-paw {
    width: 22px;
    height: auto;
    margin-right: 8px;
    vertical-align: middle;
}

/* About page text left-aligned */
body.home .about-section p,
body.home .about-section h2,
body.home .about-section h3 {
    text-align: left;
}

/* Force all About sections yellow on larger screens */
@media (min-width: 769px) {
    body.home .about-section:nth-child(even) {
        background-color: #fff8dc !important;
    }
}





