:root {
    --bg: #f5f7f4;
    --card: #ffffff;
    --text: #1f2933;
    --muted: #68737d;

    --green: #2f7d52;
    --green-dark: #205c3a;
    --green-light: #e8f4ec;

    --orange: #e98b3a;
    --orange-light: #fff2e5;

    --blue: #3978b8;
    --blue-light: #eaf3fb;

    --border: #e0e6e2;

    --shadow: 0 8px 30px rgba(30, 50, 40, .07);
    --shadow-hover: 0 14px 38px rgba(30, 50, 40, .12);

    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* =========================================================
   HEADER
========================================================= */

header {
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(255,255,255,.13),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #19492f 0%,
            #2f7d52 55%,
            #4d9b6d 100%
        );

    color: white;
}

.topbar {
    border-bottom: 1px solid rgba(255,255,255,.13);
}

.topbar-inner {
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -.4px;
}

.logo-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);

    border-radius: 12px;
    font-size: 21px;
}

.top-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-menu a {
    color: rgba(255,255,255,.88);
    text-decoration: none;

    padding: 8px 11px;
    border-radius: 8px;

    font-size: 14px;
}

.top-menu a:hover {
    background: rgba(255,255,255,.1);
    color: white;
}

.language {
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 9px;

    padding: 7px 10px;

    font-size: 13px;
    background: rgba(255,255,255,.08);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    padding: 72px 0 84px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 13px;

    border-radius: 999px;

    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);

    font-size: 13px;
    margin-bottom: 20px;
}

.hero h1 {
    max-width: 850px;
    margin: 0 auto 18px;

    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.02;

    letter-spacing: -2px;
}

.hero-description {
    max-width: 700px;

    margin: 0 auto 30px;

    font-size: 19px;
    line-height: 1.6;

    color: rgba(255,255,255,.9);
}

/* Search */

.search-wrapper {
    width: min(760px, 100%);
    margin: 0 auto;
}

.search-box {
    display: flex;

    padding: 7px;

    background: white;
    border-radius: 15px;

    box-shadow:
        0 15px 50px rgba(0,0,0,.18);
}

.search-icon {
    width: 54px;

    display: grid;
    place-items: center;

    color: #65736a;
    font-size: 21px;
}

.search-box input {
    flex: 1;

    min-width: 0;

    border: none;
    outline: none;

    font-size: 16px;

    color: var(--text);
    background: transparent;
}

.search-box input::placeholder {
    color: #89948e;
}

.search-button {
    border: none;

    padding: 13px 21px;

    border-radius: 10px;

    background: var(--green);
    color: white;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.search-button:hover {
    background: var(--green-dark);
}

.popular-searches {
    margin-top: 13px;

    font-size: 13px;

    color: rgba(255,255,255,.75);
}

.popular-searches a {
    color: white;
    text-decoration: none;
    margin-left: 8px;
}

.popular-searches a:hover {
    text-decoration: underline;
}


/* =========================================================
   MAIN
========================================================= */

main {
    padding: 48px 0 90px;
}

section {
    margin-bottom: 55px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;

    font-size: 30px;
    line-height: 1.15;

    letter-spacing: -.7px;
}

.section-heading p {
    margin: 6px 0 0;

    color: var(--muted);
    font-size: 15px;
}

.section-link {
    color: var(--green-dark);
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;
}

.section-link:hover {
    text-decoration: underline;
}


/* =========================================================
   ANIMAL CATEGORIES
========================================================= */

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 14px;
}

.category-card {
    display: flex;
    flex-direction: column;

    min-height: 175px;

    padding: 20px;

    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    text-decoration: none;

    box-shadow: var(--shadow);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.category-card:hover {
    transform: translateY(-3px);

    border-color: #c8d8cd;
    box-shadow: var(--shadow-hover);
}

.category-icon {
    font-size: 38px;
    margin-bottom: 13px;
}

.category-card h3 {
    margin: 0 0 5px;

    font-size: 18px;
}

.category-card p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.45;
}

.category-count {
    margin-top: auto;
    padding-top: 15px;

    color: var(--green);

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   FEATURED BREEDS
========================================================= */

.breed-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.breed-card {
    overflow: hidden;

    background: white;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);

    text-decoration: none;

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

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

.breed-image {
    height: 185px;

    display: grid;
    place-items: center;

    font-size: 70px;

    background:
        linear-gradient(
            135deg,
            #e9f3eb,
            #f6eee5
        );
}

.breed-content {
    padding: 18px;
}

.breed-content h3 {
    margin: 0 0 4px;
    font-size: 19px;
}

.breed-subtitle {
    color: var(--muted);
    font-size: 13px;
}

.breed-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    margin-top: 13px;
}

