:root {
    --primary: #d96732;
    --background: #f7f4ef;
    --dark: #22150f;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    background: var(--background);
}


/*HOMEPAGE*/

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background-image: url('/images/dogcatlove.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /*    overflow: hidden;*/
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding-top: 4rem;
}

@media (max-width: 600px) {
    .hero-content {
        padding-top: 3rem;
    }
}

.hero h1 {
    color: white;
/*    font-size: clamp(4rem, 9vw, 8rem);*/
    font-size: clamp(2.2rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
}

    .hero h1 span {
        color: #E26A36;
    }

.hero p {
    color: rgba(255,255,255,.9);
    font-size: clamp(1rem, 3.5vw, 1.7rem);
    padding: 0 1rem;

    max-width: 900px;
    margin: 0 auto 5rem;
}


.animal-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;

    margin: 0 auto;
    padding: 0 2rem;
}

.category-card {
 
    height: 100%;
    aspect-ratio: 1 / 1.1;


    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    border-radius: 25px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(12px);
    transition: all .3s ease;
}

    .category-card:hover {
        transform: translateY(-10px);
        background: rgba(226,106,54,.2);
        border-color: #E26A36;
    }

.emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card span {
    font-size: 1.3rem;
    font-weight: 600;
}

.paw {
    position: absolute;
    color: rgba(226,106,54,.15);
    font-size: 5rem;
    z-index: 1;
}

.paw-1 {
    left: 8%;
    bottom: 10%;
}

.paw-2 {
    left: 30%;
    bottom: 5%;
}

.paw-3 {
    right: 18%;
    bottom: 8%;
}

.paw-4 {
    right: 5%;
    bottom: 2%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


@media (max-width: 768px) {
    .nav-links {
        display: none; 
    }
}

.navbar {
    width: 100%;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff7f0;
}

/* LOGO */
.logo {
    font-size: 34px;
    font-weight: 800;
    color: #1f1f1f;

}

    .logo span {
        color: #e06a3c;
    }

a {
    
        text-decoration: none;
    }



/* SEARCH BAR WRAPPER */
.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 999px;
    padding: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}


.input-group {
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

    .input-group input {
        border: none;
        outline: none;
        font-size: 14px;
        width: 160px;
    }

.divider {
    width: 1px;
    height: 24px;
    background: #eee;
}


.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e06a3c;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}

    .search-btn:hover {
        opacity: 0.9;
    }

/* ICONS */
.icon {
    width: 28px;
    height: 28px;
    fill: #e06a3c;
}

.icon-white {
    width: 28px;
    height: 28px;
    fill: white;
}


/* BROWSE BAR */

.animal-filter-toggle {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    text-align: center;
}

    .animal-filter-toggle button {
        background: none;
        border: none;
        padding: .5rem 1rem;
        cursor: pointer;
        font-weight: 600;
    }

.animal-menu {
    display: none;
    padding: 1rem;
    background: white;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

    .animal-menu.show {
        display: flex;
    }

    .animal-menu a {
        text-decoration: none;
        color: var(--dark);
        padding: .5rem 1rem;
        border-radius: 999px;
        background: #f7f4ef;
    }






/*---------------------*/
/*INDEX - ANIMAL CARDS*/
/*-------------------*/

/* PAGE CONTAINER */
.pet-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.pet-page h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        margin-bottom: 1.5rem;
        text-align: left;
 }



.pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 260px));
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.pet-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: white;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    cursor: pointer;
}

    .pet-card:hover {
        transform: translateY(-5px);
    }
/*
.pet-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
}

.pet-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: white;
    transition: transform 0.2s ease;
    width: 100%;
    cursor: pointer;
}


    .pet-card:hover {
        transform: translateY(-5px);
    }*/

.pet-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f2f2f2;
}

.pet-body {
    padding: 15px;
}

.pet-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.pet-meta {
    color: #666;
    font-size: 0.9rem;
}

.badge-city {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    background: #eef5ff;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #2b6cb0;
}

/* INDEX PET CARDS MOBILE */

@media (max-width: 600px) {
    .pet-page {
        padding: 1rem;
    }
}



.footer {
    text-align: center;
}