/* =========================
   RESET
   ========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* =========================
   DESIGN TOKENS
   ========================= */
:root {
    --radius-lg: 1rem;
    --shadow-sm: 0px 2px 5px rgba(0, 0, 0, 0.25);
    --shadow-md: 0px 6px 14px rgba(0, 0, 0, 0.35);
    --overlay-dark: rgba(0, 0, 0, 0.55);
}

/* =========================
   DARK THEME 
   ========================= */

body.dark {
    background-color: #121212;
    color: #eaeaea;
}


body.dark #navbar {
    background: #1c1c1c;
    box-shadow: none;
}


body.dark .nav-right {
    background: #1c1c1c;
}


body.dark .card:not(.has-bg):not(.service-card) {
    background-color: #1e1e1e;
    box-shadow: none;
}


body.dark .footer {
    background: #1a1a1a;
}


body.dark .btn {
    background: #eaeaea;
    color: #000;
}


body.dark .pricing-table thead {
    background: #222;
}

body.dark .pricing-table th,
body.dark .pricing-table td {
    border-bottom: 1px solid #333;
}


body.dark .contact-form input,
body.dark .contact-form textarea {
    background: #1e1e1e;
    color: #eaeaea;
}


body.dark #theme-change {
    background: #1c1c1c;
}


/* =========================
   FONTS
   ========================= */
.dynapuff-font {
    font-family: "DynaPuff", system-ui;
    font-weight: 800;
}

.sn-pro-font {
    font-family: "SN Pro", sans-serif;
    font-weight: 500;
}

/* =========================
   ANIMATIONS
   ========================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   NAVBAR
   ========================= */
#navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

#nav-logo {
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0.5rem 0rem;
}

.menu {
    background: none;
    border: none;
    cursor: pointer;
}

.menu img {
    width: 3rem;
}

.nav-right {
    display: none;
    position: absolute;
    width: 100%;
    background: #fff;
    animation: slideDown 0.25s ease-out both;
}

.tab {
    padding: 1rem;
    font-size: 1.4rem;
    text-align: center;
    cursor: pointer;
    position: relative;
}

/* underline hover */
.tab::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.25s ease;
}

.tab:hover::after {
    width: 100%;
}

/* =========================
   HERO
   ========================= */
.hero {
    position: relative;
    height: calc(100vh - 80px);
    overflow: hidden;
}

.hero picture,
.hero img {
    width: 100%;
    height: 100%;
}

.hero img {
    object-fit: cover;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.8);
    animation: fadeUp 0.8s ease-out both;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.hero-text {
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.hero-footnote {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* =========================
   SECTIONS
   ========================= */
.section {
    width: 90%;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 2rem 1rem;
    text-align: center;
    animation: fadeUp 0.6s ease-out both;
}

/* =========================
   CARDS
   ========================= */
.card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

/* =========================
   LISTS
   ========================= */
.checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.checklist li {
    margin: 0.5rem 0;
}

/* =========================
   BUTTONS
   ========================= */
.btn {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    border: none;
    background: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* =========================
   SERVICES GRID
   ========================= */
.services-grid {
    display: grid;
    gap: 2rem;
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
}

/* =========================
   SERVICE CARDS
   ========================= */
.service-card {
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    color: #fff;
    cursor: pointer;
    background-size: 100%;
    background-position: center;
    overflow: hidden;
    min-height: 420px;
    transition: background-size 0.4s ease, transform 0.25s ease;
}

.service-card:hover {
    background-size: 105%;
    transform: translateY(-6px);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--overlay-dark);
    z-index: 0;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card .btn {
    align-self: flex-start;
    color: #000;
}

/* =========================
   TABLE
   ========================= */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.pricing-table th,
.pricing-table td {
    padding: 0.9rem;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.pricing-table thead {
    background: #f4f4f4;
    font-weight: 700;
}

.pricing-table tbody tr:hover {
    background: #fafafa;
}


/* =========================
   SERVICE BACKGROUNDS
   ========================= */
.bg-adoption { background-image: url("./assets/images/service-adoption.jpg"); }
.bg-foster   { background-image: url("./assets/images/service-foster.jpg"); }
.bg-grooming { background-image: url("./assets/images/service-grooming.jpg"); }
.bg-vet      { background-image: url("./assets/images/service-vet.jpg"); }
.bg-shop     { background-image: url("./assets/images/service-shop.jpg"); }

/* =========================
   IMAGE-BACKED SECTIONS (OPT-IN)
   ========================= */
.has-bg {
    position: relative;
    overflow: hidden;
    color: #fff;
}

.has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--overlay-dark);
    z-index: 0;
}

.has-bg > * {
    position: relative;
    z-index: 1;
}

/* =========================
   GALLERY
   ========================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}


/* =========================
   ABOUT BACKGROUNDS
   ========================= */
.bg-about-hero     { background: url("./assets/images/about-hero.jpg") center / cover; }
.bg-about-why      { background: url("./assets/images/about-why.jpg") center / cover; }
.bg-about-beliefs  { background: url("./assets/images/about-beliefs.jpg") center / cover; }
.bg-about-process  { background: url("./assets/images/about-process.jpg") center / cover; }
.bg-about-adoption { background: url("./assets/images/about-adoption.jpg") center / cover; }
.bg-about-identity { background: url("./assets/images/about-identity.jpg") center / cover; }
.bg-about-promise  { background: url("./assets/images/about-promise.jpg") center / cover; }
.bg-about-mission  { background: url("./assets/images/about-mission.jpg") center / cover; }

/* =========================
   CONTACT FORM
   ========================= */
   .contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border: 2px solid #ccc;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #000;
}
.contact-form input:invalid,
.contact-form textarea:invalid {
    border-color: #d9534f;
}

.contact-form input:valid,
.contact-form textarea:valid {
    border-color: #5cb85c;
}

/* =========================
   THEME TOGGLE
   ========================= */
#theme-change {
    position: fixed;
    bottom: 1rem;
    left: 0;
    background: #fff;
    border: none;
    padding: 0.5rem;
    border-radius: 0 1rem 1rem 0;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#theme-change img {
    width: 3rem;
    height: 3rem;
}

/* =========================
   FOOTER
   ========================= */
.footer {
    background: #eee;
    padding: 3rem 1rem;
    transition: background-color 0.3s ease;
}

.footer-grid {
    width: 90%;
    margin: auto;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-card {
    padding: 1.5rem;
}
.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.footer-socials img {
    width: 28px;
    height: 28px;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-socials img:hover {
    opacity: 1;
    transform: translateY(-2px);
}


/* =========================
   NAVBAR DESKTOP OVERRIDE
   ========================= */
@media (min-width: 769px) {

    #navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 2rem;
    }

    .nav-left {
        padding: 0;
    }

    .menu {
        display: none;
    }

    .nav-right {
        display: flex !important;
        position: static;
        width: auto;
        background: transparent;
        gap: 1.5rem;
        align-items: center;
        animation: none;
    }

    .tab {
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }
}

/* =========================
   RESPONSIVE GRID
   ========================= */
@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

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