.tag {
    padding: 4px 8px;

    background: var(--green-light);
    color: var(--green-dark);

    border-radius: 999px;

    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   INTENT / TOPICS
========================================================= */

.topic-layout {
    display: grid;

    grid-template-columns:
        1.35fr .65fr;

    gap: 18px;
}

.topic-card {
    padding: 25px;

    background: white;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.topic-card h3 {
    margin: 0 0 8px;

    font-size: 21px;
}

.topic-card p {
    margin: 0 0 18px;

    color: var(--muted);
    font-size: 14px;
}

.topic-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-links a {
    padding: 8px 11px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: #fafcfb;

    text-decoration: none;

    font-size: 13px;
}

.topic-links a:hover {
    border-color: #bdd3c4;
    background: var(--green-light);
    color: var(--green-dark);
}


/* =========================================================
   TOOLS
========================================================= */

.tools-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.tool-card {
    position: relative;

    padding: 25px;

    background: white;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);

    text-decoration: none;
}

.tool-card:hover {
    border-color: #c4d8cb;
}

.tool-icon {
    font-size: 34px;
    margin-bottom: 10px;
}

.tool-card h3 {
    margin: 0 0 7px;
    font-size: 19px;
}

.tool-card p {
    margin: 0;

    color: var(--muted);
    font-size: 14px;
}

.tool-arrow {
    position: absolute;

    top: 23px;
    right: 23px;

    color: var(--green);

    font-size: 20px;
}


/* =========================================================
   TWO COLUMN CONTENT
========================================================= */

.content-layout {
    display: grid;

    grid-template-columns:
        1.45fr .55fr;

    gap: 18px;
}

.article-list {
    display: grid;
    gap: 12px;
}

.article-card {
    display: grid;

    grid-template-columns:
        125px 1fr;

    gap: 18px;

    padding: 14px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 15px;

    text-decoration: none;
}

.article-card:hover {
    border-color: #c4d8cb;
}

.article-image {
    min-height: 105px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: #edf4ef;

    font-size: 43px;
}

.article-card h3 {
    margin: 2px 0 5px;

    font-size: 17px;
    line-height: 1.3;
}

.article-card p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.5;
}

.article-meta {
    margin-top: 9px;

    color: #849089;

    font-size: 11px;
}


/* Sidebar */

.sidebar-card {
    padding: 23px;

    background: white;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    margin: 0 0 15px;

    font-size: 19px;
}

.quick-links {
    display: grid;
    gap: 8px;
}

.quick-links a {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 10px 11px;

    background: #f8faf8;

    border-radius: 9px;

    text-decoration: none;

    font-size: 13px;
}

.quick-links a:hover {
    background: var(--green-light);
    color: var(--green-dark);
}

.quick-links span:last-child {
    color: #9aa59f;
}


/* =========================================================
   FEATURE BANNER
========================================================= */

.feature-banner {
    position: relative;
    overflow: hidden;

    padding: 34px;

    border-radius: 22px;

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(255,255,255,.18),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #225d3d,
            #347f54
        );

    color: white;
}

.feature-banner::after {
    content: "🐕 🐈 🐇";

    position: absolute;

    right: 30px;
    bottom: 15px;

    font-size: 55px;

    opacity: .14;

    transform: rotate(-7deg);
}

.feature-banner h2 {
    max-width: 650px;

    margin: 0 0 10px;

    font-size: 28px;
}

.feature-banner p {
    max-width: 650px;

    margin: 0 0 20px;

    color: rgba(255,255,255,.86);
}

.banner-button {
    display: inline-block;

    padding: 10px 15px;

    border-radius: 9px;

    background: white;
    color: var(--green-dark);

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    background: #18231d;
    color: white;

    padding: 55px 0 25px;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr repeat(3, 1fr);

    gap: 35px;

    padding-bottom: 40px;
}

.footer-brand h3 {
    margin: 0 0 10px;

    font-size: 21px;
}

.footer-brand p {
    max-width: 350px;

    margin: 0;

    color: #aab7ae;

    font-size: 13px;
}

.footer-column h4 {
    margin: 0 0 12px;

    font-size: 14px;
}

.footer-column a {
    display: block;

    margin-bottom: 8px;

    color: #aab7ae;

    text-decoration: none;

    font-size: 13px;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    display: flex;

    justify-content: space-between;
    gap: 20px;

    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,.09);

    color: #849089;

    font-size: 12px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 950px) {

    .category-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .breed-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .topic-layout,
    .content-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 650px) {

    .container {
        width: min(100% - 22px, 1180px);
    }

    .top-menu {
        display: none;
    }

    .hero {
        padding: 52px 0 60px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 16px;
    }

    .search-box {
        padding: 6px;
    }

    .search-icon {
        width: 40px;
    }

    .search-button {
        padding: 11px 14px;
    }

    .category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .breed-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .article-card {
        grid-template-columns: 90px 1fr;
        gap: 12px;
    }

    .article-image {
        min-height: 90px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}