/* ===== ROOT VARIABLES ===== */
:root {
    --page-margin: 2%;
    /* --secondary-color: darkblue; */
    --main-color: hotpink;
    --accent-color: white;
    --secondary-color: #000080; /* Darker navy */
    /* --main-color: #FFB3C6; Softer pink, easier on eyes */
    /* --accent-color: #1a1a1a; Near-black instead of pure white */
}

/* ===== BASE STYLES ===== */
html {
    margin: var(--page-margin);
    background-color: var(--secondary-color);
    color: var(--accent-color);
}

a {
    min-width: fit-content;
    min-height: fit-content;
}

body {
    background-color: var(--main-color);
    font-family: 'Open Sans', sans-serif;
    padding: 2%;
}

h1 {
    color: var(--secondary-color);
}
h2 {
    margin-left: 4.75%;
    color: var(--secondary-color);
}

h3 {
    color: var(--secondary-color);
    text-align: center;
}

h4 {
    color: var(--secondary-color);
}

/* ===== HEADER ===== */
header {
    background-color: var(--main-color);
}

.business-name-image {
    max-height: 5em;
    max-width: 5em;
    position: relative;
    left: 1em;
}
.business-name-image-container {
    display: flex;
    justify-content: center;
    padding: 1em 0;
}

.business-name-subheading {
    font-size: clamp(1.5em, 5vw, 2.5em);
    margin: 0 5em;
    text-align: center;
}

.business-type {
    border-bottom: 1px solid black;
    color: var(--secondary-color);
    flex-grow: 1;
    text-align: right;
    font-size: clamp(1em, 3vw, 1.2em);  
    margin-left: 0;
}

.dog-icon {
    float: left;
    width: 10%;
    max-width: 80px;
}

.facebook-and-type {
    display: flex;
    height: fit-content;
    align-items: center;
    justify-content: space-evenly;
}

.facebook-logo {
    max-height: 5em;
}

.paw-icon {
    float: right;
    width: 10%;
    max-width: 80px;
}

/* ===== ABOUT SECTION ===== */
.about-header {
    margin-left: 0;
    text-align: center;
}

.about {
    display: block;
    width: 90%;
    margin: 0 auto;
    padding: 1rem;
}

/* ===== SERVICES/BOARDING SECTION ===== */
.boarding-header {
    margin-left: 0;
    text-align: center;
}

.services {
    display: block;
    width: 90%;
    margin: 0 auto;
    padding: 1rem;
}

.service-and-rate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    width: 100%;
    padding: 0.5rem 0;
}

.service-and-rate-description {
    text-align: center;
    padding: 1rem 0;
}

/* ===== BUTTONS ===== */
.button-group {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

button {
    background-color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    color: var(--accent-color);
    font-size: clamp(1rem, 3vw, 1.5rem);
    min-width: 200px;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

button:hover {
    transform: scale(1.05);
}

/* ===== FOOTER (MOBILE-FIRST) ===== */
footer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2%;
    padding: 1rem;
}

.contact-us-column-one {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.contact-us-description {
    margin: 1rem 0;
}

.phone,
.email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.location {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
}

.hours {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
}

.hours h4 {
    margin: 0.5rem 0;
}

.contact-us-info {
    width: 100%;
    text-align: center;
}

.contact-us-info h4 {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.6;
}

/* ===== IMAGE COLLECTION ===== */
.image-collection {
    background-color: var(--accent-color);
    border-bottom: 2px solid black;
    border-left: 2px solid black;
    border-right: 2px solid black;
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    margin-left: 1%;
    margin-right: 2%;
    width: 98%;
}

.dog-image {
    min-width: 1em;
    min-height: 1em;
    max-height: 5em;
    max-width: 5em;
    object-fit: cover;
}

/* ===== MEDIA QUERIES ===== */

/* Very small phones - 320px */
@media screen and (max-width: 767px) {
    a {
        left: 1.5em;
        position: relative;
    }
    /* ===== HEADER ===== */
    .business-name-image {
        position: static;
        width: 98%; /* Maximize space */
        max-width: 320px;
    }
    
    .business-name-subheading {
        margin: 0;
    }

    .business-type {
        margin-left: 0;
    }

    .facebook-logo {
        max-height: 1.5em;
        position: sticky;
    }

    /* ===== FOOTER (MOBILE-FIRST) ===== */
    .contact-us-info h4 {
        font-size: 0.75rem; /* Smaller text to prevent wrapping */
        line-height: 1.5;
    }
    
    .phone,
    .email {
        flex-direction: column; /* Stack label and value */
        align-items: flex-start;
    }
}

/* Tablet (768px - 899px) - Keep single column but optimize width */
@media screen and (min-width: 768px) {
    a {
        left: 1.5em;
        position: relative;
    }

    .about,
    .services {
        width: 85%; /* Slightly narrower to use space better */
        max-width: 650px; /* Prevent it from getting too wide */
    }
    
    .business-name-image {
        width: 95%; /* Slightly wider on mobile */
        max-width: 400px; /* Smaller max on phones */
    }

    .facebook-logo {
        max-height: 1.5em;
        position: sticky;
    }

    .service-and-rate {
        width: 80%;
    }
    
    /* Footer stays single column but more compact */
    footer {
        flex-direction: column;
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
        gap: 1.5rem;
    }
    
    .contact-us-column-one,
    .location,
    .hours,
    .contact-us-info {
        text-align: center;
        width: 100%;
    }

    .contact-us-description {
        text-align: left;
    }

    .phone {
        justify-content: center;
    }

    .email {
        justify-content: center;
    }
}

/* Medium Tablet/Small Desktop (900px - 1023px) - Two column footer */
@media screen and (min-width: 900px) {
    footer {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        gap: 2rem;
    }
    
    .contact-us-column-one,
    .location,
    .hours,
    .contact-us-info {
        width: 48%; /* Two columns */
    }
}

/* Desktop (1024px+) - Four column layout */
@media screen and (min-width: 1024px) {
    .about,
    .services {
        width: 50%;
        max-width: none;
    }
    
    .service-and-rate {
        width: 50%;
    }
    
    footer {
        flex-wrap: nowrap;
        justify-content: space-around;
        gap: 1rem;
    }
    
    .contact-us-column-one,
    .location,
    .hours,
    .contact-us-info {
        width: 25%; /* Four columns */
    }
}

/* Large desktop (1440px+) */
@media screen and (min-width: 1440px) {
    body {
        max-width: 1400px;
        margin: 0 auto;
    }
}